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
634NO_PIE_FLAG
635NO_PIE_CFLAGS
636enable_default_pie
637PICFLAG
638enable_host_shared
639enable_plugin
640pluginlibs
641ISLINC
642ISLLIBS
643GMPINC
644GMPLIBS
645target_cpu_default
646d_target_objs
647fortran_target_objs
648cxx_target_objs
649c_target_objs
650use_gcc_stdint
651xm_defines
652xm_include_list
653xm_file_list
654tm_d_include_list
655tm_d_file_list
656tm_p_include_list
657tm_p_file_list
658tm_defines
659tm_include_list
660tm_file_list
661common_out_object_file
662common_out_file
663out_object_file
664out_file
665objc_boehm_gc
666md_file
667local_prefix
668lang_tree_files
669lang_specs_files
670lang_opt_files
671install
672out_host_hook_obj
673host_xm_defines
674host_xm_include_list
675host_xm_file_list
676host_exeext
677gcc_gxx_include_dir_add_sysroot
678gcc_gxx_include_dir
679gcc_config_arguments
680float_h_file
681extra_programs
682extra_objs
683extra_headers_list
684user_headers_inc_next_post
685user_headers_inc_next_pre
686extra_gcc_objs
687TM_MULTILIB_EXCEPTIONS_CONFIG
688TM_MULTILIB_CONFIG
689TM_ENDIAN_CONFIG
690tmake_file
691xmake_file
692cpp_install_dir
693selftest_languages
694check_languages
695build_file_translate
696build_xm_defines
697build_xm_include_list
698build_xm_file_list
699build_install_headers_dir
700build_exeext
701all_selected_languages
702all_languages
703all_lang_makefrags
704all_lang_configurefrags
705all_gtfiles
706all_compilers
707srcdir
708subdirs
709dollar
710gcc_tooldir
711enable_lto
712DO_LINK_MUTEX
713MAINT
714zlibinc
715zlibdir
716HOST_LIBS
717enable_default_ssp
718thin_archive_support
719ld_soname_option
720ld_version_script_option
721libgcc_visibility
722gcc_cv_otool
723gcc_cv_readelf
724gcc_cv_objdump
725ORIGINAL_NM_FOR_TARGET
726gcc_cv_nm
727ORIGINAL_LD_GOLD_FOR_TARGET
728ORIGINAL_LD_BFD_FOR_TARGET
729ORIGINAL_LD_FOR_TARGET
730ORIGINAL_PLUGIN_LD_FOR_TARGET
731gcc_cv_ld
732ORIGINAL_AS_FOR_TARGET
733gcc_cv_as
734enable_fast_install
735objdir
736OTOOL64
737OTOOL
738LIPO
739NMEDIT
740DSYMUTIL
741STRIP
742OBJDUMP
743ac_ct_DUMPBIN
744DUMPBIN
745LD
746FGREP
747SED
748LIBTOOL
749collect2
750NO_PIE_FLAG_FOR_BUILD
751NO_PIE_CFLAGS_FOR_BUILD
752BUILD_NO_PIE_FLAG
753BUILD_NO_PIE_CFLAGS
754STMP_FIXINC
755BUILD_LDFLAGS
756BUILD_CXXFLAGS
757BUILD_CFLAGS
758CXX_FOR_BUILD
759CC_FOR_BUILD
760inhibit_libc
761BUILD_SYSTEM_HEADER_DIR
762SYSTEM_HEADER_DIR
763ALL
764CROSS
765CATOBJEXT
766GENCAT
767INSTOBJEXT
768DATADIRNAME
769CATALOGS
770POSUB
771GMSGFMT
772XGETTEXT
773INCINTL
774LIBINTL_DEP
775LIBINTL
776USE_NLS
777get_gcc_base_ver
778extra_opt_files
779extra_modes_file
780NATIVE_SYSTEM_HEADER_DIR
781objext
782manext
783LIBICONV_DEP
784LTLIBICONV
785LIBICONV
786DL_LIB
787LDEXP_LIB
788EXTRA_GCC_LIBS
789GNAT_LIBEXC
790COLLECT2_LIBS
791CXXDEPMODE
792DEPDIR
793am__leading_dot
794doc_build_sys
795AR
796NM
797BISON
798FLEX
799GENERATED_MANPAGES
800BUILD_INFO
801MAKEINFO
802have_mktemp_command
803make_compare_target
804INSTALL_DATA
805INSTALL_PROGRAM
806INSTALL
807ranlib_flags
808RANLIB
809LN
810LN_S
811AWK
812SET_MAKE
813accel_dir_suffix
814real_target_noncanonical
815enable_as_accelerator
816REPORT_BUGS_TEXI
817REPORT_BUGS_TO
818PKGVERSION
819CONFIGURE_SPECS
820enable_gcov
821enable_shared
822enable_fixed_point
823enable_decimal_float
824with_float
825with_cpu
826enable_multiarch
827enable_multilib
828coverage_flags
829valgrind_command
830valgrind_path_defines
831valgrind_path
832TREECHECKING
833nocommon_flag
834noexception_flags
835warn_cxxflags
836warn_cflags
837c_strict_warn
838strict_warn
839c_loose_warn
840loose_warn
841aliasing_flags
842CPP
843EGREP
844GREP
845CXXCPP
846PICFLAG_FOR_TARGET
847GNATMAKE
848GNATBIND
849ac_ct_CXX
850CXXFLAGS
851CXX
852OBJEXT
853EXEEXT
854ac_ct_CC
855CPPFLAGS
856LDFLAGS
857CFLAGS
858CC
859GENINSRC
860CROSS_SYSTEM_HEADER_DIR
861TARGET_SYSTEM_ROOT_DEFINE
862TARGET_SYSTEM_ROOT
863SYSROOT_CFLAGS_FOR_TARGET
864target_subdir
865host_subdir
866build_subdir
867build_libsubdir
868target_noncanonical
869host_noncanonical
870target_os
871target_vendor
872target_cpu
873target
874host_os
875host_vendor
876host_cpu
877host
878build_os
879build_vendor
880build_cpu
881build
882target_alias
883host_alias
884build_alias
885LIBS
886ECHO_T
887ECHO_N
888ECHO_C
889DEFS
890mandir
891localedir
892libdir
893psdir
894pdfdir
895dvidir
896htmldir
897infodir
898docdir
899oldincludedir
900includedir
901localstatedir
902sharedstatedir
903sysconfdir
904datadir
905datarootdir
906libexecdir
907sbindir
908bindir
909program_transform_name
910prefix
911exec_prefix
912PACKAGE_URL
913PACKAGE_BUGREPORT
914PACKAGE_STRING
915PACKAGE_VERSION
916PACKAGE_TARNAME
917PACKAGE_NAME
918PATH_SEPARATOR
919SHELL'
920ac_subst_files='option_includes
921language_hooks'
922ac_user_opts='
923enable_option_checking
924with_build_libsubdir
925with_local_prefix
926with_native_system_header_dir
927with_build_sysroot
928with_sysroot
929with_gxx_include_dir
930with_cpp_install_dir
931enable_generated_files_in_srcdir
932with_gnu_ld
933with_ld
934with_demangler_in_ld
935with_gnu_as
936with_as
937enable_largefile
938enable_build_format_warnings
939enable_werror_always
940enable_checking
941enable_coverage
942enable_gather_detailed_mem_stats
943enable_valgrind_annotations
944with_stabs
945enable_multilib
946enable_multiarch
947with_stack_clash_protection_guard_size
948enable___cxa_atexit
949enable_decimal_float
950enable_fixed_point
951enable_threads
952enable_tls
953enable_vtable_verify
954enable_objc_gc
955with_dwarf2
956enable_shared
957enable_gcov
958with_specs
959with_pkgversion
960with_bugurl
961enable_languages
962with_multilib_list
963enable_rpath
964with_libiconv_prefix
965enable_sjlj_exceptions
966with_gcc_major_version_only
967enable_secureplt
968enable_mingw_wildcard
969enable_large_address_aware
970enable_leading_mingw64_underscores
971enable_cld
972enable_frame_pointer
973enable_win32_registry
974enable_static
975with_pic
976enable_fast_install
977enable_libtool_lock
978enable_ld
979enable_gold
980with_plugin_ld
981enable_gnu_indirect_function
982enable_initfini_array
983enable_comdat
984enable_standard_branch_protection
985enable_fix_cortex_a53_835769
986enable_fix_cortex_a53_843419
987with_glibc_version
988enable_gnu_unique_object
989enable_linker_build_id
990enable_libssp
991enable_default_ssp
992with_long_double_128
993with_long_double_format
994with_gc
995with_system_zlib
996enable_maintainer_mode
997enable_link_mutex
998enable_version_specific_runtime_libs
999enable_plugin
1000enable_host_shared
1001enable_libquadmath_support
1002with_linker_hash_style
1003with_diagnostics_color
1004enable_default_pie
1005'
1006      ac_precious_vars='build_alias
1007host_alias
1008target_alias
1009CC
1010CFLAGS
1011LDFLAGS
1012LIBS
1013CPPFLAGS
1014CXX
1015CXXFLAGS
1016CCC
1017CXXCPP
1018CPP
1019GMPLIBS
1020GMPINC
1021ISLLIBS
1022ISLINC'
1023
1024
1025# Initialize some variables set by options.
1026ac_init_help=
1027ac_init_version=false
1028ac_unrecognized_opts=
1029ac_unrecognized_sep=
1030# The variables have the same names as the options, with
1031# dashes changed to underlines.
1032cache_file=/dev/null
1033exec_prefix=NONE
1034no_create=
1035no_recursion=
1036prefix=NONE
1037program_prefix=NONE
1038program_suffix=NONE
1039program_transform_name=s,x,x,
1040silent=
1041site=
1042srcdir=
1043verbose=
1044x_includes=NONE
1045x_libraries=NONE
1046
1047# Installation directory options.
1048# These are left unexpanded so users can "make install exec_prefix=/foo"
1049# and all the variables that are supposed to be based on exec_prefix
1050# by default will actually change.
1051# Use braces instead of parens because sh, perl, etc. also accept them.
1052# (The list follows the same order as the GNU Coding Standards.)
1053bindir='${exec_prefix}/bin'
1054sbindir='${exec_prefix}/sbin'
1055libexecdir='${exec_prefix}/libexec'
1056datarootdir='${prefix}/share'
1057datadir='${datarootdir}'
1058sysconfdir='${prefix}/etc'
1059sharedstatedir='${prefix}/com'
1060localstatedir='${prefix}/var'
1061includedir='${prefix}/include'
1062oldincludedir='/usr/include'
1063docdir='${datarootdir}/doc/${PACKAGE}'
1064infodir='${datarootdir}/info'
1065htmldir='${docdir}'
1066dvidir='${docdir}'
1067pdfdir='${docdir}'
1068psdir='${docdir}'
1069libdir='${exec_prefix}/lib'
1070localedir='${datarootdir}/locale'
1071mandir='${datarootdir}/man'
1072
1073ac_prev=
1074ac_dashdash=
1075for ac_option
1076do
1077  # If the previous option needs an argument, assign it.
1078  if test -n "$ac_prev"; then
1079    eval $ac_prev=\$ac_option
1080    ac_prev=
1081    continue
1082  fi
1083
1084  case $ac_option in
1085  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1086  *=)   ac_optarg= ;;
1087  *)    ac_optarg=yes ;;
1088  esac
1089
1090  # Accept the important Cygnus configure options, so we can diagnose typos.
1091
1092  case $ac_dashdash$ac_option in
1093  --)
1094    ac_dashdash=yes ;;
1095
1096  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1097    ac_prev=bindir ;;
1098  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1099    bindir=$ac_optarg ;;
1100
1101  -build | --build | --buil | --bui | --bu)
1102    ac_prev=build_alias ;;
1103  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1104    build_alias=$ac_optarg ;;
1105
1106  -cache-file | --cache-file | --cache-fil | --cache-fi \
1107  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1108    ac_prev=cache_file ;;
1109  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1110  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1111    cache_file=$ac_optarg ;;
1112
1113  --config-cache | -C)
1114    cache_file=config.cache ;;
1115
1116  -datadir | --datadir | --datadi | --datad)
1117    ac_prev=datadir ;;
1118  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1119    datadir=$ac_optarg ;;
1120
1121  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1122  | --dataroo | --dataro | --datar)
1123    ac_prev=datarootdir ;;
1124  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1125  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1126    datarootdir=$ac_optarg ;;
1127
1128  -disable-* | --disable-*)
1129    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1130    # Reject names that are not valid shell variable names.
1131    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132      as_fn_error $? "invalid feature name: $ac_useropt"
1133    ac_useropt_orig=$ac_useropt
1134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135    case $ac_user_opts in
1136      *"
1137"enable_$ac_useropt"
1138"*) ;;
1139      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1140	 ac_unrecognized_sep=', ';;
1141    esac
1142    eval enable_$ac_useropt=no ;;
1143
1144  -docdir | --docdir | --docdi | --doc | --do)
1145    ac_prev=docdir ;;
1146  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1147    docdir=$ac_optarg ;;
1148
1149  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1150    ac_prev=dvidir ;;
1151  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1152    dvidir=$ac_optarg ;;
1153
1154  -enable-* | --enable-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid feature name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"enable_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval enable_$ac_useropt=\$ac_optarg ;;
1169
1170  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1171  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1172  | --exec | --exe | --ex)
1173    ac_prev=exec_prefix ;;
1174  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1175  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1176  | --exec=* | --exe=* | --ex=*)
1177    exec_prefix=$ac_optarg ;;
1178
1179  -gas | --gas | --ga | --g)
1180    # Obsolete; use --with-gas.
1181    with_gas=yes ;;
1182
1183  -help | --help | --hel | --he | -h)
1184    ac_init_help=long ;;
1185  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1186    ac_init_help=recursive ;;
1187  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1188    ac_init_help=short ;;
1189
1190  -host | --host | --hos | --ho)
1191    ac_prev=host_alias ;;
1192  -host=* | --host=* | --hos=* | --ho=*)
1193    host_alias=$ac_optarg ;;
1194
1195  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1196    ac_prev=htmldir ;;
1197  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1198  | --ht=*)
1199    htmldir=$ac_optarg ;;
1200
1201  -includedir | --includedir | --includedi | --included | --include \
1202  | --includ | --inclu | --incl | --inc)
1203    ac_prev=includedir ;;
1204  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1205  | --includ=* | --inclu=* | --incl=* | --inc=*)
1206    includedir=$ac_optarg ;;
1207
1208  -infodir | --infodir | --infodi | --infod | --info | --inf)
1209    ac_prev=infodir ;;
1210  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1211    infodir=$ac_optarg ;;
1212
1213  -libdir | --libdir | --libdi | --libd)
1214    ac_prev=libdir ;;
1215  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1216    libdir=$ac_optarg ;;
1217
1218  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1219  | --libexe | --libex | --libe)
1220    ac_prev=libexecdir ;;
1221  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1222  | --libexe=* | --libex=* | --libe=*)
1223    libexecdir=$ac_optarg ;;
1224
1225  -localedir | --localedir | --localedi | --localed | --locale)
1226    ac_prev=localedir ;;
1227  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1228    localedir=$ac_optarg ;;
1229
1230  -localstatedir | --localstatedir | --localstatedi | --localstated \
1231  | --localstate | --localstat | --localsta | --localst | --locals)
1232    ac_prev=localstatedir ;;
1233  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1234  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1235    localstatedir=$ac_optarg ;;
1236
1237  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1238    ac_prev=mandir ;;
1239  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1240    mandir=$ac_optarg ;;
1241
1242  -nfp | --nfp | --nf)
1243    # Obsolete; use --without-fp.
1244    with_fp=no ;;
1245
1246  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1247  | --no-cr | --no-c | -n)
1248    no_create=yes ;;
1249
1250  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1251  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1252    no_recursion=yes ;;
1253
1254  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1255  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1256  | --oldin | --oldi | --old | --ol | --o)
1257    ac_prev=oldincludedir ;;
1258  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1259  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1260  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1261    oldincludedir=$ac_optarg ;;
1262
1263  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1264    ac_prev=prefix ;;
1265  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1266    prefix=$ac_optarg ;;
1267
1268  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1269  | --program-pre | --program-pr | --program-p)
1270    ac_prev=program_prefix ;;
1271  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1272  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1273    program_prefix=$ac_optarg ;;
1274
1275  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1276  | --program-suf | --program-su | --program-s)
1277    ac_prev=program_suffix ;;
1278  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1279  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1280    program_suffix=$ac_optarg ;;
1281
1282  -program-transform-name | --program-transform-name \
1283  | --program-transform-nam | --program-transform-na \
1284  | --program-transform-n | --program-transform- \
1285  | --program-transform | --program-transfor \
1286  | --program-transfo | --program-transf \
1287  | --program-trans | --program-tran \
1288  | --progr-tra | --program-tr | --program-t)
1289    ac_prev=program_transform_name ;;
1290  -program-transform-name=* | --program-transform-name=* \
1291  | --program-transform-nam=* | --program-transform-na=* \
1292  | --program-transform-n=* | --program-transform-=* \
1293  | --program-transform=* | --program-transfor=* \
1294  | --program-transfo=* | --program-transf=* \
1295  | --program-trans=* | --program-tran=* \
1296  | --progr-tra=* | --program-tr=* | --program-t=*)
1297    program_transform_name=$ac_optarg ;;
1298
1299  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1300    ac_prev=pdfdir ;;
1301  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1302    pdfdir=$ac_optarg ;;
1303
1304  -psdir | --psdir | --psdi | --psd | --ps)
1305    ac_prev=psdir ;;
1306  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1307    psdir=$ac_optarg ;;
1308
1309  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310  | -silent | --silent | --silen | --sile | --sil)
1311    silent=yes ;;
1312
1313  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1314    ac_prev=sbindir ;;
1315  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1316  | --sbi=* | --sb=*)
1317    sbindir=$ac_optarg ;;
1318
1319  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1320  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1321  | --sharedst | --shareds | --shared | --share | --shar \
1322  | --sha | --sh)
1323    ac_prev=sharedstatedir ;;
1324  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1325  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1326  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1327  | --sha=* | --sh=*)
1328    sharedstatedir=$ac_optarg ;;
1329
1330  -site | --site | --sit)
1331    ac_prev=site ;;
1332  -site=* | --site=* | --sit=*)
1333    site=$ac_optarg ;;
1334
1335  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1336    ac_prev=srcdir ;;
1337  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1338    srcdir=$ac_optarg ;;
1339
1340  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1341  | --syscon | --sysco | --sysc | --sys | --sy)
1342    ac_prev=sysconfdir ;;
1343  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1344  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1345    sysconfdir=$ac_optarg ;;
1346
1347  -target | --target | --targe | --targ | --tar | --ta | --t)
1348    ac_prev=target_alias ;;
1349  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1350    target_alias=$ac_optarg ;;
1351
1352  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1353    verbose=yes ;;
1354
1355  -version | --version | --versio | --versi | --vers | -V)
1356    ac_init_version=: ;;
1357
1358  -with-* | --with-*)
1359    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1360    # Reject names that are not valid shell variable names.
1361    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1362      as_fn_error $? "invalid package name: $ac_useropt"
1363    ac_useropt_orig=$ac_useropt
1364    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365    case $ac_user_opts in
1366      *"
1367"with_$ac_useropt"
1368"*) ;;
1369      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1370	 ac_unrecognized_sep=', ';;
1371    esac
1372    eval with_$ac_useropt=\$ac_optarg ;;
1373
1374  -without-* | --without-*)
1375    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1376    # Reject names that are not valid shell variable names.
1377    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1378      as_fn_error $? "invalid package name: $ac_useropt"
1379    ac_useropt_orig=$ac_useropt
1380    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381    case $ac_user_opts in
1382      *"
1383"with_$ac_useropt"
1384"*) ;;
1385      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1386	 ac_unrecognized_sep=', ';;
1387    esac
1388    eval with_$ac_useropt=no ;;
1389
1390  --x)
1391    # Obsolete; use --with-x.
1392    with_x=yes ;;
1393
1394  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1395  | --x-incl | --x-inc | --x-in | --x-i)
1396    ac_prev=x_includes ;;
1397  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1398  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1399    x_includes=$ac_optarg ;;
1400
1401  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1402  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1403    ac_prev=x_libraries ;;
1404  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1405  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1406    x_libraries=$ac_optarg ;;
1407
1408  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1409Try \`$0 --help' for more information"
1410    ;;
1411
1412  *=*)
1413    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1414    # Reject names that are not valid shell variable names.
1415    case $ac_envvar in #(
1416      '' | [0-9]* | *[!_$as_cr_alnum]* )
1417      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1418    esac
1419    eval $ac_envvar=\$ac_optarg
1420    export $ac_envvar ;;
1421
1422  *)
1423    # FIXME: should be removed in autoconf 3.0.
1424    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1425    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1426      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1427    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1428    ;;
1429
1430  esac
1431done
1432
1433if test -n "$ac_prev"; then
1434  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1435  as_fn_error $? "missing argument to $ac_option"
1436fi
1437
1438if test -n "$ac_unrecognized_opts"; then
1439  case $enable_option_checking in
1440    no) ;;
1441    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1442    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1443  esac
1444fi
1445
1446# Check all directory arguments for consistency.
1447for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1448		datadir sysconfdir sharedstatedir localstatedir includedir \
1449		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1450		libdir localedir mandir
1451do
1452  eval ac_val=\$$ac_var
1453  # Remove trailing slashes.
1454  case $ac_val in
1455    */ )
1456      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1457      eval $ac_var=\$ac_val;;
1458  esac
1459  # Be sure to have absolute directory names.
1460  case $ac_val in
1461    [\\/$]* | ?:[\\/]* )  continue;;
1462    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1463  esac
1464  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1465done
1466
1467# There might be people who depend on the old broken behavior: `$host'
1468# used to hold the argument of --host etc.
1469# FIXME: To remove some day.
1470build=$build_alias
1471host=$host_alias
1472target=$target_alias
1473
1474# FIXME: To remove some day.
1475if test "x$host_alias" != x; then
1476  if test "x$build_alias" = x; then
1477    cross_compiling=maybe
1478  elif test "x$build_alias" != "x$host_alias"; then
1479    cross_compiling=yes
1480  fi
1481fi
1482
1483ac_tool_prefix=
1484test -n "$host_alias" && ac_tool_prefix=$host_alias-
1485
1486test "$silent" = yes && exec 6>/dev/null
1487
1488
1489ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490ac_ls_di=`ls -di .` &&
1491ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492  as_fn_error $? "working directory cannot be determined"
1493test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1494  as_fn_error $? "pwd does not report name of working directory"
1495
1496
1497# Find the source files, if location was not specified.
1498if test -z "$srcdir"; then
1499  ac_srcdir_defaulted=yes
1500  # Try the directory containing this script, then the parent directory.
1501  ac_confdir=`$as_dirname -- "$as_myself" ||
1502$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1503	 X"$as_myself" : 'X\(//\)[^/]' \| \
1504	 X"$as_myself" : 'X\(//\)$' \| \
1505	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1506$as_echo X"$as_myself" |
1507    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1508	    s//\1/
1509	    q
1510	  }
1511	  /^X\(\/\/\)[^/].*/{
1512	    s//\1/
1513	    q
1514	  }
1515	  /^X\(\/\/\)$/{
1516	    s//\1/
1517	    q
1518	  }
1519	  /^X\(\/\).*/{
1520	    s//\1/
1521	    q
1522	  }
1523	  s/.*/./; q'`
1524  srcdir=$ac_confdir
1525  if test ! -r "$srcdir/$ac_unique_file"; then
1526    srcdir=..
1527  fi
1528else
1529  ac_srcdir_defaulted=no
1530fi
1531if test ! -r "$srcdir/$ac_unique_file"; then
1532  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1533  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1534fi
1535ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536ac_abs_confdir=`(
1537	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1538	pwd)`
1539# When building in place, set srcdir=.
1540if test "$ac_abs_confdir" = "$ac_pwd"; then
1541  srcdir=.
1542fi
1543# Remove unnecessary trailing slashes from srcdir.
1544# Double slashes in file names in object file debugging info
1545# mess up M-x gdb in Emacs.
1546case $srcdir in
1547*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1548esac
1549for ac_var in $ac_precious_vars; do
1550  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1551  eval ac_env_${ac_var}_value=\$${ac_var}
1552  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1553  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1554done
1555
1556#
1557# Report the --help message.
1558#
1559if test "$ac_init_help" = "long"; then
1560  # Omit some internal or obsolete options to make the list less imposing.
1561  # This message is too long to be a string in the A/UX 3.1 sh.
1562  cat <<_ACEOF
1563\`configure' configures this package to adapt to many kinds of systems.
1564
1565Usage: $0 [OPTION]... [VAR=VALUE]...
1566
1567To assign environment variables (e.g., CC, CFLAGS...), specify them as
1568VAR=VALUE.  See below for descriptions of some of the useful variables.
1569
1570Defaults for the options are specified in brackets.
1571
1572Configuration:
1573  -h, --help              display this help and exit
1574      --help=short        display options specific to this package
1575      --help=recursive    display the short help of all the included packages
1576  -V, --version           display version information and exit
1577  -q, --quiet, --silent   do not print \`checking ...' messages
1578      --cache-file=FILE   cache test results in FILE [disabled]
1579  -C, --config-cache      alias for \`--cache-file=config.cache'
1580  -n, --no-create         do not create output files
1581      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1582
1583Installation directories:
1584  --prefix=PREFIX         install architecture-independent files in PREFIX
1585                          [$ac_default_prefix]
1586  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1587                          [PREFIX]
1588
1589By default, \`make install' will install all the files in
1590\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1591an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1592for instance \`--prefix=\$HOME'.
1593
1594For better control, use the options below.
1595
1596Fine tuning of the installation directories:
1597  --bindir=DIR            user executables [EPREFIX/bin]
1598  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1599  --libexecdir=DIR        program executables [EPREFIX/libexec]
1600  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1601  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1602  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1603  --libdir=DIR            object code libraries [EPREFIX/lib]
1604  --includedir=DIR        C header files [PREFIX/include]
1605  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1606  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1607  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1608  --infodir=DIR           info documentation [DATAROOTDIR/info]
1609  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1610  --mandir=DIR            man documentation [DATAROOTDIR/man]
1611  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1612  --htmldir=DIR           html documentation [DOCDIR]
1613  --dvidir=DIR            dvi documentation [DOCDIR]
1614  --pdfdir=DIR            pdf documentation [DOCDIR]
1615  --psdir=DIR             ps documentation [DOCDIR]
1616_ACEOF
1617
1618  cat <<\_ACEOF
1619
1620Program names:
1621  --program-prefix=PREFIX            prepend PREFIX to installed program names
1622  --program-suffix=SUFFIX            append SUFFIX to installed program names
1623  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1624
1625System types:
1626  --build=BUILD     configure for building on BUILD [guessed]
1627  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1628  --target=TARGET   configure for building compilers for TARGET [HOST]
1629_ACEOF
1630fi
1631
1632if test -n "$ac_init_help"; then
1633
1634  cat <<\_ACEOF
1635
1636Optional Features:
1637  --disable-option-checking  ignore unrecognized --enable/--with options
1638  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1639  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1640  --enable-generated-files-in-srcdir
1641                          put copies of generated files in source dir intended
1642                          for creating source tarballs for users without
1643                          texinfo bison or flex
1644  --disable-largefile     omit support for large files
1645  --disable-build-format-warnings
1646                          don't use -Wformat while building GCC
1647  --enable-werror-always  enable -Werror despite compiler version
1648  --enable-checking[=LIST]
1649                          enable expensive run-time checks. With LIST, enable
1650                          only specific categories of checks. Categories are:
1651                          yes,no,all,none,release. Flags are:
1652                          assert,df,extra,fold,gc,gcac,gimple,misc,
1653                          rtlflag,rtl,runtime,tree,valgrind,types
1654  --enable-coverage[=LEVEL]
1655                          enable compiler's code coverage collection. Use to
1656                          measure compiler performance and locate unused parts
1657                          of the compiler. With LEVEL, specify optimization.
1658                          Values are opt, noopt, default is noopt
1659  --enable-gather-detailed-mem-stats
1660                          enable detailed memory allocation stats gathering
1661  --enable-valgrind-annotations
1662                          enable valgrind runtime interaction
1663  --enable-multilib       enable library support for multiple ABIs
1664  --enable-multiarch      enable support for multiarch paths
1665  --enable-__cxa_atexit   enable __cxa_atexit for C++
1666  --enable-decimal-float={no,yes,bid,dpd}
1667			enable decimal float extension to C.  Selecting 'bid'
1668			or 'dpd' choses which decimal floating point format
1669			to use
1670  --enable-fixed-point    enable fixed-point arithmetic extension to C
1671  --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1672                          package
1673  --enable-tls            enable or disable generation of tls code overriding
1674                          the assembler check for tls support
1675  --enable-vtable-verify  enable vtable verification feature
1676  --enable-objc-gc        enable the use of Boehm's garbage collector with the
1677                          GNU Objective-C runtime
1678  --disable-shared        don't provide a shared libgcc
1679  --disable-gcov          don't provide libgcov and related host tools
1680  --enable-languages=LIST specify which front-ends to build
1681  --disable-rpath         do not hardcode runtime library paths
1682  --enable-sjlj-exceptions
1683                          arrange to use setjmp/longjmp exception handling
1684  --enable-secureplt      enable -msecure-plt by default for PowerPC
1685  --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1686                          Default to platform configuration
1687  --enable-large-address-aware
1688                          Link mingw executables with --large-address-aware
1689  --enable-leading-mingw64-underscores
1690                          enable leading underscores on 64 bit mingw targets
1691  --enable-cld            enable -mcld by default for 32bit x86
1692  --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1693                          x86
1694  --disable-win32-registry
1695                          disable lookup of installation paths in the Registry
1696                          on Windows hosts
1697  --enable-win32-registry enable registry lookup (default)
1698  --enable-win32-registry=KEY
1699                          use KEY instead of GCC version as the last portion
1700                          of the registry key
1701  --enable-shared[=PKGS]  build shared libraries [default=yes]
1702  --enable-static[=PKGS]  build static libraries [default=yes]
1703  --enable-fast-install[=PKGS]
1704                          optimize for fast installation [default=yes]
1705  --disable-libtool-lock  avoid locking (might break parallel builds)
1706  --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1707  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1708  --enable-gnu-indirect-function
1709                          enable the use of the @gnu_indirect_function to
1710                          glibc systems
1711  --enable-initfini-array	use .init_array/.fini_array sections
1712  --enable-comdat         enable COMDAT group support
1713
1714  --enable-standard-branch-protection
1715                          enable Branch Target Identification Mechanism and
1716                          Return Address Signing by default for AArch64
1717  --disable-standard-branch-protection
1718                          disable Branch Target Identification Mechanism and
1719                          Return Address Signing by default for AArch64
1720
1721
1722  --enable-fix-cortex-a53-835769
1723                          enable workaround for AArch64 Cortex-A53 erratum
1724                          835769 by default
1725  --disable-fix-cortex-a53-835769
1726                          disable workaround for AArch64 Cortex-A53 erratum
1727                          835769 by default
1728
1729
1730  --enable-fix-cortex-a53-843419
1731                          enable workaround for AArch64 Cortex-A53 erratum
1732                          843419 by default
1733  --disable-fix-cortex-a53-843419
1734                          disable workaround for AArch64 Cortex-A53 erratum
1735                          843419 by default
1736
1737  --enable-gnu-unique-object
1738                          enable the use of the @gnu_unique_object ELF
1739                          extension on glibc systems
1740  --enable-linker-build-id
1741                          compiler will always pass --build-id to linker
1742  --enable-libssp         enable linking against libssp
1743  --enable-default-ssp    enable Stack Smashing Protection as default
1744  --enable-maintainer-mode
1745                          enable make rules and dependencies not useful (and
1746                          sometimes confusing) to the casual installer
1747  --enable-link-mutex     avoid linking multiple front-ends at once to avoid
1748                          thrashing on the build machine
1749  --enable-version-specific-runtime-libs
1750                          specify that runtime libraries should be installed
1751                          in a compiler-specific directory
1752  --enable-plugin         enable plugin support
1753  --enable-host-shared    build host code as shared libraries
1754  --disable-libquadmath-support
1755                          disable libquadmath support for Fortran
1756  --enable-default-pie    enable Position Independent Executable as default
1757
1758Optional Packages:
1759  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1760  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1761  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1762  --with-local-prefix=DIR specifies directory to put local include
1763  --with-native-system-header-dir=dir
1764                          use dir as the directory to look for standard
1765                          system header files in.  Defaults to /usr/include.
1766  --with-build-sysroot=sysroot
1767                          use sysroot as the system root during the build
1768  --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1769  --with-gxx-include-dir=DIR
1770                          specifies directory to put g++ header files
1771  --with-cpp-install-dir=DIR
1772                          install the user visible C preprocessor in DIR
1773                          (relative to PREFIX) as well as PREFIX/bin
1774  --with-gnu-ld           arrange to work with GNU ld
1775  --with-ld               arrange to use the specified ld (full pathname)
1776  --with-demangler-in-ld  try to use demangler in GNU ld
1777  --with-gnu-as           arrange to work with GNU as
1778  --with-as               arrange to use the specified as (full pathname)
1779  --with-stabs            arrange to use stabs instead of host debug format
1780  --with-stack-clash-protection-guard-size=size
1781                          Set the default stack clash protection guard size
1782                          for specific targets as a power of two in bytes.
1783  --with-dwarf2           force the default debug format to be DWARF 2
1784  --with-specs=SPECS      add SPECS to driver command-line processing
1785  --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1786  --with-bugurl=URL       Direct users to URL to report a bug
1787  --with-multilib-list    select multilibs (AArch64, SH and x86-64 only)
1788  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1789  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1790  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1791  --with-gcc-major-version-only
1792                          use only GCC major number in filesystem paths
1793  --with-pic              try to use only PIC/non-PIC objects [default=use
1794                          both]
1795  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1796  --with-plugin-ld=[ARG]  specify the plugin linker
1797  --with-glibc-version=M.N
1798                          assume GCC used with glibc version M.N or later
1799  --with-long-double-128  use 128-bit long double by default
1800  --with-long-double-format={ieee,ibm}
1801		  Specify whether PowerPC long double uses IEEE or IBM format
1802
1803  --with-gc={page,zone}   this option is not supported anymore. It used to
1804                          choose the garbage collection mechanism to use with
1805                          the compiler
1806  --with-system-zlib      use installed libz
1807  --with-linker-hash-style={sysv,gnu,both}
1808                          specify the linker hash style
1809  --with-diagnostics-color={never,auto,auto-if-env,always}
1810                          specify the default of -fdiagnostics-color option
1811                          auto-if-env stands for -fdiagnostics-color=auto if
1812                          GCC_COLOR environment variable is present and
1813                          -fdiagnostics-color=never otherwise
1814
1815Some influential environment variables:
1816  CC          C compiler command
1817  CFLAGS      C compiler flags
1818  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1819              nonstandard directory <lib dir>
1820  LIBS        libraries to pass to the linker, e.g. -l<library>
1821  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1822              you have headers in a nonstandard directory <include dir>
1823  CXX         C++ compiler command
1824  CXXFLAGS    C++ compiler flags
1825  CXXCPP      C++ preprocessor
1826  CPP         C preprocessor
1827  GMPLIBS     How to link GMP
1828  GMPINC      How to find GMP include files
1829  ISLLIBS     How to link isl
1830  ISLINC      How to find isl include files
1831
1832Use these variables to override the choices made by `configure' or to help
1833it to find libraries and programs with nonstandard names/locations.
1834
1835Report bugs to the package provider.
1836_ACEOF
1837ac_status=$?
1838fi
1839
1840if test "$ac_init_help" = "recursive"; then
1841  # If there are subdirs, report their specific --help.
1842  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1843    test -d "$ac_dir" ||
1844      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1845      continue
1846    ac_builddir=.
1847
1848case "$ac_dir" in
1849.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1850*)
1851  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1852  # A ".." for each directory in $ac_dir_suffix.
1853  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1854  case $ac_top_builddir_sub in
1855  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1856  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1857  esac ;;
1858esac
1859ac_abs_top_builddir=$ac_pwd
1860ac_abs_builddir=$ac_pwd$ac_dir_suffix
1861# for backward compatibility:
1862ac_top_builddir=$ac_top_build_prefix
1863
1864case $srcdir in
1865  .)  # We are building in place.
1866    ac_srcdir=.
1867    ac_top_srcdir=$ac_top_builddir_sub
1868    ac_abs_top_srcdir=$ac_pwd ;;
1869  [\\/]* | ?:[\\/]* )  # Absolute name.
1870    ac_srcdir=$srcdir$ac_dir_suffix;
1871    ac_top_srcdir=$srcdir
1872    ac_abs_top_srcdir=$srcdir ;;
1873  *) # Relative name.
1874    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1875    ac_top_srcdir=$ac_top_build_prefix$srcdir
1876    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1877esac
1878ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1879
1880    cd "$ac_dir" || { ac_status=$?; continue; }
1881    # Check for guested configure.
1882    if test -f "$ac_srcdir/configure.gnu"; then
1883      echo &&
1884      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1885    elif test -f "$ac_srcdir/configure"; then
1886      echo &&
1887      $SHELL "$ac_srcdir/configure" --help=recursive
1888    else
1889      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1890    fi || ac_status=$?
1891    cd "$ac_pwd" || { ac_status=$?; break; }
1892  done
1893fi
1894
1895test -n "$ac_init_help" && exit $ac_status
1896if $ac_init_version; then
1897  cat <<\_ACEOF
1898configure
1899generated by GNU Autoconf 2.69
1900
1901Copyright (C) 2012 Free Software Foundation, Inc.
1902This configure script is free software; the Free Software Foundation
1903gives unlimited permission to copy, distribute and modify it.
1904_ACEOF
1905  exit
1906fi
1907
1908## ------------------------ ##
1909## Autoconf initialization. ##
1910## ------------------------ ##
1911
1912# ac_fn_c_try_compile LINENO
1913# --------------------------
1914# Try to compile conftest.$ac_ext, and return whether this succeeded.
1915ac_fn_c_try_compile ()
1916{
1917  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918  rm -f conftest.$ac_objext
1919  if { { ac_try="$ac_compile"
1920case "(($ac_try" in
1921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922  *) ac_try_echo=$ac_try;;
1923esac
1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925$as_echo "$ac_try_echo"; } >&5
1926  (eval "$ac_compile") 2>conftest.err
1927  ac_status=$?
1928  if test -s conftest.err; then
1929    grep -v '^ *+' conftest.err >conftest.er1
1930    cat conftest.er1 >&5
1931    mv -f conftest.er1 conftest.err
1932  fi
1933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934  test $ac_status = 0; } && {
1935	 test -z "$ac_c_werror_flag" ||
1936	 test ! -s conftest.err
1937       } && test -s conftest.$ac_objext; then :
1938  ac_retval=0
1939else
1940  $as_echo "$as_me: failed program was:" >&5
1941sed 's/^/| /' conftest.$ac_ext >&5
1942
1943	ac_retval=1
1944fi
1945  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946  as_fn_set_status $ac_retval
1947
1948} # ac_fn_c_try_compile
1949
1950# ac_fn_cxx_try_compile LINENO
1951# ----------------------------
1952# Try to compile conftest.$ac_ext, and return whether this succeeded.
1953ac_fn_cxx_try_compile ()
1954{
1955  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956  rm -f conftest.$ac_objext
1957  if { { ac_try="$ac_compile"
1958case "(($ac_try" in
1959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960  *) ac_try_echo=$ac_try;;
1961esac
1962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963$as_echo "$ac_try_echo"; } >&5
1964  (eval "$ac_compile") 2>conftest.err
1965  ac_status=$?
1966  if test -s conftest.err; then
1967    grep -v '^ *+' conftest.err >conftest.er1
1968    cat conftest.er1 >&5
1969    mv -f conftest.er1 conftest.err
1970  fi
1971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972  test $ac_status = 0; } && {
1973	 test -z "$ac_cxx_werror_flag" ||
1974	 test ! -s conftest.err
1975       } && test -s conftest.$ac_objext; then :
1976  ac_retval=0
1977else
1978  $as_echo "$as_me: failed program was:" >&5
1979sed 's/^/| /' conftest.$ac_ext >&5
1980
1981	ac_retval=1
1982fi
1983  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984  as_fn_set_status $ac_retval
1985
1986} # ac_fn_cxx_try_compile
1987
1988# ac_fn_cxx_try_cpp LINENO
1989# ------------------------
1990# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1991ac_fn_cxx_try_cpp ()
1992{
1993  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994  if { { ac_try="$ac_cpp conftest.$ac_ext"
1995case "(($ac_try" in
1996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997  *) ac_try_echo=$ac_try;;
1998esac
1999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000$as_echo "$ac_try_echo"; } >&5
2001  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2002  ac_status=$?
2003  if test -s conftest.err; then
2004    grep -v '^ *+' conftest.err >conftest.er1
2005    cat conftest.er1 >&5
2006    mv -f conftest.er1 conftest.err
2007  fi
2008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009  test $ac_status = 0; } > conftest.i && {
2010	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2011	 test ! -s conftest.err
2012       }; then :
2013  ac_retval=0
2014else
2015  $as_echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018    ac_retval=1
2019fi
2020  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021  as_fn_set_status $ac_retval
2022
2023} # ac_fn_cxx_try_cpp
2024
2025# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2026# ---------------------------------------------------------
2027# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2028# the include files in INCLUDES and setting the cache variable VAR
2029# accordingly.
2030ac_fn_cxx_check_header_mongrel ()
2031{
2032  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033  if eval \${$3+:} false; then :
2034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035$as_echo_n "checking for $2... " >&6; }
2036if eval \${$3+:} false; then :
2037  $as_echo_n "(cached) " >&6
2038fi
2039eval ac_res=\$$3
2040	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041$as_echo "$ac_res" >&6; }
2042else
2043  # Is the header compilable?
2044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2045$as_echo_n "checking $2 usability... " >&6; }
2046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047/* end confdefs.h.  */
2048$4
2049#include <$2>
2050_ACEOF
2051if ac_fn_cxx_try_compile "$LINENO"; then :
2052  ac_header_compiler=yes
2053else
2054  ac_header_compiler=no
2055fi
2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2058$as_echo "$ac_header_compiler" >&6; }
2059
2060# Is the header present?
2061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2062$as_echo_n "checking $2 presence... " >&6; }
2063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h.  */
2065#include <$2>
2066_ACEOF
2067if ac_fn_cxx_try_cpp "$LINENO"; then :
2068  ac_header_preproc=yes
2069else
2070  ac_header_preproc=no
2071fi
2072rm -f conftest.err conftest.i conftest.$ac_ext
2073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2074$as_echo "$ac_header_preproc" >&6; }
2075
2076# So?  What about this header?
2077case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2078  yes:no: )
2079    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2080$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2081    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2082$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2083    ;;
2084  no:yes:* )
2085    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2086$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2087    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2088$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2089    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2090$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2091    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2092$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2093    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2094$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2095    ;;
2096esac
2097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098$as_echo_n "checking for $2... " >&6; }
2099if eval \${$3+:} false; then :
2100  $as_echo_n "(cached) " >&6
2101else
2102  eval "$3=\$ac_header_compiler"
2103fi
2104eval ac_res=\$$3
2105	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106$as_echo "$ac_res" >&6; }
2107fi
2108  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109
2110} # ac_fn_cxx_check_header_mongrel
2111
2112# ac_fn_cxx_try_run LINENO
2113# ------------------------
2114# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2115# that executables *can* be run.
2116ac_fn_cxx_try_run ()
2117{
2118  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119  if { { ac_try="$ac_link"
2120case "(($ac_try" in
2121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122  *) ac_try_echo=$ac_try;;
2123esac
2124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125$as_echo "$ac_try_echo"; } >&5
2126  (eval "$ac_link") 2>&5
2127  ac_status=$?
2128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2130  { { case "(($ac_try" in
2131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132  *) ac_try_echo=$ac_try;;
2133esac
2134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135$as_echo "$ac_try_echo"; } >&5
2136  (eval "$ac_try") 2>&5
2137  ac_status=$?
2138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139  test $ac_status = 0; }; }; then :
2140  ac_retval=0
2141else
2142  $as_echo "$as_me: program exited with status $ac_status" >&5
2143       $as_echo "$as_me: failed program was:" >&5
2144sed 's/^/| /' conftest.$ac_ext >&5
2145
2146       ac_retval=$ac_status
2147fi
2148  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2149  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150  as_fn_set_status $ac_retval
2151
2152} # ac_fn_cxx_try_run
2153
2154# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2155# ---------------------------------------------------------
2156# Tests whether HEADER exists and can be compiled using the include files in
2157# INCLUDES, setting the cache variable VAR accordingly.
2158ac_fn_cxx_check_header_compile ()
2159{
2160  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162$as_echo_n "checking for $2... " >&6; }
2163if eval \${$3+:} false; then :
2164  $as_echo_n "(cached) " >&6
2165else
2166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167/* end confdefs.h.  */
2168$4
2169#include <$2>
2170_ACEOF
2171if ac_fn_cxx_try_compile "$LINENO"; then :
2172  eval "$3=yes"
2173else
2174  eval "$3=no"
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177fi
2178eval ac_res=\$$3
2179	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180$as_echo "$ac_res" >&6; }
2181  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182
2183} # ac_fn_cxx_check_header_compile
2184
2185# ac_fn_c_try_cpp LINENO
2186# ----------------------
2187# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2188ac_fn_c_try_cpp ()
2189{
2190  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191  if { { ac_try="$ac_cpp conftest.$ac_ext"
2192case "(($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_cpp conftest.$ac_ext") 2>conftest.err
2199  ac_status=$?
2200  if test -s conftest.err; then
2201    grep -v '^ *+' conftest.err >conftest.er1
2202    cat conftest.er1 >&5
2203    mv -f conftest.er1 conftest.err
2204  fi
2205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206  test $ac_status = 0; } > conftest.i && {
2207	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2208	 test ! -s conftest.err
2209       }; then :
2210  ac_retval=0
2211else
2212  $as_echo "$as_me: failed program was:" >&5
2213sed 's/^/| /' conftest.$ac_ext >&5
2214
2215    ac_retval=1
2216fi
2217  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218  as_fn_set_status $ac_retval
2219
2220} # ac_fn_c_try_cpp
2221
2222# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2223# ----------------------------------------------
2224# Tries to find the compile-time value of EXPR in a program that includes
2225# INCLUDES, setting VAR accordingly. Returns whether the value could be
2226# computed
2227ac_fn_cxx_compute_int ()
2228{
2229  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230  if test "$cross_compiling" = yes; then
2231    # Depending upon the size, compute the lo and hi bounds.
2232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h.  */
2234$4
2235int
2236main ()
2237{
2238static int test_array [1 - 2 * !(($2) >= 0)];
2239test_array [0] = 0;
2240return test_array [0];
2241
2242  ;
2243  return 0;
2244}
2245_ACEOF
2246if ac_fn_cxx_try_compile "$LINENO"; then :
2247  ac_lo=0 ac_mid=0
2248  while :; do
2249    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250/* end confdefs.h.  */
2251$4
2252int
2253main ()
2254{
2255static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2256test_array [0] = 0;
2257return test_array [0];
2258
2259  ;
2260  return 0;
2261}
2262_ACEOF
2263if ac_fn_cxx_try_compile "$LINENO"; then :
2264  ac_hi=$ac_mid; break
2265else
2266  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2267			if test $ac_lo -le $ac_mid; then
2268			  ac_lo= ac_hi=
2269			  break
2270			fi
2271			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2272fi
2273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274  done
2275else
2276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277/* end confdefs.h.  */
2278$4
2279int
2280main ()
2281{
2282static int test_array [1 - 2 * !(($2) < 0)];
2283test_array [0] = 0;
2284return test_array [0];
2285
2286  ;
2287  return 0;
2288}
2289_ACEOF
2290if ac_fn_cxx_try_compile "$LINENO"; then :
2291  ac_hi=-1 ac_mid=-1
2292  while :; do
2293    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294/* end confdefs.h.  */
2295$4
2296int
2297main ()
2298{
2299static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2300test_array [0] = 0;
2301return test_array [0];
2302
2303  ;
2304  return 0;
2305}
2306_ACEOF
2307if ac_fn_cxx_try_compile "$LINENO"; then :
2308  ac_lo=$ac_mid; break
2309else
2310  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2311			if test $ac_mid -le $ac_hi; then
2312			  ac_lo= ac_hi=
2313			  break
2314			fi
2315			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2316fi
2317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318  done
2319else
2320  ac_lo= ac_hi=
2321fi
2322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323fi
2324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325# Binary search between lo and hi bounds.
2326while test "x$ac_lo" != "x$ac_hi"; do
2327  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h.  */
2330$4
2331int
2332main ()
2333{
2334static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2335test_array [0] = 0;
2336return test_array [0];
2337
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342if ac_fn_cxx_try_compile "$LINENO"; then :
2343  ac_hi=$ac_mid
2344else
2345  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2346fi
2347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348done
2349case $ac_lo in #((
2350?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2351'') ac_retval=1 ;;
2352esac
2353  else
2354    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355/* end confdefs.h.  */
2356$4
2357static long int longval () { return $2; }
2358static unsigned long int ulongval () { return $2; }
2359#include <stdio.h>
2360#include <stdlib.h>
2361int
2362main ()
2363{
2364
2365  FILE *f = fopen ("conftest.val", "w");
2366  if (! f)
2367    return 1;
2368  if (($2) < 0)
2369    {
2370      long int i = longval ();
2371      if (i != ($2))
2372	return 1;
2373      fprintf (f, "%ld", i);
2374    }
2375  else
2376    {
2377      unsigned long int i = ulongval ();
2378      if (i != ($2))
2379	return 1;
2380      fprintf (f, "%lu", i);
2381    }
2382  /* Do not output a trailing newline, as this causes \r\n confusion
2383     on some platforms.  */
2384  return ferror (f) || fclose (f) != 0;
2385
2386  ;
2387  return 0;
2388}
2389_ACEOF
2390if ac_fn_cxx_try_run "$LINENO"; then :
2391  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2392else
2393  ac_retval=1
2394fi
2395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2396  conftest.$ac_objext conftest.beam conftest.$ac_ext
2397rm -f conftest.val
2398
2399  fi
2400  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2401  as_fn_set_status $ac_retval
2402
2403} # ac_fn_cxx_compute_int
2404
2405# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2406# ---------------------------------------------
2407# Tests whether TYPE exists after having included INCLUDES, setting cache
2408# variable VAR accordingly.
2409ac_fn_cxx_check_type ()
2410{
2411  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413$as_echo_n "checking for $2... " >&6; }
2414if eval \${$3+:} false; then :
2415  $as_echo_n "(cached) " >&6
2416else
2417  eval "$3=no"
2418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419/* end confdefs.h.  */
2420$4
2421int
2422main ()
2423{
2424if (sizeof ($2))
2425	 return 0;
2426  ;
2427  return 0;
2428}
2429_ACEOF
2430if ac_fn_cxx_try_compile "$LINENO"; then :
2431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432/* end confdefs.h.  */
2433$4
2434int
2435main ()
2436{
2437if (sizeof (($2)))
2438	    return 0;
2439  ;
2440  return 0;
2441}
2442_ACEOF
2443if ac_fn_cxx_try_compile "$LINENO"; then :
2444
2445else
2446  eval "$3=yes"
2447fi
2448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449fi
2450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451fi
2452eval ac_res=\$$3
2453	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454$as_echo "$ac_res" >&6; }
2455  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2456
2457} # ac_fn_cxx_check_type
2458
2459# ac_fn_c_find_intX_t LINENO BITS VAR
2460# -----------------------------------
2461# Finds a signed integer type with width BITS, setting cache variable VAR
2462# accordingly.
2463ac_fn_c_find_intX_t ()
2464{
2465  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2467$as_echo_n "checking for int$2_t... " >&6; }
2468if eval \${$3+:} false; then :
2469  $as_echo_n "(cached) " >&6
2470else
2471  eval "$3=no"
2472     # Order is important - never check a type that is potentially smaller
2473     # than half of the expected target width.
2474     for ac_type in int$2_t 'int' 'long int' \
2475	 'long long int' 'short int' 'signed char'; do
2476       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477/* end confdefs.h.  */
2478$ac_includes_default
2479	     enum { N = $2 / 2 - 1 };
2480int
2481main ()
2482{
2483static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2484test_array [0] = 0;
2485return test_array [0];
2486
2487  ;
2488  return 0;
2489}
2490_ACEOF
2491if ac_fn_cxx_try_compile "$LINENO"; then :
2492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493/* end confdefs.h.  */
2494$ac_includes_default
2495	        enum { N = $2 / 2 - 1 };
2496int
2497main ()
2498{
2499static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2500		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2501test_array [0] = 0;
2502return test_array [0];
2503
2504  ;
2505  return 0;
2506}
2507_ACEOF
2508if ac_fn_cxx_try_compile "$LINENO"; then :
2509
2510else
2511  case $ac_type in #(
2512  int$2_t) :
2513    eval "$3=yes" ;; #(
2514  *) :
2515    eval "$3=\$ac_type" ;;
2516esac
2517fi
2518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519fi
2520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521       if eval test \"x\$"$3"\" = x"no"; then :
2522
2523else
2524  break
2525fi
2526     done
2527fi
2528eval ac_res=\$$3
2529	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530$as_echo "$ac_res" >&6; }
2531  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532
2533} # ac_fn_c_find_intX_t
2534
2535# ac_fn_cxx_try_link LINENO
2536# -------------------------
2537# Try to link conftest.$ac_ext, and return whether this succeeded.
2538ac_fn_cxx_try_link ()
2539{
2540  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541  rm -f conftest.$ac_objext conftest$ac_exeext
2542  if { { ac_try="$ac_link"
2543case "(($ac_try" in
2544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545  *) ac_try_echo=$ac_try;;
2546esac
2547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548$as_echo "$ac_try_echo"; } >&5
2549  (eval "$ac_link") 2>conftest.err
2550  ac_status=$?
2551  if test -s conftest.err; then
2552    grep -v '^ *+' conftest.err >conftest.er1
2553    cat conftest.er1 >&5
2554    mv -f conftest.er1 conftest.err
2555  fi
2556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557  test $ac_status = 0; } && {
2558	 test -z "$ac_cxx_werror_flag" ||
2559	 test ! -s conftest.err
2560       } && test -s conftest$ac_exeext && {
2561	 test "$cross_compiling" = yes ||
2562	 test -x conftest$ac_exeext
2563       }; then :
2564  ac_retval=0
2565else
2566  $as_echo "$as_me: failed program was:" >&5
2567sed 's/^/| /' conftest.$ac_ext >&5
2568
2569	ac_retval=1
2570fi
2571  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2572  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2573  # interfere with the next link command; also delete a directory that is
2574  # left behind by Apple's compiler.  We do this before executing the actions.
2575  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2576  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2577  as_fn_set_status $ac_retval
2578
2579} # ac_fn_cxx_try_link
2580
2581# ac_fn_c_find_uintX_t LINENO BITS VAR
2582# ------------------------------------
2583# Finds an unsigned integer type with width BITS, setting cache variable VAR
2584# accordingly.
2585ac_fn_c_find_uintX_t ()
2586{
2587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2589$as_echo_n "checking for uint$2_t... " >&6; }
2590if eval \${$3+:} false; then :
2591  $as_echo_n "(cached) " >&6
2592else
2593  eval "$3=no"
2594     # Order is important - never check a type that is potentially smaller
2595     # than half of the expected target width.
2596     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2597	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2598       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599/* end confdefs.h.  */
2600$ac_includes_default
2601int
2602main ()
2603{
2604static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2605test_array [0] = 0;
2606return test_array [0];
2607
2608  ;
2609  return 0;
2610}
2611_ACEOF
2612if ac_fn_cxx_try_compile "$LINENO"; then :
2613  case $ac_type in #(
2614  uint$2_t) :
2615    eval "$3=yes" ;; #(
2616  *) :
2617    eval "$3=\$ac_type" ;;
2618esac
2619fi
2620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621       if eval test \"x\$"$3"\" = x"no"; then :
2622
2623else
2624  break
2625fi
2626     done
2627fi
2628eval ac_res=\$$3
2629	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630$as_echo "$ac_res" >&6; }
2631  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2632
2633} # ac_fn_c_find_uintX_t
2634
2635# ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2636# ------------------------------------------------
2637# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2638ac_fn_cxx_check_header_preproc ()
2639{
2640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2642$as_echo_n "checking for $2... " >&6; }
2643if eval \${$3+:} false; then :
2644  $as_echo_n "(cached) " >&6
2645else
2646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647/* end confdefs.h.  */
2648#include <$2>
2649_ACEOF
2650if ac_fn_cxx_try_cpp "$LINENO"; then :
2651  eval "$3=yes"
2652else
2653  eval "$3=no"
2654fi
2655rm -f conftest.err conftest.i conftest.$ac_ext
2656fi
2657eval ac_res=\$$3
2658	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2659$as_echo "$ac_res" >&6; }
2660  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2661
2662} # ac_fn_cxx_check_header_preproc
2663
2664# ac_fn_cxx_check_func LINENO FUNC VAR
2665# ------------------------------------
2666# Tests whether FUNC exists, setting the cache variable VAR accordingly
2667ac_fn_cxx_check_func ()
2668{
2669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2671$as_echo_n "checking for $2... " >&6; }
2672if eval \${$3+:} false; then :
2673  $as_echo_n "(cached) " >&6
2674else
2675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676/* end confdefs.h.  */
2677/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2678   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2679#define $2 innocuous_$2
2680
2681/* System header to define __stub macros and hopefully few prototypes,
2682    which can conflict with char $2 (); below.
2683    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2684    <limits.h> exists even on freestanding compilers.  */
2685
2686#ifdef __STDC__
2687# include <limits.h>
2688#else
2689# include <assert.h>
2690#endif
2691
2692#undef $2
2693
2694/* Override any GCC internal prototype to avoid an error.
2695   Use char because int might match the return type of a GCC
2696   builtin and then its argument prototype would still apply.  */
2697#ifdef __cplusplus
2698extern "C"
2699#endif
2700char $2 ();
2701/* The GNU C library defines this for functions which it implements
2702    to always fail with ENOSYS.  Some functions are actually named
2703    something starting with __ and the normal name is an alias.  */
2704#if defined __stub_$2 || defined __stub___$2
2705choke me
2706#endif
2707
2708int
2709main ()
2710{
2711return $2 ();
2712  ;
2713  return 0;
2714}
2715_ACEOF
2716if ac_fn_cxx_try_link "$LINENO"; then :
2717  eval "$3=yes"
2718else
2719  eval "$3=no"
2720fi
2721rm -f core conftest.err conftest.$ac_objext \
2722    conftest$ac_exeext conftest.$ac_ext
2723fi
2724eval ac_res=\$$3
2725	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2726$as_echo "$ac_res" >&6; }
2727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728
2729} # ac_fn_cxx_check_func
2730
2731# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2732# -----------------------------------------------
2733# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2734# accordingly.
2735ac_fn_cxx_check_decl ()
2736{
2737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2738  as_decl_name=`echo $2|sed 's/ *(.*//'`
2739  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2741$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2742if eval \${$3+:} false; then :
2743  $as_echo_n "(cached) " >&6
2744else
2745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746/* end confdefs.h.  */
2747$4
2748int
2749main ()
2750{
2751#ifndef $as_decl_name
2752#ifdef __cplusplus
2753  (void) $as_decl_use;
2754#else
2755  (void) $as_decl_name;
2756#endif
2757#endif
2758
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763if ac_fn_cxx_try_compile "$LINENO"; then :
2764  eval "$3=yes"
2765else
2766  eval "$3=no"
2767fi
2768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769fi
2770eval ac_res=\$$3
2771	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2772$as_echo "$ac_res" >&6; }
2773  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2774
2775} # ac_fn_cxx_check_decl
2776
2777# ac_fn_c_try_link LINENO
2778# -----------------------
2779# Try to link conftest.$ac_ext, and return whether this succeeded.
2780ac_fn_c_try_link ()
2781{
2782  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783  rm -f conftest.$ac_objext conftest$ac_exeext
2784  if { { ac_try="$ac_link"
2785case "(($ac_try" in
2786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787  *) ac_try_echo=$ac_try;;
2788esac
2789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2790$as_echo "$ac_try_echo"; } >&5
2791  (eval "$ac_link") 2>conftest.err
2792  ac_status=$?
2793  if test -s conftest.err; then
2794    grep -v '^ *+' conftest.err >conftest.er1
2795    cat conftest.er1 >&5
2796    mv -f conftest.er1 conftest.err
2797  fi
2798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2799  test $ac_status = 0; } && {
2800	 test -z "$ac_c_werror_flag" ||
2801	 test ! -s conftest.err
2802       } && test -s conftest$ac_exeext && {
2803	 test "$cross_compiling" = yes ||
2804	 test -x conftest$ac_exeext
2805       }; then :
2806  ac_retval=0
2807else
2808  $as_echo "$as_me: failed program was:" >&5
2809sed 's/^/| /' conftest.$ac_ext >&5
2810
2811	ac_retval=1
2812fi
2813  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2814  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2815  # interfere with the next link command; also delete a directory that is
2816  # left behind by Apple's compiler.  We do this before executing the actions.
2817  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2818  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2819  as_fn_set_status $ac_retval
2820
2821} # ac_fn_c_try_link
2822
2823# ac_fn_c_check_header_preproc LINENO HEADER VAR
2824# ----------------------------------------------
2825# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2826ac_fn_c_check_header_preproc ()
2827{
2828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2830$as_echo_n "checking for $2... " >&6; }
2831if eval \${$3+:} false; then :
2832  $as_echo_n "(cached) " >&6
2833else
2834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835/* end confdefs.h.  */
2836#include <$2>
2837_ACEOF
2838if ac_fn_c_try_cpp "$LINENO"; then :
2839  eval "$3=yes"
2840else
2841  eval "$3=no"
2842fi
2843rm -f conftest.err conftest.i conftest.$ac_ext
2844fi
2845eval ac_res=\$$3
2846	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2847$as_echo "$ac_res" >&6; }
2848  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2849
2850} # ac_fn_c_check_header_preproc
2851
2852# ac_fn_c_check_func LINENO FUNC VAR
2853# ----------------------------------
2854# Tests whether FUNC exists, setting the cache variable VAR accordingly
2855ac_fn_c_check_func ()
2856{
2857  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2859$as_echo_n "checking for $2... " >&6; }
2860if eval \${$3+:} false; then :
2861  $as_echo_n "(cached) " >&6
2862else
2863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864/* end confdefs.h.  */
2865/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2866   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2867#define $2 innocuous_$2
2868
2869/* System header to define __stub macros and hopefully few prototypes,
2870    which can conflict with char $2 (); below.
2871    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2872    <limits.h> exists even on freestanding compilers.  */
2873
2874#ifdef __STDC__
2875# include <limits.h>
2876#else
2877# include <assert.h>
2878#endif
2879
2880#undef $2
2881
2882/* Override any GCC internal prototype to avoid an error.
2883   Use char because int might match the return type of a GCC
2884   builtin and then its argument prototype would still apply.  */
2885#ifdef __cplusplus
2886extern "C"
2887#endif
2888char $2 ();
2889/* The GNU C library defines this for functions which it implements
2890    to always fail with ENOSYS.  Some functions are actually named
2891    something starting with __ and the normal name is an alias.  */
2892#if defined __stub_$2 || defined __stub___$2
2893choke me
2894#endif
2895
2896int
2897main ()
2898{
2899return $2 ();
2900  ;
2901  return 0;
2902}
2903_ACEOF
2904if ac_fn_c_try_link "$LINENO"; then :
2905  eval "$3=yes"
2906else
2907  eval "$3=no"
2908fi
2909rm -f core conftest.err conftest.$ac_objext \
2910    conftest$ac_exeext conftest.$ac_ext
2911fi
2912eval ac_res=\$$3
2913	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2914$as_echo "$ac_res" >&6; }
2915  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2916
2917} # ac_fn_c_check_func
2918cat >config.log <<_ACEOF
2919This file contains any messages produced by compilers while
2920running configure, to aid debugging if configure makes a mistake.
2921
2922It was created by $as_me, which was
2923generated by GNU Autoconf 2.69.  Invocation command line was
2924
2925  $ $0 $@
2926
2927_ACEOF
2928exec 5>>config.log
2929{
2930cat <<_ASUNAME
2931## --------- ##
2932## Platform. ##
2933## --------- ##
2934
2935hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2936uname -m = `(uname -m) 2>/dev/null || echo unknown`
2937uname -r = `(uname -r) 2>/dev/null || echo unknown`
2938uname -s = `(uname -s) 2>/dev/null || echo unknown`
2939uname -v = `(uname -v) 2>/dev/null || echo unknown`
2940
2941/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2942/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2943
2944/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2945/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2946/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2947/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2948/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2949/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2950/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2951
2952_ASUNAME
2953
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  test -z "$as_dir" && as_dir=.
2959    $as_echo "PATH: $as_dir"
2960  done
2961IFS=$as_save_IFS
2962
2963} >&5
2964
2965cat >&5 <<_ACEOF
2966
2967
2968## ----------- ##
2969## Core tests. ##
2970## ----------- ##
2971
2972_ACEOF
2973
2974
2975# Keep a trace of the command line.
2976# Strip out --no-create and --no-recursion so they do not pile up.
2977# Strip out --silent because we don't want to record it for future runs.
2978# Also quote any args containing shell meta-characters.
2979# Make two passes to allow for proper duplicate-argument suppression.
2980ac_configure_args=
2981ac_configure_args0=
2982ac_configure_args1=
2983ac_must_keep_next=false
2984for ac_pass in 1 2
2985do
2986  for ac_arg
2987  do
2988    case $ac_arg in
2989    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2990    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2991    | -silent | --silent | --silen | --sile | --sil)
2992      continue ;;
2993    *\'*)
2994      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2995    esac
2996    case $ac_pass in
2997    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2998    2)
2999      as_fn_append ac_configure_args1 " '$ac_arg'"
3000      if test $ac_must_keep_next = true; then
3001	ac_must_keep_next=false # Got value, back to normal.
3002      else
3003	case $ac_arg in
3004	  *=* | --config-cache | -C | -disable-* | --disable-* \
3005	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3006	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3007	  | -with-* | --with-* | -without-* | --without-* | --x)
3008	    case "$ac_configure_args0 " in
3009	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3010	    esac
3011	    ;;
3012	  -* ) ac_must_keep_next=true ;;
3013	esac
3014      fi
3015      as_fn_append ac_configure_args " '$ac_arg'"
3016      ;;
3017    esac
3018  done
3019done
3020{ ac_configure_args0=; unset ac_configure_args0;}
3021{ ac_configure_args1=; unset ac_configure_args1;}
3022
3023# When interrupted or exit'd, cleanup temporary files, and complete
3024# config.log.  We remove comments because anyway the quotes in there
3025# would cause problems or look ugly.
3026# WARNING: Use '\'' to represent an apostrophe within the trap.
3027# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3028trap 'exit_status=$?
3029  # Save into config.log some information that might help in debugging.
3030  {
3031    echo
3032
3033    $as_echo "## ---------------- ##
3034## Cache variables. ##
3035## ---------------- ##"
3036    echo
3037    # The following way of writing the cache mishandles newlines in values,
3038(
3039  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3040    eval ac_val=\$$ac_var
3041    case $ac_val in #(
3042    *${as_nl}*)
3043      case $ac_var in #(
3044      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3045$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3046      esac
3047      case $ac_var in #(
3048      _ | IFS | as_nl) ;; #(
3049      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3050      *) { eval $ac_var=; unset $ac_var;} ;;
3051      esac ;;
3052    esac
3053  done
3054  (set) 2>&1 |
3055    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3056    *${as_nl}ac_space=\ *)
3057      sed -n \
3058	"s/'\''/'\''\\\\'\'''\''/g;
3059	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3060      ;; #(
3061    *)
3062      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3063      ;;
3064    esac |
3065    sort
3066)
3067    echo
3068
3069    $as_echo "## ----------------- ##
3070## Output variables. ##
3071## ----------------- ##"
3072    echo
3073    for ac_var in $ac_subst_vars
3074    do
3075      eval ac_val=\$$ac_var
3076      case $ac_val in
3077      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3078      esac
3079      $as_echo "$ac_var='\''$ac_val'\''"
3080    done | sort
3081    echo
3082
3083    if test -n "$ac_subst_files"; then
3084      $as_echo "## ------------------- ##
3085## File substitutions. ##
3086## ------------------- ##"
3087      echo
3088      for ac_var in $ac_subst_files
3089      do
3090	eval ac_val=\$$ac_var
3091	case $ac_val in
3092	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3093	esac
3094	$as_echo "$ac_var='\''$ac_val'\''"
3095      done | sort
3096      echo
3097    fi
3098
3099    if test -s confdefs.h; then
3100      $as_echo "## ----------- ##
3101## confdefs.h. ##
3102## ----------- ##"
3103      echo
3104      cat confdefs.h
3105      echo
3106    fi
3107    test "$ac_signal" != 0 &&
3108      $as_echo "$as_me: caught signal $ac_signal"
3109    $as_echo "$as_me: exit $exit_status"
3110  } >&5
3111  rm -f core *.core core.conftest.* &&
3112    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3113    exit $exit_status
3114' 0
3115for ac_signal in 1 2 13 15; do
3116  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3117done
3118ac_signal=0
3119
3120# confdefs.h avoids OS command line length limits that DEFS can exceed.
3121rm -f -r conftest* confdefs.h
3122
3123$as_echo "/* confdefs.h */" > confdefs.h
3124
3125# Predefined preprocessor variables.
3126
3127cat >>confdefs.h <<_ACEOF
3128#define PACKAGE_NAME "$PACKAGE_NAME"
3129_ACEOF
3130
3131cat >>confdefs.h <<_ACEOF
3132#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3133_ACEOF
3134
3135cat >>confdefs.h <<_ACEOF
3136#define PACKAGE_VERSION "$PACKAGE_VERSION"
3137_ACEOF
3138
3139cat >>confdefs.h <<_ACEOF
3140#define PACKAGE_STRING "$PACKAGE_STRING"
3141_ACEOF
3142
3143cat >>confdefs.h <<_ACEOF
3144#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3145_ACEOF
3146
3147cat >>confdefs.h <<_ACEOF
3148#define PACKAGE_URL "$PACKAGE_URL"
3149_ACEOF
3150
3151
3152# Let the site file select an alternate cache file if it wants to.
3153# Prefer an explicitly selected file to automatically selected ones.
3154ac_site_file1=NONE
3155ac_site_file2=NONE
3156if test -n "$CONFIG_SITE"; then
3157  # We do not want a PATH search for config.site.
3158  case $CONFIG_SITE in #((
3159    -*)  ac_site_file1=./$CONFIG_SITE;;
3160    */*) ac_site_file1=$CONFIG_SITE;;
3161    *)   ac_site_file1=./$CONFIG_SITE;;
3162  esac
3163elif test "x$prefix" != xNONE; then
3164  ac_site_file1=$prefix/share/config.site
3165  ac_site_file2=$prefix/etc/config.site
3166else
3167  ac_site_file1=$ac_default_prefix/share/config.site
3168  ac_site_file2=$ac_default_prefix/etc/config.site
3169fi
3170for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3171do
3172  test "x$ac_site_file" = xNONE && continue
3173  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3174    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3175$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3176    sed 's/^/| /' "$ac_site_file" >&5
3177    . "$ac_site_file" \
3178      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180as_fn_error $? "failed to load site script $ac_site_file
3181See \`config.log' for more details" "$LINENO" 5; }
3182  fi
3183done
3184
3185if test -r "$cache_file"; then
3186  # Some versions of bash will fail to source /dev/null (special files
3187  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3188  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3189    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3190$as_echo "$as_me: loading cache $cache_file" >&6;}
3191    case $cache_file in
3192      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3193      *)                      . "./$cache_file";;
3194    esac
3195  fi
3196else
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3198$as_echo "$as_me: creating cache $cache_file" >&6;}
3199  >$cache_file
3200fi
3201
3202# Check that the precious variables saved in the cache have kept the same
3203# value.
3204ac_cache_corrupted=false
3205for ac_var in $ac_precious_vars; do
3206  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3207  eval ac_new_set=\$ac_env_${ac_var}_set
3208  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3209  eval ac_new_val=\$ac_env_${ac_var}_value
3210  case $ac_old_set,$ac_new_set in
3211    set,)
3212      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3213$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3214      ac_cache_corrupted=: ;;
3215    ,set)
3216      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3217$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3218      ac_cache_corrupted=: ;;
3219    ,);;
3220    *)
3221      if test "x$ac_old_val" != "x$ac_new_val"; then
3222	# differences in whitespace do not lead to failure.
3223	ac_old_val_w=`echo x $ac_old_val`
3224	ac_new_val_w=`echo x $ac_new_val`
3225	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3226	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3227$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3228	  ac_cache_corrupted=:
3229	else
3230	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3231$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3232	  eval $ac_var=\$ac_old_val
3233	fi
3234	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3235$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3236	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3237$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3238      fi;;
3239  esac
3240  # Pass precious variables to config.status.
3241  if test "$ac_new_set" = set; then
3242    case $ac_new_val in
3243    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3244    *) ac_arg=$ac_var=$ac_new_val ;;
3245    esac
3246    case " $ac_configure_args " in
3247      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3248      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3249    esac
3250  fi
3251done
3252if $ac_cache_corrupted; then
3253  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3256$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3257  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3258fi
3259## -------------------- ##
3260## Main body of script. ##
3261## -------------------- ##
3262
3263ac_ext=c
3264ac_cpp='$CPP $CPPFLAGS'
3265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268
3269
3270
3271
3272
3273
3274ac_config_headers="$ac_config_headers auto-host.h:config.in"
3275
3276
3277gcc_version=`cat $srcdir/BASE-VER`
3278
3279# Determine the host, build, and target systems
3280ac_aux_dir=
3281for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3282  if test -f "$ac_dir/install-sh"; then
3283    ac_aux_dir=$ac_dir
3284    ac_install_sh="$ac_aux_dir/install-sh -c"
3285    break
3286  elif test -f "$ac_dir/install.sh"; then
3287    ac_aux_dir=$ac_dir
3288    ac_install_sh="$ac_aux_dir/install.sh -c"
3289    break
3290  elif test -f "$ac_dir/shtool"; then
3291    ac_aux_dir=$ac_dir
3292    ac_install_sh="$ac_aux_dir/shtool install -c"
3293    break
3294  fi
3295done
3296if test -z "$ac_aux_dir"; then
3297  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3298fi
3299
3300# These three variables are undocumented and unsupported,
3301# and are intended to be withdrawn in a future Autoconf release.
3302# They can cause serious problems if a builder's source tree is in a directory
3303# whose full name contains unusual characters.
3304ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3305ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3306ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3307
3308
3309# Make sure we can run config.sub.
3310$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3311  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3312
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3314$as_echo_n "checking build system type... " >&6; }
3315if ${ac_cv_build+:} false; then :
3316  $as_echo_n "(cached) " >&6
3317else
3318  ac_build_alias=$build_alias
3319test "x$ac_build_alias" = x &&
3320  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3321test "x$ac_build_alias" = x &&
3322  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3323ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3324  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3325
3326fi
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3328$as_echo "$ac_cv_build" >&6; }
3329case $ac_cv_build in
3330*-*-*) ;;
3331*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3332esac
3333build=$ac_cv_build
3334ac_save_IFS=$IFS; IFS='-'
3335set x $ac_cv_build
3336shift
3337build_cpu=$1
3338build_vendor=$2
3339shift; shift
3340# Remember, the first character of IFS is used to create $*,
3341# except with old shells:
3342build_os=$*
3343IFS=$ac_save_IFS
3344case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3345
3346
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3348$as_echo_n "checking host system type... " >&6; }
3349if ${ac_cv_host+:} false; then :
3350  $as_echo_n "(cached) " >&6
3351else
3352  if test "x$host_alias" = x; then
3353  ac_cv_host=$ac_cv_build
3354else
3355  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3356    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3357fi
3358
3359fi
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3361$as_echo "$ac_cv_host" >&6; }
3362case $ac_cv_host in
3363*-*-*) ;;
3364*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3365esac
3366host=$ac_cv_host
3367ac_save_IFS=$IFS; IFS='-'
3368set x $ac_cv_host
3369shift
3370host_cpu=$1
3371host_vendor=$2
3372shift; shift
3373# Remember, the first character of IFS is used to create $*,
3374# except with old shells:
3375host_os=$*
3376IFS=$ac_save_IFS
3377case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3378
3379
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3381$as_echo_n "checking target system type... " >&6; }
3382if ${ac_cv_target+:} false; then :
3383  $as_echo_n "(cached) " >&6
3384else
3385  if test "x$target_alias" = x; then
3386  ac_cv_target=$ac_cv_host
3387else
3388  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3389    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3390fi
3391
3392fi
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3394$as_echo "$ac_cv_target" >&6; }
3395case $ac_cv_target in
3396*-*-*) ;;
3397*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3398esac
3399target=$ac_cv_target
3400ac_save_IFS=$IFS; IFS='-'
3401set x $ac_cv_target
3402shift
3403target_cpu=$1
3404target_vendor=$2
3405shift; shift
3406# Remember, the first character of IFS is used to create $*,
3407# except with old shells:
3408target_os=$*
3409IFS=$ac_save_IFS
3410case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3411
3412
3413# The aliases save the names the user supplied, while $host etc.
3414# will get canonicalized.
3415test -n "$target_alias" &&
3416  test "$program_prefix$program_suffix$program_transform_name" = \
3417    NONENONEs,x,x, &&
3418  program_prefix=${target_alias}-
3419
3420# Determine the noncanonical host name, for Ada.
3421 case ${build_alias} in
3422  "") build_noncanonical=${build} ;;
3423  *) build_noncanonical=${build_alias} ;;
3424esac
3425
3426 case ${host_alias} in
3427  "") host_noncanonical=${build_noncanonical} ;;
3428  *) host_noncanonical=${host_alias} ;;
3429esac
3430
3431
3432
3433
3434# Determine the noncanonical target name, for directory use.
3435 case ${target_alias} in
3436  "") target_noncanonical=${host_noncanonical} ;;
3437  *) target_noncanonical=${target_alias} ;;
3438esac
3439
3440
3441
3442
3443# Used for constructing correct paths for offload compilers.
3444real_target_noncanonical=${target_noncanonical}
3445accel_dir_suffix=
3446
3447# Determine the target- and build-specific subdirectories
3448
3449# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3450# have matching libraries, they should use host libraries: Makefile.tpl
3451# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3452# However, they still use the build modules, because the corresponding
3453# host modules (e.g. bison) are only built for the host when bootstrap
3454# finishes. So:
3455# - build_subdir is where we find build modules, and never changes.
3456# - build_libsubdir is where we find build libraries, and can be overridden.
3457
3458# Prefix 'build-' so this never conflicts with target_subdir.
3459build_subdir="build-${build_noncanonical}"
3460
3461# Check whether --with-build-libsubdir was given.
3462if test "${with_build_libsubdir+set}" = set; then :
3463  withval=$with_build_libsubdir; build_libsubdir="$withval"
3464else
3465  build_libsubdir="$build_subdir"
3466fi
3467
3468# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3469if ( test $srcdir = . && test -d gcc ) \
3470   || test -d $srcdir/../host-${host_noncanonical}; then
3471  host_subdir="host-${host_noncanonical}"
3472else
3473  host_subdir=.
3474fi
3475# No prefix.
3476target_subdir=${target_noncanonical}
3477
3478
3479# Set program_transform_name
3480test "$program_prefix" != NONE &&
3481  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3482# Use a double $ so make ignores it.
3483test "$program_suffix" != NONE &&
3484  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3485# Double any \ or $.
3486# By default was `s,x,x', remove it if useless.
3487ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3488program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3489
3490
3491# Check for bogus environment variables.
3492# Test if LIBRARY_PATH contains the notation for the current directory
3493# since this would lead to problems installing/building glibc.
3494# LIBRARY_PATH contains the current directory if one of the following
3495# is true:
3496# - one of the terminals (":" and ";") is the first or last sign
3497# - two terminals occur directly after each other
3498# - the path contains an element with a dot in it
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3500$as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3501case ${LIBRARY_PATH} in
3502  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3503    library_path_setting="contains current directory"
3504    ;;
3505  *)
3506    library_path_setting="ok"
3507    ;;
3508esac
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3510$as_echo "$library_path_setting" >&6; }
3511if test "$library_path_setting" != "ok"; then
3512as_fn_error $? "
3513*** LIBRARY_PATH shouldn't contain the current directory when
3514*** building gcc. Please change the environment variable
3515*** and run configure again." "$LINENO" 5
3516fi
3517
3518# Test if GCC_EXEC_PREFIX contains the notation for the current directory
3519# since this would lead to problems installing/building glibc.
3520# GCC_EXEC_PREFIX contains the current directory if one of the following
3521# is true:
3522# - one of the terminals (":" and ";") is the first or last sign
3523# - two terminals occur directly after each other
3524# - the path contains an element with a dot in it
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3526$as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3527case ${GCC_EXEC_PREFIX} in
3528  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3529    gcc_exec_prefix_setting="contains current directory"
3530    ;;
3531  *)
3532    gcc_exec_prefix_setting="ok"
3533    ;;
3534esac
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3536$as_echo "$gcc_exec_prefix_setting" >&6; }
3537if test "$gcc_exec_prefix_setting" != "ok"; then
3538as_fn_error $? "
3539*** GCC_EXEC_PREFIX shouldn't contain the current directory when
3540*** building gcc. Please change the environment variable
3541*** and run configure again." "$LINENO" 5
3542fi
3543
3544# -----------
3545# Directories
3546# -----------
3547
3548# Specify the local prefix
3549local_prefix=
3550
3551# Check whether --with-local-prefix was given.
3552if test "${with_local_prefix+set}" = set; then :
3553  withval=$with_local_prefix; case "${withval}" in
3554yes)	as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3555no)	;;
3556*)	local_prefix=$with_local_prefix ;;
3557esac
3558fi
3559
3560
3561# Default local prefix if it is empty
3562if test x$local_prefix = x; then
3563	local_prefix=/usr/local
3564fi
3565
3566
3567# Check whether --with-native-system-header-dir was given.
3568if test "${with_native_system_header_dir+set}" = set; then :
3569  withval=$with_native_system_header_dir;
3570 case ${with_native_system_header_dir} in
3571 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3572 /* | [A-Za-z]:[\\/]*) ;;
3573 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3574 esac
3575 configured_native_system_header_dir="${withval}"
3576
3577else
3578  configured_native_system_header_dir=
3579fi
3580
3581
3582
3583# Check whether --with-build-sysroot was given.
3584if test "${with_build_sysroot+set}" = set; then :
3585  withval=$with_build_sysroot; if test x"$withval" != x ; then
3586     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3587   fi
3588else
3589  SYSROOT_CFLAGS_FOR_TARGET=
3590fi
3591
3592
3593
3594if test "x$prefix" = xNONE; then
3595 test_prefix=/usr/local
3596else
3597 test_prefix=$prefix
3598fi
3599if test "x$exec_prefix" = xNONE; then
3600 test_exec_prefix=$test_prefix
3601else
3602 test_exec_prefix=$exec_prefix
3603fi
3604
3605
3606# Check whether --with-sysroot was given.
3607if test "${with_sysroot+set}" = set; then :
3608  withval=$with_sysroot;
3609 case ${with_sysroot} in
3610 /) ;;
3611 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3612 esac
3613 case ${with_sysroot} in
3614 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3615 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3616 esac
3617
3618 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3619 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3620
3621 case ${TARGET_SYSTEM_ROOT} in
3622 "${test_prefix}"|"${test_prefix}/"*|\
3623 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3624 '${prefix}'|'${prefix}/'*|\
3625 '${exec_prefix}'|'${exec_prefix}/'*)
3626   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3627   TARGET_SYSTEM_ROOT_DEFINE="$t"
3628   ;;
3629 esac
3630
3631else
3632
3633 TARGET_SYSTEM_ROOT=
3634 TARGET_SYSTEM_ROOT_DEFINE=
3635 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3636
3637fi
3638
3639
3640
3641
3642
3643# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3644# passed in by the toplevel make and thus we'd get different behavior
3645# depending on where we built the sources.
3646gcc_gxx_include_dir=
3647# Specify the g++ header file directory
3648
3649# Check whether --with-gxx-include-dir was given.
3650if test "${with_gxx_include_dir+set}" = set; then :
3651  withval=$with_gxx_include_dir; case "${withval}" in
3652yes)	as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3653no)	;;
3654*)	gcc_gxx_include_dir=$with_gxx_include_dir ;;
3655esac
3656fi
3657
3658
3659# If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3660# the former in the latter and, upon success, compute gcc_gxx_include_dir as
3661# relative to the sysroot.
3662gcc_gxx_include_dir_add_sysroot=0
3663
3664# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3665if test x${gcc_gxx_include_dir} = x; then
3666  if test x${enable_version_specific_runtime_libs} = xyes; then
3667    gcc_gxx_include_dir='${libsubdir}/include/c++'
3668  else
3669    libstdcxx_incdir='include/c++/$(version)'
3670    if test x$host != x$target; then
3671       libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3672    fi
3673    gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3674  fi
3675elif test "${with_sysroot+set}" = set; then
3676  gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3677  if test "${gcc_gxx_without_sysroot}"; then
3678    gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3679    gcc_gxx_include_dir_add_sysroot=1
3680  fi
3681fi
3682
3683
3684# Check whether --with-cpp_install_dir was given.
3685if test "${with_cpp_install_dir+set}" = set; then :
3686  withval=$with_cpp_install_dir; if test x$withval = xyes; then
3687  as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3688elif test x$withval != xno; then
3689  cpp_install_dir=$withval
3690fi
3691fi
3692
3693
3694# We would like to our source tree to be readonly.  However when releases or
3695# pre-releases are generated, the flex/bison generated files as well as the
3696# various formats of manuals need to be included along with the rest of the
3697# sources.  Therefore we have --enable-generated-files-in-srcdir to do
3698# just that.
3699
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3701$as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3702    # Check whether --enable-generated-files-in-srcdir was given.
3703if test "${enable_generated_files_in_srcdir+set}" = set; then :
3704  enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3705else
3706  generated_files_in_srcdir=no
3707fi
3708
3709
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3711$as_echo "$generated_files_in_srcdir" >&6; }
3712
3713if test "$generated_files_in_srcdir" = "yes"; then
3714  GENINSRC=''
3715else
3716  GENINSRC='#'
3717fi
3718
3719
3720# -------------------
3721# Find default linker
3722# -------------------
3723
3724# With GNU ld
3725
3726# Check whether --with-gnu-ld was given.
3727if test "${with_gnu_ld+set}" = set; then :
3728  withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3729else
3730  gnu_ld_flag=no
3731fi
3732
3733
3734case $target in
3735    *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3736    *) ld64_flag=no;;
3737esac
3738
3739# With pre-defined ld
3740
3741# Check whether --with-ld was given.
3742if test "${with_ld+set}" = set; then :
3743  withval=$with_ld; DEFAULT_LINKER="$with_ld"
3744fi
3745
3746if test x"${DEFAULT_LINKER+set}" = x"set"; then
3747  if test ! -x "$DEFAULT_LINKER"; then
3748    as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3749  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3750    gnu_ld_flag=yes
3751  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3752    ld64_flag=yes
3753  fi
3754
3755cat >>confdefs.h <<_ACEOF
3756#define DEFAULT_LINKER "$DEFAULT_LINKER"
3757_ACEOF
3758
3759fi
3760
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3762$as_echo_n "checking whether a default linker was specified... " >&6; }
3763if test x"${DEFAULT_LINKER+set}" = x"set"; then
3764  if test x"$gnu_ld_flag" = x"no"; then
3765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3766$as_echo "yes ($DEFAULT_LINKER)" >&6; }
3767  else
3768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3769$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3770  fi
3771else
3772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773$as_echo "no" >&6; }
3774fi
3775
3776# With demangler in GNU ld
3777
3778# Check whether --with-demangler-in-ld was given.
3779if test "${with_demangler_in_ld+set}" = set; then :
3780  withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3781else
3782  demangler_in_ld=yes
3783fi
3784
3785
3786# ----------------------
3787# Find default assembler
3788# ----------------------
3789
3790# With GNU as
3791
3792# Check whether --with-gnu-as was given.
3793if test "${with_gnu_as+set}" = set; then :
3794  withval=$with_gnu_as; gas_flag="$with_gnu_as"
3795else
3796  gas_flag=no
3797fi
3798
3799
3800
3801# Check whether --with-as was given.
3802if test "${with_as+set}" = set; then :
3803  withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3804fi
3805
3806if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3807  if test ! -x "$DEFAULT_ASSEMBLER"; then
3808    as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3809  elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3810    gas_flag=yes
3811  fi
3812
3813cat >>confdefs.h <<_ACEOF
3814#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3815_ACEOF
3816
3817fi
3818
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3820$as_echo_n "checking whether a default assembler was specified... " >&6; }
3821if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3822  if test x"$gas_flag" = x"no"; then
3823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3824$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3825  else
3826    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3827$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3828  fi
3829else
3830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831$as_echo "no" >&6; }
3832fi
3833
3834# ---------------
3835# Find C compiler
3836# ---------------
3837
3838# If a non-executable a.out is present (e.g. created by GNU as above even if
3839# invoked with -v only), the IRIX 6 native ld just overwrites the existing
3840# file, even when creating an executable, so an execution test fails.
3841# Remove possible default executable files to avoid this.
3842#
3843# FIXME: This really belongs into AC_PROG_CC and can be removed once
3844# Autoconf includes it.
3845rm -f a.out a.exe b.out
3846
3847# Find the native compiler
3848ac_ext=c
3849ac_cpp='$CPP $CPPFLAGS'
3850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853if test -n "$ac_tool_prefix"; then
3854  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3855set dummy ${ac_tool_prefix}gcc; ac_word=$2
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857$as_echo_n "checking for $ac_word... " >&6; }
3858if ${ac_cv_prog_CC+:} false; then :
3859  $as_echo_n "(cached) " >&6
3860else
3861  if test -n "$CC"; then
3862  ac_cv_prog_CC="$CC" # Let the user override the test.
3863else
3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867  IFS=$as_save_IFS
3868  test -z "$as_dir" && as_dir=.
3869    for ac_exec_ext in '' $ac_executable_extensions; do
3870  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3871    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873    break 2
3874  fi
3875done
3876  done
3877IFS=$as_save_IFS
3878
3879fi
3880fi
3881CC=$ac_cv_prog_CC
3882if test -n "$CC"; then
3883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3884$as_echo "$CC" >&6; }
3885else
3886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887$as_echo "no" >&6; }
3888fi
3889
3890
3891fi
3892if test -z "$ac_cv_prog_CC"; then
3893  ac_ct_CC=$CC
3894  # Extract the first word of "gcc", so it can be a program name with args.
3895set dummy gcc; ac_word=$2
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897$as_echo_n "checking for $ac_word... " >&6; }
3898if ${ac_cv_prog_ac_ct_CC+:} false; then :
3899  $as_echo_n "(cached) " >&6
3900else
3901  if test -n "$ac_ct_CC"; then
3902  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3903else
3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907  IFS=$as_save_IFS
3908  test -z "$as_dir" && as_dir=.
3909    for ac_exec_ext in '' $ac_executable_extensions; do
3910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911    ac_cv_prog_ac_ct_CC="gcc"
3912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913    break 2
3914  fi
3915done
3916  done
3917IFS=$as_save_IFS
3918
3919fi
3920fi
3921ac_ct_CC=$ac_cv_prog_ac_ct_CC
3922if test -n "$ac_ct_CC"; then
3923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3924$as_echo "$ac_ct_CC" >&6; }
3925else
3926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927$as_echo "no" >&6; }
3928fi
3929
3930  if test "x$ac_ct_CC" = x; then
3931    CC=""
3932  else
3933    case $cross_compiling:$ac_tool_warned in
3934yes:)
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937ac_tool_warned=yes ;;
3938esac
3939    CC=$ac_ct_CC
3940  fi
3941else
3942  CC="$ac_cv_prog_CC"
3943fi
3944
3945if test -z "$CC"; then
3946          if test -n "$ac_tool_prefix"; then
3947    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3948set dummy ${ac_tool_prefix}cc; ac_word=$2
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950$as_echo_n "checking for $ac_word... " >&6; }
3951if ${ac_cv_prog_CC+:} false; then :
3952  $as_echo_n "(cached) " >&6
3953else
3954  if test -n "$CC"; then
3955  ac_cv_prog_CC="$CC" # Let the user override the test.
3956else
3957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958for as_dir in $PATH
3959do
3960  IFS=$as_save_IFS
3961  test -z "$as_dir" && as_dir=.
3962    for ac_exec_ext in '' $ac_executable_extensions; do
3963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964    ac_cv_prog_CC="${ac_tool_prefix}cc"
3965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966    break 2
3967  fi
3968done
3969  done
3970IFS=$as_save_IFS
3971
3972fi
3973fi
3974CC=$ac_cv_prog_CC
3975if test -n "$CC"; then
3976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977$as_echo "$CC" >&6; }
3978else
3979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980$as_echo "no" >&6; }
3981fi
3982
3983
3984  fi
3985fi
3986if test -z "$CC"; then
3987  # Extract the first word of "cc", so it can be a program name with args.
3988set dummy cc; ac_word=$2
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990$as_echo_n "checking for $ac_word... " >&6; }
3991if ${ac_cv_prog_CC+:} false; then :
3992  $as_echo_n "(cached) " >&6
3993else
3994  if test -n "$CC"; then
3995  ac_cv_prog_CC="$CC" # Let the user override the test.
3996else
3997  ac_prog_rejected=no
3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH
4000do
4001  IFS=$as_save_IFS
4002  test -z "$as_dir" && as_dir=.
4003    for ac_exec_ext in '' $ac_executable_extensions; do
4004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4005    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4006       ac_prog_rejected=yes
4007       continue
4008     fi
4009    ac_cv_prog_CC="cc"
4010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011    break 2
4012  fi
4013done
4014  done
4015IFS=$as_save_IFS
4016
4017if test $ac_prog_rejected = yes; then
4018  # We found a bogon in the path, so make sure we never use it.
4019  set dummy $ac_cv_prog_CC
4020  shift
4021  if test $# != 0; then
4022    # We chose a different compiler from the bogus one.
4023    # However, it has the same basename, so the bogon will be chosen
4024    # first if we set CC to just the basename; use the full file name.
4025    shift
4026    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4027  fi
4028fi
4029fi
4030fi
4031CC=$ac_cv_prog_CC
4032if test -n "$CC"; then
4033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034$as_echo "$CC" >&6; }
4035else
4036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037$as_echo "no" >&6; }
4038fi
4039
4040
4041fi
4042if test -z "$CC"; then
4043  if test -n "$ac_tool_prefix"; then
4044  for ac_prog in cl.exe
4045  do
4046    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049$as_echo_n "checking for $ac_word... " >&6; }
4050if ${ac_cv_prog_CC+:} false; then :
4051  $as_echo_n "(cached) " >&6
4052else
4053  if test -n "$CC"; then
4054  ac_cv_prog_CC="$CC" # Let the user override the test.
4055else
4056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057for as_dir in $PATH
4058do
4059  IFS=$as_save_IFS
4060  test -z "$as_dir" && as_dir=.
4061    for ac_exec_ext in '' $ac_executable_extensions; do
4062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065    break 2
4066  fi
4067done
4068  done
4069IFS=$as_save_IFS
4070
4071fi
4072fi
4073CC=$ac_cv_prog_CC
4074if test -n "$CC"; then
4075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076$as_echo "$CC" >&6; }
4077else
4078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079$as_echo "no" >&6; }
4080fi
4081
4082
4083    test -n "$CC" && break
4084  done
4085fi
4086if test -z "$CC"; then
4087  ac_ct_CC=$CC
4088  for ac_prog in cl.exe
4089do
4090  # Extract the first word of "$ac_prog", so it can be a program name with args.
4091set dummy $ac_prog; ac_word=$2
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093$as_echo_n "checking for $ac_word... " >&6; }
4094if ${ac_cv_prog_ac_ct_CC+:} false; then :
4095  $as_echo_n "(cached) " >&6
4096else
4097  if test -n "$ac_ct_CC"; then
4098  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4099else
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101for as_dir in $PATH
4102do
4103  IFS=$as_save_IFS
4104  test -z "$as_dir" && as_dir=.
4105    for ac_exec_ext in '' $ac_executable_extensions; do
4106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4107    ac_cv_prog_ac_ct_CC="$ac_prog"
4108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109    break 2
4110  fi
4111done
4112  done
4113IFS=$as_save_IFS
4114
4115fi
4116fi
4117ac_ct_CC=$ac_cv_prog_ac_ct_CC
4118if test -n "$ac_ct_CC"; then
4119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4120$as_echo "$ac_ct_CC" >&6; }
4121else
4122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123$as_echo "no" >&6; }
4124fi
4125
4126
4127  test -n "$ac_ct_CC" && break
4128done
4129
4130  if test "x$ac_ct_CC" = x; then
4131    CC=""
4132  else
4133    case $cross_compiling:$ac_tool_warned in
4134yes:)
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4137ac_tool_warned=yes ;;
4138esac
4139    CC=$ac_ct_CC
4140  fi
4141fi
4142
4143fi
4144
4145
4146test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4148as_fn_error $? "no acceptable C compiler found in \$PATH
4149See \`config.log' for more details" "$LINENO" 5; }
4150
4151# Provide some information about the compiler.
4152$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4153set X $ac_compile
4154ac_compiler=$2
4155for ac_option in --version -v -V -qversion; do
4156  { { ac_try="$ac_compiler $ac_option >&5"
4157case "(($ac_try" in
4158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159  *) ac_try_echo=$ac_try;;
4160esac
4161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4162$as_echo "$ac_try_echo"; } >&5
4163  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4164  ac_status=$?
4165  if test -s conftest.err; then
4166    sed '10a\
4167... rest of stderr output deleted ...
4168         10q' conftest.err >conftest.er1
4169    cat conftest.er1 >&5
4170  fi
4171  rm -f conftest.er1 conftest.err
4172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173  test $ac_status = 0; }
4174done
4175
4176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177/* end confdefs.h.  */
4178
4179int
4180main ()
4181{
4182
4183  ;
4184  return 0;
4185}
4186_ACEOF
4187ac_clean_files_save=$ac_clean_files
4188ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4189# Try to create an executable without -o first, disregard a.out.
4190# It will help us diagnose broken compilers, and finding out an intuition
4191# of exeext.
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4193$as_echo_n "checking whether the C compiler works... " >&6; }
4194ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4195
4196# The possible output files:
4197ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4198
4199ac_rmfiles=
4200for ac_file in $ac_files
4201do
4202  case $ac_file in
4203    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4204    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4205  esac
4206done
4207rm -f $ac_rmfiles
4208
4209if { { ac_try="$ac_link_default"
4210case "(($ac_try" in
4211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212  *) ac_try_echo=$ac_try;;
4213esac
4214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215$as_echo "$ac_try_echo"; } >&5
4216  (eval "$ac_link_default") 2>&5
4217  ac_status=$?
4218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219  test $ac_status = 0; }; then :
4220  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4221# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4222# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4223# so that the user can short-circuit this test for compilers unknown to
4224# Autoconf.
4225for ac_file in $ac_files ''
4226do
4227  test -f "$ac_file" || continue
4228  case $ac_file in
4229    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4230	;;
4231    [ab].out )
4232	# We found the default executable, but exeext='' is most
4233	# certainly right.
4234	break;;
4235    *.* )
4236	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4237	then :; else
4238	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4239	fi
4240	# We set ac_cv_exeext here because the later test for it is not
4241	# safe: cross compilers may not add the suffix if given an `-o'
4242	# argument, so we may need to know it at that point already.
4243	# Even if this section looks crufty: it has the advantage of
4244	# actually working.
4245	break;;
4246    * )
4247	break;;
4248  esac
4249done
4250test "$ac_cv_exeext" = no && ac_cv_exeext=
4251
4252else
4253  ac_file=''
4254fi
4255if test -z "$ac_file"; then :
4256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257$as_echo "no" >&6; }
4258$as_echo "$as_me: failed program was:" >&5
4259sed 's/^/| /' conftest.$ac_ext >&5
4260
4261{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4263as_fn_error 77 "C compiler cannot create executables
4264See \`config.log' for more details" "$LINENO" 5; }
4265else
4266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4267$as_echo "yes" >&6; }
4268fi
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4270$as_echo_n "checking for C compiler default output file name... " >&6; }
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4272$as_echo "$ac_file" >&6; }
4273ac_exeext=$ac_cv_exeext
4274
4275rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4276ac_clean_files=$ac_clean_files_save
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4278$as_echo_n "checking for suffix of executables... " >&6; }
4279if { { ac_try="$ac_link"
4280case "(($ac_try" in
4281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282  *) ac_try_echo=$ac_try;;
4283esac
4284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285$as_echo "$ac_try_echo"; } >&5
4286  (eval "$ac_link") 2>&5
4287  ac_status=$?
4288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289  test $ac_status = 0; }; then :
4290  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4291# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4292# work properly (i.e., refer to `conftest.exe'), while it won't with
4293# `rm'.
4294for ac_file in conftest.exe conftest conftest.*; do
4295  test -f "$ac_file" || continue
4296  case $ac_file in
4297    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4298    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4299	  break;;
4300    * ) break;;
4301  esac
4302done
4303else
4304  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4306as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4307See \`config.log' for more details" "$LINENO" 5; }
4308fi
4309rm -f conftest conftest$ac_cv_exeext
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4311$as_echo "$ac_cv_exeext" >&6; }
4312
4313rm -f conftest.$ac_ext
4314EXEEXT=$ac_cv_exeext
4315ac_exeext=$EXEEXT
4316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317/* end confdefs.h.  */
4318#include <stdio.h>
4319int
4320main ()
4321{
4322FILE *f = fopen ("conftest.out", "w");
4323 return ferror (f) || fclose (f) != 0;
4324
4325  ;
4326  return 0;
4327}
4328_ACEOF
4329ac_clean_files="$ac_clean_files conftest.out"
4330# Check that the compiler produces executables we can run.  If not, either
4331# the compiler is broken, or we cross compile.
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4333$as_echo_n "checking whether we are cross compiling... " >&6; }
4334if test "$cross_compiling" != yes; then
4335  { { ac_try="$ac_link"
4336case "(($ac_try" in
4337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338  *) ac_try_echo=$ac_try;;
4339esac
4340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4341$as_echo "$ac_try_echo"; } >&5
4342  (eval "$ac_link") 2>&5
4343  ac_status=$?
4344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345  test $ac_status = 0; }
4346  if { ac_try='./conftest$ac_cv_exeext'
4347  { { case "(($ac_try" in
4348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349  *) ac_try_echo=$ac_try;;
4350esac
4351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352$as_echo "$ac_try_echo"; } >&5
4353  (eval "$ac_try") 2>&5
4354  ac_status=$?
4355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356  test $ac_status = 0; }; }; then
4357    cross_compiling=no
4358  else
4359    if test "$cross_compiling" = maybe; then
4360	cross_compiling=yes
4361    else
4362	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364as_fn_error $? "cannot run C compiled programs.
4365If you meant to cross compile, use \`--host'.
4366See \`config.log' for more details" "$LINENO" 5; }
4367    fi
4368  fi
4369fi
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4371$as_echo "$cross_compiling" >&6; }
4372
4373rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4374ac_clean_files=$ac_clean_files_save
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4376$as_echo_n "checking for suffix of object files... " >&6; }
4377if ${ac_cv_objext+:} false; then :
4378  $as_echo_n "(cached) " >&6
4379else
4380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h.  */
4382
4383int
4384main ()
4385{
4386
4387  ;
4388  return 0;
4389}
4390_ACEOF
4391rm -f conftest.o conftest.obj
4392if { { ac_try="$ac_compile"
4393case "(($ac_try" in
4394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395  *) ac_try_echo=$ac_try;;
4396esac
4397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398$as_echo "$ac_try_echo"; } >&5
4399  (eval "$ac_compile") 2>&5
4400  ac_status=$?
4401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402  test $ac_status = 0; }; then :
4403  for ac_file in conftest.o conftest.obj conftest.*; do
4404  test -f "$ac_file" || continue;
4405  case $ac_file in
4406    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4407    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4408       break;;
4409  esac
4410done
4411else
4412  $as_echo "$as_me: failed program was:" >&5
4413sed 's/^/| /' conftest.$ac_ext >&5
4414
4415{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4417as_fn_error $? "cannot compute suffix of object files: cannot compile
4418See \`config.log' for more details" "$LINENO" 5; }
4419fi
4420rm -f conftest.$ac_cv_objext conftest.$ac_ext
4421fi
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4423$as_echo "$ac_cv_objext" >&6; }
4424OBJEXT=$ac_cv_objext
4425ac_objext=$OBJEXT
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4427$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4428if ${ac_cv_c_compiler_gnu+:} false; then :
4429  $as_echo_n "(cached) " >&6
4430else
4431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432/* end confdefs.h.  */
4433
4434int
4435main ()
4436{
4437#ifndef __GNUC__
4438       choke me
4439#endif
4440
4441  ;
4442  return 0;
4443}
4444_ACEOF
4445if ac_fn_c_try_compile "$LINENO"; then :
4446  ac_compiler_gnu=yes
4447else
4448  ac_compiler_gnu=no
4449fi
4450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451ac_cv_c_compiler_gnu=$ac_compiler_gnu
4452
4453fi
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4455$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4456if test $ac_compiler_gnu = yes; then
4457  GCC=yes
4458else
4459  GCC=
4460fi
4461ac_test_CFLAGS=${CFLAGS+set}
4462ac_save_CFLAGS=$CFLAGS
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4464$as_echo_n "checking whether $CC accepts -g... " >&6; }
4465if ${ac_cv_prog_cc_g+:} false; then :
4466  $as_echo_n "(cached) " >&6
4467else
4468  ac_save_c_werror_flag=$ac_c_werror_flag
4469   ac_c_werror_flag=yes
4470   ac_cv_prog_cc_g=no
4471   CFLAGS="-g"
4472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473/* end confdefs.h.  */
4474
4475int
4476main ()
4477{
4478
4479  ;
4480  return 0;
4481}
4482_ACEOF
4483if ac_fn_c_try_compile "$LINENO"; then :
4484  ac_cv_prog_cc_g=yes
4485else
4486  CFLAGS=""
4487      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488/* end confdefs.h.  */
4489
4490int
4491main ()
4492{
4493
4494  ;
4495  return 0;
4496}
4497_ACEOF
4498if ac_fn_c_try_compile "$LINENO"; then :
4499
4500else
4501  ac_c_werror_flag=$ac_save_c_werror_flag
4502	 CFLAGS="-g"
4503	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h.  */
4505
4506int
4507main ()
4508{
4509
4510  ;
4511  return 0;
4512}
4513_ACEOF
4514if ac_fn_c_try_compile "$LINENO"; then :
4515  ac_cv_prog_cc_g=yes
4516fi
4517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518fi
4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520fi
4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522   ac_c_werror_flag=$ac_save_c_werror_flag
4523fi
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4525$as_echo "$ac_cv_prog_cc_g" >&6; }
4526if test "$ac_test_CFLAGS" = set; then
4527  CFLAGS=$ac_save_CFLAGS
4528elif test $ac_cv_prog_cc_g = yes; then
4529  if test "$GCC" = yes; then
4530    CFLAGS="-g -O2"
4531  else
4532    CFLAGS="-g"
4533  fi
4534else
4535  if test "$GCC" = yes; then
4536    CFLAGS="-O2"
4537  else
4538    CFLAGS=
4539  fi
4540fi
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4542$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4543if ${ac_cv_prog_cc_c89+:} false; then :
4544  $as_echo_n "(cached) " >&6
4545else
4546  ac_cv_prog_cc_c89=no
4547ac_save_CC=$CC
4548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h.  */
4550#include <stdarg.h>
4551#include <stdio.h>
4552struct stat;
4553/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4554struct buf { int x; };
4555FILE * (*rcsopen) (struct buf *, struct stat *, int);
4556static char *e (p, i)
4557     char **p;
4558     int i;
4559{
4560  return p[i];
4561}
4562static char *f (char * (*g) (char **, int), char **p, ...)
4563{
4564  char *s;
4565  va_list v;
4566  va_start (v,p);
4567  s = g (p, va_arg (v,int));
4568  va_end (v);
4569  return s;
4570}
4571
4572/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4573   function prototypes and stuff, but not '\xHH' hex character constants.
4574   These don't provoke an error unfortunately, instead are silently treated
4575   as 'x'.  The following induces an error, until -std is added to get
4576   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4577   array size at least.  It's necessary to write '\x00'==0 to get something
4578   that's true only with -std.  */
4579int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4580
4581/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4582   inside strings and character constants.  */
4583#define FOO(x) 'x'
4584int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4585
4586int test (int i, double x);
4587struct s1 {int (*f) (int a);};
4588struct s2 {int (*f) (double a);};
4589int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4590int argc;
4591char **argv;
4592int
4593main ()
4594{
4595return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4596  ;
4597  return 0;
4598}
4599_ACEOF
4600for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4601	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4602do
4603  CC="$ac_save_CC $ac_arg"
4604  if ac_fn_c_try_compile "$LINENO"; then :
4605  ac_cv_prog_cc_c89=$ac_arg
4606fi
4607rm -f core conftest.err conftest.$ac_objext
4608  test "x$ac_cv_prog_cc_c89" != "xno" && break
4609done
4610rm -f conftest.$ac_ext
4611CC=$ac_save_CC
4612
4613fi
4614# AC_CACHE_VAL
4615case "x$ac_cv_prog_cc_c89" in
4616  x)
4617    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4618$as_echo "none needed" >&6; } ;;
4619  xno)
4620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4621$as_echo "unsupported" >&6; } ;;
4622  *)
4623    CC="$CC $ac_cv_prog_cc_c89"
4624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4625$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4626esac
4627if test "x$ac_cv_prog_cc_c89" != xno; then :
4628
4629fi
4630
4631ac_ext=c
4632ac_cpp='$CPP $CPPFLAGS'
4633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636
4637ac_ext=cpp
4638ac_cpp='$CXXCPP $CPPFLAGS'
4639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4642if test -z "$CXX"; then
4643  if test -n "$CCC"; then
4644    CXX=$CCC
4645  else
4646    if test -n "$ac_tool_prefix"; then
4647  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4648  do
4649    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652$as_echo_n "checking for $ac_word... " >&6; }
4653if ${ac_cv_prog_CXX+:} false; then :
4654  $as_echo_n "(cached) " >&6
4655else
4656  if test -n "$CXX"; then
4657  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662  IFS=$as_save_IFS
4663  test -z "$as_dir" && as_dir=.
4664    for ac_exec_ext in '' $ac_executable_extensions; do
4665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668    break 2
4669  fi
4670done
4671  done
4672IFS=$as_save_IFS
4673
4674fi
4675fi
4676CXX=$ac_cv_prog_CXX
4677if test -n "$CXX"; then
4678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4679$as_echo "$CXX" >&6; }
4680else
4681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682$as_echo "no" >&6; }
4683fi
4684
4685
4686    test -n "$CXX" && break
4687  done
4688fi
4689if test -z "$CXX"; then
4690  ac_ct_CXX=$CXX
4691  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4692do
4693  # Extract the first word of "$ac_prog", so it can be a program name with args.
4694set dummy $ac_prog; ac_word=$2
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696$as_echo_n "checking for $ac_word... " >&6; }
4697if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4698  $as_echo_n "(cached) " >&6
4699else
4700  if test -n "$ac_ct_CXX"; then
4701  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4702else
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706  IFS=$as_save_IFS
4707  test -z "$as_dir" && as_dir=.
4708    for ac_exec_ext in '' $ac_executable_extensions; do
4709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4710    ac_cv_prog_ac_ct_CXX="$ac_prog"
4711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712    break 2
4713  fi
4714done
4715  done
4716IFS=$as_save_IFS
4717
4718fi
4719fi
4720ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4721if test -n "$ac_ct_CXX"; then
4722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4723$as_echo "$ac_ct_CXX" >&6; }
4724else
4725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726$as_echo "no" >&6; }
4727fi
4728
4729
4730  test -n "$ac_ct_CXX" && break
4731done
4732
4733  if test "x$ac_ct_CXX" = x; then
4734    CXX="g++"
4735  else
4736    case $cross_compiling:$ac_tool_warned in
4737yes:)
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740ac_tool_warned=yes ;;
4741esac
4742    CXX=$ac_ct_CXX
4743  fi
4744fi
4745
4746  fi
4747fi
4748# Provide some information about the compiler.
4749$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4750set X $ac_compile
4751ac_compiler=$2
4752for ac_option in --version -v -V -qversion; do
4753  { { ac_try="$ac_compiler $ac_option >&5"
4754case "(($ac_try" in
4755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756  *) ac_try_echo=$ac_try;;
4757esac
4758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4759$as_echo "$ac_try_echo"; } >&5
4760  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4761  ac_status=$?
4762  if test -s conftest.err; then
4763    sed '10a\
4764... rest of stderr output deleted ...
4765         10q' conftest.err >conftest.er1
4766    cat conftest.er1 >&5
4767  fi
4768  rm -f conftest.er1 conftest.err
4769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4770  test $ac_status = 0; }
4771done
4772
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4774$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4775if ${ac_cv_cxx_compiler_gnu+:} false; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779/* end confdefs.h.  */
4780
4781int
4782main ()
4783{
4784#ifndef __GNUC__
4785       choke me
4786#endif
4787
4788  ;
4789  return 0;
4790}
4791_ACEOF
4792if ac_fn_cxx_try_compile "$LINENO"; then :
4793  ac_compiler_gnu=yes
4794else
4795  ac_compiler_gnu=no
4796fi
4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4799
4800fi
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4802$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4803if test $ac_compiler_gnu = yes; then
4804  GXX=yes
4805else
4806  GXX=
4807fi
4808ac_test_CXXFLAGS=${CXXFLAGS+set}
4809ac_save_CXXFLAGS=$CXXFLAGS
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4811$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4812if ${ac_cv_prog_cxx_g+:} false; then :
4813  $as_echo_n "(cached) " >&6
4814else
4815  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4816   ac_cxx_werror_flag=yes
4817   ac_cv_prog_cxx_g=no
4818   CXXFLAGS="-g"
4819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820/* end confdefs.h.  */
4821
4822int
4823main ()
4824{
4825
4826  ;
4827  return 0;
4828}
4829_ACEOF
4830if ac_fn_cxx_try_compile "$LINENO"; then :
4831  ac_cv_prog_cxx_g=yes
4832else
4833  CXXFLAGS=""
4834      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835/* end confdefs.h.  */
4836
4837int
4838main ()
4839{
4840
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845if ac_fn_cxx_try_compile "$LINENO"; then :
4846
4847else
4848  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4849	 CXXFLAGS="-g"
4850	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851/* end confdefs.h.  */
4852
4853int
4854main ()
4855{
4856
4857  ;
4858  return 0;
4859}
4860_ACEOF
4861if ac_fn_cxx_try_compile "$LINENO"; then :
4862  ac_cv_prog_cxx_g=yes
4863fi
4864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865fi
4866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867fi
4868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4872$as_echo "$ac_cv_prog_cxx_g" >&6; }
4873if test "$ac_test_CXXFLAGS" = set; then
4874  CXXFLAGS=$ac_save_CXXFLAGS
4875elif test $ac_cv_prog_cxx_g = yes; then
4876  if test "$GXX" = yes; then
4877    CXXFLAGS="-g -O2"
4878  else
4879    CXXFLAGS="-g"
4880  fi
4881else
4882  if test "$GXX" = yes; then
4883    CXXFLAGS="-O2"
4884  else
4885    CXXFLAGS=
4886  fi
4887fi
4888ac_ext=c
4889ac_cpp='$CPP $CPPFLAGS'
4890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892ac_compiler_gnu=$ac_cv_c_compiler_gnu
4893
4894
4895
4896
4897if test -n "$ac_tool_prefix"; then
4898  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4899set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901$as_echo_n "checking for $ac_word... " >&6; }
4902if ${ac_cv_prog_GNATBIND+:} false; then :
4903  $as_echo_n "(cached) " >&6
4904else
4905  if test -n "$GNATBIND"; then
4906  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4907else
4908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911  IFS=$as_save_IFS
4912  test -z "$as_dir" && as_dir=.
4913    for ac_exec_ext in '' $ac_executable_extensions; do
4914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917    break 2
4918  fi
4919done
4920  done
4921IFS=$as_save_IFS
4922
4923fi
4924fi
4925GNATBIND=$ac_cv_prog_GNATBIND
4926if test -n "$GNATBIND"; then
4927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4928$as_echo "$GNATBIND" >&6; }
4929else
4930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931$as_echo "no" >&6; }
4932fi
4933
4934
4935fi
4936if test -z "$ac_cv_prog_GNATBIND"; then
4937  ac_ct_GNATBIND=$GNATBIND
4938  # Extract the first word of "gnatbind", so it can be a program name with args.
4939set dummy gnatbind; ac_word=$2
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941$as_echo_n "checking for $ac_word... " >&6; }
4942if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  if test -n "$ac_ct_GNATBIND"; then
4946  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4947else
4948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951  IFS=$as_save_IFS
4952  test -z "$as_dir" && as_dir=.
4953    for ac_exec_ext in '' $ac_executable_extensions; do
4954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957    break 2
4958  fi
4959done
4960  done
4961IFS=$as_save_IFS
4962
4963fi
4964fi
4965ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4966if test -n "$ac_ct_GNATBIND"; then
4967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4968$as_echo "$ac_ct_GNATBIND" >&6; }
4969else
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971$as_echo "no" >&6; }
4972fi
4973
4974  if test "x$ac_ct_GNATBIND" = x; then
4975    GNATBIND="no"
4976  else
4977    case $cross_compiling:$ac_tool_warned in
4978yes:)
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4981ac_tool_warned=yes ;;
4982esac
4983    GNATBIND=$ac_ct_GNATBIND
4984  fi
4985else
4986  GNATBIND="$ac_cv_prog_GNATBIND"
4987fi
4988
4989if test -n "$ac_tool_prefix"; then
4990  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4991set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993$as_echo_n "checking for $ac_word... " >&6; }
4994if ${ac_cv_prog_GNATMAKE+:} false; then :
4995  $as_echo_n "(cached) " >&6
4996else
4997  if test -n "$GNATMAKE"; then
4998  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4999else
5000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001for as_dir in $PATH
5002do
5003  IFS=$as_save_IFS
5004  test -z "$as_dir" && as_dir=.
5005    for ac_exec_ext in '' $ac_executable_extensions; do
5006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009    break 2
5010  fi
5011done
5012  done
5013IFS=$as_save_IFS
5014
5015fi
5016fi
5017GNATMAKE=$ac_cv_prog_GNATMAKE
5018if test -n "$GNATMAKE"; then
5019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5020$as_echo "$GNATMAKE" >&6; }
5021else
5022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023$as_echo "no" >&6; }
5024fi
5025
5026
5027fi
5028if test -z "$ac_cv_prog_GNATMAKE"; then
5029  ac_ct_GNATMAKE=$GNATMAKE
5030  # Extract the first word of "gnatmake", so it can be a program name with args.
5031set dummy gnatmake; ac_word=$2
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033$as_echo_n "checking for $ac_word... " >&6; }
5034if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5035  $as_echo_n "(cached) " >&6
5036else
5037  if test -n "$ac_ct_GNATMAKE"; then
5038  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5039else
5040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041for as_dir in $PATH
5042do
5043  IFS=$as_save_IFS
5044  test -z "$as_dir" && as_dir=.
5045    for ac_exec_ext in '' $ac_executable_extensions; do
5046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5047    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049    break 2
5050  fi
5051done
5052  done
5053IFS=$as_save_IFS
5054
5055fi
5056fi
5057ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5058if test -n "$ac_ct_GNATMAKE"; then
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5060$as_echo "$ac_ct_GNATMAKE" >&6; }
5061else
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063$as_echo "no" >&6; }
5064fi
5065
5066  if test "x$ac_ct_GNATMAKE" = x; then
5067    GNATMAKE="no"
5068  else
5069    case $cross_compiling:$ac_tool_warned in
5070yes:)
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5073ac_tool_warned=yes ;;
5074esac
5075    GNATMAKE=$ac_ct_GNATMAKE
5076  fi
5077else
5078  GNATMAKE="$ac_cv_prog_GNATMAKE"
5079fi
5080
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5082$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5083if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5084  $as_echo_n "(cached) " >&6
5085else
5086  cat >conftest.adb <<EOF
5087procedure conftest is begin null; end conftest;
5088EOF
5089acx_cv_cc_gcc_supports_ada=no
5090# There is a bug in old released versions of GCC which causes the
5091# driver to exit successfully when the appropriate language module
5092# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5093# Therefore we must check for the error message as well as an
5094# unsuccessful exit.
5095# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5096# given a .adb file, but produce no object file.  So we must check
5097# if an object file was really produced to guard against this.
5098errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5099if test x"$errors" = x && test -f conftest.$ac_objext; then
5100  acx_cv_cc_gcc_supports_ada=yes
5101fi
5102rm -f conftest.*
5103fi
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5105$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5106
5107if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5108  have_gnat=yes
5109else
5110  have_gnat=no
5111fi
5112
5113
5114# Do configure tests with the C++ compiler, since that's what we build with.
5115ac_ext=cpp
5116ac_cpp='$CXXCPP $CPPFLAGS'
5117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5120
5121
5122# Remove the -O2: for historical reasons, unless bootstrapping we prefer
5123# optimizations to be activated explicitly by the toplevel.
5124case "$CC" in
5125  */prev-gcc/xgcc*) ;;
5126  *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" `
5127     CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" ` ;;
5128esac
5129
5130
5131
5132# Determine PICFLAG for target gnatlib.
5133
5134
5135
5136
5137case "${target}" in
5138    # PIC is the default on some targets or must not be used.
5139    *-*-darwin*)
5140	# For darwin, common symbols are not allowed in MH_DYLIB files
5141	case "${CFLAGS}" in
5142	  # If we are using a compiler supporting mdynamic-no-pic
5143	  # and the option has been tested as safe to add, then cancel
5144	  # it here, since the code generated is incompatible with shared
5145	  # libs.
5146	  *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5147	  *) PICFLAG_FOR_TARGET=-fno-common ;;
5148	esac
5149	;;
5150    alpha*-dec-osf5*)
5151	# PIC is the default.
5152	;;
5153    hppa*64*-*-hpux*)
5154	# PIC is the default for 64-bit PA HP-UX.
5155	;;
5156    i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5157	;;
5158    i[34567]86-*-mingw* | x86_64-*-mingw*)
5159	;;
5160    i[34567]86-*-interix[3-9]*)
5161	# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5162	# Instead, we relocate shared libraries at runtime.
5163	;;
5164    i[34567]86-*-nto-qnx*)
5165	# QNX uses GNU C++, but need to define -shared option too, otherwise
5166	# it will coredump.
5167	PICFLAG_FOR_TARGET='-fPIC -shared'
5168	;;
5169    i[34567]86-pc-msdosdjgpp*)
5170	# DJGPP does not support shared libraries at all.
5171	;;
5172    ia64*-*-hpux*)
5173	# On IA64 HP-UX, PIC is the default but the pic flag
5174	# sets the default TLS model and affects inlining.
5175	PICFLAG_FOR_TARGET=-fPIC
5176	;;
5177    mips-sgi-irix6*)
5178	# PIC is the default.
5179	;;
5180    rs6000-ibm-aix* | powerpc-ibm-aix*)
5181	# All AIX code is PIC.
5182	;;
5183
5184    # Some targets support both -fPIC and -fpic, but prefer the latter.
5185    # FIXME: Why?
5186    i[34567]86-*-* | x86_64-*-*)
5187	PICFLAG_FOR_TARGET=-fpic
5188	;;
5189    # FIXME: Override -fPIC default in libgcc only?
5190    sh-*-linux* | sh[2346lbe]*-*-linux*)
5191	PICFLAG_FOR_TARGET=-fpic
5192	;;
5193    # FIXME: Simplify to sh*-*-netbsd*?
5194    sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5195      sh64-*-netbsd* | sh64l*-*-netbsd*)
5196	PICFLAG_FOR_TARGET=-fpic
5197	;;
5198    # Default to -fPIC unless specified otherwise.
5199    *)
5200	PICFLAG_FOR_TARGET=-fPIC
5201	;;
5202esac
5203
5204# If the user explicitly uses -fpic/-fPIC, keep that.
5205case "${CFLAGS_FOR_TARGET}" in
5206    *-fpic*)
5207	PICFLAG_FOR_TARGET=-fpic
5208	;;
5209    *-fPIC*)
5210	PICFLAG_FOR_TARGET=-fPIC
5211	;;
5212esac
5213
5214
5215
5216# -------------------------
5217# Check C compiler features
5218# -------------------------
5219
5220
5221ac_ext=cpp
5222ac_cpp='$CXXCPP $CPPFLAGS'
5223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5227$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5228if test -z "$CXXCPP"; then
5229  if ${ac_cv_prog_CXXCPP+:} false; then :
5230  $as_echo_n "(cached) " >&6
5231else
5232      # Double quotes because CXXCPP needs to be expanded
5233    for CXXCPP in "$CXX -E" "/lib/cpp"
5234    do
5235      ac_preproc_ok=false
5236for ac_cxx_preproc_warn_flag in '' yes
5237do
5238  # Use a header file that comes with gcc, so configuring glibc
5239  # with a fresh cross-compiler works.
5240  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5241  # <limits.h> exists even on freestanding compilers.
5242  # On the NeXT, cc -E runs the code through the compiler's parser,
5243  # not just through cpp. "Syntax error" is here to catch this case.
5244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245/* end confdefs.h.  */
5246#ifdef __STDC__
5247# include <limits.h>
5248#else
5249# include <assert.h>
5250#endif
5251		     Syntax error
5252_ACEOF
5253if ac_fn_cxx_try_cpp "$LINENO"; then :
5254
5255else
5256  # Broken: fails on valid input.
5257continue
5258fi
5259rm -f conftest.err conftest.i conftest.$ac_ext
5260
5261  # OK, works on sane cases.  Now check whether nonexistent headers
5262  # can be detected and how.
5263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264/* end confdefs.h.  */
5265#include <ac_nonexistent.h>
5266_ACEOF
5267if ac_fn_cxx_try_cpp "$LINENO"; then :
5268  # Broken: success on invalid input.
5269continue
5270else
5271  # Passes both tests.
5272ac_preproc_ok=:
5273break
5274fi
5275rm -f conftest.err conftest.i conftest.$ac_ext
5276
5277done
5278# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5279rm -f conftest.i conftest.err conftest.$ac_ext
5280if $ac_preproc_ok; then :
5281  break
5282fi
5283
5284    done
5285    ac_cv_prog_CXXCPP=$CXXCPP
5286
5287fi
5288  CXXCPP=$ac_cv_prog_CXXCPP
5289else
5290  ac_cv_prog_CXXCPP=$CXXCPP
5291fi
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5293$as_echo "$CXXCPP" >&6; }
5294ac_preproc_ok=false
5295for ac_cxx_preproc_warn_flag in '' yes
5296do
5297  # Use a header file that comes with gcc, so configuring glibc
5298  # with a fresh cross-compiler works.
5299  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5300  # <limits.h> exists even on freestanding compilers.
5301  # On the NeXT, cc -E runs the code through the compiler's parser,
5302  # not just through cpp. "Syntax error" is here to catch this case.
5303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304/* end confdefs.h.  */
5305#ifdef __STDC__
5306# include <limits.h>
5307#else
5308# include <assert.h>
5309#endif
5310		     Syntax error
5311_ACEOF
5312if ac_fn_cxx_try_cpp "$LINENO"; then :
5313
5314else
5315  # Broken: fails on valid input.
5316continue
5317fi
5318rm -f conftest.err conftest.i conftest.$ac_ext
5319
5320  # OK, works on sane cases.  Now check whether nonexistent headers
5321  # can be detected and how.
5322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323/* end confdefs.h.  */
5324#include <ac_nonexistent.h>
5325_ACEOF
5326if ac_fn_cxx_try_cpp "$LINENO"; then :
5327  # Broken: success on invalid input.
5328continue
5329else
5330  # Passes both tests.
5331ac_preproc_ok=:
5332break
5333fi
5334rm -f conftest.err conftest.i conftest.$ac_ext
5335
5336done
5337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5338rm -f conftest.i conftest.err conftest.$ac_ext
5339if $ac_preproc_ok; then :
5340
5341else
5342  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5344as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5345See \`config.log' for more details" "$LINENO" 5; }
5346fi
5347
5348ac_ext=cpp
5349ac_cpp='$CXXCPP $CPPFLAGS'
5350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5353
5354
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5356$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5357if ${ac_cv_path_GREP+:} false; then :
5358  $as_echo_n "(cached) " >&6
5359else
5360  if test -z "$GREP"; then
5361  ac_path_GREP_found=false
5362  # Loop through the user's path and test for each of PROGNAME-LIST
5363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5365do
5366  IFS=$as_save_IFS
5367  test -z "$as_dir" && as_dir=.
5368    for ac_prog in grep ggrep; do
5369    for ac_exec_ext in '' $ac_executable_extensions; do
5370      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5371      as_fn_executable_p "$ac_path_GREP" || continue
5372# Check for GNU ac_path_GREP and select it if it is found.
5373  # Check for GNU $ac_path_GREP
5374case `"$ac_path_GREP" --version 2>&1` in
5375*GNU*)
5376  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5377*)
5378  ac_count=0
5379  $as_echo_n 0123456789 >"conftest.in"
5380  while :
5381  do
5382    cat "conftest.in" "conftest.in" >"conftest.tmp"
5383    mv "conftest.tmp" "conftest.in"
5384    cp "conftest.in" "conftest.nl"
5385    $as_echo 'GREP' >> "conftest.nl"
5386    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5387    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5388    as_fn_arith $ac_count + 1 && ac_count=$as_val
5389    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5390      # Best one so far, save it but keep looking for a better one
5391      ac_cv_path_GREP="$ac_path_GREP"
5392      ac_path_GREP_max=$ac_count
5393    fi
5394    # 10*(2^10) chars as input seems more than enough
5395    test $ac_count -gt 10 && break
5396  done
5397  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5398esac
5399
5400      $ac_path_GREP_found && break 3
5401    done
5402  done
5403  done
5404IFS=$as_save_IFS
5405  if test -z "$ac_cv_path_GREP"; then
5406    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5407  fi
5408else
5409  ac_cv_path_GREP=$GREP
5410fi
5411
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5414$as_echo "$ac_cv_path_GREP" >&6; }
5415 GREP="$ac_cv_path_GREP"
5416
5417
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5419$as_echo_n "checking for egrep... " >&6; }
5420if ${ac_cv_path_EGREP+:} false; then :
5421  $as_echo_n "(cached) " >&6
5422else
5423  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5424   then ac_cv_path_EGREP="$GREP -E"
5425   else
5426     if test -z "$EGREP"; then
5427  ac_path_EGREP_found=false
5428  # Loop through the user's path and test for each of PROGNAME-LIST
5429  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5431do
5432  IFS=$as_save_IFS
5433  test -z "$as_dir" && as_dir=.
5434    for ac_prog in egrep; do
5435    for ac_exec_ext in '' $ac_executable_extensions; do
5436      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5437      as_fn_executable_p "$ac_path_EGREP" || continue
5438# Check for GNU ac_path_EGREP and select it if it is found.
5439  # Check for GNU $ac_path_EGREP
5440case `"$ac_path_EGREP" --version 2>&1` in
5441*GNU*)
5442  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5443*)
5444  ac_count=0
5445  $as_echo_n 0123456789 >"conftest.in"
5446  while :
5447  do
5448    cat "conftest.in" "conftest.in" >"conftest.tmp"
5449    mv "conftest.tmp" "conftest.in"
5450    cp "conftest.in" "conftest.nl"
5451    $as_echo 'EGREP' >> "conftest.nl"
5452    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5453    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5454    as_fn_arith $ac_count + 1 && ac_count=$as_val
5455    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5456      # Best one so far, save it but keep looking for a better one
5457      ac_cv_path_EGREP="$ac_path_EGREP"
5458      ac_path_EGREP_max=$ac_count
5459    fi
5460    # 10*(2^10) chars as input seems more than enough
5461    test $ac_count -gt 10 && break
5462  done
5463  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5464esac
5465
5466      $ac_path_EGREP_found && break 3
5467    done
5468  done
5469  done
5470IFS=$as_save_IFS
5471  if test -z "$ac_cv_path_EGREP"; then
5472    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5473  fi
5474else
5475  ac_cv_path_EGREP=$EGREP
5476fi
5477
5478   fi
5479fi
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5481$as_echo "$ac_cv_path_EGREP" >&6; }
5482 EGREP="$ac_cv_path_EGREP"
5483
5484
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5486$as_echo_n "checking for ANSI C header files... " >&6; }
5487if ${ac_cv_header_stdc+:} false; then :
5488  $as_echo_n "(cached) " >&6
5489else
5490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491/* end confdefs.h.  */
5492#include <stdlib.h>
5493#include <stdarg.h>
5494#include <string.h>
5495#include <float.h>
5496
5497int
5498main ()
5499{
5500
5501  ;
5502  return 0;
5503}
5504_ACEOF
5505if ac_fn_cxx_try_compile "$LINENO"; then :
5506  ac_cv_header_stdc=yes
5507else
5508  ac_cv_header_stdc=no
5509fi
5510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511
5512if test $ac_cv_header_stdc = yes; then
5513  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h.  */
5516#include <string.h>
5517
5518_ACEOF
5519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5520  $EGREP "memchr" >/dev/null 2>&1; then :
5521
5522else
5523  ac_cv_header_stdc=no
5524fi
5525rm -f conftest*
5526
5527fi
5528
5529if test $ac_cv_header_stdc = yes; then
5530  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532/* end confdefs.h.  */
5533#include <stdlib.h>
5534
5535_ACEOF
5536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5537  $EGREP "free" >/dev/null 2>&1; then :
5538
5539else
5540  ac_cv_header_stdc=no
5541fi
5542rm -f conftest*
5543
5544fi
5545
5546if test $ac_cv_header_stdc = yes; then
5547  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5548  if test "$cross_compiling" = yes; then :
5549  :
5550else
5551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h.  */
5553#include <ctype.h>
5554#include <stdlib.h>
5555#if ((' ' & 0x0FF) == 0x020)
5556# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5557# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5558#else
5559# define ISLOWER(c) \
5560		   (('a' <= (c) && (c) <= 'i') \
5561		     || ('j' <= (c) && (c) <= 'r') \
5562		     || ('s' <= (c) && (c) <= 'z'))
5563# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5564#endif
5565
5566#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5567int
5568main ()
5569{
5570  int i;
5571  for (i = 0; i < 256; i++)
5572    if (XOR (islower (i), ISLOWER (i))
5573	|| toupper (i) != TOUPPER (i))
5574      return 2;
5575  return 0;
5576}
5577_ACEOF
5578if ac_fn_cxx_try_run "$LINENO"; then :
5579
5580else
5581  ac_cv_header_stdc=no
5582fi
5583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5584  conftest.$ac_objext conftest.beam conftest.$ac_ext
5585fi
5586
5587fi
5588fi
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5590$as_echo "$ac_cv_header_stdc" >&6; }
5591if test $ac_cv_header_stdc = yes; then
5592
5593$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5594
5595fi
5596
5597# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5598for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5599		  inttypes.h stdint.h unistd.h
5600do :
5601  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5603"
5604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5605  cat >>confdefs.h <<_ACEOF
5606#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5607_ACEOF
5608
5609fi
5610
5611done
5612
5613
5614
5615  ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5616if test "x$ac_cv_header_minix_config_h" = xyes; then :
5617  MINIX=yes
5618else
5619  MINIX=
5620fi
5621
5622
5623  if test "$MINIX" = yes; then
5624
5625$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5626
5627
5628$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5629
5630
5631$as_echo "#define _MINIX 1" >>confdefs.h
5632
5633  fi
5634
5635
5636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5637$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5638if ${ac_cv_safe_to_define___extensions__+:} false; then :
5639  $as_echo_n "(cached) " >&6
5640else
5641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642/* end confdefs.h.  */
5643
5644#         define __EXTENSIONS__ 1
5645          $ac_includes_default
5646int
5647main ()
5648{
5649
5650  ;
5651  return 0;
5652}
5653_ACEOF
5654if ac_fn_cxx_try_compile "$LINENO"; then :
5655  ac_cv_safe_to_define___extensions__=yes
5656else
5657  ac_cv_safe_to_define___extensions__=no
5658fi
5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5662$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5663  test $ac_cv_safe_to_define___extensions__ = yes &&
5664    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5665
5666  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5667
5668  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5669
5670  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5671
5672  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5673
5674
5675ac_ext=c
5676ac_cpp='$CPP $CPPFLAGS'
5677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5679ac_compiler_gnu=$ac_cv_c_compiler_gnu
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5681$as_echo_n "checking how to run the C preprocessor... " >&6; }
5682# On Suns, sometimes $CPP names a directory.
5683if test -n "$CPP" && test -d "$CPP"; then
5684  CPP=
5685fi
5686if test -z "$CPP"; then
5687  if ${ac_cv_prog_CPP+:} false; then :
5688  $as_echo_n "(cached) " >&6
5689else
5690      # Double quotes because CPP needs to be expanded
5691    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5692    do
5693      ac_preproc_ok=false
5694for ac_c_preproc_warn_flag in '' yes
5695do
5696  # Use a header file that comes with gcc, so configuring glibc
5697  # with a fresh cross-compiler works.
5698  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5699  # <limits.h> exists even on freestanding compilers.
5700  # On the NeXT, cc -E runs the code through the compiler's parser,
5701  # not just through cpp. "Syntax error" is here to catch this case.
5702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703/* end confdefs.h.  */
5704#ifdef __STDC__
5705# include <limits.h>
5706#else
5707# include <assert.h>
5708#endif
5709		     Syntax error
5710_ACEOF
5711if ac_fn_c_try_cpp "$LINENO"; then :
5712
5713else
5714  # Broken: fails on valid input.
5715continue
5716fi
5717rm -f conftest.err conftest.i conftest.$ac_ext
5718
5719  # OK, works on sane cases.  Now check whether nonexistent headers
5720  # can be detected and how.
5721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h.  */
5723#include <ac_nonexistent.h>
5724_ACEOF
5725if ac_fn_c_try_cpp "$LINENO"; then :
5726  # Broken: success on invalid input.
5727continue
5728else
5729  # Passes both tests.
5730ac_preproc_ok=:
5731break
5732fi
5733rm -f conftest.err conftest.i conftest.$ac_ext
5734
5735done
5736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5737rm -f conftest.i conftest.err conftest.$ac_ext
5738if $ac_preproc_ok; then :
5739  break
5740fi
5741
5742    done
5743    ac_cv_prog_CPP=$CPP
5744
5745fi
5746  CPP=$ac_cv_prog_CPP
5747else
5748  ac_cv_prog_CPP=$CPP
5749fi
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5751$as_echo "$CPP" >&6; }
5752ac_preproc_ok=false
5753for ac_c_preproc_warn_flag in '' yes
5754do
5755  # Use a header file that comes with gcc, so configuring glibc
5756  # with a fresh cross-compiler works.
5757  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758  # <limits.h> exists even on freestanding compilers.
5759  # On the NeXT, cc -E runs the code through the compiler's parser,
5760  # not just through cpp. "Syntax error" is here to catch this case.
5761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762/* end confdefs.h.  */
5763#ifdef __STDC__
5764# include <limits.h>
5765#else
5766# include <assert.h>
5767#endif
5768		     Syntax error
5769_ACEOF
5770if ac_fn_c_try_cpp "$LINENO"; then :
5771
5772else
5773  # Broken: fails on valid input.
5774continue
5775fi
5776rm -f conftest.err conftest.i conftest.$ac_ext
5777
5778  # OK, works on sane cases.  Now check whether nonexistent headers
5779  # can be detected and how.
5780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781/* end confdefs.h.  */
5782#include <ac_nonexistent.h>
5783_ACEOF
5784if ac_fn_c_try_cpp "$LINENO"; then :
5785  # Broken: success on invalid input.
5786continue
5787else
5788  # Passes both tests.
5789ac_preproc_ok=:
5790break
5791fi
5792rm -f conftest.err conftest.i conftest.$ac_ext
5793
5794done
5795# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5796rm -f conftest.i conftest.err conftest.$ac_ext
5797if $ac_preproc_ok; then :
5798
5799else
5800  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5802as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5803See \`config.log' for more details" "$LINENO" 5; }
5804fi
5805
5806ac_ext=cpp
5807ac_cpp='$CXXCPP $CPPFLAGS'
5808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5811
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5813$as_echo_n "checking for inline... " >&6; }
5814if ${ac_cv_c_inline+:} false; then :
5815  $as_echo_n "(cached) " >&6
5816else
5817  ac_cv_c_inline=no
5818for ac_kw in inline __inline__ __inline; do
5819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820/* end confdefs.h.  */
5821#ifndef __cplusplus
5822typedef int foo_t;
5823static $ac_kw foo_t static_foo () {return 0; }
5824$ac_kw foo_t foo () {return 0; }
5825#endif
5826
5827_ACEOF
5828if ac_fn_cxx_try_compile "$LINENO"; then :
5829  ac_cv_c_inline=$ac_kw
5830fi
5831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832  test "$ac_cv_c_inline" != no && break
5833done
5834
5835fi
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5837$as_echo "$ac_cv_c_inline" >&6; }
5838
5839case $ac_cv_c_inline in
5840  inline | yes) ;;
5841  *)
5842    case $ac_cv_c_inline in
5843      no) ac_val=;;
5844      *) ac_val=$ac_cv_c_inline;;
5845    esac
5846    cat >>confdefs.h <<_ACEOF
5847#ifndef __cplusplus
5848#define inline $ac_val
5849#endif
5850_ACEOF
5851    ;;
5852esac
5853
5854
5855# Check whether --enable-largefile was given.
5856if test "${enable_largefile+set}" = set; then :
5857  enableval=$enable_largefile;
5858fi
5859
5860if test "$enable_largefile" != no; then
5861
5862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5863$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5864if ${ac_cv_sys_largefile_CC+:} false; then :
5865  $as_echo_n "(cached) " >&6
5866else
5867  ac_cv_sys_largefile_CC=no
5868     if test "$GCC" != yes; then
5869       ac_save_CC=$CC
5870       while :; do
5871	 # IRIX 6.2 and later do not support large files by default,
5872	 # so use the C compiler's -n32 option if that helps.
5873	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874/* end confdefs.h.  */
5875#include <sys/types.h>
5876 /* Check that off_t can represent 2**63 - 1 correctly.
5877    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5878    since some C++ compilers masquerading as C compilers
5879    incorrectly reject 9223372036854775807.  */
5880#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5881  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5882		       && LARGE_OFF_T % 2147483647 == 1)
5883		      ? 1 : -1];
5884int
5885main ()
5886{
5887
5888  ;
5889  return 0;
5890}
5891_ACEOF
5892	 if ac_fn_cxx_try_compile "$LINENO"; then :
5893  break
5894fi
5895rm -f core conftest.err conftest.$ac_objext
5896	 CC="$CC -n32"
5897	 if ac_fn_cxx_try_compile "$LINENO"; then :
5898  ac_cv_sys_largefile_CC=' -n32'; break
5899fi
5900rm -f core conftest.err conftest.$ac_objext
5901	 break
5902       done
5903       CC=$ac_save_CC
5904       rm -f conftest.$ac_ext
5905    fi
5906fi
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5908$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5909  if test "$ac_cv_sys_largefile_CC" != no; then
5910    CC=$CC$ac_cv_sys_largefile_CC
5911  fi
5912
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5914$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5915if ${ac_cv_sys_file_offset_bits+:} false; then :
5916  $as_echo_n "(cached) " >&6
5917else
5918  while :; do
5919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h.  */
5921#include <sys/types.h>
5922 /* Check that off_t can represent 2**63 - 1 correctly.
5923    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5924    since some C++ compilers masquerading as C compilers
5925    incorrectly reject 9223372036854775807.  */
5926#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5927  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5928		       && LARGE_OFF_T % 2147483647 == 1)
5929		      ? 1 : -1];
5930int
5931main ()
5932{
5933
5934  ;
5935  return 0;
5936}
5937_ACEOF
5938if ac_fn_cxx_try_compile "$LINENO"; then :
5939  ac_cv_sys_file_offset_bits=no; break
5940fi
5941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943/* end confdefs.h.  */
5944#define _FILE_OFFSET_BITS 64
5945#include <sys/types.h>
5946 /* Check that off_t can represent 2**63 - 1 correctly.
5947    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5948    since some C++ compilers masquerading as C compilers
5949    incorrectly reject 9223372036854775807.  */
5950#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5951  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5952		       && LARGE_OFF_T % 2147483647 == 1)
5953		      ? 1 : -1];
5954int
5955main ()
5956{
5957
5958  ;
5959  return 0;
5960}
5961_ACEOF
5962if ac_fn_cxx_try_compile "$LINENO"; then :
5963  ac_cv_sys_file_offset_bits=64; break
5964fi
5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966  ac_cv_sys_file_offset_bits=unknown
5967  break
5968done
5969fi
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5971$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5972case $ac_cv_sys_file_offset_bits in #(
5973  no | unknown) ;;
5974  *)
5975cat >>confdefs.h <<_ACEOF
5976#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5977_ACEOF
5978;;
5979esac
5980rm -rf conftest*
5981  if test $ac_cv_sys_file_offset_bits = unknown; then
5982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5983$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5984if ${ac_cv_sys_large_files+:} false; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987  while :; do
5988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989/* end confdefs.h.  */
5990#include <sys/types.h>
5991 /* Check that off_t can represent 2**63 - 1 correctly.
5992    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5993    since some C++ compilers masquerading as C compilers
5994    incorrectly reject 9223372036854775807.  */
5995#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5996  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5997		       && LARGE_OFF_T % 2147483647 == 1)
5998		      ? 1 : -1];
5999int
6000main ()
6001{
6002
6003  ;
6004  return 0;
6005}
6006_ACEOF
6007if ac_fn_cxx_try_compile "$LINENO"; then :
6008  ac_cv_sys_large_files=no; break
6009fi
6010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012/* end confdefs.h.  */
6013#define _LARGE_FILES 1
6014#include <sys/types.h>
6015 /* Check that off_t can represent 2**63 - 1 correctly.
6016    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6017    since some C++ compilers masquerading as C compilers
6018    incorrectly reject 9223372036854775807.  */
6019#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6020  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6021		       && LARGE_OFF_T % 2147483647 == 1)
6022		      ? 1 : -1];
6023int
6024main ()
6025{
6026
6027  ;
6028  return 0;
6029}
6030_ACEOF
6031if ac_fn_cxx_try_compile "$LINENO"; then :
6032  ac_cv_sys_large_files=1; break
6033fi
6034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035  ac_cv_sys_large_files=unknown
6036  break
6037done
6038fi
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6040$as_echo "$ac_cv_sys_large_files" >&6; }
6041case $ac_cv_sys_large_files in #(
6042  no | unknown) ;;
6043  *)
6044cat >>confdefs.h <<_ACEOF
6045#define _LARGE_FILES $ac_cv_sys_large_files
6046_ACEOF
6047;;
6048esac
6049rm -rf conftest*
6050  fi
6051
6052
6053fi
6054
6055
6056# sizeof(char) is 1 by definition.
6057# The cast to long int works around a bug in the HP C Compiler
6058# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6059# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6060# This bug is HP SR number 8606223364.
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6062$as_echo_n "checking size of void *... " >&6; }
6063if ${ac_cv_sizeof_void_p+:} false; then :
6064  $as_echo_n "(cached) " >&6
6065else
6066  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
6067
6068else
6069  if test "$ac_cv_type_void_p" = yes; then
6070     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6072as_fn_error 77 "cannot compute sizeof (void *)
6073See \`config.log' for more details" "$LINENO" 5; }
6074   else
6075     ac_cv_sizeof_void_p=0
6076   fi
6077fi
6078
6079fi
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6081$as_echo "$ac_cv_sizeof_void_p" >&6; }
6082
6083
6084
6085cat >>confdefs.h <<_ACEOF
6086#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6087_ACEOF
6088
6089
6090# The cast to long int works around a bug in the HP C Compiler
6091# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6092# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6093# This bug is HP SR number 8606223364.
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6095$as_echo_n "checking size of short... " >&6; }
6096if ${ac_cv_sizeof_short+:} false; then :
6097  $as_echo_n "(cached) " >&6
6098else
6099  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
6100
6101else
6102  if test "$ac_cv_type_short" = yes; then
6103     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6105as_fn_error 77 "cannot compute sizeof (short)
6106See \`config.log' for more details" "$LINENO" 5; }
6107   else
6108     ac_cv_sizeof_short=0
6109   fi
6110fi
6111
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6114$as_echo "$ac_cv_sizeof_short" >&6; }
6115
6116
6117
6118cat >>confdefs.h <<_ACEOF
6119#define SIZEOF_SHORT $ac_cv_sizeof_short
6120_ACEOF
6121
6122
6123# The cast to long int works around a bug in the HP C Compiler
6124# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6125# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6126# This bug is HP SR number 8606223364.
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6128$as_echo_n "checking size of int... " >&6; }
6129if ${ac_cv_sizeof_int+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6133
6134else
6135  if test "$ac_cv_type_int" = yes; then
6136     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6138as_fn_error 77 "cannot compute sizeof (int)
6139See \`config.log' for more details" "$LINENO" 5; }
6140   else
6141     ac_cv_sizeof_int=0
6142   fi
6143fi
6144
6145fi
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6147$as_echo "$ac_cv_sizeof_int" >&6; }
6148
6149
6150
6151cat >>confdefs.h <<_ACEOF
6152#define SIZEOF_INT $ac_cv_sizeof_int
6153_ACEOF
6154
6155
6156# The cast to long int works around a bug in the HP C Compiler
6157# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6158# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6159# This bug is HP SR number 8606223364.
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6161$as_echo_n "checking size of long... " >&6; }
6162if ${ac_cv_sizeof_long+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6166
6167else
6168  if test "$ac_cv_type_long" = yes; then
6169     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6171as_fn_error 77 "cannot compute sizeof (long)
6172See \`config.log' for more details" "$LINENO" 5; }
6173   else
6174     ac_cv_sizeof_long=0
6175   fi
6176fi
6177
6178fi
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6180$as_echo "$ac_cv_sizeof_long" >&6; }
6181
6182
6183
6184cat >>confdefs.h <<_ACEOF
6185#define SIZEOF_LONG $ac_cv_sizeof_long
6186_ACEOF
6187
6188
6189ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6190if test "x$ac_cv_type_long_long" = xyes; then :
6191
6192cat >>confdefs.h <<_ACEOF
6193#define HAVE_LONG_LONG 1
6194_ACEOF
6195
6196# The cast to long int works around a bug in the HP C Compiler
6197# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6198# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6199# This bug is HP SR number 8606223364.
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6201$as_echo_n "checking size of long long... " >&6; }
6202if ${ac_cv_sizeof_long_long+:} false; then :
6203  $as_echo_n "(cached) " >&6
6204else
6205  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6206
6207else
6208  if test "$ac_cv_type_long_long" = yes; then
6209     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6211as_fn_error 77 "cannot compute sizeof (long long)
6212See \`config.log' for more details" "$LINENO" 5; }
6213   else
6214     ac_cv_sizeof_long_long=0
6215   fi
6216fi
6217
6218fi
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6220$as_echo "$ac_cv_sizeof_long_long" >&6; }
6221
6222
6223
6224cat >>confdefs.h <<_ACEOF
6225#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6226_ACEOF
6227
6228
6229fi
6230
6231ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6232case $ac_cv_c_int8_t in #(
6233  no|yes) ;; #(
6234  *)
6235
6236cat >>confdefs.h <<_ACEOF
6237#define int8_t $ac_cv_c_int8_t
6238_ACEOF
6239;;
6240esac
6241
6242ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6243case $ac_cv_c_int16_t in #(
6244  no|yes) ;; #(
6245  *)
6246
6247cat >>confdefs.h <<_ACEOF
6248#define int16_t $ac_cv_c_int16_t
6249_ACEOF
6250;;
6251esac
6252
6253ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6254case $ac_cv_c_int32_t in #(
6255  no|yes) ;; #(
6256  *)
6257
6258cat >>confdefs.h <<_ACEOF
6259#define int32_t $ac_cv_c_int32_t
6260_ACEOF
6261;;
6262esac
6263
6264ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6265case $ac_cv_c_int64_t in #(
6266  no|yes) ;; #(
6267  *)
6268
6269cat >>confdefs.h <<_ACEOF
6270#define int64_t $ac_cv_c_int64_t
6271_ACEOF
6272;;
6273esac
6274
6275
6276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6277$as_echo_n "checking for unsigned long long int... " >&6; }
6278if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6279  $as_echo_n "(cached) " >&6
6280else
6281  ac_cv_type_unsigned_long_long_int=yes
6282     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6283       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284/* end confdefs.h.  */
6285
6286  /* For now, do not test the preprocessor; as of 2007 there are too many
6287	 implementations with broken preprocessors.  Perhaps this can
6288	 be revisited in 2012.  In the meantime, code should not expect
6289	 #if to work with literals wider than 32 bits.  */
6290      /* Test literals.  */
6291      long long int ll = 9223372036854775807ll;
6292      long long int nll = -9223372036854775807LL;
6293      unsigned long long int ull = 18446744073709551615ULL;
6294      /* Test constant expressions.   */
6295      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6296		     ? 1 : -1)];
6297      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6298		     ? 1 : -1)];
6299      int i = 63;
6300int
6301main ()
6302{
6303/* Test availability of runtime routines for shift and division.  */
6304      long long int llmax = 9223372036854775807ll;
6305      unsigned long long int ullmax = 18446744073709551615ull;
6306      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6307	      | (llmax / ll) | (llmax % ll)
6308	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6309	      | (ullmax / ull) | (ullmax % ull));
6310  ;
6311  return 0;
6312}
6313
6314_ACEOF
6315if ac_fn_cxx_try_link "$LINENO"; then :
6316
6317else
6318  ac_cv_type_unsigned_long_long_int=no
6319fi
6320rm -f core conftest.err conftest.$ac_objext \
6321    conftest$ac_exeext conftest.$ac_ext
6322     fi
6323fi
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6325$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6326  if test $ac_cv_type_unsigned_long_long_int = yes; then
6327
6328$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6329
6330  fi
6331
6332
6333
6334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6335$as_echo_n "checking for long long int... " >&6; }
6336if ${ac_cv_type_long_long_int+:} false; then :
6337  $as_echo_n "(cached) " >&6
6338else
6339  ac_cv_type_long_long_int=yes
6340      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6341	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6342	if test $ac_cv_type_long_long_int = yes; then
6343	  	  	  	  if test "$cross_compiling" = yes; then :
6344  :
6345else
6346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347/* end confdefs.h.  */
6348#include <limits.h>
6349		 #ifndef LLONG_MAX
6350		 # define HALF \
6351			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6352		 # define LLONG_MAX (HALF - 1 + HALF)
6353		 #endif
6354int
6355main ()
6356{
6357long long int n = 1;
6358		 int i;
6359		 for (i = 0; ; i++)
6360		   {
6361		     long long int m = n << i;
6362		     if (m >> i != n)
6363		       return 1;
6364		     if (LLONG_MAX / 2 < m)
6365		       break;
6366		   }
6367		 return 0;
6368  ;
6369  return 0;
6370}
6371_ACEOF
6372if ac_fn_cxx_try_run "$LINENO"; then :
6373
6374else
6375  ac_cv_type_long_long_int=no
6376fi
6377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6378  conftest.$ac_objext conftest.beam conftest.$ac_ext
6379fi
6380
6381	fi
6382      fi
6383fi
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6385$as_echo "$ac_cv_type_long_long_int" >&6; }
6386  if test $ac_cv_type_long_long_int = yes; then
6387
6388$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6389
6390  fi
6391
6392
6393
6394  ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6395if test "x$ac_cv_type_intmax_t" = xyes; then :
6396
6397$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6398
6399else
6400  test $ac_cv_type_long_long_int = yes \
6401       && ac_type='long long int' \
6402       || ac_type='long int'
6403
6404cat >>confdefs.h <<_ACEOF
6405#define intmax_t $ac_type
6406_ACEOF
6407
6408fi
6409
6410
6411
6412  ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6413if test "x$ac_cv_type_intptr_t" = xyes; then :
6414
6415$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6416
6417else
6418  for ac_type in 'int' 'long int' 'long long int'; do
6419       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420/* end confdefs.h.  */
6421$ac_includes_default
6422int
6423main ()
6424{
6425static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6426test_array [0] = 0;
6427return test_array [0];
6428
6429  ;
6430  return 0;
6431}
6432_ACEOF
6433if ac_fn_cxx_try_compile "$LINENO"; then :
6434
6435cat >>confdefs.h <<_ACEOF
6436#define intptr_t $ac_type
6437_ACEOF
6438
6439	  ac_type=
6440fi
6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442       test -z "$ac_type" && break
6443     done
6444fi
6445
6446
6447ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6448case $ac_cv_c_uint8_t in #(
6449  no|yes) ;; #(
6450  *)
6451
6452$as_echo "#define _UINT8_T 1" >>confdefs.h
6453
6454
6455cat >>confdefs.h <<_ACEOF
6456#define uint8_t $ac_cv_c_uint8_t
6457_ACEOF
6458;;
6459  esac
6460
6461ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6462case $ac_cv_c_uint16_t in #(
6463  no|yes) ;; #(
6464  *)
6465
6466
6467cat >>confdefs.h <<_ACEOF
6468#define uint16_t $ac_cv_c_uint16_t
6469_ACEOF
6470;;
6471  esac
6472
6473ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6474case $ac_cv_c_uint32_t in #(
6475  no|yes) ;; #(
6476  *)
6477
6478$as_echo "#define _UINT32_T 1" >>confdefs.h
6479
6480
6481cat >>confdefs.h <<_ACEOF
6482#define uint32_t $ac_cv_c_uint32_t
6483_ACEOF
6484;;
6485  esac
6486
6487ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6488case $ac_cv_c_uint64_t in #(
6489  no|yes) ;; #(
6490  *)
6491
6492$as_echo "#define _UINT64_T 1" >>confdefs.h
6493
6494
6495cat >>confdefs.h <<_ACEOF
6496#define uint64_t $ac_cv_c_uint64_t
6497_ACEOF
6498;;
6499  esac
6500
6501
6502
6503  ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6504if test "x$ac_cv_type_uintmax_t" = xyes; then :
6505
6506$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6507
6508else
6509  test $ac_cv_type_unsigned_long_long_int = yes \
6510       && ac_type='unsigned long long int' \
6511       || ac_type='unsigned long int'
6512
6513cat >>confdefs.h <<_ACEOF
6514#define uintmax_t $ac_type
6515_ACEOF
6516
6517fi
6518
6519
6520
6521  ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6522if test "x$ac_cv_type_uintptr_t" = xyes; then :
6523
6524$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6525
6526else
6527  for ac_type in 'unsigned int' 'unsigned long int' \
6528	'unsigned long long int'; do
6529       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530/* end confdefs.h.  */
6531$ac_includes_default
6532int
6533main ()
6534{
6535static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6536test_array [0] = 0;
6537return test_array [0];
6538
6539  ;
6540  return 0;
6541}
6542_ACEOF
6543if ac_fn_cxx_try_compile "$LINENO"; then :
6544
6545cat >>confdefs.h <<_ACEOF
6546#define uintptr_t $ac_type
6547_ACEOF
6548
6549	  ac_type=
6550fi
6551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552       test -z "$ac_type" && break
6553     done
6554fi
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6570  as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6571fi
6572
6573# check what underlying integer type int64_t uses
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6575$as_echo_n "checking for int64_t underlying type... " >&6; }
6576if ${ac_cv_int64_t_type+:} false; then :
6577  $as_echo_n "(cached) " >&6
6578else
6579
6580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581/* end confdefs.h.  */
6582
6583#ifdef HAVE_STDINT_H
6584#include <stdint.h>
6585#endif
6586template <typename T> struct X { };
6587template <>
6588struct X<long> { typedef long t; };
6589
6590int
6591main ()
6592{
6593X<int64_t>::t x;
6594  ;
6595  return 0;
6596}
6597_ACEOF
6598if ac_fn_cxx_try_compile "$LINENO"; then :
6599  ac_cv_int64_t_type=long
6600else
6601  ac_cv_int64_t_type="long long"
6602fi
6603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604fi
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6606$as_echo "$ac_cv_int64_t_type" >&6; }
6607if test "$ac_cv_int64_t_type" = "long"; then
6608
6609$as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6610
6611else
6612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613/* end confdefs.h.  */
6614
6615#ifdef HAVE_STDINT_H
6616#include <stdint.h>
6617#endif
6618template <typename T> struct X { };
6619template <>
6620struct X<long long> { typedef long long t; };
6621
6622int
6623main ()
6624{
6625X<int64_t>::t x;
6626  ;
6627  return 0;
6628}
6629_ACEOF
6630if ac_fn_cxx_try_compile "$LINENO"; then :
6631
6632else
6633  as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6634fi
6635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636fi
6637
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6639$as_echo_n "checking for std::swap in <utility>... " >&6; }
6640if ${ac_cv_std_swap_in_utility+:} false; then :
6641  $as_echo_n "(cached) " >&6
6642else
6643
6644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645/* end confdefs.h.  */
6646
6647#include <utility>
6648
6649int
6650main ()
6651{
6652int a, b; std::swap(a,b);
6653  ;
6654  return 0;
6655}
6656_ACEOF
6657if ac_fn_cxx_try_compile "$LINENO"; then :
6658  ac_cv_std_swap_in_utility=yes
6659else
6660  ac_cv_std_swap_in_utility=no
6661fi
6662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663fi
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6665$as_echo "$ac_cv_std_swap_in_utility" >&6; }
6666if test $ac_cv_std_swap_in_utility = yes; then
6667
6668$as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6669
6670fi
6671
6672# Check whether compiler is affected by placement new aliasing bug (PR 29286).
6673# If the host compiler is affected by the bug, and we build with optimization
6674# enabled (which happens e.g. when cross-compiling), the pool allocator may
6675# get miscompiled.  Use -fno-strict-aliasing to work around this problem.
6676# Since there is no reliable feature check for the presence of this bug,
6677# we simply use a GCC version number check.  (This should never trigger for
6678# stages 2 or 3 of a native bootstrap.)
6679aliasing_flags=
6680if test "$GCC" = yes; then
6681  saved_CXXFLAGS="$CXXFLAGS"
6682
6683  # The following test compilation will succeed if and only if $CXX accepts
6684  # -fno-strict-aliasing *and* is older than GCC 4.3.
6685  CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6687$as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689/* end confdefs.h.  */
6690
6691#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6692#error compiler not affected by placement new aliasing bug
6693#endif
6694
6695_ACEOF
6696if ac_fn_cxx_try_compile "$LINENO"; then :
6697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6698$as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6699else
6700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701$as_echo "no" >&6; }
6702fi
6703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704
6705  CXXFLAGS="$saved_CXXFLAGS"
6706fi
6707
6708
6709
6710
6711# ---------------------
6712# Warnings and checking
6713# ---------------------
6714
6715# Check $CC warning features (if it's GCC).
6716# We want to use -pedantic, but we don't want warnings about
6717# * 'long long'
6718# * variadic macros
6719# * overlong strings
6720# * C++11 narrowing conversions in { }
6721# So, we only use -pedantic if we can disable those warnings.
6722
6723# In stage 1, disable -Wformat warnings from old GCCs about new % codes
6724# Check whether --enable-build-format-warnings was given.
6725if test "${enable_build_format_warnings+set}" = set; then :
6726  enableval=$enable_build_format_warnings;
6727else
6728  enable_build_format_warnings=yes
6729fi
6730
6731if test $enable_build_format_warnings = no; then :
6732  wf_opt=-Wno-format
6733else
6734  wf_opt=
6735fi
6736ac_ext=cpp
6737ac_cpp='$CXXCPP $CPPFLAGS'
6738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6741
6742loose_warn=
6743save_CXXFLAGS="$CXXFLAGS"
6744for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6745  # Do the check with the no- prefix removed since gcc silently
6746  # accepts any -Wno-* option on purpose
6747  case $real_option in
6748    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6749    *) option=$real_option ;;
6750  esac
6751  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6752
6753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6754$as_echo_n "checking whether $CXX supports $option... " >&6; }
6755if eval \${$as_acx_Woption+:} false; then :
6756  $as_echo_n "(cached) " >&6
6757else
6758  CXXFLAGS="$option"
6759    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760/* end confdefs.h.  */
6761
6762int
6763main ()
6764{
6765
6766  ;
6767  return 0;
6768}
6769_ACEOF
6770if ac_fn_cxx_try_compile "$LINENO"; then :
6771  eval "$as_acx_Woption=yes"
6772else
6773  eval "$as_acx_Woption=no"
6774fi
6775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776
6777fi
6778eval ac_res=\$$as_acx_Woption
6779	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6780$as_echo "$ac_res" >&6; }
6781  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6782  loose_warn="$loose_warn${loose_warn:+ }$real_option"
6783fi
6784  done
6785CXXFLAGS="$save_CXXFLAGS"
6786ac_ext=cpp
6787ac_cpp='$CXXCPP $CPPFLAGS'
6788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6791
6792
6793
6794ac_ext=c
6795ac_cpp='$CPP $CPPFLAGS'
6796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6798ac_compiler_gnu=$ac_cv_c_compiler_gnu
6799
6800c_loose_warn=
6801save_CFLAGS="$CFLAGS"
6802for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6803  # Do the check with the no- prefix removed since gcc silently
6804  # accepts any -Wno-* option on purpose
6805  case $real_option in
6806    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6807    *) option=$real_option ;;
6808  esac
6809  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6810
6811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6812$as_echo_n "checking whether $CC supports $option... " >&6; }
6813if eval \${$as_acx_Woption+:} false; then :
6814  $as_echo_n "(cached) " >&6
6815else
6816  CFLAGS="$option"
6817    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818/* end confdefs.h.  */
6819
6820int
6821main ()
6822{
6823
6824  ;
6825  return 0;
6826}
6827_ACEOF
6828if ac_fn_c_try_compile "$LINENO"; then :
6829  eval "$as_acx_Woption=yes"
6830else
6831  eval "$as_acx_Woption=no"
6832fi
6833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834
6835fi
6836eval ac_res=\$$as_acx_Woption
6837	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6838$as_echo "$ac_res" >&6; }
6839  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6840  c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6841fi
6842  done
6843CFLAGS="$save_CFLAGS"
6844ac_ext=cpp
6845ac_cpp='$CXXCPP $CPPFLAGS'
6846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6849
6850
6851ac_ext=cpp
6852ac_cpp='$CXXCPP $CPPFLAGS'
6853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6856
6857strict_warn=
6858save_CXXFLAGS="$CXXFLAGS"
6859for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6860  # Do the check with the no- prefix removed since gcc silently
6861  # accepts any -Wno-* option on purpose
6862  case $real_option in
6863    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6864    *) option=$real_option ;;
6865  esac
6866  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6867
6868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6869$as_echo_n "checking whether $CXX supports $option... " >&6; }
6870if eval \${$as_acx_Woption+:} false; then :
6871  $as_echo_n "(cached) " >&6
6872else
6873  CXXFLAGS="$option"
6874    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h.  */
6876
6877int
6878main ()
6879{
6880
6881  ;
6882  return 0;
6883}
6884_ACEOF
6885if ac_fn_cxx_try_compile "$LINENO"; then :
6886  eval "$as_acx_Woption=yes"
6887else
6888  eval "$as_acx_Woption=no"
6889fi
6890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891
6892fi
6893eval ac_res=\$$as_acx_Woption
6894	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6895$as_echo "$ac_res" >&6; }
6896  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6897  strict_warn="$strict_warn${strict_warn:+ }$real_option"
6898fi
6899  done
6900CXXFLAGS="$save_CXXFLAGS"
6901ac_ext=cpp
6902ac_cpp='$CXXCPP $CPPFLAGS'
6903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6906
6907
6908ac_ext=c
6909ac_cpp='$CPP $CPPFLAGS'
6910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912ac_compiler_gnu=$ac_cv_c_compiler_gnu
6913
6914c_strict_warn=
6915save_CFLAGS="$CFLAGS"
6916for real_option in -Wold-style-definition -Wc++-compat; do
6917  # Do the check with the no- prefix removed since gcc silently
6918  # accepts any -Wno-* option on purpose
6919  case $real_option in
6920    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6921    *) option=$real_option ;;
6922  esac
6923  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6924
6925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6926$as_echo_n "checking whether $CC supports $option... " >&6; }
6927if eval \${$as_acx_Woption+:} false; then :
6928  $as_echo_n "(cached) " >&6
6929else
6930  CFLAGS="$option"
6931    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932/* end confdefs.h.  */
6933
6934int
6935main ()
6936{
6937
6938  ;
6939  return 0;
6940}
6941_ACEOF
6942if ac_fn_c_try_compile "$LINENO"; then :
6943  eval "$as_acx_Woption=yes"
6944else
6945  eval "$as_acx_Woption=no"
6946fi
6947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948
6949fi
6950eval ac_res=\$$as_acx_Woption
6951	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6952$as_echo "$ac_res" >&6; }
6953  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6954  c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6955fi
6956  done
6957CFLAGS="$save_CFLAGS"
6958ac_ext=cpp
6959ac_cpp='$CXXCPP $CPPFLAGS'
6960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6963
6964
6965ac_ext=cpp
6966ac_cpp='$CXXCPP $CPPFLAGS'
6967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6970
6971# Do the check with the no- prefix removed from the warning options
6972# since gcc silently accepts any -Wno-* option on purpose
6973if test "$GXX" = yes; then :
6974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6975$as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6976if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
6977  $as_echo_n "(cached) " >&6
6978else
6979  save_CXXFLAGS="$CXXFLAGS"
6980CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982/* end confdefs.h.  */
6983
6984int
6985main ()
6986{
6987
6988  ;
6989  return 0;
6990}
6991_ACEOF
6992if ac_fn_cxx_try_compile "$LINENO"; then :
6993  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6994else
6995  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6996fi
6997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998CXXFLAGS="$save_CXXFLAGS"
6999fi
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7001$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7002if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7003  strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7004fi
7005
7006fi
7007ac_ext=cpp
7008ac_cpp='$CXXCPP $CPPFLAGS'
7009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7012
7013
7014ac_ext=cpp
7015ac_cpp='$CXXCPP $CPPFLAGS'
7016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7019
7020# Check whether --enable-werror-always was given.
7021if test "${enable_werror_always+set}" = set; then :
7022  enableval=$enable_werror_always;
7023else
7024  enable_werror_always=no
7025fi
7026
7027if test $enable_werror_always = yes; then :
7028  strict_warn="$strict_warn${strict_warn:+ }-Werror"
7029fi
7030
7031ac_ext=cpp
7032ac_cpp='$CXXCPP $CPPFLAGS'
7033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7036
7037
7038
7039# The above macros do nothing if the compiler is not GCC.  However, the
7040# Makefile has more goo to add other flags, so these variables are used
7041# to enable warnings only for GCC.
7042warn_cflags=
7043warn_cxxflags=
7044if test "x$GCC" = "xyes"; then
7045  warn_cflags='$(GCC_WARN_CFLAGS)'
7046  warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7047fi
7048
7049
7050
7051# Disable exceptions and RTTI if building with g++
7052ac_ext=c
7053ac_cpp='$CPP $CPPFLAGS'
7054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056ac_compiler_gnu=$ac_cv_c_compiler_gnu
7057
7058noexception_flags=
7059save_CFLAGS="$CFLAGS"
7060for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7061  # Do the check with the no- prefix removed since gcc silently
7062  # accepts any -Wno-* option on purpose
7063  case $real_option in
7064    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7065    *) option=$real_option ;;
7066  esac
7067  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7068
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7070$as_echo_n "checking whether $CC supports $option... " >&6; }
7071if eval \${$as_acx_Woption+:} false; then :
7072  $as_echo_n "(cached) " >&6
7073else
7074  CFLAGS="$option"
7075    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076/* end confdefs.h.  */
7077
7078int
7079main ()
7080{
7081
7082  ;
7083  return 0;
7084}
7085_ACEOF
7086if ac_fn_c_try_compile "$LINENO"; then :
7087  eval "$as_acx_Woption=yes"
7088else
7089  eval "$as_acx_Woption=no"
7090fi
7091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7092
7093fi
7094eval ac_res=\$$as_acx_Woption
7095	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7096$as_echo "$ac_res" >&6; }
7097  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7098  noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7099fi
7100  done
7101CFLAGS="$save_CFLAGS"
7102ac_ext=cpp
7103ac_cpp='$CXXCPP $CPPFLAGS'
7104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7107
7108
7109
7110# Enable expensive internal checks
7111is_release=
7112if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7113  is_release=yes
7114fi
7115
7116# Check whether --enable-checking was given.
7117if test "${enable_checking+set}" = set; then :
7118  enableval=$enable_checking; ac_checking_flags="${enableval}"
7119else
7120
7121# Determine the default checks.
7122if test x$is_release = x ; then
7123  ac_checking_flags=yes,extra
7124else
7125  ac_checking_flags=release
7126fi
7127fi
7128
7129IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
7130for check in release $ac_checking_flags
7131do
7132	case $check in
7133	# these set all the flags to specific states
7134	yes)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7135			ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7136			ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7137			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7138			ac_tree_checking=1 ; ac_valgrind_checking= ;
7139			ac_types_checking=1 ;;
7140	no|none)	ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7141			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7142			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7143			ac_rtlflag_checking= ; ac_runtime_checking= ;
7144			ac_tree_checking= ; ac_valgrind_checking= ;
7145			ac_types_checking= ;;
7146	all)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7147			ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7148			ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7149			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7150			ac_tree_checking=1 ; ac_valgrind_checking= ;
7151			ac_types_checking=1 ;;
7152	release)	ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7153			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7154			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7155			ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7156			ac_tree_checking= ; ac_valgrind_checking= ;
7157			ac_types_checking= ;;
7158	# these enable particular checks
7159	assert) 	ac_assert_checking=1 ;;
7160	df)		ac_df_checking=1 ;;
7161	extra)		ac_extra_checking=1 ;;
7162	fold)		ac_fold_checking=1 ;;
7163	gc)		ac_gc_checking=1 ;;
7164	gcac)		ac_gc_always_collect=1 ;;
7165	gimple)		ac_gimple_checking=1 ;;
7166	misc)		ac_checking=1 ;;
7167	rtl)		ac_rtl_checking=1 ;;
7168	rtlflag)	ac_rtlflag_checking=1 ;;
7169	runtime)	ac_runtime_checking=1 ;;
7170	tree)		ac_tree_checking=1 ;;
7171	types)		ac_types_checking=1 ;;
7172	valgrind)	ac_valgrind_checking=1 ;;
7173	*)	as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7174	esac
7175done
7176IFS="$ac_save_IFS"
7177
7178nocommon_flag=""
7179if test x$ac_checking != x ; then
7180
7181$as_echo "#define CHECKING_P 1" >>confdefs.h
7182
7183  nocommon_flag=-fno-common
7184else
7185  $as_echo "#define CHECKING_P 0" >>confdefs.h
7186
7187fi
7188
7189if test x$ac_extra_checking != x ; then
7190
7191$as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7192
7193else
7194  $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7195
7196fi
7197if test x$ac_df_checking != x ; then
7198
7199$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7200
7201fi
7202if test x$ac_assert_checking != x ; then
7203
7204$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7205
7206fi
7207if test x$ac_gimple_checking != x ; then
7208
7209$as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7210
7211fi
7212
7213if test x$ac_runtime_checking != x ; then
7214
7215$as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7216
7217fi
7218if test x$ac_tree_checking != x ; then
7219
7220$as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7221
7222  TREECHECKING=yes
7223fi
7224if test x$ac_types_checking != x ; then
7225
7226$as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7227
7228fi
7229
7230if test x$ac_rtl_checking != x ; then
7231
7232$as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7233
7234fi
7235if test x$ac_rtlflag_checking != x ; then
7236
7237$as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7238
7239fi
7240if test x$ac_gc_checking != x ; then
7241
7242$as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7243
7244fi
7245if test x$ac_gc_always_collect != x ; then
7246
7247$as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7248
7249fi
7250if test x$ac_fold_checking != x ; then
7251
7252$as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7253
7254fi
7255valgrind_path_defines=
7256valgrind_command=
7257
7258ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7259if test "x$ac_cv_header_valgrind_h" = xyes; then :
7260  have_valgrind_h=yes
7261else
7262  have_valgrind_h=no
7263fi
7264
7265
7266
7267# It is certainly possible that there's valgrind but no valgrind.h.
7268# GCC relies on making annotations so we must have both.
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7270$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272/* end confdefs.h.  */
7273#include <valgrind/memcheck.h>
7274#ifndef VALGRIND_DISCARD
7275#error VALGRIND_DISCARD not defined
7276#endif
7277_ACEOF
7278if ac_fn_cxx_try_cpp "$LINENO"; then :
7279  gcc_cv_header_valgrind_memcheck_h=yes
7280else
7281  gcc_cv_header_valgrind_memcheck_h=no
7282fi
7283rm -f conftest.err conftest.i conftest.$ac_ext
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7285$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7287$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289/* end confdefs.h.  */
7290#include <memcheck.h>
7291#ifndef VALGRIND_DISCARD
7292#error VALGRIND_DISCARD not defined
7293#endif
7294_ACEOF
7295if ac_fn_cxx_try_cpp "$LINENO"; then :
7296  gcc_cv_header_memcheck_h=yes
7297else
7298  gcc_cv_header_memcheck_h=no
7299fi
7300rm -f conftest.err conftest.i conftest.$ac_ext
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7302$as_echo "$gcc_cv_header_memcheck_h" >&6; }
7303if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7304
7305$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7306
7307fi
7308if test $gcc_cv_header_memcheck_h = yes; then
7309
7310$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7311
7312fi
7313
7314if test x$ac_valgrind_checking != x ; then
7315
7316# Prepare PATH_SEPARATOR.
7317# The user is always right.
7318if test "${PATH_SEPARATOR+set}" != set; then
7319  echo "#! /bin/sh" >conf$$.sh
7320  echo  "exit 0"   >>conf$$.sh
7321  chmod +x conf$$.sh
7322  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7323    PATH_SEPARATOR=';'
7324  else
7325    PATH_SEPARATOR=:
7326  fi
7327  rm -f conf$$.sh
7328fi
7329
7330# Find out how to test for executable files. Don't use a zero-byte file,
7331# as systems may use methods other than mode bits to determine executability.
7332cat >conf$$.file <<_ASEOF
7333#! /bin/sh
7334exit 0
7335_ASEOF
7336chmod +x conf$$.file
7337if test -x conf$$.file >/dev/null 2>&1; then
7338  ac_executable_p="test -x"
7339else
7340  ac_executable_p="test -f"
7341fi
7342rm -f conf$$.file
7343
7344# Extract the first word of "valgrind", so it can be a program name with args.
7345set dummy valgrind; ac_word=$2
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347$as_echo_n "checking for $ac_word... " >&6; }
7348if ${ac_cv_path_valgrind_path+:} false; then :
7349  $as_echo_n "(cached) " >&6
7350else
7351  case "$valgrind_path" in
7352  [\\/]* | ?:[\\/]*)
7353    ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7354    ;;
7355  *)
7356    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7357    for ac_dir in $PATH; do
7358      IFS="$ac_save_IFS"
7359      test -z "$ac_dir" && ac_dir=.
7360      for ac_exec_ext in '' $ac_executable_extensions; do
7361        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7362          if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7363            ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7364            break 2
7365          fi
7366        fi
7367      done
7368    done
7369    IFS="$ac_save_IFS"
7370    ;;
7371esac
7372fi
7373valgrind_path="$ac_cv_path_valgrind_path"
7374if test -n "$valgrind_path"; then
7375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7376$as_echo "$valgrind_path" >&6; }
7377else
7378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379$as_echo "no" >&6; }
7380fi
7381
7382  if test "x$valgrind_path" = "x" \
7383    || (test $have_valgrind_h = no \
7384	&& test $gcc_cv_header_memcheck_h = no \
7385	&& test $gcc_cv_header_valgrind_memcheck_h = no); then
7386	as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7387  fi
7388  valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7389  valgrind_command="$valgrind_path -q"
7390
7391$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7392
7393fi
7394
7395
7396
7397# Enable code coverage collection
7398# Check whether --enable-coverage was given.
7399if test "${enable_coverage+set}" = set; then :
7400  enableval=$enable_coverage; case "${enableval}" in
7401  yes|noopt)
7402    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7403    ;;
7404  opt)
7405    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7406    ;;
7407  no)
7408    # a.k.a. --disable-coverage
7409    coverage_flags=""
7410    ;;
7411  *)
7412    as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7413    ;;
7414esac
7415else
7416  coverage_flags=""
7417fi
7418
7419
7420
7421# Check whether --enable-gather-detailed-mem-stats was given.
7422if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7423  enableval=$enable_gather_detailed_mem_stats;
7424else
7425  enable_gather_detailed_mem_stats=no
7426fi
7427
7428gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7429
7430cat >>confdefs.h <<_ACEOF
7431#define GATHER_STATISTICS $gather_stats
7432_ACEOF
7433
7434
7435# Check whether --enable-valgrind-annotations was given.
7436if test "${enable_valgrind_annotations+set}" = set; then :
7437  enableval=$enable_valgrind_annotations;
7438else
7439  enable_valgrind_annotations=no
7440fi
7441
7442if test x$enable_valgrind_annotations != xno \
7443    || test x$ac_valgrind_checking != x; then
7444  if (test $have_valgrind_h = no \
7445      && test $gcc_cv_header_memcheck_h = no \
7446      && test $gcc_cv_header_valgrind_memcheck_h = no); then
7447    as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7448  fi
7449
7450$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7451
7452fi
7453
7454# -------------------------------
7455# Miscenalleous configure options
7456# -------------------------------
7457
7458# With stabs
7459
7460# Check whether --with-stabs was given.
7461if test "${with_stabs+set}" = set; then :
7462  withval=$with_stabs; stabs="$with_stabs"
7463else
7464  stabs=no
7465fi
7466
7467
7468# Determine whether or not multilibs are enabled.
7469# Check whether --enable-multilib was given.
7470if test "${enable_multilib+set}" = set; then :
7471  enableval=$enable_multilib;
7472else
7473  enable_multilib=yes
7474fi
7475
7476
7477
7478# Determine whether or not multiarch is enabled.
7479# Check whether --enable-multiarch was given.
7480if test "${enable_multiarch+set}" = set; then :
7481  enableval=$enable_multiarch; case "${enableval}" in
7482yes|no|auto) enable_multiarch=$enableval;;
7483*) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7484esac
7485else
7486  enable_multiarch=auto
7487fi
7488
7489if test x${enable_multiarch} = xauto; then
7490  if test x${with_native_system_header_dir} != x; then
7491    ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7492    enable_multiarch=no
7493  fi
7494  if test x$host != x$target && test "x$with_sysroot" = x; then
7495    ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7496    enable_multiarch=no
7497  fi
7498fi
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7500$as_echo_n "checking for multiarch configuration... " >&6; }
7501
7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7503$as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7504
7505# needed for setting the multiarch name for soft-float/hard-float ABIs
7506
7507
7508
7509# default stack clash protection guard size as power of twos in bytes.
7510# Please keep these in sync with params.def.
7511stk_clash_min=12
7512stk_clash_max=30
7513
7514# Keep the default value when the option is not used to 0, this allows us to
7515# distinguish between the cases where the user specifially set a value via
7516# configure and when the normal default value is used.
7517
7518# Check whether --with-stack-clash-protection-guard-size was given.
7519if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7520  withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7521else
7522  DEFAULT_STK_CLASH_GUARD_SIZE=0
7523fi
7524
7525if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7526     && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7527	 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7528  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
7529fi
7530
7531
7532cat >>confdefs.h <<_ACEOF
7533#define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7534_ACEOF
7535
7536
7537# Enable __cxa_atexit for C++.
7538# Check whether --enable-__cxa_atexit was given.
7539if test "${enable___cxa_atexit+set}" = set; then :
7540  enableval=$enable___cxa_atexit;
7541fi
7542
7543
7544# Enable C extension for decimal float if target supports it.
7545
7546# Check whether --enable-decimal-float was given.
7547if test "${enable_decimal_float+set}" = set; then :
7548  enableval=$enable_decimal_float;
7549  case $enable_decimal_float in
7550    yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7551    *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7552Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7553  esac
7554
7555else
7556
7557  case $target in
7558    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7559    i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7560    i?86*-*-mingw* | x86_64*-*-mingw* | \
7561    i?86*-*-cygwin* | x86_64*-*-cygwin*)
7562      enable_decimal_float=yes
7563      ;;
7564    *)
7565      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7566$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7567      enable_decimal_float=no
7568      ;;
7569  esac
7570
7571fi
7572
7573
7574# x86's use BID format instead of DPD
7575case x$enable_decimal_float in
7576  xyes)
7577    case $target in
7578      i?86*-*-* | x86_64*-*-*)
7579	enable_decimal_float=bid
7580	;;
7581      *)
7582	enable_decimal_float=dpd
7583	;;
7584    esac
7585    default_decimal_float=$enable_decimal_float
7586    ;;
7587  xno)
7588    # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7589    # dependency on libdecnumber.
7590    default_decimal_float=dpd
7591    ;;
7592esac
7593
7594
7595
7596
7597dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7598
7599cat >>confdefs.h <<_ACEOF
7600#define ENABLE_DECIMAL_FLOAT $dfp
7601_ACEOF
7602
7603
7604# Use default_decimal_float for dependency.
7605enable_decimal_float=$default_decimal_float
7606
7607bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7608
7609cat >>confdefs.h <<_ACEOF
7610#define ENABLE_DECIMAL_BID_FORMAT $bid
7611_ACEOF
7612
7613
7614# Enable C extension for fixed-point arithmetic.
7615# Check whether --enable-fixed-point was given.
7616if test "${enable_fixed_point+set}" = set; then :
7617  enableval=$enable_fixed_point;
7618else
7619
7620  case $target in
7621    arm*)
7622      enable_fixed_point=yes
7623      ;;
7624
7625    mips*-*-*)
7626      enable_fixed_point=yes
7627      ;;
7628    *)
7629      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7630$as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7631      enable_fixed_point=no
7632      ;;
7633  esac
7634
7635fi
7636
7637
7638
7639fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7640
7641cat >>confdefs.h <<_ACEOF
7642#define ENABLE_FIXED_POINT $fixedpoint
7643_ACEOF
7644
7645
7646# Enable threads
7647# Pass with no value to take the default
7648# Pass with a value to specify a thread package
7649# Check whether --enable-threads was given.
7650if test "${enable_threads+set}" = set; then :
7651  enableval=$enable_threads;
7652else
7653  enable_threads=''
7654fi
7655
7656
7657# Check whether --enable-tls was given.
7658if test "${enable_tls+set}" = set; then :
7659  enableval=$enable_tls;
7660  case $enable_tls in
7661    yes | no) ;;
7662    *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7663Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7664  esac
7665
7666else
7667  enable_tls=''
7668fi
7669
7670
7671# Check whether --enable-vtable-verify was given.
7672if test "${enable_vtable_verify+set}" = set; then :
7673  enableval=$enable_vtable_verify;
7674else
7675  enable_vtable_verify=no
7676fi
7677
7678vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7679
7680cat >>confdefs.h <<_ACEOF
7681#define ENABLE_VTABLE_VERIFY $vtable_verify
7682_ACEOF
7683
7684
7685# Check whether --enable-objc-gc was given.
7686if test "${enable_objc_gc+set}" = set; then :
7687  enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7688	objc_boehm_gc=''
7689else
7690	objc_boehm_gc=1
7691fi
7692else
7693  objc_boehm_gc=''
7694fi
7695
7696
7697
7698# Check whether --with-dwarf2 was given.
7699if test "${with_dwarf2+set}" = set; then :
7700  withval=$with_dwarf2; dwarf2="$with_dwarf2"
7701else
7702  dwarf2=no
7703fi
7704
7705
7706# Check whether --enable-shared was given.
7707if test "${enable_shared+set}" = set; then :
7708  enableval=$enable_shared;
7709  case $enable_shared in
7710  yes | no) ;;
7711  *)
7712    enable_shared=no
7713    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7714    for pkg in $enableval; do
7715      if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7716        enable_shared=yes
7717      fi
7718    done
7719    IFS="$ac_save_ifs"
7720    ;;
7721  esac
7722
7723else
7724  enable_shared=yes
7725fi
7726
7727
7728
7729# Check whether --enable-gcov was given.
7730if test "${enable_gcov+set}" = set; then :
7731  enableval=$enable_gcov;
7732else
7733  enable_gcov=yes
7734fi
7735
7736
7737
7738
7739# Check whether --with-specs was given.
7740if test "${with_specs+set}" = set; then :
7741  withval=$with_specs; CONFIGURE_SPECS=$withval
7742else
7743  CONFIGURE_SPECS=
7744
7745fi
7746
7747
7748
7749
7750
7751# Check whether --with-pkgversion was given.
7752if test "${with_pkgversion+set}" = set; then :
7753  withval=$with_pkgversion; case "$withval" in
7754      yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7755      no)  PKGVERSION= ;;
7756      *)   PKGVERSION="($withval) " ;;
7757     esac
7758else
7759  PKGVERSION="(GCC) "
7760
7761fi
7762
7763
7764
7765
7766
7767# Check whether --with-bugurl was given.
7768if test "${with_bugurl+set}" = set; then :
7769  withval=$with_bugurl; case "$withval" in
7770      yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7771      no)  BUGURL=
7772	   ;;
7773      *)   BUGURL="$withval"
7774	   ;;
7775     esac
7776else
7777  BUGURL="https://gcc.gnu.org/bugs/"
7778
7779fi
7780
7781  case ${BUGURL} in
7782  "")
7783    REPORT_BUGS_TO=
7784    REPORT_BUGS_TEXI=
7785    ;;
7786  *)
7787    REPORT_BUGS_TO="<$BUGURL>"
7788    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7789    ;;
7790  esac;
7791
7792
7793
7794
7795# Sanity check enable_languages in case someone does not run the toplevel
7796# configure # script.
7797# Check whether --enable-languages was given.
7798if test "${enable_languages+set}" = set; then :
7799  enableval=$enable_languages; case ,${enable_languages}, in
7800       ,,|,yes,)
7801		# go safe -- we cannot be much sure without the toplevel
7802		# configure's
7803		# analysis of which target libs are present and usable
7804		enable_languages=c
7805		;;
7806	 *,all,*)
7807		as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7808		;;
7809	*,c,*)
7810		;;
7811        *)
7812		enable_languages=c,${enable_languages}
7813		;;
7814esac
7815else
7816  enable_languages=c
7817fi
7818
7819
7820if test x"$enable_as_accelerator_for" != x; then
7821
7822$as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7823
7824  enable_as_accelerator=yes
7825  case "${target}" in
7826    *-intelmicemul-*)
7827      # In this case we expect offload compiler to be built as native, so we
7828      # need to rename the driver to avoid clashes with host's drivers.
7829      program_transform_name="s&^&${target}-&" ;;
7830  esac
7831  sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7832  program_transform_name=`echo $program_transform_name | sed $sedscript`
7833  accel_dir_suffix=/accel/${target_noncanonical}
7834  real_target_noncanonical=${enable_as_accelerator_for}
7835fi
7836
7837
7838
7839
7840for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7841  tgt=`echo $tgt | sed 's/=.*//'`
7842
7843  if echo "$tgt" | grep "^hsa" > /dev/null ; then
7844    enable_hsa=1
7845  else
7846    enable_offloading=1
7847  fi
7848
7849  if test x"$offload_targets" = x; then
7850    offload_targets=$tgt
7851  else
7852    offload_targets="$offload_targets,$tgt"
7853  fi
7854done
7855
7856cat >>confdefs.h <<_ACEOF
7857#define OFFLOAD_TARGETS "$offload_targets"
7858_ACEOF
7859
7860if test x"$enable_offloading" != x; then
7861
7862$as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7863
7864else
7865
7866$as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7867
7868fi
7869
7870if test x"$enable_hsa" = x1 ; then
7871
7872$as_echo "#define ENABLE_HSA 1" >>confdefs.h
7873
7874fi
7875
7876
7877# Check whether --with-multilib-list was given.
7878if test "${with_multilib_list+set}" = set; then :
7879  withval=$with_multilib_list; :
7880else
7881  with_multilib_list=default
7882fi
7883
7884
7885# -------------------------
7886# Checks for other programs
7887# -------------------------
7888
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7890$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7891set x ${MAKE-make}
7892ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7893if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  cat >conftest.make <<\_ACEOF
7897SHELL = /bin/sh
7898all:
7899	@echo '@@@%%%=$(MAKE)=@@@%%%'
7900_ACEOF
7901# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7902case `${MAKE-make} -f conftest.make 2>/dev/null` in
7903  *@@@%%%=?*=@@@%%%*)
7904    eval ac_cv_prog_make_${ac_make}_set=yes;;
7905  *)
7906    eval ac_cv_prog_make_${ac_make}_set=no;;
7907esac
7908rm -f conftest.make
7909fi
7910if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7912$as_echo "yes" >&6; }
7913  SET_MAKE=
7914else
7915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917  SET_MAKE="MAKE=${MAKE-make}"
7918fi
7919
7920
7921# Find some useful tools
7922for ac_prog in gawk mawk nawk awk
7923do
7924  # Extract the first word of "$ac_prog", so it can be a program name with args.
7925set dummy $ac_prog; ac_word=$2
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927$as_echo_n "checking for $ac_word... " >&6; }
7928if ${ac_cv_prog_AWK+:} false; then :
7929  $as_echo_n "(cached) " >&6
7930else
7931  if test -n "$AWK"; then
7932  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7933else
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937  IFS=$as_save_IFS
7938  test -z "$as_dir" && as_dir=.
7939    for ac_exec_ext in '' $ac_executable_extensions; do
7940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941    ac_cv_prog_AWK="$ac_prog"
7942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943    break 2
7944  fi
7945done
7946  done
7947IFS=$as_save_IFS
7948
7949fi
7950fi
7951AWK=$ac_cv_prog_AWK
7952if test -n "$AWK"; then
7953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7954$as_echo "$AWK" >&6; }
7955else
7956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
7958fi
7959
7960
7961  test -n "$AWK" && break
7962done
7963
7964# We need awk to create options.c and options.h.
7965# Bail out if it's missing.
7966case ${AWK} in
7967  "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
7968esac
7969
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7971$as_echo_n "checking whether ln -s works... " >&6; }
7972if ${gcc_cv_prog_LN_S+:} false; then :
7973  $as_echo_n "(cached) " >&6
7974else
7975  rm -f conftestdata_t
7976echo >conftestdata_f
7977if ln -s conftestdata_f conftestdata_t 2>/dev/null
7978then
7979  gcc_cv_prog_LN_S="ln -s"
7980else
7981  if ln conftestdata_f conftestdata_t 2>/dev/null
7982  then
7983    gcc_cv_prog_LN_S=ln
7984  else
7985    if cp -p conftestdata_f conftestdata_t 2>/dev/null
7986    then
7987      gcc_cv_prog_LN_S="cp -p"
7988    else
7989      gcc_cv_prog_LN_S=cp
7990    fi
7991  fi
7992fi
7993rm -f conftestdata_f conftestdata_t
7994
7995fi
7996LN_S="$gcc_cv_prog_LN_S"
7997if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7999$as_echo "yes" >&6; }
8000else
8001  if test "$gcc_cv_prog_LN_S" = "ln"; then
8002    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8003$as_echo "no, using ln" >&6; }
8004  else
8005    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8006$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8007  fi
8008fi
8009
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8011$as_echo_n "checking whether ln works... " >&6; }
8012if ${acx_cv_prog_LN+:} false; then :
8013  $as_echo_n "(cached) " >&6
8014else
8015  rm -f conftestdata_t
8016echo >conftestdata_f
8017if ln conftestdata_f conftestdata_t 2>/dev/null
8018then
8019  acx_cv_prog_LN=ln
8020else
8021  acx_cv_prog_LN=no
8022fi
8023rm -f conftestdata_f conftestdata_t
8024
8025fi
8026if test $acx_cv_prog_LN = no; then
8027  LN="$LN_S"
8028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8029$as_echo "no, using $LN" >&6; }
8030else
8031  LN="$acx_cv_prog_LN"
8032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8033$as_echo "yes" >&6; }
8034fi
8035
8036if test -n "$ac_tool_prefix"; then
8037  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8038set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040$as_echo_n "checking for $ac_word... " >&6; }
8041if ${ac_cv_prog_RANLIB+:} false; then :
8042  $as_echo_n "(cached) " >&6
8043else
8044  if test -n "$RANLIB"; then
8045  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8046else
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050  IFS=$as_save_IFS
8051  test -z "$as_dir" && as_dir=.
8052    for ac_exec_ext in '' $ac_executable_extensions; do
8053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8054    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056    break 2
8057  fi
8058done
8059  done
8060IFS=$as_save_IFS
8061
8062fi
8063fi
8064RANLIB=$ac_cv_prog_RANLIB
8065if test -n "$RANLIB"; then
8066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8067$as_echo "$RANLIB" >&6; }
8068else
8069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
8071fi
8072
8073
8074fi
8075if test -z "$ac_cv_prog_RANLIB"; then
8076  ac_ct_RANLIB=$RANLIB
8077  # Extract the first word of "ranlib", so it can be a program name with args.
8078set dummy ranlib; ac_word=$2
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080$as_echo_n "checking for $ac_word... " >&6; }
8081if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8082  $as_echo_n "(cached) " >&6
8083else
8084  if test -n "$ac_ct_RANLIB"; then
8085  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8086else
8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088for as_dir in $PATH
8089do
8090  IFS=$as_save_IFS
8091  test -z "$as_dir" && as_dir=.
8092    for ac_exec_ext in '' $ac_executable_extensions; do
8093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094    ac_cv_prog_ac_ct_RANLIB="ranlib"
8095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096    break 2
8097  fi
8098done
8099  done
8100IFS=$as_save_IFS
8101
8102fi
8103fi
8104ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8105if test -n "$ac_ct_RANLIB"; then
8106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8107$as_echo "$ac_ct_RANLIB" >&6; }
8108else
8109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110$as_echo "no" >&6; }
8111fi
8112
8113  if test "x$ac_ct_RANLIB" = x; then
8114    RANLIB=":"
8115  else
8116    case $cross_compiling:$ac_tool_warned in
8117yes:)
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8120ac_tool_warned=yes ;;
8121esac
8122    RANLIB=$ac_ct_RANLIB
8123  fi
8124else
8125  RANLIB="$ac_cv_prog_RANLIB"
8126fi
8127
8128ranlib_flags=""
8129
8130
8131# Find a good install program.  We prefer a C program (faster),
8132# so one script is as good as another.  But avoid the broken or
8133# incompatible versions:
8134# SysV /etc/install, /usr/sbin/install
8135# SunOS /usr/etc/install
8136# IRIX /sbin/install
8137# AIX /bin/install
8138# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8139# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8140# ./install, which can be erroneously created by make from ./install.sh.
8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8142$as_echo_n "checking for a BSD compatible install... " >&6; }
8143if test -z "$INSTALL"; then
8144if ${ac_cv_path_install+:} false; then :
8145  $as_echo_n "(cached) " >&6
8146else
8147    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8148  for ac_dir in $PATH; do
8149    # Account for people who put trailing slashes in PATH elements.
8150    case "$ac_dir/" in
8151    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8152    *)
8153      # OSF1 and SCO ODT 3.0 have their own names for install.
8154      for ac_prog in ginstall scoinst install; do
8155        if test -f $ac_dir/$ac_prog; then
8156	  if test $ac_prog = install &&
8157            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8158	    # AIX install.  It has an incompatible calling convention.
8159	    # OSF/1 installbsd also uses dspmsg, but is usable.
8160	    :
8161	  else
8162	    ac_cv_path_install="$ac_dir/$ac_prog -c"
8163	    break 2
8164	  fi
8165	fi
8166      done
8167      ;;
8168    esac
8169  done
8170  IFS="$ac_save_IFS"
8171
8172fi
8173  if test "${ac_cv_path_install+set}" = set; then
8174    INSTALL="$ac_cv_path_install"
8175  else
8176    # As a last resort, use the slow shell script.  We don't cache a
8177    # path for INSTALL within a source directory, because that will
8178    # break other packages using the cache if that directory is
8179    # removed, or if the path is relative.
8180    INSTALL="$ac_install_sh"
8181  fi
8182fi
8183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8184$as_echo "$INSTALL" >&6; }
8185
8186# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8187# It thinks the first close brace ends the variable substitution.
8188test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8189
8190test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8191
8192
8193# See if cmp has --ignore-initial.
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8195$as_echo_n "checking for cmp's capabilities... " >&6; }
8196if ${gcc_cv_prog_cmp_skip+:} false; then :
8197  $as_echo_n "(cached) " >&6
8198else
8199   echo abfoo >t1
8200  echo cdfoo >t2
8201  gcc_cv_prog_cmp_skip=slowcompare
8202  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8203    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8204      :
8205    else
8206      gcc_cv_prog_cmp_skip=gnucompare
8207    fi
8208  fi
8209  if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8210    if cmp t1 t2 2 2 > /dev/null 2>&1; then
8211      if cmp t1 t2 1 1 > /dev/null 2>&1; then
8212        :
8213      else
8214        gcc_cv_prog_cmp_skip=fastcompare
8215      fi
8216    fi
8217  fi
8218  rm t1 t2
8219
8220fi
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8222$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8223make_compare_target=$gcc_cv_prog_cmp_skip
8224
8225
8226
8227# See if we have the mktemp command.
8228# Extract the first word of "mktemp", so it can be a program name with args.
8229set dummy mktemp; ac_word=$2
8230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231$as_echo_n "checking for $ac_word... " >&6; }
8232if ${ac_cv_prog_have_mktemp_command+:} false; then :
8233  $as_echo_n "(cached) " >&6
8234else
8235  if test -n "$have_mktemp_command"; then
8236  ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8237else
8238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239for as_dir in $PATH
8240do
8241  IFS=$as_save_IFS
8242  test -z "$as_dir" && as_dir=.
8243    for ac_exec_ext in '' $ac_executable_extensions; do
8244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8245    ac_cv_prog_have_mktemp_command="yes"
8246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247    break 2
8248  fi
8249done
8250  done
8251IFS=$as_save_IFS
8252
8253  test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8254fi
8255fi
8256have_mktemp_command=$ac_cv_prog_have_mktemp_command
8257if test -n "$have_mktemp_command"; then
8258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8259$as_echo "$have_mktemp_command" >&6; }
8260else
8261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262$as_echo "no" >&6; }
8263fi
8264
8265
8266
8267# See if makeinfo has been installed and is modern enough
8268# that we can use it.
8269
8270  # Extract the first word of "makeinfo", so it can be a program name with args.
8271set dummy makeinfo; ac_word=$2
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273$as_echo_n "checking for $ac_word... " >&6; }
8274if ${ac_cv_prog_MAKEINFO+:} false; then :
8275  $as_echo_n "(cached) " >&6
8276else
8277  if test -n "$MAKEINFO"; then
8278  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8279else
8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281for as_dir in $PATH
8282do
8283  IFS=$as_save_IFS
8284  test -z "$as_dir" && as_dir=.
8285    for ac_exec_ext in '' $ac_executable_extensions; do
8286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287    ac_cv_prog_MAKEINFO="makeinfo"
8288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289    break 2
8290  fi
8291done
8292  done
8293IFS=$as_save_IFS
8294
8295fi
8296fi
8297MAKEINFO=$ac_cv_prog_MAKEINFO
8298if test -n "$MAKEINFO"; then
8299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8300$as_echo "$MAKEINFO" >&6; }
8301else
8302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303$as_echo "no" >&6; }
8304fi
8305
8306
8307  if test -n "$MAKEINFO"; then
8308    # Found it, now check the version.
8309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8310$as_echo_n "checking for modern makeinfo... " >&6; }
8311if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8312  $as_echo_n "(cached) " >&6
8313else
8314  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8315                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8316
8317                    case $ac_prog_version in
8318                      '')  gcc_cv_prog_makeinfo_modern=no;;
8319                      4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8320                      *)   gcc_cv_prog_makeinfo_modern=no;;
8321                    esac
8322
8323fi
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8325$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8326  else
8327    gcc_cv_prog_makeinfo_modern=no
8328  fi
8329  if test $gcc_cv_prog_makeinfo_modern = no; then
8330    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8331  fi
8332
8333if test $gcc_cv_prog_makeinfo_modern = no; then
8334  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8335*** Makeinfo is missing or too old.
8336*** Info documentation will not be built." >&5
8337$as_echo "$as_me: WARNING:
8338*** Makeinfo is missing or too old.
8339*** Info documentation will not be built." >&2;}
8340  BUILD_INFO=
8341else
8342  BUILD_INFO=info
8343fi
8344
8345
8346# Is pod2man recent enough to regenerate manpages?
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8348$as_echo_n "checking for recent Pod::Man... " >&6; }
8349if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8351$as_echo "yes" >&6; }
8352  GENERATED_MANPAGES=generated-manpages
8353else
8354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355$as_echo "no" >&6; }
8356  GENERATED_MANPAGES=
8357fi
8358
8359
8360MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8361
8362# How about lex?
8363for ac_prog in flex
8364do
8365  # Extract the first word of "$ac_prog", so it can be a program name with args.
8366set dummy $ac_prog; ac_word=$2
8367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368$as_echo_n "checking for $ac_word... " >&6; }
8369if ${ac_cv_prog_FLEX+:} false; then :
8370  $as_echo_n "(cached) " >&6
8371else
8372  if test -n "$FLEX"; then
8373  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8374else
8375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376for as_dir in $PATH
8377do
8378  IFS=$as_save_IFS
8379  test -z "$as_dir" && as_dir=.
8380    for ac_exec_ext in '' $ac_executable_extensions; do
8381  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8382    ac_cv_prog_FLEX="$ac_prog"
8383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384    break 2
8385  fi
8386done
8387  done
8388IFS=$as_save_IFS
8389
8390fi
8391fi
8392FLEX=$ac_cv_prog_FLEX
8393if test -n "$FLEX"; then
8394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8395$as_echo "$FLEX" >&6; }
8396else
8397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398$as_echo "no" >&6; }
8399fi
8400
8401
8402  test -n "$FLEX" && break
8403done
8404test -n "$FLEX" || FLEX="$MISSING flex"
8405
8406
8407# Bison?
8408for ac_prog in bison
8409do
8410  # Extract the first word of "$ac_prog", so it can be a program name with args.
8411set dummy $ac_prog; ac_word=$2
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413$as_echo_n "checking for $ac_word... " >&6; }
8414if ${ac_cv_prog_BISON+:} false; then :
8415  $as_echo_n "(cached) " >&6
8416else
8417  if test -n "$BISON"; then
8418  ac_cv_prog_BISON="$BISON" # Let the user override the test.
8419else
8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423  IFS=$as_save_IFS
8424  test -z "$as_dir" && as_dir=.
8425    for ac_exec_ext in '' $ac_executable_extensions; do
8426  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8427    ac_cv_prog_BISON="$ac_prog"
8428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429    break 2
8430  fi
8431done
8432  done
8433IFS=$as_save_IFS
8434
8435fi
8436fi
8437BISON=$ac_cv_prog_BISON
8438if test -n "$BISON"; then
8439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8440$as_echo "$BISON" >&6; }
8441else
8442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443$as_echo "no" >&6; }
8444fi
8445
8446
8447  test -n "$BISON" && break
8448done
8449test -n "$BISON" || BISON="$MISSING bison"
8450
8451
8452# Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8453# check for build == host before using them.
8454
8455# NM
8456if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8457  && test -d ../binutils ; then
8458  NM='${objdir}/../binutils/nm-new'
8459else
8460  # Extract the first word of "nm", so it can be a program name with args.
8461set dummy nm; ac_word=$2
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463$as_echo_n "checking for $ac_word... " >&6; }
8464if ${ac_cv_prog_NM+:} false; then :
8465  $as_echo_n "(cached) " >&6
8466else
8467  if test -n "$NM"; then
8468  ac_cv_prog_NM="$NM" # Let the user override the test.
8469else
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473  IFS=$as_save_IFS
8474  test -z "$as_dir" && as_dir=.
8475    for ac_exec_ext in '' $ac_executable_extensions; do
8476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8477    ac_cv_prog_NM="nm"
8478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479    break 2
8480  fi
8481done
8482  done
8483IFS=$as_save_IFS
8484
8485  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8486fi
8487fi
8488NM=$ac_cv_prog_NM
8489if test -n "$NM"; then
8490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8491$as_echo "$NM" >&6; }
8492else
8493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494$as_echo "no" >&6; }
8495fi
8496
8497
8498fi
8499
8500# AR
8501if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8502  && test -d ../binutils ; then
8503  AR='${objdir}/../binutils/ar'
8504else
8505  # Extract the first word of "ar", so it can be a program name with args.
8506set dummy ar; ac_word=$2
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508$as_echo_n "checking for $ac_word... " >&6; }
8509if ${ac_cv_prog_AR+:} false; then :
8510  $as_echo_n "(cached) " >&6
8511else
8512  if test -n "$AR"; then
8513  ac_cv_prog_AR="$AR" # Let the user override the test.
8514else
8515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8516for as_dir in $PATH
8517do
8518  IFS=$as_save_IFS
8519  test -z "$as_dir" && as_dir=.
8520    for ac_exec_ext in '' $ac_executable_extensions; do
8521  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8522    ac_cv_prog_AR="ar"
8523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8524    break 2
8525  fi
8526done
8527  done
8528IFS=$as_save_IFS
8529
8530  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8531fi
8532fi
8533AR=$ac_cv_prog_AR
8534if test -n "$AR"; then
8535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8536$as_echo "$AR" >&6; }
8537else
8538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539$as_echo "no" >&6; }
8540fi
8541
8542
8543fi
8544
8545# The jit documentation looks better if built with sphinx, but can be
8546# built with texinfo if sphinx is not available.
8547# Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8548# Extract the first word of "sphinx-build", so it can be a program name with args.
8549set dummy sphinx-build; ac_word=$2
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551$as_echo_n "checking for $ac_word... " >&6; }
8552if ${ac_cv_prog_doc_build_sys+:} false; then :
8553  $as_echo_n "(cached) " >&6
8554else
8555  if test -n "$doc_build_sys"; then
8556  ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8557else
8558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559for as_dir in $PATH
8560do
8561  IFS=$as_save_IFS
8562  test -z "$as_dir" && as_dir=.
8563    for ac_exec_ext in '' $ac_executable_extensions; do
8564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8565    ac_cv_prog_doc_build_sys="sphinx"
8566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567    break 2
8568  fi
8569done
8570  done
8571IFS=$as_save_IFS
8572
8573  test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8574fi
8575fi
8576doc_build_sys=$ac_cv_prog_doc_build_sys
8577if test -n "$doc_build_sys"; then
8578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8579$as_echo "$doc_build_sys" >&6; }
8580else
8581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582$as_echo "no" >&6; }
8583fi
8584
8585
8586
8587# --------------------
8588# Checks for C headers
8589# --------------------
8590
8591# Need to reject headers which give warnings, so that the -Werror bootstrap
8592# works later. *sigh*  This needs to come before all header checks.
8593
8594ac_c_preproc_warn_flag=yes
8595
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8597$as_echo_n "checking for ANSI C header files... " >&6; }
8598if ${ac_cv_header_stdc+:} false; then :
8599  $as_echo_n "(cached) " >&6
8600else
8601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602/* end confdefs.h.  */
8603#include <stdlib.h>
8604#include <stdarg.h>
8605#include <string.h>
8606#include <float.h>
8607
8608int
8609main ()
8610{
8611
8612  ;
8613  return 0;
8614}
8615_ACEOF
8616if ac_fn_cxx_try_compile "$LINENO"; then :
8617  ac_cv_header_stdc=yes
8618else
8619  ac_cv_header_stdc=no
8620fi
8621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622
8623if test $ac_cv_header_stdc = yes; then
8624  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626/* end confdefs.h.  */
8627#include <string.h>
8628
8629_ACEOF
8630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8631  $EGREP "memchr" >/dev/null 2>&1; then :
8632
8633else
8634  ac_cv_header_stdc=no
8635fi
8636rm -f conftest*
8637
8638fi
8639
8640if test $ac_cv_header_stdc = yes; then
8641  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643/* end confdefs.h.  */
8644#include <stdlib.h>
8645
8646_ACEOF
8647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8648  $EGREP "free" >/dev/null 2>&1; then :
8649
8650else
8651  ac_cv_header_stdc=no
8652fi
8653rm -f conftest*
8654
8655fi
8656
8657if test $ac_cv_header_stdc = yes; then
8658  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8659  if test "$cross_compiling" = yes; then :
8660  :
8661else
8662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663/* end confdefs.h.  */
8664#include <ctype.h>
8665#include <stdlib.h>
8666#if ((' ' & 0x0FF) == 0x020)
8667# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8668# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8669#else
8670# define ISLOWER(c) \
8671		   (('a' <= (c) && (c) <= 'i') \
8672		     || ('j' <= (c) && (c) <= 'r') \
8673		     || ('s' <= (c) && (c) <= 'z'))
8674# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8675#endif
8676
8677#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8678int
8679main ()
8680{
8681  int i;
8682  for (i = 0; i < 256; i++)
8683    if (XOR (islower (i), ISLOWER (i))
8684	|| toupper (i) != TOUPPER (i))
8685      return 2;
8686  return 0;
8687}
8688_ACEOF
8689if ac_fn_cxx_try_run "$LINENO"; then :
8690
8691else
8692  ac_cv_header_stdc=no
8693fi
8694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8695  conftest.$ac_objext conftest.beam conftest.$ac_ext
8696fi
8697
8698fi
8699fi
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8701$as_echo "$ac_cv_header_stdc" >&6; }
8702if test $ac_cv_header_stdc = yes; then
8703
8704$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8705
8706fi
8707
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8709$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8710if ${ac_cv_header_time+:} false; then :
8711  $as_echo_n "(cached) " >&6
8712else
8713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714/* end confdefs.h.  */
8715#include <sys/types.h>
8716#include <sys/time.h>
8717#include <time.h>
8718
8719int
8720main ()
8721{
8722if ((struct tm *) 0)
8723return 0;
8724  ;
8725  return 0;
8726}
8727_ACEOF
8728if ac_fn_cxx_try_compile "$LINENO"; then :
8729  ac_cv_header_time=yes
8730else
8731  ac_cv_header_time=no
8732fi
8733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734fi
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8736$as_echo "$ac_cv_header_time" >&6; }
8737if test $ac_cv_header_time = yes; then
8738
8739$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8740
8741fi
8742
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8744$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8745if ${gcc_cv_header_string+:} false; then :
8746  $as_echo_n "(cached) " >&6
8747else
8748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h.  */
8750#include <string.h>
8751#include <strings.h>
8752int
8753main ()
8754{
8755
8756  ;
8757  return 0;
8758}
8759_ACEOF
8760if ac_fn_cxx_try_compile "$LINENO"; then :
8761  gcc_cv_header_string=yes
8762else
8763  gcc_cv_header_string=no
8764fi
8765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766fi
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8768$as_echo "$gcc_cv_header_string" >&6; }
8769if test $gcc_cv_header_string = yes; then
8770
8771$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8772
8773fi
8774
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8776$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8777if ${ac_cv_header_sys_wait_h+:} false; then :
8778  $as_echo_n "(cached) " >&6
8779else
8780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781/* end confdefs.h.  */
8782#include <sys/types.h>
8783#include <sys/wait.h>
8784#ifndef WEXITSTATUS
8785# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8786#endif
8787#ifndef WIFEXITED
8788# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8789#endif
8790
8791int
8792main ()
8793{
8794  int s;
8795  wait (&s);
8796  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8797  ;
8798  return 0;
8799}
8800_ACEOF
8801if ac_fn_cxx_try_compile "$LINENO"; then :
8802  ac_cv_header_sys_wait_h=yes
8803else
8804  ac_cv_header_sys_wait_h=no
8805fi
8806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807fi
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8809$as_echo "$ac_cv_header_sys_wait_h" >&6; }
8810if test $ac_cv_header_sys_wait_h = yes; then
8811
8812$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8813
8814fi
8815
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8817$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8818if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8819  $as_echo_n "(cached) " >&6
8820else
8821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822/* end confdefs.h.  */
8823#include <sys/types.h>
8824#include <termios.h>
8825#ifdef TIOCGWINSZ
8826  yes
8827#endif
8828
8829_ACEOF
8830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8831  $EGREP "yes" >/dev/null 2>&1; then :
8832  ac_cv_sys_tiocgwinsz_in_termios_h=yes
8833else
8834  ac_cv_sys_tiocgwinsz_in_termios_h=no
8835fi
8836rm -f conftest*
8837
8838fi
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8840$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8841
8842if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8844$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8845if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8846  $as_echo_n "(cached) " >&6
8847else
8848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849/* end confdefs.h.  */
8850#include <sys/types.h>
8851#include <sys/ioctl.h>
8852#ifdef TIOCGWINSZ
8853  yes
8854#endif
8855
8856_ACEOF
8857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8858  $EGREP "yes" >/dev/null 2>&1; then :
8859  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8860else
8861  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8862fi
8863rm -f conftest*
8864
8865fi
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8867$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8868
8869  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8870
8871$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8872
8873  fi
8874fi
8875
8876for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8877		 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8878		 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8879		 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8880do :
8881  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8882ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8884  cat >>confdefs.h <<_ACEOF
8885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8886_ACEOF
8887
8888fi
8889done
8890
8891
8892# Check for thread headers.
8893ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8894if test "x$ac_cv_header_thread_h" = xyes; then :
8895  have_thread_h=yes
8896else
8897  have_thread_h=
8898fi
8899
8900ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8901if test "x$ac_cv_header_pthread_h" = xyes; then :
8902  have_pthread_h=yes
8903else
8904  have_pthread_h=
8905fi
8906
8907
8908# These tests can't be done till we know if we have limits.h.
8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8910$as_echo_n "checking for CHAR_BIT... " >&6; }
8911if ${gcc_cv_decl_char_bit+:} false; then :
8912  $as_echo_n "(cached) " >&6
8913else
8914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915/* end confdefs.h.  */
8916#ifdef HAVE_LIMITS_H
8917#include <limits.h>
8918#endif
8919#ifdef CHAR_BIT
8920found
8921#endif
8922_ACEOF
8923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8924  $EGREP "found" >/dev/null 2>&1; then :
8925  gcc_cv_decl_char_bit=yes
8926else
8927  gcc_cv_decl_char_bit=no
8928fi
8929rm -f conftest*
8930
8931
8932fi
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8934$as_echo "$gcc_cv_decl_char_bit" >&6; }
8935if test $gcc_cv_decl_char_bit = no; then
8936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8937$as_echo_n "checking number of bits in a byte... " >&6; }
8938if ${gcc_cv_c_nbby+:} false; then :
8939  $as_echo_n "(cached) " >&6
8940else
8941  i=8
8942 gcc_cv_c_nbby=
8943 while test $i -lt 65; do
8944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945/* end confdefs.h.  */
8946
8947int
8948main ()
8949{
8950switch(0) {
8951  case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8952  case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8953  ; }
8954  ;
8955  return 0;
8956}
8957_ACEOF
8958if ac_fn_cxx_try_compile "$LINENO"; then :
8959  gcc_cv_c_nbby=$i; break
8960fi
8961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962   i=`expr $i + 1`
8963 done
8964 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8965
8966fi
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8968$as_echo "$gcc_cv_c_nbby" >&6; }
8969if test $gcc_cv_c_nbby = failed; then
8970  as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
8971else
8972
8973cat >>confdefs.h <<_ACEOF
8974#define CHAR_BIT $gcc_cv_c_nbby
8975_ACEOF
8976
8977fi
8978fi
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8980$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8981if ${ac_cv_c_bigendian+:} false; then :
8982  $as_echo_n "(cached) " >&6
8983else
8984  ac_cv_c_bigendian=unknown
8985    # See if we're dealing with a universal compiler.
8986    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987/* end confdefs.h.  */
8988#ifndef __APPLE_CC__
8989	       not a universal capable compiler
8990	     #endif
8991	     typedef int dummy;
8992
8993_ACEOF
8994if ac_fn_cxx_try_compile "$LINENO"; then :
8995
8996	# Check for potential -arch flags.  It is not universal unless
8997	# there are at least two -arch flags with different values.
8998	ac_arch=
8999	ac_prev=
9000	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9001	 if test -n "$ac_prev"; then
9002	   case $ac_word in
9003	     i?86 | x86_64 | ppc | ppc64)
9004	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9005		 ac_arch=$ac_word
9006	       else
9007		 ac_cv_c_bigendian=universal
9008		 break
9009	       fi
9010	       ;;
9011	   esac
9012	   ac_prev=
9013	 elif test "x$ac_word" = "x-arch"; then
9014	   ac_prev=arch
9015	 fi
9016       done
9017fi
9018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019    if test $ac_cv_c_bigendian = unknown; then
9020      # See if sys/param.h defines the BYTE_ORDER macro.
9021      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022/* end confdefs.h.  */
9023#include <sys/types.h>
9024	     #include <sys/param.h>
9025
9026int
9027main ()
9028{
9029#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9030		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9031		     && LITTLE_ENDIAN)
9032	      bogus endian macros
9033	     #endif
9034
9035  ;
9036  return 0;
9037}
9038_ACEOF
9039if ac_fn_cxx_try_compile "$LINENO"; then :
9040  # It does; now see whether it defined to BIG_ENDIAN or not.
9041	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042/* end confdefs.h.  */
9043#include <sys/types.h>
9044		#include <sys/param.h>
9045
9046int
9047main ()
9048{
9049#if BYTE_ORDER != BIG_ENDIAN
9050		 not big endian
9051		#endif
9052
9053  ;
9054  return 0;
9055}
9056_ACEOF
9057if ac_fn_cxx_try_compile "$LINENO"; then :
9058  ac_cv_c_bigendian=yes
9059else
9060  ac_cv_c_bigendian=no
9061fi
9062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063fi
9064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065    fi
9066    if test $ac_cv_c_bigendian = unknown; then
9067      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9068      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069/* end confdefs.h.  */
9070#include <limits.h>
9071
9072int
9073main ()
9074{
9075#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9076	      bogus endian macros
9077	     #endif
9078
9079  ;
9080  return 0;
9081}
9082_ACEOF
9083if ac_fn_cxx_try_compile "$LINENO"; then :
9084  # It does; now see whether it defined to _BIG_ENDIAN or not.
9085	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087#include <limits.h>
9088
9089int
9090main ()
9091{
9092#ifndef _BIG_ENDIAN
9093		 not big endian
9094		#endif
9095
9096  ;
9097  return 0;
9098}
9099_ACEOF
9100if ac_fn_cxx_try_compile "$LINENO"; then :
9101  ac_cv_c_bigendian=yes
9102else
9103  ac_cv_c_bigendian=no
9104fi
9105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106fi
9107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108    fi
9109    if test $ac_cv_c_bigendian = unknown; then
9110      # Compile a test program.
9111      if test "$cross_compiling" = yes; then :
9112  # Try to guess by grepping values from an object file.
9113	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114/* end confdefs.h.  */
9115short int ascii_mm[] =
9116		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9117		short int ascii_ii[] =
9118		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9119		int use_ascii (int i) {
9120		  return ascii_mm[i] + ascii_ii[i];
9121		}
9122		short int ebcdic_ii[] =
9123		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9124		short int ebcdic_mm[] =
9125		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9126		int use_ebcdic (int i) {
9127		  return ebcdic_mm[i] + ebcdic_ii[i];
9128		}
9129		extern int foo;
9130
9131int
9132main ()
9133{
9134return use_ascii (foo) == use_ebcdic (foo);
9135  ;
9136  return 0;
9137}
9138_ACEOF
9139if ac_fn_cxx_try_compile "$LINENO"; then :
9140  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9141	      ac_cv_c_bigendian=yes
9142	    fi
9143	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9144	      if test "$ac_cv_c_bigendian" = unknown; then
9145		ac_cv_c_bigendian=no
9146	      else
9147		# finding both strings is unlikely to happen, but who knows?
9148		ac_cv_c_bigendian=unknown
9149	      fi
9150	    fi
9151fi
9152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153else
9154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h.  */
9156$ac_includes_default
9157int
9158main ()
9159{
9160
9161	     /* Are we little or big endian?  From Harbison&Steele.  */
9162	     union
9163	     {
9164	       long int l;
9165	       char c[sizeof (long int)];
9166	     } u;
9167	     u.l = 1;
9168	     return u.c[sizeof (long int) - 1] == 1;
9169
9170  ;
9171  return 0;
9172}
9173_ACEOF
9174if ac_fn_cxx_try_run "$LINENO"; then :
9175  ac_cv_c_bigendian=no
9176else
9177  ac_cv_c_bigendian=yes
9178fi
9179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9180  conftest.$ac_objext conftest.beam conftest.$ac_ext
9181fi
9182
9183    fi
9184fi
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9186$as_echo "$ac_cv_c_bigendian" >&6; }
9187 case $ac_cv_c_bigendian in #(
9188   yes)
9189     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9190;; #(
9191   no)
9192      ;; #(
9193   universal)
9194
9195$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9196
9197     ;; #(
9198   *)
9199     as_fn_error $? "unknown endianness
9200 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9201 esac
9202
9203
9204# ----------------------
9205# Checks for C++ headers
9206# ----------------------
9207
9208ac_ext=cpp
9209ac_cpp='$CXXCPP $CPPFLAGS'
9210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9214$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9215if test -z "$CXXCPP"; then
9216  if ${ac_cv_prog_CXXCPP+:} false; then :
9217  $as_echo_n "(cached) " >&6
9218else
9219      # Double quotes because CXXCPP needs to be expanded
9220    for CXXCPP in "$CXX -E" "/lib/cpp"
9221    do
9222      ac_preproc_ok=false
9223for ac_cxx_preproc_warn_flag in '' yes
9224do
9225  # Use a header file that comes with gcc, so configuring glibc
9226  # with a fresh cross-compiler works.
9227  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9228  # <limits.h> exists even on freestanding compilers.
9229  # On the NeXT, cc -E runs the code through the compiler's parser,
9230  # not just through cpp. "Syntax error" is here to catch this case.
9231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232/* end confdefs.h.  */
9233#ifdef __STDC__
9234# include <limits.h>
9235#else
9236# include <assert.h>
9237#endif
9238		     Syntax error
9239_ACEOF
9240if ac_fn_cxx_try_cpp "$LINENO"; then :
9241
9242else
9243  # Broken: fails on valid input.
9244continue
9245fi
9246rm -f conftest.err conftest.i conftest.$ac_ext
9247
9248  # OK, works on sane cases.  Now check whether nonexistent headers
9249  # can be detected and how.
9250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251/* end confdefs.h.  */
9252#include <ac_nonexistent.h>
9253_ACEOF
9254if ac_fn_cxx_try_cpp "$LINENO"; then :
9255  # Broken: success on invalid input.
9256continue
9257else
9258  # Passes both tests.
9259ac_preproc_ok=:
9260break
9261fi
9262rm -f conftest.err conftest.i conftest.$ac_ext
9263
9264done
9265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9266rm -f conftest.i conftest.err conftest.$ac_ext
9267if $ac_preproc_ok; then :
9268  break
9269fi
9270
9271    done
9272    ac_cv_prog_CXXCPP=$CXXCPP
9273
9274fi
9275  CXXCPP=$ac_cv_prog_CXXCPP
9276else
9277  ac_cv_prog_CXXCPP=$CXXCPP
9278fi
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9280$as_echo "$CXXCPP" >&6; }
9281ac_preproc_ok=false
9282for ac_cxx_preproc_warn_flag in '' yes
9283do
9284  # Use a header file that comes with gcc, so configuring glibc
9285  # with a fresh cross-compiler works.
9286  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9287  # <limits.h> exists even on freestanding compilers.
9288  # On the NeXT, cc -E runs the code through the compiler's parser,
9289  # not just through cpp. "Syntax error" is here to catch this case.
9290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291/* end confdefs.h.  */
9292#ifdef __STDC__
9293# include <limits.h>
9294#else
9295# include <assert.h>
9296#endif
9297		     Syntax error
9298_ACEOF
9299if ac_fn_cxx_try_cpp "$LINENO"; then :
9300
9301else
9302  # Broken: fails on valid input.
9303continue
9304fi
9305rm -f conftest.err conftest.i conftest.$ac_ext
9306
9307  # OK, works on sane cases.  Now check whether nonexistent headers
9308  # can be detected and how.
9309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310/* end confdefs.h.  */
9311#include <ac_nonexistent.h>
9312_ACEOF
9313if ac_fn_cxx_try_cpp "$LINENO"; then :
9314  # Broken: success on invalid input.
9315continue
9316else
9317  # Passes both tests.
9318ac_preproc_ok=:
9319break
9320fi
9321rm -f conftest.err conftest.i conftest.$ac_ext
9322
9323done
9324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9325rm -f conftest.i conftest.err conftest.$ac_ext
9326if $ac_preproc_ok; then :
9327
9328else
9329  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9332See \`config.log' for more details" >&5
9333$as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9334See \`config.log' for more details" >&2;}; }
9335fi
9336
9337ac_ext=cpp
9338ac_cpp='$CXXCPP $CPPFLAGS'
9339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9342
9343
9344for ac_header in unordered_map
9345do :
9346  ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9347if test "x$ac_cv_header_unordered_map" = xyes; then :
9348  cat >>confdefs.h <<_ACEOF
9349#define HAVE_UNORDERED_MAP 1
9350_ACEOF
9351
9352fi
9353done
9354
9355for ac_header in tr1/unordered_map
9356do :
9357  ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9358if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9359  cat >>confdefs.h <<_ACEOF
9360#define HAVE_TR1_UNORDERED_MAP 1
9361_ACEOF
9362
9363fi
9364done
9365
9366for ac_header in ext/hash_map
9367do :
9368  ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9369if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9370  cat >>confdefs.h <<_ACEOF
9371#define HAVE_EXT_HASH_MAP 1
9372_ACEOF
9373
9374fi
9375done
9376
9377
9378# --------
9379# Dependency checking.
9380# --------
9381
9382rm -rf .tst 2>/dev/null
9383mkdir .tst 2>/dev/null
9384if test -d .tst; then
9385  am__leading_dot=.
9386else
9387  am__leading_dot=_
9388fi
9389rmdir .tst 2>/dev/null
9390
9391DEPDIR="${am__leading_dot}deps"
9392
9393ac_config_commands="$ac_config_commands depdir"
9394
9395
9396ac_config_commands="$ac_config_commands gccdepdir"
9397
9398
9399depcc="$CXX"  am_compiler_list=
9400
9401am_depcomp=$ac_aux_dir/depcomp
9402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9403$as_echo_n "checking dependency style of $depcc... " >&6; }
9404if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9405  $as_echo_n "(cached) " >&6
9406else
9407  if test -f "$am_depcomp"; then
9408  # We make a subdir and do the tests there.  Otherwise we can end up
9409  # making bogus files that we don't know about and never remove.  For
9410  # instance it was reported that on HP-UX the gcc test will end up
9411  # making a dummy file named `D' -- because `-MD' means `put the output
9412  # in D'.
9413  mkdir conftest.dir
9414  # Copy depcomp to subdir because otherwise we won't find it if we're
9415  # using a relative directory.
9416  cp "$am_depcomp" conftest.dir
9417  cd conftest.dir
9418  # We will build objects and dependencies in a subdirectory because
9419  # it helps to detect inapplicable dependency modes.  For instance
9420  # both Tru64's cc and ICC support -MD to output dependencies as a
9421  # side effect of compilation, but ICC will put the dependencies in
9422  # the current directory while Tru64 will put them in the object
9423  # directory.
9424  mkdir sub
9425
9426  am_cv_CXX_dependencies_compiler_type=none
9427  if test "$am_compiler_list" = ""; then
9428     am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9429  fi
9430  for depmode in $am_compiler_list; do
9431    if test $depmode = none; then break; fi
9432
9433    $as_echo "$as_me:$LINENO: trying $depmode" >&5
9434    # Setup a source with many dependencies, because some compilers
9435    # like to wrap large dependency lists on column 80 (with \), and
9436    # we should not choose a depcomp mode which is confused by this.
9437    #
9438    # We need to recreate these files for each test, as the compiler may
9439    # overwrite some of them when testing with obscure command lines.
9440    # This happens at least with the AIX C compiler.
9441    : > sub/conftest.c
9442    for i in 1 2 3 4 5 6; do
9443      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9444      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9445      # Solaris 8's {/usr,}/bin/sh.
9446      touch sub/conftst$i.h
9447    done
9448    echo "include sub/conftest.Po" > confmf
9449
9450    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9451    # mode.  It turns out that the SunPro C++ compiler does not properly
9452    # handle `-M -o', and we need to detect this.
9453    depcmd="depmode=$depmode \
9454       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9455       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9456       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9457    echo "| $depcmd" | sed -e 's/  */ /g' >&5
9458    if env $depcmd > conftest.err 2>&1 &&
9459       grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9460       grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9461       ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9462      # icc doesn't choke on unknown options, it will just issue warnings
9463      # or remarks (even with -Werror).  So we grep stderr for any message
9464      # that says an option was ignored or not supported.
9465      # When given -MP, icc 7.0 and 7.1 complain thusly:
9466      #   icc: Command line warning: ignoring option '-M'; no argument required
9467      # The diagnosis changed in icc 8.0:
9468      #   icc: Command line remark: option '-MP' not supported
9469      if (grep 'ignoring option' conftest.err ||
9470          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9471        am_cv_CXX_dependencies_compiler_type=$depmode
9472	$as_echo "$as_me:$LINENO: success" >&5
9473        break
9474      fi
9475    fi
9476    $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9477    sed -e 's/^/| /' < conftest.err >&5
9478  done
9479
9480  cd ..
9481  rm -rf conftest.dir
9482else
9483  am_cv_CXX_dependencies_compiler_type=none
9484fi
9485
9486fi
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9488$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9489if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9490then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9491else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9492
9493fi
9494
9495
9496# --------
9497# UNSORTED
9498# --------
9499
9500
9501# These libraries may be used by collect2.
9502# We may need a special search path to get them linked.
9503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9504$as_echo_n "checking for collect2 libraries... " >&6; }
9505if ${gcc_cv_collect2_libs+:} false; then :
9506  $as_echo_n "(cached) " >&6
9507else
9508  save_LIBS="$LIBS"
9509for libs in '' -lld -lmld \
9510		'-L/usr/lib/cmplrs/cc2.11 -lmld' \
9511		'-L/usr/lib/cmplrs/cc3.11 -lmld'
9512do
9513	LIBS="$libs"
9514	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515/* end confdefs.h.  */
9516
9517/* Override any GCC internal prototype to avoid an error.
9518   Use char because int might match the return type of a GCC
9519   builtin and then its argument prototype would still apply.  */
9520#ifdef __cplusplus
9521extern "C"
9522#endif
9523char ldopen ();
9524int
9525main ()
9526{
9527return ldopen ();
9528  ;
9529  return 0;
9530}
9531_ACEOF
9532if ac_fn_cxx_try_link "$LINENO"; then :
9533  gcc_cv_collect2_libs="$libs"; break
9534fi
9535rm -f core conftest.err conftest.$ac_objext \
9536    conftest$ac_exeext conftest.$ac_ext
9537done
9538LIBS="$save_LIBS"
9539test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9540fi
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9542$as_echo "$gcc_cv_collect2_libs" >&6; }
9543case $gcc_cv_collect2_libs in
9544	"none required")	;;
9545	*)	COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9546esac
9547
9548
9549# When building Ada code on Alpha, we need exc_resume which is usually in
9550# -lexc.  So test for it.
9551save_LIBS="$LIBS"
9552LIBS=
9553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9554$as_echo_n "checking for library containing exc_resume... " >&6; }
9555if ${ac_cv_search_exc_resume+:} false; then :
9556  $as_echo_n "(cached) " >&6
9557else
9558  ac_func_search_save_LIBS=$LIBS
9559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560/* end confdefs.h.  */
9561
9562/* Override any GCC internal prototype to avoid an error.
9563   Use char because int might match the return type of a GCC
9564   builtin and then its argument prototype would still apply.  */
9565#ifdef __cplusplus
9566extern "C"
9567#endif
9568char exc_resume ();
9569int
9570main ()
9571{
9572return exc_resume ();
9573  ;
9574  return 0;
9575}
9576_ACEOF
9577for ac_lib in '' exc; do
9578  if test -z "$ac_lib"; then
9579    ac_res="none required"
9580  else
9581    ac_res=-l$ac_lib
9582    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9583  fi
9584  if ac_fn_cxx_try_link "$LINENO"; then :
9585  ac_cv_search_exc_resume=$ac_res
9586fi
9587rm -f core conftest.err conftest.$ac_objext \
9588    conftest$ac_exeext
9589  if ${ac_cv_search_exc_resume+:} false; then :
9590  break
9591fi
9592done
9593if ${ac_cv_search_exc_resume+:} false; then :
9594
9595else
9596  ac_cv_search_exc_resume=no
9597fi
9598rm conftest.$ac_ext
9599LIBS=$ac_func_search_save_LIBS
9600fi
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9602$as_echo "$ac_cv_search_exc_resume" >&6; }
9603ac_res=$ac_cv_search_exc_resume
9604if test "$ac_res" != no; then :
9605  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9606
9607fi
9608
9609GNAT_LIBEXC="$LIBS"
9610LIBS="$save_LIBS"
9611
9612
9613# To support -mcpu=native on Solaris/SPARC, we need libkstat.
9614save_LIBS="$LIBS"
9615LIBS=
9616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9617$as_echo_n "checking for library containing kstat_open... " >&6; }
9618if ${ac_cv_search_kstat_open+:} false; then :
9619  $as_echo_n "(cached) " >&6
9620else
9621  ac_func_search_save_LIBS=$LIBS
9622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623/* end confdefs.h.  */
9624
9625/* Override any GCC internal prototype to avoid an error.
9626   Use char because int might match the return type of a GCC
9627   builtin and then its argument prototype would still apply.  */
9628#ifdef __cplusplus
9629extern "C"
9630#endif
9631char kstat_open ();
9632int
9633main ()
9634{
9635return kstat_open ();
9636  ;
9637  return 0;
9638}
9639_ACEOF
9640for ac_lib in '' kstat; do
9641  if test -z "$ac_lib"; then
9642    ac_res="none required"
9643  else
9644    ac_res=-l$ac_lib
9645    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9646  fi
9647  if ac_fn_cxx_try_link "$LINENO"; then :
9648  ac_cv_search_kstat_open=$ac_res
9649fi
9650rm -f core conftest.err conftest.$ac_objext \
9651    conftest$ac_exeext
9652  if ${ac_cv_search_kstat_open+:} false; then :
9653  break
9654fi
9655done
9656if ${ac_cv_search_kstat_open+:} false; then :
9657
9658else
9659  ac_cv_search_kstat_open=no
9660fi
9661rm conftest.$ac_ext
9662LIBS=$ac_func_search_save_LIBS
9663fi
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9665$as_echo "$ac_cv_search_kstat_open" >&6; }
9666ac_res=$ac_cv_search_kstat_open
9667if test "$ac_res" != no; then :
9668  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9669
9670fi
9671
9672EXTRA_GCC_LIBS="$LIBS"
9673LIBS="$save_LIBS"
9674
9675
9676# Some systems put ldexp and frexp in libm instead of libc; assume
9677# they're both in the same place.  jcf-dump needs them.
9678save_LIBS="$LIBS"
9679LIBS=
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9681$as_echo_n "checking for library containing ldexp... " >&6; }
9682if ${ac_cv_search_ldexp+:} false; then :
9683  $as_echo_n "(cached) " >&6
9684else
9685  ac_func_search_save_LIBS=$LIBS
9686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687/* end confdefs.h.  */
9688
9689/* Override any GCC internal prototype to avoid an error.
9690   Use char because int might match the return type of a GCC
9691   builtin and then its argument prototype would still apply.  */
9692#ifdef __cplusplus
9693extern "C"
9694#endif
9695char ldexp ();
9696int
9697main ()
9698{
9699return ldexp ();
9700  ;
9701  return 0;
9702}
9703_ACEOF
9704for ac_lib in '' m; do
9705  if test -z "$ac_lib"; then
9706    ac_res="none required"
9707  else
9708    ac_res=-l$ac_lib
9709    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9710  fi
9711  if ac_fn_cxx_try_link "$LINENO"; then :
9712  ac_cv_search_ldexp=$ac_res
9713fi
9714rm -f core conftest.err conftest.$ac_objext \
9715    conftest$ac_exeext
9716  if ${ac_cv_search_ldexp+:} false; then :
9717  break
9718fi
9719done
9720if ${ac_cv_search_ldexp+:} false; then :
9721
9722else
9723  ac_cv_search_ldexp=no
9724fi
9725rm conftest.$ac_ext
9726LIBS=$ac_func_search_save_LIBS
9727fi
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9729$as_echo "$ac_cv_search_ldexp" >&6; }
9730ac_res=$ac_cv_search_ldexp
9731if test "$ac_res" != no; then :
9732  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9733
9734fi
9735
9736LDEXP_LIB="$LIBS"
9737LIBS="$save_LIBS"
9738
9739
9740# Some systems need dlopen
9741save_LIBS="$LIBS"
9742LIBS=
9743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9744$as_echo_n "checking for library containing dlopen... " >&6; }
9745if ${ac_cv_search_dlopen+:} false; then :
9746  $as_echo_n "(cached) " >&6
9747else
9748  ac_func_search_save_LIBS=$LIBS
9749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750/* end confdefs.h.  */
9751
9752/* Override any GCC internal prototype to avoid an error.
9753   Use char because int might match the return type of a GCC
9754   builtin and then its argument prototype would still apply.  */
9755#ifdef __cplusplus
9756extern "C"
9757#endif
9758char dlopen ();
9759int
9760main ()
9761{
9762return dlopen ();
9763  ;
9764  return 0;
9765}
9766_ACEOF
9767for ac_lib in '' dl; do
9768  if test -z "$ac_lib"; then
9769    ac_res="none required"
9770  else
9771    ac_res=-l$ac_lib
9772    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9773  fi
9774  if ac_fn_cxx_try_link "$LINENO"; then :
9775  ac_cv_search_dlopen=$ac_res
9776fi
9777rm -f core conftest.err conftest.$ac_objext \
9778    conftest$ac_exeext
9779  if ${ac_cv_search_dlopen+:} false; then :
9780  break
9781fi
9782done
9783if ${ac_cv_search_dlopen+:} false; then :
9784
9785else
9786  ac_cv_search_dlopen=no
9787fi
9788rm conftest.$ac_ext
9789LIBS=$ac_func_search_save_LIBS
9790fi
9791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9792$as_echo "$ac_cv_search_dlopen" >&6; }
9793ac_res=$ac_cv_search_dlopen
9794if test "$ac_res" != no; then :
9795  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9796
9797fi
9798
9799DL_LIB="$LIBS"
9800LIBS="$save_LIBS"
9801
9802
9803# Use <inttypes.h> only if it exists,
9804# doesn't clash with <sys/types.h>, declares intmax_t and defines
9805# PRId64
9806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9807$as_echo_n "checking for inttypes.h... " >&6; }
9808if ${gcc_cv_header_inttypes_h+:} false; then :
9809  $as_echo_n "(cached) " >&6
9810else
9811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812/* end confdefs.h.  */
9813#define __STDC_FORMAT_MACROS
9814#include <sys/types.h>
9815#include <inttypes.h>
9816int
9817main ()
9818{
9819intmax_t i = -1;
9820#ifndef PRId64
9821choke me
9822#endif
9823  ;
9824  return 0;
9825}
9826_ACEOF
9827if ac_fn_cxx_try_compile "$LINENO"; then :
9828  gcc_cv_header_inttypes_h=yes
9829else
9830  gcc_cv_header_inttypes_h=no
9831fi
9832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833fi
9834
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9836$as_echo "$gcc_cv_header_inttypes_h" >&6; }
9837if test $gcc_cv_header_inttypes_h = yes; then
9838
9839$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9840
9841fi
9842
9843
9844
9845for ac_func in times clock kill getrlimit setrlimit atoq \
9846	popen sysconf strsignal getrusage nl_langinfo \
9847	gettimeofday mbstowcs wcswidth mmap setlocale \
9848	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
9849do :
9850  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9851ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9852if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9853  cat >>confdefs.h <<_ACEOF
9854#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9855_ACEOF
9856
9857fi
9858done
9859
9860
9861if test x$ac_cv_func_mbstowcs = xyes; then
9862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9863$as_echo_n "checking whether mbstowcs works... " >&6; }
9864if ${gcc_cv_func_mbstowcs_works+:} false; then :
9865  $as_echo_n "(cached) " >&6
9866else
9867      if test "$cross_compiling" = yes; then :
9868  gcc_cv_func_mbstowcs_works=yes
9869else
9870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871/* end confdefs.h.  */
9872#include <stdlib.h>
9873int main()
9874{
9875  mbstowcs(0, "", 0);
9876  return 0;
9877}
9878_ACEOF
9879if ac_fn_cxx_try_run "$LINENO"; then :
9880  gcc_cv_func_mbstowcs_works=yes
9881else
9882  gcc_cv_func_mbstowcs_works=no
9883fi
9884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9885  conftest.$ac_objext conftest.beam conftest.$ac_ext
9886fi
9887
9888fi
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9890$as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9891  if test x$gcc_cv_func_mbstowcs_works = xyes; then
9892
9893$as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9894
9895  fi
9896fi
9897
9898ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9899if test "x$ac_cv_type_ssize_t" = xyes; then :
9900
9901else
9902
9903cat >>confdefs.h <<_ACEOF
9904#define ssize_t int
9905_ACEOF
9906
9907fi
9908
9909ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9910if test "x$ac_cv_type_caddr_t" = xyes; then :
9911
9912else
9913
9914cat >>confdefs.h <<_ACEOF
9915#define caddr_t char *
9916_ACEOF
9917
9918fi
9919
9920
9921
9922ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9923if test "x$ac_cv_header_sys_mman_h" = xyes; then :
9924  gcc_header_sys_mman_h=yes
9925else
9926  gcc_header_sys_mman_h=no
9927fi
9928
9929ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9930if test "x$ac_cv_func_mmap" = xyes; then :
9931  gcc_func_mmap=yes
9932else
9933  gcc_func_mmap=no
9934fi
9935
9936if test "$gcc_header_sys_mman_h" != yes \
9937 || test "$gcc_func_mmap" != yes; then
9938   gcc_cv_func_mmap_file=no
9939   gcc_cv_func_mmap_dev_zero=no
9940   gcc_cv_func_mmap_anon=no
9941else
9942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9943$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9944if ${gcc_cv_func_mmap_file+:} false; then :
9945  $as_echo_n "(cached) " >&6
9946else
9947  # Add a system to this blacklist if
9948   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9949   # memory area containing the same data that you'd get if you applied
9950   # read() to the same fd.  The only system known to have a problem here
9951   # is VMS, where text files have record structure.
9952   case "$host_os" in
9953     *vms* | ultrix*)
9954        gcc_cv_func_mmap_file=no ;;
9955     *)
9956        gcc_cv_func_mmap_file=yes;;
9957   esac
9958fi
9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9960$as_echo "$gcc_cv_func_mmap_file" >&6; }
9961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9962$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9963if ${gcc_cv_func_mmap_dev_zero+:} false; then :
9964  $as_echo_n "(cached) " >&6
9965else
9966  # Add a system to this blacklist if it has mmap() but /dev/zero
9967   # does not exist, or if mmapping /dev/zero does not give anonymous
9968   # zeroed pages with both the following properties:
9969   # 1. If you map N consecutive pages in with one call, and then
9970   #    unmap any subset of those pages, the pages that were not
9971   #    explicitly unmapped remain accessible.
9972   # 2. If you map two adjacent blocks of memory and then unmap them
9973   #    both at once, they must both go away.
9974   # Systems known to be in this category are Windows (all variants),
9975   # VMS, and Darwin.
9976   case "$host_os" in
9977     *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9978        gcc_cv_func_mmap_dev_zero=no ;;
9979     *)
9980        gcc_cv_func_mmap_dev_zero=yes;;
9981   esac
9982fi
9983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9984$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9985
9986   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9988$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9989if ${gcc_cv_decl_map_anon+:} false; then :
9990  $as_echo_n "(cached) " >&6
9991else
9992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993/* end confdefs.h.  */
9994#include <sys/types.h>
9995#include <sys/mman.h>
9996#include <unistd.h>
9997
9998#ifndef MAP_ANONYMOUS
9999#define MAP_ANONYMOUS MAP_ANON
10000#endif
10001
10002int
10003main ()
10004{
10005int n = MAP_ANONYMOUS;
10006  ;
10007  return 0;
10008}
10009_ACEOF
10010if ac_fn_cxx_try_compile "$LINENO"; then :
10011  gcc_cv_decl_map_anon=yes
10012else
10013  gcc_cv_decl_map_anon=no
10014fi
10015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10016fi
10017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10018$as_echo "$gcc_cv_decl_map_anon" >&6; }
10019
10020   if test $gcc_cv_decl_map_anon = no; then
10021     gcc_cv_func_mmap_anon=no
10022   else
10023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10024$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10025if ${gcc_cv_func_mmap_anon+:} false; then :
10026  $as_echo_n "(cached) " >&6
10027else
10028  # Add a system to this blacklist if it has mmap() and MAP_ANON or
10029   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10030   # doesn't give anonymous zeroed pages with the same properties listed
10031   # above for use of /dev/zero.
10032   # Systems known to be in this category are Windows, VMS, and SCO Unix.
10033   case "$host_os" in
10034     *vms* | cygwin* | pe | mingw* | sco* | udk* )
10035        gcc_cv_func_mmap_anon=no ;;
10036     *)
10037        gcc_cv_func_mmap_anon=yes;;
10038   esac
10039fi
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10041$as_echo "$gcc_cv_func_mmap_anon" >&6; }
10042   fi
10043fi
10044
10045if test $gcc_cv_func_mmap_file = yes; then
10046
10047$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10048
10049fi
10050if test $gcc_cv_func_mmap_dev_zero = yes; then
10051
10052$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10053
10054fi
10055if test $gcc_cv_func_mmap_anon = yes; then
10056
10057$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10058
10059fi
10060
10061
10062case "${host}" in
10063*-*-*vms*)
10064  # Under VMS, vfork works very differently than on Unix. The standard test
10065  # won't work, and it isn't easily adaptable. It makes more sense to
10066  # just force it.
10067  ac_cv_func_vfork_works=yes
10068  ;;
10069esac
10070ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10071if test "x$ac_cv_type_pid_t" = xyes; then :
10072
10073else
10074
10075cat >>confdefs.h <<_ACEOF
10076#define pid_t int
10077_ACEOF
10078
10079fi
10080
10081for ac_header in vfork.h
10082do :
10083  ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10084if test "x$ac_cv_header_vfork_h" = xyes; then :
10085  cat >>confdefs.h <<_ACEOF
10086#define HAVE_VFORK_H 1
10087_ACEOF
10088
10089fi
10090done
10091
10092for ac_func in fork vfork
10093do :
10094  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10095ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10096if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10097  cat >>confdefs.h <<_ACEOF
10098#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10099_ACEOF
10100
10101fi
10102done
10103
10104if test "x$ac_cv_func_fork" = xyes; then
10105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10106$as_echo_n "checking for working fork... " >&6; }
10107if ${ac_cv_func_fork_works+:} false; then :
10108  $as_echo_n "(cached) " >&6
10109else
10110  if test "$cross_compiling" = yes; then :
10111  ac_cv_func_fork_works=cross
10112else
10113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114/* end confdefs.h.  */
10115$ac_includes_default
10116int
10117main ()
10118{
10119
10120	  /* By Ruediger Kuhlmann. */
10121	  return fork () < 0;
10122
10123  ;
10124  return 0;
10125}
10126_ACEOF
10127if ac_fn_cxx_try_run "$LINENO"; then :
10128  ac_cv_func_fork_works=yes
10129else
10130  ac_cv_func_fork_works=no
10131fi
10132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10133  conftest.$ac_objext conftest.beam conftest.$ac_ext
10134fi
10135
10136fi
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10138$as_echo "$ac_cv_func_fork_works" >&6; }
10139
10140else
10141  ac_cv_func_fork_works=$ac_cv_func_fork
10142fi
10143if test "x$ac_cv_func_fork_works" = xcross; then
10144  case $host in
10145    *-*-amigaos* | *-*-msdosdjgpp*)
10146      # Override, as these systems have only a dummy fork() stub
10147      ac_cv_func_fork_works=no
10148      ;;
10149    *)
10150      ac_cv_func_fork_works=yes
10151      ;;
10152  esac
10153  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10154$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10155fi
10156ac_cv_func_vfork_works=$ac_cv_func_vfork
10157if test "x$ac_cv_func_vfork" = xyes; then
10158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10159$as_echo_n "checking for working vfork... " >&6; }
10160if ${ac_cv_func_vfork_works+:} false; then :
10161  $as_echo_n "(cached) " >&6
10162else
10163  if test "$cross_compiling" = yes; then :
10164  ac_cv_func_vfork_works=cross
10165else
10166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167/* end confdefs.h.  */
10168/* Thanks to Paul Eggert for this test.  */
10169$ac_includes_default
10170#include <sys/wait.h>
10171#ifdef HAVE_VFORK_H
10172# include <vfork.h>
10173#endif
10174/* On some sparc systems, changes by the child to local and incoming
10175   argument registers are propagated back to the parent.  The compiler
10176   is told about this with #include <vfork.h>, but some compilers
10177   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10178   static variable whose address is put into a register that is
10179   clobbered by the vfork.  */
10180static void
10181#ifdef __cplusplus
10182sparc_address_test (int arg)
10183# else
10184sparc_address_test (arg) int arg;
10185#endif
10186{
10187  static pid_t child;
10188  if (!child) {
10189    child = vfork ();
10190    if (child < 0) {
10191      perror ("vfork");
10192      _exit(2);
10193    }
10194    if (!child) {
10195      arg = getpid();
10196      write(-1, "", 0);
10197      _exit (arg);
10198    }
10199  }
10200}
10201
10202int
10203main ()
10204{
10205  pid_t parent = getpid ();
10206  pid_t child;
10207
10208  sparc_address_test (0);
10209
10210  child = vfork ();
10211
10212  if (child == 0) {
10213    /* Here is another test for sparc vfork register problems.  This
10214       test uses lots of local variables, at least as many local
10215       variables as main has allocated so far including compiler
10216       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10217       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10218       reuse the register of parent for one of the local variables,
10219       since it will think that parent can't possibly be used any more
10220       in this routine.  Assigning to the local variable will thus
10221       munge parent in the parent process.  */
10222    pid_t
10223      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10224      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10225    /* Convince the compiler that p..p7 are live; otherwise, it might
10226       use the same hardware register for all 8 local variables.  */
10227    if (p != p1 || p != p2 || p != p3 || p != p4
10228	|| p != p5 || p != p6 || p != p7)
10229      _exit(1);
10230
10231    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10232       from child file descriptors.  If the child closes a descriptor
10233       before it execs or exits, this munges the parent's descriptor
10234       as well.  Test for this by closing stdout in the child.  */
10235    _exit(close(fileno(stdout)) != 0);
10236  } else {
10237    int status;
10238    struct stat st;
10239
10240    while (wait(&status) != child)
10241      ;
10242    return (
10243	 /* Was there some problem with vforking?  */
10244	 child < 0
10245
10246	 /* Did the child fail?  (This shouldn't happen.)  */
10247	 || status
10248
10249	 /* Did the vfork/compiler bug occur?  */
10250	 || parent != getpid()
10251
10252	 /* Did the file descriptor bug occur?  */
10253	 || fstat(fileno(stdout), &st) != 0
10254	 );
10255  }
10256}
10257_ACEOF
10258if ac_fn_cxx_try_run "$LINENO"; then :
10259  ac_cv_func_vfork_works=yes
10260else
10261  ac_cv_func_vfork_works=no
10262fi
10263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10264  conftest.$ac_objext conftest.beam conftest.$ac_ext
10265fi
10266
10267fi
10268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10269$as_echo "$ac_cv_func_vfork_works" >&6; }
10270
10271fi;
10272if test "x$ac_cv_func_fork_works" = xcross; then
10273  ac_cv_func_vfork_works=$ac_cv_func_vfork
10274  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10275$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10276fi
10277
10278if test "x$ac_cv_func_vfork_works" = xyes; then
10279
10280$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10281
10282else
10283
10284$as_echo "#define vfork fork" >>confdefs.h
10285
10286fi
10287if test "x$ac_cv_func_fork_works" = xyes; then
10288
10289$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10290
10291fi
10292
10293
10294
10295      if test "X$prefix" = "XNONE"; then
10296    acl_final_prefix="$ac_default_prefix"
10297  else
10298    acl_final_prefix="$prefix"
10299  fi
10300  if test "X$exec_prefix" = "XNONE"; then
10301    acl_final_exec_prefix='${prefix}'
10302  else
10303    acl_final_exec_prefix="$exec_prefix"
10304  fi
10305  acl_save_prefix="$prefix"
10306  prefix="$acl_final_prefix"
10307  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10308  prefix="$acl_save_prefix"
10309
10310
10311# Check whether --with-gnu-ld was given.
10312if test "${with_gnu_ld+set}" = set; then :
10313  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10314else
10315  with_gnu_ld=no
10316fi
10317
10318# Prepare PATH_SEPARATOR.
10319# The user is always right.
10320if test "${PATH_SEPARATOR+set}" != set; then
10321  echo "#! /bin/sh" >conf$$.sh
10322  echo  "exit 0"   >>conf$$.sh
10323  chmod +x conf$$.sh
10324  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10325    PATH_SEPARATOR=';'
10326  else
10327    PATH_SEPARATOR=:
10328  fi
10329  rm -f conf$$.sh
10330fi
10331ac_prog=ld
10332if test "$GCC" = yes; then
10333  # Check if gcc -print-prog-name=ld gives a path.
10334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10335$as_echo_n "checking for ld used by GCC... " >&6; }
10336  case $host in
10337  *-*-mingw*)
10338    # gcc leaves a trailing carriage return which upsets mingw
10339    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10340  *)
10341    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10342  esac
10343  case $ac_prog in
10344    # Accept absolute paths.
10345    [\\/]* | [A-Za-z]:[\\/]*)
10346      re_direlt='/[^/][^/]*/\.\./'
10347      # Canonicalize the path of ld
10348      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10349      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10350	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10351      done
10352      test -z "$LD" && LD="$ac_prog"
10353      ;;
10354  "")
10355    # If it fails, then pretend we aren't using GCC.
10356    ac_prog=ld
10357    ;;
10358  *)
10359    # If it is relative, then search for the first ld in PATH.
10360    with_gnu_ld=unknown
10361    ;;
10362  esac
10363elif test "$with_gnu_ld" = yes; then
10364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10365$as_echo_n "checking for GNU ld... " >&6; }
10366else
10367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10368$as_echo_n "checking for non-GNU ld... " >&6; }
10369fi
10370if ${acl_cv_path_LD+:} false; then :
10371  $as_echo_n "(cached) " >&6
10372else
10373  if test -z "$LD"; then
10374  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10375  for ac_dir in $PATH; do
10376    test -z "$ac_dir" && ac_dir=.
10377    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10378      acl_cv_path_LD="$ac_dir/$ac_prog"
10379      # Check to see if the program is GNU ld.  I'd rather use --version,
10380      # but apparently some GNU ld's only accept -v.
10381      # Break only if it was the GNU/non-GNU ld that we prefer.
10382      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10383	test "$with_gnu_ld" != no && break
10384      else
10385	test "$with_gnu_ld" != yes && break
10386      fi
10387    fi
10388  done
10389  IFS="$ac_save_ifs"
10390else
10391  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10392fi
10393fi
10394
10395LD="$acl_cv_path_LD"
10396if test -n "$LD"; then
10397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10398$as_echo "$LD" >&6; }
10399else
10400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401$as_echo "no" >&6; }
10402fi
10403test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10405$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10406if ${acl_cv_prog_gnu_ld+:} false; then :
10407  $as_echo_n "(cached) " >&6
10408else
10409  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10410if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10411  acl_cv_prog_gnu_ld=yes
10412else
10413  acl_cv_prog_gnu_ld=no
10414fi
10415fi
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10417$as_echo "$acl_cv_prog_gnu_ld" >&6; }
10418with_gnu_ld=$acl_cv_prog_gnu_ld
10419
10420
10421
10422                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10423$as_echo_n "checking for shared library run path origin... " >&6; }
10424if ${acl_cv_rpath+:} false; then :
10425  $as_echo_n "(cached) " >&6
10426else
10427
10428    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10429    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10430    . ./conftest.sh
10431    rm -f ./conftest.sh
10432    acl_cv_rpath=done
10433
10434fi
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10436$as_echo "$acl_cv_rpath" >&6; }
10437  wl="$acl_cv_wl"
10438  libext="$acl_cv_libext"
10439  shlibext="$acl_cv_shlibext"
10440  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10441  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10442  hardcode_direct="$acl_cv_hardcode_direct"
10443  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10444    # Check whether --enable-rpath was given.
10445if test "${enable_rpath+set}" = set; then :
10446  enableval=$enable_rpath; :
10447else
10448  enable_rpath=yes
10449fi
10450
10451
10452
10453
10454
10455
10456
10457
10458    use_additional=yes
10459
10460  acl_save_prefix="$prefix"
10461  prefix="$acl_final_prefix"
10462  acl_save_exec_prefix="$exec_prefix"
10463  exec_prefix="$acl_final_exec_prefix"
10464
10465    eval additional_includedir=\"$includedir\"
10466    eval additional_libdir=\"$libdir\"
10467
10468  exec_prefix="$acl_save_exec_prefix"
10469  prefix="$acl_save_prefix"
10470
10471
10472# Check whether --with-libiconv-prefix was given.
10473if test "${with_libiconv_prefix+set}" = set; then :
10474  withval=$with_libiconv_prefix;
10475    if test "X$withval" = "Xno"; then
10476      use_additional=no
10477    else
10478      if test "X$withval" = "X"; then
10479
10480  acl_save_prefix="$prefix"
10481  prefix="$acl_final_prefix"
10482  acl_save_exec_prefix="$exec_prefix"
10483  exec_prefix="$acl_final_exec_prefix"
10484
10485          eval additional_includedir=\"$includedir\"
10486          eval additional_libdir=\"$libdir\"
10487
10488  exec_prefix="$acl_save_exec_prefix"
10489  prefix="$acl_save_prefix"
10490
10491      else
10492        additional_includedir="$withval/include"
10493        additional_libdir="$withval/lib"
10494      fi
10495    fi
10496
10497fi
10498
10499      LIBICONV=
10500  LTLIBICONV=
10501  INCICONV=
10502  rpathdirs=
10503  ltrpathdirs=
10504  names_already_handled=
10505  names_next_round='iconv '
10506  while test -n "$names_next_round"; do
10507    names_this_round="$names_next_round"
10508    names_next_round=
10509    for name in $names_this_round; do
10510      already_handled=
10511      for n in $names_already_handled; do
10512        if test "$n" = "$name"; then
10513          already_handled=yes
10514          break
10515        fi
10516      done
10517      if test -z "$already_handled"; then
10518        names_already_handled="$names_already_handled $name"
10519                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10520        eval value=\"\$HAVE_LIB$uppername\"
10521        if test -n "$value"; then
10522          if test "$value" = yes; then
10523            eval value=\"\$LIB$uppername\"
10524            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10525            eval value=\"\$LTLIB$uppername\"
10526            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10527          else
10528                                    :
10529          fi
10530        else
10531                              found_dir=
10532          found_la=
10533          found_so=
10534          found_a=
10535          if test $use_additional = yes; then
10536            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10537              found_dir="$additional_libdir"
10538              found_so="$additional_libdir/lib$name.$shlibext"
10539              if test -f "$additional_libdir/lib$name.la"; then
10540                found_la="$additional_libdir/lib$name.la"
10541              fi
10542            else
10543              if test -f "$additional_libdir/lib$name.$libext"; then
10544                found_dir="$additional_libdir"
10545                found_a="$additional_libdir/lib$name.$libext"
10546                if test -f "$additional_libdir/lib$name.la"; then
10547                  found_la="$additional_libdir/lib$name.la"
10548                fi
10549              fi
10550            fi
10551          fi
10552          if test "X$found_dir" = "X"; then
10553            for x in $LDFLAGS $LTLIBICONV; do
10554
10555  acl_save_prefix="$prefix"
10556  prefix="$acl_final_prefix"
10557  acl_save_exec_prefix="$exec_prefix"
10558  exec_prefix="$acl_final_exec_prefix"
10559  eval x=\"$x\"
10560  exec_prefix="$acl_save_exec_prefix"
10561  prefix="$acl_save_prefix"
10562
10563              case "$x" in
10564                -L*)
10565                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10566                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10567                    found_dir="$dir"
10568                    found_so="$dir/lib$name.$shlibext"
10569                    if test -f "$dir/lib$name.la"; then
10570                      found_la="$dir/lib$name.la"
10571                    fi
10572                  else
10573                    if test -f "$dir/lib$name.$libext"; then
10574                      found_dir="$dir"
10575                      found_a="$dir/lib$name.$libext"
10576                      if test -f "$dir/lib$name.la"; then
10577                        found_la="$dir/lib$name.la"
10578                      fi
10579                    fi
10580                  fi
10581                  ;;
10582              esac
10583              if test "X$found_dir" != "X"; then
10584                break
10585              fi
10586            done
10587          fi
10588          if test "X$found_dir" != "X"; then
10589                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10590            if test "X$found_so" != "X"; then
10591                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10592                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10593              else
10594                                                                                haveit=
10595                for x in $ltrpathdirs; do
10596                  if test "X$x" = "X$found_dir"; then
10597                    haveit=yes
10598                    break
10599                  fi
10600                done
10601                if test -z "$haveit"; then
10602                  ltrpathdirs="$ltrpathdirs $found_dir"
10603                fi
10604                                if test "$hardcode_direct" = yes; then
10605                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10606                else
10607                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10608                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10609                                                            haveit=
10610                    for x in $rpathdirs; do
10611                      if test "X$x" = "X$found_dir"; then
10612                        haveit=yes
10613                        break
10614                      fi
10615                    done
10616                    if test -z "$haveit"; then
10617                      rpathdirs="$rpathdirs $found_dir"
10618                    fi
10619                  else
10620                                                                                haveit=
10621                    for x in $LDFLAGS $LIBICONV; do
10622
10623  acl_save_prefix="$prefix"
10624  prefix="$acl_final_prefix"
10625  acl_save_exec_prefix="$exec_prefix"
10626  exec_prefix="$acl_final_exec_prefix"
10627  eval x=\"$x\"
10628  exec_prefix="$acl_save_exec_prefix"
10629  prefix="$acl_save_prefix"
10630
10631                      if test "X$x" = "X-L$found_dir"; then
10632                        haveit=yes
10633                        break
10634                      fi
10635                    done
10636                    if test -z "$haveit"; then
10637                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10638                    fi
10639                    if test "$hardcode_minus_L" != no; then
10640                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10641                    else
10642                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10643                    fi
10644                  fi
10645                fi
10646              fi
10647            else
10648              if test "X$found_a" != "X"; then
10649                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10650              else
10651                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10652              fi
10653            fi
10654                        additional_includedir=
10655            case "$found_dir" in
10656              */lib | */lib/)
10657                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10658                additional_includedir="$basedir/include"
10659                ;;
10660            esac
10661            if test "X$additional_includedir" != "X"; then
10662                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10663                haveit=
10664                if test "X$additional_includedir" = "X/usr/local/include"; then
10665                  if test -n "$GCC"; then
10666                    case $host_os in
10667                      linux*) haveit=yes;;
10668                    esac
10669                  fi
10670                fi
10671                if test -z "$haveit"; then
10672                  for x in $CPPFLAGS $INCICONV; do
10673
10674  acl_save_prefix="$prefix"
10675  prefix="$acl_final_prefix"
10676  acl_save_exec_prefix="$exec_prefix"
10677  exec_prefix="$acl_final_exec_prefix"
10678  eval x=\"$x\"
10679  exec_prefix="$acl_save_exec_prefix"
10680  prefix="$acl_save_prefix"
10681
10682                    if test "X$x" = "X-I$additional_includedir"; then
10683                      haveit=yes
10684                      break
10685                    fi
10686                  done
10687                  if test -z "$haveit"; then
10688                    if test -d "$additional_includedir"; then
10689                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10690                    fi
10691                  fi
10692                fi
10693              fi
10694            fi
10695                        if test -n "$found_la"; then
10696                                                        save_libdir="$libdir"
10697              case "$found_la" in
10698                */* | *\\*) . "$found_la" ;;
10699                *) . "./$found_la" ;;
10700              esac
10701              libdir="$save_libdir"
10702                            for dep in $dependency_libs; do
10703                case "$dep" in
10704                  -L*)
10705                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10706                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
10707                      haveit=
10708                      if test "X$additional_libdir" = "X/usr/local/lib"; then
10709                        if test -n "$GCC"; then
10710                          case $host_os in
10711                            linux*) haveit=yes;;
10712                          esac
10713                        fi
10714                      fi
10715                      if test -z "$haveit"; then
10716                        haveit=
10717                        for x in $LDFLAGS $LIBICONV; do
10718
10719  acl_save_prefix="$prefix"
10720  prefix="$acl_final_prefix"
10721  acl_save_exec_prefix="$exec_prefix"
10722  exec_prefix="$acl_final_exec_prefix"
10723  eval x=\"$x\"
10724  exec_prefix="$acl_save_exec_prefix"
10725  prefix="$acl_save_prefix"
10726
10727                          if test "X$x" = "X-L$additional_libdir"; then
10728                            haveit=yes
10729                            break
10730                          fi
10731                        done
10732                        if test -z "$haveit"; then
10733                          if test -d "$additional_libdir"; then
10734                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10735                          fi
10736                        fi
10737                        haveit=
10738                        for x in $LDFLAGS $LTLIBICONV; do
10739
10740  acl_save_prefix="$prefix"
10741  prefix="$acl_final_prefix"
10742  acl_save_exec_prefix="$exec_prefix"
10743  exec_prefix="$acl_final_exec_prefix"
10744  eval x=\"$x\"
10745  exec_prefix="$acl_save_exec_prefix"
10746  prefix="$acl_save_prefix"
10747
10748                          if test "X$x" = "X-L$additional_libdir"; then
10749                            haveit=yes
10750                            break
10751                          fi
10752                        done
10753                        if test -z "$haveit"; then
10754                          if test -d "$additional_libdir"; then
10755                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10756                          fi
10757                        fi
10758                      fi
10759                    fi
10760                    ;;
10761                  -R*)
10762                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10763                    if test "$enable_rpath" != no; then
10764                                                                  haveit=
10765                      for x in $rpathdirs; do
10766                        if test "X$x" = "X$dir"; then
10767                          haveit=yes
10768                          break
10769                        fi
10770                      done
10771                      if test -z "$haveit"; then
10772                        rpathdirs="$rpathdirs $dir"
10773                      fi
10774                                                                  haveit=
10775                      for x in $ltrpathdirs; do
10776                        if test "X$x" = "X$dir"; then
10777                          haveit=yes
10778                          break
10779                        fi
10780                      done
10781                      if test -z "$haveit"; then
10782                        ltrpathdirs="$ltrpathdirs $dir"
10783                      fi
10784                    fi
10785                    ;;
10786                  -l*)
10787                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10788                    ;;
10789                  *.la)
10790                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10791                    ;;
10792                  *)
10793                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10794                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10795                    ;;
10796                esac
10797              done
10798            fi
10799          else
10800                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10801            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10802          fi
10803        fi
10804      fi
10805    done
10806  done
10807  if test "X$rpathdirs" != "X"; then
10808    if test -n "$hardcode_libdir_separator"; then
10809                        alldirs=
10810      for found_dir in $rpathdirs; do
10811        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10812      done
10813            acl_save_libdir="$libdir"
10814      libdir="$alldirs"
10815      eval flag=\"$hardcode_libdir_flag_spec\"
10816      libdir="$acl_save_libdir"
10817      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10818    else
10819            for found_dir in $rpathdirs; do
10820        acl_save_libdir="$libdir"
10821        libdir="$found_dir"
10822        eval flag=\"$hardcode_libdir_flag_spec\"
10823        libdir="$acl_save_libdir"
10824        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10825      done
10826    fi
10827  fi
10828  if test "X$ltrpathdirs" != "X"; then
10829            for found_dir in $ltrpathdirs; do
10830      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10831    done
10832  fi
10833
10834
10835
10836
10837
10838
10839
10840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10841$as_echo_n "checking for iconv... " >&6; }
10842if ${am_cv_func_iconv+:} false; then :
10843  $as_echo_n "(cached) " >&6
10844else
10845
10846    am_cv_func_iconv="no, consider installing GNU libiconv"
10847    am_cv_lib_iconv=no
10848                    am_save_CPPFLAGS="$CPPFLAGS"
10849    CPPFLAGS="$CPPFLAGS $INCICONV"
10850    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851/* end confdefs.h.  */
10852#include <stdlib.h>
10853#include <iconv.h>
10854int
10855main ()
10856{
10857iconv_t cd = iconv_open("","");
10858       iconv(cd,NULL,NULL,NULL,NULL);
10859       iconv_close(cd);
10860  ;
10861  return 0;
10862}
10863_ACEOF
10864if ac_fn_cxx_try_link "$LINENO"; then :
10865  am_cv_func_iconv=yes
10866fi
10867rm -f core conftest.err conftest.$ac_objext \
10868    conftest$ac_exeext conftest.$ac_ext
10869    CPPFLAGS="$am_save_CPPFLAGS"
10870
10871    if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10872      for _libs in .libs _libs; do
10873        am_save_CPPFLAGS="$CPPFLAGS"
10874        am_save_LIBS="$LIBS"
10875        CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10876        LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10877        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878/* end confdefs.h.  */
10879#include <stdlib.h>
10880#include <iconv.h>
10881int
10882main ()
10883{
10884iconv_t cd = iconv_open("","");
10885           iconv(cd,NULL,NULL,NULL,NULL);
10886           iconv_close(cd);
10887  ;
10888  return 0;
10889}
10890_ACEOF
10891if ac_fn_cxx_try_link "$LINENO"; then :
10892  INCICONV="-I../libiconv/include"
10893          LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10894          LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10895          am_cv_lib_iconv=yes
10896          am_cv_func_iconv=yes
10897fi
10898rm -f core conftest.err conftest.$ac_objext \
10899    conftest$ac_exeext conftest.$ac_ext
10900        CPPFLAGS="$am_save_CPPFLAGS"
10901        LIBS="$am_save_LIBS"
10902        if test "$am_cv_func_iconv" = "yes"; then
10903          break
10904        fi
10905      done
10906    fi
10907
10908    if test "$am_cv_func_iconv" != yes; then
10909      am_save_CPPFLAGS="$CPPFLAGS"
10910      am_save_LIBS="$LIBS"
10911      CPPFLAGS="$CPPFLAGS $INCICONV"
10912      LIBS="$LIBS $LIBICONV"
10913      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914/* end confdefs.h.  */
10915#include <stdlib.h>
10916#include <iconv.h>
10917int
10918main ()
10919{
10920iconv_t cd = iconv_open("","");
10921         iconv(cd,NULL,NULL,NULL,NULL);
10922         iconv_close(cd);
10923  ;
10924  return 0;
10925}
10926_ACEOF
10927if ac_fn_cxx_try_link "$LINENO"; then :
10928  am_cv_lib_iconv=yes
10929        am_cv_func_iconv=yes
10930fi
10931rm -f core conftest.err conftest.$ac_objext \
10932    conftest$ac_exeext conftest.$ac_ext
10933      CPPFLAGS="$am_save_CPPFLAGS"
10934      LIBS="$am_save_LIBS"
10935    fi
10936
10937fi
10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10939$as_echo "$am_cv_func_iconv" >&6; }
10940  if test "$am_cv_func_iconv" = yes; then
10941
10942$as_echo "#define HAVE_ICONV 1" >>confdefs.h
10943
10944  fi
10945  if test "$am_cv_lib_iconv" = yes; then
10946
10947  for element in $INCICONV; do
10948    haveit=
10949    for x in $CPPFLAGS; do
10950
10951  acl_save_prefix="$prefix"
10952  prefix="$acl_final_prefix"
10953  acl_save_exec_prefix="$exec_prefix"
10954  exec_prefix="$acl_final_exec_prefix"
10955  eval x=\"$x\"
10956  exec_prefix="$acl_save_exec_prefix"
10957  prefix="$acl_save_prefix"
10958
10959      if test "X$x" = "X$element"; then
10960        haveit=yes
10961        break
10962      fi
10963    done
10964    if test -z "$haveit"; then
10965      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10966    fi
10967  done
10968
10969    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10970$as_echo_n "checking how to link with libiconv... " >&6; }
10971    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10972$as_echo "$LIBICONV" >&6; }
10973  else
10974    LIBICONV=
10975    LTLIBICONV=
10976  fi
10977
10978
10979
10980  if test "$am_cv_func_iconv" = yes; then
10981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10982$as_echo_n "checking for iconv declaration... " >&6; }
10983    if ${am_cv_proto_iconv+:} false; then :
10984  $as_echo_n "(cached) " >&6
10985else
10986
10987      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988/* end confdefs.h.  */
10989
10990#include <stdlib.h>
10991#include <iconv.h>
10992extern
10993#ifdef __cplusplus
10994"C"
10995#endif
10996#if defined(__STDC__) || defined(__cplusplus)
10997size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10998#else
10999size_t iconv();
11000#endif
11001
11002int
11003main ()
11004{
11005
11006  ;
11007  return 0;
11008}
11009_ACEOF
11010if ac_fn_cxx_try_compile "$LINENO"; then :
11011  am_cv_proto_iconv_arg1=""
11012else
11013  am_cv_proto_iconv_arg1="const"
11014fi
11015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016      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);"
11017fi
11018
11019    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11021         }$am_cv_proto_iconv" >&5
11022$as_echo "${ac_t:-
11023         }$am_cv_proto_iconv" >&6; }
11024
11025cat >>confdefs.h <<_ACEOF
11026#define ICONV_CONST $am_cv_proto_iconv_arg1
11027_ACEOF
11028
11029  fi
11030
11031
11032# Until we have in-tree GNU iconv:
11033LIBICONV_DEP=
11034if test -f "$LTLIBICONV"; then
11035  LIBICONV_DEP=$LTLIBICONV
11036fi
11037
11038
11039
11040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11041$as_echo_n "checking for LC_MESSAGES... " >&6; }
11042if ${am_cv_val_LC_MESSAGES+:} false; then :
11043  $as_echo_n "(cached) " >&6
11044else
11045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046/* end confdefs.h.  */
11047#include <locale.h>
11048int
11049main ()
11050{
11051return LC_MESSAGES
11052  ;
11053  return 0;
11054}
11055_ACEOF
11056if ac_fn_cxx_try_link "$LINENO"; then :
11057  am_cv_val_LC_MESSAGES=yes
11058else
11059  am_cv_val_LC_MESSAGES=no
11060fi
11061rm -f core conftest.err conftest.$ac_objext \
11062    conftest$ac_exeext conftest.$ac_ext
11063fi
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11065$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11066  if test $am_cv_val_LC_MESSAGES = yes; then
11067
11068$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11069
11070  fi
11071
11072
11073
11074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11075$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11076if ${am_cv_langinfo_codeset+:} false; then :
11077  $as_echo_n "(cached) " >&6
11078else
11079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080/* end confdefs.h.  */
11081#include <langinfo.h>
11082int
11083main ()
11084{
11085char* cs = nl_langinfo(CODESET);
11086  ;
11087  return 0;
11088}
11089_ACEOF
11090if ac_fn_cxx_try_link "$LINENO"; then :
11091  am_cv_langinfo_codeset=yes
11092else
11093  am_cv_langinfo_codeset=no
11094fi
11095rm -f core conftest.err conftest.$ac_objext \
11096    conftest$ac_exeext conftest.$ac_ext
11097
11098fi
11099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11100$as_echo "$am_cv_langinfo_codeset" >&6; }
11101  if test $am_cv_langinfo_codeset = yes; then
11102
11103$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11104
11105  fi
11106
11107
11108# We will need to find libiberty.h and ansidecl.h
11109saved_CFLAGS="$CFLAGS"
11110CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11111saved_CXXFLAGS="$CXXFLAGS"
11112CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11113
11114# gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11115# normal autoconf function for these.  But force definition of
11116# HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11117# basename handling in libiberty.h.
11118as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11119ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11120#undef HAVE_DECL_BASENAME
11121#define HAVE_DECL_BASENAME 1
11122#include \"ansidecl.h\"
11123#include \"system.h\"
11124"
11125if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11126  ac_have_decl=1
11127else
11128  ac_have_decl=0
11129fi
11130
11131cat >>confdefs.h <<_ACEOF
11132#define HAVE_DECL_BASENAME $ac_have_decl
11133_ACEOF
11134as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11135ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11136#undef HAVE_DECL_BASENAME
11137#define HAVE_DECL_BASENAME 1
11138#include \"ansidecl.h\"
11139#include \"system.h\"
11140"
11141if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11142  ac_have_decl=1
11143else
11144  ac_have_decl=0
11145fi
11146
11147cat >>confdefs.h <<_ACEOF
11148#define HAVE_DECL_STRSTR $ac_have_decl
11149_ACEOF
11150
11151
11152for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11153	madvise stpcpy strnlen strsignal strverscmp \
11154	strtol strtoul strtoll strtoull setenv unsetenv \
11155	errno snprintf vsnprintf vasprintf malloc realloc calloc \
11156	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
11157do
11158  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11160$as_echo_n "checking whether $ac_func is declared... " >&6; }
11161if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11162  $as_echo_n "(cached) " >&6
11163else
11164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165/* end confdefs.h.  */
11166#undef $ac_tr_decl
11167#define $ac_tr_decl 1
11168
11169#include "ansidecl.h"
11170#include "system.h"
11171
11172int
11173main ()
11174{
11175#ifndef $ac_func
11176char *(*pfn) = (char *(*)) $ac_func ;
11177#endif
11178  ;
11179  return 0;
11180}
11181_ACEOF
11182if ac_fn_cxx_try_compile "$LINENO"; then :
11183  eval "gcc_cv_have_decl_$ac_func=yes"
11184else
11185  eval "gcc_cv_have_decl_$ac_func=no"
11186fi
11187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188fi
11189
11190if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11192$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11193#define $ac_tr_decl 1
11194_ACEOF
11195
11196else
11197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11199#define $ac_tr_decl 0
11200_ACEOF
11201
11202fi
11203
11204done
11205
11206
11207for ac_func in getrlimit setrlimit getrusage
11208do
11209  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11211$as_echo_n "checking whether $ac_func is declared... " >&6; }
11212if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11213  $as_echo_n "(cached) " >&6
11214else
11215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216/* end confdefs.h.  */
11217#undef $ac_tr_decl
11218#define $ac_tr_decl 1
11219
11220#include "ansidecl.h"
11221#include "system.h"
11222#ifdef HAVE_SYS_RESOURCE_H
11223#include <sys/resource.h>
11224#endif
11225
11226
11227int
11228main ()
11229{
11230#ifndef $ac_func
11231char *(*pfn) = (char *(*)) $ac_func ;
11232#endif
11233  ;
11234  return 0;
11235}
11236_ACEOF
11237if ac_fn_cxx_try_compile "$LINENO"; then :
11238  eval "gcc_cv_have_decl_$ac_func=yes"
11239else
11240  eval "gcc_cv_have_decl_$ac_func=no"
11241fi
11242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243fi
11244
11245if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11247$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11248#define $ac_tr_decl 1
11249_ACEOF
11250
11251else
11252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11254#define $ac_tr_decl 0
11255_ACEOF
11256
11257fi
11258
11259done
11260
11261
11262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263/* end confdefs.h.  */
11264
11265#include "ansidecl.h"
11266#include "system.h"
11267#ifdef HAVE_SYS_RESOURCE_H
11268#include <sys/resource.h>
11269#endif
11270
11271int
11272main ()
11273{
11274rlim_t l = 0;
11275  ;
11276  return 0;
11277}
11278_ACEOF
11279if ac_fn_cxx_try_compile "$LINENO"; then :
11280
11281else
11282
11283$as_echo "#define rlim_t long" >>confdefs.h
11284
11285fi
11286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287
11288# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11289# FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11290# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11291# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11292for ac_func in ldgetname
11293do
11294  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11296$as_echo_n "checking whether $ac_func is declared... " >&6; }
11297if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11298  $as_echo_n "(cached) " >&6
11299else
11300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301/* end confdefs.h.  */
11302#undef $ac_tr_decl
11303#define $ac_tr_decl 1
11304
11305#include "ansidecl.h"
11306#include "system.h"
11307#ifdef HAVE_LDFCN_H
11308#undef FREAD
11309#undef FWRITE
11310#include <ldfcn.h>
11311#endif
11312
11313
11314int
11315main ()
11316{
11317#ifndef $ac_func
11318char *(*pfn) = (char *(*)) $ac_func ;
11319#endif
11320  ;
11321  return 0;
11322}
11323_ACEOF
11324if ac_fn_cxx_try_compile "$LINENO"; then :
11325  eval "gcc_cv_have_decl_$ac_func=yes"
11326else
11327  eval "gcc_cv_have_decl_$ac_func=no"
11328fi
11329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11330fi
11331
11332if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11334$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11335#define $ac_tr_decl 1
11336_ACEOF
11337
11338else
11339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11341#define $ac_tr_decl 0
11342_ACEOF
11343
11344fi
11345
11346done
11347
11348
11349for ac_func in times
11350do
11351  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11353$as_echo_n "checking whether $ac_func is declared... " >&6; }
11354if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11355  $as_echo_n "(cached) " >&6
11356else
11357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358/* end confdefs.h.  */
11359#undef $ac_tr_decl
11360#define $ac_tr_decl 1
11361
11362#include "ansidecl.h"
11363#include "system.h"
11364#ifdef HAVE_SYS_TIMES_H
11365#include <sys/times.h>
11366#endif
11367
11368
11369int
11370main ()
11371{
11372#ifndef $ac_func
11373char *(*pfn) = (char *(*)) $ac_func ;
11374#endif
11375  ;
11376  return 0;
11377}
11378_ACEOF
11379if ac_fn_cxx_try_compile "$LINENO"; then :
11380  eval "gcc_cv_have_decl_$ac_func=yes"
11381else
11382  eval "gcc_cv_have_decl_$ac_func=no"
11383fi
11384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11385fi
11386
11387if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11390#define $ac_tr_decl 1
11391_ACEOF
11392
11393else
11394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11396#define $ac_tr_decl 0
11397_ACEOF
11398
11399fi
11400
11401done
11402
11403
11404for ac_func in sigaltstack
11405do
11406  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11408$as_echo_n "checking whether $ac_func is declared... " >&6; }
11409if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11410  $as_echo_n "(cached) " >&6
11411else
11412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413/* end confdefs.h.  */
11414#undef $ac_tr_decl
11415#define $ac_tr_decl 1
11416
11417#include "ansidecl.h"
11418#include "system.h"
11419#include <signal.h>
11420
11421
11422int
11423main ()
11424{
11425#ifndef $ac_func
11426char *(*pfn) = (char *(*)) $ac_func ;
11427#endif
11428  ;
11429  return 0;
11430}
11431_ACEOF
11432if ac_fn_cxx_try_compile "$LINENO"; then :
11433  eval "gcc_cv_have_decl_$ac_func=yes"
11434else
11435  eval "gcc_cv_have_decl_$ac_func=no"
11436fi
11437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11438fi
11439
11440if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11442$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11443#define $ac_tr_decl 1
11444_ACEOF
11445
11446else
11447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11449#define $ac_tr_decl 0
11450_ACEOF
11451
11452fi
11453
11454done
11455
11456
11457# More time-related stuff.
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11459$as_echo_n "checking for struct tms... " >&6; }
11460if ${ac_cv_struct_tms+:} false; then :
11461  $as_echo_n "(cached) " >&6
11462else
11463
11464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465/* end confdefs.h.  */
11466
11467#include "ansidecl.h"
11468#include "system.h"
11469#ifdef HAVE_SYS_TIMES_H
11470#include <sys/times.h>
11471#endif
11472
11473int
11474main ()
11475{
11476struct tms tms;
11477  ;
11478  return 0;
11479}
11480_ACEOF
11481if ac_fn_cxx_try_compile "$LINENO"; then :
11482  ac_cv_struct_tms=yes
11483else
11484  ac_cv_struct_tms=no
11485fi
11486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11487fi
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11489$as_echo "$ac_cv_struct_tms" >&6; }
11490if test $ac_cv_struct_tms = yes; then
11491
11492$as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11493
11494fi
11495
11496# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11497# revisit after autoconf 2.50.
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11499$as_echo_n "checking for clock_t... " >&6; }
11500if ${gcc_cv_type_clock_t+:} false; then :
11501  $as_echo_n "(cached) " >&6
11502else
11503
11504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505/* end confdefs.h.  */
11506
11507#include "ansidecl.h"
11508#include "system.h"
11509
11510int
11511main ()
11512{
11513clock_t x;
11514  ;
11515  return 0;
11516}
11517_ACEOF
11518if ac_fn_cxx_try_compile "$LINENO"; then :
11519  gcc_cv_type_clock_t=yes
11520else
11521  gcc_cv_type_clock_t=no
11522fi
11523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11524fi
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11526$as_echo "$gcc_cv_type_clock_t" >&6; }
11527if test $gcc_cv_type_clock_t = yes; then
11528
11529$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11530
11531fi
11532
11533# Check if F_SETLKW is supported by fcntl.
11534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11535$as_echo_n "checking for F_SETLKW... " >&6; }
11536if ${ac_cv_f_setlkw+:} false; then :
11537  $as_echo_n "(cached) " >&6
11538else
11539
11540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541/* end confdefs.h.  */
11542
11543#include <fcntl.h>
11544int
11545main ()
11546{
11547
11548struct flock fl;
11549fl.l_whence = 0;
11550fl.l_start = 0;
11551fl.l_len = 0;
11552fl.l_pid = 0;
11553return fcntl (1, F_SETLKW, &fl);
11554  ;
11555  return 0;
11556}
11557_ACEOF
11558if ac_fn_cxx_try_compile "$LINENO"; then :
11559  ac_cv_f_setlkw=yes
11560else
11561  ac_cv_f_setlkw=no
11562fi
11563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564fi
11565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11566$as_echo "$ac_cv_f_setlkw" >&6; }
11567if test $ac_cv_f_setlkw = yes; then
11568
11569$as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11570
11571fi
11572
11573# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11574CFLAGS="$saved_CFLAGS"
11575CXXFLAGS="$saved_CXXFLAGS"
11576
11577# mkdir takes a single argument on some systems.
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11579$as_echo_n "checking if mkdir takes one argument... " >&6; }
11580if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11581  $as_echo_n "(cached) " >&6
11582else
11583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584/* end confdefs.h.  */
11585
11586#include <sys/types.h>
11587#ifdef HAVE_SYS_STAT_H
11588# include <sys/stat.h>
11589#endif
11590#ifdef HAVE_UNISTD_H
11591# include <unistd.h>
11592#endif
11593#ifdef HAVE_DIRECT_H
11594# include <direct.h>
11595#endif
11596int
11597main ()
11598{
11599mkdir ("foo", 0);
11600  ;
11601  return 0;
11602}
11603_ACEOF
11604if ac_fn_cxx_try_compile "$LINENO"; then :
11605  gcc_cv_mkdir_takes_one_arg=no
11606else
11607  gcc_cv_mkdir_takes_one_arg=yes
11608fi
11609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11610fi
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11612$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11613if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11614
11615$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11616
11617fi
11618
11619
11620# File extensions
11621manext='.1'
11622objext='.o'
11623
11624
11625
11626# With Setjmp/Longjmp based exception handling.
11627# Check whether --enable-sjlj-exceptions was given.
11628if test "${enable_sjlj_exceptions+set}" = set; then :
11629  enableval=$enable_sjlj_exceptions; case $target in
11630  *-*-hpux10*)
11631    if test $enableval != yes; then
11632      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11633$as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11634      enableval=yes
11635    fi
11636    ;;
11637esac
11638force_sjlj_exceptions=yes
11639else
11640  case $target in
11641  *-*-hpux10*)
11642    force_sjlj_exceptions=yes
11643    enableval=yes
11644    ;;
11645  lm32*-*-*)
11646     force_sjlj_exceptions=yes
11647     enableval=yes
11648     ;;
11649  *)
11650    force_sjlj_exceptions=no
11651    ;;
11652esac
11653fi
11654
11655if test $force_sjlj_exceptions = yes; then
11656  sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11657
11658cat >>confdefs.h <<_ACEOF
11659#define CONFIG_SJLJ_EXCEPTIONS $sjlj
11660_ACEOF
11661
11662fi
11663
11664# --------------------------------------------------------
11665# Build, host, and target specific configuration fragments
11666# --------------------------------------------------------
11667
11668# Collect build-machine-specific information.
11669. ${srcdir}/config.build || exit 1
11670
11671# Collect host-machine-specific information.
11672. ${srcdir}/config.host || exit 1
11673
11674target_gtfiles=
11675
11676# Collect target-machine-specific information.
11677. ${srcdir}/config.gcc || exit 1
11678
11679extra_objs="${host_extra_objs} ${extra_objs}"
11680extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11681
11682# Default the target-machine variables that were not explicitly set.
11683if test x"$tm_file" = x
11684then tm_file=$cpu_type/$cpu_type.h; fi
11685
11686if test x"$extra_headers" = x
11687then extra_headers=; fi
11688
11689if test x$md_file = x
11690then md_file=$cpu_type/$cpu_type.md; fi
11691
11692if test x$out_file = x
11693then out_file=$cpu_type/$cpu_type.c; fi
11694
11695if test x"$tmake_file" = x
11696then tmake_file=$cpu_type/t-$cpu_type
11697fi
11698
11699# Support --enable-initfini-array.
11700if test x$enable_initfini_array != xno; then
11701  tm_file="${tm_file} initfini-array.h"
11702fi
11703
11704if test x"$dwarf2" = xyes
11705then tm_file="$tm_file tm-dwarf2.h"
11706fi
11707
11708# Say what files are being used for the output code and MD file.
11709echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11710echo "Using \`$srcdir/config/$md_file' as machine description file."
11711
11712# If any of the xm_file variables contain nonexistent files, warn
11713# about them and drop them.
11714
11715bx=
11716for x in $build_xm_file; do
11717  if    test -f $srcdir/config/$x
11718  then      bx="$bx $x"
11719  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11720$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11721  fi
11722done
11723build_xm_file="$bx"
11724
11725hx=
11726for x in $host_xm_file; do
11727  if    test -f $srcdir/config/$x
11728  then      hx="$hx $x"
11729  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11730$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11731  fi
11732done
11733host_xm_file="$hx"
11734
11735tx=
11736for x in $xm_file; do
11737  if    test -f $srcdir/config/$x
11738  then      tx="$tx $x"
11739  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11740$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11741  fi
11742done
11743xm_file="$tx"
11744
11745count=a
11746for f in $tm_file; do
11747	count=${count}x
11748done
11749if test $count = ax; then
11750	echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11751else
11752	echo "Using the following target machine macro files:"
11753	for f in $tm_file; do
11754		echo "	$srcdir/config/$f"
11755	done
11756fi
11757
11758if test x$use_long_long_for_widest_fast_int = xyes; then
11759
11760$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11761
11762fi
11763
11764gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11765
11766cat >>confdefs.h <<_ACEOF
11767#define HAVE_GNU_LD $gnu_ld_bool
11768_ACEOF
11769
11770
11771gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11772
11773cat >>confdefs.h <<_ACEOF
11774#define HAVE_GNU_AS $gnu_as_bool
11775_ACEOF
11776
11777
11778count=a
11779for f in $host_xm_file; do
11780	count=${count}x
11781done
11782if test $count = a; then
11783	:
11784elif test $count = ax; then
11785	echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11786else
11787	echo "Using the following host machine macro files:"
11788	for f in $host_xm_file; do
11789		echo "	$srcdir/config/$f"
11790	done
11791fi
11792echo "Using ${out_host_hook_obj} for host machine hooks."
11793
11794if test "$host_xm_file" != "$build_xm_file"; then
11795	count=a
11796	for f in $build_xm_file; do
11797		count=${count}x
11798	done
11799	if test $count = a; then
11800		:
11801	elif test $count = ax; then
11802		echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11803	else
11804		echo "Using the following build machine macro files:"
11805		for f in $build_xm_file; do
11806			echo "	$srcdir/config/$f"
11807		done
11808	fi
11809fi
11810
11811if test -n "$configured_native_system_header_dir"; then
11812  native_system_header_dir=$configured_native_system_header_dir
11813fi
11814NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11815
11816
11817case ${host} in
11818  powerpc*-*-darwin*)
11819    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11820$as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11821if ${gcc_cv_mcontext_underscores+:} false; then :
11822  $as_echo_n "(cached) " >&6
11823else
11824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11825/* end confdefs.h.  */
11826
11827#include <sys/cdefs.h>
11828#include <sys/signal.h>
11829#include <ucontext.h>
11830int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11831
11832_ACEOF
11833if ac_fn_cxx_try_compile "$LINENO"; then :
11834  gcc_cv_mcontext_underscores=no
11835else
11836  gcc_cv_mcontext_underscores=yes
11837fi
11838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11839fi
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11841$as_echo "$gcc_cv_mcontext_underscores" >&6; }
11842      if test $gcc_cv_mcontext_underscores = yes; then
11843
11844$as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11845
11846      fi
11847    ;;
11848esac
11849
11850# ---------
11851# Threading
11852# ---------
11853
11854# Check if a valid thread package
11855case ${enable_threads} in
11856  "" | no)
11857    # No threads
11858    target_thread_file='single'
11859    ;;
11860  yes)
11861    # default
11862    target_thread_file='single'
11863    ;;
11864  aix | dce | lynx | mipssde | posix | rtems | \
11865  single | tpf | vxworks | win32)
11866    target_thread_file=${enable_threads}
11867    ;;
11868  *)
11869    echo "${enable_threads} is an unknown thread package" 1>&2
11870    exit 1
11871    ;;
11872esac
11873
11874if test x${thread_file} = x; then
11875  # No thread file set by target-specific clauses in config.gcc,
11876  # so use file chosen by default logic above
11877  thread_file=${target_thread_file}
11878fi
11879
11880# --------
11881# UNSORTED
11882# --------
11883
11884use_cxa_atexit=no
11885if test x$enable___cxa_atexit = xyes || \
11886   test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11887  if test x$host = x$target; then
11888    case $host in
11889      # mingw32 doesn't have __cxa_atexit but uses atexit registration
11890      # keyed to flag_use_cxa_atexit
11891      *-*-mingw32*)
11892	use_cxa_atexit=yes
11893	;;
11894      powerpc-ibm-aix*)
11895	use_cxa_atexit=yes
11896	;;
11897      *)
11898	ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11899if test "x$ac_cv_func___cxa_atexit" = xyes; then :
11900  use_cxa_atexit=yes
11901else
11902  echo "__cxa_atexit can't be enabled on this target"
11903fi
11904
11905	;;
11906    esac
11907  else
11908    # We can't check for __cxa_atexit when building a cross, so assume
11909    # it is available
11910    use_cxa_atexit=yes
11911  fi
11912  if test x$use_cxa_atexit = xyes; then
11913
11914$as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11915
11916  fi
11917fi
11918
11919# Look for a file containing extra machine modes.
11920if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11921  extra_modes_file='$(srcdir)'/config/${extra_modes}
11922
11923
11924cat >>confdefs.h <<_ACEOF
11925#define EXTRA_MODES_FILE "config/$extra_modes"
11926_ACEOF
11927
11928fi
11929
11930# Convert extra_options into a form suitable for Makefile use.
11931extra_opt_files=
11932all_opt_files=
11933for f in $extra_options; do
11934  extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11935  all_opt_files="$all_opt_files $srcdir/config/$f"
11936done
11937
11938
11939# auto-host.h is the file containing items generated by autoconf and is
11940# the first file included by config.h.
11941# If host=build, it is correct to have bconfig include auto-host.h
11942# as well.  If host!=build, we are in error and need to do more
11943# work to find out the build config parameters.
11944if test x$host = x$build
11945then
11946	build_auto=auto-host.h
11947else
11948	# We create a subdir, then run autoconf in the subdir.
11949	# To prevent recursion we set host and build for the new
11950	# invocation of configure to the build for this invocation
11951	# of configure.
11952	tempdir=build.$$
11953	rm -rf $tempdir
11954	mkdir $tempdir
11955	cd $tempdir
11956	case ${srcdir} in
11957	/* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11958	*) realsrcdir=../${srcdir};;
11959	esac
11960	# Clearing GMPINC is necessary to prevent host headers being
11961	# used by the build compiler.  Defining GENERATOR_FILE stops
11962	# system.h from including gmp.h.
11963	CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11964	CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11965	LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11966	GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11967	${realsrcdir}/configure \
11968		--enable-languages=${enable_languages-all} \
11969		--target=$target_alias --host=$build_alias --build=$build_alias
11970
11971	# We just finished tests for the build machine, so rename
11972	# the file auto-build.h in the gcc directory.
11973	mv auto-host.h ../auto-build.h
11974	cd ..
11975	rm -rf $tempdir
11976	build_auto=auto-build.h
11977fi
11978
11979
11980tm_file="${tm_file} defaults.h"
11981tm_p_file="${tm_p_file} tm-preds.h"
11982tm_d_file="${tm_d_file} defaults.h"
11983host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11984build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11985# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11986# put this back in temporarily.
11987xm_file="auto-host.h ansidecl.h ${xm_file}"
11988
11989# --------
11990# UNSORTED
11991# --------
11992
11993# Compile in configure arguments.
11994if test -f configargs.h ; then
11995	# Being re-configured.
11996	gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11997	gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11998	if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11999		gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12000	fi
12001else
12002	gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12003fi
12004
12005# Double all backslashes and backslash all quotes to turn
12006# gcc_config_arguments into a C string.
12007sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12008$gcc_config_arguments
12009EOF
12010gcc_config_arguments_str=`cat conftest.out`
12011rm -f conftest.out
12012
12013cat > configargs.h <<EOF
12014/* Generated automatically. */
12015static const char configuration_arguments[] = "$gcc_config_arguments_str";
12016static const char thread_model[] = "$thread_file";
12017
12018static const struct {
12019  const char *name, *value;
12020} configure_default_options[] = $configure_default_options;
12021EOF
12022
12023gcc_BASEVER=`cat $srcdir/BASE-VER`
12024gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12025gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12026if test -f $srcdir/REVISION ; then
12027	gcc_REVISION=`cat $srcdir/REVISION`
12028else
12029        gcc_REVISION=""
12030fi
12031cat > plugin-version.h <<EOF
12032#include "configargs.h"
12033
12034#define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12035#define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12036#define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12037#define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12038
12039static char basever[] = "$gcc_BASEVER";
12040static char datestamp[] = "$gcc_DATESTAMP";
12041static char devphase[] = "$gcc_DEVPHASE";
12042static char revision[] = "$gcc_REVISION";
12043
12044/* FIXME plugins: We should make the version information more precise.
12045   One way to do is to add a checksum. */
12046
12047static struct plugin_gcc_version gcc_version = {basever, datestamp,
12048						devphase, revision,
12049						configuration_arguments};
12050EOF
12051
12052# Determine what GCC version number to use in filesystem paths.
12053
12054  get_gcc_base_ver="cat"
12055
12056# Check whether --with-gcc-major-version-only was given.
12057if test "${with_gcc_major_version_only+set}" = set; then :
12058  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12059        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12060      fi
12061
12062fi
12063
12064
12065
12066
12067# Internationalization
12068# If we haven't got the data from the intl directory,
12069# assume NLS is disabled.
12070USE_NLS=no
12071LIBINTL=
12072LIBINTL_DEP=
12073INCINTL=
12074XGETTEXT=
12075GMSGFMT=
12076POSUB=
12077
12078if test -f  ../intl/config.intl; then
12079  .  ../intl/config.intl
12080fi
12081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12082$as_echo_n "checking whether NLS is requested... " >&6; }
12083if test x"$USE_NLS" != xyes; then
12084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085$as_echo "no" >&6; }
12086else
12087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12088$as_echo "yes" >&6; }
12089
12090$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12091
12092
12093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12094$as_echo_n "checking for catalogs to be installed... " >&6; }
12095  # Look for .po and .gmo files in the source directory.
12096  CATALOGS=
12097  XLINGUAS=
12098  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12099    # If there aren't any .gmo files the shell will give us the
12100    # literal string "../path/to/srcdir/po/*.gmo" which has to be
12101    # weeded out.
12102    case "$cat" in *\**)
12103      continue;;
12104    esac
12105    # The quadruple backslash is collapsed to a double backslash
12106    # by the backticks, then collapsed again by the double quotes,
12107    # leaving us with one backslash in the sed expression (right
12108    # before the dot that mustn't act as a wildcard).
12109    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12110    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12111    # The user is allowed to set LINGUAS to a list of languages to
12112    # install catalogs for.  If it's empty that means "all of them."
12113    if test "x$LINGUAS" = x; then
12114      CATALOGS="$CATALOGS $cat"
12115      XLINGUAS="$XLINGUAS $lang"
12116    else
12117      case "$LINGUAS" in *$lang*)
12118        CATALOGS="$CATALOGS $cat"
12119        XLINGUAS="$XLINGUAS $lang"
12120        ;;
12121      esac
12122    fi
12123  done
12124  LINGUAS="$XLINGUAS"
12125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12126$as_echo "$LINGUAS" >&6; }
12127
12128
12129    DATADIRNAME=share
12130
12131  INSTOBJEXT=.mo
12132
12133  GENCAT=gencat
12134
12135  CATOBJEXT=.gmo
12136
12137fi
12138
12139# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12140# -liconv on the link line twice.
12141case "$LIBINTL" in *$LIBICONV*)
12142	LIBICONV= ;;
12143esac
12144
12145# Check whether --enable-secureplt was given.
12146if test "${enable_secureplt+set}" = set; then :
12147  enableval=$enable_secureplt;
12148fi
12149
12150
12151# Check whether --enable-mingw-wildcard was given.
12152if test "${enable_mingw_wildcard+set}" = set; then :
12153  enableval=$enable_mingw_wildcard;
12154else
12155  enable_mingw_wildcard=platform
12156fi
12157
12158if test x"$enable_mingw_wildcard" != xplatform ; then :
12159
12160cat >>confdefs.h <<_ACEOF
12161#define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12162_ACEOF
12163
12164fi
12165
12166# Check whether --enable-large-address-aware was given.
12167if test "${enable_large_address_aware+set}" = set; then :
12168  enableval=$enable_large_address_aware;
12169fi
12170
12171if test x"$enable_large_address_aware" = xyes; then :
12172
12173$as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12174
12175fi
12176
12177# Check whether --enable-leading-mingw64-underscores was given.
12178if test "${enable_leading_mingw64_underscores+set}" = set; then :
12179  enableval=$enable_leading_mingw64_underscores;
12180fi
12181
12182if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
12183
12184$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12185
12186fi
12187
12188# Check whether --enable-cld was given.
12189if test "${enable_cld+set}" = set; then :
12190  enableval=$enable_cld;
12191else
12192  enable_cld=no
12193fi
12194
12195
12196# Check whether --enable-frame-pointer was given.
12197if test "${enable_frame_pointer+set}" = set; then :
12198  enableval=$enable_frame_pointer;
12199else
12200
12201case $target_os in
12202linux* | darwin[8912]*)
12203  # Enable -fomit-frame-pointer by default for Linux and Darwin with
12204  # DWARF2.
12205  enable_frame_pointer=no
12206  ;;
12207*)
12208  enable_frame_pointer=yes
12209  ;;
12210esac
12211
12212fi
12213
12214
12215# Windows32 Registry support for specifying GCC installation paths.
12216# Check whether --enable-win32-registry was given.
12217if test "${enable_win32_registry+set}" = set; then :
12218  enableval=$enable_win32_registry;
12219fi
12220
12221
12222case $host_os in
12223  win32 | pe | cygwin* | mingw32*)
12224    if test "x$enable_win32_registry" != xno; then
12225      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12226$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12227if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12228  $as_echo_n "(cached) " >&6
12229else
12230  ac_func_search_save_LIBS=$LIBS
12231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232/* end confdefs.h.  */
12233
12234/* Override any GCC internal prototype to avoid an error.
12235   Use char because int might match the return type of a GCC
12236   builtin and then its argument prototype would still apply.  */
12237#ifdef __cplusplus
12238extern "C"
12239#endif
12240char RegOpenKeyExA ();
12241int
12242main ()
12243{
12244return RegOpenKeyExA ();
12245  ;
12246  return 0;
12247}
12248_ACEOF
12249for ac_lib in '' advapi32; do
12250  if test -z "$ac_lib"; then
12251    ac_res="none required"
12252  else
12253    ac_res=-l$ac_lib
12254    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12255  fi
12256  if ac_fn_cxx_try_link "$LINENO"; then :
12257  ac_cv_search_RegOpenKeyExA=$ac_res
12258fi
12259rm -f core conftest.err conftest.$ac_objext \
12260    conftest$ac_exeext
12261  if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12262  break
12263fi
12264done
12265if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12266
12267else
12268  ac_cv_search_RegOpenKeyExA=no
12269fi
12270rm conftest.$ac_ext
12271LIBS=$ac_func_search_save_LIBS
12272fi
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12274$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12275ac_res=$ac_cv_search_RegOpenKeyExA
12276if test "$ac_res" != no; then :
12277  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12278
12279else
12280  enable_win32_registry=no
12281fi
12282
12283    fi
12284
12285    if test "x$enable_win32_registry" != xno; then
12286
12287$as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12288
12289
12290      if test "x$enable_win32_registry" != xyes \
12291         && test "x$enable_win32_registry" != x; then
12292
12293cat >>confdefs.h <<_ACEOF
12294#define WIN32_REGISTRY_KEY "$enable_win32_registry"
12295_ACEOF
12296
12297      fi
12298    fi
12299  ;;
12300esac
12301
12302# Get an absolute path to the GCC top-level source directory
12303holddir=`${PWDCMD-pwd}`
12304cd $srcdir
12305topdir=`${PWDCMD-pwd}`
12306cd $holddir
12307
12308# Conditionalize the makefile for this host machine.
12309xmake_file=
12310for f in ${host_xmake_file}
12311do
12312	if test -f ${srcdir}/config/$f
12313	then
12314		xmake_file="${xmake_file} \$(srcdir)/config/$f"
12315	fi
12316done
12317
12318# Conditionalize the makefile for this target machine.
12319tmake_file_=
12320for f in ${tmake_file}
12321do
12322	if test -f ${srcdir}/config/$f
12323	then
12324		tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12325	fi
12326done
12327tmake_file="${tmake_file_}"
12328
12329out_object_file=`basename $out_file .c`.o
12330common_out_object_file=`basename $common_out_file .c`.o
12331
12332tm_file_list="options.h"
12333tm_include_list="options.h insn-constants.h"
12334for f in $tm_file; do
12335  case $f in
12336    ./* )
12337       f=`echo $f | sed 's/^..//'`
12338       tm_file_list="${tm_file_list} $f"
12339       tm_include_list="${tm_include_list} $f"
12340       ;;
12341    defaults.h )
12342       tm_file_list="${tm_file_list} \$(srcdir)/$f"
12343       tm_include_list="${tm_include_list} $f"
12344       ;;
12345    * )
12346       tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12347       tm_include_list="${tm_include_list} config/$f"
12348       ;;
12349  esac
12350done
12351
12352tm_p_file_list=
12353tm_p_include_list=
12354for f in $tm_p_file; do
12355  case $f in
12356    tm-preds.h )
12357       tm_p_file_list="${tm_p_file_list} $f"
12358       tm_p_include_list="${tm_p_include_list} $f"
12359       ;;
12360    * )
12361       tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12362       tm_p_include_list="${tm_p_include_list} config/$f"
12363  esac
12364done
12365
12366tm_d_file_list=
12367tm_d_include_list="options.h insn-constants.h"
12368for f in $tm_d_file; do
12369  case $f in
12370    defaults.h )
12371       tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12372       tm_d_include_list="${tm_d_include_list} $f"
12373       ;;
12374    * )
12375       tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12376       tm_d_include_list="${tm_d_include_list} config/$f"
12377       ;;
12378  esac
12379done
12380
12381xm_file_list=
12382xm_include_list=
12383for f in $xm_file; do
12384  case $f in
12385    ansidecl.h )
12386       xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12387       xm_include_list="${xm_include_list} $f"
12388       ;;
12389    auto-host.h )
12390       xm_file_list="${xm_file_list} $f"
12391       xm_include_list="${xm_include_list} $f"
12392       ;;
12393    * )
12394       xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12395       xm_include_list="${xm_include_list} config/$f"
12396       ;;
12397  esac
12398done
12399
12400host_xm_file_list=
12401host_xm_include_list=
12402for f in $host_xm_file; do
12403  case $f in
12404    ansidecl.h )
12405       host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12406       host_xm_include_list="${host_xm_include_list} $f"
12407       ;;
12408    auto-host.h )
12409       host_xm_file_list="${host_xm_file_list} $f"
12410       host_xm_include_list="${host_xm_include_list} $f"
12411       ;;
12412    * )
12413       host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12414       host_xm_include_list="${host_xm_include_list} config/$f"
12415       ;;
12416  esac
12417done
12418
12419build_xm_file_list=
12420for f in $build_xm_file; do
12421  case $f in
12422    ansidecl.h )
12423       build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12424       build_xm_include_list="${build_xm_include_list} $f"
12425       ;;
12426    auto-build.h | auto-host.h )
12427       build_xm_file_list="${build_xm_file_list} $f"
12428       build_xm_include_list="${build_xm_include_list} $f"
12429       ;;
12430    * )
12431       build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12432       build_xm_include_list="${build_xm_include_list} config/$f"
12433       ;;
12434  esac
12435done
12436
12437# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12438# cross-compiler which does not use the native headers and libraries.
12439# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12440CROSS=
12441ALL=all.internal
12442SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12443BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12444
12445if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12446   test x$build != x$host || test "x$with_build_sysroot" != x; then
12447  if test "x$with_build_sysroot" != x; then
12448    BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12449  else
12450    BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12451  fi
12452
12453  if test x$host != x$target
12454  then
12455    CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12456    ALL=all.cross
12457    SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12458  elif test "x$TARGET_SYSTEM_ROOT" != x; then
12459    SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12460  fi
12461
12462  if test "x$with_build_sysroot" != "x"; then
12463    target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12464  elif test "x$with_sysroot" = x; then
12465    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12466  elif test "x$with_sysroot" = xyes; then
12467    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12468  else
12469    target_header_dir="${with_sysroot}${native_system_header_dir}"
12470  fi
12471else
12472  target_header_dir=${native_system_header_dir}
12473fi
12474
12475# If this is a cross-compiler that does not
12476# have its own set of headers then define
12477# inhibit_libc
12478
12479# If this is using newlib, without having the headers available now,
12480# then define inhibit_libc in LIBGCC2_CFLAGS.
12481# This prevents libgcc2 from containing any code which requires libc
12482# support.
12483: ${inhibit_libc=false}
12484if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12485       test x$with_newlib = xyes ; } &&
12486     { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12487       inhibit_libc=true
12488fi
12489
12490
12491# When building gcc with a cross-compiler, we need to adjust things so
12492# that the generator programs are still built with the native compiler.
12493# Also, we cannot run fixincludes.
12494
12495# These are the normal (build=host) settings:
12496CC_FOR_BUILD='$(CC)'
12497CXX_FOR_BUILD='$(CXX)'
12498BUILD_CFLAGS='$(ALL_CFLAGS)'
12499BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12500BUILD_LDFLAGS='$(LDFLAGS)'
12501STMP_FIXINC=stmp-fixinc
12502
12503BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12504BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12505
12506# And these apply if build != host, or we are generating coverage data
12507if test x$build != x$host || test "x$coverage_flags" != x
12508then
12509    BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12510    BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12511    BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12512
12513    NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12514    NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12515    BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12516    BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12517fi
12518
12519
12520
12521# Expand extra_headers to include complete path.
12522# This substitutes for lots of t-* files.
12523extra_headers_list=
12524# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12525for file in ${extra_headers} ; do
12526  extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12527done
12528
12529# If use_gcc_tgmath is set, append ginclude/tgmath.h.
12530if test x"$use_gcc_tgmath" = xyes
12531then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12532fi
12533
12534# Define collect2 in Makefile.
12535case $host_can_use_collect2 in
12536  no) collect2= ;;
12537  *) collect2='collect2$(exeext)' ;;
12538esac
12539
12540
12541# Add a definition of USE_COLLECT2 if system wants one.
12542case $use_collect2 in
12543  no) use_collect2= ;;
12544  "") ;;
12545  *)
12546    host_xm_defines="${host_xm_defines} USE_COLLECT2"
12547    xm_defines="${xm_defines} USE_COLLECT2"
12548    case $host_can_use_collect2 in
12549      no)
12550        as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12551        ;;
12552    esac
12553    ;;
12554esac
12555
12556
12557cat >>confdefs.h <<_ACEOF
12558#define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12559_ACEOF
12560
12561
12562# ---------------------------
12563# Assembler & linker features
12564# ---------------------------
12565
12566# During stage 2, ld is actually gcc/collect-ld, which is a small script to
12567# discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12568# However when ld-new is first executed from the build tree, libtool will
12569# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12570# to the build tree.  While doing this we need to use the previous-stage
12571# linker, or we have an infinite loop.  The presence of a shell script as
12572# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12573# the gcc/collect-ld script.  So we need to know how libtool works, or
12574# exec-tool will fail.
12575
12576
12577case `pwd` in
12578  *\ * | *\	*)
12579    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12580$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12581esac
12582
12583
12584
12585macro_version='2.2.7a'
12586macro_revision='1.3134'
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600ltmain="$ac_aux_dir/ltmain.sh"
12601
12602# Backslashify metacharacters that are still active within
12603# double-quoted strings.
12604sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12605
12606# Same as above, but do not quote variable references.
12607double_quote_subst='s/\(["`\\]\)/\\\1/g'
12608
12609# Sed substitution to delay expansion of an escaped shell variable in a
12610# double_quote_subst'ed string.
12611delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12612
12613# Sed substitution to delay expansion of an escaped single quote.
12614delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12615
12616# Sed substitution to avoid accidental globbing in evaled expressions
12617no_glob_subst='s/\*/\\\*/g'
12618
12619ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12620ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12621ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12622
12623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12624$as_echo_n "checking how to print strings... " >&6; }
12625# Test print first, because it will be a builtin if present.
12626if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12627   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12628  ECHO='print -r --'
12629elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12630  ECHO='printf %s\n'
12631else
12632  # Use this function as a fallback that always works.
12633  func_fallback_echo ()
12634  {
12635    eval 'cat <<_LTECHO_EOF
12636$1
12637_LTECHO_EOF'
12638  }
12639  ECHO='func_fallback_echo'
12640fi
12641
12642# func_echo_all arg...
12643# Invoke $ECHO with all args, space-separated.
12644func_echo_all ()
12645{
12646    $ECHO ""
12647}
12648
12649case "$ECHO" in
12650  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12651$as_echo "printf" >&6; } ;;
12652  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12653$as_echo "print -r" >&6; } ;;
12654  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12655$as_echo "cat" >&6; } ;;
12656esac
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12672$as_echo_n "checking for a sed that does not truncate output... " >&6; }
12673if ${ac_cv_path_SED+:} false; then :
12674  $as_echo_n "(cached) " >&6
12675else
12676            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12677     for ac_i in 1 2 3 4 5 6 7; do
12678       ac_script="$ac_script$as_nl$ac_script"
12679     done
12680     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12681     { ac_script=; unset ac_script;}
12682     if test -z "$SED"; then
12683  ac_path_SED_found=false
12684  # Loop through the user's path and test for each of PROGNAME-LIST
12685  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686for as_dir in $PATH
12687do
12688  IFS=$as_save_IFS
12689  test -z "$as_dir" && as_dir=.
12690    for ac_prog in sed gsed; do
12691    for ac_exec_ext in '' $ac_executable_extensions; do
12692      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12693      as_fn_executable_p "$ac_path_SED" || continue
12694# Check for GNU ac_path_SED and select it if it is found.
12695  # Check for GNU $ac_path_SED
12696case `"$ac_path_SED" --version 2>&1` in
12697*GNU*)
12698  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12699*)
12700  ac_count=0
12701  $as_echo_n 0123456789 >"conftest.in"
12702  while :
12703  do
12704    cat "conftest.in" "conftest.in" >"conftest.tmp"
12705    mv "conftest.tmp" "conftest.in"
12706    cp "conftest.in" "conftest.nl"
12707    $as_echo '' >> "conftest.nl"
12708    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12709    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12710    as_fn_arith $ac_count + 1 && ac_count=$as_val
12711    if test $ac_count -gt ${ac_path_SED_max-0}; then
12712      # Best one so far, save it but keep looking for a better one
12713      ac_cv_path_SED="$ac_path_SED"
12714      ac_path_SED_max=$ac_count
12715    fi
12716    # 10*(2^10) chars as input seems more than enough
12717    test $ac_count -gt 10 && break
12718  done
12719  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12720esac
12721
12722      $ac_path_SED_found && break 3
12723    done
12724  done
12725  done
12726IFS=$as_save_IFS
12727  if test -z "$ac_cv_path_SED"; then
12728    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12729  fi
12730else
12731  ac_cv_path_SED=$SED
12732fi
12733
12734fi
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12736$as_echo "$ac_cv_path_SED" >&6; }
12737 SED="$ac_cv_path_SED"
12738  rm -f conftest.sed
12739
12740test -z "$SED" && SED=sed
12741Xsed="$SED -e 1s/^X//"
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12754$as_echo_n "checking for fgrep... " >&6; }
12755if ${ac_cv_path_FGREP+:} false; then :
12756  $as_echo_n "(cached) " >&6
12757else
12758  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12759   then ac_cv_path_FGREP="$GREP -F"
12760   else
12761     if test -z "$FGREP"; then
12762  ac_path_FGREP_found=false
12763  # Loop through the user's path and test for each of PROGNAME-LIST
12764  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12766do
12767  IFS=$as_save_IFS
12768  test -z "$as_dir" && as_dir=.
12769    for ac_prog in fgrep; do
12770    for ac_exec_ext in '' $ac_executable_extensions; do
12771      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12772      as_fn_executable_p "$ac_path_FGREP" || continue
12773# Check for GNU ac_path_FGREP and select it if it is found.
12774  # Check for GNU $ac_path_FGREP
12775case `"$ac_path_FGREP" --version 2>&1` in
12776*GNU*)
12777  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12778*)
12779  ac_count=0
12780  $as_echo_n 0123456789 >"conftest.in"
12781  while :
12782  do
12783    cat "conftest.in" "conftest.in" >"conftest.tmp"
12784    mv "conftest.tmp" "conftest.in"
12785    cp "conftest.in" "conftest.nl"
12786    $as_echo 'FGREP' >> "conftest.nl"
12787    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12788    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12789    as_fn_arith $ac_count + 1 && ac_count=$as_val
12790    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12791      # Best one so far, save it but keep looking for a better one
12792      ac_cv_path_FGREP="$ac_path_FGREP"
12793      ac_path_FGREP_max=$ac_count
12794    fi
12795    # 10*(2^10) chars as input seems more than enough
12796    test $ac_count -gt 10 && break
12797  done
12798  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12799esac
12800
12801      $ac_path_FGREP_found && break 3
12802    done
12803  done
12804  done
12805IFS=$as_save_IFS
12806  if test -z "$ac_cv_path_FGREP"; then
12807    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12808  fi
12809else
12810  ac_cv_path_FGREP=$FGREP
12811fi
12812
12813   fi
12814fi
12815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12816$as_echo "$ac_cv_path_FGREP" >&6; }
12817 FGREP="$ac_cv_path_FGREP"
12818
12819
12820test -z "$GREP" && GREP=grep
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840# Check whether --with-gnu-ld was given.
12841if test "${with_gnu_ld+set}" = set; then :
12842  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12843else
12844  with_gnu_ld=no
12845fi
12846
12847ac_prog=ld
12848if test "$GCC" = yes; then
12849  # Check if gcc -print-prog-name=ld gives a path.
12850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12851$as_echo_n "checking for ld used by $CC... " >&6; }
12852  case $host in
12853  *-*-mingw*)
12854    # gcc leaves a trailing carriage return which upsets mingw
12855    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12856  *)
12857    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12858  esac
12859  case $ac_prog in
12860    # Accept absolute paths.
12861    [\\/]* | ?:[\\/]*)
12862      re_direlt='/[^/][^/]*/\.\./'
12863      # Canonicalize the pathname of ld
12864      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12865      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12866	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12867      done
12868      test -z "$LD" && LD="$ac_prog"
12869      ;;
12870  "")
12871    # If it fails, then pretend we aren't using GCC.
12872    ac_prog=ld
12873    ;;
12874  *)
12875    # If it is relative, then search for the first ld in PATH.
12876    with_gnu_ld=unknown
12877    ;;
12878  esac
12879elif test "$with_gnu_ld" = yes; then
12880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12881$as_echo_n "checking for GNU ld... " >&6; }
12882else
12883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12884$as_echo_n "checking for non-GNU ld... " >&6; }
12885fi
12886if ${lt_cv_path_LD+:} false; then :
12887  $as_echo_n "(cached) " >&6
12888else
12889  if test -z "$LD"; then
12890  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12891  for ac_dir in $PATH; do
12892    IFS="$lt_save_ifs"
12893    test -z "$ac_dir" && ac_dir=.
12894    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12895      lt_cv_path_LD="$ac_dir/$ac_prog"
12896      # Check to see if the program is GNU ld.  I'd rather use --version,
12897      # but apparently some variants of GNU ld only accept -v.
12898      # Break only if it was the GNU/non-GNU ld that we prefer.
12899      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12900      *GNU* | *'with BFD'*)
12901	test "$with_gnu_ld" != no && break
12902	;;
12903      *)
12904	test "$with_gnu_ld" != yes && break
12905	;;
12906      esac
12907    fi
12908  done
12909  IFS="$lt_save_ifs"
12910else
12911  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12912fi
12913fi
12914
12915LD="$lt_cv_path_LD"
12916if test -n "$LD"; then
12917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12918$as_echo "$LD" >&6; }
12919else
12920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921$as_echo "no" >&6; }
12922fi
12923test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12925$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12926if ${lt_cv_prog_gnu_ld+:} false; then :
12927  $as_echo_n "(cached) " >&6
12928else
12929  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12930case `$LD -v 2>&1 </dev/null` in
12931*GNU* | *'with BFD'*)
12932  lt_cv_prog_gnu_ld=yes
12933  ;;
12934*)
12935  lt_cv_prog_gnu_ld=no
12936  ;;
12937esac
12938fi
12939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12940$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12941with_gnu_ld=$lt_cv_prog_gnu_ld
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12952$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12953if ${lt_cv_path_NM+:} false; then :
12954  $as_echo_n "(cached) " >&6
12955else
12956  if test -n "$NM"; then
12957  # Let the user override the test.
12958  lt_cv_path_NM="$NM"
12959else
12960  lt_nm_to_check="${ac_tool_prefix}nm"
12961  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12962    lt_nm_to_check="$lt_nm_to_check nm"
12963  fi
12964  for lt_tmp_nm in $lt_nm_to_check; do
12965    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12966    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12967      IFS="$lt_save_ifs"
12968      test -z "$ac_dir" && ac_dir=.
12969      tmp_nm="$ac_dir/$lt_tmp_nm"
12970      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12971	# Check to see if the nm accepts a BSD-compat flag.
12972	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
12973	#   nm: unknown option "B" ignored
12974	# Tru64's nm complains that /dev/null is an invalid object file
12975	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12976	*/dev/null* | *'Invalid file or object type'*)
12977	  lt_cv_path_NM="$tmp_nm -B"
12978	  break
12979	  ;;
12980	*)
12981	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12982	  */dev/null*)
12983	    lt_cv_path_NM="$tmp_nm -p"
12984	    break
12985	    ;;
12986	  *)
12987	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12988	    continue # so that we can try to find one that supports BSD flags
12989	    ;;
12990	  esac
12991	  ;;
12992	esac
12993      fi
12994    done
12995    IFS="$lt_save_ifs"
12996  done
12997  : ${lt_cv_path_NM=no}
12998fi
12999fi
13000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13001$as_echo "$lt_cv_path_NM" >&6; }
13002if test "$lt_cv_path_NM" != "no"; then
13003  NM="$lt_cv_path_NM"
13004else
13005  # Didn't find any BSD compatible name lister, look for dumpbin.
13006  if test -n "$DUMPBIN"; then :
13007    # Let the user override the test.
13008  else
13009    if test -n "$ac_tool_prefix"; then
13010  for ac_prog in dumpbin "link -dump"
13011  do
13012    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13013set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13015$as_echo_n "checking for $ac_word... " >&6; }
13016if ${ac_cv_prog_DUMPBIN+:} false; then :
13017  $as_echo_n "(cached) " >&6
13018else
13019  if test -n "$DUMPBIN"; then
13020  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13021else
13022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023for as_dir in $PATH
13024do
13025  IFS=$as_save_IFS
13026  test -z "$as_dir" && as_dir=.
13027    for ac_exec_ext in '' $ac_executable_extensions; do
13028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13029    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13031    break 2
13032  fi
13033done
13034  done
13035IFS=$as_save_IFS
13036
13037fi
13038fi
13039DUMPBIN=$ac_cv_prog_DUMPBIN
13040if test -n "$DUMPBIN"; then
13041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13042$as_echo "$DUMPBIN" >&6; }
13043else
13044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045$as_echo "no" >&6; }
13046fi
13047
13048
13049    test -n "$DUMPBIN" && break
13050  done
13051fi
13052if test -z "$DUMPBIN"; then
13053  ac_ct_DUMPBIN=$DUMPBIN
13054  for ac_prog in dumpbin "link -dump"
13055do
13056  # Extract the first word of "$ac_prog", so it can be a program name with args.
13057set dummy $ac_prog; ac_word=$2
13058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13059$as_echo_n "checking for $ac_word... " >&6; }
13060if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13061  $as_echo_n "(cached) " >&6
13062else
13063  if test -n "$ac_ct_DUMPBIN"; then
13064  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13065else
13066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067for as_dir in $PATH
13068do
13069  IFS=$as_save_IFS
13070  test -z "$as_dir" && as_dir=.
13071    for ac_exec_ext in '' $ac_executable_extensions; do
13072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13073    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13075    break 2
13076  fi
13077done
13078  done
13079IFS=$as_save_IFS
13080
13081fi
13082fi
13083ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13084if test -n "$ac_ct_DUMPBIN"; then
13085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13086$as_echo "$ac_ct_DUMPBIN" >&6; }
13087else
13088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089$as_echo "no" >&6; }
13090fi
13091
13092
13093  test -n "$ac_ct_DUMPBIN" && break
13094done
13095
13096  if test "x$ac_ct_DUMPBIN" = x; then
13097    DUMPBIN=":"
13098  else
13099    case $cross_compiling:$ac_tool_warned in
13100yes:)
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13103ac_tool_warned=yes ;;
13104esac
13105    DUMPBIN=$ac_ct_DUMPBIN
13106  fi
13107fi
13108
13109    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13110    *COFF*)
13111      DUMPBIN="$DUMPBIN -symbols"
13112      ;;
13113    *)
13114      DUMPBIN=:
13115      ;;
13116    esac
13117  fi
13118
13119  if test "$DUMPBIN" != ":"; then
13120    NM="$DUMPBIN"
13121  fi
13122fi
13123test -z "$NM" && NM=nm
13124
13125
13126
13127
13128
13129
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13131$as_echo_n "checking the name lister ($NM) interface... " >&6; }
13132if ${lt_cv_nm_interface+:} false; then :
13133  $as_echo_n "(cached) " >&6
13134else
13135  lt_cv_nm_interface="BSD nm"
13136  echo "int some_variable = 0;" > conftest.$ac_ext
13137  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13138  (eval "$ac_compile" 2>conftest.err)
13139  cat conftest.err >&5
13140  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13141  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13142  cat conftest.err >&5
13143  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13144  cat conftest.out >&5
13145  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13146    lt_cv_nm_interface="MS dumpbin"
13147  fi
13148  rm -f conftest*
13149fi
13150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13151$as_echo "$lt_cv_nm_interface" >&6; }
13152
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13154$as_echo_n "checking whether ln -s works... " >&6; }
13155LN_S=$as_ln_s
13156if test "$LN_S" = "ln -s"; then
13157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13158$as_echo "yes" >&6; }
13159else
13160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13161$as_echo "no, using $LN_S" >&6; }
13162fi
13163
13164# find the maximum length of command line arguments
13165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13166$as_echo_n "checking the maximum length of command line arguments... " >&6; }
13167if ${lt_cv_sys_max_cmd_len+:} false; then :
13168  $as_echo_n "(cached) " >&6
13169else
13170    i=0
13171  teststring="ABCD"
13172
13173  case $build_os in
13174  msdosdjgpp*)
13175    # On DJGPP, this test can blow up pretty badly due to problems in libc
13176    # (any single argument exceeding 2000 bytes causes a buffer overrun
13177    # during glob expansion).  Even if it were fixed, the result of this
13178    # check would be larger than it should be.
13179    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13180    ;;
13181
13182  gnu*)
13183    # Under GNU Hurd, this test is not required because there is
13184    # no limit to the length of command line arguments.
13185    # Libtool will interpret -1 as no limit whatsoever
13186    lt_cv_sys_max_cmd_len=-1;
13187    ;;
13188
13189  cygwin* | mingw* | cegcc*)
13190    # On Win9x/ME, this test blows up -- it succeeds, but takes
13191    # about 5 minutes as the teststring grows exponentially.
13192    # Worse, since 9x/ME are not pre-emptively multitasking,
13193    # you end up with a "frozen" computer, even though with patience
13194    # the test eventually succeeds (with a max line length of 256k).
13195    # Instead, let's just punt: use the minimum linelength reported by
13196    # all of the supported platforms: 8192 (on NT/2K/XP).
13197    lt_cv_sys_max_cmd_len=8192;
13198    ;;
13199
13200  mint*)
13201    # On MiNT this can take a long time and run out of memory.
13202    lt_cv_sys_max_cmd_len=8192;
13203    ;;
13204
13205  amigaos*)
13206    # On AmigaOS with pdksh, this test takes hours, literally.
13207    # So we just punt and use a minimum line length of 8192.
13208    lt_cv_sys_max_cmd_len=8192;
13209    ;;
13210
13211  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13212    # This has been around since 386BSD, at least.  Likely further.
13213    if test -x /sbin/sysctl; then
13214      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13215    elif test -x /usr/sbin/sysctl; then
13216      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13217    else
13218      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13219    fi
13220    # And add a safety zone
13221    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13222    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13223    ;;
13224
13225  interix*)
13226    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13227    lt_cv_sys_max_cmd_len=196608
13228    ;;
13229
13230  osf*)
13231    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13232    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13233    # nice to cause kernel panics so lets avoid the loop below.
13234    # First set a reasonable default.
13235    lt_cv_sys_max_cmd_len=16384
13236    #
13237    if test -x /sbin/sysconfig; then
13238      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13239        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13240      esac
13241    fi
13242    ;;
13243  sco3.2v5*)
13244    lt_cv_sys_max_cmd_len=102400
13245    ;;
13246  sysv5* | sco5v6* | sysv4.2uw2*)
13247    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13248    if test -n "$kargmax"; then
13249      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
13250    else
13251      lt_cv_sys_max_cmd_len=32768
13252    fi
13253    ;;
13254  *)
13255    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13256    if test -n "$lt_cv_sys_max_cmd_len"; then
13257      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13258      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13259    else
13260      # Make teststring a little bigger before we do anything with it.
13261      # a 1K string should be a reasonable start.
13262      for i in 1 2 3 4 5 6 7 8 ; do
13263        teststring=$teststring$teststring
13264      done
13265      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13266      # If test is not a shell built-in, we'll probably end up computing a
13267      # maximum length that is only half of the actual maximum length, but
13268      # we can't tell.
13269      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13270	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13271	      test $i != 17 # 1/2 MB should be enough
13272      do
13273        i=`expr $i + 1`
13274        teststring=$teststring$teststring
13275      done
13276      # Only check the string length outside the loop.
13277      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13278      teststring=
13279      # Add a significant safety factor because C++ compilers can tack on
13280      # massive amounts of additional arguments before passing them to the
13281      # linker.  It appears as though 1/2 is a usable value.
13282      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13283    fi
13284    ;;
13285  esac
13286
13287fi
13288
13289if test -n $lt_cv_sys_max_cmd_len ; then
13290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13291$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13292else
13293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13294$as_echo "none" >&6; }
13295fi
13296max_cmd_len=$lt_cv_sys_max_cmd_len
13297
13298
13299
13300
13301
13302
13303: ${CP="cp -f"}
13304: ${MV="mv -f"}
13305: ${RM="rm -f"}
13306
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13308$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13309# Try some XSI features
13310xsi_shell=no
13311( _lt_dummy="a/b/c"
13312  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13313      = c,a/b,, \
13314    && eval 'test $(( 1 + 1 )) -eq 2 \
13315    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13316  && xsi_shell=yes
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13318$as_echo "$xsi_shell" >&6; }
13319
13320
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13322$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13323lt_shell_append=no
13324( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13325    >/dev/null 2>&1 \
13326  && lt_shell_append=yes
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13328$as_echo "$lt_shell_append" >&6; }
13329
13330
13331if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13332  lt_unset=unset
13333else
13334  lt_unset=false
13335fi
13336
13337
13338
13339
13340
13341# test EBCDIC or ASCII
13342case `echo X|tr X '\101'` in
13343 A) # ASCII based system
13344    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13345  lt_SP2NL='tr \040 \012'
13346  lt_NL2SP='tr \015\012 \040\040'
13347  ;;
13348 *) # EBCDIC based system
13349  lt_SP2NL='tr \100 \n'
13350  lt_NL2SP='tr \r\n \100\100'
13351  ;;
13352esac
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13363$as_echo_n "checking for $LD option to reload object files... " >&6; }
13364if ${lt_cv_ld_reload_flag+:} false; then :
13365  $as_echo_n "(cached) " >&6
13366else
13367  lt_cv_ld_reload_flag='-r'
13368fi
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13370$as_echo "$lt_cv_ld_reload_flag" >&6; }
13371reload_flag=$lt_cv_ld_reload_flag
13372case $reload_flag in
13373"" | " "*) ;;
13374*) reload_flag=" $reload_flag" ;;
13375esac
13376reload_cmds='$LD$reload_flag -o $output$reload_objs'
13377case $host_os in
13378  darwin*)
13379    if test "$GCC" = yes; then
13380      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13381    else
13382      reload_cmds='$LD$reload_flag -o $output$reload_objs'
13383    fi
13384    ;;
13385esac
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395if test -n "$ac_tool_prefix"; then
13396  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13397set dummy ${ac_tool_prefix}objdump; ac_word=$2
13398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13399$as_echo_n "checking for $ac_word... " >&6; }
13400if ${ac_cv_prog_OBJDUMP+:} false; then :
13401  $as_echo_n "(cached) " >&6
13402else
13403  if test -n "$OBJDUMP"; then
13404  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13405else
13406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407for as_dir in $PATH
13408do
13409  IFS=$as_save_IFS
13410  test -z "$as_dir" && as_dir=.
13411    for ac_exec_ext in '' $ac_executable_extensions; do
13412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13413    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13415    break 2
13416  fi
13417done
13418  done
13419IFS=$as_save_IFS
13420
13421fi
13422fi
13423OBJDUMP=$ac_cv_prog_OBJDUMP
13424if test -n "$OBJDUMP"; then
13425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13426$as_echo "$OBJDUMP" >&6; }
13427else
13428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429$as_echo "no" >&6; }
13430fi
13431
13432
13433fi
13434if test -z "$ac_cv_prog_OBJDUMP"; then
13435  ac_ct_OBJDUMP=$OBJDUMP
13436  # Extract the first word of "objdump", so it can be a program name with args.
13437set dummy objdump; ac_word=$2
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13439$as_echo_n "checking for $ac_word... " >&6; }
13440if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13441  $as_echo_n "(cached) " >&6
13442else
13443  if test -n "$ac_ct_OBJDUMP"; then
13444  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13445else
13446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13447for as_dir in $PATH
13448do
13449  IFS=$as_save_IFS
13450  test -z "$as_dir" && as_dir=.
13451    for ac_exec_ext in '' $ac_executable_extensions; do
13452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13453    ac_cv_prog_ac_ct_OBJDUMP="objdump"
13454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13455    break 2
13456  fi
13457done
13458  done
13459IFS=$as_save_IFS
13460
13461fi
13462fi
13463ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13464if test -n "$ac_ct_OBJDUMP"; then
13465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13466$as_echo "$ac_ct_OBJDUMP" >&6; }
13467else
13468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469$as_echo "no" >&6; }
13470fi
13471
13472  if test "x$ac_ct_OBJDUMP" = x; then
13473    OBJDUMP="false"
13474  else
13475    case $cross_compiling:$ac_tool_warned in
13476yes:)
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13479ac_tool_warned=yes ;;
13480esac
13481    OBJDUMP=$ac_ct_OBJDUMP
13482  fi
13483else
13484  OBJDUMP="$ac_cv_prog_OBJDUMP"
13485fi
13486
13487test -z "$OBJDUMP" && OBJDUMP=objdump
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13498$as_echo_n "checking how to recognize dependent libraries... " >&6; }
13499if ${lt_cv_deplibs_check_method+:} false; then :
13500  $as_echo_n "(cached) " >&6
13501else
13502  lt_cv_file_magic_cmd='$MAGIC_CMD'
13503lt_cv_file_magic_test_file=
13504lt_cv_deplibs_check_method='unknown'
13505# Need to set the preceding variable on all platforms that support
13506# interlibrary dependencies.
13507# 'none' -- dependencies not supported.
13508# `unknown' -- same as none, but documents that we really don't know.
13509# 'pass_all' -- all dependencies passed with no checks.
13510# 'test_compile' -- check by making test program.
13511# 'file_magic [[regex]]' -- check by looking for files in library path
13512# which responds to the $file_magic_cmd with a given extended regex.
13513# If you have `file' or equivalent on your system and you're not sure
13514# whether `pass_all' will *always* work, you probably want this one.
13515
13516case $host_os in
13517aix[4-9]*)
13518  lt_cv_deplibs_check_method=pass_all
13519  ;;
13520
13521beos*)
13522  lt_cv_deplibs_check_method=pass_all
13523  ;;
13524
13525bsdi[45]*)
13526  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13527  lt_cv_file_magic_cmd='/usr/bin/file -L'
13528  lt_cv_file_magic_test_file=/shlib/libc.so
13529  ;;
13530
13531cygwin*)
13532  # func_win32_libid is a shell function defined in ltmain.sh
13533  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13534  lt_cv_file_magic_cmd='func_win32_libid'
13535  ;;
13536
13537mingw* | pw32*)
13538  # Base MSYS/MinGW do not provide the 'file' command needed by
13539  # func_win32_libid shell function, so use a weaker test based on 'objdump',
13540  # unless we find 'file', for example because we are cross-compiling.
13541  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13542  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13543    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13544    lt_cv_file_magic_cmd='func_win32_libid'
13545  else
13546    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13547    lt_cv_file_magic_cmd='$OBJDUMP -f'
13548  fi
13549  ;;
13550
13551cegcc*)
13552  # use the weaker test based on 'objdump'. See mingw*.
13553  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13554  lt_cv_file_magic_cmd='$OBJDUMP -f'
13555  ;;
13556
13557darwin* | rhapsody*)
13558  lt_cv_deplibs_check_method=pass_all
13559  ;;
13560
13561freebsd* | dragonfly*)
13562  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13563    case $host_cpu in
13564    i*86 )
13565      # Not sure whether the presence of OpenBSD here was a mistake.
13566      # Let's accept both of them until this is cleared up.
13567      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13568      lt_cv_file_magic_cmd=/usr/bin/file
13569      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13570      ;;
13571    esac
13572  else
13573    lt_cv_deplibs_check_method=pass_all
13574  fi
13575  ;;
13576
13577gnu*)
13578  lt_cv_deplibs_check_method=pass_all
13579  ;;
13580
13581haiku*)
13582  lt_cv_deplibs_check_method=pass_all
13583  ;;
13584
13585hpux10.20* | hpux11*)
13586  lt_cv_file_magic_cmd=/usr/bin/file
13587  case $host_cpu in
13588  ia64*)
13589    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13590    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13591    ;;
13592  hppa*64*)
13593    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]'
13594    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13595    ;;
13596  *)
13597    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13598    lt_cv_file_magic_test_file=/usr/lib/libc.sl
13599    ;;
13600  esac
13601  ;;
13602
13603interix[3-9]*)
13604  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13605  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13606  ;;
13607
13608irix5* | irix6* | nonstopux*)
13609  case $LD in
13610  *-32|*"-32 ") libmagic=32-bit;;
13611  *-n32|*"-n32 ") libmagic=N32;;
13612  *-64|*"-64 ") libmagic=64-bit;;
13613  *) libmagic=never-match;;
13614  esac
13615  lt_cv_deplibs_check_method=pass_all
13616  ;;
13617
13618# This must be Linux ELF.
13619linux* | k*bsd*-gnu | kopensolaris*-gnu)
13620  lt_cv_deplibs_check_method=pass_all
13621  ;;
13622
13623netbsd*)
13624  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13625    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13626  else
13627    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13628  fi
13629  ;;
13630
13631newos6*)
13632  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13633  lt_cv_file_magic_cmd=/usr/bin/file
13634  lt_cv_file_magic_test_file=/usr/lib/libnls.so
13635  ;;
13636
13637*nto* | *qnx*)
13638  lt_cv_deplibs_check_method=pass_all
13639  ;;
13640
13641openbsd*)
13642  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13643    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13644  else
13645    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13646  fi
13647  ;;
13648
13649osf3* | osf4* | osf5*)
13650  lt_cv_deplibs_check_method=pass_all
13651  ;;
13652
13653rdos*)
13654  lt_cv_deplibs_check_method=pass_all
13655  ;;
13656
13657solaris*)
13658  lt_cv_deplibs_check_method=pass_all
13659  ;;
13660
13661sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13662  lt_cv_deplibs_check_method=pass_all
13663  ;;
13664
13665sysv4 | sysv4.3*)
13666  case $host_vendor in
13667  motorola)
13668    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]'
13669    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13670    ;;
13671  ncr)
13672    lt_cv_deplibs_check_method=pass_all
13673    ;;
13674  sequent)
13675    lt_cv_file_magic_cmd='/bin/file'
13676    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13677    ;;
13678  sni)
13679    lt_cv_file_magic_cmd='/bin/file'
13680    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13681    lt_cv_file_magic_test_file=/lib/libc.so
13682    ;;
13683  siemens)
13684    lt_cv_deplibs_check_method=pass_all
13685    ;;
13686  pc)
13687    lt_cv_deplibs_check_method=pass_all
13688    ;;
13689  esac
13690  ;;
13691
13692tpf*)
13693  lt_cv_deplibs_check_method=pass_all
13694  ;;
13695esac
13696
13697fi
13698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13699$as_echo "$lt_cv_deplibs_check_method" >&6; }
13700file_magic_cmd=$lt_cv_file_magic_cmd
13701deplibs_check_method=$lt_cv_deplibs_check_method
13702test -z "$deplibs_check_method" && deplibs_check_method=unknown
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715if test -n "$ac_tool_prefix"; then
13716  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13717set dummy ${ac_tool_prefix}ar; ac_word=$2
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13719$as_echo_n "checking for $ac_word... " >&6; }
13720if ${ac_cv_prog_AR+:} false; then :
13721  $as_echo_n "(cached) " >&6
13722else
13723  if test -n "$AR"; then
13724  ac_cv_prog_AR="$AR" # Let the user override the test.
13725else
13726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727for as_dir in $PATH
13728do
13729  IFS=$as_save_IFS
13730  test -z "$as_dir" && as_dir=.
13731    for ac_exec_ext in '' $ac_executable_extensions; do
13732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13733    ac_cv_prog_AR="${ac_tool_prefix}ar"
13734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13735    break 2
13736  fi
13737done
13738  done
13739IFS=$as_save_IFS
13740
13741fi
13742fi
13743AR=$ac_cv_prog_AR
13744if test -n "$AR"; then
13745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13746$as_echo "$AR" >&6; }
13747else
13748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749$as_echo "no" >&6; }
13750fi
13751
13752
13753fi
13754if test -z "$ac_cv_prog_AR"; then
13755  ac_ct_AR=$AR
13756  # Extract the first word of "ar", so it can be a program name with args.
13757set dummy ar; ac_word=$2
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13759$as_echo_n "checking for $ac_word... " >&6; }
13760if ${ac_cv_prog_ac_ct_AR+:} false; then :
13761  $as_echo_n "(cached) " >&6
13762else
13763  if test -n "$ac_ct_AR"; then
13764  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13765else
13766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13767for as_dir in $PATH
13768do
13769  IFS=$as_save_IFS
13770  test -z "$as_dir" && as_dir=.
13771    for ac_exec_ext in '' $ac_executable_extensions; do
13772  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13773    ac_cv_prog_ac_ct_AR="ar"
13774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13775    break 2
13776  fi
13777done
13778  done
13779IFS=$as_save_IFS
13780
13781fi
13782fi
13783ac_ct_AR=$ac_cv_prog_ac_ct_AR
13784if test -n "$ac_ct_AR"; then
13785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13786$as_echo "$ac_ct_AR" >&6; }
13787else
13788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13789$as_echo "no" >&6; }
13790fi
13791
13792  if test "x$ac_ct_AR" = x; then
13793    AR="false"
13794  else
13795    case $cross_compiling:$ac_tool_warned in
13796yes:)
13797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13799ac_tool_warned=yes ;;
13800esac
13801    AR=$ac_ct_AR
13802  fi
13803else
13804  AR="$ac_cv_prog_AR"
13805fi
13806
13807test -z "$AR" && AR=ar
13808test -z "$AR_FLAGS" && AR_FLAGS=cru
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820if test -n "$ac_tool_prefix"; then
13821  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13822set dummy ${ac_tool_prefix}strip; ac_word=$2
13823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13824$as_echo_n "checking for $ac_word... " >&6; }
13825if ${ac_cv_prog_STRIP+:} false; then :
13826  $as_echo_n "(cached) " >&6
13827else
13828  if test -n "$STRIP"; then
13829  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13830else
13831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13832for as_dir in $PATH
13833do
13834  IFS=$as_save_IFS
13835  test -z "$as_dir" && as_dir=.
13836    for ac_exec_ext in '' $ac_executable_extensions; do
13837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13838    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13840    break 2
13841  fi
13842done
13843  done
13844IFS=$as_save_IFS
13845
13846fi
13847fi
13848STRIP=$ac_cv_prog_STRIP
13849if test -n "$STRIP"; then
13850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13851$as_echo "$STRIP" >&6; }
13852else
13853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854$as_echo "no" >&6; }
13855fi
13856
13857
13858fi
13859if test -z "$ac_cv_prog_STRIP"; then
13860  ac_ct_STRIP=$STRIP
13861  # Extract the first word of "strip", so it can be a program name with args.
13862set dummy strip; ac_word=$2
13863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13864$as_echo_n "checking for $ac_word... " >&6; }
13865if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13866  $as_echo_n "(cached) " >&6
13867else
13868  if test -n "$ac_ct_STRIP"; then
13869  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13870else
13871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13872for as_dir in $PATH
13873do
13874  IFS=$as_save_IFS
13875  test -z "$as_dir" && as_dir=.
13876    for ac_exec_ext in '' $ac_executable_extensions; do
13877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13878    ac_cv_prog_ac_ct_STRIP="strip"
13879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13880    break 2
13881  fi
13882done
13883  done
13884IFS=$as_save_IFS
13885
13886fi
13887fi
13888ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13889if test -n "$ac_ct_STRIP"; then
13890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13891$as_echo "$ac_ct_STRIP" >&6; }
13892else
13893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13894$as_echo "no" >&6; }
13895fi
13896
13897  if test "x$ac_ct_STRIP" = x; then
13898    STRIP=":"
13899  else
13900    case $cross_compiling:$ac_tool_warned in
13901yes:)
13902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13904ac_tool_warned=yes ;;
13905esac
13906    STRIP=$ac_ct_STRIP
13907  fi
13908else
13909  STRIP="$ac_cv_prog_STRIP"
13910fi
13911
13912test -z "$STRIP" && STRIP=:
13913
13914
13915
13916
13917
13918
13919if test -n "$ac_tool_prefix"; then
13920  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13921set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13923$as_echo_n "checking for $ac_word... " >&6; }
13924if ${ac_cv_prog_RANLIB+:} false; then :
13925  $as_echo_n "(cached) " >&6
13926else
13927  if test -n "$RANLIB"; then
13928  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13929else
13930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13931for as_dir in $PATH
13932do
13933  IFS=$as_save_IFS
13934  test -z "$as_dir" && as_dir=.
13935    for ac_exec_ext in '' $ac_executable_extensions; do
13936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13937    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13939    break 2
13940  fi
13941done
13942  done
13943IFS=$as_save_IFS
13944
13945fi
13946fi
13947RANLIB=$ac_cv_prog_RANLIB
13948if test -n "$RANLIB"; then
13949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13950$as_echo "$RANLIB" >&6; }
13951else
13952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13953$as_echo "no" >&6; }
13954fi
13955
13956
13957fi
13958if test -z "$ac_cv_prog_RANLIB"; then
13959  ac_ct_RANLIB=$RANLIB
13960  # Extract the first word of "ranlib", so it can be a program name with args.
13961set dummy ranlib; ac_word=$2
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13963$as_echo_n "checking for $ac_word... " >&6; }
13964if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13965  $as_echo_n "(cached) " >&6
13966else
13967  if test -n "$ac_ct_RANLIB"; then
13968  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13969else
13970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13971for as_dir in $PATH
13972do
13973  IFS=$as_save_IFS
13974  test -z "$as_dir" && as_dir=.
13975    for ac_exec_ext in '' $ac_executable_extensions; do
13976  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13977    ac_cv_prog_ac_ct_RANLIB="ranlib"
13978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13979    break 2
13980  fi
13981done
13982  done
13983IFS=$as_save_IFS
13984
13985fi
13986fi
13987ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13988if test -n "$ac_ct_RANLIB"; then
13989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13990$as_echo "$ac_ct_RANLIB" >&6; }
13991else
13992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13993$as_echo "no" >&6; }
13994fi
13995
13996  if test "x$ac_ct_RANLIB" = x; then
13997    RANLIB=":"
13998  else
13999    case $cross_compiling:$ac_tool_warned in
14000yes:)
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14003ac_tool_warned=yes ;;
14004esac
14005    RANLIB=$ac_ct_RANLIB
14006  fi
14007else
14008  RANLIB="$ac_cv_prog_RANLIB"
14009fi
14010
14011test -z "$RANLIB" && RANLIB=:
14012
14013
14014
14015
14016
14017
14018# Determine commands to create old-style static archives.
14019old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14020old_postinstall_cmds='chmod 644 $oldlib'
14021old_postuninstall_cmds=
14022
14023if test -n "$RANLIB"; then
14024  case $host_os in
14025  openbsd*)
14026    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14027    ;;
14028  *)
14029    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14030    ;;
14031  esac
14032  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14033fi
14034
14035case $host_os in
14036  darwin*)
14037    lock_old_archive_extraction=yes ;;
14038  *)
14039    lock_old_archive_extraction=no ;;
14040esac
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080# If no C compiler was specified, use CC.
14081LTCC=${LTCC-"$CC"}
14082
14083# If no C compiler flags were specified, use CFLAGS.
14084LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14085
14086# Allow CC to be a program name with arguments.
14087compiler=$CC
14088
14089
14090# Check for command to grab the raw symbol name followed by C symbol from nm.
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14092$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14093if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14094  $as_echo_n "(cached) " >&6
14095else
14096
14097# These are sane defaults that work on at least a few old systems.
14098# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14099
14100# Character class describing NM global symbol codes.
14101symcode='[BCDEGRST]'
14102
14103# Regexp to match symbols that can be accessed directly from C.
14104sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14105
14106# Define system-specific variables.
14107case $host_os in
14108aix*)
14109  symcode='[BCDT]'
14110  ;;
14111cygwin* | mingw* | pw32* | cegcc*)
14112  symcode='[ABCDGISTW]'
14113  ;;
14114hpux*)
14115  if test "$host_cpu" = ia64; then
14116    symcode='[ABCDEGRST]'
14117  fi
14118  ;;
14119irix* | nonstopux*)
14120  symcode='[BCDEGRST]'
14121  ;;
14122osf*)
14123  symcode='[BCDEGQRST]'
14124  ;;
14125solaris*)
14126  symcode='[BDRT]'
14127  ;;
14128sco3.2v5*)
14129  symcode='[DT]'
14130  ;;
14131sysv4.2uw2*)
14132  symcode='[DT]'
14133  ;;
14134sysv5* | sco5v6* | unixware* | OpenUNIX*)
14135  symcode='[ABDT]'
14136  ;;
14137sysv4)
14138  symcode='[DFNSTU]'
14139  ;;
14140esac
14141
14142# If we're using GNU nm, then use its standard symbol codes.
14143case `$NM -V 2>&1` in
14144*GNU* | *'with BFD'*)
14145  symcode='[ABCDGIRSTW]' ;;
14146esac
14147
14148# Transform an extracted symbol line into a proper C declaration.
14149# Some systems (esp. on ia64) link data and code symbols differently,
14150# so use this general approach.
14151lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14152
14153# Transform an extracted symbol line into symbol name and symbol address
14154lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
14155lt_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'"
14156
14157# Handle CRLF in mingw tool chain
14158opt_cr=
14159case $build_os in
14160mingw*)
14161  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14162  ;;
14163esac
14164
14165# Try without a prefix underscore, then with it.
14166for ac_symprfx in "" "_"; do
14167
14168  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14169  symxfrm="\\1 $ac_symprfx\\2 \\2"
14170
14171  # Write the raw and C identifiers.
14172  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14173    # Fake it for dumpbin and say T for any non-static function
14174    # and D for any global variable.
14175    # Also find C++ and __fastcall symbols from MSVC++,
14176    # which start with @ or ?.
14177    lt_cv_sys_global_symbol_pipe="$AWK '"\
14178"     {last_section=section; section=\$ 3};"\
14179"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14180"     \$ 0!~/External *\|/{next};"\
14181"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14182"     {if(hide[section]) next};"\
14183"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14184"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14185"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
14186"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14187"     ' prfx=^$ac_symprfx"
14188  else
14189    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14190  fi
14191
14192  # Check to see that the pipe works correctly.
14193  pipe_works=no
14194
14195  rm -f conftest*
14196  cat > conftest.$ac_ext <<_LT_EOF
14197#ifdef __cplusplus
14198extern "C" {
14199#endif
14200char nm_test_var;
14201void nm_test_func(void);
14202void nm_test_func(void){}
14203#ifdef __cplusplus
14204}
14205#endif
14206int main(){nm_test_var='a';nm_test_func();return(0);}
14207_LT_EOF
14208
14209  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14210  (eval $ac_compile) 2>&5
14211  ac_status=$?
14212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14213  test $ac_status = 0; }; then
14214    # Now try to grab the symbols.
14215    nlist=conftest.nm
14216    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14217  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14218  ac_status=$?
14219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14220  test $ac_status = 0; } && test -s "$nlist"; then
14221      # Try sorting and uniquifying the output.
14222      if sort "$nlist" | uniq > "$nlist"T; then
14223	mv -f "$nlist"T "$nlist"
14224      else
14225	rm -f "$nlist"T
14226      fi
14227
14228      # Make sure that we snagged all the symbols we need.
14229      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14230	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14231	  cat <<_LT_EOF > conftest.$ac_ext
14232#ifdef __cplusplus
14233extern "C" {
14234#endif
14235
14236_LT_EOF
14237	  # Now generate the symbol file.
14238	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14239
14240	  cat <<_LT_EOF >> conftest.$ac_ext
14241
14242/* The mapping between symbol names and symbols.  */
14243const struct {
14244  const char *name;
14245  void       *address;
14246}
14247lt__PROGRAM__LTX_preloaded_symbols[] =
14248{
14249  { "@PROGRAM@", (void *) 0 },
14250_LT_EOF
14251	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14252	  cat <<\_LT_EOF >> conftest.$ac_ext
14253  {0, (void *) 0}
14254};
14255
14256/* This works around a problem in FreeBSD linker */
14257#ifdef FREEBSD_WORKAROUND
14258static const void *lt_preloaded_setup() {
14259  return lt__PROGRAM__LTX_preloaded_symbols;
14260}
14261#endif
14262
14263#ifdef __cplusplus
14264}
14265#endif
14266_LT_EOF
14267	  # Now try linking the two files.
14268	  mv conftest.$ac_objext conftstm.$ac_objext
14269	  lt_save_LIBS="$LIBS"
14270	  lt_save_CFLAGS="$CFLAGS"
14271	  LIBS="conftstm.$ac_objext"
14272	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14273	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14274  (eval $ac_link) 2>&5
14275  ac_status=$?
14276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14277  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14278	    pipe_works=yes
14279	  fi
14280	  LIBS="$lt_save_LIBS"
14281	  CFLAGS="$lt_save_CFLAGS"
14282	else
14283	  echo "cannot find nm_test_func in $nlist" >&5
14284	fi
14285      else
14286	echo "cannot find nm_test_var in $nlist" >&5
14287      fi
14288    else
14289      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14290    fi
14291  else
14292    echo "$progname: failed program was:" >&5
14293    cat conftest.$ac_ext >&5
14294  fi
14295  rm -rf conftest* conftst*
14296
14297  # Do not use the global_symbol_pipe unless it works.
14298  if test "$pipe_works" = yes; then
14299    break
14300  else
14301    lt_cv_sys_global_symbol_pipe=
14302  fi
14303done
14304
14305fi
14306
14307if test -z "$lt_cv_sys_global_symbol_pipe"; then
14308  lt_cv_sys_global_symbol_to_cdecl=
14309fi
14310if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14312$as_echo "failed" >&6; }
14313else
14314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14315$as_echo "ok" >&6; }
14316fi
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339# Check whether --enable-libtool-lock was given.
14340if test "${enable_libtool_lock+set}" = set; then :
14341  enableval=$enable_libtool_lock;
14342fi
14343
14344test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14345
14346# Some flags need to be propagated to the compiler or linker for good
14347# libtool support.
14348case $host in
14349ia64-*-hpux*)
14350  # Find out which ABI we are using.
14351  echo 'int i;' > conftest.$ac_ext
14352  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14353  (eval $ac_compile) 2>&5
14354  ac_status=$?
14355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14356  test $ac_status = 0; }; then
14357    case `/usr/bin/file conftest.$ac_objext` in
14358      *ELF-32*)
14359	HPUX_IA64_MODE="32"
14360	;;
14361      *ELF-64*)
14362	HPUX_IA64_MODE="64"
14363	;;
14364    esac
14365  fi
14366  rm -rf conftest*
14367  ;;
14368*-*-irix6*)
14369  # Find out which ABI we are using.
14370  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14371  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14372  (eval $ac_compile) 2>&5
14373  ac_status=$?
14374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14375  test $ac_status = 0; }; then
14376    if test "$lt_cv_prog_gnu_ld" = yes; then
14377      case `/usr/bin/file conftest.$ac_objext` in
14378	*32-bit*)
14379	  LD="${LD-ld} -melf32bsmip"
14380	  ;;
14381	*N32*)
14382	  LD="${LD-ld} -melf32bmipn32"
14383	  ;;
14384	*64-bit*)
14385	  LD="${LD-ld} -melf64bmip"
14386	;;
14387      esac
14388    else
14389      case `/usr/bin/file conftest.$ac_objext` in
14390	*32-bit*)
14391	  LD="${LD-ld} -32"
14392	  ;;
14393	*N32*)
14394	  LD="${LD-ld} -n32"
14395	  ;;
14396	*64-bit*)
14397	  LD="${LD-ld} -64"
14398	  ;;
14399      esac
14400    fi
14401  fi
14402  rm -rf conftest*
14403  ;;
14404
14405x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14406s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14407  # Find out which ABI we are using.
14408  echo 'int i;' > conftest.$ac_ext
14409  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14410  (eval $ac_compile) 2>&5
14411  ac_status=$?
14412  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14413  test $ac_status = 0; }; then
14414    case `/usr/bin/file conftest.o` in
14415      *32-bit*)
14416	case $host in
14417	  x86_64-*kfreebsd*-gnu)
14418	    LD="${LD-ld} -m elf_i386_fbsd"
14419	    ;;
14420	  x86_64-*linux*)
14421	    case `/usr/bin/file conftest.o` in
14422	      *x86-64*)
14423		LD="${LD-ld} -m elf32_x86_64"
14424		;;
14425	      *)
14426		LD="${LD-ld} -m elf_i386"
14427		;;
14428	    esac
14429	    ;;
14430	  powerpc64le-*linux*)
14431	    LD="${LD-ld} -m elf32lppclinux"
14432	    ;;
14433	  powerpc64-*linux*)
14434	    LD="${LD-ld} -m elf32ppclinux"
14435	    ;;
14436	  s390x-*linux*)
14437	    LD="${LD-ld} -m elf_s390"
14438	    ;;
14439	  sparc64-*linux*)
14440	    LD="${LD-ld} -m elf32_sparc"
14441	    ;;
14442	esac
14443	;;
14444      *64-bit*)
14445	case $host in
14446	  x86_64-*kfreebsd*-gnu)
14447	    LD="${LD-ld} -m elf_x86_64_fbsd"
14448	    ;;
14449	  x86_64-*linux*)
14450	    LD="${LD-ld} -m elf_x86_64"
14451	    ;;
14452	  powerpcle-*linux*)
14453	    LD="${LD-ld} -m elf64lppc"
14454	    ;;
14455	  powerpc-*linux*)
14456	    LD="${LD-ld} -m elf64ppc"
14457	    ;;
14458	  s390*-*linux*|s390*-*tpf*)
14459	    LD="${LD-ld} -m elf64_s390"
14460	    ;;
14461	  sparc*-*linux*)
14462	    LD="${LD-ld} -m elf64_sparc"
14463	    ;;
14464	esac
14465	;;
14466    esac
14467  fi
14468  rm -rf conftest*
14469  ;;
14470
14471*-*-sco3.2v5*)
14472  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14473  SAVE_CFLAGS="$CFLAGS"
14474  CFLAGS="$CFLAGS -belf"
14475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14476$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14477if ${lt_cv_cc_needs_belf+:} false; then :
14478  $as_echo_n "(cached) " >&6
14479else
14480  ac_ext=c
14481ac_cpp='$CPP $CPPFLAGS'
14482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14484ac_compiler_gnu=$ac_cv_c_compiler_gnu
14485
14486     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487/* end confdefs.h.  */
14488
14489int
14490main ()
14491{
14492
14493  ;
14494  return 0;
14495}
14496_ACEOF
14497if ac_fn_c_try_link "$LINENO"; then :
14498  lt_cv_cc_needs_belf=yes
14499else
14500  lt_cv_cc_needs_belf=no
14501fi
14502rm -f core conftest.err conftest.$ac_objext \
14503    conftest$ac_exeext conftest.$ac_ext
14504     ac_ext=c
14505ac_cpp='$CPP $CPPFLAGS'
14506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14508ac_compiler_gnu=$ac_cv_c_compiler_gnu
14509
14510fi
14511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14512$as_echo "$lt_cv_cc_needs_belf" >&6; }
14513  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14514    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14515    CFLAGS="$SAVE_CFLAGS"
14516  fi
14517  ;;
14518sparc*-*solaris*)
14519  # Find out which ABI we are using.
14520  echo 'int i;' > conftest.$ac_ext
14521  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14522  (eval $ac_compile) 2>&5
14523  ac_status=$?
14524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14525  test $ac_status = 0; }; then
14526    case `/usr/bin/file conftest.o` in
14527    *64-bit*)
14528      case $lt_cv_prog_gnu_ld in
14529      yes*) LD="${LD-ld} -m elf64_sparc" ;;
14530      *)
14531	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14532	  LD="${LD-ld} -64"
14533	fi
14534	;;
14535      esac
14536      ;;
14537    esac
14538  fi
14539  rm -rf conftest*
14540  ;;
14541esac
14542
14543need_locks="$enable_libtool_lock"
14544
14545
14546  case $host_os in
14547    rhapsody* | darwin*)
14548    if test -n "$ac_tool_prefix"; then
14549  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14550set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14552$as_echo_n "checking for $ac_word... " >&6; }
14553if ${ac_cv_prog_DSYMUTIL+:} false; then :
14554  $as_echo_n "(cached) " >&6
14555else
14556  if test -n "$DSYMUTIL"; then
14557  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14558else
14559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14560for as_dir in $PATH
14561do
14562  IFS=$as_save_IFS
14563  test -z "$as_dir" && as_dir=.
14564    for ac_exec_ext in '' $ac_executable_extensions; do
14565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14566    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14568    break 2
14569  fi
14570done
14571  done
14572IFS=$as_save_IFS
14573
14574fi
14575fi
14576DSYMUTIL=$ac_cv_prog_DSYMUTIL
14577if test -n "$DSYMUTIL"; then
14578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14579$as_echo "$DSYMUTIL" >&6; }
14580else
14581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582$as_echo "no" >&6; }
14583fi
14584
14585
14586fi
14587if test -z "$ac_cv_prog_DSYMUTIL"; then
14588  ac_ct_DSYMUTIL=$DSYMUTIL
14589  # Extract the first word of "dsymutil", so it can be a program name with args.
14590set dummy dsymutil; ac_word=$2
14591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14592$as_echo_n "checking for $ac_word... " >&6; }
14593if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14594  $as_echo_n "(cached) " >&6
14595else
14596  if test -n "$ac_ct_DSYMUTIL"; then
14597  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14598else
14599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14600for as_dir in $PATH
14601do
14602  IFS=$as_save_IFS
14603  test -z "$as_dir" && as_dir=.
14604    for ac_exec_ext in '' $ac_executable_extensions; do
14605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14606    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14608    break 2
14609  fi
14610done
14611  done
14612IFS=$as_save_IFS
14613
14614fi
14615fi
14616ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14617if test -n "$ac_ct_DSYMUTIL"; then
14618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14619$as_echo "$ac_ct_DSYMUTIL" >&6; }
14620else
14621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14622$as_echo "no" >&6; }
14623fi
14624
14625  if test "x$ac_ct_DSYMUTIL" = x; then
14626    DSYMUTIL=":"
14627  else
14628    case $cross_compiling:$ac_tool_warned in
14629yes:)
14630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14632ac_tool_warned=yes ;;
14633esac
14634    DSYMUTIL=$ac_ct_DSYMUTIL
14635  fi
14636else
14637  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14638fi
14639
14640    if test -n "$ac_tool_prefix"; then
14641  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14642set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14644$as_echo_n "checking for $ac_word... " >&6; }
14645if ${ac_cv_prog_NMEDIT+:} false; then :
14646  $as_echo_n "(cached) " >&6
14647else
14648  if test -n "$NMEDIT"; then
14649  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14650else
14651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14652for as_dir in $PATH
14653do
14654  IFS=$as_save_IFS
14655  test -z "$as_dir" && as_dir=.
14656    for ac_exec_ext in '' $ac_executable_extensions; do
14657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14658    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14660    break 2
14661  fi
14662done
14663  done
14664IFS=$as_save_IFS
14665
14666fi
14667fi
14668NMEDIT=$ac_cv_prog_NMEDIT
14669if test -n "$NMEDIT"; then
14670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14671$as_echo "$NMEDIT" >&6; }
14672else
14673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14674$as_echo "no" >&6; }
14675fi
14676
14677
14678fi
14679if test -z "$ac_cv_prog_NMEDIT"; then
14680  ac_ct_NMEDIT=$NMEDIT
14681  # Extract the first word of "nmedit", so it can be a program name with args.
14682set dummy nmedit; ac_word=$2
14683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14684$as_echo_n "checking for $ac_word... " >&6; }
14685if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14686  $as_echo_n "(cached) " >&6
14687else
14688  if test -n "$ac_ct_NMEDIT"; then
14689  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14690else
14691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14692for as_dir in $PATH
14693do
14694  IFS=$as_save_IFS
14695  test -z "$as_dir" && as_dir=.
14696    for ac_exec_ext in '' $ac_executable_extensions; do
14697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14698    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14700    break 2
14701  fi
14702done
14703  done
14704IFS=$as_save_IFS
14705
14706fi
14707fi
14708ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14709if test -n "$ac_ct_NMEDIT"; then
14710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14711$as_echo "$ac_ct_NMEDIT" >&6; }
14712else
14713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14714$as_echo "no" >&6; }
14715fi
14716
14717  if test "x$ac_ct_NMEDIT" = x; then
14718    NMEDIT=":"
14719  else
14720    case $cross_compiling:$ac_tool_warned in
14721yes:)
14722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14724ac_tool_warned=yes ;;
14725esac
14726    NMEDIT=$ac_ct_NMEDIT
14727  fi
14728else
14729  NMEDIT="$ac_cv_prog_NMEDIT"
14730fi
14731
14732    if test -n "$ac_tool_prefix"; then
14733  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14734set dummy ${ac_tool_prefix}lipo; ac_word=$2
14735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14736$as_echo_n "checking for $ac_word... " >&6; }
14737if ${ac_cv_prog_LIPO+:} false; then :
14738  $as_echo_n "(cached) " >&6
14739else
14740  if test -n "$LIPO"; then
14741  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14742else
14743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14744for as_dir in $PATH
14745do
14746  IFS=$as_save_IFS
14747  test -z "$as_dir" && as_dir=.
14748    for ac_exec_ext in '' $ac_executable_extensions; do
14749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14750    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14752    break 2
14753  fi
14754done
14755  done
14756IFS=$as_save_IFS
14757
14758fi
14759fi
14760LIPO=$ac_cv_prog_LIPO
14761if test -n "$LIPO"; then
14762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14763$as_echo "$LIPO" >&6; }
14764else
14765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14766$as_echo "no" >&6; }
14767fi
14768
14769
14770fi
14771if test -z "$ac_cv_prog_LIPO"; then
14772  ac_ct_LIPO=$LIPO
14773  # Extract the first word of "lipo", so it can be a program name with args.
14774set dummy lipo; ac_word=$2
14775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14776$as_echo_n "checking for $ac_word... " >&6; }
14777if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14778  $as_echo_n "(cached) " >&6
14779else
14780  if test -n "$ac_ct_LIPO"; then
14781  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14782else
14783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14784for as_dir in $PATH
14785do
14786  IFS=$as_save_IFS
14787  test -z "$as_dir" && as_dir=.
14788    for ac_exec_ext in '' $ac_executable_extensions; do
14789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14790    ac_cv_prog_ac_ct_LIPO="lipo"
14791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14792    break 2
14793  fi
14794done
14795  done
14796IFS=$as_save_IFS
14797
14798fi
14799fi
14800ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14801if test -n "$ac_ct_LIPO"; then
14802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14803$as_echo "$ac_ct_LIPO" >&6; }
14804else
14805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14806$as_echo "no" >&6; }
14807fi
14808
14809  if test "x$ac_ct_LIPO" = x; then
14810    LIPO=":"
14811  else
14812    case $cross_compiling:$ac_tool_warned in
14813yes:)
14814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14816ac_tool_warned=yes ;;
14817esac
14818    LIPO=$ac_ct_LIPO
14819  fi
14820else
14821  LIPO="$ac_cv_prog_LIPO"
14822fi
14823
14824    if test -n "$ac_tool_prefix"; then
14825  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14826set dummy ${ac_tool_prefix}otool; ac_word=$2
14827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14828$as_echo_n "checking for $ac_word... " >&6; }
14829if ${ac_cv_prog_OTOOL+:} false; then :
14830  $as_echo_n "(cached) " >&6
14831else
14832  if test -n "$OTOOL"; then
14833  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14834else
14835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14836for as_dir in $PATH
14837do
14838  IFS=$as_save_IFS
14839  test -z "$as_dir" && as_dir=.
14840    for ac_exec_ext in '' $ac_executable_extensions; do
14841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14842    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14844    break 2
14845  fi
14846done
14847  done
14848IFS=$as_save_IFS
14849
14850fi
14851fi
14852OTOOL=$ac_cv_prog_OTOOL
14853if test -n "$OTOOL"; then
14854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14855$as_echo "$OTOOL" >&6; }
14856else
14857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14858$as_echo "no" >&6; }
14859fi
14860
14861
14862fi
14863if test -z "$ac_cv_prog_OTOOL"; then
14864  ac_ct_OTOOL=$OTOOL
14865  # Extract the first word of "otool", so it can be a program name with args.
14866set dummy otool; ac_word=$2
14867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14868$as_echo_n "checking for $ac_word... " >&6; }
14869if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14870  $as_echo_n "(cached) " >&6
14871else
14872  if test -n "$ac_ct_OTOOL"; then
14873  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14874else
14875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14876for as_dir in $PATH
14877do
14878  IFS=$as_save_IFS
14879  test -z "$as_dir" && as_dir=.
14880    for ac_exec_ext in '' $ac_executable_extensions; do
14881  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14882    ac_cv_prog_ac_ct_OTOOL="otool"
14883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14884    break 2
14885  fi
14886done
14887  done
14888IFS=$as_save_IFS
14889
14890fi
14891fi
14892ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14893if test -n "$ac_ct_OTOOL"; then
14894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14895$as_echo "$ac_ct_OTOOL" >&6; }
14896else
14897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14898$as_echo "no" >&6; }
14899fi
14900
14901  if test "x$ac_ct_OTOOL" = x; then
14902    OTOOL=":"
14903  else
14904    case $cross_compiling:$ac_tool_warned in
14905yes:)
14906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14908ac_tool_warned=yes ;;
14909esac
14910    OTOOL=$ac_ct_OTOOL
14911  fi
14912else
14913  OTOOL="$ac_cv_prog_OTOOL"
14914fi
14915
14916    if test -n "$ac_tool_prefix"; then
14917  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14918set dummy ${ac_tool_prefix}otool64; ac_word=$2
14919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14920$as_echo_n "checking for $ac_word... " >&6; }
14921if ${ac_cv_prog_OTOOL64+:} false; then :
14922  $as_echo_n "(cached) " >&6
14923else
14924  if test -n "$OTOOL64"; then
14925  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14926else
14927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14928for as_dir in $PATH
14929do
14930  IFS=$as_save_IFS
14931  test -z "$as_dir" && as_dir=.
14932    for ac_exec_ext in '' $ac_executable_extensions; do
14933  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14934    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14936    break 2
14937  fi
14938done
14939  done
14940IFS=$as_save_IFS
14941
14942fi
14943fi
14944OTOOL64=$ac_cv_prog_OTOOL64
14945if test -n "$OTOOL64"; then
14946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14947$as_echo "$OTOOL64" >&6; }
14948else
14949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14950$as_echo "no" >&6; }
14951fi
14952
14953
14954fi
14955if test -z "$ac_cv_prog_OTOOL64"; then
14956  ac_ct_OTOOL64=$OTOOL64
14957  # Extract the first word of "otool64", so it can be a program name with args.
14958set dummy otool64; ac_word=$2
14959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14960$as_echo_n "checking for $ac_word... " >&6; }
14961if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14962  $as_echo_n "(cached) " >&6
14963else
14964  if test -n "$ac_ct_OTOOL64"; then
14965  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14966else
14967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14968for as_dir in $PATH
14969do
14970  IFS=$as_save_IFS
14971  test -z "$as_dir" && as_dir=.
14972    for ac_exec_ext in '' $ac_executable_extensions; do
14973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14974    ac_cv_prog_ac_ct_OTOOL64="otool64"
14975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14976    break 2
14977  fi
14978done
14979  done
14980IFS=$as_save_IFS
14981
14982fi
14983fi
14984ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14985if test -n "$ac_ct_OTOOL64"; then
14986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14987$as_echo "$ac_ct_OTOOL64" >&6; }
14988else
14989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990$as_echo "no" >&6; }
14991fi
14992
14993  if test "x$ac_ct_OTOOL64" = x; then
14994    OTOOL64=":"
14995  else
14996    case $cross_compiling:$ac_tool_warned in
14997yes:)
14998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15000ac_tool_warned=yes ;;
15001esac
15002    OTOOL64=$ac_ct_OTOOL64
15003  fi
15004else
15005  OTOOL64="$ac_cv_prog_OTOOL64"
15006fi
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15035$as_echo_n "checking for -single_module linker flag... " >&6; }
15036if ${lt_cv_apple_cc_single_mod+:} false; then :
15037  $as_echo_n "(cached) " >&6
15038else
15039  lt_cv_apple_cc_single_mod=no
15040      if test -z "${LT_MULTI_MODULE}"; then
15041	# By default we will add the -single_module flag. You can override
15042	# by either setting the environment variable LT_MULTI_MODULE
15043	# non-empty at configure time, or by adding -multi_module to the
15044	# link flags.
15045	rm -rf libconftest.dylib*
15046	echo "int foo(void){return 1;}" > conftest.c
15047	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15048-dynamiclib -Wl,-single_module conftest.c" >&5
15049	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15050	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15051        _lt_result=$?
15052	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15053	  lt_cv_apple_cc_single_mod=yes
15054	else
15055	  cat conftest.err >&5
15056	fi
15057	rm -rf libconftest.dylib*
15058	rm -f conftest.*
15059      fi
15060fi
15061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15062$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15063    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15064$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15065if ${lt_cv_ld_exported_symbols_list+:} false; then :
15066  $as_echo_n "(cached) " >&6
15067else
15068  lt_cv_ld_exported_symbols_list=no
15069      save_LDFLAGS=$LDFLAGS
15070      echo "_main" > conftest.sym
15071      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15072      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073/* end confdefs.h.  */
15074
15075int
15076main ()
15077{
15078
15079  ;
15080  return 0;
15081}
15082_ACEOF
15083if ac_fn_c_try_link "$LINENO"; then :
15084  lt_cv_ld_exported_symbols_list=yes
15085else
15086  lt_cv_ld_exported_symbols_list=no
15087fi
15088rm -f core conftest.err conftest.$ac_objext \
15089    conftest$ac_exeext conftest.$ac_ext
15090	LDFLAGS="$save_LDFLAGS"
15091
15092fi
15093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15094$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15095    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15096$as_echo_n "checking for -force_load linker flag... " >&6; }
15097if ${lt_cv_ld_force_load+:} false; then :
15098  $as_echo_n "(cached) " >&6
15099else
15100  lt_cv_ld_force_load=no
15101      cat > conftest.c << _LT_EOF
15102int forced_loaded() { return 2;}
15103_LT_EOF
15104      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15105      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15106      echo "$AR cru libconftest.a conftest.o" >&5
15107      $AR cru libconftest.a conftest.o 2>&5
15108      cat > conftest.c << _LT_EOF
15109int main() { return 0;}
15110_LT_EOF
15111      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15112      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15113      _lt_result=$?
15114      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15115	lt_cv_ld_force_load=yes
15116      else
15117	cat conftest.err >&5
15118      fi
15119        rm -f conftest.err libconftest.a conftest conftest.c
15120        rm -rf conftest.dSYM
15121
15122fi
15123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15124$as_echo "$lt_cv_ld_force_load" >&6; }
15125    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
15126    # build without first building modern cctools / linker.
15127    case $host_cpu-$host_os in
15128    *-rhapsody* | *-darwin1.[012])
15129      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15130    *-darwin1.*)
15131      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15132    *-darwin*)
15133      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
15134      # deployment target is forced to an earlier version.
15135      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
15136	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
15137	  ;;
15138	10.[012][,.]*)
15139	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15140	  ;;
15141	*)
15142	  ;;
15143     esac
15144    ;;
15145  esac
15146    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15147      _lt_dar_single_mod='$single_module'
15148    fi
15149    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15150      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15151    else
15152      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15153    fi
15154    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15155      _lt_dsymutil='~$DSYMUTIL $lib || :'
15156    else
15157      _lt_dsymutil=
15158    fi
15159    ;;
15160  esac
15161
15162
15163for ac_header in dlfcn.h
15164do :
15165  ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15166if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15167  cat >>confdefs.h <<_ACEOF
15168#define HAVE_DLFCN_H 1
15169_ACEOF
15170
15171fi
15172done
15173
15174
15175
15176
15177
15178# Set options
15179
15180
15181
15182        enable_dlopen=no
15183
15184
15185  enable_win32_dll=no
15186
15187
15188            # Check whether --enable-shared was given.
15189if test "${enable_shared+set}" = set; then :
15190  enableval=$enable_shared; p=${PACKAGE-default}
15191    case $enableval in
15192    yes) enable_shared=yes ;;
15193    no) enable_shared=no ;;
15194    *)
15195      enable_shared=no
15196      # Look at the argument we got.  We use all the common list separators.
15197      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15198      for pkg in $enableval; do
15199	IFS="$lt_save_ifs"
15200	if test "X$pkg" = "X$p"; then
15201	  enable_shared=yes
15202	fi
15203      done
15204      IFS="$lt_save_ifs"
15205      ;;
15206    esac
15207else
15208  enable_shared=yes
15209fi
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219  # Check whether --enable-static was given.
15220if test "${enable_static+set}" = set; then :
15221  enableval=$enable_static; p=${PACKAGE-default}
15222    case $enableval in
15223    yes) enable_static=yes ;;
15224    no) enable_static=no ;;
15225    *)
15226     enable_static=no
15227      # Look at the argument we got.  We use all the common list separators.
15228      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15229      for pkg in $enableval; do
15230	IFS="$lt_save_ifs"
15231	if test "X$pkg" = "X$p"; then
15232	  enable_static=yes
15233	fi
15234      done
15235      IFS="$lt_save_ifs"
15236      ;;
15237    esac
15238else
15239  enable_static=yes
15240fi
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251# Check whether --with-pic was given.
15252if test "${with_pic+set}" = set; then :
15253  withval=$with_pic; pic_mode="$withval"
15254else
15255  pic_mode=default
15256fi
15257
15258
15259test -z "$pic_mode" && pic_mode=default
15260
15261
15262
15263
15264
15265
15266
15267  # Check whether --enable-fast-install was given.
15268if test "${enable_fast_install+set}" = set; then :
15269  enableval=$enable_fast_install; p=${PACKAGE-default}
15270    case $enableval in
15271    yes) enable_fast_install=yes ;;
15272    no) enable_fast_install=no ;;
15273    *)
15274      enable_fast_install=no
15275      # Look at the argument we got.  We use all the common list separators.
15276      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15277      for pkg in $enableval; do
15278	IFS="$lt_save_ifs"
15279	if test "X$pkg" = "X$p"; then
15280	  enable_fast_install=yes
15281	fi
15282      done
15283      IFS="$lt_save_ifs"
15284      ;;
15285    esac
15286else
15287  enable_fast_install=yes
15288fi
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300# This can be used to rebuild libtool when needed
15301LIBTOOL_DEPS="$ltmain"
15302
15303# Always use our own libtool.
15304LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331test -z "$LN_S" && LN_S="ln -s"
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346if test -n "${ZSH_VERSION+set}" ; then
15347   setopt NO_GLOB_SUBST
15348fi
15349
15350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15351$as_echo_n "checking for objdir... " >&6; }
15352if ${lt_cv_objdir+:} false; then :
15353  $as_echo_n "(cached) " >&6
15354else
15355  rm -f .libs 2>/dev/null
15356mkdir .libs 2>/dev/null
15357if test -d .libs; then
15358  lt_cv_objdir=.libs
15359else
15360  # MS-DOS does not allow filenames that begin with a dot.
15361  lt_cv_objdir=_libs
15362fi
15363rmdir .libs 2>/dev/null
15364fi
15365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15366$as_echo "$lt_cv_objdir" >&6; }
15367objdir=$lt_cv_objdir
15368
15369
15370
15371
15372
15373cat >>confdefs.h <<_ACEOF
15374#define LT_OBJDIR "$lt_cv_objdir/"
15375_ACEOF
15376
15377
15378
15379
15380case $host_os in
15381aix3*)
15382  # AIX sometimes has problems with the GCC collect2 program.  For some
15383  # reason, if we set the COLLECT_NAMES environment variable, the problems
15384  # vanish in a puff of smoke.
15385  if test "X${COLLECT_NAMES+set}" != Xset; then
15386    COLLECT_NAMES=
15387    export COLLECT_NAMES
15388  fi
15389  ;;
15390esac
15391
15392# Global variables:
15393ofile=libtool
15394can_build_shared=yes
15395
15396# All known linkers require a `.a' archive for static linking (except MSVC,
15397# which needs '.lib').
15398libext=a
15399
15400with_gnu_ld="$lt_cv_prog_gnu_ld"
15401
15402old_CC="$CC"
15403old_CFLAGS="$CFLAGS"
15404
15405# Set sane defaults for various variables
15406test -z "$CC" && CC=cc
15407test -z "$LTCC" && LTCC=$CC
15408test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15409test -z "$LD" && LD=ld
15410test -z "$ac_objext" && ac_objext=o
15411
15412for cc_temp in $compiler""; do
15413  case $cc_temp in
15414    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15415    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15416    \-*) ;;
15417    *) break;;
15418  esac
15419done
15420cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15421
15422
15423# Only perform the check for file, if the check method requires it
15424test -z "$MAGIC_CMD" && MAGIC_CMD=file
15425case $deplibs_check_method in
15426file_magic*)
15427  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15428    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15429$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15430if ${lt_cv_path_MAGIC_CMD+:} false; then :
15431  $as_echo_n "(cached) " >&6
15432else
15433  case $MAGIC_CMD in
15434[\\/*] |  ?:[\\/]*)
15435  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15436  ;;
15437*)
15438  lt_save_MAGIC_CMD="$MAGIC_CMD"
15439  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15440  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15441  for ac_dir in $ac_dummy; do
15442    IFS="$lt_save_ifs"
15443    test -z "$ac_dir" && ac_dir=.
15444    if test -f $ac_dir/${ac_tool_prefix}file; then
15445      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15446      if test -n "$file_magic_test_file"; then
15447	case $deplibs_check_method in
15448	"file_magic "*)
15449	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15450	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15451	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15452	    $EGREP "$file_magic_regex" > /dev/null; then
15453	    :
15454	  else
15455	    cat <<_LT_EOF 1>&2
15456
15457*** Warning: the command libtool uses to detect shared libraries,
15458*** $file_magic_cmd, produces output that libtool cannot recognize.
15459*** The result is that libtool may fail to recognize shared libraries
15460*** as such.  This will affect the creation of libtool libraries that
15461*** depend on shared libraries, but programs linked with such libtool
15462*** libraries will work regardless of this problem.  Nevertheless, you
15463*** may want to report the problem to your system manager and/or to
15464*** bug-libtool@gnu.org
15465
15466_LT_EOF
15467	  fi ;;
15468	esac
15469      fi
15470      break
15471    fi
15472  done
15473  IFS="$lt_save_ifs"
15474  MAGIC_CMD="$lt_save_MAGIC_CMD"
15475  ;;
15476esac
15477fi
15478
15479MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15480if test -n "$MAGIC_CMD"; then
15481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15482$as_echo "$MAGIC_CMD" >&6; }
15483else
15484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15485$as_echo "no" >&6; }
15486fi
15487
15488
15489
15490
15491
15492if test -z "$lt_cv_path_MAGIC_CMD"; then
15493  if test -n "$ac_tool_prefix"; then
15494    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15495$as_echo_n "checking for file... " >&6; }
15496if ${lt_cv_path_MAGIC_CMD+:} false; then :
15497  $as_echo_n "(cached) " >&6
15498else
15499  case $MAGIC_CMD in
15500[\\/*] |  ?:[\\/]*)
15501  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15502  ;;
15503*)
15504  lt_save_MAGIC_CMD="$MAGIC_CMD"
15505  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15506  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15507  for ac_dir in $ac_dummy; do
15508    IFS="$lt_save_ifs"
15509    test -z "$ac_dir" && ac_dir=.
15510    if test -f $ac_dir/file; then
15511      lt_cv_path_MAGIC_CMD="$ac_dir/file"
15512      if test -n "$file_magic_test_file"; then
15513	case $deplibs_check_method in
15514	"file_magic "*)
15515	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15516	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15517	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15518	    $EGREP "$file_magic_regex" > /dev/null; then
15519	    :
15520	  else
15521	    cat <<_LT_EOF 1>&2
15522
15523*** Warning: the command libtool uses to detect shared libraries,
15524*** $file_magic_cmd, produces output that libtool cannot recognize.
15525*** The result is that libtool may fail to recognize shared libraries
15526*** as such.  This will affect the creation of libtool libraries that
15527*** depend on shared libraries, but programs linked with such libtool
15528*** libraries will work regardless of this problem.  Nevertheless, you
15529*** may want to report the problem to your system manager and/or to
15530*** bug-libtool@gnu.org
15531
15532_LT_EOF
15533	  fi ;;
15534	esac
15535      fi
15536      break
15537    fi
15538  done
15539  IFS="$lt_save_ifs"
15540  MAGIC_CMD="$lt_save_MAGIC_CMD"
15541  ;;
15542esac
15543fi
15544
15545MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15546if test -n "$MAGIC_CMD"; then
15547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15548$as_echo "$MAGIC_CMD" >&6; }
15549else
15550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15551$as_echo "no" >&6; }
15552fi
15553
15554
15555  else
15556    MAGIC_CMD=:
15557  fi
15558fi
15559
15560  fi
15561  ;;
15562esac
15563
15564# Use C for the default configuration in the libtool script
15565
15566lt_save_CC="$CC"
15567ac_ext=c
15568ac_cpp='$CPP $CPPFLAGS'
15569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15571ac_compiler_gnu=$ac_cv_c_compiler_gnu
15572
15573
15574# Source file extension for C test sources.
15575ac_ext=c
15576
15577# Object file extension for compiled C test sources.
15578objext=o
15579objext=$objext
15580
15581# Code to be used in simple compile tests
15582lt_simple_compile_test_code="int some_variable = 0;"
15583
15584# Code to be used in simple link tests
15585lt_simple_link_test_code='int main(){return(0);}'
15586
15587
15588
15589
15590
15591
15592
15593# If no C compiler was specified, use CC.
15594LTCC=${LTCC-"$CC"}
15595
15596# If no C compiler flags were specified, use CFLAGS.
15597LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15598
15599# Allow CC to be a program name with arguments.
15600compiler=$CC
15601
15602# Save the default compiler, since it gets overwritten when the other
15603# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15604compiler_DEFAULT=$CC
15605
15606# save warnings/boilerplate of simple test code
15607ac_outfile=conftest.$ac_objext
15608echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15609eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15610_lt_compiler_boilerplate=`cat conftest.err`
15611$RM conftest*
15612
15613ac_outfile=conftest.$ac_objext
15614echo "$lt_simple_link_test_code" >conftest.$ac_ext
15615eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15616_lt_linker_boilerplate=`cat conftest.err`
15617$RM -r conftest*
15618
15619
15620## CAVEAT EMPTOR:
15621## There is no encapsulation within the following macros, do not change
15622## the running order or otherwise move them around unless you know exactly
15623## what you are doing...
15624if test -n "$compiler"; then
15625
15626lt_prog_compiler_no_builtin_flag=
15627
15628if test "$GCC" = yes; then
15629  case $cc_basename in
15630  nvcc*)
15631    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15632  *)
15633    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15634  esac
15635
15636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15637$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15638if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15639  $as_echo_n "(cached) " >&6
15640else
15641  lt_cv_prog_compiler_rtti_exceptions=no
15642   ac_outfile=conftest.$ac_objext
15643   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15644   lt_compiler_flag="-fno-rtti -fno-exceptions"
15645   # Insert the option either (1) after the last *FLAGS variable, or
15646   # (2) before a word containing "conftest.", or (3) at the end.
15647   # Note that $ac_compile itself does not contain backslashes and begins
15648   # with a dollar sign (not a hyphen), so the echo should work correctly.
15649   # The option is referenced via a variable to avoid confusing sed.
15650   lt_compile=`echo "$ac_compile" | $SED \
15651   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15652   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15653   -e 's:$: $lt_compiler_flag:'`
15654   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15655   (eval "$lt_compile" 2>conftest.err)
15656   ac_status=$?
15657   cat conftest.err >&5
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   if (exit $ac_status) && test -s "$ac_outfile"; then
15660     # The compiler can only warn and ignore the option if not recognized
15661     # So say no if there are warnings other than the usual output.
15662     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15663     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15664     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15665       lt_cv_prog_compiler_rtti_exceptions=yes
15666     fi
15667   fi
15668   $RM conftest*
15669
15670fi
15671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15672$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15673
15674if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15675    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15676else
15677    :
15678fi
15679
15680fi
15681
15682
15683
15684
15685
15686
15687  lt_prog_compiler_wl=
15688lt_prog_compiler_pic=
15689lt_prog_compiler_static=
15690
15691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15692$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15693
15694  if test "$GCC" = yes; then
15695    lt_prog_compiler_wl='-Wl,'
15696    lt_prog_compiler_static='-static'
15697
15698    case $host_os in
15699      aix*)
15700      # All AIX code is PIC.
15701      if test "$host_cpu" = ia64; then
15702	# AIX 5 now supports IA64 processor
15703	lt_prog_compiler_static='-Bstatic'
15704      fi
15705      lt_prog_compiler_pic='-fPIC'
15706      ;;
15707
15708    amigaos*)
15709      case $host_cpu in
15710      powerpc)
15711            # see comment about AmigaOS4 .so support
15712            lt_prog_compiler_pic='-fPIC'
15713        ;;
15714      m68k)
15715            # FIXME: we need at least 68020 code to build shared libraries, but
15716            # adding the `-m68020' flag to GCC prevents building anything better,
15717            # like `-m68040'.
15718            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15719        ;;
15720      esac
15721      ;;
15722
15723    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15724      # PIC is the default for these OSes.
15725      ;;
15726
15727    mingw* | cygwin* | pw32* | os2* | cegcc*)
15728      # This hack is so that the source file can tell whether it is being
15729      # built for inclusion in a dll (and should export symbols for example).
15730      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15731      # (--disable-auto-import) libraries
15732      lt_prog_compiler_pic='-DDLL_EXPORT'
15733      ;;
15734
15735    darwin* | rhapsody*)
15736      # PIC is the default on this platform
15737      # Common symbols not allowed in MH_DYLIB files
15738      lt_prog_compiler_pic='-fno-common'
15739      ;;
15740
15741    haiku*)
15742      # PIC is the default for Haiku.
15743      # The "-static" flag exists, but is broken.
15744      lt_prog_compiler_static=
15745      ;;
15746
15747    hpux*)
15748      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15749      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15750      # sets the default TLS model and affects inlining.
15751      case $host_cpu in
15752      hppa*64*)
15753	# +Z the default
15754	;;
15755      *)
15756	lt_prog_compiler_pic='-fPIC'
15757	;;
15758      esac
15759      ;;
15760
15761    interix[3-9]*)
15762      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15763      # Instead, we relocate shared libraries at runtime.
15764      ;;
15765
15766    msdosdjgpp*)
15767      # Just because we use GCC doesn't mean we suddenly get shared libraries
15768      # on systems that don't support them.
15769      lt_prog_compiler_can_build_shared=no
15770      enable_shared=no
15771      ;;
15772
15773    *nto* | *qnx*)
15774      # QNX uses GNU C++, but need to define -shared option too, otherwise
15775      # it will coredump.
15776      lt_prog_compiler_pic='-fPIC -shared'
15777      ;;
15778
15779    sysv4*MP*)
15780      if test -d /usr/nec; then
15781	lt_prog_compiler_pic=-Kconform_pic
15782      fi
15783      ;;
15784
15785    *)
15786      lt_prog_compiler_pic='-fPIC'
15787      ;;
15788    esac
15789
15790    case $cc_basename in
15791    nvcc*) # Cuda Compiler Driver 2.2
15792      lt_prog_compiler_wl='-Xlinker '
15793      lt_prog_compiler_pic='-Xcompiler -fPIC'
15794      ;;
15795    esac
15796  else
15797    # PORTME Check for flag to pass linker flags through the system compiler.
15798    case $host_os in
15799    aix*)
15800      lt_prog_compiler_wl='-Wl,'
15801      if test "$host_cpu" = ia64; then
15802	# AIX 5 now supports IA64 processor
15803	lt_prog_compiler_static='-Bstatic'
15804      else
15805	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15806      fi
15807      ;;
15808
15809    mingw* | cygwin* | pw32* | os2* | cegcc*)
15810      # This hack is so that the source file can tell whether it is being
15811      # built for inclusion in a dll (and should export symbols for example).
15812      lt_prog_compiler_pic='-DDLL_EXPORT'
15813      ;;
15814
15815    hpux9* | hpux10* | hpux11*)
15816      lt_prog_compiler_wl='-Wl,'
15817      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15818      # not for PA HP-UX.
15819      case $host_cpu in
15820      hppa*64*|ia64*)
15821	# +Z the default
15822	;;
15823      *)
15824	lt_prog_compiler_pic='+Z'
15825	;;
15826      esac
15827      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15828      lt_prog_compiler_static='${wl}-a ${wl}archive'
15829      ;;
15830
15831    irix5* | irix6* | nonstopux*)
15832      lt_prog_compiler_wl='-Wl,'
15833      # PIC (with -KPIC) is the default.
15834      lt_prog_compiler_static='-non_shared'
15835      ;;
15836
15837    linux* | k*bsd*-gnu | kopensolaris*-gnu)
15838      case $cc_basename in
15839      # old Intel for x86_64 which still supported -KPIC.
15840      ecc*)
15841	lt_prog_compiler_wl='-Wl,'
15842	lt_prog_compiler_pic='-KPIC'
15843	lt_prog_compiler_static='-static'
15844        ;;
15845      # icc used to be incompatible with GCC.
15846      # ICC 10 doesn't accept -KPIC any more.
15847      icc* | ifort*)
15848	lt_prog_compiler_wl='-Wl,'
15849	lt_prog_compiler_pic='-fPIC'
15850	lt_prog_compiler_static='-static'
15851        ;;
15852      # Lahey Fortran 8.1.
15853      lf95*)
15854	lt_prog_compiler_wl='-Wl,'
15855	lt_prog_compiler_pic='--shared'
15856	lt_prog_compiler_static='--static'
15857	;;
15858      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15859        # Portland Group compilers (*not* the Pentium gcc compiler,
15860	# which looks to be a dead project)
15861	lt_prog_compiler_wl='-Wl,'
15862	lt_prog_compiler_pic='-fpic'
15863	lt_prog_compiler_static='-Bstatic'
15864        ;;
15865      ccc*)
15866        lt_prog_compiler_wl='-Wl,'
15867        # All Alpha code is PIC.
15868        lt_prog_compiler_static='-non_shared'
15869        ;;
15870      xl* | bgxl* | bgf* | mpixl*)
15871	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15872	lt_prog_compiler_wl='-Wl,'
15873	lt_prog_compiler_pic='-qpic'
15874	lt_prog_compiler_static='-qstaticlink'
15875	;;
15876      *)
15877	case `$CC -V 2>&1 | sed 5q` in
15878	*Sun\ F* | *Sun*Fortran*)
15879	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15880	  lt_prog_compiler_pic='-KPIC'
15881	  lt_prog_compiler_static='-Bstatic'
15882	  lt_prog_compiler_wl=''
15883	  ;;
15884	*Sun\ C*)
15885	  # Sun C 5.9
15886	  lt_prog_compiler_pic='-KPIC'
15887	  lt_prog_compiler_static='-Bstatic'
15888	  lt_prog_compiler_wl='-Wl,'
15889	  ;;
15890	esac
15891	;;
15892      esac
15893      ;;
15894
15895    newsos6)
15896      lt_prog_compiler_pic='-KPIC'
15897      lt_prog_compiler_static='-Bstatic'
15898      ;;
15899
15900    *nto* | *qnx*)
15901      # QNX uses GNU C++, but need to define -shared option too, otherwise
15902      # it will coredump.
15903      lt_prog_compiler_pic='-fPIC -shared'
15904      ;;
15905
15906    osf3* | osf4* | osf5*)
15907      lt_prog_compiler_wl='-Wl,'
15908      # All OSF/1 code is PIC.
15909      lt_prog_compiler_static='-non_shared'
15910      ;;
15911
15912    rdos*)
15913      lt_prog_compiler_static='-non_shared'
15914      ;;
15915
15916    solaris*)
15917      lt_prog_compiler_pic='-KPIC'
15918      lt_prog_compiler_static='-Bstatic'
15919      case $cc_basename in
15920      f77* | f90* | f95*)
15921	lt_prog_compiler_wl='-Qoption ld ';;
15922      *)
15923	lt_prog_compiler_wl='-Wl,';;
15924      esac
15925      ;;
15926
15927    sunos4*)
15928      lt_prog_compiler_wl='-Qoption ld '
15929      lt_prog_compiler_pic='-PIC'
15930      lt_prog_compiler_static='-Bstatic'
15931      ;;
15932
15933    sysv4 | sysv4.2uw2* | sysv4.3*)
15934      lt_prog_compiler_wl='-Wl,'
15935      lt_prog_compiler_pic='-KPIC'
15936      lt_prog_compiler_static='-Bstatic'
15937      ;;
15938
15939    sysv4*MP*)
15940      if test -d /usr/nec ;then
15941	lt_prog_compiler_pic='-Kconform_pic'
15942	lt_prog_compiler_static='-Bstatic'
15943      fi
15944      ;;
15945
15946    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15947      lt_prog_compiler_wl='-Wl,'
15948      lt_prog_compiler_pic='-KPIC'
15949      lt_prog_compiler_static='-Bstatic'
15950      ;;
15951
15952    unicos*)
15953      lt_prog_compiler_wl='-Wl,'
15954      lt_prog_compiler_can_build_shared=no
15955      ;;
15956
15957    uts4*)
15958      lt_prog_compiler_pic='-pic'
15959      lt_prog_compiler_static='-Bstatic'
15960      ;;
15961
15962    *)
15963      lt_prog_compiler_can_build_shared=no
15964      ;;
15965    esac
15966  fi
15967
15968case $host_os in
15969  # For platforms which do not support PIC, -DPIC is meaningless:
15970  *djgpp*)
15971    lt_prog_compiler_pic=
15972    ;;
15973  *)
15974    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15975    ;;
15976esac
15977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15978$as_echo "$lt_prog_compiler_pic" >&6; }
15979
15980
15981
15982
15983
15984
15985#
15986# Check to make sure the PIC flag actually works.
15987#
15988if test -n "$lt_prog_compiler_pic"; then
15989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15990$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15991if ${lt_cv_prog_compiler_pic_works+:} false; then :
15992  $as_echo_n "(cached) " >&6
15993else
15994  lt_cv_prog_compiler_pic_works=no
15995   ac_outfile=conftest.$ac_objext
15996   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15997   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15998   # Insert the option either (1) after the last *FLAGS variable, or
15999   # (2) before a word containing "conftest.", or (3) at the end.
16000   # Note that $ac_compile itself does not contain backslashes and begins
16001   # with a dollar sign (not a hyphen), so the echo should work correctly.
16002   # The option is referenced via a variable to avoid confusing sed.
16003   lt_compile=`echo "$ac_compile" | $SED \
16004   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16005   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16006   -e 's:$: $lt_compiler_flag:'`
16007   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16008   (eval "$lt_compile" 2>conftest.err)
16009   ac_status=$?
16010   cat conftest.err >&5
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   if (exit $ac_status) && test -s "$ac_outfile"; then
16013     # The compiler can only warn and ignore the option if not recognized
16014     # So say no if there are warnings other than the usual output.
16015     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16016     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16017     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16018       lt_cv_prog_compiler_pic_works=yes
16019     fi
16020   fi
16021   $RM conftest*
16022
16023fi
16024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16025$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16026
16027if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16028    case $lt_prog_compiler_pic in
16029     "" | " "*) ;;
16030     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16031     esac
16032else
16033    lt_prog_compiler_pic=
16034     lt_prog_compiler_can_build_shared=no
16035fi
16036
16037fi
16038
16039
16040
16041
16042
16043
16044#
16045# Check to make sure the static flag actually works.
16046#
16047wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16049$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16050if ${lt_cv_prog_compiler_static_works+:} false; then :
16051  $as_echo_n "(cached) " >&6
16052else
16053  lt_cv_prog_compiler_static_works=no
16054   save_LDFLAGS="$LDFLAGS"
16055   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16056   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16057   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16058     # The linker can only warn and ignore the option if not recognized
16059     # So say no if there are warnings
16060     if test -s conftest.err; then
16061       # Append any errors to the config.log.
16062       cat conftest.err 1>&5
16063       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16064       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16065       if diff conftest.exp conftest.er2 >/dev/null; then
16066         lt_cv_prog_compiler_static_works=yes
16067       fi
16068     else
16069       lt_cv_prog_compiler_static_works=yes
16070     fi
16071   fi
16072   $RM -r conftest*
16073   LDFLAGS="$save_LDFLAGS"
16074
16075fi
16076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16077$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16078
16079if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16080    :
16081else
16082    lt_prog_compiler_static=
16083fi
16084
16085
16086
16087
16088
16089
16090
16091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16092$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16093if ${lt_cv_prog_compiler_c_o+:} false; then :
16094  $as_echo_n "(cached) " >&6
16095else
16096  lt_cv_prog_compiler_c_o=no
16097   $RM -r conftest 2>/dev/null
16098   mkdir conftest
16099   cd conftest
16100   mkdir out
16101   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16102
16103   lt_compiler_flag="-o out/conftest2.$ac_objext"
16104   # Insert the option either (1) after the last *FLAGS variable, or
16105   # (2) before a word containing "conftest.", or (3) at the end.
16106   # Note that $ac_compile itself does not contain backslashes and begins
16107   # with a dollar sign (not a hyphen), so the echo should work correctly.
16108   lt_compile=`echo "$ac_compile" | $SED \
16109   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16110   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16111   -e 's:$: $lt_compiler_flag:'`
16112   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16113   (eval "$lt_compile" 2>out/conftest.err)
16114   ac_status=$?
16115   cat out/conftest.err >&5
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16118   then
16119     # The compiler can only warn and ignore the option if not recognized
16120     # So say no if there are warnings
16121     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16122     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16123     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16124       lt_cv_prog_compiler_c_o=yes
16125     fi
16126   fi
16127   chmod u+w . 2>&5
16128   $RM conftest*
16129   # SGI C++ compiler will create directory out/ii_files/ for
16130   # template instantiation
16131   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16132   $RM out/* && rmdir out
16133   cd ..
16134   $RM -r conftest
16135   $RM conftest*
16136
16137fi
16138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16139$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16140
16141
16142
16143
16144
16145
16146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16147$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16148if ${lt_cv_prog_compiler_c_o+:} false; then :
16149  $as_echo_n "(cached) " >&6
16150else
16151  lt_cv_prog_compiler_c_o=no
16152   $RM -r conftest 2>/dev/null
16153   mkdir conftest
16154   cd conftest
16155   mkdir out
16156   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16157
16158   lt_compiler_flag="-o out/conftest2.$ac_objext"
16159   # Insert the option either (1) after the last *FLAGS variable, or
16160   # (2) before a word containing "conftest.", or (3) at the end.
16161   # Note that $ac_compile itself does not contain backslashes and begins
16162   # with a dollar sign (not a hyphen), so the echo should work correctly.
16163   lt_compile=`echo "$ac_compile" | $SED \
16164   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16165   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16166   -e 's:$: $lt_compiler_flag:'`
16167   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16168   (eval "$lt_compile" 2>out/conftest.err)
16169   ac_status=$?
16170   cat out/conftest.err >&5
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16173   then
16174     # The compiler can only warn and ignore the option if not recognized
16175     # So say no if there are warnings
16176     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16177     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16178     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16179       lt_cv_prog_compiler_c_o=yes
16180     fi
16181   fi
16182   chmod u+w . 2>&5
16183   $RM conftest*
16184   # SGI C++ compiler will create directory out/ii_files/ for
16185   # template instantiation
16186   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16187   $RM out/* && rmdir out
16188   cd ..
16189   $RM -r conftest
16190   $RM conftest*
16191
16192fi
16193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16194$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16195
16196
16197
16198
16199hard_links="nottested"
16200if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16201  # do not overwrite the value of need_locks provided by the user
16202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16203$as_echo_n "checking if we can lock with hard links... " >&6; }
16204  hard_links=yes
16205  $RM conftest*
16206  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16207  touch conftest.a
16208  ln conftest.a conftest.b 2>&5 || hard_links=no
16209  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16211$as_echo "$hard_links" >&6; }
16212  if test "$hard_links" = no; then
16213    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16214$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16215    need_locks=warn
16216  fi
16217else
16218  need_locks=no
16219fi
16220
16221
16222
16223
16224
16225
16226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16227$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16228
16229  runpath_var=
16230  allow_undefined_flag=
16231  always_export_symbols=no
16232  archive_cmds=
16233  archive_expsym_cmds=
16234  compiler_needs_object=no
16235  enable_shared_with_static_runtimes=no
16236  export_dynamic_flag_spec=
16237  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16238  hardcode_automatic=no
16239  hardcode_direct=no
16240  hardcode_direct_absolute=no
16241  hardcode_libdir_flag_spec=
16242  hardcode_libdir_flag_spec_ld=
16243  hardcode_libdir_separator=
16244  hardcode_minus_L=no
16245  hardcode_shlibpath_var=unsupported
16246  inherit_rpath=no
16247  link_all_deplibs=unknown
16248  module_cmds=
16249  module_expsym_cmds=
16250  old_archive_from_new_cmds=
16251  old_archive_from_expsyms_cmds=
16252  thread_safe_flag_spec=
16253  whole_archive_flag_spec=
16254  # include_expsyms should be a list of space-separated symbols to be *always*
16255  # included in the symbol list
16256  include_expsyms=
16257  # exclude_expsyms can be an extended regexp of symbols to exclude
16258  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16259  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16260  # as well as any symbol that contains `d'.
16261  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16262  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16263  # platforms (ab)use it in PIC code, but their linkers get confused if
16264  # the symbol is explicitly referenced.  Since portable code cannot
16265  # rely on this symbol name, it's probably fine to never include it in
16266  # preloaded symbol tables.
16267  # Exclude shared library initialization/finalization symbols.
16268  extract_expsyms_cmds=
16269
16270  case $host_os in
16271  cygwin* | mingw* | pw32* | cegcc*)
16272    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16273    # When not using gcc, we currently assume that we are using
16274    # Microsoft Visual C++.
16275    if test "$GCC" != yes; then
16276      with_gnu_ld=no
16277    fi
16278    ;;
16279  interix*)
16280    # we just hope/assume this is gcc and not c89 (= MSVC++)
16281    with_gnu_ld=yes
16282    ;;
16283  openbsd*)
16284    with_gnu_ld=no
16285    ;;
16286  esac
16287
16288  ld_shlibs=yes
16289
16290  # On some targets, GNU ld is compatible enough with the native linker
16291  # that we're better off using the native interface for both.
16292  lt_use_gnu_ld_interface=no
16293  if test "$with_gnu_ld" = yes; then
16294    case $host_os in
16295      aix*)
16296	# The AIX port of GNU ld has always aspired to compatibility
16297	# with the native linker.  However, as the warning in the GNU ld
16298	# block says, versions before 2.19.5* couldn't really create working
16299	# shared libraries, regardless of the interface used.
16300	case `$LD -v 2>&1` in
16301	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16302	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16303	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16304	  *)
16305	    lt_use_gnu_ld_interface=yes
16306	    ;;
16307	esac
16308	;;
16309      *)
16310	lt_use_gnu_ld_interface=yes
16311	;;
16312    esac
16313  fi
16314
16315  if test "$lt_use_gnu_ld_interface" = yes; then
16316    # If archive_cmds runs LD, not CC, wlarc should be empty
16317    wlarc='${wl}'
16318
16319    # Set some defaults for GNU ld with shared library support. These
16320    # are reset later if shared libraries are not supported. Putting them
16321    # here allows them to be overridden if necessary.
16322    runpath_var=LD_RUN_PATH
16323    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16324    export_dynamic_flag_spec='${wl}--export-dynamic'
16325    # ancient GNU ld didn't support --whole-archive et. al.
16326    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16327      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16328    else
16329      whole_archive_flag_spec=
16330    fi
16331    supports_anon_versioning=no
16332    case `$LD -v 2>&1` in
16333      *GNU\ gold*) supports_anon_versioning=yes ;;
16334      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16335      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16336      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16337      *\ 2.11.*) ;; # other 2.11 versions
16338      *) supports_anon_versioning=yes ;;
16339    esac
16340
16341    # See if GNU ld supports shared libraries.
16342    case $host_os in
16343    aix[3-9]*)
16344      # On AIX/PPC, the GNU linker is very broken
16345      if test "$host_cpu" != ia64; then
16346	ld_shlibs=no
16347	cat <<_LT_EOF 1>&2
16348
16349*** Warning: the GNU linker, at least up to release 2.19, is reported
16350*** to be unable to reliably create shared libraries on AIX.
16351*** Therefore, libtool is disabling shared libraries support.  If you
16352*** really care for shared libraries, you may want to install binutils
16353*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16354*** You will then need to restart the configuration process.
16355
16356_LT_EOF
16357      fi
16358      ;;
16359
16360    amigaos*)
16361      case $host_cpu in
16362      powerpc)
16363            # see comment about AmigaOS4 .so support
16364            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16365            archive_expsym_cmds=''
16366        ;;
16367      m68k)
16368            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)'
16369            hardcode_libdir_flag_spec='-L$libdir'
16370            hardcode_minus_L=yes
16371        ;;
16372      esac
16373      ;;
16374
16375    beos*)
16376      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16377	allow_undefined_flag=unsupported
16378	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16379	# support --undefined.  This deserves some investigation.  FIXME
16380	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16381      else
16382	ld_shlibs=no
16383      fi
16384      ;;
16385
16386    cygwin* | mingw* | pw32* | cegcc*)
16387      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16388      # as there is no search path for DLLs.
16389      hardcode_libdir_flag_spec='-L$libdir'
16390      export_dynamic_flag_spec='${wl}--export-all-symbols'
16391      allow_undefined_flag=unsupported
16392      always_export_symbols=no
16393      enable_shared_with_static_runtimes=yes
16394      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16395
16396      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16397        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16398	# If the export-symbols file already is a .def file (1st line
16399	# is EXPORTS), use it as is; otherwise, prepend...
16400	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16401	  cp $export_symbols $output_objdir/$soname.def;
16402	else
16403	  echo EXPORTS > $output_objdir/$soname.def;
16404	  cat $export_symbols >> $output_objdir/$soname.def;
16405	fi~
16406	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16407      else
16408	ld_shlibs=no
16409      fi
16410      ;;
16411
16412    haiku*)
16413      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16414      link_all_deplibs=yes
16415      ;;
16416
16417    interix[3-9]*)
16418      hardcode_direct=no
16419      hardcode_shlibpath_var=no
16420      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16421      export_dynamic_flag_spec='${wl}-E'
16422      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16423      # Instead, shared libraries are loaded at an image base (0x10000000 by
16424      # default) and relocated if they conflict, which is a slow very memory
16425      # consuming and fragmenting process.  To avoid this, we pick a random,
16426      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16427      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16428      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16429      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'
16430      ;;
16431
16432    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16433      tmp_diet=no
16434      if test "$host_os" = linux-dietlibc; then
16435	case $cc_basename in
16436	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16437	esac
16438      fi
16439      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16440	 && test "$tmp_diet" = no
16441      then
16442	tmp_addflag=' $pic_flag'
16443	tmp_sharedflag='-shared'
16444	case $cc_basename,$host_cpu in
16445        pgcc*)				# Portland Group C compiler
16446	  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'
16447	  tmp_addflag=' $pic_flag'
16448	  ;;
16449	pgf77* | pgf90* | pgf95* | pgfortran*)
16450					# Portland Group f77 and f90 compilers
16451	  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'
16452	  tmp_addflag=' $pic_flag -Mnomain' ;;
16453	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16454	  tmp_addflag=' -i_dynamic' ;;
16455	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16456	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16457	ifc* | ifort*)			# Intel Fortran compiler
16458	  tmp_addflag=' -nofor_main' ;;
16459	lf95*)				# Lahey Fortran 8.1
16460	  whole_archive_flag_spec=
16461	  tmp_sharedflag='--shared' ;;
16462	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16463	  tmp_sharedflag='-qmkshrobj'
16464	  tmp_addflag= ;;
16465	nvcc*)	# Cuda Compiler Driver 2.2
16466	  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'
16467	  compiler_needs_object=yes
16468	  ;;
16469	esac
16470	case `$CC -V 2>&1 | sed 5q` in
16471	*Sun\ C*)			# Sun C 5.9
16472	  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'
16473	  compiler_needs_object=yes
16474	  tmp_sharedflag='-G' ;;
16475	*Sun\ F*)			# Sun Fortran 8.3
16476	  tmp_sharedflag='-G' ;;
16477	esac
16478	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16479
16480        if test "x$supports_anon_versioning" = xyes; then
16481          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16482	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16483	    echo "local: *; };" >> $output_objdir/$libname.ver~
16484	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16485        fi
16486
16487	case $cc_basename in
16488	xlf* | bgf* | bgxlf* | mpixlf*)
16489	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16490	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16491	  hardcode_libdir_flag_spec=
16492	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
16493	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16494	  if test "x$supports_anon_versioning" = xyes; then
16495	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16496	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16497	      echo "local: *; };" >> $output_objdir/$libname.ver~
16498	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16499	  fi
16500	  ;;
16501	esac
16502      else
16503        ld_shlibs=no
16504      fi
16505      ;;
16506
16507    netbsd*)
16508      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16509	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16510	wlarc=
16511      else
16512	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16513	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16514      fi
16515      ;;
16516
16517    solaris*)
16518      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16519	ld_shlibs=no
16520	cat <<_LT_EOF 1>&2
16521
16522*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16523*** create shared libraries on Solaris systems.  Therefore, libtool
16524*** is disabling shared libraries support.  We urge you to upgrade GNU
16525*** binutils to release 2.9.1 or newer.  Another option is to modify
16526*** your PATH or compiler configuration so that the native linker is
16527*** used, and then restart.
16528
16529_LT_EOF
16530      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16531	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16532	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16533      else
16534	ld_shlibs=no
16535      fi
16536      ;;
16537
16538    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16539      case `$LD -v 2>&1` in
16540        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16541	ld_shlibs=no
16542	cat <<_LT_EOF 1>&2
16543
16544*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16545*** reliably create shared libraries on SCO systems.  Therefore, libtool
16546*** is disabling shared libraries support.  We urge you to upgrade GNU
16547*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16548*** your PATH or compiler configuration so that the native linker is
16549*** used, and then restart.
16550
16551_LT_EOF
16552	;;
16553	*)
16554	  # For security reasons, it is highly recommended that you always
16555	  # use absolute paths for naming shared libraries, and exclude the
16556	  # DT_RUNPATH tag from executables and libraries.  But doing so
16557	  # requires that you compile everything twice, which is a pain.
16558	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16559	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16560	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16561	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16562	  else
16563	    ld_shlibs=no
16564	  fi
16565	;;
16566      esac
16567      ;;
16568
16569    sunos4*)
16570      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16571      wlarc=
16572      hardcode_direct=yes
16573      hardcode_shlibpath_var=no
16574      ;;
16575
16576    *)
16577      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16578	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16579	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16580      else
16581	ld_shlibs=no
16582      fi
16583      ;;
16584    esac
16585
16586    if test "$ld_shlibs" = no; then
16587      runpath_var=
16588      hardcode_libdir_flag_spec=
16589      export_dynamic_flag_spec=
16590      whole_archive_flag_spec=
16591    fi
16592  else
16593    # PORTME fill in a description of your system's linker (not GNU ld)
16594    case $host_os in
16595    aix3*)
16596      allow_undefined_flag=unsupported
16597      always_export_symbols=yes
16598      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'
16599      # Note: this linker hardcodes the directories in LIBPATH if there
16600      # are no directories specified by -L.
16601      hardcode_minus_L=yes
16602      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16603	# Neither direct hardcoding nor static linking is supported with a
16604	# broken collect2.
16605	hardcode_direct=unsupported
16606      fi
16607      ;;
16608
16609    aix[4-9]*)
16610      if test "$host_cpu" = ia64; then
16611	# On IA64, the linker does run time linking by default, so we don't
16612	# have to do anything special.
16613	aix_use_runtimelinking=no
16614	exp_sym_flag='-Bexport'
16615	no_entry_flag=""
16616      else
16617	# If we're using GNU nm, then we don't want the "-C" option.
16618	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16619	# Also, AIX nm treats weak defined symbols like other global
16620	# defined symbols, whereas GNU nm marks them as "W".
16621	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16622	  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'
16623	else
16624	  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'
16625	fi
16626	aix_use_runtimelinking=no
16627
16628	# Test if we are trying to use run time linking or normal
16629	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16630	# need to do runtime linking.
16631	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16632	  for ld_flag in $LDFLAGS; do
16633	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16634	    aix_use_runtimelinking=yes
16635	    break
16636	  fi
16637	  done
16638	  ;;
16639	esac
16640
16641	exp_sym_flag='-bexport'
16642	no_entry_flag='-bnoentry'
16643      fi
16644
16645      # When large executables or shared objects are built, AIX ld can
16646      # have problems creating the table of contents.  If linking a library
16647      # or program results in "error TOC overflow" add -mminimal-toc to
16648      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16649      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16650
16651      archive_cmds=''
16652      hardcode_direct=yes
16653      hardcode_direct_absolute=yes
16654      hardcode_libdir_separator=':'
16655      link_all_deplibs=yes
16656      file_list_spec='${wl}-f,'
16657
16658      if test "$GCC" = yes; then
16659	case $host_os in aix4.[012]|aix4.[012].*)
16660	# We only want to do this on AIX 4.2 and lower, the check
16661	# below for broken collect2 doesn't work under 4.3+
16662	  collect2name=`${CC} -print-prog-name=collect2`
16663	  if test -f "$collect2name" &&
16664	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16665	  then
16666	  # We have reworked collect2
16667	  :
16668	  else
16669	  # We have old collect2
16670	  hardcode_direct=unsupported
16671	  # It fails to find uninstalled libraries when the uninstalled
16672	  # path is not listed in the libpath.  Setting hardcode_minus_L
16673	  # to unsupported forces relinking
16674	  hardcode_minus_L=yes
16675	  hardcode_libdir_flag_spec='-L$libdir'
16676	  hardcode_libdir_separator=
16677	  fi
16678	  ;;
16679	esac
16680	shared_flag='-shared'
16681	if test "$aix_use_runtimelinking" = yes; then
16682	  shared_flag="$shared_flag "'${wl}-G'
16683	fi
16684      else
16685	# not using gcc
16686	if test "$host_cpu" = ia64; then
16687	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16688	# chokes on -Wl,-G. The following line is correct:
16689	  shared_flag='-G'
16690	else
16691	  if test "$aix_use_runtimelinking" = yes; then
16692	    shared_flag='${wl}-G'
16693	  else
16694	    shared_flag='${wl}-bM:SRE'
16695	  fi
16696	fi
16697      fi
16698
16699      export_dynamic_flag_spec='${wl}-bexpall'
16700      # It seems that -bexpall does not export symbols beginning with
16701      # underscore (_), so it is better to generate a list of symbols to export.
16702      always_export_symbols=yes
16703      if test "$aix_use_runtimelinking" = yes; then
16704	# Warning - without using the other runtime loading flags (-brtl),
16705	# -berok will link without error, but may produce a broken library.
16706	allow_undefined_flag='-berok'
16707        # Determine the default libpath from the value encoded in an
16708        # empty executable.
16709        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710/* end confdefs.h.  */
16711
16712int
16713main ()
16714{
16715
16716  ;
16717  return 0;
16718}
16719_ACEOF
16720if ac_fn_c_try_link "$LINENO"; then :
16721
16722lt_aix_libpath_sed='
16723    /Import File Strings/,/^$/ {
16724	/^0/ {
16725	    s/^0  *\(.*\)$/\1/
16726	    p
16727	}
16728    }'
16729aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16730# Check for a 64-bit object if we didn't find anything.
16731if test -z "$aix_libpath"; then
16732  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16733fi
16734fi
16735rm -f core conftest.err conftest.$ac_objext \
16736    conftest$ac_exeext conftest.$ac_ext
16737if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16738
16739        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16740        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"
16741      else
16742	if test "$host_cpu" = ia64; then
16743	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16744	  allow_undefined_flag="-z nodefs"
16745	  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"
16746	else
16747	 # Determine the default libpath from the value encoded in an
16748	 # empty executable.
16749	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16750/* end confdefs.h.  */
16751
16752int
16753main ()
16754{
16755
16756  ;
16757  return 0;
16758}
16759_ACEOF
16760if ac_fn_c_try_link "$LINENO"; then :
16761
16762lt_aix_libpath_sed='
16763    /Import File Strings/,/^$/ {
16764	/^0/ {
16765	    s/^0  *\(.*\)$/\1/
16766	    p
16767	}
16768    }'
16769aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16770# Check for a 64-bit object if we didn't find anything.
16771if test -z "$aix_libpath"; then
16772  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16773fi
16774fi
16775rm -f core conftest.err conftest.$ac_objext \
16776    conftest$ac_exeext conftest.$ac_ext
16777if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16778
16779	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16780	  # Warning - without using the other run time loading flags,
16781	  # -berok will link without error, but may produce a broken library.
16782	  no_undefined_flag=' ${wl}-bernotok'
16783	  allow_undefined_flag=' ${wl}-berok'
16784	  if test "$with_gnu_ld" = yes; then
16785	    # We only use this code for GNU lds that support --whole-archive.
16786	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16787	  else
16788	    # Exported symbols can be pulled into shared objects from archives
16789	    whole_archive_flag_spec='$convenience'
16790	  fi
16791	  archive_cmds_need_lc=yes
16792	  # This is similar to how AIX traditionally builds its shared libraries.
16793	  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'
16794	fi
16795      fi
16796      ;;
16797
16798    amigaos*)
16799      case $host_cpu in
16800      powerpc)
16801            # see comment about AmigaOS4 .so support
16802            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16803            archive_expsym_cmds=''
16804        ;;
16805      m68k)
16806            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)'
16807            hardcode_libdir_flag_spec='-L$libdir'
16808            hardcode_minus_L=yes
16809        ;;
16810      esac
16811      ;;
16812
16813    bsdi[45]*)
16814      export_dynamic_flag_spec=-rdynamic
16815      ;;
16816
16817    cygwin* | mingw* | pw32* | cegcc*)
16818      # When not using gcc, we currently assume that we are using
16819      # Microsoft Visual C++.
16820      # hardcode_libdir_flag_spec is actually meaningless, as there is
16821      # no search path for DLLs.
16822      hardcode_libdir_flag_spec=' '
16823      allow_undefined_flag=unsupported
16824      # Tell ltmain to make .lib files, not .a files.
16825      libext=lib
16826      # Tell ltmain to make .dll files, not .so files.
16827      shrext_cmds=".dll"
16828      # FIXME: Setting linknames here is a bad hack.
16829      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16830      # The linker will automatically build a .lib file if we build a DLL.
16831      old_archive_from_new_cmds='true'
16832      # FIXME: Should let the user specify the lib program.
16833      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16834      fix_srcfile_path='`cygpath -w "$srcfile"`'
16835      enable_shared_with_static_runtimes=yes
16836      ;;
16837
16838    darwin* | rhapsody*)
16839
16840
16841  archive_cmds_need_lc=no
16842  hardcode_direct=no
16843  hardcode_automatic=yes
16844  hardcode_shlibpath_var=unsupported
16845  if test "$lt_cv_ld_force_load" = "yes"; then
16846    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\"`'
16847  else
16848    whole_archive_flag_spec=''
16849  fi
16850  link_all_deplibs=yes
16851  allow_undefined_flag="$_lt_dar_allow_undefined"
16852  case $cc_basename in
16853     ifort*) _lt_dar_can_shared=yes ;;
16854     *) _lt_dar_can_shared=$GCC ;;
16855  esac
16856  if test "$_lt_dar_can_shared" = "yes"; then
16857    output_verbose_link_cmd=func_echo_all
16858    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16859    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16860    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}"
16861    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}"
16862
16863  else
16864  ld_shlibs=no
16865  fi
16866
16867      ;;
16868
16869    dgux*)
16870      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16871      hardcode_libdir_flag_spec='-L$libdir'
16872      hardcode_shlibpath_var=no
16873      ;;
16874
16875    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16876    # support.  Future versions do this automatically, but an explicit c++rt0.o
16877    # does not break anything, and helps significantly (at the cost of a little
16878    # extra space).
16879    freebsd2.2*)
16880      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16881      hardcode_libdir_flag_spec='-R$libdir'
16882      hardcode_direct=yes
16883      hardcode_shlibpath_var=no
16884      ;;
16885
16886    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16887    freebsd2.*)
16888      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16889      hardcode_direct=yes
16890      hardcode_minus_L=yes
16891      hardcode_shlibpath_var=no
16892      ;;
16893
16894    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16895    freebsd* | dragonfly*)
16896      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16897      hardcode_libdir_flag_spec='-R$libdir'
16898      hardcode_direct=yes
16899      hardcode_shlibpath_var=no
16900      ;;
16901
16902    hpux9*)
16903      if test "$GCC" = yes; then
16904	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'
16905      else
16906	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'
16907      fi
16908      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16909      hardcode_libdir_separator=:
16910      hardcode_direct=yes
16911
16912      # hardcode_minus_L: Not really in the search PATH,
16913      # but as the default location of the library.
16914      hardcode_minus_L=yes
16915      export_dynamic_flag_spec='${wl}-E'
16916      ;;
16917
16918    hpux10*)
16919      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16920	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16921      else
16922	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16923      fi
16924      if test "$with_gnu_ld" = no; then
16925	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16926	hardcode_libdir_flag_spec_ld='+b $libdir'
16927	hardcode_libdir_separator=:
16928	hardcode_direct=yes
16929	hardcode_direct_absolute=yes
16930	export_dynamic_flag_spec='${wl}-E'
16931	# hardcode_minus_L: Not really in the search PATH,
16932	# but as the default location of the library.
16933	hardcode_minus_L=yes
16934      fi
16935      ;;
16936
16937    hpux11*)
16938      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16939	case $host_cpu in
16940	hppa*64*)
16941	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16942	  ;;
16943	ia64*)
16944	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16945	  ;;
16946	*)
16947	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16948	  ;;
16949	esac
16950      else
16951	case $host_cpu in
16952	hppa*64*)
16953	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16954	  ;;
16955	ia64*)
16956	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16957	  ;;
16958	*)
16959
16960	  # Older versions of the 11.00 compiler do not understand -b yet
16961	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16962	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16963$as_echo_n "checking if $CC understands -b... " >&6; }
16964if ${lt_cv_prog_compiler__b+:} false; then :
16965  $as_echo_n "(cached) " >&6
16966else
16967  lt_cv_prog_compiler__b=no
16968   save_LDFLAGS="$LDFLAGS"
16969   LDFLAGS="$LDFLAGS -b"
16970   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16971   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16972     # The linker can only warn and ignore the option if not recognized
16973     # So say no if there are warnings
16974     if test -s conftest.err; then
16975       # Append any errors to the config.log.
16976       cat conftest.err 1>&5
16977       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16978       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16979       if diff conftest.exp conftest.er2 >/dev/null; then
16980         lt_cv_prog_compiler__b=yes
16981       fi
16982     else
16983       lt_cv_prog_compiler__b=yes
16984     fi
16985   fi
16986   $RM -r conftest*
16987   LDFLAGS="$save_LDFLAGS"
16988
16989fi
16990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16991$as_echo "$lt_cv_prog_compiler__b" >&6; }
16992
16993if test x"$lt_cv_prog_compiler__b" = xyes; then
16994    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16995else
16996    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16997fi
16998
16999	  ;;
17000	esac
17001      fi
17002      if test "$with_gnu_ld" = no; then
17003	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17004	hardcode_libdir_separator=:
17005
17006	case $host_cpu in
17007	hppa*64*|ia64*)
17008	  hardcode_direct=no
17009	  hardcode_shlibpath_var=no
17010	  ;;
17011	*)
17012	  hardcode_direct=yes
17013	  hardcode_direct_absolute=yes
17014	  export_dynamic_flag_spec='${wl}-E'
17015
17016	  # hardcode_minus_L: Not really in the search PATH,
17017	  # but as the default location of the library.
17018	  hardcode_minus_L=yes
17019	  ;;
17020	esac
17021      fi
17022      ;;
17023
17024    irix5* | irix6* | nonstopux*)
17025      if test "$GCC" = yes; then
17026	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'
17027	# Try to use the -exported_symbol ld option, if it does not
17028	# work, assume that -exports_file does not work either and
17029	# implicitly export all symbols.
17030        save_LDFLAGS="$LDFLAGS"
17031        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17032        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033/* end confdefs.h.  */
17034int foo(void) {}
17035_ACEOF
17036if ac_fn_c_try_link "$LINENO"; then :
17037  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'
17038
17039fi
17040rm -f core conftest.err conftest.$ac_objext \
17041    conftest$ac_exeext conftest.$ac_ext
17042        LDFLAGS="$save_LDFLAGS"
17043      else
17044	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'
17045	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'
17046      fi
17047      archive_cmds_need_lc='no'
17048      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17049      hardcode_libdir_separator=:
17050      inherit_rpath=yes
17051      link_all_deplibs=yes
17052      ;;
17053
17054    netbsd*)
17055      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17056	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17057      else
17058	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17059      fi
17060      hardcode_libdir_flag_spec='-R$libdir'
17061      hardcode_direct=yes
17062      hardcode_shlibpath_var=no
17063      ;;
17064
17065    newsos6)
17066      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17067      hardcode_direct=yes
17068      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17069      hardcode_libdir_separator=:
17070      hardcode_shlibpath_var=no
17071      ;;
17072
17073    *nto* | *qnx*)
17074      ;;
17075
17076    openbsd*)
17077      if test -f /usr/libexec/ld.so; then
17078	hardcode_direct=yes
17079	hardcode_shlibpath_var=no
17080	hardcode_direct_absolute=yes
17081	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17082	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17083	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17084	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17085	  export_dynamic_flag_spec='${wl}-E'
17086	else
17087	  case $host_os in
17088	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17089	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17090	     hardcode_libdir_flag_spec='-R$libdir'
17091	     ;;
17092	   *)
17093	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17094	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17095	     ;;
17096	  esac
17097	fi
17098      else
17099	ld_shlibs=no
17100      fi
17101      ;;
17102
17103    os2*)
17104      hardcode_libdir_flag_spec='-L$libdir'
17105      hardcode_minus_L=yes
17106      allow_undefined_flag=unsupported
17107      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'
17108      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17109      ;;
17110
17111    osf3*)
17112      if test "$GCC" = yes; then
17113	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17114	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'
17115      else
17116	allow_undefined_flag=' -expect_unresolved \*'
17117	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'
17118      fi
17119      archive_cmds_need_lc='no'
17120      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17121      hardcode_libdir_separator=:
17122      ;;
17123
17124    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17125      if test "$GCC" = yes; then
17126	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17127	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'
17128	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17129      else
17130	allow_undefined_flag=' -expect_unresolved \*'
17131	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'
17132	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~
17133	$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'
17134
17135	# Both c and cxx compiler support -rpath directly
17136	hardcode_libdir_flag_spec='-rpath $libdir'
17137      fi
17138      archive_cmds_need_lc='no'
17139      hardcode_libdir_separator=:
17140      ;;
17141
17142    solaris*)
17143      no_undefined_flag=' -z defs'
17144      if test "$GCC" = yes; then
17145	wlarc='${wl}'
17146	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17147	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17148	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17149      else
17150	case `$CC -V 2>&1` in
17151	*"Compilers 5.0"*)
17152	  wlarc=''
17153	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17154	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17155	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17156	  ;;
17157	*)
17158	  wlarc='${wl}'
17159	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17160	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17161	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17162	  ;;
17163	esac
17164      fi
17165      hardcode_libdir_flag_spec='-R$libdir'
17166      hardcode_shlibpath_var=no
17167      case $host_os in
17168      solaris2.[0-5] | solaris2.[0-5].*) ;;
17169      *)
17170	# The compiler driver will combine and reorder linker options,
17171	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17172	# but is careful enough not to reorder.
17173	# Supported since Solaris 2.6 (maybe 2.5.1?)
17174	if test "$GCC" = yes; then
17175	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17176	else
17177	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17178	fi
17179	;;
17180      esac
17181      link_all_deplibs=yes
17182      ;;
17183
17184    sunos4*)
17185      if test "x$host_vendor" = xsequent; then
17186	# Use $CC to link under sequent, because it throws in some extra .o
17187	# files that make .init and .fini sections work.
17188	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17189      else
17190	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17191      fi
17192      hardcode_libdir_flag_spec='-L$libdir'
17193      hardcode_direct=yes
17194      hardcode_minus_L=yes
17195      hardcode_shlibpath_var=no
17196      ;;
17197
17198    sysv4)
17199      case $host_vendor in
17200	sni)
17201	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17202	  hardcode_direct=yes # is this really true???
17203	;;
17204	siemens)
17205	  ## LD is ld it makes a PLAMLIB
17206	  ## CC just makes a GrossModule.
17207	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17208	  reload_cmds='$CC -r -o $output$reload_objs'
17209	  hardcode_direct=no
17210        ;;
17211	motorola)
17212	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17213	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17214	;;
17215      esac
17216      runpath_var='LD_RUN_PATH'
17217      hardcode_shlibpath_var=no
17218      ;;
17219
17220    sysv4.3*)
17221      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17222      hardcode_shlibpath_var=no
17223      export_dynamic_flag_spec='-Bexport'
17224      ;;
17225
17226    sysv4*MP*)
17227      if test -d /usr/nec; then
17228	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17229	hardcode_shlibpath_var=no
17230	runpath_var=LD_RUN_PATH
17231	hardcode_runpath_var=yes
17232	ld_shlibs=yes
17233      fi
17234      ;;
17235
17236    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17237      no_undefined_flag='${wl}-z,text'
17238      archive_cmds_need_lc=no
17239      hardcode_shlibpath_var=no
17240      runpath_var='LD_RUN_PATH'
17241
17242      if test "$GCC" = yes; then
17243	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17244	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17245      else
17246	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17247	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17248      fi
17249      ;;
17250
17251    sysv5* | sco3.2v5* | sco5v6*)
17252      # Note: We can NOT use -z defs as we might desire, because we do not
17253      # link with -lc, and that would cause any symbols used from libc to
17254      # always be unresolved, which means just about no library would
17255      # ever link correctly.  If we're not using GNU ld we use -z text
17256      # though, which does catch some bad symbols but isn't as heavy-handed
17257      # as -z defs.
17258      no_undefined_flag='${wl}-z,text'
17259      allow_undefined_flag='${wl}-z,nodefs'
17260      archive_cmds_need_lc=no
17261      hardcode_shlibpath_var=no
17262      hardcode_libdir_flag_spec='${wl}-R,$libdir'
17263      hardcode_libdir_separator=':'
17264      link_all_deplibs=yes
17265      export_dynamic_flag_spec='${wl}-Bexport'
17266      runpath_var='LD_RUN_PATH'
17267
17268      if test "$GCC" = yes; then
17269	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17270	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17271      else
17272	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17273	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17274      fi
17275      ;;
17276
17277    uts4*)
17278      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17279      hardcode_libdir_flag_spec='-L$libdir'
17280      hardcode_shlibpath_var=no
17281      ;;
17282
17283    *)
17284      ld_shlibs=no
17285      ;;
17286    esac
17287
17288    if test x$host_vendor = xsni; then
17289      case $host in
17290      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17291	export_dynamic_flag_spec='${wl}-Blargedynsym'
17292	;;
17293      esac
17294    fi
17295  fi
17296
17297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17298$as_echo "$ld_shlibs" >&6; }
17299test "$ld_shlibs" = no && can_build_shared=no
17300
17301with_gnu_ld=$with_gnu_ld
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317#
17318# Do we need to explicitly link libc?
17319#
17320case "x$archive_cmds_need_lc" in
17321x|xyes)
17322  # Assume -lc should be added
17323  archive_cmds_need_lc=yes
17324
17325  if test "$enable_shared" = yes && test "$GCC" = yes; then
17326    case $archive_cmds in
17327    *'~'*)
17328      # FIXME: we may have to deal with multi-command sequences.
17329      ;;
17330    '$CC '*)
17331      # Test whether the compiler implicitly links with -lc since on some
17332      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17333      # to ld, don't add -lc before -lgcc.
17334      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17335$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17336if ${lt_cv_archive_cmds_need_lc+:} false; then :
17337  $as_echo_n "(cached) " >&6
17338else
17339  $RM conftest*
17340	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17341
17342	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17343  (eval $ac_compile) 2>&5
17344  ac_status=$?
17345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17346  test $ac_status = 0; } 2>conftest.err; then
17347	  soname=conftest
17348	  lib=conftest
17349	  libobjs=conftest.$ac_objext
17350	  deplibs=
17351	  wl=$lt_prog_compiler_wl
17352	  pic_flag=$lt_prog_compiler_pic
17353	  compiler_flags=-v
17354	  linker_flags=-v
17355	  verstring=
17356	  output_objdir=.
17357	  libname=conftest
17358	  lt_save_allow_undefined_flag=$allow_undefined_flag
17359	  allow_undefined_flag=
17360	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17361  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17362  ac_status=$?
17363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17364  test $ac_status = 0; }
17365	  then
17366	    lt_cv_archive_cmds_need_lc=no
17367	  else
17368	    lt_cv_archive_cmds_need_lc=yes
17369	  fi
17370	  allow_undefined_flag=$lt_save_allow_undefined_flag
17371	else
17372	  cat conftest.err 1>&5
17373	fi
17374	$RM conftest*
17375
17376fi
17377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17378$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17379      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17380      ;;
17381    esac
17382  fi
17383  ;;
17384esac
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17543$as_echo_n "checking dynamic linker characteristics... " >&6; }
17544
17545if test "$GCC" = yes; then
17546  case $host_os in
17547    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17548    *) lt_awk_arg="/^libraries:/" ;;
17549  esac
17550  case $host_os in
17551    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17552    *) lt_sed_strip_eq="s,=/,/,g" ;;
17553  esac
17554  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17555  case $lt_search_path_spec in
17556  *\;*)
17557    # if the path contains ";" then we assume it to be the separator
17558    # otherwise default to the standard path separator (i.e. ":") - it is
17559    # assumed that no part of a normal pathname contains ";" but that should
17560    # okay in the real world where ";" in dirpaths is itself problematic.
17561    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17562    ;;
17563  *)
17564    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17565    ;;
17566  esac
17567  # Ok, now we have the path, separated by spaces, we can step through it
17568  # and add multilib dir if necessary.
17569  lt_tmp_lt_search_path_spec=
17570  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17571  for lt_sys_path in $lt_search_path_spec; do
17572    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17573      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17574    else
17575      test -d "$lt_sys_path" && \
17576	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17577    fi
17578  done
17579  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17580BEGIN {RS=" "; FS="/|\n";} {
17581  lt_foo="";
17582  lt_count=0;
17583  for (lt_i = NF; lt_i > 0; lt_i--) {
17584    if ($lt_i != "" && $lt_i != ".") {
17585      if ($lt_i == "..") {
17586        lt_count++;
17587      } else {
17588        if (lt_count == 0) {
17589          lt_foo="/" $lt_i lt_foo;
17590        } else {
17591          lt_count--;
17592        }
17593      }
17594    }
17595  }
17596  if (lt_foo != "") { lt_freq[lt_foo]++; }
17597  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17598}'`
17599  # AWK program above erroneously prepends '/' to C:/dos/paths
17600  # for these hosts.
17601  case $host_os in
17602    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17603      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17604  esac
17605  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17606else
17607  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17608fi
17609library_names_spec=
17610libname_spec='lib$name'
17611soname_spec=
17612shrext_cmds=".so"
17613postinstall_cmds=
17614postuninstall_cmds=
17615finish_cmds=
17616finish_eval=
17617shlibpath_var=
17618shlibpath_overrides_runpath=unknown
17619version_type=none
17620dynamic_linker="$host_os ld.so"
17621sys_lib_dlsearch_path_spec="/lib /usr/lib"
17622need_lib_prefix=unknown
17623hardcode_into_libs=no
17624
17625# when you set need_version to no, make sure it does not cause -set_version
17626# flags to be left without arguments
17627need_version=unknown
17628
17629case $host_os in
17630aix3*)
17631  version_type=linux
17632  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17633  shlibpath_var=LIBPATH
17634
17635  # AIX 3 has no versioning support, so we append a major version to the name.
17636  soname_spec='${libname}${release}${shared_ext}$major'
17637  ;;
17638
17639aix[4-9]*)
17640  version_type=linux
17641  need_lib_prefix=no
17642  need_version=no
17643  hardcode_into_libs=yes
17644  if test "$host_cpu" = ia64; then
17645    # AIX 5 supports IA64
17646    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17647    shlibpath_var=LD_LIBRARY_PATH
17648  else
17649    # With GCC up to 2.95.x, collect2 would create an import file
17650    # for dependence libraries.  The import file would start with
17651    # the line `#! .'.  This would cause the generated library to
17652    # depend on `.', always an invalid library.  This was fixed in
17653    # development snapshots of GCC prior to 3.0.
17654    case $host_os in
17655      aix4 | aix4.[01] | aix4.[01].*)
17656      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17657	   echo ' yes '
17658	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17659	:
17660      else
17661	can_build_shared=no
17662      fi
17663      ;;
17664    esac
17665    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17666    # soname into executable. Probably we can add versioning support to
17667    # collect2, so additional links can be useful in future.
17668    if test "$aix_use_runtimelinking" = yes; then
17669      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17670      # instead of lib<name>.a to let people know that these are not
17671      # typical AIX shared libraries.
17672      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17673    else
17674      # We preserve .a as extension for shared libraries through AIX4.2
17675      # and later when we are not doing run time linking.
17676      library_names_spec='${libname}${release}.a $libname.a'
17677      soname_spec='${libname}${release}${shared_ext}$major'
17678    fi
17679    shlibpath_var=LIBPATH
17680  fi
17681  ;;
17682
17683amigaos*)
17684  case $host_cpu in
17685  powerpc)
17686    # Since July 2007 AmigaOS4 officially supports .so libraries.
17687    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17688    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17689    ;;
17690  m68k)
17691    library_names_spec='$libname.ixlibrary $libname.a'
17692    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17693    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'
17694    ;;
17695  esac
17696  ;;
17697
17698beos*)
17699  library_names_spec='${libname}${shared_ext}'
17700  dynamic_linker="$host_os ld.so"
17701  shlibpath_var=LIBRARY_PATH
17702  ;;
17703
17704bsdi[45]*)
17705  version_type=linux
17706  need_version=no
17707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17708  soname_spec='${libname}${release}${shared_ext}$major'
17709  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17710  shlibpath_var=LD_LIBRARY_PATH
17711  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17712  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17713  # the default ld.so.conf also contains /usr/contrib/lib and
17714  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17715  # libtool to hard-code these into programs
17716  ;;
17717
17718cygwin* | mingw* | pw32* | cegcc*)
17719  version_type=windows
17720  shrext_cmds=".dll"
17721  need_version=no
17722  need_lib_prefix=no
17723
17724  case $GCC,$host_os in
17725  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17726    library_names_spec='$libname.dll.a'
17727    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17728    postinstall_cmds='base_file=`basename \${file}`~
17729      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17730      dldir=$destdir/`dirname \$dlpath`~
17731      test -d \$dldir || mkdir -p \$dldir~
17732      $install_prog $dir/$dlname \$dldir/$dlname~
17733      chmod a+x \$dldir/$dlname~
17734      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17735        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17736      fi'
17737    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17738      dlpath=$dir/\$dldll~
17739       $RM \$dlpath'
17740    shlibpath_overrides_runpath=yes
17741
17742    case $host_os in
17743    cygwin*)
17744      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17745      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17746
17747      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17748      ;;
17749    mingw* | cegcc*)
17750      # MinGW DLLs use traditional 'lib' prefix
17751      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17752      ;;
17753    pw32*)
17754      # pw32 DLLs use 'pw' prefix rather than 'lib'
17755      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17756      ;;
17757    esac
17758    ;;
17759
17760  *)
17761    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17762    ;;
17763  esac
17764  dynamic_linker='Win32 ld.exe'
17765  # FIXME: first we should search . and the directory the executable is in
17766  shlibpath_var=PATH
17767  ;;
17768
17769darwin* | rhapsody*)
17770  dynamic_linker="$host_os dyld"
17771  version_type=darwin
17772  need_lib_prefix=no
17773  need_version=no
17774  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17775  soname_spec='${libname}${release}${major}$shared_ext'
17776  shlibpath_overrides_runpath=yes
17777  shlibpath_var=DYLD_LIBRARY_PATH
17778  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17779
17780  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17781  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17782  ;;
17783
17784dgux*)
17785  version_type=linux
17786  need_lib_prefix=no
17787  need_version=no
17788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17789  soname_spec='${libname}${release}${shared_ext}$major'
17790  shlibpath_var=LD_LIBRARY_PATH
17791  ;;
17792
17793freebsd* | dragonfly*)
17794  # DragonFly does not have aout.  When/if they implement a new
17795  # versioning mechanism, adjust this.
17796  if test -x /usr/bin/objformat; then
17797    objformat=`/usr/bin/objformat`
17798  else
17799    case $host_os in
17800    freebsd[23].*) objformat=aout ;;
17801    *) objformat=elf ;;
17802    esac
17803  fi
17804  version_type=freebsd-$objformat
17805  case $version_type in
17806    freebsd-elf*)
17807      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17808      need_version=no
17809      need_lib_prefix=no
17810      ;;
17811    freebsd-*)
17812      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17813      need_version=yes
17814      ;;
17815  esac
17816  shlibpath_var=LD_LIBRARY_PATH
17817  case $host_os in
17818  freebsd2.*)
17819    shlibpath_overrides_runpath=yes
17820    ;;
17821  freebsd3.[01]* | freebsdelf3.[01]*)
17822    shlibpath_overrides_runpath=yes
17823    hardcode_into_libs=yes
17824    ;;
17825  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17826  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17827    shlibpath_overrides_runpath=no
17828    hardcode_into_libs=yes
17829    ;;
17830  *) # from 4.6 on, and DragonFly
17831    shlibpath_overrides_runpath=yes
17832    hardcode_into_libs=yes
17833    ;;
17834  esac
17835  ;;
17836
17837gnu*)
17838  version_type=linux
17839  need_lib_prefix=no
17840  need_version=no
17841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17842  soname_spec='${libname}${release}${shared_ext}$major'
17843  shlibpath_var=LD_LIBRARY_PATH
17844  hardcode_into_libs=yes
17845  ;;
17846
17847haiku*)
17848  version_type=linux
17849  need_lib_prefix=no
17850  need_version=no
17851  dynamic_linker="$host_os runtime_loader"
17852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17853  soname_spec='${libname}${release}${shared_ext}$major'
17854  shlibpath_var=LIBRARY_PATH
17855  shlibpath_overrides_runpath=yes
17856  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17857  hardcode_into_libs=yes
17858  ;;
17859
17860hpux9* | hpux10* | hpux11*)
17861  # Give a soname corresponding to the major version so that dld.sl refuses to
17862  # link against other versions.
17863  version_type=sunos
17864  need_lib_prefix=no
17865  need_version=no
17866  case $host_cpu in
17867  ia64*)
17868    shrext_cmds='.so'
17869    hardcode_into_libs=yes
17870    dynamic_linker="$host_os dld.so"
17871    shlibpath_var=LD_LIBRARY_PATH
17872    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17873    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17874    soname_spec='${libname}${release}${shared_ext}$major'
17875    if test "X$HPUX_IA64_MODE" = X32; then
17876      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17877    else
17878      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17879    fi
17880    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17881    ;;
17882  hppa*64*)
17883    shrext_cmds='.sl'
17884    hardcode_into_libs=yes
17885    dynamic_linker="$host_os dld.sl"
17886    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17887    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17888    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17889    soname_spec='${libname}${release}${shared_ext}$major'
17890    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17891    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17892    ;;
17893  *)
17894    shrext_cmds='.sl'
17895    dynamic_linker="$host_os dld.sl"
17896    shlibpath_var=SHLIB_PATH
17897    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17898    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17899    soname_spec='${libname}${release}${shared_ext}$major'
17900    ;;
17901  esac
17902  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17903  postinstall_cmds='chmod 555 $lib'
17904  # or fails outright, so override atomically:
17905  install_override_mode=555
17906  ;;
17907
17908interix[3-9]*)
17909  version_type=linux
17910  need_lib_prefix=no
17911  need_version=no
17912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17913  soname_spec='${libname}${release}${shared_ext}$major'
17914  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17915  shlibpath_var=LD_LIBRARY_PATH
17916  shlibpath_overrides_runpath=no
17917  hardcode_into_libs=yes
17918  ;;
17919
17920irix5* | irix6* | nonstopux*)
17921  case $host_os in
17922    nonstopux*) version_type=nonstopux ;;
17923    *)
17924	if test "$lt_cv_prog_gnu_ld" = yes; then
17925		version_type=linux
17926	else
17927		version_type=irix
17928	fi ;;
17929  esac
17930  need_lib_prefix=no
17931  need_version=no
17932  soname_spec='${libname}${release}${shared_ext}$major'
17933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17934  case $host_os in
17935  irix5* | nonstopux*)
17936    libsuff= shlibsuff=
17937    ;;
17938  *)
17939    case $LD in # libtool.m4 will add one of these switches to LD
17940    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17941      libsuff= shlibsuff= libmagic=32-bit;;
17942    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17943      libsuff=32 shlibsuff=N32 libmagic=N32;;
17944    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17945      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17946    *) libsuff= shlibsuff= libmagic=never-match;;
17947    esac
17948    ;;
17949  esac
17950  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17951  shlibpath_overrides_runpath=no
17952  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17953  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17954  hardcode_into_libs=yes
17955  ;;
17956
17957# No shared lib support for Linux oldld, aout, or coff.
17958linux*oldld* | linux*aout* | linux*coff*)
17959  dynamic_linker=no
17960  ;;
17961
17962# This must be Linux ELF.
17963linux* | k*bsd*-gnu | kopensolaris*-gnu)
17964  version_type=linux
17965  need_lib_prefix=no
17966  need_version=no
17967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17968  soname_spec='${libname}${release}${shared_ext}$major'
17969  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17970  shlibpath_var=LD_LIBRARY_PATH
17971  shlibpath_overrides_runpath=no
17972
17973  # Some binutils ld are patched to set DT_RUNPATH
17974  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17975  $as_echo_n "(cached) " >&6
17976else
17977  lt_cv_shlibpath_overrides_runpath=no
17978    save_LDFLAGS=$LDFLAGS
17979    save_libdir=$libdir
17980    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17981	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17982    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17983/* end confdefs.h.  */
17984
17985int
17986main ()
17987{
17988
17989  ;
17990  return 0;
17991}
17992_ACEOF
17993if ac_fn_c_try_link "$LINENO"; then :
17994  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17995  lt_cv_shlibpath_overrides_runpath=yes
17996fi
17997fi
17998rm -f core conftest.err conftest.$ac_objext \
17999    conftest$ac_exeext conftest.$ac_ext
18000    LDFLAGS=$save_LDFLAGS
18001    libdir=$save_libdir
18002
18003fi
18004
18005  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18006
18007  # This implies no fast_install, which is unacceptable.
18008  # Some rework will be needed to allow for fast_install
18009  # before this can be enabled.
18010  hardcode_into_libs=yes
18011
18012  # Append ld.so.conf contents to the search path
18013  if test -f /etc/ld.so.conf; then
18014    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' ' '`
18015    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18016  fi
18017
18018  # We used to test for /lib/ld.so.1 and disable shared libraries on
18019  # powerpc, because MkLinux only supported shared libraries with the
18020  # GNU dynamic linker.  Since this was broken with cross compilers,
18021  # most powerpc-linux boxes support dynamic linking these days and
18022  # people can always --disable-shared, the test was removed, and we
18023  # assume the GNU/Linux dynamic linker is in use.
18024  dynamic_linker='GNU/Linux ld.so'
18025  ;;
18026
18027netbsd*)
18028  version_type=sunos
18029  need_lib_prefix=no
18030  need_version=no
18031  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18032    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18033    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18034    dynamic_linker='NetBSD (a.out) ld.so'
18035  else
18036    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18037    soname_spec='${libname}${release}${shared_ext}$major'
18038    dynamic_linker='NetBSD ld.elf_so'
18039  fi
18040  shlibpath_var=LD_LIBRARY_PATH
18041  shlibpath_overrides_runpath=yes
18042  hardcode_into_libs=yes
18043  ;;
18044
18045newsos6)
18046  version_type=linux
18047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048  shlibpath_var=LD_LIBRARY_PATH
18049  shlibpath_overrides_runpath=yes
18050  ;;
18051
18052*nto* | *qnx*)
18053  version_type=qnx
18054  need_lib_prefix=no
18055  need_version=no
18056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18057  soname_spec='${libname}${release}${shared_ext}$major'
18058  shlibpath_var=LD_LIBRARY_PATH
18059  shlibpath_overrides_runpath=no
18060  hardcode_into_libs=yes
18061  dynamic_linker='ldqnx.so'
18062  ;;
18063
18064openbsd*)
18065  version_type=sunos
18066  sys_lib_dlsearch_path_spec="/usr/lib"
18067  need_lib_prefix=no
18068  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18069  case $host_os in
18070    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
18071    *)				need_version=no  ;;
18072  esac
18073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18074  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18075  shlibpath_var=LD_LIBRARY_PATH
18076  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18077    case $host_os in
18078      openbsd2.[89] | openbsd2.[89].*)
18079	shlibpath_overrides_runpath=no
18080	;;
18081      *)
18082	shlibpath_overrides_runpath=yes
18083	;;
18084      esac
18085  else
18086    shlibpath_overrides_runpath=yes
18087  fi
18088  ;;
18089
18090os2*)
18091  libname_spec='$name'
18092  shrext_cmds=".dll"
18093  need_lib_prefix=no
18094  library_names_spec='$libname${shared_ext} $libname.a'
18095  dynamic_linker='OS/2 ld.exe'
18096  shlibpath_var=LIBPATH
18097  ;;
18098
18099osf3* | osf4* | osf5*)
18100  version_type=osf
18101  need_lib_prefix=no
18102  need_version=no
18103  soname_spec='${libname}${release}${shared_ext}$major'
18104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105  shlibpath_var=LD_LIBRARY_PATH
18106  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18107  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18108  ;;
18109
18110rdos*)
18111  dynamic_linker=no
18112  ;;
18113
18114solaris*)
18115  version_type=linux
18116  need_lib_prefix=no
18117  need_version=no
18118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18119  soname_spec='${libname}${release}${shared_ext}$major'
18120  shlibpath_var=LD_LIBRARY_PATH
18121  shlibpath_overrides_runpath=yes
18122  hardcode_into_libs=yes
18123  # ldd complains unless libraries are executable
18124  postinstall_cmds='chmod +x $lib'
18125  ;;
18126
18127sunos4*)
18128  version_type=sunos
18129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18130  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18131  shlibpath_var=LD_LIBRARY_PATH
18132  shlibpath_overrides_runpath=yes
18133  if test "$with_gnu_ld" = yes; then
18134    need_lib_prefix=no
18135  fi
18136  need_version=yes
18137  ;;
18138
18139sysv4 | sysv4.3*)
18140  version_type=linux
18141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18142  soname_spec='${libname}${release}${shared_ext}$major'
18143  shlibpath_var=LD_LIBRARY_PATH
18144  case $host_vendor in
18145    sni)
18146      shlibpath_overrides_runpath=no
18147      need_lib_prefix=no
18148      runpath_var=LD_RUN_PATH
18149      ;;
18150    siemens)
18151      need_lib_prefix=no
18152      ;;
18153    motorola)
18154      need_lib_prefix=no
18155      need_version=no
18156      shlibpath_overrides_runpath=no
18157      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18158      ;;
18159  esac
18160  ;;
18161
18162sysv4*MP*)
18163  if test -d /usr/nec ;then
18164    version_type=linux
18165    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18166    soname_spec='$libname${shared_ext}.$major'
18167    shlibpath_var=LD_LIBRARY_PATH
18168  fi
18169  ;;
18170
18171sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18172  version_type=freebsd-elf
18173  need_lib_prefix=no
18174  need_version=no
18175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18176  soname_spec='${libname}${release}${shared_ext}$major'
18177  shlibpath_var=LD_LIBRARY_PATH
18178  shlibpath_overrides_runpath=yes
18179  hardcode_into_libs=yes
18180  if test "$with_gnu_ld" = yes; then
18181    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18182  else
18183    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18184    case $host_os in
18185      sco3.2v5*)
18186        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18187	;;
18188    esac
18189  fi
18190  sys_lib_dlsearch_path_spec='/usr/lib'
18191  ;;
18192
18193tpf*)
18194  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18195  version_type=linux
18196  need_lib_prefix=no
18197  need_version=no
18198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18199  shlibpath_var=LD_LIBRARY_PATH
18200  shlibpath_overrides_runpath=no
18201  hardcode_into_libs=yes
18202  ;;
18203
18204uts4*)
18205  version_type=linux
18206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18207  soname_spec='${libname}${release}${shared_ext}$major'
18208  shlibpath_var=LD_LIBRARY_PATH
18209  ;;
18210
18211*)
18212  dynamic_linker=no
18213  ;;
18214esac
18215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18216$as_echo "$dynamic_linker" >&6; }
18217test "$dynamic_linker" = no && can_build_shared=no
18218
18219variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18220if test "$GCC" = yes; then
18221  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18222fi
18223
18224if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18225  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18226fi
18227if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18228  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18229fi
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18323$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18324hardcode_action=
18325if test -n "$hardcode_libdir_flag_spec" ||
18326   test -n "$runpath_var" ||
18327   test "X$hardcode_automatic" = "Xyes" ; then
18328
18329  # We can hardcode non-existent directories.
18330  if test "$hardcode_direct" != no &&
18331     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18332     # have to relink, otherwise we might link with an installed library
18333     # when we should be linking with a yet-to-be-installed one
18334     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18335     test "$hardcode_minus_L" != no; then
18336    # Linking always hardcodes the temporary library directory.
18337    hardcode_action=relink
18338  else
18339    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18340    hardcode_action=immediate
18341  fi
18342else
18343  # We cannot hardcode anything, or else we can only hardcode existing
18344  # directories.
18345  hardcode_action=unsupported
18346fi
18347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18348$as_echo "$hardcode_action" >&6; }
18349
18350if test "$hardcode_action" = relink ||
18351   test "$inherit_rpath" = yes; then
18352  # Fast installation is not supported
18353  enable_fast_install=no
18354elif test "$shlibpath_overrides_runpath" = yes ||
18355     test "$enable_shared" = no; then
18356  # Fast installation is not necessary
18357  enable_fast_install=needless
18358fi
18359
18360
18361
18362
18363
18364
18365  if test "x$enable_dlopen" != xyes; then
18366  enable_dlopen=unknown
18367  enable_dlopen_self=unknown
18368  enable_dlopen_self_static=unknown
18369else
18370  lt_cv_dlopen=no
18371  lt_cv_dlopen_libs=
18372
18373  case $host_os in
18374  beos*)
18375    lt_cv_dlopen="load_add_on"
18376    lt_cv_dlopen_libs=
18377    lt_cv_dlopen_self=yes
18378    ;;
18379
18380  mingw* | pw32* | cegcc*)
18381    lt_cv_dlopen="LoadLibrary"
18382    lt_cv_dlopen_libs=
18383    ;;
18384
18385  cygwin*)
18386    lt_cv_dlopen="dlopen"
18387    lt_cv_dlopen_libs=
18388    ;;
18389
18390  darwin*)
18391  # if libdl is installed we need to link against it
18392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18393$as_echo_n "checking for dlopen in -ldl... " >&6; }
18394if ${ac_cv_lib_dl_dlopen+:} false; then :
18395  $as_echo_n "(cached) " >&6
18396else
18397  ac_check_lib_save_LIBS=$LIBS
18398LIBS="-ldl  $LIBS"
18399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400/* end confdefs.h.  */
18401
18402/* Override any GCC internal prototype to avoid an error.
18403   Use char because int might match the return type of a GCC
18404   builtin and then its argument prototype would still apply.  */
18405#ifdef __cplusplus
18406extern "C"
18407#endif
18408char dlopen ();
18409int
18410main ()
18411{
18412return dlopen ();
18413  ;
18414  return 0;
18415}
18416_ACEOF
18417if ac_fn_c_try_link "$LINENO"; then :
18418  ac_cv_lib_dl_dlopen=yes
18419else
18420  ac_cv_lib_dl_dlopen=no
18421fi
18422rm -f core conftest.err conftest.$ac_objext \
18423    conftest$ac_exeext conftest.$ac_ext
18424LIBS=$ac_check_lib_save_LIBS
18425fi
18426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18427$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18428if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18429  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18430else
18431
18432    lt_cv_dlopen="dyld"
18433    lt_cv_dlopen_libs=
18434    lt_cv_dlopen_self=yes
18435
18436fi
18437
18438    ;;
18439
18440  *)
18441    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18442if test "x$ac_cv_func_shl_load" = xyes; then :
18443  lt_cv_dlopen="shl_load"
18444else
18445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18446$as_echo_n "checking for shl_load in -ldld... " >&6; }
18447if ${ac_cv_lib_dld_shl_load+:} false; then :
18448  $as_echo_n "(cached) " >&6
18449else
18450  ac_check_lib_save_LIBS=$LIBS
18451LIBS="-ldld  $LIBS"
18452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18453/* end confdefs.h.  */
18454
18455/* Override any GCC internal prototype to avoid an error.
18456   Use char because int might match the return type of a GCC
18457   builtin and then its argument prototype would still apply.  */
18458#ifdef __cplusplus
18459extern "C"
18460#endif
18461char shl_load ();
18462int
18463main ()
18464{
18465return shl_load ();
18466  ;
18467  return 0;
18468}
18469_ACEOF
18470if ac_fn_c_try_link "$LINENO"; then :
18471  ac_cv_lib_dld_shl_load=yes
18472else
18473  ac_cv_lib_dld_shl_load=no
18474fi
18475rm -f core conftest.err conftest.$ac_objext \
18476    conftest$ac_exeext conftest.$ac_ext
18477LIBS=$ac_check_lib_save_LIBS
18478fi
18479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18480$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18481if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18482  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18483else
18484  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18485if test "x$ac_cv_func_dlopen" = xyes; then :
18486  lt_cv_dlopen="dlopen"
18487else
18488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18489$as_echo_n "checking for dlopen in -ldl... " >&6; }
18490if ${ac_cv_lib_dl_dlopen+:} false; then :
18491  $as_echo_n "(cached) " >&6
18492else
18493  ac_check_lib_save_LIBS=$LIBS
18494LIBS="-ldl  $LIBS"
18495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496/* end confdefs.h.  */
18497
18498/* Override any GCC internal prototype to avoid an error.
18499   Use char because int might match the return type of a GCC
18500   builtin and then its argument prototype would still apply.  */
18501#ifdef __cplusplus
18502extern "C"
18503#endif
18504char dlopen ();
18505int
18506main ()
18507{
18508return dlopen ();
18509  ;
18510  return 0;
18511}
18512_ACEOF
18513if ac_fn_c_try_link "$LINENO"; then :
18514  ac_cv_lib_dl_dlopen=yes
18515else
18516  ac_cv_lib_dl_dlopen=no
18517fi
18518rm -f core conftest.err conftest.$ac_objext \
18519    conftest$ac_exeext conftest.$ac_ext
18520LIBS=$ac_check_lib_save_LIBS
18521fi
18522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18523$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18524if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18525  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18526else
18527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18528$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18529if ${ac_cv_lib_svld_dlopen+:} false; then :
18530  $as_echo_n "(cached) " >&6
18531else
18532  ac_check_lib_save_LIBS=$LIBS
18533LIBS="-lsvld  $LIBS"
18534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535/* end confdefs.h.  */
18536
18537/* Override any GCC internal prototype to avoid an error.
18538   Use char because int might match the return type of a GCC
18539   builtin and then its argument prototype would still apply.  */
18540#ifdef __cplusplus
18541extern "C"
18542#endif
18543char dlopen ();
18544int
18545main ()
18546{
18547return dlopen ();
18548  ;
18549  return 0;
18550}
18551_ACEOF
18552if ac_fn_c_try_link "$LINENO"; then :
18553  ac_cv_lib_svld_dlopen=yes
18554else
18555  ac_cv_lib_svld_dlopen=no
18556fi
18557rm -f core conftest.err conftest.$ac_objext \
18558    conftest$ac_exeext conftest.$ac_ext
18559LIBS=$ac_check_lib_save_LIBS
18560fi
18561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18562$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18563if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18564  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18565else
18566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18567$as_echo_n "checking for dld_link in -ldld... " >&6; }
18568if ${ac_cv_lib_dld_dld_link+:} false; then :
18569  $as_echo_n "(cached) " >&6
18570else
18571  ac_check_lib_save_LIBS=$LIBS
18572LIBS="-ldld  $LIBS"
18573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18574/* end confdefs.h.  */
18575
18576/* Override any GCC internal prototype to avoid an error.
18577   Use char because int might match the return type of a GCC
18578   builtin and then its argument prototype would still apply.  */
18579#ifdef __cplusplus
18580extern "C"
18581#endif
18582char dld_link ();
18583int
18584main ()
18585{
18586return dld_link ();
18587  ;
18588  return 0;
18589}
18590_ACEOF
18591if ac_fn_c_try_link "$LINENO"; then :
18592  ac_cv_lib_dld_dld_link=yes
18593else
18594  ac_cv_lib_dld_dld_link=no
18595fi
18596rm -f core conftest.err conftest.$ac_objext \
18597    conftest$ac_exeext conftest.$ac_ext
18598LIBS=$ac_check_lib_save_LIBS
18599fi
18600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18601$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18602if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18603  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18604fi
18605
18606
18607fi
18608
18609
18610fi
18611
18612
18613fi
18614
18615
18616fi
18617
18618
18619fi
18620
18621    ;;
18622  esac
18623
18624  if test "x$lt_cv_dlopen" != xno; then
18625    enable_dlopen=yes
18626  else
18627    enable_dlopen=no
18628  fi
18629
18630  case $lt_cv_dlopen in
18631  dlopen)
18632    save_CPPFLAGS="$CPPFLAGS"
18633    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18634
18635    save_LDFLAGS="$LDFLAGS"
18636    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18637
18638    save_LIBS="$LIBS"
18639    LIBS="$lt_cv_dlopen_libs $LIBS"
18640
18641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18642$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18643if ${lt_cv_dlopen_self+:} false; then :
18644  $as_echo_n "(cached) " >&6
18645else
18646  	  if test "$cross_compiling" = yes; then :
18647  lt_cv_dlopen_self=cross
18648else
18649  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18650  lt_status=$lt_dlunknown
18651  cat > conftest.$ac_ext <<_LT_EOF
18652#line 18652 "configure"
18653#include "confdefs.h"
18654
18655#if HAVE_DLFCN_H
18656#include <dlfcn.h>
18657#endif
18658
18659#include <stdio.h>
18660
18661#ifdef RTLD_GLOBAL
18662#  define LT_DLGLOBAL		RTLD_GLOBAL
18663#else
18664#  ifdef DL_GLOBAL
18665#    define LT_DLGLOBAL		DL_GLOBAL
18666#  else
18667#    define LT_DLGLOBAL		0
18668#  endif
18669#endif
18670
18671/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18672   find out it does not work in some platform. */
18673#ifndef LT_DLLAZY_OR_NOW
18674#  ifdef RTLD_LAZY
18675#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18676#  else
18677#    ifdef DL_LAZY
18678#      define LT_DLLAZY_OR_NOW		DL_LAZY
18679#    else
18680#      ifdef RTLD_NOW
18681#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18682#      else
18683#        ifdef DL_NOW
18684#          define LT_DLLAZY_OR_NOW	DL_NOW
18685#        else
18686#          define LT_DLLAZY_OR_NOW	0
18687#        endif
18688#      endif
18689#    endif
18690#  endif
18691#endif
18692
18693/* When -fvisbility=hidden is used, assume the code has been annotated
18694   correspondingly for the symbols needed.  */
18695#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18696void fnord () __attribute__((visibility("default")));
18697#endif
18698
18699void fnord () { int i=42; }
18700int main ()
18701{
18702  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18703  int status = $lt_dlunknown;
18704
18705  if (self)
18706    {
18707      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18708      else
18709        {
18710	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18711          else puts (dlerror ());
18712	}
18713      /* dlclose (self); */
18714    }
18715  else
18716    puts (dlerror ());
18717
18718  return status;
18719}
18720_LT_EOF
18721  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18722  (eval $ac_link) 2>&5
18723  ac_status=$?
18724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18725  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18726    (./conftest; exit; ) >&5 2>/dev/null
18727    lt_status=$?
18728    case x$lt_status in
18729      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18730      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18731      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18732    esac
18733  else :
18734    # compilation failed
18735    lt_cv_dlopen_self=no
18736  fi
18737fi
18738rm -fr conftest*
18739
18740
18741fi
18742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18743$as_echo "$lt_cv_dlopen_self" >&6; }
18744
18745    if test "x$lt_cv_dlopen_self" = xyes; then
18746      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18747      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18748$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18749if ${lt_cv_dlopen_self_static+:} false; then :
18750  $as_echo_n "(cached) " >&6
18751else
18752  	  if test "$cross_compiling" = yes; then :
18753  lt_cv_dlopen_self_static=cross
18754else
18755  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18756  lt_status=$lt_dlunknown
18757  cat > conftest.$ac_ext <<_LT_EOF
18758#line 18758 "configure"
18759#include "confdefs.h"
18760
18761#if HAVE_DLFCN_H
18762#include <dlfcn.h>
18763#endif
18764
18765#include <stdio.h>
18766
18767#ifdef RTLD_GLOBAL
18768#  define LT_DLGLOBAL		RTLD_GLOBAL
18769#else
18770#  ifdef DL_GLOBAL
18771#    define LT_DLGLOBAL		DL_GLOBAL
18772#  else
18773#    define LT_DLGLOBAL		0
18774#  endif
18775#endif
18776
18777/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18778   find out it does not work in some platform. */
18779#ifndef LT_DLLAZY_OR_NOW
18780#  ifdef RTLD_LAZY
18781#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18782#  else
18783#    ifdef DL_LAZY
18784#      define LT_DLLAZY_OR_NOW		DL_LAZY
18785#    else
18786#      ifdef RTLD_NOW
18787#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18788#      else
18789#        ifdef DL_NOW
18790#          define LT_DLLAZY_OR_NOW	DL_NOW
18791#        else
18792#          define LT_DLLAZY_OR_NOW	0
18793#        endif
18794#      endif
18795#    endif
18796#  endif
18797#endif
18798
18799/* When -fvisbility=hidden is used, assume the code has been annotated
18800   correspondingly for the symbols needed.  */
18801#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18802void fnord () __attribute__((visibility("default")));
18803#endif
18804
18805void fnord () { int i=42; }
18806int main ()
18807{
18808  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18809  int status = $lt_dlunknown;
18810
18811  if (self)
18812    {
18813      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18814      else
18815        {
18816	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18817          else puts (dlerror ());
18818	}
18819      /* dlclose (self); */
18820    }
18821  else
18822    puts (dlerror ());
18823
18824  return status;
18825}
18826_LT_EOF
18827  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18828  (eval $ac_link) 2>&5
18829  ac_status=$?
18830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18831  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18832    (./conftest; exit; ) >&5 2>/dev/null
18833    lt_status=$?
18834    case x$lt_status in
18835      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18836      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18837      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18838    esac
18839  else :
18840    # compilation failed
18841    lt_cv_dlopen_self_static=no
18842  fi
18843fi
18844rm -fr conftest*
18845
18846
18847fi
18848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18849$as_echo "$lt_cv_dlopen_self_static" >&6; }
18850    fi
18851
18852    CPPFLAGS="$save_CPPFLAGS"
18853    LDFLAGS="$save_LDFLAGS"
18854    LIBS="$save_LIBS"
18855    ;;
18856  esac
18857
18858  case $lt_cv_dlopen_self in
18859  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18860  *) enable_dlopen_self=unknown ;;
18861  esac
18862
18863  case $lt_cv_dlopen_self_static in
18864  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18865  *) enable_dlopen_self_static=unknown ;;
18866  esac
18867fi
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885striplib=
18886old_striplib=
18887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18888$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18889if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18890  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18891  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18893$as_echo "yes" >&6; }
18894else
18895# FIXME - insert some real tests, host_os isn't really good enough
18896  case $host_os in
18897  darwin*)
18898    if test -n "$STRIP" ; then
18899      striplib="$STRIP -x"
18900      old_striplib="$STRIP -S"
18901      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18902$as_echo "yes" >&6; }
18903    else
18904      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18905$as_echo "no" >&6; }
18906    fi
18907    ;;
18908  *)
18909    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18910$as_echo "no" >&6; }
18911    ;;
18912  esac
18913fi
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926  # Report which library types will actually be built
18927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18928$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18930$as_echo "$can_build_shared" >&6; }
18931
18932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18933$as_echo_n "checking whether to build shared libraries... " >&6; }
18934  test "$can_build_shared" = "no" && enable_shared=no
18935
18936  # On AIX, shared libraries and static libraries use the same namespace, and
18937  # are all built from PIC.
18938  case $host_os in
18939  aix3*)
18940    test "$enable_shared" = yes && enable_static=no
18941    if test -n "$RANLIB"; then
18942      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18943      postinstall_cmds='$RANLIB $lib'
18944    fi
18945    ;;
18946
18947  aix[4-9]*)
18948    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18949      test "$enable_shared" = yes && enable_static=no
18950    fi
18951    ;;
18952  esac
18953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18954$as_echo "$enable_shared" >&6; }
18955
18956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18957$as_echo_n "checking whether to build static libraries... " >&6; }
18958  # Make sure either enable_shared or enable_static is yes.
18959  test "$enable_shared" = yes || enable_static=yes
18960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18961$as_echo "$enable_static" >&6; }
18962
18963
18964
18965
18966fi
18967ac_ext=cpp
18968ac_cpp='$CXXCPP $CPPFLAGS'
18969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18972
18973CC="$lt_save_CC"
18974
18975      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18976    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18977    (test "X$CXX" != "Xg++"))) ; then
18978  ac_ext=cpp
18979ac_cpp='$CXXCPP $CPPFLAGS'
18980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18984$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18985if test -z "$CXXCPP"; then
18986  if ${ac_cv_prog_CXXCPP+:} false; then :
18987  $as_echo_n "(cached) " >&6
18988else
18989      # Double quotes because CXXCPP needs to be expanded
18990    for CXXCPP in "$CXX -E" "/lib/cpp"
18991    do
18992      ac_preproc_ok=false
18993for ac_cxx_preproc_warn_flag in '' yes
18994do
18995  # Use a header file that comes with gcc, so configuring glibc
18996  # with a fresh cross-compiler works.
18997  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18998  # <limits.h> exists even on freestanding compilers.
18999  # On the NeXT, cc -E runs the code through the compiler's parser,
19000  # not just through cpp. "Syntax error" is here to catch this case.
19001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19002/* end confdefs.h.  */
19003#ifdef __STDC__
19004# include <limits.h>
19005#else
19006# include <assert.h>
19007#endif
19008		     Syntax error
19009_ACEOF
19010if ac_fn_cxx_try_cpp "$LINENO"; then :
19011
19012else
19013  # Broken: fails on valid input.
19014continue
19015fi
19016rm -f conftest.err conftest.i conftest.$ac_ext
19017
19018  # OK, works on sane cases.  Now check whether nonexistent headers
19019  # can be detected and how.
19020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021/* end confdefs.h.  */
19022#include <ac_nonexistent.h>
19023_ACEOF
19024if ac_fn_cxx_try_cpp "$LINENO"; then :
19025  # Broken: success on invalid input.
19026continue
19027else
19028  # Passes both tests.
19029ac_preproc_ok=:
19030break
19031fi
19032rm -f conftest.err conftest.i conftest.$ac_ext
19033
19034done
19035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19036rm -f conftest.i conftest.err conftest.$ac_ext
19037if $ac_preproc_ok; then :
19038  break
19039fi
19040
19041    done
19042    ac_cv_prog_CXXCPP=$CXXCPP
19043
19044fi
19045  CXXCPP=$ac_cv_prog_CXXCPP
19046else
19047  ac_cv_prog_CXXCPP=$CXXCPP
19048fi
19049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19050$as_echo "$CXXCPP" >&6; }
19051ac_preproc_ok=false
19052for ac_cxx_preproc_warn_flag in '' yes
19053do
19054  # Use a header file that comes with gcc, so configuring glibc
19055  # with a fresh cross-compiler works.
19056  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19057  # <limits.h> exists even on freestanding compilers.
19058  # On the NeXT, cc -E runs the code through the compiler's parser,
19059  # not just through cpp. "Syntax error" is here to catch this case.
19060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061/* end confdefs.h.  */
19062#ifdef __STDC__
19063# include <limits.h>
19064#else
19065# include <assert.h>
19066#endif
19067		     Syntax error
19068_ACEOF
19069if ac_fn_cxx_try_cpp "$LINENO"; then :
19070
19071else
19072  # Broken: fails on valid input.
19073continue
19074fi
19075rm -f conftest.err conftest.i conftest.$ac_ext
19076
19077  # OK, works on sane cases.  Now check whether nonexistent headers
19078  # can be detected and how.
19079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19080/* end confdefs.h.  */
19081#include <ac_nonexistent.h>
19082_ACEOF
19083if ac_fn_cxx_try_cpp "$LINENO"; then :
19084  # Broken: success on invalid input.
19085continue
19086else
19087  # Passes both tests.
19088ac_preproc_ok=:
19089break
19090fi
19091rm -f conftest.err conftest.i conftest.$ac_ext
19092
19093done
19094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19095rm -f conftest.i conftest.err conftest.$ac_ext
19096if $ac_preproc_ok; then :
19097
19098else
19099  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19101as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19102See \`config.log' for more details" "$LINENO" 5; }
19103fi
19104
19105ac_ext=cpp
19106ac_cpp='$CXXCPP $CPPFLAGS'
19107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19110
19111else
19112  _lt_caught_CXX_error=yes
19113fi
19114
19115ac_ext=cpp
19116ac_cpp='$CXXCPP $CPPFLAGS'
19117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19120
19121archive_cmds_need_lc_CXX=no
19122allow_undefined_flag_CXX=
19123always_export_symbols_CXX=no
19124archive_expsym_cmds_CXX=
19125compiler_needs_object_CXX=no
19126export_dynamic_flag_spec_CXX=
19127hardcode_direct_CXX=no
19128hardcode_direct_absolute_CXX=no
19129hardcode_libdir_flag_spec_CXX=
19130hardcode_libdir_flag_spec_ld_CXX=
19131hardcode_libdir_separator_CXX=
19132hardcode_minus_L_CXX=no
19133hardcode_shlibpath_var_CXX=unsupported
19134hardcode_automatic_CXX=no
19135inherit_rpath_CXX=no
19136module_cmds_CXX=
19137module_expsym_cmds_CXX=
19138link_all_deplibs_CXX=unknown
19139old_archive_cmds_CXX=$old_archive_cmds
19140reload_flag_CXX=$reload_flag
19141reload_cmds_CXX=$reload_cmds
19142no_undefined_flag_CXX=
19143whole_archive_flag_spec_CXX=
19144enable_shared_with_static_runtimes_CXX=no
19145
19146# Source file extension for C++ test sources.
19147ac_ext=cpp
19148
19149# Object file extension for compiled C++ test sources.
19150objext=o
19151objext_CXX=$objext
19152
19153# No sense in running all these tests if we already determined that
19154# the CXX compiler isn't working.  Some variables (like enable_shared)
19155# are currently assumed to apply to all compilers on this platform,
19156# and will be corrupted by setting them based on a non-working compiler.
19157if test "$_lt_caught_CXX_error" != yes; then
19158  # Code to be used in simple compile tests
19159  lt_simple_compile_test_code="int some_variable = 0;"
19160
19161  # Code to be used in simple link tests
19162  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19163
19164  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19165
19166
19167
19168
19169
19170
19171# If no C compiler was specified, use CC.
19172LTCC=${LTCC-"$CC"}
19173
19174# If no C compiler flags were specified, use CFLAGS.
19175LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19176
19177# Allow CC to be a program name with arguments.
19178compiler=$CC
19179
19180
19181  # save warnings/boilerplate of simple test code
19182  ac_outfile=conftest.$ac_objext
19183echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19184eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19185_lt_compiler_boilerplate=`cat conftest.err`
19186$RM conftest*
19187
19188  ac_outfile=conftest.$ac_objext
19189echo "$lt_simple_link_test_code" >conftest.$ac_ext
19190eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19191_lt_linker_boilerplate=`cat conftest.err`
19192$RM -r conftest*
19193
19194
19195  # Allow CC to be a program name with arguments.
19196  lt_save_CC=$CC
19197  lt_save_LD=$LD
19198  lt_save_GCC=$GCC
19199  GCC=$GXX
19200  lt_save_with_gnu_ld=$with_gnu_ld
19201  lt_save_path_LD=$lt_cv_path_LD
19202  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19203    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19204  else
19205    $as_unset lt_cv_prog_gnu_ld
19206  fi
19207  if test -n "${lt_cv_path_LDCXX+set}"; then
19208    lt_cv_path_LD=$lt_cv_path_LDCXX
19209  else
19210    $as_unset lt_cv_path_LD
19211  fi
19212  test -z "${LDCXX+set}" || LD=$LDCXX
19213  CC=${CXX-"c++"}
19214  compiler=$CC
19215  compiler_CXX=$CC
19216  for cc_temp in $compiler""; do
19217  case $cc_temp in
19218    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19219    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19220    \-*) ;;
19221    *) break;;
19222  esac
19223done
19224cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19225
19226
19227  if test -n "$compiler"; then
19228    # We don't want -fno-exception when compiling C++ code, so set the
19229    # no_builtin_flag separately
19230    if test "$GXX" = yes; then
19231      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19232    else
19233      lt_prog_compiler_no_builtin_flag_CXX=
19234    fi
19235
19236    if test "$GXX" = yes; then
19237      # Set up default GNU C++ configuration
19238
19239
19240
19241# Check whether --with-gnu-ld was given.
19242if test "${with_gnu_ld+set}" = set; then :
19243  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19244else
19245  with_gnu_ld=no
19246fi
19247
19248ac_prog=ld
19249if test "$GCC" = yes; then
19250  # Check if gcc -print-prog-name=ld gives a path.
19251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19252$as_echo_n "checking for ld used by $CC... " >&6; }
19253  case $host in
19254  *-*-mingw*)
19255    # gcc leaves a trailing carriage return which upsets mingw
19256    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19257  *)
19258    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19259  esac
19260  case $ac_prog in
19261    # Accept absolute paths.
19262    [\\/]* | ?:[\\/]*)
19263      re_direlt='/[^/][^/]*/\.\./'
19264      # Canonicalize the pathname of ld
19265      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19266      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19267	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19268      done
19269      test -z "$LD" && LD="$ac_prog"
19270      ;;
19271  "")
19272    # If it fails, then pretend we aren't using GCC.
19273    ac_prog=ld
19274    ;;
19275  *)
19276    # If it is relative, then search for the first ld in PATH.
19277    with_gnu_ld=unknown
19278    ;;
19279  esac
19280elif test "$with_gnu_ld" = yes; then
19281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19282$as_echo_n "checking for GNU ld... " >&6; }
19283else
19284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19285$as_echo_n "checking for non-GNU ld... " >&6; }
19286fi
19287if ${lt_cv_path_LD+:} false; then :
19288  $as_echo_n "(cached) " >&6
19289else
19290  if test -z "$LD"; then
19291  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19292  for ac_dir in $PATH; do
19293    IFS="$lt_save_ifs"
19294    test -z "$ac_dir" && ac_dir=.
19295    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19296      lt_cv_path_LD="$ac_dir/$ac_prog"
19297      # Check to see if the program is GNU ld.  I'd rather use --version,
19298      # but apparently some variants of GNU ld only accept -v.
19299      # Break only if it was the GNU/non-GNU ld that we prefer.
19300      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19301      *GNU* | *'with BFD'*)
19302	test "$with_gnu_ld" != no && break
19303	;;
19304      *)
19305	test "$with_gnu_ld" != yes && break
19306	;;
19307      esac
19308    fi
19309  done
19310  IFS="$lt_save_ifs"
19311else
19312  lt_cv_path_LD="$LD" # Let the user override the test with a path.
19313fi
19314fi
19315
19316LD="$lt_cv_path_LD"
19317if test -n "$LD"; then
19318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19319$as_echo "$LD" >&6; }
19320else
19321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322$as_echo "no" >&6; }
19323fi
19324test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19326$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19327if ${lt_cv_prog_gnu_ld+:} false; then :
19328  $as_echo_n "(cached) " >&6
19329else
19330  # I'd rather use --version here, but apparently some GNU lds only accept -v.
19331case `$LD -v 2>&1 </dev/null` in
19332*GNU* | *'with BFD'*)
19333  lt_cv_prog_gnu_ld=yes
19334  ;;
19335*)
19336  lt_cv_prog_gnu_ld=no
19337  ;;
19338esac
19339fi
19340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19341$as_echo "$lt_cv_prog_gnu_ld" >&6; }
19342with_gnu_ld=$lt_cv_prog_gnu_ld
19343
19344
19345
19346
19347
19348
19349
19350      # Check if GNU C++ uses GNU ld as the underlying linker, since the
19351      # archiving commands below assume that GNU ld is being used.
19352      if test "$with_gnu_ld" = yes; then
19353        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19354        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'
19355
19356        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19357        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19358
19359        # If archive_cmds runs LD, not CC, wlarc should be empty
19360        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19361        #     investigate it a little bit more. (MM)
19362        wlarc='${wl}'
19363
19364        # ancient GNU ld didn't support --whole-archive et. al.
19365        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19366	  $GREP 'no-whole-archive' > /dev/null; then
19367          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19368        else
19369          whole_archive_flag_spec_CXX=
19370        fi
19371      else
19372        with_gnu_ld=no
19373        wlarc=
19374
19375        # A generic and very simple default shared library creation
19376        # command for GNU C++ for the case where it uses the native
19377        # linker, instead of GNU ld.  If possible, this setting should
19378        # overridden to take advantage of the native linker features on
19379        # the platform it is being used on.
19380        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19381      fi
19382
19383      # Commands to make compiler produce verbose output that lists
19384      # what "hidden" libraries, object files and flags are used when
19385      # linking a shared library.
19386      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19387
19388    else
19389      GXX=no
19390      with_gnu_ld=no
19391      wlarc=
19392    fi
19393
19394    # PORTME: fill in a description of your system's C++ link characteristics
19395    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19396$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19397    ld_shlibs_CXX=yes
19398    case $host_os in
19399      aix3*)
19400        # FIXME: insert proper C++ library support
19401        ld_shlibs_CXX=no
19402        ;;
19403      aix[4-9]*)
19404        if test "$host_cpu" = ia64; then
19405          # On IA64, the linker does run time linking by default, so we don't
19406          # have to do anything special.
19407          aix_use_runtimelinking=no
19408          exp_sym_flag='-Bexport'
19409          no_entry_flag=""
19410        else
19411          aix_use_runtimelinking=no
19412
19413          # Test if we are trying to use run time linking or normal
19414          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19415          # need to do runtime linking.
19416          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19417	    for ld_flag in $LDFLAGS; do
19418	      case $ld_flag in
19419	      *-brtl*)
19420	        aix_use_runtimelinking=yes
19421	        break
19422	        ;;
19423	      esac
19424	    done
19425	    ;;
19426          esac
19427
19428          exp_sym_flag='-bexport'
19429          no_entry_flag='-bnoentry'
19430        fi
19431
19432        # When large executables or shared objects are built, AIX ld can
19433        # have problems creating the table of contents.  If linking a library
19434        # or program results in "error TOC overflow" add -mminimal-toc to
19435        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19436        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19437
19438        archive_cmds_CXX=''
19439        hardcode_direct_CXX=yes
19440        hardcode_direct_absolute_CXX=yes
19441        hardcode_libdir_separator_CXX=':'
19442        link_all_deplibs_CXX=yes
19443        file_list_spec_CXX='${wl}-f,'
19444
19445        if test "$GXX" = yes; then
19446          case $host_os in aix4.[012]|aix4.[012].*)
19447          # We only want to do this on AIX 4.2 and lower, the check
19448          # below for broken collect2 doesn't work under 4.3+
19449	  collect2name=`${CC} -print-prog-name=collect2`
19450	  if test -f "$collect2name" &&
19451	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19452	  then
19453	    # We have reworked collect2
19454	    :
19455	  else
19456	    # We have old collect2
19457	    hardcode_direct_CXX=unsupported
19458	    # It fails to find uninstalled libraries when the uninstalled
19459	    # path is not listed in the libpath.  Setting hardcode_minus_L
19460	    # to unsupported forces relinking
19461	    hardcode_minus_L_CXX=yes
19462	    hardcode_libdir_flag_spec_CXX='-L$libdir'
19463	    hardcode_libdir_separator_CXX=
19464	  fi
19465          esac
19466          shared_flag='-shared'
19467	  if test "$aix_use_runtimelinking" = yes; then
19468	    shared_flag="$shared_flag "'${wl}-G'
19469	  fi
19470        else
19471          # not using gcc
19472          if test "$host_cpu" = ia64; then
19473	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19474	  # chokes on -Wl,-G. The following line is correct:
19475	  shared_flag='-G'
19476          else
19477	    if test "$aix_use_runtimelinking" = yes; then
19478	      shared_flag='${wl}-G'
19479	    else
19480	      shared_flag='${wl}-bM:SRE'
19481	    fi
19482          fi
19483        fi
19484
19485        export_dynamic_flag_spec_CXX='${wl}-bexpall'
19486        # It seems that -bexpall does not export symbols beginning with
19487        # underscore (_), so it is better to generate a list of symbols to
19488	# export.
19489        always_export_symbols_CXX=yes
19490        if test "$aix_use_runtimelinking" = yes; then
19491          # Warning - without using the other runtime loading flags (-brtl),
19492          # -berok will link without error, but may produce a broken library.
19493          allow_undefined_flag_CXX='-berok'
19494          # Determine the default libpath from the value encoded in an empty
19495          # executable.
19496          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19497/* end confdefs.h.  */
19498
19499int
19500main ()
19501{
19502
19503  ;
19504  return 0;
19505}
19506_ACEOF
19507if ac_fn_cxx_try_link "$LINENO"; then :
19508
19509lt_aix_libpath_sed='
19510    /Import File Strings/,/^$/ {
19511	/^0/ {
19512	    s/^0  *\(.*\)$/\1/
19513	    p
19514	}
19515    }'
19516aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19517# Check for a 64-bit object if we didn't find anything.
19518if test -z "$aix_libpath"; then
19519  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19520fi
19521fi
19522rm -f core conftest.err conftest.$ac_objext \
19523    conftest$ac_exeext conftest.$ac_ext
19524if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19525
19526          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19527
19528          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"
19529        else
19530          if test "$host_cpu" = ia64; then
19531	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19532	    allow_undefined_flag_CXX="-z nodefs"
19533	    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"
19534          else
19535	    # Determine the default libpath from the value encoded in an
19536	    # empty executable.
19537	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19538/* end confdefs.h.  */
19539
19540int
19541main ()
19542{
19543
19544  ;
19545  return 0;
19546}
19547_ACEOF
19548if ac_fn_cxx_try_link "$LINENO"; then :
19549
19550lt_aix_libpath_sed='
19551    /Import File Strings/,/^$/ {
19552	/^0/ {
19553	    s/^0  *\(.*\)$/\1/
19554	    p
19555	}
19556    }'
19557aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19558# Check for a 64-bit object if we didn't find anything.
19559if test -z "$aix_libpath"; then
19560  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19561fi
19562fi
19563rm -f core conftest.err conftest.$ac_objext \
19564    conftest$ac_exeext conftest.$ac_ext
19565if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19566
19567	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19568	    # Warning - without using the other run time loading flags,
19569	    # -berok will link without error, but may produce a broken library.
19570	    no_undefined_flag_CXX=' ${wl}-bernotok'
19571	    allow_undefined_flag_CXX=' ${wl}-berok'
19572	    if test "$with_gnu_ld" = yes; then
19573	      # We only use this code for GNU lds that support --whole-archive.
19574	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19575	    else
19576	      # Exported symbols can be pulled into shared objects from archives
19577	      whole_archive_flag_spec_CXX='$convenience'
19578	    fi
19579	    archive_cmds_need_lc_CXX=yes
19580	    # This is similar to how AIX traditionally builds its shared
19581	    # libraries.
19582	    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'
19583          fi
19584        fi
19585        ;;
19586
19587      beos*)
19588	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19589	  allow_undefined_flag_CXX=unsupported
19590	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19591	  # support --undefined.  This deserves some investigation.  FIXME
19592	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19593	else
19594	  ld_shlibs_CXX=no
19595	fi
19596	;;
19597
19598      chorus*)
19599        case $cc_basename in
19600          *)
19601	  # FIXME: insert proper C++ library support
19602	  ld_shlibs_CXX=no
19603	  ;;
19604        esac
19605        ;;
19606
19607      cygwin* | mingw* | pw32* | cegcc*)
19608        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19609        # as there is no search path for DLLs.
19610        hardcode_libdir_flag_spec_CXX='-L$libdir'
19611        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19612        allow_undefined_flag_CXX=unsupported
19613        always_export_symbols_CXX=no
19614        enable_shared_with_static_runtimes_CXX=yes
19615
19616        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19617          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'
19618          # If the export-symbols file already is a .def file (1st line
19619          # is EXPORTS), use it as is; otherwise, prepend...
19620          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19621	    cp $export_symbols $output_objdir/$soname.def;
19622          else
19623	    echo EXPORTS > $output_objdir/$soname.def;
19624	    cat $export_symbols >> $output_objdir/$soname.def;
19625          fi~
19626          $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'
19627        else
19628          ld_shlibs_CXX=no
19629        fi
19630        ;;
19631      darwin* | rhapsody*)
19632
19633
19634  archive_cmds_need_lc_CXX=no
19635  hardcode_direct_CXX=no
19636  hardcode_automatic_CXX=yes
19637  hardcode_shlibpath_var_CXX=unsupported
19638  if test "$lt_cv_ld_force_load" = "yes"; then
19639    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\"`'
19640  else
19641    whole_archive_flag_spec_CXX=''
19642  fi
19643  link_all_deplibs_CXX=yes
19644  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19645  case $cc_basename in
19646     ifort*) _lt_dar_can_shared=yes ;;
19647     *) _lt_dar_can_shared=$GCC ;;
19648  esac
19649  if test "$_lt_dar_can_shared" = "yes"; then
19650    output_verbose_link_cmd=func_echo_all
19651    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}"
19652    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19653    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}"
19654    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}"
19655       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19656      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}"
19657      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}"
19658    fi
19659
19660  else
19661  ld_shlibs_CXX=no
19662  fi
19663
19664	;;
19665
19666      dgux*)
19667        case $cc_basename in
19668          ec++*)
19669	    # FIXME: insert proper C++ library support
19670	    ld_shlibs_CXX=no
19671	    ;;
19672          ghcx*)
19673	    # Green Hills C++ Compiler
19674	    # FIXME: insert proper C++ library support
19675	    ld_shlibs_CXX=no
19676	    ;;
19677          *)
19678	    # FIXME: insert proper C++ library support
19679	    ld_shlibs_CXX=no
19680	    ;;
19681        esac
19682        ;;
19683
19684      freebsd2.*)
19685        # C++ shared libraries reported to be fairly broken before
19686	# switch to ELF
19687        ld_shlibs_CXX=no
19688        ;;
19689
19690      freebsd-elf*)
19691        archive_cmds_need_lc_CXX=no
19692        ;;
19693
19694      freebsd* | dragonfly*)
19695        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19696        # conventions
19697        ld_shlibs_CXX=yes
19698        ;;
19699
19700      gnu*)
19701        ;;
19702
19703      haiku*)
19704        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19705        link_all_deplibs_CXX=yes
19706        ;;
19707
19708      hpux9*)
19709        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19710        hardcode_libdir_separator_CXX=:
19711        export_dynamic_flag_spec_CXX='${wl}-E'
19712        hardcode_direct_CXX=yes
19713        hardcode_minus_L_CXX=yes # Not in the search PATH,
19714				             # but as the default
19715				             # location of the library.
19716
19717        case $cc_basename in
19718          CC*)
19719            # FIXME: insert proper C++ library support
19720            ld_shlibs_CXX=no
19721            ;;
19722          aCC*)
19723            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'
19724            # Commands to make compiler produce verbose output that lists
19725            # what "hidden" libraries, object files and flags are used when
19726            # linking a shared library.
19727            #
19728            # There doesn't appear to be a way to prevent this compiler from
19729            # explicitly linking system object files so we need to strip them
19730            # from the output so that they don't get included in the library
19731            # dependencies.
19732            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"'
19733            ;;
19734          *)
19735            if test "$GXX" = yes; then
19736              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'
19737            else
19738              # FIXME: insert proper C++ library support
19739              ld_shlibs_CXX=no
19740            fi
19741            ;;
19742        esac
19743        ;;
19744
19745      hpux10*|hpux11*)
19746        if test $with_gnu_ld = no; then
19747	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19748	  hardcode_libdir_separator_CXX=:
19749
19750          case $host_cpu in
19751            hppa*64*|ia64*)
19752              ;;
19753            *)
19754	      export_dynamic_flag_spec_CXX='${wl}-E'
19755              ;;
19756          esac
19757        fi
19758        case $host_cpu in
19759          hppa*64*|ia64*)
19760            hardcode_direct_CXX=no
19761            hardcode_shlibpath_var_CXX=no
19762            ;;
19763          *)
19764            hardcode_direct_CXX=yes
19765            hardcode_direct_absolute_CXX=yes
19766            hardcode_minus_L_CXX=yes # Not in the search PATH,
19767					         # but as the default
19768					         # location of the library.
19769            ;;
19770        esac
19771
19772        case $cc_basename in
19773          CC*)
19774	    # FIXME: insert proper C++ library support
19775	    ld_shlibs_CXX=no
19776	    ;;
19777          aCC*)
19778	    case $host_cpu in
19779	      hppa*64*)
19780	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19781	        ;;
19782	      ia64*)
19783	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19784	        ;;
19785	      *)
19786	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19787	        ;;
19788	    esac
19789	    # Commands to make compiler produce verbose output that lists
19790	    # what "hidden" libraries, object files and flags are used when
19791	    # linking a shared library.
19792	    #
19793	    # There doesn't appear to be a way to prevent this compiler from
19794	    # explicitly linking system object files so we need to strip them
19795	    # from the output so that they don't get included in the library
19796	    # dependencies.
19797	    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"'
19798	    ;;
19799          *)
19800	    if test "$GXX" = yes; then
19801	      if test $with_gnu_ld = no; then
19802	        case $host_cpu in
19803	          hppa*64*)
19804	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19805	            ;;
19806	          ia64*)
19807	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19808	            ;;
19809	          *)
19810	            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'
19811	            ;;
19812	        esac
19813	      fi
19814	    else
19815	      # FIXME: insert proper C++ library support
19816	      ld_shlibs_CXX=no
19817	    fi
19818	    ;;
19819        esac
19820        ;;
19821
19822      interix[3-9]*)
19823	hardcode_direct_CXX=no
19824	hardcode_shlibpath_var_CXX=no
19825	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19826	export_dynamic_flag_spec_CXX='${wl}-E'
19827	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19828	# Instead, shared libraries are loaded at an image base (0x10000000 by
19829	# default) and relocated if they conflict, which is a slow very memory
19830	# consuming and fragmenting process.  To avoid this, we pick a random,
19831	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19832	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19833	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'
19834	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'
19835	;;
19836      irix5* | irix6*)
19837        case $cc_basename in
19838          CC*)
19839	    # SGI C++
19840	    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'
19841
19842	    # Archives containing C++ object files must be created using
19843	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19844	    # necessary to make sure instantiated templates are included
19845	    # in the archive.
19846	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19847	    ;;
19848          *)
19849	    if test "$GXX" = yes; then
19850	      if test "$with_gnu_ld" = no; then
19851	        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'
19852	      else
19853	        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'
19854	      fi
19855	    fi
19856	    link_all_deplibs_CXX=yes
19857	    ;;
19858        esac
19859        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19860        hardcode_libdir_separator_CXX=:
19861        inherit_rpath_CXX=yes
19862        ;;
19863
19864      linux* | k*bsd*-gnu | kopensolaris*-gnu)
19865        case $cc_basename in
19866          KCC*)
19867	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19868
19869	    # KCC will only create a shared library if the output file
19870	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19871	    # to its proper name (with version) after linking.
19872	    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'
19873	    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'
19874	    # Commands to make compiler produce verbose output that lists
19875	    # what "hidden" libraries, object files and flags are used when
19876	    # linking a shared library.
19877	    #
19878	    # There doesn't appear to be a way to prevent this compiler from
19879	    # explicitly linking system object files so we need to strip them
19880	    # from the output so that they don't get included in the library
19881	    # dependencies.
19882	    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"'
19883
19884	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19885	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19886
19887	    # Archives containing C++ object files must be created using
19888	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19889	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19890	    ;;
19891	  icpc* | ecpc* )
19892	    # Intel C++
19893	    with_gnu_ld=yes
19894	    # version 8.0 and above of icpc choke on multiply defined symbols
19895	    # if we add $predep_objects and $postdep_objects, however 7.1 and
19896	    # earlier do not add the objects themselves.
19897	    case `$CC -V 2>&1` in
19898	      *"Version 7."*)
19899	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19900		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'
19901		;;
19902	      *)  # Version 8.0 or newer
19903	        tmp_idyn=
19904	        case $host_cpu in
19905		  ia64*) tmp_idyn=' -i_dynamic';;
19906		esac
19907	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19908		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'
19909		;;
19910	    esac
19911	    archive_cmds_need_lc_CXX=no
19912	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19913	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19914	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19915	    ;;
19916          pgCC* | pgcpp*)
19917            # Portland Group C++ compiler
19918	    case `$CC -V` in
19919	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19920	      prelink_cmds_CXX='tpldir=Template.dir~
19921		rm -rf $tpldir~
19922		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19923		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19924	      old_archive_cmds_CXX='tpldir=Template.dir~
19925		rm -rf $tpldir~
19926		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19927		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19928		$RANLIB $oldlib'
19929	      archive_cmds_CXX='tpldir=Template.dir~
19930		rm -rf $tpldir~
19931		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19932		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19933	      archive_expsym_cmds_CXX='tpldir=Template.dir~
19934		rm -rf $tpldir~
19935		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19936		$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'
19937	      ;;
19938	    *) # Version 6 and above use weak symbols
19939	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19940	      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'
19941	      ;;
19942	    esac
19943
19944	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19945	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19946	    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'
19947            ;;
19948	  cxx*)
19949	    # Compaq C++
19950	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19951	    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'
19952
19953	    runpath_var=LD_RUN_PATH
19954	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19955	    hardcode_libdir_separator_CXX=:
19956
19957	    # Commands to make compiler produce verbose output that lists
19958	    # what "hidden" libraries, object files and flags are used when
19959	    # linking a shared library.
19960	    #
19961	    # There doesn't appear to be a way to prevent this compiler from
19962	    # explicitly linking system object files so we need to strip them
19963	    # from the output so that they don't get included in the library
19964	    # dependencies.
19965	    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'
19966	    ;;
19967	  xl* | mpixl* | bgxl*)
19968	    # IBM XL 8.0 on PPC, with GNU ld
19969	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19970	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19971	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19972	    if test "x$supports_anon_versioning" = xyes; then
19973	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19974		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19975		echo "local: *; };" >> $output_objdir/$libname.ver~
19976		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19977	    fi
19978	    ;;
19979	  *)
19980	    case `$CC -V 2>&1 | sed 5q` in
19981	    *Sun\ C*)
19982	      # Sun C++ 5.9
19983	      no_undefined_flag_CXX=' -zdefs'
19984	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19985	      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'
19986	      hardcode_libdir_flag_spec_CXX='-R$libdir'
19987	      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'
19988	      compiler_needs_object_CXX=yes
19989
19990	      # Not sure whether something based on
19991	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19992	      # would be better.
19993	      output_verbose_link_cmd='func_echo_all'
19994
19995	      # Archives containing C++ object files must be created using
19996	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19997	      # necessary to make sure instantiated templates are included
19998	      # in the archive.
19999	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20000	      ;;
20001	    esac
20002	    ;;
20003	esac
20004	;;
20005
20006      lynxos*)
20007        # FIXME: insert proper C++ library support
20008	ld_shlibs_CXX=no
20009	;;
20010
20011      m88k*)
20012        # FIXME: insert proper C++ library support
20013        ld_shlibs_CXX=no
20014	;;
20015
20016      mvs*)
20017        case $cc_basename in
20018          cxx*)
20019	    # FIXME: insert proper C++ library support
20020	    ld_shlibs_CXX=no
20021	    ;;
20022	  *)
20023	    # FIXME: insert proper C++ library support
20024	    ld_shlibs_CXX=no
20025	    ;;
20026	esac
20027	;;
20028
20029      netbsd*)
20030        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20031	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20032	  wlarc=
20033	  hardcode_libdir_flag_spec_CXX='-R$libdir'
20034	  hardcode_direct_CXX=yes
20035	  hardcode_shlibpath_var_CXX=no
20036	fi
20037	# Workaround some broken pre-1.5 toolchains
20038	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20039	;;
20040
20041      *nto* | *qnx*)
20042        ld_shlibs_CXX=yes
20043	;;
20044
20045      openbsd2*)
20046        # C++ shared libraries are fairly broken
20047	ld_shlibs_CXX=no
20048	;;
20049
20050      openbsd*)
20051	if test -f /usr/libexec/ld.so; then
20052	  hardcode_direct_CXX=yes
20053	  hardcode_shlibpath_var_CXX=no
20054	  hardcode_direct_absolute_CXX=yes
20055	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20056	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20057	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20058	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20059	    export_dynamic_flag_spec_CXX='${wl}-E'
20060	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20061	  fi
20062	  output_verbose_link_cmd=func_echo_all
20063	else
20064	  ld_shlibs_CXX=no
20065	fi
20066	;;
20067
20068      osf3* | osf4* | osf5*)
20069        case $cc_basename in
20070          KCC*)
20071	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20072
20073	    # KCC will only create a shared library if the output file
20074	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20075	    # to its proper name (with version) after linking.
20076	    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'
20077
20078	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20079	    hardcode_libdir_separator_CXX=:
20080
20081	    # Archives containing C++ object files must be created using
20082	    # the KAI C++ compiler.
20083	    case $host in
20084	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20085	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20086	    esac
20087	    ;;
20088          RCC*)
20089	    # Rational C++ 2.4.1
20090	    # FIXME: insert proper C++ library support
20091	    ld_shlibs_CXX=no
20092	    ;;
20093          cxx*)
20094	    case $host in
20095	      osf3*)
20096	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20097	        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'
20098	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20099		;;
20100	      *)
20101	        allow_undefined_flag_CXX=' -expect_unresolved \*'
20102	        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'
20103	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20104	          echo "-hidden">> $lib.exp~
20105	          $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~
20106	          $RM $lib.exp'
20107	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20108		;;
20109	    esac
20110
20111	    hardcode_libdir_separator_CXX=:
20112
20113	    # Commands to make compiler produce verbose output that lists
20114	    # what "hidden" libraries, object files and flags are used when
20115	    # linking a shared library.
20116	    #
20117	    # There doesn't appear to be a way to prevent this compiler from
20118	    # explicitly linking system object files so we need to strip them
20119	    # from the output so that they don't get included in the library
20120	    # dependencies.
20121	    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"'
20122	    ;;
20123	  *)
20124	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20125	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20126	      case $host in
20127	        osf3*)
20128	          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'
20129		  ;;
20130	        *)
20131	          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'
20132		  ;;
20133	      esac
20134
20135	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20136	      hardcode_libdir_separator_CXX=:
20137
20138	      # Commands to make compiler produce verbose output that lists
20139	      # what "hidden" libraries, object files and flags are used when
20140	      # linking a shared library.
20141	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20142
20143	    else
20144	      # FIXME: insert proper C++ library support
20145	      ld_shlibs_CXX=no
20146	    fi
20147	    ;;
20148        esac
20149        ;;
20150
20151      psos*)
20152        # FIXME: insert proper C++ library support
20153        ld_shlibs_CXX=no
20154        ;;
20155
20156      sunos4*)
20157        case $cc_basename in
20158          CC*)
20159	    # Sun C++ 4.x
20160	    # FIXME: insert proper C++ library support
20161	    ld_shlibs_CXX=no
20162	    ;;
20163          lcc*)
20164	    # Lucid
20165	    # FIXME: insert proper C++ library support
20166	    ld_shlibs_CXX=no
20167	    ;;
20168          *)
20169	    # FIXME: insert proper C++ library support
20170	    ld_shlibs_CXX=no
20171	    ;;
20172        esac
20173        ;;
20174
20175      solaris*)
20176        case $cc_basename in
20177          CC*)
20178	    # Sun C++ 4.2, 5.x and Centerline C++
20179            archive_cmds_need_lc_CXX=yes
20180	    no_undefined_flag_CXX=' -zdefs'
20181	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20182	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20183	      $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'
20184
20185	    hardcode_libdir_flag_spec_CXX='-R$libdir'
20186	    hardcode_shlibpath_var_CXX=no
20187	    case $host_os in
20188	      solaris2.[0-5] | solaris2.[0-5].*) ;;
20189	      *)
20190		# The compiler driver will combine and reorder linker options,
20191		# but understands `-z linker_flag'.
20192	        # Supported since Solaris 2.6 (maybe 2.5.1?)
20193		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20194	        ;;
20195	    esac
20196	    link_all_deplibs_CXX=yes
20197
20198	    output_verbose_link_cmd='func_echo_all'
20199
20200	    # Archives containing C++ object files must be created using
20201	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20202	    # necessary to make sure instantiated templates are included
20203	    # in the archive.
20204	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20205	    ;;
20206          gcx*)
20207	    # Green Hills C++ Compiler
20208	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20209
20210	    # The C++ compiler must be used to create the archive.
20211	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20212	    ;;
20213          *)
20214	    # GNU C++ compiler with Solaris linker
20215	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20216	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20217	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20218	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20219	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20220		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20221
20222	        # Commands to make compiler produce verbose output that lists
20223	        # what "hidden" libraries, object files and flags are used when
20224	        # linking a shared library.
20225	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20226	      else
20227	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
20228	        # platform.
20229	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20230	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20231		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20232
20233	        # Commands to make compiler produce verbose output that lists
20234	        # what "hidden" libraries, object files and flags are used when
20235	        # linking a shared library.
20236	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20237	      fi
20238
20239	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20240	      case $host_os in
20241		solaris2.[0-5] | solaris2.[0-5].*) ;;
20242		*)
20243		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20244		  ;;
20245	      esac
20246	    fi
20247	    ;;
20248        esac
20249        ;;
20250
20251    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20252      no_undefined_flag_CXX='${wl}-z,text'
20253      archive_cmds_need_lc_CXX=no
20254      hardcode_shlibpath_var_CXX=no
20255      runpath_var='LD_RUN_PATH'
20256
20257      case $cc_basename in
20258        CC*)
20259	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20260	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20261	  ;;
20262	*)
20263	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20264	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20265	  ;;
20266      esac
20267      ;;
20268
20269      sysv5* | sco3.2v5* | sco5v6*)
20270	# Note: We can NOT use -z defs as we might desire, because we do not
20271	# link with -lc, and that would cause any symbols used from libc to
20272	# always be unresolved, which means just about no library would
20273	# ever link correctly.  If we're not using GNU ld we use -z text
20274	# though, which does catch some bad symbols but isn't as heavy-handed
20275	# as -z defs.
20276	no_undefined_flag_CXX='${wl}-z,text'
20277	allow_undefined_flag_CXX='${wl}-z,nodefs'
20278	archive_cmds_need_lc_CXX=no
20279	hardcode_shlibpath_var_CXX=no
20280	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20281	hardcode_libdir_separator_CXX=':'
20282	link_all_deplibs_CXX=yes
20283	export_dynamic_flag_spec_CXX='${wl}-Bexport'
20284	runpath_var='LD_RUN_PATH'
20285
20286	case $cc_basename in
20287          CC*)
20288	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20289	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20290	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20291	      '"$old_archive_cmds_CXX"
20292	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20293	      '"$reload_cmds_CXX"
20294	    ;;
20295	  *)
20296	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20297	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20298	    ;;
20299	esac
20300      ;;
20301
20302      tandem*)
20303        case $cc_basename in
20304          NCC*)
20305	    # NonStop-UX NCC 3.20
20306	    # FIXME: insert proper C++ library support
20307	    ld_shlibs_CXX=no
20308	    ;;
20309          *)
20310	    # FIXME: insert proper C++ library support
20311	    ld_shlibs_CXX=no
20312	    ;;
20313        esac
20314        ;;
20315
20316      vxworks*)
20317        # FIXME: insert proper C++ library support
20318        ld_shlibs_CXX=no
20319        ;;
20320
20321      *)
20322        # FIXME: insert proper C++ library support
20323        ld_shlibs_CXX=no
20324        ;;
20325    esac
20326
20327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20328$as_echo "$ld_shlibs_CXX" >&6; }
20329    test "$ld_shlibs_CXX" = no && can_build_shared=no
20330
20331    GCC_CXX="$GXX"
20332    LD_CXX="$LD"
20333
20334    ## CAVEAT EMPTOR:
20335    ## There is no encapsulation within the following macros, do not change
20336    ## the running order or otherwise move them around unless you know exactly
20337    ## what you are doing...
20338    # Dependencies to place before and after the object being linked:
20339predep_objects_CXX=
20340postdep_objects_CXX=
20341predeps_CXX=
20342postdeps_CXX=
20343compiler_lib_search_path_CXX=
20344
20345cat > conftest.$ac_ext <<_LT_EOF
20346class Foo
20347{
20348public:
20349  Foo (void) { a = 0; }
20350private:
20351  int a;
20352};
20353_LT_EOF
20354
20355if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20356  (eval $ac_compile) 2>&5
20357  ac_status=$?
20358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20359  test $ac_status = 0; }; then
20360  # Parse the compiler output and extract the necessary
20361  # objects, libraries and library flags.
20362
20363  # Sentinel used to keep track of whether or not we are before
20364  # the conftest object file.
20365  pre_test_object_deps_done=no
20366
20367  for p in `eval "$output_verbose_link_cmd"`; do
20368    case $p in
20369
20370    -L* | -R* | -l*)
20371       # Some compilers place space between "-{L,R}" and the path.
20372       # Remove the space.
20373       if test $p = "-L" ||
20374          test $p = "-R"; then
20375	 prev=$p
20376	 continue
20377       else
20378	 prev=
20379       fi
20380
20381       if test "$pre_test_object_deps_done" = no; then
20382	 case $p in
20383	 -L* | -R*)
20384	   # Internal compiler library paths should come after those
20385	   # provided the user.  The postdeps already come after the
20386	   # user supplied libs so there is no need to process them.
20387	   if test -z "$compiler_lib_search_path_CXX"; then
20388	     compiler_lib_search_path_CXX="${prev}${p}"
20389	   else
20390	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20391	   fi
20392	   ;;
20393	 # The "-l" case would never come before the object being
20394	 # linked, so don't bother handling this case.
20395	 esac
20396       else
20397	 if test -z "$postdeps_CXX"; then
20398	   postdeps_CXX="${prev}${p}"
20399	 else
20400	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20401	 fi
20402       fi
20403       ;;
20404
20405    *.$objext)
20406       # This assumes that the test object file only shows up
20407       # once in the compiler output.
20408       if test "$p" = "conftest.$objext"; then
20409	 pre_test_object_deps_done=yes
20410	 continue
20411       fi
20412
20413       if test "$pre_test_object_deps_done" = no; then
20414	 if test -z "$predep_objects_CXX"; then
20415	   predep_objects_CXX="$p"
20416	 else
20417	   predep_objects_CXX="$predep_objects_CXX $p"
20418	 fi
20419       else
20420	 if test -z "$postdep_objects_CXX"; then
20421	   postdep_objects_CXX="$p"
20422	 else
20423	   postdep_objects_CXX="$postdep_objects_CXX $p"
20424	 fi
20425       fi
20426       ;;
20427
20428    *) ;; # Ignore the rest.
20429
20430    esac
20431  done
20432
20433  # Clean up.
20434  rm -f a.out a.exe
20435else
20436  echo "libtool.m4: error: problem compiling CXX test program"
20437fi
20438
20439$RM -f confest.$objext
20440
20441# PORTME: override above test on systems where it is broken
20442case $host_os in
20443interix[3-9]*)
20444  # Interix 3.5 installs completely hosed .la files for C++, so rather than
20445  # hack all around it, let's just trust "g++" to DTRT.
20446  predep_objects_CXX=
20447  postdep_objects_CXX=
20448  postdeps_CXX=
20449  ;;
20450
20451linux*)
20452  case `$CC -V 2>&1 | sed 5q` in
20453  *Sun\ C*)
20454    # Sun C++ 5.9
20455
20456    # The more standards-conforming stlport4 library is
20457    # incompatible with the Cstd library. Avoid specifying
20458    # it if it's in CXXFLAGS. Ignore libCrun as
20459    # -library=stlport4 depends on it.
20460    case " $CXX $CXXFLAGS " in
20461    *" -library=stlport4 "*)
20462      solaris_use_stlport4=yes
20463      ;;
20464    esac
20465
20466    if test "$solaris_use_stlport4" != yes; then
20467      postdeps_CXX='-library=Cstd -library=Crun'
20468    fi
20469    ;;
20470  esac
20471  ;;
20472
20473solaris*)
20474  case $cc_basename in
20475  CC*)
20476    # The more standards-conforming stlport4 library is
20477    # incompatible with the Cstd library. Avoid specifying
20478    # it if it's in CXXFLAGS. Ignore libCrun as
20479    # -library=stlport4 depends on it.
20480    case " $CXX $CXXFLAGS " in
20481    *" -library=stlport4 "*)
20482      solaris_use_stlport4=yes
20483      ;;
20484    esac
20485
20486    # Adding this requires a known-good setup of shared libraries for
20487    # Sun compiler versions before 5.6, else PIC objects from an old
20488    # archive will be linked into the output, leading to subtle bugs.
20489    if test "$solaris_use_stlport4" != yes; then
20490      postdeps_CXX='-library=Cstd -library=Crun'
20491    fi
20492    ;;
20493  esac
20494  ;;
20495esac
20496
20497
20498case " $postdeps_CXX " in
20499*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20500esac
20501 compiler_lib_search_dirs_CXX=
20502if test -n "${compiler_lib_search_path_CXX}"; then
20503 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20504fi
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536    lt_prog_compiler_wl_CXX=
20537lt_prog_compiler_pic_CXX=
20538lt_prog_compiler_static_CXX=
20539
20540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20541$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20542
20543  # C++ specific cases for pic, static, wl, etc.
20544  if test "$GXX" = yes; then
20545    lt_prog_compiler_wl_CXX='-Wl,'
20546    lt_prog_compiler_static_CXX='-static'
20547
20548    case $host_os in
20549    aix*)
20550      # All AIX code is PIC.
20551      if test "$host_cpu" = ia64; then
20552	# AIX 5 now supports IA64 processor
20553	lt_prog_compiler_static_CXX='-Bstatic'
20554      fi
20555      lt_prog_compiler_pic_CXX='-fPIC'
20556      ;;
20557
20558    amigaos*)
20559      case $host_cpu in
20560      powerpc)
20561            # see comment about AmigaOS4 .so support
20562            lt_prog_compiler_pic_CXX='-fPIC'
20563        ;;
20564      m68k)
20565            # FIXME: we need at least 68020 code to build shared libraries, but
20566            # adding the `-m68020' flag to GCC prevents building anything better,
20567            # like `-m68040'.
20568            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20569        ;;
20570      esac
20571      ;;
20572
20573    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20574      # PIC is the default for these OSes.
20575      ;;
20576    mingw* | cygwin* | os2* | pw32* | cegcc*)
20577      # This hack is so that the source file can tell whether it is being
20578      # built for inclusion in a dll (and should export symbols for example).
20579      # Although the cygwin gcc ignores -fPIC, still need this for old-style
20580      # (--disable-auto-import) libraries
20581      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20582      ;;
20583    darwin* | rhapsody*)
20584      # PIC is the default on this platform
20585      # Common symbols not allowed in MH_DYLIB files
20586      lt_prog_compiler_pic_CXX='-fno-common'
20587      ;;
20588    *djgpp*)
20589      # DJGPP does not support shared libraries at all
20590      lt_prog_compiler_pic_CXX=
20591      ;;
20592    haiku*)
20593      # PIC is the default for Haiku.
20594      # The "-static" flag exists, but is broken.
20595      lt_prog_compiler_static_CXX=
20596      ;;
20597    interix[3-9]*)
20598      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20599      # Instead, we relocate shared libraries at runtime.
20600      ;;
20601    sysv4*MP*)
20602      if test -d /usr/nec; then
20603	lt_prog_compiler_pic_CXX=-Kconform_pic
20604      fi
20605      ;;
20606    hpux*)
20607      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20608      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20609      # sets the default TLS model and affects inlining.
20610      case $host_cpu in
20611      hppa*64*)
20612	;;
20613      *)
20614	lt_prog_compiler_pic_CXX='-fPIC'
20615	;;
20616      esac
20617      ;;
20618    *qnx* | *nto*)
20619      # QNX uses GNU C++, but need to define -shared option too, otherwise
20620      # it will coredump.
20621      lt_prog_compiler_pic_CXX='-fPIC -shared'
20622      ;;
20623    *)
20624      lt_prog_compiler_pic_CXX='-fPIC'
20625      ;;
20626    esac
20627  else
20628    case $host_os in
20629      aix[4-9]*)
20630	# All AIX code is PIC.
20631	if test "$host_cpu" = ia64; then
20632	  # AIX 5 now supports IA64 processor
20633	  lt_prog_compiler_static_CXX='-Bstatic'
20634	else
20635	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20636	fi
20637	;;
20638      chorus*)
20639	case $cc_basename in
20640	cxch68*)
20641	  # Green Hills C++ Compiler
20642	  # _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"
20643	  ;;
20644	esac
20645	;;
20646      dgux*)
20647	case $cc_basename in
20648	  ec++*)
20649	    lt_prog_compiler_pic_CXX='-KPIC'
20650	    ;;
20651	  ghcx*)
20652	    # Green Hills C++ Compiler
20653	    lt_prog_compiler_pic_CXX='-pic'
20654	    ;;
20655	  *)
20656	    ;;
20657	esac
20658	;;
20659      freebsd* | dragonfly*)
20660	# FreeBSD uses GNU C++
20661	;;
20662      hpux9* | hpux10* | hpux11*)
20663	case $cc_basename in
20664	  CC*)
20665	    lt_prog_compiler_wl_CXX='-Wl,'
20666	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20667	    if test "$host_cpu" != ia64; then
20668	      lt_prog_compiler_pic_CXX='+Z'
20669	    fi
20670	    ;;
20671	  aCC*)
20672	    lt_prog_compiler_wl_CXX='-Wl,'
20673	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20674	    case $host_cpu in
20675	    hppa*64*|ia64*)
20676	      # +Z the default
20677	      ;;
20678	    *)
20679	      lt_prog_compiler_pic_CXX='+Z'
20680	      ;;
20681	    esac
20682	    ;;
20683	  *)
20684	    ;;
20685	esac
20686	;;
20687      interix*)
20688	# This is c89, which is MS Visual C++ (no shared libs)
20689	# Anyone wants to do a port?
20690	;;
20691      irix5* | irix6* | nonstopux*)
20692	case $cc_basename in
20693	  CC*)
20694	    lt_prog_compiler_wl_CXX='-Wl,'
20695	    lt_prog_compiler_static_CXX='-non_shared'
20696	    # CC pic flag -KPIC is the default.
20697	    ;;
20698	  *)
20699	    ;;
20700	esac
20701	;;
20702      linux* | k*bsd*-gnu | kopensolaris*-gnu)
20703	case $cc_basename in
20704	  KCC*)
20705	    # KAI C++ Compiler
20706	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20707	    lt_prog_compiler_pic_CXX='-fPIC'
20708	    ;;
20709	  ecpc* )
20710	    # old Intel C++ for x86_64 which still supported -KPIC.
20711	    lt_prog_compiler_wl_CXX='-Wl,'
20712	    lt_prog_compiler_pic_CXX='-KPIC'
20713	    lt_prog_compiler_static_CXX='-static'
20714	    ;;
20715	  icpc* )
20716	    # Intel C++, used to be incompatible with GCC.
20717	    # ICC 10 doesn't accept -KPIC any more.
20718	    lt_prog_compiler_wl_CXX='-Wl,'
20719	    lt_prog_compiler_pic_CXX='-fPIC'
20720	    lt_prog_compiler_static_CXX='-static'
20721	    ;;
20722	  pgCC* | pgcpp*)
20723	    # Portland Group C++ compiler
20724	    lt_prog_compiler_wl_CXX='-Wl,'
20725	    lt_prog_compiler_pic_CXX='-fpic'
20726	    lt_prog_compiler_static_CXX='-Bstatic'
20727	    ;;
20728	  cxx*)
20729	    # Compaq C++
20730	    # Make sure the PIC flag is empty.  It appears that all Alpha
20731	    # Linux and Compaq Tru64 Unix objects are PIC.
20732	    lt_prog_compiler_pic_CXX=
20733	    lt_prog_compiler_static_CXX='-non_shared'
20734	    ;;
20735	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20736	    # IBM XL 8.0, 9.0 on PPC and BlueGene
20737	    lt_prog_compiler_wl_CXX='-Wl,'
20738	    lt_prog_compiler_pic_CXX='-qpic'
20739	    lt_prog_compiler_static_CXX='-qstaticlink'
20740	    ;;
20741	  *)
20742	    case `$CC -V 2>&1 | sed 5q` in
20743	    *Sun\ C*)
20744	      # Sun C++ 5.9
20745	      lt_prog_compiler_pic_CXX='-KPIC'
20746	      lt_prog_compiler_static_CXX='-Bstatic'
20747	      lt_prog_compiler_wl_CXX='-Qoption ld '
20748	      ;;
20749	    esac
20750	    ;;
20751	esac
20752	;;
20753      lynxos*)
20754	;;
20755      m88k*)
20756	;;
20757      mvs*)
20758	case $cc_basename in
20759	  cxx*)
20760	    lt_prog_compiler_pic_CXX='-W c,exportall'
20761	    ;;
20762	  *)
20763	    ;;
20764	esac
20765	;;
20766      netbsd*)
20767	;;
20768      *qnx* | *nto*)
20769        # QNX uses GNU C++, but need to define -shared option too, otherwise
20770        # it will coredump.
20771        lt_prog_compiler_pic_CXX='-fPIC -shared'
20772        ;;
20773      osf3* | osf4* | osf5*)
20774	case $cc_basename in
20775	  KCC*)
20776	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20777	    ;;
20778	  RCC*)
20779	    # Rational C++ 2.4.1
20780	    lt_prog_compiler_pic_CXX='-pic'
20781	    ;;
20782	  cxx*)
20783	    # Digital/Compaq C++
20784	    lt_prog_compiler_wl_CXX='-Wl,'
20785	    # Make sure the PIC flag is empty.  It appears that all Alpha
20786	    # Linux and Compaq Tru64 Unix objects are PIC.
20787	    lt_prog_compiler_pic_CXX=
20788	    lt_prog_compiler_static_CXX='-non_shared'
20789	    ;;
20790	  *)
20791	    ;;
20792	esac
20793	;;
20794      psos*)
20795	;;
20796      solaris*)
20797	case $cc_basename in
20798	  CC*)
20799	    # Sun C++ 4.2, 5.x and Centerline C++
20800	    lt_prog_compiler_pic_CXX='-KPIC'
20801	    lt_prog_compiler_static_CXX='-Bstatic'
20802	    lt_prog_compiler_wl_CXX='-Qoption ld '
20803	    ;;
20804	  gcx*)
20805	    # Green Hills C++ Compiler
20806	    lt_prog_compiler_pic_CXX='-PIC'
20807	    ;;
20808	  *)
20809	    ;;
20810	esac
20811	;;
20812      sunos4*)
20813	case $cc_basename in
20814	  CC*)
20815	    # Sun C++ 4.x
20816	    lt_prog_compiler_pic_CXX='-pic'
20817	    lt_prog_compiler_static_CXX='-Bstatic'
20818	    ;;
20819	  lcc*)
20820	    # Lucid
20821	    lt_prog_compiler_pic_CXX='-pic'
20822	    ;;
20823	  *)
20824	    ;;
20825	esac
20826	;;
20827      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20828	case $cc_basename in
20829	  CC*)
20830	    lt_prog_compiler_wl_CXX='-Wl,'
20831	    lt_prog_compiler_pic_CXX='-KPIC'
20832	    lt_prog_compiler_static_CXX='-Bstatic'
20833	    ;;
20834	esac
20835	;;
20836      tandem*)
20837	case $cc_basename in
20838	  NCC*)
20839	    # NonStop-UX NCC 3.20
20840	    lt_prog_compiler_pic_CXX='-KPIC'
20841	    ;;
20842	  *)
20843	    ;;
20844	esac
20845	;;
20846      vxworks*)
20847	;;
20848      *)
20849	lt_prog_compiler_can_build_shared_CXX=no
20850	;;
20851    esac
20852  fi
20853
20854case $host_os in
20855  # For platforms which do not support PIC, -DPIC is meaningless:
20856  *djgpp*)
20857    lt_prog_compiler_pic_CXX=
20858    ;;
20859  *)
20860    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20861    ;;
20862esac
20863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20864$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20865
20866
20867
20868#
20869# Check to make sure the PIC flag actually works.
20870#
20871if test -n "$lt_prog_compiler_pic_CXX"; then
20872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20873$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20874if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20875  $as_echo_n "(cached) " >&6
20876else
20877  lt_cv_prog_compiler_pic_works_CXX=no
20878   ac_outfile=conftest.$ac_objext
20879   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20880   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20881   # Insert the option either (1) after the last *FLAGS variable, or
20882   # (2) before a word containing "conftest.", or (3) at the end.
20883   # Note that $ac_compile itself does not contain backslashes and begins
20884   # with a dollar sign (not a hyphen), so the echo should work correctly.
20885   # The option is referenced via a variable to avoid confusing sed.
20886   lt_compile=`echo "$ac_compile" | $SED \
20887   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20888   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20889   -e 's:$: $lt_compiler_flag:'`
20890   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20891   (eval "$lt_compile" 2>conftest.err)
20892   ac_status=$?
20893   cat conftest.err >&5
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   if (exit $ac_status) && test -s "$ac_outfile"; then
20896     # The compiler can only warn and ignore the option if not recognized
20897     # So say no if there are warnings other than the usual output.
20898     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20899     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20900     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20901       lt_cv_prog_compiler_pic_works_CXX=yes
20902     fi
20903   fi
20904   $RM conftest*
20905
20906fi
20907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20908$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20909
20910if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20911    case $lt_prog_compiler_pic_CXX in
20912     "" | " "*) ;;
20913     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20914     esac
20915else
20916    lt_prog_compiler_pic_CXX=
20917     lt_prog_compiler_can_build_shared_CXX=no
20918fi
20919
20920fi
20921
20922
20923
20924#
20925# Check to make sure the static flag actually works.
20926#
20927wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20929$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20930if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20931  $as_echo_n "(cached) " >&6
20932else
20933  lt_cv_prog_compiler_static_works_CXX=no
20934   save_LDFLAGS="$LDFLAGS"
20935   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20936   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20937   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20938     # The linker can only warn and ignore the option if not recognized
20939     # So say no if there are warnings
20940     if test -s conftest.err; then
20941       # Append any errors to the config.log.
20942       cat conftest.err 1>&5
20943       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20944       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20945       if diff conftest.exp conftest.er2 >/dev/null; then
20946         lt_cv_prog_compiler_static_works_CXX=yes
20947       fi
20948     else
20949       lt_cv_prog_compiler_static_works_CXX=yes
20950     fi
20951   fi
20952   $RM -r conftest*
20953   LDFLAGS="$save_LDFLAGS"
20954
20955fi
20956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20957$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20958
20959if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20960    :
20961else
20962    lt_prog_compiler_static_CXX=
20963fi
20964
20965
20966
20967
20968    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20969$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20970if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20971  $as_echo_n "(cached) " >&6
20972else
20973  lt_cv_prog_compiler_c_o_CXX=no
20974   $RM -r conftest 2>/dev/null
20975   mkdir conftest
20976   cd conftest
20977   mkdir out
20978   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20979
20980   lt_compiler_flag="-o out/conftest2.$ac_objext"
20981   # Insert the option either (1) after the last *FLAGS variable, or
20982   # (2) before a word containing "conftest.", or (3) at the end.
20983   # Note that $ac_compile itself does not contain backslashes and begins
20984   # with a dollar sign (not a hyphen), so the echo should work correctly.
20985   lt_compile=`echo "$ac_compile" | $SED \
20986   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20987   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20988   -e 's:$: $lt_compiler_flag:'`
20989   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20990   (eval "$lt_compile" 2>out/conftest.err)
20991   ac_status=$?
20992   cat out/conftest.err >&5
20993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20995   then
20996     # The compiler can only warn and ignore the option if not recognized
20997     # So say no if there are warnings
20998     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20999     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21000     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21001       lt_cv_prog_compiler_c_o_CXX=yes
21002     fi
21003   fi
21004   chmod u+w . 2>&5
21005   $RM conftest*
21006   # SGI C++ compiler will create directory out/ii_files/ for
21007   # template instantiation
21008   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21009   $RM out/* && rmdir out
21010   cd ..
21011   $RM -r conftest
21012   $RM conftest*
21013
21014fi
21015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21016$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21017
21018
21019
21020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21021$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21022if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21023  $as_echo_n "(cached) " >&6
21024else
21025  lt_cv_prog_compiler_c_o_CXX=no
21026   $RM -r conftest 2>/dev/null
21027   mkdir conftest
21028   cd conftest
21029   mkdir out
21030   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21031
21032   lt_compiler_flag="-o out/conftest2.$ac_objext"
21033   # Insert the option either (1) after the last *FLAGS variable, or
21034   # (2) before a word containing "conftest.", or (3) at the end.
21035   # Note that $ac_compile itself does not contain backslashes and begins
21036   # with a dollar sign (not a hyphen), so the echo should work correctly.
21037   lt_compile=`echo "$ac_compile" | $SED \
21038   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21039   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21040   -e 's:$: $lt_compiler_flag:'`
21041   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21042   (eval "$lt_compile" 2>out/conftest.err)
21043   ac_status=$?
21044   cat out/conftest.err >&5
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21047   then
21048     # The compiler can only warn and ignore the option if not recognized
21049     # So say no if there are warnings
21050     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21051     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21052     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21053       lt_cv_prog_compiler_c_o_CXX=yes
21054     fi
21055   fi
21056   chmod u+w . 2>&5
21057   $RM conftest*
21058   # SGI C++ compiler will create directory out/ii_files/ for
21059   # template instantiation
21060   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21061   $RM out/* && rmdir out
21062   cd ..
21063   $RM -r conftest
21064   $RM conftest*
21065
21066fi
21067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21068$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21069
21070
21071
21072
21073hard_links="nottested"
21074if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21075  # do not overwrite the value of need_locks provided by the user
21076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21077$as_echo_n "checking if we can lock with hard links... " >&6; }
21078  hard_links=yes
21079  $RM conftest*
21080  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21081  touch conftest.a
21082  ln conftest.a conftest.b 2>&5 || hard_links=no
21083  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21085$as_echo "$hard_links" >&6; }
21086  if test "$hard_links" = no; then
21087    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21088$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21089    need_locks=warn
21090  fi
21091else
21092  need_locks=no
21093fi
21094
21095
21096
21097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21098$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21099
21100  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21101  case $host_os in
21102  aix[4-9]*)
21103    # If we're using GNU nm, then we don't want the "-C" option.
21104    # -C means demangle to AIX nm, but means don't demangle with GNU nm
21105    # Also, AIX nm treats weak defined symbols like other global defined
21106    # symbols, whereas GNU nm marks them as "W".
21107    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21108      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'
21109    else
21110      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'
21111    fi
21112    ;;
21113  pw32*)
21114    export_symbols_cmds_CXX="$ltdll_cmds"
21115  ;;
21116  cygwin* | mingw* | cegcc*)
21117    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'
21118  ;;
21119  *)
21120    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21121  ;;
21122  esac
21123  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21124
21125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21126$as_echo "$ld_shlibs_CXX" >&6; }
21127test "$ld_shlibs_CXX" = no && can_build_shared=no
21128
21129with_gnu_ld_CXX=$with_gnu_ld
21130
21131
21132
21133
21134
21135
21136#
21137# Do we need to explicitly link libc?
21138#
21139case "x$archive_cmds_need_lc_CXX" in
21140x|xyes)
21141  # Assume -lc should be added
21142  archive_cmds_need_lc_CXX=yes
21143
21144  if test "$enable_shared" = yes && test "$GCC" = yes; then
21145    case $archive_cmds_CXX in
21146    *'~'*)
21147      # FIXME: we may have to deal with multi-command sequences.
21148      ;;
21149    '$CC '*)
21150      # Test whether the compiler implicitly links with -lc since on some
21151      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21152      # to ld, don't add -lc before -lgcc.
21153      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21154$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21155if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21156  $as_echo_n "(cached) " >&6
21157else
21158  $RM conftest*
21159	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21160
21161	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21162  (eval $ac_compile) 2>&5
21163  ac_status=$?
21164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21165  test $ac_status = 0; } 2>conftest.err; then
21166	  soname=conftest
21167	  lib=conftest
21168	  libobjs=conftest.$ac_objext
21169	  deplibs=
21170	  wl=$lt_prog_compiler_wl_CXX
21171	  pic_flag=$lt_prog_compiler_pic_CXX
21172	  compiler_flags=-v
21173	  linker_flags=-v
21174	  verstring=
21175	  output_objdir=.
21176	  libname=conftest
21177	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21178	  allow_undefined_flag_CXX=
21179	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21180  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21181  ac_status=$?
21182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21183  test $ac_status = 0; }
21184	  then
21185	    lt_cv_archive_cmds_need_lc_CXX=no
21186	  else
21187	    lt_cv_archive_cmds_need_lc_CXX=yes
21188	  fi
21189	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21190	else
21191	  cat conftest.err 1>&5
21192	fi
21193	$RM conftest*
21194
21195fi
21196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21197$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21198      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21199      ;;
21200    esac
21201  fi
21202  ;;
21203esac
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21269$as_echo_n "checking dynamic linker characteristics... " >&6; }
21270
21271library_names_spec=
21272libname_spec='lib$name'
21273soname_spec=
21274shrext_cmds=".so"
21275postinstall_cmds=
21276postuninstall_cmds=
21277finish_cmds=
21278finish_eval=
21279shlibpath_var=
21280shlibpath_overrides_runpath=unknown
21281version_type=none
21282dynamic_linker="$host_os ld.so"
21283sys_lib_dlsearch_path_spec="/lib /usr/lib"
21284need_lib_prefix=unknown
21285hardcode_into_libs=no
21286
21287# when you set need_version to no, make sure it does not cause -set_version
21288# flags to be left without arguments
21289need_version=unknown
21290
21291case $host_os in
21292aix3*)
21293  version_type=linux
21294  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21295  shlibpath_var=LIBPATH
21296
21297  # AIX 3 has no versioning support, so we append a major version to the name.
21298  soname_spec='${libname}${release}${shared_ext}$major'
21299  ;;
21300
21301aix[4-9]*)
21302  version_type=linux
21303  need_lib_prefix=no
21304  need_version=no
21305  hardcode_into_libs=yes
21306  if test "$host_cpu" = ia64; then
21307    # AIX 5 supports IA64
21308    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21309    shlibpath_var=LD_LIBRARY_PATH
21310  else
21311    # With GCC up to 2.95.x, collect2 would create an import file
21312    # for dependence libraries.  The import file would start with
21313    # the line `#! .'.  This would cause the generated library to
21314    # depend on `.', always an invalid library.  This was fixed in
21315    # development snapshots of GCC prior to 3.0.
21316    case $host_os in
21317      aix4 | aix4.[01] | aix4.[01].*)
21318      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21319	   echo ' yes '
21320	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21321	:
21322      else
21323	can_build_shared=no
21324      fi
21325      ;;
21326    esac
21327    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21328    # soname into executable. Probably we can add versioning support to
21329    # collect2, so additional links can be useful in future.
21330    if test "$aix_use_runtimelinking" = yes; then
21331      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21332      # instead of lib<name>.a to let people know that these are not
21333      # typical AIX shared libraries.
21334      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21335    else
21336      # We preserve .a as extension for shared libraries through AIX4.2
21337      # and later when we are not doing run time linking.
21338      library_names_spec='${libname}${release}.a $libname.a'
21339      soname_spec='${libname}${release}${shared_ext}$major'
21340    fi
21341    shlibpath_var=LIBPATH
21342  fi
21343  ;;
21344
21345amigaos*)
21346  case $host_cpu in
21347  powerpc)
21348    # Since July 2007 AmigaOS4 officially supports .so libraries.
21349    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21350    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21351    ;;
21352  m68k)
21353    library_names_spec='$libname.ixlibrary $libname.a'
21354    # Create ${libname}_ixlibrary.a entries in /sys/libs.
21355    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'
21356    ;;
21357  esac
21358  ;;
21359
21360beos*)
21361  library_names_spec='${libname}${shared_ext}'
21362  dynamic_linker="$host_os ld.so"
21363  shlibpath_var=LIBRARY_PATH
21364  ;;
21365
21366bsdi[45]*)
21367  version_type=linux
21368  need_version=no
21369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21370  soname_spec='${libname}${release}${shared_ext}$major'
21371  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21372  shlibpath_var=LD_LIBRARY_PATH
21373  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21374  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21375  # the default ld.so.conf also contains /usr/contrib/lib and
21376  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21377  # libtool to hard-code these into programs
21378  ;;
21379
21380cygwin* | mingw* | pw32* | cegcc*)
21381  version_type=windows
21382  shrext_cmds=".dll"
21383  need_version=no
21384  need_lib_prefix=no
21385
21386  case $GCC,$host_os in
21387  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21388    library_names_spec='$libname.dll.a'
21389    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21390    postinstall_cmds='base_file=`basename \${file}`~
21391      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21392      dldir=$destdir/`dirname \$dlpath`~
21393      test -d \$dldir || mkdir -p \$dldir~
21394      $install_prog $dir/$dlname \$dldir/$dlname~
21395      chmod a+x \$dldir/$dlname~
21396      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21397        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21398      fi'
21399    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21400      dlpath=$dir/\$dldll~
21401       $RM \$dlpath'
21402    shlibpath_overrides_runpath=yes
21403
21404    case $host_os in
21405    cygwin*)
21406      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21407      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21408
21409      ;;
21410    mingw* | cegcc*)
21411      # MinGW DLLs use traditional 'lib' prefix
21412      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21413      ;;
21414    pw32*)
21415      # pw32 DLLs use 'pw' prefix rather than 'lib'
21416      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21417      ;;
21418    esac
21419    ;;
21420
21421  *)
21422    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21423    ;;
21424  esac
21425  dynamic_linker='Win32 ld.exe'
21426  # FIXME: first we should search . and the directory the executable is in
21427  shlibpath_var=PATH
21428  ;;
21429
21430darwin* | rhapsody*)
21431  dynamic_linker="$host_os dyld"
21432  version_type=darwin
21433  need_lib_prefix=no
21434  need_version=no
21435  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21436  soname_spec='${libname}${release}${major}$shared_ext'
21437  shlibpath_overrides_runpath=yes
21438  shlibpath_var=DYLD_LIBRARY_PATH
21439  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21440
21441  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21442  ;;
21443
21444dgux*)
21445  version_type=linux
21446  need_lib_prefix=no
21447  need_version=no
21448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21449  soname_spec='${libname}${release}${shared_ext}$major'
21450  shlibpath_var=LD_LIBRARY_PATH
21451  ;;
21452
21453freebsd* | dragonfly*)
21454  # DragonFly does not have aout.  When/if they implement a new
21455  # versioning mechanism, adjust this.
21456  if test -x /usr/bin/objformat; then
21457    objformat=`/usr/bin/objformat`
21458  else
21459    case $host_os in
21460    freebsd[23].*) objformat=aout ;;
21461    *) objformat=elf ;;
21462    esac
21463  fi
21464  version_type=freebsd-$objformat
21465  case $version_type in
21466    freebsd-elf*)
21467      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21468      need_version=no
21469      need_lib_prefix=no
21470      ;;
21471    freebsd-*)
21472      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21473      need_version=yes
21474      ;;
21475  esac
21476  shlibpath_var=LD_LIBRARY_PATH
21477  case $host_os in
21478  freebsd2.*)
21479    shlibpath_overrides_runpath=yes
21480    ;;
21481  freebsd3.[01]* | freebsdelf3.[01]*)
21482    shlibpath_overrides_runpath=yes
21483    hardcode_into_libs=yes
21484    ;;
21485  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21486  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21487    shlibpath_overrides_runpath=no
21488    hardcode_into_libs=yes
21489    ;;
21490  *) # from 4.6 on, and DragonFly
21491    shlibpath_overrides_runpath=yes
21492    hardcode_into_libs=yes
21493    ;;
21494  esac
21495  ;;
21496
21497gnu*)
21498  version_type=linux
21499  need_lib_prefix=no
21500  need_version=no
21501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21502  soname_spec='${libname}${release}${shared_ext}$major'
21503  shlibpath_var=LD_LIBRARY_PATH
21504  hardcode_into_libs=yes
21505  ;;
21506
21507haiku*)
21508  version_type=linux
21509  need_lib_prefix=no
21510  need_version=no
21511  dynamic_linker="$host_os runtime_loader"
21512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21513  soname_spec='${libname}${release}${shared_ext}$major'
21514  shlibpath_var=LIBRARY_PATH
21515  shlibpath_overrides_runpath=yes
21516  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21517  hardcode_into_libs=yes
21518  ;;
21519
21520hpux9* | hpux10* | hpux11*)
21521  # Give a soname corresponding to the major version so that dld.sl refuses to
21522  # link against other versions.
21523  version_type=sunos
21524  need_lib_prefix=no
21525  need_version=no
21526  case $host_cpu in
21527  ia64*)
21528    shrext_cmds='.so'
21529    hardcode_into_libs=yes
21530    dynamic_linker="$host_os dld.so"
21531    shlibpath_var=LD_LIBRARY_PATH
21532    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21533    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21534    soname_spec='${libname}${release}${shared_ext}$major'
21535    if test "X$HPUX_IA64_MODE" = X32; then
21536      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21537    else
21538      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21539    fi
21540    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21541    ;;
21542  hppa*64*)
21543    shrext_cmds='.sl'
21544    hardcode_into_libs=yes
21545    dynamic_linker="$host_os dld.sl"
21546    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21547    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21548    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21549    soname_spec='${libname}${release}${shared_ext}$major'
21550    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21551    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21552    ;;
21553  *)
21554    shrext_cmds='.sl'
21555    dynamic_linker="$host_os dld.sl"
21556    shlibpath_var=SHLIB_PATH
21557    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21558    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21559    soname_spec='${libname}${release}${shared_ext}$major'
21560    ;;
21561  esac
21562  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21563  postinstall_cmds='chmod 555 $lib'
21564  # or fails outright, so override atomically:
21565  install_override_mode=555
21566  ;;
21567
21568interix[3-9]*)
21569  version_type=linux
21570  need_lib_prefix=no
21571  need_version=no
21572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21573  soname_spec='${libname}${release}${shared_ext}$major'
21574  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21575  shlibpath_var=LD_LIBRARY_PATH
21576  shlibpath_overrides_runpath=no
21577  hardcode_into_libs=yes
21578  ;;
21579
21580irix5* | irix6* | nonstopux*)
21581  case $host_os in
21582    nonstopux*) version_type=nonstopux ;;
21583    *)
21584	if test "$lt_cv_prog_gnu_ld" = yes; then
21585		version_type=linux
21586	else
21587		version_type=irix
21588	fi ;;
21589  esac
21590  need_lib_prefix=no
21591  need_version=no
21592  soname_spec='${libname}${release}${shared_ext}$major'
21593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21594  case $host_os in
21595  irix5* | nonstopux*)
21596    libsuff= shlibsuff=
21597    ;;
21598  *)
21599    case $LD in # libtool.m4 will add one of these switches to LD
21600    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21601      libsuff= shlibsuff= libmagic=32-bit;;
21602    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21603      libsuff=32 shlibsuff=N32 libmagic=N32;;
21604    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21605      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21606    *) libsuff= shlibsuff= libmagic=never-match;;
21607    esac
21608    ;;
21609  esac
21610  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21611  shlibpath_overrides_runpath=no
21612  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21613  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21614  hardcode_into_libs=yes
21615  ;;
21616
21617# No shared lib support for Linux oldld, aout, or coff.
21618linux*oldld* | linux*aout* | linux*coff*)
21619  dynamic_linker=no
21620  ;;
21621
21622# This must be Linux ELF.
21623linux* | k*bsd*-gnu | kopensolaris*-gnu)
21624  version_type=linux
21625  need_lib_prefix=no
21626  need_version=no
21627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21628  soname_spec='${libname}${release}${shared_ext}$major'
21629  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21630  shlibpath_var=LD_LIBRARY_PATH
21631  shlibpath_overrides_runpath=no
21632
21633  # Some binutils ld are patched to set DT_RUNPATH
21634  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21635  $as_echo_n "(cached) " >&6
21636else
21637  lt_cv_shlibpath_overrides_runpath=no
21638    save_LDFLAGS=$LDFLAGS
21639    save_libdir=$libdir
21640    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21641	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21642    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21643/* end confdefs.h.  */
21644
21645int
21646main ()
21647{
21648
21649  ;
21650  return 0;
21651}
21652_ACEOF
21653if ac_fn_cxx_try_link "$LINENO"; then :
21654  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21655  lt_cv_shlibpath_overrides_runpath=yes
21656fi
21657fi
21658rm -f core conftest.err conftest.$ac_objext \
21659    conftest$ac_exeext conftest.$ac_ext
21660    LDFLAGS=$save_LDFLAGS
21661    libdir=$save_libdir
21662
21663fi
21664
21665  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21666
21667  # This implies no fast_install, which is unacceptable.
21668  # Some rework will be needed to allow for fast_install
21669  # before this can be enabled.
21670  hardcode_into_libs=yes
21671
21672  # Append ld.so.conf contents to the search path
21673  if test -f /etc/ld.so.conf; then
21674    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' ' '`
21675    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21676  fi
21677
21678  # We used to test for /lib/ld.so.1 and disable shared libraries on
21679  # powerpc, because MkLinux only supported shared libraries with the
21680  # GNU dynamic linker.  Since this was broken with cross compilers,
21681  # most powerpc-linux boxes support dynamic linking these days and
21682  # people can always --disable-shared, the test was removed, and we
21683  # assume the GNU/Linux dynamic linker is in use.
21684  dynamic_linker='GNU/Linux ld.so'
21685  ;;
21686
21687netbsd*)
21688  version_type=sunos
21689  need_lib_prefix=no
21690  need_version=no
21691  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21692    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21693    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21694    dynamic_linker='NetBSD (a.out) ld.so'
21695  else
21696    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21697    soname_spec='${libname}${release}${shared_ext}$major'
21698    dynamic_linker='NetBSD ld.elf_so'
21699  fi
21700  shlibpath_var=LD_LIBRARY_PATH
21701  shlibpath_overrides_runpath=yes
21702  hardcode_into_libs=yes
21703  ;;
21704
21705newsos6)
21706  version_type=linux
21707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21708  shlibpath_var=LD_LIBRARY_PATH
21709  shlibpath_overrides_runpath=yes
21710  ;;
21711
21712*nto* | *qnx*)
21713  version_type=qnx
21714  need_lib_prefix=no
21715  need_version=no
21716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21717  soname_spec='${libname}${release}${shared_ext}$major'
21718  shlibpath_var=LD_LIBRARY_PATH
21719  shlibpath_overrides_runpath=no
21720  hardcode_into_libs=yes
21721  dynamic_linker='ldqnx.so'
21722  ;;
21723
21724openbsd*)
21725  version_type=sunos
21726  sys_lib_dlsearch_path_spec="/usr/lib"
21727  need_lib_prefix=no
21728  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21729  case $host_os in
21730    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
21731    *)				need_version=no  ;;
21732  esac
21733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21734  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21735  shlibpath_var=LD_LIBRARY_PATH
21736  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21737    case $host_os in
21738      openbsd2.[89] | openbsd2.[89].*)
21739	shlibpath_overrides_runpath=no
21740	;;
21741      *)
21742	shlibpath_overrides_runpath=yes
21743	;;
21744      esac
21745  else
21746    shlibpath_overrides_runpath=yes
21747  fi
21748  ;;
21749
21750os2*)
21751  libname_spec='$name'
21752  shrext_cmds=".dll"
21753  need_lib_prefix=no
21754  library_names_spec='$libname${shared_ext} $libname.a'
21755  dynamic_linker='OS/2 ld.exe'
21756  shlibpath_var=LIBPATH
21757  ;;
21758
21759osf3* | osf4* | osf5*)
21760  version_type=osf
21761  need_lib_prefix=no
21762  need_version=no
21763  soname_spec='${libname}${release}${shared_ext}$major'
21764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21765  shlibpath_var=LD_LIBRARY_PATH
21766  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21767  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21768  ;;
21769
21770rdos*)
21771  dynamic_linker=no
21772  ;;
21773
21774solaris*)
21775  version_type=linux
21776  need_lib_prefix=no
21777  need_version=no
21778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21779  soname_spec='${libname}${release}${shared_ext}$major'
21780  shlibpath_var=LD_LIBRARY_PATH
21781  shlibpath_overrides_runpath=yes
21782  hardcode_into_libs=yes
21783  # ldd complains unless libraries are executable
21784  postinstall_cmds='chmod +x $lib'
21785  ;;
21786
21787sunos4*)
21788  version_type=sunos
21789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21790  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21791  shlibpath_var=LD_LIBRARY_PATH
21792  shlibpath_overrides_runpath=yes
21793  if test "$with_gnu_ld" = yes; then
21794    need_lib_prefix=no
21795  fi
21796  need_version=yes
21797  ;;
21798
21799sysv4 | sysv4.3*)
21800  version_type=linux
21801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21802  soname_spec='${libname}${release}${shared_ext}$major'
21803  shlibpath_var=LD_LIBRARY_PATH
21804  case $host_vendor in
21805    sni)
21806      shlibpath_overrides_runpath=no
21807      need_lib_prefix=no
21808      runpath_var=LD_RUN_PATH
21809      ;;
21810    siemens)
21811      need_lib_prefix=no
21812      ;;
21813    motorola)
21814      need_lib_prefix=no
21815      need_version=no
21816      shlibpath_overrides_runpath=no
21817      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21818      ;;
21819  esac
21820  ;;
21821
21822sysv4*MP*)
21823  if test -d /usr/nec ;then
21824    version_type=linux
21825    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21826    soname_spec='$libname${shared_ext}.$major'
21827    shlibpath_var=LD_LIBRARY_PATH
21828  fi
21829  ;;
21830
21831sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21832  version_type=freebsd-elf
21833  need_lib_prefix=no
21834  need_version=no
21835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21836  soname_spec='${libname}${release}${shared_ext}$major'
21837  shlibpath_var=LD_LIBRARY_PATH
21838  shlibpath_overrides_runpath=yes
21839  hardcode_into_libs=yes
21840  if test "$with_gnu_ld" = yes; then
21841    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21842  else
21843    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21844    case $host_os in
21845      sco3.2v5*)
21846        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21847	;;
21848    esac
21849  fi
21850  sys_lib_dlsearch_path_spec='/usr/lib'
21851  ;;
21852
21853tpf*)
21854  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21855  version_type=linux
21856  need_lib_prefix=no
21857  need_version=no
21858  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21859  shlibpath_var=LD_LIBRARY_PATH
21860  shlibpath_overrides_runpath=no
21861  hardcode_into_libs=yes
21862  ;;
21863
21864uts4*)
21865  version_type=linux
21866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21867  soname_spec='${libname}${release}${shared_ext}$major'
21868  shlibpath_var=LD_LIBRARY_PATH
21869  ;;
21870
21871*)
21872  dynamic_linker=no
21873  ;;
21874esac
21875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21876$as_echo "$dynamic_linker" >&6; }
21877test "$dynamic_linker" = no && can_build_shared=no
21878
21879variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21880if test "$GCC" = yes; then
21881  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21882fi
21883
21884if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21885  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21886fi
21887if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21888  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21889fi
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21929$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21930hardcode_action_CXX=
21931if test -n "$hardcode_libdir_flag_spec_CXX" ||
21932   test -n "$runpath_var_CXX" ||
21933   test "X$hardcode_automatic_CXX" = "Xyes" ; then
21934
21935  # We can hardcode non-existent directories.
21936  if test "$hardcode_direct_CXX" != no &&
21937     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21938     # have to relink, otherwise we might link with an installed library
21939     # when we should be linking with a yet-to-be-installed one
21940     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21941     test "$hardcode_minus_L_CXX" != no; then
21942    # Linking always hardcodes the temporary library directory.
21943    hardcode_action_CXX=relink
21944  else
21945    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21946    hardcode_action_CXX=immediate
21947  fi
21948else
21949  # We cannot hardcode anything, or else we can only hardcode existing
21950  # directories.
21951  hardcode_action_CXX=unsupported
21952fi
21953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21954$as_echo "$hardcode_action_CXX" >&6; }
21955
21956if test "$hardcode_action_CXX" = relink ||
21957   test "$inherit_rpath_CXX" = yes; then
21958  # Fast installation is not supported
21959  enable_fast_install=no
21960elif test "$shlibpath_overrides_runpath" = yes ||
21961     test "$enable_shared" = no; then
21962  # Fast installation is not necessary
21963  enable_fast_install=needless
21964fi
21965
21966
21967
21968
21969
21970
21971
21972  fi # test -n "$compiler"
21973
21974  CC=$lt_save_CC
21975  LDCXX=$LD
21976  LD=$lt_save_LD
21977  GCC=$lt_save_GCC
21978  with_gnu_ld=$lt_save_with_gnu_ld
21979  lt_cv_path_LDCXX=$lt_cv_path_LD
21980  lt_cv_path_LD=$lt_save_path_LD
21981  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21982  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21983fi # test "$_lt_caught_CXX_error" != yes
21984
21985ac_ext=cpp
21986ac_cpp='$CXXCPP $CPPFLAGS'
21987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006# Only expand once:
22007
22008
22009
22010
22011
22012# Identify the assembler which will work hand-in-glove with the newly
22013# built GCC, so that we can examine its features.  This is the assembler
22014# which will be driven by the driver program.
22015#
22016# If build != host, and we aren't building gas in-tree, we identify a
22017# build->target assembler and hope that it will have the same features
22018# as the host->target assembler we'll be using.
22019gcc_cv_gas_major_version=
22020gcc_cv_gas_minor_version=
22021gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22022
22023if ${gcc_cv_as+:} false; then :
22024
22025else
22026
22027if test -x "$DEFAULT_ASSEMBLER"; then
22028	gcc_cv_as="$DEFAULT_ASSEMBLER"
22029elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22030     && test -f ../gas/Makefile \
22031     && test x$build = x$host; then
22032	gcc_cv_as=../gas/as-new$build_exeext
22033elif test -x as$build_exeext; then
22034	# Build using assembler in the current directory.
22035	gcc_cv_as=./as$build_exeext
22036elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22037        gcc_cv_as="$AS_FOR_TARGET"
22038else
22039        # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22040set dummy $AS_FOR_TARGET; ac_word=$2
22041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22042$as_echo_n "checking for $ac_word... " >&6; }
22043if ${ac_cv_path_gcc_cv_as+:} false; then :
22044  $as_echo_n "(cached) " >&6
22045else
22046  case $gcc_cv_as in
22047  [\\/]* | ?:[\\/]*)
22048  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22049  ;;
22050  *)
22051  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22052for as_dir in $PATH
22053do
22054  IFS=$as_save_IFS
22055  test -z "$as_dir" && as_dir=.
22056    for ac_exec_ext in '' $ac_executable_extensions; do
22057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22058    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22060    break 2
22061  fi
22062done
22063  done
22064IFS=$as_save_IFS
22065
22066  ;;
22067esac
22068fi
22069gcc_cv_as=$ac_cv_path_gcc_cv_as
22070if test -n "$gcc_cv_as"; then
22071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22072$as_echo "$gcc_cv_as" >&6; }
22073else
22074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22075$as_echo "no" >&6; }
22076fi
22077
22078
22079fi
22080fi
22081
22082ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22083
22084case "$ORIGINAL_AS_FOR_TARGET" in
22085  ./as | ./as$build_exeext) ;;
22086  *) ac_config_files="$ac_config_files as:exec-tool.in"
22087 ;;
22088esac
22089
22090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22091$as_echo_n "checking what assembler to use... " >&6; }
22092if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22093  # Single tree build which includes gas.  We want to prefer it
22094  # over whatever linker top-level may have detected, since
22095  # we'll use what we're building after installation anyway.
22096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22097$as_echo "newly built gas" >&6; }
22098  in_tree_gas=yes
22099  gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22100for f in $gcc_cv_as_bfd_srcdir/configure \
22101         $gcc_cv_as_gas_srcdir/configure \
22102         $gcc_cv_as_gas_srcdir/configure.ac \
22103         $gcc_cv_as_gas_srcdir/Makefile.in ; do
22104  gcc_cv_gas_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22105  if test x$gcc_cv_gas_version != x; then
22106    break
22107  fi
22108done
22109case $gcc_cv_gas_version in
22110  VERSION=[0-9]*) ;;
22111  *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22112esac
22113gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22114gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22115gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22116case $gcc_cv_gas_patch_version in
22117  "") gcc_cv_gas_patch_version="0" ;;
22118esac
22119gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22120			    + $gcc_cv_gas_minor_version \) \* 1000 \
22121			    + $gcc_cv_gas_patch_version`
22122
22123  in_tree_gas_is_elf=no
22124  if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22125     || (grep 'obj_format = multi' ../gas/Makefile \
22126         && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22127  then
22128    in_tree_gas_is_elf=yes
22129  fi
22130else
22131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22132$as_echo "$gcc_cv_as" >&6; }
22133  in_tree_gas=no
22134fi
22135
22136default_ld=
22137# Check whether --enable-ld was given.
22138if test "${enable_ld+set}" = set; then :
22139  enableval=$enable_ld; case "${enableval}" in
22140 no)
22141   default_ld=ld.gold
22142   ;;
22143 esac
22144fi
22145
22146
22147install_gold_as_default=no
22148# Check whether --enable-gold was given.
22149if test "${enable_gold+set}" = set; then :
22150  enableval=$enable_gold; case "${enableval}" in
22151 default)
22152   install_gold_as_default=yes
22153   ;;
22154 yes)
22155   if test x${default_ld} != x; then
22156     install_gold_as_default=yes
22157   fi
22158   ;;
22159 no)
22160   ;;
22161 *)
22162   as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22163   ;;
22164 esac
22165fi
22166
22167
22168# Identify the linker which will work hand-in-glove with the newly
22169# built GCC, so that we can examine its features.  This is the linker
22170# which will be driven by the driver program.
22171#
22172# If build != host, and we aren't building gas in-tree, we identify a
22173# build->target linker and hope that it will have the same features
22174# as the host->target linker we'll be using.
22175gcc_cv_gld_major_version=
22176gcc_cv_gld_minor_version=
22177gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22178gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22179gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22180
22181if ${gcc_cv_ld+:} false; then :
22182
22183else
22184
22185if test -x "$DEFAULT_LINKER"; then
22186	gcc_cv_ld="$DEFAULT_LINKER"
22187elif test $install_gold_as_default = yes \
22188     && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22189     && test -f ../gold/Makefile \
22190     && test x$build = x$host; then
22191	gcc_cv_ld=../gold/ld-new$build_exeext
22192elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22193     && test -f ../ld/Makefile \
22194     && test x$build = x$host; then
22195	gcc_cv_ld=../ld/ld-new$build_exeext
22196elif test -x collect-ld$build_exeext; then
22197	# Build using linker in the current directory.
22198	gcc_cv_ld=./collect-ld$build_exeext
22199elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22200        gcc_cv_ld="$LD_FOR_TARGET"
22201else
22202        # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22203set dummy $LD_FOR_TARGET; ac_word=$2
22204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22205$as_echo_n "checking for $ac_word... " >&6; }
22206if ${ac_cv_path_gcc_cv_ld+:} false; then :
22207  $as_echo_n "(cached) " >&6
22208else
22209  case $gcc_cv_ld in
22210  [\\/]* | ?:[\\/]*)
22211  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22212  ;;
22213  *)
22214  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22215for as_dir in $PATH
22216do
22217  IFS=$as_save_IFS
22218  test -z "$as_dir" && as_dir=.
22219    for ac_exec_ext in '' $ac_executable_extensions; do
22220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22221    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22223    break 2
22224  fi
22225done
22226  done
22227IFS=$as_save_IFS
22228
22229  ;;
22230esac
22231fi
22232gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22233if test -n "$gcc_cv_ld"; then
22234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22235$as_echo "$gcc_cv_ld" >&6; }
22236else
22237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22238$as_echo "no" >&6; }
22239fi
22240
22241
22242fi
22243fi
22244
22245ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22246PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22247# if the PLUGIN_LD is set ld-new, just have it as ld
22248# as that is the installed named.
22249if test x$PLUGIN_LD_SUFFIX = xld-new \
22250   || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22251  PLUGIN_LD_SUFFIX=ld
22252fi
22253
22254# Check whether --with-plugin-ld was given.
22255if test "${with_plugin_ld+set}" = set; then :
22256  withval=$with_plugin_ld; if test x"$withval" != x; then
22257   ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22258   PLUGIN_LD_SUFFIX="$withval"
22259 fi
22260fi
22261
22262
22263
22264cat >>confdefs.h <<_ACEOF
22265#define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22266_ACEOF
22267
22268
22269# Check to see if we are using gold instead of ld
22270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22271$as_echo_n "checking whether we are using gold... " >&6; }
22272ld_is_gold=no
22273if test x$gcc_cv_ld != x; then
22274  if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22275     | grep "GNU gold" > /dev/null; then
22276    ld_is_gold=yes
22277  fi
22278fi
22279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22280$as_echo "$ld_is_gold" >&6; }
22281
22282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22283$as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22284# Check to see if default ld is not gold, but gold is
22285# available and has support for split stack.  If gcc was configured
22286# with gold then no checking is done.
22287#
22288if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22289
22290# For platforms other than powerpc64*, enable as appropriate.
22291
22292  gold_non_default=no
22293  ld_gold=`which ${gcc_cv_ld}.gold`
22294# Make sure this gold has minimal split stack support
22295  if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22296    ld_vers=`$ld_gold --version | sed 1q`
22297    gold_vers=`echo $ld_vers | sed -n \
22298          -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22299    case $target in
22300# check that the gold version contains the complete split stack support
22301# on powerpc64 big and little endian
22302      powerpc64*-*-*)
22303        case "$gold_vers" in
22304          2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22305          ;;
22306          *) gold_non_default=no
22307          ;;
22308        esac
22309        ;;
22310    esac
22311  fi
22312  if test $gold_non_default = yes; then
22313
22314$as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22315
22316  fi
22317fi
22318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22319$as_echo "$gold_non_default" >&6; }
22320
22321ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22322
22323case "$ORIGINAL_LD_FOR_TARGET" in
22324  ./collect-ld | ./collect-ld$build_exeext) ;;
22325  *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22326 ;;
22327esac
22328
22329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22330$as_echo_n "checking what linker to use... " >&6; }
22331if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22332   || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22333	# Single tree build which includes ld.  We want to prefer it
22334	# over whatever linker top-level may have detected, since
22335	# we'll use what we're building after installation anyway.
22336	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22337$as_echo "newly built ld" >&6; }
22338	in_tree_ld=yes
22339	in_tree_ld_is_elf=no
22340	if (grep 'EMUL = .*elf' ../ld/Makefile \
22341	    || grep 'EMUL = .*linux' ../ld/Makefile \
22342	    || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22343	  in_tree_ld_is_elf=yes
22344	elif test "$ld_is_gold" = yes; then
22345	  in_tree_ld_is_elf=yes
22346	fi
22347	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
22348	do
22349		gcc_cv_gld_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22350		if test x$gcc_cv_gld_version != x; then
22351			break
22352		fi
22353	done
22354	case $gcc_cv_gld_version in
22355	  VERSION=[0-9]*) ;;
22356	  *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22357	esac
22358	gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22359	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22360	ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22361	ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22362else
22363	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22364$as_echo "$gcc_cv_ld" >&6; }
22365	in_tree_ld=no
22366	gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22367	ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22368	ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22369fi
22370
22371
22372
22373
22374# Figure out what nm we will be using.
22375gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22376if ${gcc_cv_nm+:} false; then :
22377
22378else
22379
22380if test -f $gcc_cv_binutils_srcdir/configure.ac \
22381     && test -f ../binutils/Makefile \
22382     && test x$build = x$host; then
22383	gcc_cv_nm=../binutils/nm-new$build_exeext
22384elif test -x nm$build_exeext; then
22385	gcc_cv_nm=./nm$build_exeext
22386elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22387        gcc_cv_nm="$NM_FOR_TARGET"
22388else
22389        # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22390set dummy $NM_FOR_TARGET; ac_word=$2
22391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22392$as_echo_n "checking for $ac_word... " >&6; }
22393if ${ac_cv_path_gcc_cv_nm+:} false; then :
22394  $as_echo_n "(cached) " >&6
22395else
22396  case $gcc_cv_nm in
22397  [\\/]* | ?:[\\/]*)
22398  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22399  ;;
22400  *)
22401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22402for as_dir in $PATH
22403do
22404  IFS=$as_save_IFS
22405  test -z "$as_dir" && as_dir=.
22406    for ac_exec_ext in '' $ac_executable_extensions; do
22407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22408    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22410    break 2
22411  fi
22412done
22413  done
22414IFS=$as_save_IFS
22415
22416  ;;
22417esac
22418fi
22419gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22420if test -n "$gcc_cv_nm"; then
22421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22422$as_echo "$gcc_cv_nm" >&6; }
22423else
22424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22425$as_echo "no" >&6; }
22426fi
22427
22428
22429fi
22430fi
22431
22432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22433$as_echo_n "checking what nm to use... " >&6; }
22434if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22435	# Single tree build which includes binutils.
22436	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22437$as_echo "newly built nm" >&6; }
22438	in_tree_nm=yes
22439else
22440	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22441$as_echo "$gcc_cv_nm" >&6; }
22442	in_tree_nm=no
22443fi
22444
22445ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22446
22447case "$ORIGINAL_NM_FOR_TARGET" in
22448  ./nm | ./nm$build_exeext) ;;
22449  *) ac_config_files="$ac_config_files nm:exec-tool.in"
22450 ;;
22451esac
22452
22453
22454# Figure out what objdump we will be using.
22455if ${gcc_cv_objdump+:} false; then :
22456
22457else
22458
22459if test -f $gcc_cv_binutils_srcdir/configure.ac \
22460     && test -f ../binutils/Makefile \
22461     && test x$build = x$host; then
22462	# Single tree build which includes binutils.
22463	gcc_cv_objdump=../binutils/objdump$build_exeext
22464elif test -x objdump$build_exeext; then
22465	gcc_cv_objdump=./objdump$build_exeext
22466elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22467        gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22468else
22469        # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22470set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22472$as_echo_n "checking for $ac_word... " >&6; }
22473if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22474  $as_echo_n "(cached) " >&6
22475else
22476  case $gcc_cv_objdump in
22477  [\\/]* | ?:[\\/]*)
22478  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22479  ;;
22480  *)
22481  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22482for as_dir in $PATH
22483do
22484  IFS=$as_save_IFS
22485  test -z "$as_dir" && as_dir=.
22486    for ac_exec_ext in '' $ac_executable_extensions; do
22487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22488    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22490    break 2
22491  fi
22492done
22493  done
22494IFS=$as_save_IFS
22495
22496  ;;
22497esac
22498fi
22499gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22500if test -n "$gcc_cv_objdump"; then
22501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22502$as_echo "$gcc_cv_objdump" >&6; }
22503else
22504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22505$as_echo "no" >&6; }
22506fi
22507
22508
22509fi
22510fi
22511
22512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22513$as_echo_n "checking what objdump to use... " >&6; }
22514if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22515	# Single tree build which includes binutils.
22516	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22517$as_echo "newly built objdump" >&6; }
22518elif test x$gcc_cv_objdump = x; then
22519	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22520$as_echo "not found" >&6; }
22521else
22522	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22523$as_echo "$gcc_cv_objdump" >&6; }
22524fi
22525
22526# Figure out what readelf we will be using.
22527if ${gcc_cv_readelf+:} false; then :
22528
22529else
22530
22531if test -f $gcc_cv_binutils_srcdir/configure.ac \
22532     && test -f ../binutils/Makefile \
22533     && test x$build = x$host; then
22534	# Single tree build which includes binutils.
22535	gcc_cv_readelf=../binutils/readelf$build_exeext
22536elif test -x readelf$build_exeext; then
22537	gcc_cv_readelf=./readelf$build_exeext
22538elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22539        gcc_cv_readelf="$READELF_FOR_TARGET"
22540else
22541        # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22542set dummy $READELF_FOR_TARGET; ac_word=$2
22543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22544$as_echo_n "checking for $ac_word... " >&6; }
22545if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22546  $as_echo_n "(cached) " >&6
22547else
22548  case $gcc_cv_readelf in
22549  [\\/]* | ?:[\\/]*)
22550  ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22551  ;;
22552  *)
22553  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22554for as_dir in $PATH
22555do
22556  IFS=$as_save_IFS
22557  test -z "$as_dir" && as_dir=.
22558    for ac_exec_ext in '' $ac_executable_extensions; do
22559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22560    ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22562    break 2
22563  fi
22564done
22565  done
22566IFS=$as_save_IFS
22567
22568  ;;
22569esac
22570fi
22571gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22572if test -n "$gcc_cv_readelf"; then
22573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22574$as_echo "$gcc_cv_readelf" >&6; }
22575else
22576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22577$as_echo "no" >&6; }
22578fi
22579
22580
22581fi
22582fi
22583
22584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22585$as_echo_n "checking what readelf to use... " >&6; }
22586if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22587	# Single tree build which includes binutils.
22588	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22589$as_echo "newly built readelf" >&6; }
22590elif test x$gcc_cv_readelf = x; then
22591	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22592$as_echo "not found" >&6; }
22593else
22594	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22595$as_echo "$gcc_cv_readelf" >&6; }
22596fi
22597
22598# Figure out what otool we will be using.
22599if ${gcc_cv_otool+:} false; then :
22600
22601else
22602
22603if test -x otool$build_exeext; then
22604	gcc_cv_otool=./otool$build_exeext
22605elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22606        gcc_cv_otool="$OTOOL_FOR_TARGET"
22607else
22608        # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22609set dummy $OTOOL_FOR_TARGET; ac_word=$2
22610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22611$as_echo_n "checking for $ac_word... " >&6; }
22612if ${ac_cv_path_gcc_cv_otool+:} false; then :
22613  $as_echo_n "(cached) " >&6
22614else
22615  case $gcc_cv_otool in
22616  [\\/]* | ?:[\\/]*)
22617  ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22618  ;;
22619  *)
22620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22621for as_dir in $PATH
22622do
22623  IFS=$as_save_IFS
22624  test -z "$as_dir" && as_dir=.
22625    for ac_exec_ext in '' $ac_executable_extensions; do
22626  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22627    ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22629    break 2
22630  fi
22631done
22632  done
22633IFS=$as_save_IFS
22634
22635  ;;
22636esac
22637fi
22638gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22639if test -n "$gcc_cv_otool"; then
22640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22641$as_echo "$gcc_cv_otool" >&6; }
22642else
22643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22644$as_echo "no" >&6; }
22645fi
22646
22647
22648fi
22649fi
22650
22651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22652$as_echo_n "checking what otool to use... " >&6; }
22653if test x$gcc_cv_otool = x; then
22654	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22655$as_echo "not found" >&6; }
22656else
22657	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22658$as_echo "$gcc_cv_otool" >&6; }
22659fi
22660
22661# Figure out what assembler alignment features are present.
22662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22663$as_echo_n "checking assembler flags... " >&6; }
22664if ${gcc_cv_as_flags+:} false; then :
22665  $as_echo_n "(cached) " >&6
22666else
22667   case "$target" in
22668  i[34567]86-*-linux*)
22669        gcc_cv_as_flags=--32
22670    ;;
22671  x86_64-*-linux-gnux32)
22672        gcc_cv_as_flags=--x32
22673    ;;
22674  x86_64-*-linux*)
22675        gcc_cv_as_flags=--64
22676    ;;
22677  powerpc*-*-darwin*)
22678        gcc_cv_as_flags="-arch ppc"
22679    ;;
22680  *)
22681    gcc_cv_as_flags=" "
22682    ;;
22683  esac
22684fi
22685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22686$as_echo "$gcc_cv_as_flags" >&6; }
22687
22688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22689$as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22690if ${gcc_cv_as_balign_and_p2align+:} false; then :
22691  $as_echo_n "(cached) " >&6
22692else
22693  gcc_cv_as_balign_and_p2align=no
22694    if test $in_tree_gas = yes; then
22695    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22696  then gcc_cv_as_balign_and_p2align=yes
22697fi
22698  elif test x$gcc_cv_as != x; then
22699    $as_echo '.balign 4
22700.p2align 2' > conftest.s
22701    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22702  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22703  (eval $ac_try) 2>&5
22704  ac_status=$?
22705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22706  test $ac_status = 0; }; }
22707    then
22708	gcc_cv_as_balign_and_p2align=yes
22709    else
22710      echo "configure: failed program was" >&5
22711      cat conftest.s >&5
22712    fi
22713    rm -f conftest.o conftest.s
22714  fi
22715fi
22716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22717$as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22718if test $gcc_cv_as_balign_and_p2align = yes; then
22719
22720$as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22721
22722fi
22723
22724
22725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22726$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22727if ${gcc_cv_as_max_skip_p2align+:} false; then :
22728  $as_echo_n "(cached) " >&6
22729else
22730  gcc_cv_as_max_skip_p2align=no
22731    if test $in_tree_gas = yes; then
22732    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22733  then gcc_cv_as_max_skip_p2align=yes
22734fi
22735  elif test x$gcc_cv_as != x; then
22736    $as_echo '.p2align 4,,7' > conftest.s
22737    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22738  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22739  (eval $ac_try) 2>&5
22740  ac_status=$?
22741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22742  test $ac_status = 0; }; }
22743    then
22744	gcc_cv_as_max_skip_p2align=yes
22745    else
22746      echo "configure: failed program was" >&5
22747      cat conftest.s >&5
22748    fi
22749    rm -f conftest.o conftest.s
22750  fi
22751fi
22752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22753$as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22754if test $gcc_cv_as_max_skip_p2align = yes; then
22755
22756$as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22757
22758fi
22759
22760
22761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22762$as_echo_n "checking assembler for .literal16... " >&6; }
22763if ${gcc_cv_as_literal16+:} false; then :
22764  $as_echo_n "(cached) " >&6
22765else
22766  gcc_cv_as_literal16=no
22767    if test $in_tree_gas = yes; then
22768    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22769  then gcc_cv_as_literal16=yes
22770fi
22771  elif test x$gcc_cv_as != x; then
22772    $as_echo '.literal16' > conftest.s
22773    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22774  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22775  (eval $ac_try) 2>&5
22776  ac_status=$?
22777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22778  test $ac_status = 0; }; }
22779    then
22780	gcc_cv_as_literal16=yes
22781    else
22782      echo "configure: failed program was" >&5
22783      cat conftest.s >&5
22784    fi
22785    rm -f conftest.o conftest.s
22786  fi
22787fi
22788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22789$as_echo "$gcc_cv_as_literal16" >&6; }
22790if test $gcc_cv_as_literal16 = yes; then
22791
22792$as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22793
22794fi
22795
22796
22797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22798$as_echo_n "checking assembler for working .subsection -1... " >&6; }
22799if ${gcc_cv_as_subsection_m1+:} false; then :
22800  $as_echo_n "(cached) " >&6
22801else
22802  gcc_cv_as_subsection_m1=no
22803    if test $in_tree_gas = yes; then
22804    if test $in_tree_gas_is_elf = yes \
22805  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22806  then gcc_cv_as_subsection_m1=yes
22807fi
22808  elif test x$gcc_cv_as != x; then
22809    $as_echo 'conftest_label1: .word 0
22810.subsection -1
22811conftest_label2: .word 0
22812.previous' > conftest.s
22813    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22814  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22815  (eval $ac_try) 2>&5
22816  ac_status=$?
22817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22818  test $ac_status = 0; }; }
22819    then
22820	if test x$gcc_cv_nm != x; then
22821    $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22822    $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22823    if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22824    then :
22825    else gcc_cv_as_subsection_m1=yes
22826    fi
22827    rm -f conftest.nm1 conftest.nm2
22828  fi
22829    else
22830      echo "configure: failed program was" >&5
22831      cat conftest.s >&5
22832    fi
22833    rm -f conftest.o conftest.s
22834  fi
22835fi
22836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22837$as_echo "$gcc_cv_as_subsection_m1" >&6; }
22838if test $gcc_cv_as_subsection_m1 = yes; then
22839
22840$as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22841
22842fi
22843
22844
22845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22846$as_echo_n "checking assembler for .weak... " >&6; }
22847if ${gcc_cv_as_weak+:} false; then :
22848  $as_echo_n "(cached) " >&6
22849else
22850  gcc_cv_as_weak=no
22851    if test $in_tree_gas = yes; then
22852    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22853  then gcc_cv_as_weak=yes
22854fi
22855  elif test x$gcc_cv_as != x; then
22856    $as_echo '	.weak foobar' > conftest.s
22857    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22858  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22859  (eval $ac_try) 2>&5
22860  ac_status=$?
22861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22862  test $ac_status = 0; }; }
22863    then
22864	gcc_cv_as_weak=yes
22865    else
22866      echo "configure: failed program was" >&5
22867      cat conftest.s >&5
22868    fi
22869    rm -f conftest.o conftest.s
22870  fi
22871fi
22872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22873$as_echo "$gcc_cv_as_weak" >&6; }
22874if test $gcc_cv_as_weak = yes; then
22875
22876$as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22877
22878fi
22879
22880
22881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22882$as_echo_n "checking assembler for .weakref... " >&6; }
22883if ${gcc_cv_as_weakref+:} false; then :
22884  $as_echo_n "(cached) " >&6
22885else
22886  gcc_cv_as_weakref=no
22887    if test $in_tree_gas = yes; then
22888    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22889  then gcc_cv_as_weakref=yes
22890fi
22891  elif test x$gcc_cv_as != x; then
22892    $as_echo '	.weakref foobar, barfnot' > conftest.s
22893    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22894  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22895  (eval $ac_try) 2>&5
22896  ac_status=$?
22897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22898  test $ac_status = 0; }; }
22899    then
22900	gcc_cv_as_weakref=yes
22901    else
22902      echo "configure: failed program was" >&5
22903      cat conftest.s >&5
22904    fi
22905    rm -f conftest.o conftest.s
22906  fi
22907fi
22908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22909$as_echo "$gcc_cv_as_weakref" >&6; }
22910if test $gcc_cv_as_weakref = yes; then
22911
22912$as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22913
22914fi
22915
22916
22917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22918$as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22919if ${gcc_cv_as_nsubspa_comdat+:} false; then :
22920  $as_echo_n "(cached) " >&6
22921else
22922  gcc_cv_as_nsubspa_comdat=no
22923    if test $in_tree_gas = yes; then
22924    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22925  then gcc_cv_as_nsubspa_comdat=yes
22926fi
22927  elif test x$gcc_cv_as != x; then
22928    $as_echo '	.SPACE $TEXT$
22929	.NSUBSPA $CODE$,COMDAT' > conftest.s
22930    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22931  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22932  (eval $ac_try) 2>&5
22933  ac_status=$?
22934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22935  test $ac_status = 0; }; }
22936    then
22937	gcc_cv_as_nsubspa_comdat=yes
22938    else
22939      echo "configure: failed program was" >&5
22940      cat conftest.s >&5
22941    fi
22942    rm -f conftest.o conftest.s
22943  fi
22944fi
22945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22946$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22947if test $gcc_cv_as_nsubspa_comdat = yes; then
22948
22949$as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22950
22951fi
22952
22953
22954# .hidden needs to be supported in both the assembler and the linker,
22955# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22956# This is irritatingly difficult to feature test for; we have to check the
22957# date string after the version number.  If we've got an in-tree
22958# ld, we don't know its patchlevel version, so we set the baseline at 2.13
22959# to be safe.
22960# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22961case "${target}" in
22962  *-*-aix*)
22963    conftest_s='	.globl foobar,hidden'
22964    ;;
22965  *)
22966    conftest_s='	.hidden foobar
22967foobar:'
22968    ;;
22969esac
22970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22971$as_echo_n "checking assembler for .hidden... " >&6; }
22972if ${gcc_cv_as_hidden+:} false; then :
22973  $as_echo_n "(cached) " >&6
22974else
22975  gcc_cv_as_hidden=no
22976    if test $in_tree_gas = yes; then
22977    if test $in_tree_gas_is_elf = yes \
22978  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22979  then gcc_cv_as_hidden=yes
22980fi
22981  elif test x$gcc_cv_as != x; then
22982    $as_echo "$conftest_s" > conftest.s
22983    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22984  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22985  (eval $ac_try) 2>&5
22986  ac_status=$?
22987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22988  test $ac_status = 0; }; }
22989    then
22990	gcc_cv_as_hidden=yes
22991    else
22992      echo "configure: failed program was" >&5
22993      cat conftest.s >&5
22994    fi
22995    rm -f conftest.o conftest.s
22996  fi
22997fi
22998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22999$as_echo "$gcc_cv_as_hidden" >&6; }
23000
23001
23002case "${target}" in
23003  *-*-darwin*)
23004    # Darwin as has some visibility support, though with a different syntax.
23005    gcc_cv_as_hidden=yes
23006    ;;
23007esac
23008
23009# gnu_indirect_function type is an extension proposed at
23010# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23011# selection of function implementation
23012# Check whether --enable-gnu-indirect-function was given.
23013if test "${enable_gnu_indirect_function+set}" = set; then :
23014  enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23015    yes | no) ;;
23016    *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23017Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23018  esac
23019else
23020  enable_gnu_indirect_function="$default_gnu_indirect_function"
23021fi
23022
23023
23024gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23025
23026cat >>confdefs.h <<_ACEOF
23027#define HAVE_GNU_INDIRECT_FUNCTION $gif
23028_ACEOF
23029
23030
23031
23032if test $in_tree_ld != yes ; then
23033  ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23034  if echo "$ld_ver" | grep GNU > /dev/null; then
23035    if test x"$ld_is_gold" = xyes; then
23036      # GNU gold --version looks like this:
23037      #
23038      # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23039      #
23040      # We extract the binutils version which is more familiar and specific
23041      # than the gold version.
23042      ld_vers=`echo $ld_ver | sed -n \
23043	  -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23044    else
23045      # GNU ld --version looks like this:
23046      #
23047      # GNU ld (GNU Binutils) 2.21.51.20110225
23048      ld_vers=`echo $ld_ver | sed -n \
23049	  -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23050    fi
23051    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'`
23052    ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23053    ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23054    ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23055  else
23056    case "${target}" in
23057      *-*-solaris2*)
23058	# Solaris 2 ld -V output looks like this for a regular version:
23059	#
23060	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23061	#
23062	# but test versions add stuff at the end:
23063	#
23064	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23065	#
23066	# ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23067	# numbers can be used in ld.so.1 feature checks even if a different
23068	# linker is configured.
23069	ld_ver=`$gcc_cv_ld -V 2>&1`
23070	if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23071	  ld_vers=`echo $ld_ver | sed -n \
23072	    -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23073	  ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23074	  ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23075	fi
23076	;;
23077    esac
23078  fi
23079fi
23080
23081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23082$as_echo_n "checking linker for .hidden support... " >&6; }
23083if ${gcc_cv_ld_hidden+:} false; then :
23084  $as_echo_n "(cached) " >&6
23085else
23086  if test $in_tree_ld = yes ; then
23087  gcc_cv_ld_hidden=no
23088  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 \
23089     && test $in_tree_ld_is_elf = yes; then
23090     gcc_cv_ld_hidden=yes
23091  fi
23092else
23093  gcc_cv_ld_hidden=yes
23094  if test x"$ld_is_gold" = xyes; then
23095    :
23096  elif echo "$ld_ver" | grep GNU > /dev/null; then
23097    case "${target}" in
23098      mmix-knuth-mmixware)
23099        # The linker emits by default mmo, not ELF, so "no" is appropriate.
23100	gcc_cv_ld_hidden=no
23101	;;
23102    esac
23103    if test 0"$ld_date" -lt 20020404; then
23104      if test -n "$ld_date"; then
23105	# If there was date string, but was earlier than 2002-04-04, fail
23106	gcc_cv_ld_hidden=no
23107      elif test -z "$ld_vers"; then
23108	# If there was no date string nor ld version number, something is wrong
23109	gcc_cv_ld_hidden=no
23110      else
23111	test -z "$ld_vers_patch" && ld_vers_patch=0
23112	if test "$ld_vers_major" -lt 2; then
23113	  gcc_cv_ld_hidden=no
23114	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23115	  gcc_cv_ld_hidden="no"
23116	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23117	  gcc_cv_ld_hidden=no
23118	fi
23119      fi
23120    fi
23121  else
23122    case "${target}" in
23123      *-*-aix[789]*)
23124        gcc_cv_ld_hidden=yes
23125        ;;
23126      *-*-darwin*)
23127	# Darwin ld has some visibility support.
23128	gcc_cv_ld_hidden=yes
23129        ;;
23130      hppa64*-*-hpux* | ia64*-*-hpux*)
23131	gcc_cv_ld_hidden=yes
23132	;;
23133      *-*-solaris2.1[0-9]*)
23134	# Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23135	# .symbolic was only added in Solaris 9 12/02.
23136        gcc_cv_ld_hidden=yes
23137	;;
23138      *)
23139	gcc_cv_ld_hidden=no
23140	;;
23141    esac
23142  fi
23143fi
23144fi
23145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23146$as_echo "$gcc_cv_ld_hidden" >&6; }
23147libgcc_visibility=no
23148
23149
23150if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23151  libgcc_visibility=yes
23152
23153$as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23154
23155fi
23156
23157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23158$as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23159gcc_cv_ld_ro_rw_mix=unknown
23160if test $in_tree_ld = yes ; then
23161  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 \
23162     && test $in_tree_ld_is_elf = yes; then
23163    gcc_cv_ld_ro_rw_mix=read-write
23164  fi
23165elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23166  echo '.section myfoosect, "a"' > conftest1.s
23167  echo '.section myfoosect, "aw"' > conftest2.s
23168  echo '.byte 1' >> conftest2.s
23169  echo '.section myfoosect, "a"' > conftest3.s
23170  echo '.byte 0' >> conftest3.s
23171  if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23172     && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23173     && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23174     && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23175	conftest2.o conftest3.o > /dev/null 2>&1; then
23176    gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23177			 | sed -e '/myfoosect/!d' -e N`
23178    if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23179      if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23180	gcc_cv_ld_ro_rw_mix=read-only
23181      else
23182	gcc_cv_ld_ro_rw_mix=read-write
23183      fi
23184    fi
23185  fi
23186  rm -f conftest.* conftest[123].*
23187fi
23188if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23189
23190$as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23191
23192fi
23193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23194$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23195
23196# Check whether --enable-initfini-array was given.
23197if test "${enable_initfini_array+set}" = set; then :
23198  enableval=$enable_initfini_array;
23199else
23200
23201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23202$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23203if ${gcc_cv_initfini_array+:} false; then :
23204  $as_echo_n "(cached) " >&6
23205else
23206    if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23207    case "${target}" in
23208      ia64-*)
23209	if test "$cross_compiling" = yes; then :
23210  gcc_cv_initfini_array=no
23211else
23212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23213/* end confdefs.h.  */
23214
23215#ifndef __ELF__
23216#error Not an ELF OS
23217#endif
23218/* We turn on .preinit_array/.init_array/.fini_array support for ia64
23219   if it can be used.  */
23220static int x = -1;
23221int main (void) { return x; }
23222int foo (void) { x = 0; }
23223int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23224
23225_ACEOF
23226if ac_fn_cxx_try_run "$LINENO"; then :
23227  gcc_cv_initfini_array=yes
23228else
23229  gcc_cv_initfini_array=no
23230fi
23231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23232  conftest.$ac_objext conftest.beam conftest.$ac_ext
23233fi
23234;;
23235      *)
23236	gcc_cv_initfini_array=no
23237	if test $in_tree_ld = yes ; then
23238	  if test "$gcc_cv_gld_major_version" -eq 2 \
23239	     -a "$gcc_cv_gld_minor_version" -ge 22 \
23240	     -o "$gcc_cv_gld_major_version" -gt 2 \
23241	     && test $in_tree_ld_is_elf = yes; then
23242	    gcc_cv_initfini_array=yes
23243	  fi
23244	elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23245	  case $target:$gas in
23246	    *:yes)
23247	      sh_flags='"a"'
23248	      sh_type='%progbits'
23249	      ;;
23250	    i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23251	      sh_flags='"a"'
23252	      sh_type='@progbits'
23253	      ;;
23254	    sparc*-*-solaris2*:no)
23255	      sh_flags='#alloc'
23256	      sh_type='#progbits'
23257	      sh_quote='"'
23258	      ;;
23259	  esac
23260	  case "$target:$gnu_ld" in
23261	    *:yes)
23262	      cat > conftest.s <<EOF
23263.section .dtors,$sh_flags,$sh_type
23264.balign 4
23265.byte 'A', 'A', 'A', 'A'
23266.section .ctors,$sh_flags,$sh_type
23267.balign 4
23268.byte 'B', 'B', 'B', 'B'
23269.section .fini_array.65530,$sh_flags,$sh_type
23270.balign 4
23271.byte 'C', 'C', 'C', 'C'
23272.section .init_array.65530,$sh_flags,$sh_type
23273.balign 4
23274.byte 'D', 'D', 'D', 'D'
23275.section .dtors.64528,$sh_flags,$sh_type
23276.balign 4
23277.byte 'E', 'E', 'E', 'E'
23278.section .ctors.64528,$sh_flags,$sh_type
23279.balign 4
23280.byte 'F', 'F', 'F', 'F'
23281.section .fini_array.01005,$sh_flags,$sh_type
23282.balign 4
23283.byte 'G', 'G', 'G', 'G'
23284.section .init_array.01005,$sh_flags,$sh_type
23285.balign 4
23286.byte 'H', 'H', 'H', 'H'
23287.text
23288.globl _start
23289_start:
23290EOF
23291	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23292	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23293	         && $gcc_cv_objdump -s -j .init_array conftest \
23294		    | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23295	         && $gcc_cv_objdump -s -j .fini_array conftest \
23296		    | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23297	        gcc_cv_initfini_array=yes
23298	      fi
23299	      ;;
23300	    *-*-solaris2*:no)
23301	      # When Solaris ld added constructor priority support, it was
23302	      # decided to only handle .init_array.N/.fini_array.N since
23303	      # there was no need for backwards compatibility with
23304	      # .ctors.N/.dtors.N.  .ctors/.dtors remain as separate
23305	      # sections with correct execution order resp. to
23306	      # .init_array/.fini_array, while gld merges them into
23307	      # .init_array/.fini_array.
23308	      cat > conftest.s <<EOF
23309.section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23310.align 4
23311.byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23312.section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23313.align 4
23314.byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23315.section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23316.align 4
23317.byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23318.section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23319.align 4
23320.byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23321.text
23322.globl _start
23323_start:
23324EOF
23325	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23326	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23327	         && $gcc_cv_objdump -s -j .init_array conftest \
23328		    | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23329	         && $gcc_cv_objdump -s -j .fini_array conftest \
23330		    | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23331	        gcc_cv_initfini_array=yes
23332	      fi
23333	      ;;
23334	    esac
23335	  rm -f conftest conftest.*
23336	fi
23337	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23338/* end confdefs.h.  */
23339
23340#ifndef __ELF__
23341# error Not an ELF OS
23342#endif
23343#include <stdlib.h>
23344#if defined __GLIBC_PREREQ
23345# if __GLIBC_PREREQ (2, 4)
23346# else
23347#  error GLIBC 2.4 required
23348# endif
23349#else
23350# if defined __sun__ && defined __svr4__
23351   /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
23352# else
23353#  error The C library not known to support .init_array/.fini_array
23354# endif
23355#endif
23356
23357_ACEOF
23358if ac_fn_cxx_try_cpp "$LINENO"; then :
23359
23360else
23361  gcc_cv_initfini_array=no
23362fi
23363rm -f conftest.err conftest.i conftest.$ac_ext;;
23364    esac
23365  else
23366    { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23367$as_echo_n "checking cross compile... guessing... " >&6; }
23368    gcc_cv_initfini_array=no
23369  fi
23370fi
23371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23372$as_echo "$gcc_cv_initfini_array" >&6; }
23373  enable_initfini_array=$gcc_cv_initfini_array
23374
23375fi
23376
23377
23378cat >>confdefs.h <<_ACEOF
23379#define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23380_ACEOF
23381
23382
23383
23384# Check if we have .[us]leb128, and support symbol arithmetic with it.
23385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23386$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23387if ${gcc_cv_as_leb128+:} false; then :
23388  $as_echo_n "(cached) " >&6
23389else
23390  gcc_cv_as_leb128=no
23391    if test $in_tree_gas = yes; then
23392    if test $in_tree_gas_is_elf = yes \
23393  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23394  then gcc_cv_as_leb128=yes
23395fi
23396  elif test x$gcc_cv_as != x; then
23397    $as_echo '	.data
23398	.uleb128 L2 - L1
23399L1:
23400	.uleb128 1280
23401	.sleb128 -1010
23402L2:' > conftest.s
23403    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23404  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23405  (eval $ac_try) 2>&5
23406  ac_status=$?
23407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23408  test $ac_status = 0; }; }
23409    then
23410	# GAS versions before 2.11 do not support uleb128,
23411  # despite appearing to.
23412  # ??? There exists an elf-specific test that will crash
23413  # the assembler.  Perhaps it's better to figure out whether
23414  # arbitrary sections are supported and try the test.
23415  as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23416  if echo "$as_ver" | grep GNU > /dev/null; then
23417    as_vers=`echo $as_ver | sed -n \
23418	-e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23419    as_major=`expr "$as_vers" : '\([0-9]*\)'`
23420    as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23421    if test $as_major -eq 2 && test $as_minor -lt 11
23422    then :
23423    else gcc_cv_as_leb128=yes
23424    fi
23425  fi
23426    else
23427      echo "configure: failed program was" >&5
23428      cat conftest.s >&5
23429    fi
23430    rm -f conftest.o conftest.s
23431  fi
23432fi
23433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23434$as_echo "$gcc_cv_as_leb128" >&6; }
23435if test $gcc_cv_as_leb128 = yes; then
23436
23437$as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23438
23439fi
23440if test $gcc_cv_as_leb128 != yes; then
23441
23442$as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23443
23444fi
23445
23446# Determine if an .eh_frame section is read-only.
23447gcc_fn_eh_frame_ro () {
23448  $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23449    $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23450    sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23451}
23452
23453# Check if we have assembler support for unwind directives.
23454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23455$as_echo_n "checking assembler for cfi directives... " >&6; }
23456if ${gcc_cv_as_cfi_directive+:} false; then :
23457  $as_echo_n "(cached) " >&6
23458else
23459  gcc_cv_as_cfi_directive=no
23460  if test x$gcc_cv_as != x; then
23461    $as_echo '	.text
23462	.cfi_startproc
23463	.cfi_offset 0, 0
23464	.cfi_same_value 1
23465	.cfi_def_cfa 1, 2
23466	.cfi_escape 1, 2, 3, 4, 5
23467	.cfi_endproc' > conftest.s
23468    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23469  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23470  (eval $ac_try) 2>&5
23471  ac_status=$?
23472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23473  test $ac_status = 0; }; }
23474    then
23475	case "$target" in
23476  *-*-solaris*)
23477    # If the linker used on Solaris (like Sun ld) isn't capable of merging
23478    # read-only and read-write sections, we need to make sure that the
23479    # assembler used emits read-write .eh_frame sections.
23480    if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23481      gcc_cv_as_cfi_directive=yes
23482    elif test "x$gcc_cv_objdump" = x; then
23483      # No objdump, err on the side of caution.
23484      gcc_cv_as_cfi_directive=no
23485    else
23486      if test x$gas = xyes; then
23487	as_32_opt="--32"
23488	as_64_opt="--64"
23489      else
23490	as_32_opt="-m32"
23491	as_64_opt="-m64"
23492      fi
23493      case "$target" in
23494	sparc*-*-solaris2.*)
23495	  # On Solaris/SPARC, .eh_frame sections should always be read-write.
23496	  if gcc_fn_eh_frame_ro $as_32_opt \
23497	     || gcc_fn_eh_frame_ro $as_64_opt; then
23498	    gcc_cv_as_cfi_directive=no
23499	  else
23500	    gcc_cv_as_cfi_directive=yes
23501	  fi
23502	  ;;
23503	i?86-*-solaris2.* | x86_64-*-solaris2.*)
23504	  # On Solaris/x86, make sure that GCC and assembler agree on using
23505	  # read-only .eh_frame sections for 64-bit.
23506	  if gcc_fn_eh_frame_ro $as_32_opt; then
23507	    gcc_cv_as_cfi_directive=no
23508	  elif gcc_fn_eh_frame_ro $as_64_opt; then
23509	    gcc_cv_as_cfi_directive=yes
23510	  else
23511	    gcc_cv_as_cfi_directive=no
23512	  fi
23513	  ;;
23514      esac
23515    fi
23516    ;;
23517  *-*-*)
23518    gcc_cv_as_cfi_directive=yes
23519    ;;
23520esac
23521    else
23522      echo "configure: failed program was" >&5
23523      cat conftest.s >&5
23524    fi
23525    rm -f conftest.o conftest.s
23526  fi
23527fi
23528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23529$as_echo "$gcc_cv_as_cfi_directive" >&6; }
23530
23531
23532if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23534$as_echo_n "checking assembler for working cfi advance... " >&6; }
23535if ${gcc_cv_as_cfi_advance_working+:} false; then :
23536  $as_echo_n "(cached) " >&6
23537else
23538  gcc_cv_as_cfi_advance_working=no
23539  if test x$gcc_cv_as != x; then
23540    $as_echo '	.text
23541	.cfi_startproc
23542	.cfi_adjust_cfa_offset 64
23543	.skip 75040, 0
23544	.cfi_adjust_cfa_offset 128
23545	.cfi_endproc' > conftest.s
23546    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23547  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23548  (eval $ac_try) 2>&5
23549  ac_status=$?
23550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23551  test $ac_status = 0; }; }
23552    then
23553
23554if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23555    | grep 'DW_CFA_advance_loc[24]:[ 	][ 	]*75040[ 	]' >/dev/null; then
23556   gcc_cv_as_cfi_advance_working=yes
23557fi
23558
23559    else
23560      echo "configure: failed program was" >&5
23561      cat conftest.s >&5
23562    fi
23563    rm -f conftest.o conftest.s
23564  fi
23565fi
23566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23567$as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23568
23569
23570else
23571  # no objdump, err on the side of caution
23572  gcc_cv_as_cfi_advance_working=no
23573fi
23574
23575
23576cat >>confdefs.h <<_ACEOF
23577#define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23578       && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23579_ACEOF
23580
23581
23582
23583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23584$as_echo_n "checking assembler for cfi personality directive... " >&6; }
23585if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23586  $as_echo_n "(cached) " >&6
23587else
23588  gcc_cv_as_cfi_personality_directive=no
23589  if test x$gcc_cv_as != x; then
23590    $as_echo '	.text
23591	.cfi_startproc
23592	.cfi_personality 0, symbol
23593	.cfi_endproc' > conftest.s
23594    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23595  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23596  (eval $ac_try) 2>&5
23597  ac_status=$?
23598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23599  test $ac_status = 0; }; }
23600    then
23601	gcc_cv_as_cfi_personality_directive=yes
23602    else
23603      echo "configure: failed program was" >&5
23604      cat conftest.s >&5
23605    fi
23606    rm -f conftest.o conftest.s
23607  fi
23608fi
23609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23610$as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23611
23612
23613
23614cat >>confdefs.h <<_ACEOF
23615#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23616_ACEOF
23617
23618
23619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23620$as_echo_n "checking assembler for cfi sections directive... " >&6; }
23621if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23622  $as_echo_n "(cached) " >&6
23623else
23624  gcc_cv_as_cfi_sections_directive=no
23625  if test x$gcc_cv_as != x; then
23626    $as_echo '	.text
23627	.cfi_sections .debug_frame, .eh_frame
23628	.cfi_startproc
23629	.cfi_endproc' > conftest.s
23630    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23631  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23632  (eval $ac_try) 2>&5
23633  ac_status=$?
23634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23635  test $ac_status = 0; }; }
23636    then
23637	case $target_os in
23638  win32 | pe | cygwin* | mingw32*)
23639    # Need to check that we generated the correct relocation for the
23640    # .debug_frame section.  This was fixed for binutils 2.21.
23641    gcc_cv_as_cfi_sections_directive=no
23642    if test "x$gcc_cv_objdump" != x; then
23643     if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23644	grep secrel > /dev/null; then
23645      gcc_cv_as_cfi_sections_directive=yes
23646     fi
23647    fi
23648    ;;
23649  *)
23650    gcc_cv_as_cfi_sections_directive=yes
23651    ;;
23652esac
23653    else
23654      echo "configure: failed program was" >&5
23655      cat conftest.s >&5
23656    fi
23657    rm -f conftest.o conftest.s
23658  fi
23659fi
23660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23661$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23662
23663
23664
23665
23666cat >>confdefs.h <<_ACEOF
23667#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23668_ACEOF
23669
23670
23671# GAS versions up to and including 2.11.0 may mis-optimize
23672# .eh_frame data.
23673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23674$as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23675if ${gcc_cv_as_eh_frame+:} false; then :
23676  $as_echo_n "(cached) " >&6
23677else
23678  gcc_cv_as_eh_frame=no
23679    if test $in_tree_gas = yes; then
23680    if test $in_tree_gas_is_elf = yes \
23681  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23682  then gcc_cv_as_eh_frame=yes
23683fi
23684  elif test x$gcc_cv_as != x; then
23685    $as_echo '	.text
23686.LFB1:
23687	.4byte	0
23688.L1:
23689	.4byte	0
23690.LFE1:
23691	.section	.eh_frame,"aw",@progbits
23692__FRAME_BEGIN__:
23693	.4byte	.LECIE1-.LSCIE1
23694.LSCIE1:
23695	.4byte	0x0
23696	.byte	0x1
23697	.ascii "z\0"
23698	.byte	0x1
23699	.byte	0x78
23700	.byte	0x1a
23701	.byte	0x0
23702	.byte	0x4
23703	.4byte	1
23704	.p2align 1
23705.LECIE1:
23706.LSFDE1:
23707	.4byte	.LEFDE1-.LASFDE1
23708.LASFDE1:
23709	.4byte	.LASFDE1-__FRAME_BEGIN__
23710	.4byte	.LFB1
23711	.4byte	.LFE1-.LFB1
23712	.byte	0x4
23713	.4byte	.LFE1-.LFB1
23714	.byte	0x4
23715	.4byte	.L1-.LFB1
23716.LEFDE1:' > conftest.s
23717    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23718  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23719  (eval $ac_try) 2>&5
23720  ac_status=$?
23721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23722  test $ac_status = 0; }; }
23723    then
23724	  cat > conftest.lit <<EOF
23725 0000 10000000 00000000 017a0001 781a0004  .........z..x...
23726 0010 01000000 12000000 18000000 00000000  ................
23727 0020 08000000 04080000 0044               .........D      
23728EOF
23729cat > conftest.big <<EOF
23730 0000 00000010 00000000 017a0001 781a0004  .........z..x...
23731 0010 00000001 00000012 00000018 00000000  ................
23732 0020 00000008 04000000 0844               .........D      
23733EOF
23734  # If the assembler didn't choke, and we can objdump,
23735  # and we got the correct data, then succeed.
23736  # The text in the here-document typically retains its unix-style line
23737  # endings, while the output of objdump will use host line endings.
23738  # Therefore, use diff -b for the comparisons.
23739  if test x$gcc_cv_objdump != x \
23740  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23741     | tail -3 > conftest.got \
23742  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23743    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23744  then
23745    gcc_cv_as_eh_frame=yes
23746  elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23747  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23748  (eval $ac_try) 2>&5
23749  ac_status=$?
23750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23751  test $ac_status = 0; }; }; then
23752    gcc_cv_as_eh_frame=buggy
23753  else
23754    # Uh oh, what do we do now?
23755    gcc_cv_as_eh_frame=no
23756  fi
23757    else
23758      echo "configure: failed program was" >&5
23759      cat conftest.s >&5
23760    fi
23761    rm -f conftest.o conftest.s
23762  fi
23763fi
23764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23765$as_echo "$gcc_cv_as_eh_frame" >&6; }
23766
23767
23768
23769if test $gcc_cv_as_eh_frame = buggy; then
23770
23771$as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23772
23773fi
23774
23775# Test if the assembler supports the section flag 'e' or #exclude for
23776# specifying an excluded section.
23777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23778$as_echo_n "checking assembler for section exclude flag... " >&6; }
23779if ${gcc_cv_as_section_exclude_e+:} false; then :
23780  $as_echo_n "(cached) " >&6
23781else
23782  gcc_cv_as_section_exclude_e=no
23783    if test $in_tree_gas = yes; then
23784    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23785  then gcc_cv_as_section_exclude_e=yes
23786fi
23787  elif test x$gcc_cv_as != x; then
23788    $as_echo '.section foo1,"e"
23789  .byte 0,0,0,0' > conftest.s
23790    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23791  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23792  (eval $ac_try) 2>&5
23793  ac_status=$?
23794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23795  test $ac_status = 0; }; }
23796    then
23797	gcc_cv_as_section_exclude_e=yes
23798    else
23799      echo "configure: failed program was" >&5
23800      cat conftest.s >&5
23801    fi
23802    rm -f conftest.o conftest.s
23803  fi
23804fi
23805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23806$as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23807
23808
23809if test $gcc_cv_as_section_exclude_e = no; then
23810  case "${target}" in
23811    # Solaris as uses #exclude instead.
23812    *-*-solaris2*)
23813      case "${target}" in
23814	sparc*-*-solaris2*)
23815	  conftest_s='.section "foo1", #exclude'
23816	  ;;
23817	i?86-*-solaris2* | x86_64-*-solaris2*)
23818	  conftest_s='.section foo1, #exclude'
23819	  ;;
23820      esac
23821      ;;
23822    esac
23823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23824$as_echo_n "checking assembler for section exclude flag... " >&6; }
23825if ${gcc_cv_as_section_exclude_hash+:} false; then :
23826  $as_echo_n "(cached) " >&6
23827else
23828  gcc_cv_as_section_exclude_hash=no
23829  if test x$gcc_cv_as != x; then
23830    $as_echo "$conftest_s
23831     .byte 0,0,0,0" > conftest.s
23832    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23833  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23834  (eval $ac_try) 2>&5
23835  ac_status=$?
23836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23837  test $ac_status = 0; }; }
23838    then
23839	gcc_cv_as_section_exclude_hash=yes
23840    else
23841      echo "configure: failed program was" >&5
23842      cat conftest.s >&5
23843    fi
23844    rm -f conftest.o conftest.s
23845  fi
23846fi
23847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23848$as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23849
23850
23851fi
23852
23853cat >>confdefs.h <<_ACEOF
23854#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`
23855_ACEOF
23856
23857
23858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23859$as_echo_n "checking assembler for section merging support... " >&6; }
23860if ${gcc_cv_as_shf_merge+:} false; then :
23861  $as_echo_n "(cached) " >&6
23862else
23863  gcc_cv_as_shf_merge=no
23864    if test $in_tree_gas = yes; then
23865    if test $in_tree_gas_is_elf = yes \
23866  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23867  then gcc_cv_as_shf_merge=yes
23868fi
23869  elif test x$gcc_cv_as != x; then
23870    $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23871    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23872  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23873  (eval $ac_try) 2>&5
23874  ac_status=$?
23875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23876  test $ac_status = 0; }; }
23877    then
23878	gcc_cv_as_shf_merge=yes
23879    else
23880      echo "configure: failed program was" >&5
23881      cat conftest.s >&5
23882    fi
23883    rm -f conftest.o conftest.s
23884  fi
23885fi
23886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23887$as_echo "$gcc_cv_as_shf_merge" >&6; }
23888
23889
23890if test $gcc_cv_as_shf_merge = no; then
23891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23892$as_echo_n "checking assembler for section merging support... " >&6; }
23893if ${gcc_cv_as_shf_merge+:} false; then :
23894  $as_echo_n "(cached) " >&6
23895else
23896  gcc_cv_as_shf_merge=no
23897    if test $in_tree_gas = yes; then
23898    if test $in_tree_gas_is_elf = yes \
23899  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23900  then gcc_cv_as_shf_merge=yes
23901fi
23902  elif test x$gcc_cv_as != x; then
23903    $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23904    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23905  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23906  (eval $ac_try) 2>&5
23907  ac_status=$?
23908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23909  test $ac_status = 0; }; }
23910    then
23911	gcc_cv_as_shf_merge=yes
23912    else
23913      echo "configure: failed program was" >&5
23914      cat conftest.s >&5
23915    fi
23916    rm -f conftest.o conftest.s
23917  fi
23918fi
23919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23920$as_echo "$gcc_cv_as_shf_merge" >&6; }
23921
23922
23923fi
23924case "$target" in
23925  i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23926    # SHF_MERGE support in Solaris 10/x86 ld is broken.
23927    if test x"$gnu_ld" = xno; then
23928      gcc_cv_as_shf_merge=no
23929    fi
23930    ;;
23931esac
23932
23933cat >>confdefs.h <<_ACEOF
23934#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23935_ACEOF
23936
23937
23938gcc_cv_ld_aligned_shf_merge=yes
23939case "$target" in
23940  # While Solaris 10/SPARC ld isn't affected, disable to avoid problems
23941  # relinking on Solaris 11 < 11.4.
23942  sparc*-*-solaris2.10*)
23943    if test x"$gnu_ld" = xno; then
23944      gcc_cv_ld_aligned_shf_merge=no
23945    fi
23946    ;;
23947  # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23948  # alignment > 1.
23949  sparc*-*-solaris2.11*)
23950    if test x"$gnu_ld" = xno \
23951       && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23952      gcc_cv_ld_aligned_shf_merge=no
23953    fi
23954    ;;
23955esac
23956
23957cat >>confdefs.h <<_ACEOF
23958#define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23959_ACEOF
23960
23961
23962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23963$as_echo_n "checking assembler for stabs directive... " >&6; }
23964if ${gcc_cv_as_stabs_directive+:} false; then :
23965  $as_echo_n "(cached) " >&6
23966else
23967  gcc_cv_as_stabs_directive=no
23968  if test x$gcc_cv_as != x; then
23969    $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23970    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23971  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23972  (eval $ac_try) 2>&5
23973  ac_status=$?
23974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23975  test $ac_status = 0; }; }
23976    then
23977	gcc_cv_as_stabs_directive=yes
23978    else
23979      echo "configure: failed program was" >&5
23980      cat conftest.s >&5
23981    fi
23982    rm -f conftest.o conftest.s
23983  fi
23984fi
23985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23986$as_echo "$gcc_cv_as_stabs_directive" >&6; }
23987if test $gcc_cv_as_stabs_directive = yes; then
23988
23989$as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23990
23991fi
23992
23993
23994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23995$as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23996if ${gcc_cv_as_comdat_group+:} false; then :
23997  $as_echo_n "(cached) " >&6
23998else
23999  gcc_cv_as_comdat_group=no
24000    if test $in_tree_gas = yes; then
24001    if test $in_tree_gas_is_elf = yes \
24002  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24003  then gcc_cv_as_comdat_group=yes
24004fi
24005  elif test x$gcc_cv_as != x; then
24006    $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24007    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24008  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24009  (eval $ac_try) 2>&5
24010  ac_status=$?
24011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24012  test $ac_status = 0; }; }
24013    then
24014	gcc_cv_as_comdat_group=yes
24015    else
24016      echo "configure: failed program was" >&5
24017      cat conftest.s >&5
24018    fi
24019    rm -f conftest.o conftest.s
24020  fi
24021fi
24022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24023$as_echo "$gcc_cv_as_comdat_group" >&6; }
24024
24025
24026if test $gcc_cv_as_comdat_group = yes; then
24027  gcc_cv_as_comdat_group_percent=no
24028  gcc_cv_as_comdat_group_group=no
24029else
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24031$as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24032if ${gcc_cv_as_comdat_group_percent+:} false; then :
24033  $as_echo_n "(cached) " >&6
24034else
24035  gcc_cv_as_comdat_group_percent=no
24036    if test $in_tree_gas = yes; then
24037    if test $in_tree_gas_is_elf = yes \
24038  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24039  then gcc_cv_as_comdat_group_percent=yes
24040fi
24041  elif test x$gcc_cv_as != x; then
24042    $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24043    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24044  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24045  (eval $ac_try) 2>&5
24046  ac_status=$?
24047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24048  test $ac_status = 0; }; }
24049    then
24050	gcc_cv_as_comdat_group_percent=yes
24051    else
24052      echo "configure: failed program was" >&5
24053      cat conftest.s >&5
24054    fi
24055    rm -f conftest.o conftest.s
24056  fi
24057fi
24058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24059$as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24060
24061
24062 if test $gcc_cv_as_comdat_group_percent = yes; then
24063   gcc_cv_as_comdat_group_group=no
24064 else
24065   case "${target}" in
24066     # Sun as uses a completely different syntax.
24067     *-*-solaris2*)
24068       case "${target}" in
24069         sparc*-*-solaris2*)
24070           conftest_s='
24071               .group foo,".text%foo",#comdat
24072               .section ".text%foo", #alloc,#execinstr,#progbits
24073               .globl foo
24074             foo:
24075	     '
24076           ;;
24077         i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
24078	   conftest_s='
24079               .group foo,.text%foo,#comdat
24080               .section .text%foo, "ax", @progbits
24081               .globl  foo
24082             foo:
24083	     '
24084	   ;;
24085       esac
24086       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24087$as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24088if ${gcc_cv_as_comdat_group_group+:} false; then :
24089  $as_echo_n "(cached) " >&6
24090else
24091  gcc_cv_as_comdat_group_group=no
24092  if test x$gcc_cv_as != x; then
24093    $as_echo "$conftest_s" > conftest.s
24094    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24095  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24096  (eval $ac_try) 2>&5
24097  ac_status=$?
24098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24099  test $ac_status = 0; }; }
24100    then
24101	gcc_cv_as_comdat_group_group=yes
24102    else
24103      echo "configure: failed program was" >&5
24104      cat conftest.s >&5
24105    fi
24106    rm -f conftest.o conftest.s
24107  fi
24108fi
24109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24110$as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24111
24112
24113       ;;
24114   esac
24115   if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24116     gcc_cv_as_comdat_group_group=no
24117   fi
24118 fi
24119fi
24120if test x"$ld_is_gold" = xyes; then
24121  comdat_group=yes
24122elif test $in_tree_ld = yes ; then
24123  comdat_group=no
24124  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 \
24125     && test $in_tree_ld_is_elf = yes; then
24126     comdat_group=yes
24127  fi
24128elif echo "$ld_ver" | grep GNU > /dev/null; then
24129  comdat_group=yes
24130  if test 0"$ld_date" -lt 20050308; then
24131    if test -n "$ld_date"; then
24132      # If there was date string, but was earlier than 2005-03-08, fail
24133      comdat_group=no
24134    elif test "$ld_vers_major" -lt 2; then
24135      comdat_group=no
24136    elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24137      comdat_group=no
24138    fi
24139  fi
24140else
24141  case "${target}" in
24142    *-*-solaris2.1[1-9]*)
24143      comdat_group=no
24144      # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24145      # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24146      # version 1.688.
24147      #
24148      # If using Sun as for COMDAT group as emitted by GCC, one needs at
24149      # least ld version 1.2267.
24150      if test "$ld_vers_major" -gt 1; then
24151        comdat_group=yes
24152      elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24153	comdat_group=yes
24154      elif test "$ld_vers_minor" -ge 2267; then
24155	comdat_group=yes
24156      fi
24157      ;;
24158    *)
24159      # Assume linkers other than GNU ld don't support COMDAT group.
24160      comdat_group=no
24161      ;;
24162  esac
24163fi
24164# Allow overriding the automatic COMDAT group tests above.
24165# Check whether --enable-comdat was given.
24166if test "${enable_comdat+set}" = set; then :
24167  enableval=$enable_comdat; comdat_group="$enable_comdat"
24168fi
24169
24170if test $comdat_group = no; then
24171  gcc_cv_as_comdat_group=no
24172  gcc_cv_as_comdat_group_percent=no
24173  gcc_cv_as_comdat_group_group=no
24174fi
24175
24176cat >>confdefs.h <<_ACEOF
24177#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24178    || test $gcc_cv_as_comdat_group_percent = yes \
24179    || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24180_ACEOF
24181
24182
24183# Restrict this test to Solaris/x86: other targets define this statically.
24184case "${target}" in
24185  i?86-*-solaris2* | x86_64-*-solaris2*)
24186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24187$as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24188    if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24189      hidden_linkonce=yes
24190    else
24191      case "${target}" in
24192	# Full support for hidden thunks in linkonce sections only appeared in
24193	# Solaris 11/OpenSolaris.
24194        *-*-solaris2.1[1-9]*)
24195	  hidden_linkonce=yes
24196	  ;;
24197	*)
24198	  hidden_linkonce=no
24199	  ;;
24200      esac
24201    fi
24202    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24203$as_echo "$hidden_linkonce" >&6; }
24204
24205cat >>confdefs.h <<_ACEOF
24206#define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24207_ACEOF
24208
24209  ;;
24210esac
24211
24212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24213$as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24214if ${gcc_cv_as_is_stmt+:} false; then :
24215  $as_echo_n "(cached) " >&6
24216else
24217  gcc_cv_as_is_stmt=no
24218    if test $in_tree_gas = yes; then
24219    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24220  then gcc_cv_as_is_stmt=yes
24221fi
24222  elif test x$gcc_cv_as != x; then
24223    $as_echo '	.text
24224	.file 1 "conf.c"
24225	.loc 1 1 0 is_stmt 1' > conftest.s
24226    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24227  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24228  (eval $ac_try) 2>&5
24229  ac_status=$?
24230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24231  test $ac_status = 0; }; }
24232    then
24233	gcc_cv_as_is_stmt=yes
24234    else
24235      echo "configure: failed program was" >&5
24236      cat conftest.s >&5
24237    fi
24238    rm -f conftest.o conftest.s
24239  fi
24240fi
24241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24242$as_echo "$gcc_cv_as_is_stmt" >&6; }
24243if test $gcc_cv_as_is_stmt = yes; then
24244
24245$as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24246
24247fi
24248
24249
24250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24251$as_echo_n "checking assembler for line table discriminator support... " >&6; }
24252if ${gcc_cv_as_discriminator+:} false; then :
24253  $as_echo_n "(cached) " >&6
24254else
24255  gcc_cv_as_discriminator=no
24256    if test $in_tree_gas = yes; then
24257    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24258  then gcc_cv_as_discriminator=yes
24259fi
24260  elif test x$gcc_cv_as != x; then
24261    $as_echo '	.text
24262	.file 1 "conf.c"
24263	.loc 1 1 0 discriminator 1' > conftest.s
24264    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24265  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24266  (eval $ac_try) 2>&5
24267  ac_status=$?
24268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24269  test $ac_status = 0; }; }
24270    then
24271	gcc_cv_as_discriminator=yes
24272    else
24273      echo "configure: failed program was" >&5
24274      cat conftest.s >&5
24275    fi
24276    rm -f conftest.o conftest.s
24277  fi
24278fi
24279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24280$as_echo "$gcc_cv_as_discriminator" >&6; }
24281if test $gcc_cv_as_discriminator = yes; then
24282
24283$as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24284
24285fi
24286
24287
24288# Thread-local storage - the check is heavily parameterized.
24289conftest_s=
24290tls_first_major=
24291tls_first_minor=
24292tls_as_opt=
24293case "$target" in
24294  alpha*-*-*)
24295    conftest_s='
24296	.section ".tdata","awT",@progbits
24297foo:	.long	25
24298	.text
24299	ldq	$27,__tls_get_addr($29)		!literal!1
24300	lda	$16,foo($29)			!tlsgd!1
24301	jsr	$26,($27),__tls_get_addr	!lituse_tlsgd!1
24302	ldq	$27,__tls_get_addr($29)		!literal!2
24303	lda	$16,foo($29)			!tlsldm!2
24304	jsr	$26,($27),__tls_get_addr	!lituse_tlsldm!2
24305	ldq	$1,foo($29)			!gotdtprel
24306	ldah	$2,foo($29)			!dtprelhi
24307	lda	$3,foo($2)			!dtprello
24308	lda	$4,foo($29)			!dtprel
24309	ldq	$1,foo($29)			!gottprel
24310	ldah	$2,foo($29)			!tprelhi
24311	lda	$3,foo($2)			!tprello
24312	lda	$4,foo($29)			!tprel'
24313	tls_first_major=2
24314	tls_first_minor=13
24315	tls_as_opt=--fatal-warnings
24316	;;
24317  arc*-*-*)
24318    conftest_s='
24319	add_s r0,r0, @foo@tpoff'
24320	tls_first_major=2
24321	tls_first_minor=23
24322	;;
24323  cris-*-*|crisv32-*-*)
24324    conftest_s='
24325	.section ".tdata","awT",@progbits
24326x:      .long   25
24327        .text
24328	move.d x:IE,$r10
24329	nop'
24330	tls_first_major=2
24331	tls_first_minor=20
24332	tls_as_opt=--fatal-warnings
24333	;;
24334  frv*-*-*)
24335    conftest_s='
24336	.section ".tdata","awT",@progbits
24337x:      .long   25
24338        .text
24339        call    #gettlsoff(x)'
24340	tls_first_major=2
24341	tls_first_minor=14
24342	;;
24343  hppa*-*-linux*)
24344    conftest_s='
24345t1:	.reg	%r20
24346t2:	.reg	%r21
24347gp:	.reg	%r19
24348	.section ".tdata","awT",@progbits
24349foo:	.long	25
24350	.text
24351	.align	4
24352	addil LT%foo-$tls_gdidx$,gp
24353	ldo RT%foo-$tls_gdidx$(%r1),%arg0
24354	b __tls_get_addr
24355	nop
24356	addil LT%foo-$tls_ldidx$,gp
24357	b __tls_get_addr
24358	ldo RT%foo-$tls_ldidx$(%r1),%arg0
24359	addil LR%foo-$tls_dtpoff$,%ret0
24360	ldo RR%foo-$tls_dtpoff$(%r1),%t1
24361	mfctl %cr27,%t1
24362	addil LT%foo-$tls_ieoff$,gp
24363	ldw RT%foo-$tls_ieoff$(%r1),%t2
24364	add %t1,%t2,%t3
24365	mfctl %cr27,%t1
24366	addil LR%foo-$tls_leoff$,%t1
24367	ldo RR%foo-$tls_leoff$(%r1),%t2'
24368	tls_first_major=2
24369	tls_first_minor=15
24370	tls_as_opt=--fatal-warnings
24371	;;
24372  arm*-*-*)
24373    conftest_s='
24374	.section ".tdata","awT",%progbits
24375foo:	.long	25
24376	.text
24377.word foo(gottpoff)
24378.word foo(tpoff)
24379.word foo(tlsgd)
24380.word foo(tlsldm)
24381.word foo(tlsldo)'
24382	tls_first_major=2
24383	tls_first_minor=17
24384	;;
24385  i[34567]86-*-* | x86_64-*-*)
24386    case "$target" in
24387      i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
24388	on_solaris=yes
24389        ;;
24390      *)
24391	on_solaris=no
24392	;;
24393    esac
24394    if test x$on_solaris = xyes && test x$gas_flag = xno; then
24395      conftest_s='
24396	.section .tdata,"awt",@progbits'
24397      tls_first_major=0
24398      tls_first_minor=0
24399      tls_section_flag=t
24400
24401$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24402
24403    else
24404      conftest_s='
24405	.section ".tdata","awT",@progbits'
24406      tls_first_major=2
24407      tls_first_minor=14
24408      tls_section_flag=T
24409      tls_as_opt="--fatal-warnings"
24410    fi
24411    case "$target" in
24412      i[34567]86-*-*)
24413	conftest_s="$conftest_s
24414foo:	.long	25
24415	.text
24416	movl	%gs:0, %eax
24417	leal	foo@tlsgd(,%ebx,1), %eax
24418	leal	foo@tlsldm(%ebx), %eax
24419	leal	foo@dtpoff(%eax), %edx
24420	movl	foo@gottpoff(%ebx), %eax
24421	subl	foo@gottpoff(%ebx), %eax
24422	addl	foo@gotntpoff(%ebx), %eax
24423	movl	foo@indntpoff, %eax
24424	movl	\$foo@tpoff, %eax
24425	subl	\$foo@tpoff, %eax
24426	leal	foo@ntpoff(%ecx), %eax"
24427	;;
24428      x86_64-*-*)
24429	if test x$on_solaris = xyes; then
24430	  case $gas_flag in
24431	    yes) tls_as_opt="$tls_as_opt --64" ;;
24432	    no)	 tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24433	  esac
24434	fi
24435	conftest_s="$conftest_s
24436foo:	.long	25
24437	.text
24438	movq	%fs:0, %rax
24439	leaq	foo@tlsgd(%rip), %rdi
24440	leaq	foo@tlsld(%rip), %rdi
24441	leaq	foo@dtpoff(%rax), %rdx
24442	movq	foo@gottpoff(%rip), %rax
24443	movq	\$foo@tpoff, %rax"
24444        ;;
24445    esac
24446    ;;
24447  ia64-*-*)
24448    conftest_s='
24449	.section ".tdata","awT",@progbits
24450foo:	data8	25
24451	.text
24452	addl	r16 = @ltoff(@dtpmod(foo#)), gp
24453	addl	r17 = @ltoff(@dtprel(foo#)), gp
24454	addl	r18 = @ltoff(@tprel(foo#)), gp
24455	addl	r19 = @dtprel(foo#), gp
24456	adds	r21 = @dtprel(foo#), r13
24457	movl	r23 = @dtprel(foo#)
24458	addl	r20 = @tprel(foo#), gp
24459	adds	r22 = @tprel(foo#), r13
24460	movl	r24 = @tprel(foo#)'
24461	tls_first_major=2
24462	tls_first_minor=13
24463	tls_as_opt=--fatal-warnings
24464	;;
24465  microblaze*-*-*)
24466    conftest_s='
24467	.section .tdata,"awT",@progbits
24468x:
24469	.word 2
24470	.text
24471	addik r5,r20,x@TLSGD
24472	addik r5,r20,x@TLSLDM'
24473	tls_first_major=2
24474	tls_first_minor=20
24475	tls_as_opt='--fatal-warnings'
24476	;;
24477  mips*-*-*)
24478    conftest_s='
24479	.section .tdata,"awT",@progbits
24480x:
24481	.word 2
24482	.text
24483	addiu $4, $28, %tlsgd(x)
24484	addiu $4, $28, %tlsldm(x)
24485	lui $4, %dtprel_hi(x)
24486	addiu $4, $4, %dtprel_lo(x)
24487	lw $4, %gottprel(x)($28)
24488	lui $4, %tprel_hi(x)
24489	addiu $4, $4, %tprel_lo(x)'
24490	tls_first_major=2
24491	tls_first_minor=16
24492	tls_as_opt='-32 --fatal-warnings'
24493	;;
24494  m68k-*-*)
24495    conftest_s='
24496	.section .tdata,"awT",@progbits
24497x:
24498	.word 2
24499	.text
24500foo:
24501	move.l x@TLSGD(%a5),%a0
24502	move.l x@TLSLDM(%a5),%a0
24503	move.l x@TLSLDO(%a5),%a0
24504	move.l x@TLSIE(%a5),%a0
24505	move.l x@TLSLE(%a5),%a0'
24506	tls_first_major=2
24507	tls_first_minor=19
24508	tls_as_opt='--fatal-warnings'
24509	;;
24510  nios2-*-*)
24511      conftest_s='
24512	.section ".tdata","awT",@progbits'
24513	tls_first_major=2
24514	tls_first_minor=23
24515	tls_as_opt="--fatal-warnings"
24516	;;
24517  aarch64*-*-*)
24518    conftest_s='
24519	.section ".tdata","awT",%progbits
24520foo:	.long	25
24521	.text
24522	adrp  x0, :tlsgd:x
24523	add   x0, x0, #:tlsgd_lo12:x
24524        bl    __tls_get_addr
24525	nop'
24526	tls_first_major=2
24527	tls_first_minor=20
24528	tls_as_opt='--fatal-warnings'
24529	;;
24530  or1k*-*-*)
24531    conftest_s='
24532	.section ".tdata","awT",@progbits
24533foo:	.long	25
24534	.text
24535	l.movhi	r3, tpoffha(foo)
24536	l.add	r3, r3, r10
24537	l.lwz	r4, tpofflo(foo)(r3)'
24538    tls_first_major=2
24539    tls_first_minor=30
24540    tls_as_opt=--fatal-warnings
24541    ;;
24542  powerpc-ibm-aix*)
24543    conftest_s='
24544	.extern __get_tpointer
24545	.toc
24546LC..1:
24547	.tc a[TC],a[TL]@le
24548	.csect .text[PR]
24549.tlstest:
24550	lwz 9,LC..1(2)
24551	bla __get_tpointer
24552	lwzx 3,9,3
24553	.globl a
24554	.csect a[TL],4
24555a:
24556	.space 4'
24557	tls_first_major=0
24558	tls_first_minor=0
24559	;;
24560  powerpc64*-*-*)
24561    conftest_s='
24562	.section ".tdata","awT",@progbits
24563	.align 3
24564ld0:	.space 8
24565ld1:	.space 8
24566x1:	.space 8
24567x2:	.space 8
24568x3:	.space 8
24569	.text
24570	addi 3,2,ld0@got@tlsgd
24571	bl .__tls_get_addr
24572	nop
24573	addi 3,2,ld1@toc
24574	bl .__tls_get_addr
24575	nop
24576	addi 3,2,x1@got@tlsld
24577	bl .__tls_get_addr
24578	nop
24579	addi 9,3,x1@dtprel
24580	bl .__tls_get_addr
24581	nop
24582	addis 9,3,x2@dtprel@ha
24583	addi 9,9,x2@dtprel@l
24584	bl .__tls_get_addr
24585	nop
24586	ld 9,x3@got@dtprel(2)
24587	add 9,9,3
24588	bl .__tls_get_addr
24589	nop'
24590	tls_first_major=2
24591	tls_first_minor=14
24592	tls_as_opt="-a64 --fatal-warnings"
24593	;;
24594  powerpc*-*-*)
24595    conftest_s='
24596	.section ".tdata","awT",@progbits
24597	.align 2
24598ld0:	.space 4
24599ld1:	.space 4
24600x1:	.space 4
24601x2:	.space 4
24602x3:	.space 4
24603	.text
24604	addi 3,31,ld0@got@tlsgd
24605	bl __tls_get_addr
24606	addi 3,31,x1@got@tlsld
24607	bl __tls_get_addr
24608	addi 9,3,x1@dtprel
24609	addis 9,3,x2@dtprel@ha
24610	addi 9,9,x2@dtprel@l
24611	lwz 9,x3@got@tprel(31)
24612	add 9,9,x@tls
24613	addi 9,2,x1@tprel
24614	addis 9,2,x2@tprel@ha
24615	addi 9,9,x2@tprel@l'
24616	tls_first_major=2
24617	tls_first_minor=14
24618	tls_as_opt="-a32 --fatal-warnings"
24619	;;
24620  riscv*-*-*)
24621    conftest_s='
24622	.section .tdata,"awT",@progbits
24623x:	.word 2
24624	.text
24625	la.tls.gd a0,x
24626        call __tls_get_addr'
24627	tls_first_major=2
24628	tls_first_minor=21
24629	tls_as_opt='--fatal-warnings'
24630	;;
24631  s390-*-*)
24632    conftest_s='
24633	.section ".tdata","awT",@progbits
24634foo:	.long	25
24635	.text
24636	.long	foo@TLSGD
24637	.long	foo@TLSLDM
24638	.long	foo@DTPOFF
24639	.long	foo@NTPOFF
24640	.long	foo@GOTNTPOFF
24641	.long	foo@INDNTPOFF
24642	l	%r1,foo@GOTNTPOFF(%r12)
24643	l	%r1,0(%r1):tls_load:foo
24644	bas	%r14,0(%r1,%r13):tls_gdcall:foo
24645	bas	%r14,0(%r1,%r13):tls_ldcall:foo'
24646	tls_first_major=2
24647	tls_first_minor=14
24648	tls_as_opt="-m31 --fatal-warnings"
24649	;;
24650  s390x-*-*)
24651    conftest_s='
24652	.section ".tdata","awT",@progbits
24653foo:	.long	25
24654	.text
24655	.quad	foo@TLSGD
24656	.quad	foo@TLSLDM
24657	.quad	foo@DTPOFF
24658	.quad	foo@NTPOFF
24659	.quad	foo@GOTNTPOFF
24660	lg	%r1,foo@GOTNTPOFF(%r12)
24661	larl	%r1,foo@INDNTPOFF
24662	brasl	%r14,__tls_get_offset@PLT:tls_gdcall:foo
24663	brasl	%r14,__tls_get_offset@PLT:tls_ldcall:foo'
24664	tls_first_major=2
24665	tls_first_minor=14
24666	tls_as_opt="-m64 -Aesame --fatal-warnings"
24667	;;
24668  sh-*-* | sh[123456789lbe]*-*-*)
24669    conftest_s='
24670	.section ".tdata","awT",@progbits
24671foo:	.long	25
24672	.text
24673	.long	foo@TLSGD
24674	.long	foo@TLSLDM
24675	.long	foo@DTPOFF
24676	.long	foo@GOTTPOFF
24677	.long	foo@TPOFF'
24678	tls_first_major=2
24679	tls_first_minor=13
24680	tls_as_opt=--fatal-warnings
24681	;;
24682  sparc*-*-*)
24683    case "$target" in
24684      sparc*-sun-solaris2.*)
24685	on_solaris=yes
24686	;;
24687      *)
24688	on_solaris=no
24689	;;
24690    esac
24691    if test x$on_solaris = xyes && test x$gas_flag = xno; then
24692      conftest_s='
24693	.section ".tdata",#alloc,#write,#tls'
24694	tls_first_major=0
24695	tls_first_minor=0
24696    else
24697      conftest_s='
24698	.section ".tdata","awT",@progbits'
24699	tls_first_major=2
24700	tls_first_minor=14
24701	tls_as_opt="-32 --fatal-warnings"
24702    fi
24703    conftest_s="$conftest_s
24704foo:	.long	25
24705	.text
24706	sethi	%tgd_hi22(foo), %o0
24707	add	%o0, %tgd_lo10(foo), %o1
24708	add	%l7, %o1, %o0, %tgd_add(foo)
24709	call	__tls_get_addr, %tgd_call(foo)
24710	sethi	%tldm_hi22(foo), %l1
24711	add	%l1, %tldm_lo10(foo), %l2
24712	add	%l7, %l2, %o0, %tldm_add(foo)
24713	call	__tls_get_addr, %tldm_call(foo)
24714	sethi	%tldo_hix22(foo), %l3
24715	xor	%l3, %tldo_lox10(foo), %l4
24716	add	%o0, %l4, %l5, %tldo_add(foo)
24717	sethi	%tie_hi22(foo), %o3
24718	add	%o3, %tie_lo10(foo), %o3
24719	ld	[%l7 + %o3], %o2, %tie_ld(foo)
24720	add	%g7, %o2, %o4, %tie_add(foo)
24721	sethi	%tle_hix22(foo), %l1
24722	xor	%l1, %tle_lox10(foo), %o5
24723	ld	[%g7 + %o5], %o1"
24724	;;
24725  tilepro*-*-*)
24726      conftest_s='
24727	.section ".tdata","awT",@progbits
24728foo:	.long	25
24729	.text
24730	addli	r0, zero, tls_gd(foo)
24731	auli	r0, zero, tls_gd_ha16(foo)
24732	addli	r0, r0, tls_gd_lo16(foo)
24733	jal	__tls_get_addr
24734	addli	r0, zero, tls_ie(foo)
24735	auli	r0, r0, tls_ie_ha16(foo)
24736	addli	r0, r0, tls_ie_lo16(foo)'
24737	tls_first_major=2
24738	tls_first_minor=22
24739	tls_as_opt="--fatal-warnings"
24740	;;
24741  tilegx*-*-*)
24742      conftest_s='
24743	.section ".tdata","awT",@progbits
24744foo:	.long	25
24745	.text
24746	shl16insli r0, zero, hw0_last_tls_gd(foo)
24747	shl16insli r0, zero, hw1_last_tls_gd(foo)
24748	shl16insli r0, r0,   hw0_tls_gd(foo)
24749	jal	   __tls_get_addr
24750	shl16insli r0, zero, hw1_last_tls_ie(foo)
24751	shl16insli r0, r0,   hw0_tls_ie(foo)'
24752	tls_first_major=2
24753	tls_first_minor=22
24754	tls_as_opt="--fatal-warnings"
24755	;;
24756  xtensa*-*-*)
24757    conftest_s='
24758	.section ".tdata","awT",@progbits
24759foo:	.long	25
24760	.text
24761	movi	a8, foo@TLSFUNC
24762	movi	a10, foo@TLSARG
24763	callx8.tls a8, foo@TLSCALL'
24764	tls_first_major=2
24765	tls_first_minor=19
24766	;;
24767esac
24768set_have_as_tls=no
24769if test "x$enable_tls" = xno ; then
24770  : # TLS explicitly disabled.
24771elif test "x$enable_tls" = xyes ; then
24772  set_have_as_tls=yes # TLS explicitly enabled.
24773elif test -z "$tls_first_major"; then
24774  : # If we don't have a check, assume no support.
24775else
24776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24777$as_echo_n "checking assembler for thread-local storage support... " >&6; }
24778if ${gcc_cv_as_tls+:} false; then :
24779  $as_echo_n "(cached) " >&6
24780else
24781  gcc_cv_as_tls=no
24782    if test $in_tree_gas = yes; then
24783    if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24784  then gcc_cv_as_tls=yes
24785fi
24786  elif test x$gcc_cv_as != x; then
24787    $as_echo "$conftest_s" > conftest.s
24788    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24789  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790  (eval $ac_try) 2>&5
24791  ac_status=$?
24792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793  test $ac_status = 0; }; }
24794    then
24795	gcc_cv_as_tls=yes
24796    else
24797      echo "configure: failed program was" >&5
24798      cat conftest.s >&5
24799    fi
24800    rm -f conftest.o conftest.s
24801  fi
24802fi
24803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24804$as_echo "$gcc_cv_as_tls" >&6; }
24805if test $gcc_cv_as_tls = yes; then
24806  set_have_as_tls=yes
24807fi
24808
24809fi
24810if test $set_have_as_tls = yes ; then
24811
24812$as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24813
24814fi
24815
24816# Target-specific assembler checks.
24817
24818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24819$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24820gcc_cv_ld_static_dynamic=no
24821gcc_cv_ld_static_option='-Bstatic'
24822gcc_cv_ld_dynamic_option='-Bdynamic'
24823if test $in_tree_ld = yes ; then
24824  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
24825    gcc_cv_ld_static_dynamic=yes
24826  fi
24827elif test x$gcc_cv_ld != x; then
24828  # Check if linker supports -Bstatic/-Bdynamic option
24829  if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24830     && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24831      gcc_cv_ld_static_dynamic=yes
24832  else
24833    case "$target" in
24834      # AIX ld uses -b flags
24835      *-*-aix4.[23]* | *-*-aix[5-9]*)
24836	gcc_cv_ld_static_dynamic=yes
24837	gcc_cv_ld_static_option="-bstatic"
24838	gcc_cv_ld_dynamic_option="-bdynamic"
24839	;;
24840      # HP-UX ld uses -a flags to select between shared and archive.
24841      *-*-hpux*)
24842	if test x"$gnu_ld" = xno; then
24843	  gcc_cv_ld_static_dynamic=yes
24844	  gcc_cv_ld_static_option="-aarchive_shared"
24845	  gcc_cv_ld_dynamic_option="-adefault"
24846	fi
24847	;;
24848      # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24849      *-*-solaris2*)
24850        gcc_cv_ld_static_dynamic=yes
24851        ;;
24852    esac
24853  fi
24854fi
24855if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24856
24857$as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24858
24859
24860cat >>confdefs.h <<_ACEOF
24861#define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24862_ACEOF
24863
24864
24865cat >>confdefs.h <<_ACEOF
24866#define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24867_ACEOF
24868
24869fi
24870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24871$as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24872
24873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24874$as_echo_n "checking linker --version-script option... " >&6; }
24875gcc_cv_ld_version_script=no
24876ld_version_script_option=''
24877if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24878  gcc_cv_ld_version_script=yes
24879  ld_version_script_option='--version-script'
24880elif test x$gcc_cv_ld != x; then
24881  case "$target" in
24882    # Solaris 2 ld always supports -M.  It also supports a subset of
24883    # --version-script since Solaris 11.4, but requires
24884    # -z gnu-version-script-compat to activate.
24885    *-*-solaris2*)
24886      gcc_cv_ld_version_script=yes
24887      ld_version_script_option='-M'
24888      ;;
24889  esac
24890fi
24891# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24893$as_echo "$gcc_cv_ld_version_script" >&6; }
24894
24895
24896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24897$as_echo_n "checking linker soname option... " >&6; }
24898gcc_cv_ld_soname=no
24899if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24900  gcc_cv_ld_soname=yes
24901  ld_soname_option='-soname'
24902elif test x$gcc_cv_ld != x; then
24903  case "$target" in
24904    *-*-darwin*)
24905      gcc_cv_ld_soname=yes
24906      ld_soname_option='-install_name'
24907      ;;
24908    # Solaris 2 ld always supports -h.  It also supports --soname for GNU
24909    # ld compatiblity since some Solaris 10 update.
24910    *-*-solaris2*)
24911      gcc_cv_ld_soname=yes
24912      ld_soname_option='-h'
24913      ;;
24914  esac
24915fi
24916# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24918$as_echo "$gcc_cv_ld_soname" >&6; }
24919
24920
24921if test x"$demangler_in_ld" = xyes; then
24922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24923$as_echo_n "checking linker --demangle support... " >&6; }
24924  gcc_cv_ld_demangle=no
24925  if test $in_tree_ld = yes; then
24926    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 \
24927      gcc_cv_ld_demangle=yes
24928    fi
24929  elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24930    # Check if the GNU linker supports --demangle option
24931    if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24932      gcc_cv_ld_demangle=yes
24933    fi
24934  fi
24935  if test x"$gcc_cv_ld_demangle" = xyes; then
24936
24937$as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24938
24939  fi
24940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24941$as_echo "$gcc_cv_ld_demangle" >&6; }
24942fi
24943
24944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24945$as_echo_n "checking linker plugin support... " >&6; }
24946gcc_cv_lto_plugin=0
24947if test -f liblto_plugin.la; then
24948  save_ld_ver="$ld_ver"
24949  save_ld_vers_major="$ld_vers_major"
24950  save_ld_vers_minor="$ld_vers_minor"
24951  save_ld_is_gold="$ld_is_gold"
24952
24953  ld_is_gold=no
24954
24955  if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24956    ld_ver="GNU ld"
24957    # FIXME: ld_is_gold?
24958    ld_vers_major="$gcc_cv_gld_major_version"
24959    ld_vers_minor="$gcc_cv_gld_minor_version"
24960  else
24961    # Determine plugin linker version.
24962    # FIXME: Partial duplicate from above, generalize.
24963    ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24964    if echo "$ld_ver" | grep GNU > /dev/null; then
24965      if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24966        ld_is_gold=yes
24967        ld_vers=`echo $ld_ver | sed -n \
24968    	    -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24969      else
24970        ld_vers=`echo $ld_ver | sed -n \
24971    	    -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24972      fi
24973      ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24974      ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24975    fi
24976  fi
24977
24978  # Determine plugin support.
24979  if echo "$ld_ver" | grep GNU > /dev/null; then
24980    # Require GNU ld or gold 2.21+ for plugin support by default.
24981    if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24982      gcc_cv_lto_plugin=2
24983    # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24984    elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24985      gcc_cv_lto_plugin=1
24986    fi
24987  fi
24988
24989  ld_ver="$save_ld_ver"
24990  ld_vers_major="$save_ld_vers_major"
24991  ld_vers_minor="$save_ld_vers_minor"
24992  ld_is_gold="$save_ld_is_gold"
24993fi
24994
24995cat >>confdefs.h <<_ACEOF
24996#define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24997_ACEOF
24998
24999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25000$as_echo "$gcc_cv_lto_plugin" >&6; }
25001
25002# Target OS-specific assembler checks.
25003
25004case "$target_os" in
25005  darwin*)
25006    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25007$as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25008if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25009  $as_echo_n "(cached) " >&6
25010else
25011  gcc_cv_as_mmacosx_version_min=no
25012  if test x$gcc_cv_as != x; then
25013    $as_echo '.text' > conftest.s
25014    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25015  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25016  (eval $ac_try) 2>&5
25017  ac_status=$?
25018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25019  test $ac_status = 0; }; }
25020    then
25021	gcc_cv_as_mmacosx_version_min=yes
25022    else
25023      echo "configure: failed program was" >&5
25024      cat conftest.s >&5
25025    fi
25026    rm -f conftest.o conftest.s
25027  fi
25028fi
25029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25030$as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25031if test $gcc_cv_as_mmacosx_version_min = yes; then
25032
25033$as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25034
25035fi
25036
25037    ;;
25038esac
25039
25040# Target CPU-specific assembler checks.
25041
25042case "$target" in
25043  aarch64*-*-*)
25044    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25045$as_echo_n "checking assembler for -mabi option... " >&6; }
25046if ${gcc_cv_as_aarch64_mabi+:} false; then :
25047  $as_echo_n "(cached) " >&6
25048else
25049  gcc_cv_as_aarch64_mabi=no
25050  if test x$gcc_cv_as != x; then
25051    $as_echo '.text' > conftest.s
25052    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25053  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25054  (eval $ac_try) 2>&5
25055  ac_status=$?
25056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25057  test $ac_status = 0; }; }
25058    then
25059	gcc_cv_as_aarch64_mabi=yes
25060    else
25061      echo "configure: failed program was" >&5
25062      cat conftest.s >&5
25063    fi
25064    rm -f conftest.o conftest.s
25065  fi
25066fi
25067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25068$as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25069
25070
25071    if test x$gcc_cv_as_aarch64_mabi = xyes; then
25072
25073$as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25074
25075    else
25076      if test x$with_abi = xilp32; then
25077        as_fn_error $? "Assembler does not support -mabi=ilp32.\
25078                     Upgrade the Assembler." "$LINENO" 5
25079      fi
25080      if test x"$with_multilib_list" = xdefault; then
25081        TM_MULTILIB_CONFIG=lp64
25082      else
25083        aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25084        for aarch64_multilib in ${aarch64_multilibs}; do
25085          case ${aarch64_multilib} in
25086            ilp32)
25087              as_fn_error $? "Assembler does not support -mabi=ilp32.\
25088                            Upgrade the Assembler." "$LINENO" 5
25089              ;;
25090            *)
25091              ;;
25092          esac
25093        done
25094      fi
25095    fi
25096    # Check if we have binutils support for relocations types needed by -fpic
25097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25098$as_echo_n "checking assembler for -fpic relocs... " >&6; }
25099if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25100  $as_echo_n "(cached) " >&6
25101else
25102  gcc_cv_as_aarch64_picreloc=no
25103  if test x$gcc_cv_as != x; then
25104    $as_echo '
25105	.text
25106	ldr     x0, [x2, #:gotpage_lo15:globalsym]
25107    ' > conftest.s
25108    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25109  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25110  (eval $ac_try) 2>&5
25111  ac_status=$?
25112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25113  test $ac_status = 0; }; }
25114    then
25115	gcc_cv_as_aarch64_picreloc=yes
25116    else
25117      echo "configure: failed program was" >&5
25118      cat conftest.s >&5
25119    fi
25120    rm -f conftest.o conftest.s
25121  fi
25122fi
25123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25124$as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25125if test $gcc_cv_as_aarch64_picreloc = yes; then
25126
25127$as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25128
25129fi
25130
25131    # Enable Branch Target Identification Mechanism and Return Address
25132    # Signing by default.
25133    # Check whether --enable-standard-branch-protection was given.
25134if test "${enable_standard_branch_protection+set}" = set; then :
25135  enableval=$enable_standard_branch_protection;
25136        case $enableval in
25137          yes)
25138            tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25139            ;;
25140          no)
25141            ;;
25142          *)
25143            as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25144  Valid choices are 'yes' and 'no'." "$LINENO" 5
25145            ;;
25146        esac
25147
25148fi
25149
25150    # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25151    # Check whether --enable-fix-cortex-a53-835769 was given.
25152if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25153  enableval=$enable_fix_cortex_a53_835769;
25154        case $enableval in
25155          yes)
25156            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25157            ;;
25158          no)
25159            ;;
25160          *)
25161            as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25162  Valid choices are 'yes' and 'no'." "$LINENO" 5
25163            ;;
25164
25165        esac
25166
25167fi
25168
25169    # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25170    # Check whether --enable-fix-cortex-a53-843419 was given.
25171if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25172  enableval=$enable_fix_cortex_a53_843419;
25173        case $enableval in
25174          yes)
25175            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25176            ;;
25177          no)
25178            ;;
25179          *)
25180            as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25181  Valid choices are 'yes' and 'no'." "$LINENO" 5
25182            ;;
25183
25184        esac
25185
25186fi
25187
25188    ;;
25189
25190  # All TARGET_ABI_OSF targets.
25191  alpha*-*-linux* | alpha*-*-*bsd*)
25192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25193$as_echo_n "checking assembler for explicit relocation support... " >&6; }
25194if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25195  $as_echo_n "(cached) " >&6
25196else
25197  gcc_cv_as_alpha_explicit_relocs=no
25198    if test $in_tree_gas = yes; then
25199    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25200  then gcc_cv_as_alpha_explicit_relocs=yes
25201fi
25202  elif test x$gcc_cv_as != x; then
25203    $as_echo '	.set nomacro
25204	.text
25205	extbl	$3, $2, $3	!lituse_bytoff!1
25206	ldq	$2, a($29)	!literal!1
25207	ldq	$4, b($29)	!literal!2
25208	ldq_u	$3, 0($2)	!lituse_base!1
25209	ldq	$27, f($29)	!literal!5
25210	jsr	$26, ($27), f	!lituse_jsr!5
25211	ldah	$29, 0($26)	!gpdisp!3
25212	lda	$0, c($29)	!gprel
25213	ldah	$1, d($29)	!gprelhigh
25214	lda	$1, d($1)	!gprellow
25215	lda	$29, 0($29)	!gpdisp!3' > conftest.s
25216    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25217  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25218  (eval $ac_try) 2>&5
25219  ac_status=$?
25220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25221  test $ac_status = 0; }; }
25222    then
25223	gcc_cv_as_alpha_explicit_relocs=yes
25224    else
25225      echo "configure: failed program was" >&5
25226      cat conftest.s >&5
25227    fi
25228    rm -f conftest.o conftest.s
25229  fi
25230fi
25231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25232$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25233if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25234
25235$as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25236
25237fi
25238
25239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25240$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25241if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25242  $as_echo_n "(cached) " >&6
25243else
25244  gcc_cv_as_alpha_jsrdirect_relocs=no
25245    if test $in_tree_gas = yes; then
25246    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25247  then gcc_cv_as_alpha_jsrdirect_relocs=yes
25248fi
25249  elif test x$gcc_cv_as != x; then
25250    $as_echo '	.set nomacro
25251	.text
25252	ldq	$27, a($29)	!literal!1
25253	jsr	$26, ($27), a	!lituse_jsrdirect!1' > conftest.s
25254    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25255  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25256  (eval $ac_try) 2>&5
25257  ac_status=$?
25258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25259  test $ac_status = 0; }; }
25260    then
25261	gcc_cv_as_alpha_jsrdirect_relocs=yes
25262    else
25263      echo "configure: failed program was" >&5
25264      cat conftest.s >&5
25265    fi
25266    rm -f conftest.o conftest.s
25267  fi
25268fi
25269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25270$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25271if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25272
25273$as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25274
25275fi
25276
25277    ;;
25278
25279  avr-*-*)
25280    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25281$as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25282if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25283  $as_echo_n "(cached) " >&6
25284else
25285  gcc_cv_as_avr_mlink_relax=no
25286  if test x$gcc_cv_as != x; then
25287    $as_echo '.text' > conftest.s
25288    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25289  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25290  (eval $ac_try) 2>&5
25291  ac_status=$?
25292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25293  test $ac_status = 0; }; }
25294    then
25295	gcc_cv_as_avr_mlink_relax=yes
25296    else
25297      echo "configure: failed program was" >&5
25298      cat conftest.s >&5
25299    fi
25300    rm -f conftest.o conftest.s
25301  fi
25302fi
25303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25304$as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25305if test $gcc_cv_as_avr_mlink_relax = yes; then
25306
25307$as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25308
25309fi
25310
25311
25312    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25313$as_echo_n "checking assembler for -mrmw option... " >&6; }
25314if ${gcc_cv_as_avr_mrmw+:} false; then :
25315  $as_echo_n "(cached) " >&6
25316else
25317  gcc_cv_as_avr_mrmw=no
25318  if test x$gcc_cv_as != x; then
25319    $as_echo '.text' > conftest.s
25320    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25321  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25322  (eval $ac_try) 2>&5
25323  ac_status=$?
25324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25325  test $ac_status = 0; }; }
25326    then
25327	gcc_cv_as_avr_mrmw=yes
25328    else
25329      echo "configure: failed program was" >&5
25330      cat conftest.s >&5
25331    fi
25332    rm -f conftest.o conftest.s
25333  fi
25334fi
25335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25336$as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25337if test $gcc_cv_as_avr_mrmw = yes; then
25338
25339$as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25340
25341fi
25342
25343
25344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25345$as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25346if ${gcc_cv_as_avr_mgccisr+:} false; then :
25347  $as_echo_n "(cached) " >&6
25348else
25349  gcc_cv_as_avr_mgccisr=no
25350  if test x$gcc_cv_as != x; then
25351    $as_echo '.text
25352      		    __gcc_isr 1
25353      		    __gcc_isr 2
25354      		    __gcc_isr 0,r24
25355      		   ' > conftest.s
25356    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25357  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25358  (eval $ac_try) 2>&5
25359  ac_status=$?
25360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25361  test $ac_status = 0; }; }
25362    then
25363	gcc_cv_as_avr_mgccisr=yes
25364    else
25365      echo "configure: failed program was" >&5
25366      cat conftest.s >&5
25367    fi
25368    rm -f conftest.o conftest.s
25369  fi
25370fi
25371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25372$as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25373if test $gcc_cv_as_avr_mgccisr = yes; then
25374
25375$as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25376
25377fi
25378
25379
25380    # Check how default linker description file implements .rodata for
25381    # avrxmega3 (PR21472).  avr-gcc assumes .rodata is *not* loaded to
25382    # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25383    { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25384$as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25385    cat > conftest.s <<EOF
25386        .section .rodata,"a",@progbits
25387        .global xxvaryy
25388    ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25389    xxvaryy:
25390        .word 1
25391EOF
25392    rm -f conftest.nm
25393    { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25394  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25395  (eval $ac_try) 2>&5
25396  ac_status=$?
25397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25398  test $ac_status = 0; }; }
25399    { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25400  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25401  (eval $ac_try) 2>&5
25402  ac_status=$?
25403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25404  test $ac_status = 0; }; }
25405    { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25406  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25407  (eval $ac_try) 2>&5
25408  ac_status=$?
25409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25410  test $ac_status = 0; }; }
25411    if test -s conftest.nm
25412    then
25413	if grep ' R xxvaryy' conftest.nm > /dev/null; then
25414	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25415$as_echo "yes" >&6; }
25416
25417$as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25418
25419	else
25420	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25421$as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25422	    echo "$as_me: nm output was" >&5
25423	    cat conftest.nm >&5
25424	    avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25425	    { $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
25426$as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25427	fi
25428    else
25429	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25430$as_echo "test failed" >&6; }
25431	echo "$as_me: failed program was" >&5
25432	cat conftest.s >&5
25433	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25434$as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25435    fi
25436    rm -f conftest.s conftest.o conftest.elf conftest.nm
25437    ;;
25438
25439  cris-*-*)
25440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25441$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25442if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25443  $as_echo_n "(cached) " >&6
25444else
25445  gcc_cv_as_cris_no_mul_bug=no
25446    if test $in_tree_gas = yes; then
25447    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25448  then gcc_cv_as_cris_no_mul_bug=yes
25449fi
25450  elif test x$gcc_cv_as != x; then
25451    $as_echo '.text' > conftest.s
25452    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25453  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25454  (eval $ac_try) 2>&5
25455  ac_status=$?
25456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25457  test $ac_status = 0; }; }
25458    then
25459	gcc_cv_as_cris_no_mul_bug=yes
25460    else
25461      echo "configure: failed program was" >&5
25462      cat conftest.s >&5
25463    fi
25464    rm -f conftest.o conftest.s
25465  fi
25466fi
25467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25468$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25469if test $gcc_cv_as_cris_no_mul_bug = yes; then
25470
25471$as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25472
25473fi
25474
25475    ;;
25476
25477  sparc*-*-*)
25478    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25479$as_echo_n "checking assembler for -relax option... " >&6; }
25480if ${gcc_cv_as_sparc_relax+:} false; then :
25481  $as_echo_n "(cached) " >&6
25482else
25483  gcc_cv_as_sparc_relax=no
25484  if test x$gcc_cv_as != x; then
25485    $as_echo '.text' > conftest.s
25486    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25487  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25488  (eval $ac_try) 2>&5
25489  ac_status=$?
25490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25491  test $ac_status = 0; }; }
25492    then
25493	gcc_cv_as_sparc_relax=yes
25494    else
25495      echo "configure: failed program was" >&5
25496      cat conftest.s >&5
25497    fi
25498    rm -f conftest.o conftest.s
25499  fi
25500fi
25501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25502$as_echo "$gcc_cv_as_sparc_relax" >&6; }
25503if test $gcc_cv_as_sparc_relax = yes; then
25504
25505$as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25506
25507fi
25508
25509
25510    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25511$as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25512if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25513  $as_echo_n "(cached) " >&6
25514else
25515  gcc_cv_as_sparc_gotdata_op=no
25516  if test x$gcc_cv_as != x; then
25517    $as_echo '.text
25518.align 4
25519foo:
25520	nop
25521bar:
25522	sethi %gdop_hix22(foo), %g1
25523	xor    %g1, %gdop_lox10(foo), %g1
25524	ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25525    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25526  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25527  (eval $ac_try) 2>&5
25528  ac_status=$?
25529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25530  test $ac_status = 0; }; }
25531    then
25532	if test x$gcc_cv_ld != x \
25533       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25534         if test x$gcc_cv_objdump != x; then
25535           if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25536              | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25537	       gcc_cv_as_sparc_gotdata_op=no
25538           else
25539	       gcc_cv_as_sparc_gotdata_op=yes
25540           fi
25541         fi
25542       fi
25543       rm -f conftest
25544    else
25545      echo "configure: failed program was" >&5
25546      cat conftest.s >&5
25547    fi
25548    rm -f conftest.o conftest.s
25549  fi
25550fi
25551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25552$as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25553if test $gcc_cv_as_sparc_gotdata_op = yes; then
25554
25555$as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25556
25557fi
25558
25559
25560    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25561$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25562if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25563  $as_echo_n "(cached) " >&6
25564else
25565  gcc_cv_as_sparc_ua_pcrel=no
25566  if test x$gcc_cv_as != x; then
25567    $as_echo '.text
25568foo:
25569	nop
25570.data
25571.align 4
25572.byte 0
25573.uaword %r_disp32(foo)' > conftest.s
25574    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25575  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25576  (eval $ac_try) 2>&5
25577  ac_status=$?
25578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25579  test $ac_status = 0; }; }
25580    then
25581	if test x$gcc_cv_ld != x \
25582       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25583	 gcc_cv_as_sparc_ua_pcrel=yes
25584       fi
25585       rm -f conftest
25586    else
25587      echo "configure: failed program was" >&5
25588      cat conftest.s >&5
25589    fi
25590    rm -f conftest.o conftest.s
25591  fi
25592fi
25593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25594$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25595if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25596
25597$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25598
25599
25600      { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25601$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25602if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25603  $as_echo_n "(cached) " >&6
25604else
25605  gcc_cv_as_sparc_ua_pcrel_hidden=no
25606  if test x$gcc_cv_as != x; then
25607    $as_echo '.data
25608.align 4
25609.byte 0x31
25610.uaword %r_disp32(foo)
25611.byte 0x32, 0x33, 0x34
25612.global foo
25613.hidden foo
25614foo:
25615.skip 4' > conftest.s
25616    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25617  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25618  (eval $ac_try) 2>&5
25619  ac_status=$?
25620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25621  test $ac_status = 0; }; }
25622    then
25623	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25624	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25625	 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25626	    | grep ' 31000000 07323334' > /dev/null 2>&1; then
25627	    if $gcc_cv_objdump -R conftest 2> /dev/null \
25628	       | grep 'DISP32' > /dev/null 2>&1; then
25629		:
25630	    else
25631		gcc_cv_as_sparc_ua_pcrel_hidden=yes
25632	    fi
25633	 fi
25634	 rm -f conftest
25635    else
25636      echo "configure: failed program was" >&5
25637      cat conftest.s >&5
25638    fi
25639    rm -f conftest.o conftest.s
25640  fi
25641fi
25642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25643$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25644if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25645
25646$as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25647
25648fi
25649
25650
25651fi
25652 # unaligned pcrel relocs
25653
25654    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25655$as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25656if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25657  $as_echo_n "(cached) " >&6
25658else
25659  gcc_cv_as_sparc_offsetable_lo10=no
25660  if test x$gcc_cv_as != x; then
25661    $as_echo '.text
25662	or %g1, %lo(ab) + 12, %g1
25663	or %g1, %lo(ab + 12), %g1' > conftest.s
25664    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25665  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25666  (eval $ac_try) 2>&5
25667  ac_status=$?
25668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25669  test $ac_status = 0; }; }
25670    then
25671	if test x$gcc_cv_objdump != x \
25672       && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25673          | grep ' 82106000 82106000' > /dev/null 2>&1; then
25674	 gcc_cv_as_sparc_offsetable_lo10=yes
25675       fi
25676    else
25677      echo "configure: failed program was" >&5
25678      cat conftest.s >&5
25679    fi
25680    rm -f conftest.o conftest.s
25681  fi
25682fi
25683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25684$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25685if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25686
25687$as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25688
25689fi
25690
25691
25692    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25693$as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25694if ${gcc_cv_as_sparc_fmaf+:} false; then :
25695  $as_echo_n "(cached) " >&6
25696else
25697  gcc_cv_as_sparc_fmaf=no
25698  if test x$gcc_cv_as != x; then
25699    $as_echo '.text
25700       .register %g2, #scratch
25701       .register %g3, #scratch
25702       .align 4
25703       fmaddd %f0, %f2, %f4, %f6
25704       addxccc %g1, %g2, %g3
25705       fsrl32 %f2, %f4, %f8
25706       fnaddd %f10, %f12, %f14' > conftest.s
25707    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25708  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25709  (eval $ac_try) 2>&5
25710  ac_status=$?
25711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25712  test $ac_status = 0; }; }
25713    then
25714	gcc_cv_as_sparc_fmaf=yes
25715    else
25716      echo "configure: failed program was" >&5
25717      cat conftest.s >&5
25718    fi
25719    rm -f conftest.o conftest.s
25720  fi
25721fi
25722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25723$as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25724if test $gcc_cv_as_sparc_fmaf = yes; then
25725
25726$as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25727
25728fi
25729
25730
25731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25732$as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25733if ${gcc_cv_as_sparc_sparc4+:} false; then :
25734  $as_echo_n "(cached) " >&6
25735else
25736  gcc_cv_as_sparc_sparc4=no
25737  if test x$gcc_cv_as != x; then
25738    $as_echo '.text
25739       .register %g2, #scratch
25740       .register %g3, #scratch
25741       .align 4
25742       cxbe %g2, %g3, 1f
257431:     cwbneg %g2, %g3, 1f
257441:     sha1
25745       md5
25746       aes_kexpand0 %f4, %f6, %f8
25747       des_round %f38, %f40, %f42, %f44
25748       camellia_f %f54, %f56, %f58, %f60
25749       kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25750    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25751  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25752  (eval $ac_try) 2>&5
25753  ac_status=$?
25754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25755  test $ac_status = 0; }; }
25756    then
25757	gcc_cv_as_sparc_sparc4=yes
25758    else
25759      echo "configure: failed program was" >&5
25760      cat conftest.s >&5
25761    fi
25762    rm -f conftest.o conftest.s
25763  fi
25764fi
25765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25766$as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25767if test $gcc_cv_as_sparc_sparc4 = yes; then
25768
25769$as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25770
25771fi
25772
25773
25774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25775$as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25776if ${gcc_cv_as_sparc_sparc5+:} false; then :
25777  $as_echo_n "(cached) " >&6
25778else
25779  gcc_cv_as_sparc_sparc5=no
25780  if test x$gcc_cv_as != x; then
25781    $as_echo '.text
25782       .register %g2, #scratch
25783       .register %g3, #scratch
25784       .align 4
25785       subxc %g1, %g2, %g3
25786       fpadd8 %f0, %f2, %f4' > conftest.s
25787    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25788  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25789  (eval $ac_try) 2>&5
25790  ac_status=$?
25791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25792  test $ac_status = 0; }; }
25793    then
25794	gcc_cv_as_sparc_sparc5=yes
25795    else
25796      echo "configure: failed program was" >&5
25797      cat conftest.s >&5
25798    fi
25799    rm -f conftest.o conftest.s
25800  fi
25801fi
25802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25803$as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25804if test $gcc_cv_as_sparc_sparc5 = yes; then
25805
25806$as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25807
25808fi
25809
25810
25811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25812$as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25813if ${gcc_cv_as_sparc_sparc6+:} false; then :
25814  $as_echo_n "(cached) " >&6
25815else
25816  gcc_cv_as_sparc_sparc6=no
25817  if test x$gcc_cv_as != x; then
25818    $as_echo '.text
25819       .register %g2, #scratch
25820       .register %g3, #scratch
25821       .align 4
25822       rd %entropy, %g1
25823       fpsll64x %f0, %f2, %f4' > conftest.s
25824    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25825  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25826  (eval $ac_try) 2>&5
25827  ac_status=$?
25828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25829  test $ac_status = 0; }; }
25830    then
25831	gcc_cv_as_sparc_sparc6=yes
25832    else
25833      echo "configure: failed program was" >&5
25834      cat conftest.s >&5
25835    fi
25836    rm -f conftest.o conftest.s
25837  fi
25838fi
25839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25840$as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25841if test $gcc_cv_as_sparc_sparc6 = yes; then
25842
25843$as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25844
25845fi
25846
25847
25848    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25849$as_echo_n "checking assembler for LEON instructions... " >&6; }
25850if ${gcc_cv_as_sparc_leon+:} false; then :
25851  $as_echo_n "(cached) " >&6
25852else
25853  gcc_cv_as_sparc_leon=no
25854  if test x$gcc_cv_as != x; then
25855    $as_echo '.text
25856       .register %g2, #scratch
25857       .register %g3, #scratch
25858       .align 4
25859       smac %g2, %g3, %g1
25860       umac %g2, %g3, %g1
25861       casa [%g2] 0xb, %g3, %g1' > conftest.s
25862    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25863  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25864  (eval $ac_try) 2>&5
25865  ac_status=$?
25866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25867  test $ac_status = 0; }; }
25868    then
25869	gcc_cv_as_sparc_leon=yes
25870    else
25871      echo "configure: failed program was" >&5
25872      cat conftest.s >&5
25873    fi
25874    rm -f conftest.o conftest.s
25875  fi
25876fi
25877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25878$as_echo "$gcc_cv_as_sparc_leon" >&6; }
25879if test $gcc_cv_as_sparc_leon = yes; then
25880
25881$as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25882
25883fi
25884
25885    ;;
25886
25887  i[34567]86-*-* | x86_64-*-*)
25888    case $target_os in
25889      cygwin*)
25890	# Full C++ conformance when using a shared libstdc++-v3 requires some
25891	# support from the Cygwin DLL, which in more recent versions exports
25892	# wrappers to aid in interposing and redirecting operators new, delete,
25893	# etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
25894	# are configuring for a version of Cygwin that exports the wrappers.
25895	if test x$host = x$target && test x$host_cpu = xi686; then
25896	  ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25897if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
25898  gcc_ac_cygwin_dll_wrappers=yes
25899else
25900  gcc_ac_cygwin_dll_wrappers=no
25901fi
25902
25903	else
25904	  # Can't check presence of libc functions during cross-compile, so
25905	  # we just have to assume we're building for an up-to-date target.
25906	  gcc_ac_cygwin_dll_wrappers=yes
25907	fi
25908
25909cat >>confdefs.h <<_ACEOF
25910#define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25911_ACEOF
25912
25913    esac
25914    case $target_os in
25915      cygwin* | pe | mingw32*)
25916	# Recent binutils allows the three-operand form of ".comm" on PE.  This
25917	# definition is used unconditionally to initialise the default state of
25918	# the target option variable that governs usage of the feature.
25919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25920$as_echo_n "checking assembler for .comm with alignment... " >&6; }
25921if ${gcc_cv_as_comm_has_align+:} false; then :
25922  $as_echo_n "(cached) " >&6
25923else
25924  gcc_cv_as_comm_has_align=no
25925    if test $in_tree_gas = yes; then
25926    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25927  then gcc_cv_as_comm_has_align=yes
25928fi
25929  elif test x$gcc_cv_as != x; then
25930    $as_echo '.comm foo,1,32' > conftest.s
25931    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25932  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25933  (eval $ac_try) 2>&5
25934  ac_status=$?
25935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25936  test $ac_status = 0; }; }
25937    then
25938	gcc_cv_as_comm_has_align=yes
25939    else
25940      echo "configure: failed program was" >&5
25941      cat conftest.s >&5
25942    fi
25943    rm -f conftest.o conftest.s
25944  fi
25945fi
25946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25947$as_echo "$gcc_cv_as_comm_has_align" >&6; }
25948
25949
25950
25951cat >>confdefs.h <<_ACEOF
25952#define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25953_ACEOF
25954
25955	# Used for DWARF 2 in PE
25956	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25957$as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25958if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
25959  $as_echo_n "(cached) " >&6
25960else
25961  gcc_cv_as_ix86_pe_secrel32=no
25962    if test $in_tree_gas = yes; then
25963    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25964  then gcc_cv_as_ix86_pe_secrel32=yes
25965fi
25966  elif test x$gcc_cv_as != x; then
25967    $as_echo '.text
25968foo:	nop
25969.data
25970	.secrel32 foo' > conftest.s
25971    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25972  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25973  (eval $ac_try) 2>&5
25974  ac_status=$?
25975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25976  test $ac_status = 0; }; }
25977    then
25978	if test x$gcc_cv_ld != x \
25979	   && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25980	     gcc_cv_as_ix86_pe_secrel32=yes
25981	   fi
25982	   rm -f conftest
25983    else
25984      echo "configure: failed program was" >&5
25985      cat conftest.s >&5
25986    fi
25987    rm -f conftest.o conftest.s
25988  fi
25989fi
25990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25991$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25992if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25993
25994$as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25995
25996fi
25997
25998	# Test if the assembler supports the extended form of the .section
25999	# directive that specifies section alignment.  LTO support uses this,
26000	# but normally only after installation, so we warn but don't fail the
26001	# configure if LTO is enabled but the assembler does not support it.
26002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26003$as_echo_n "checking assembler for .section with alignment... " >&6; }
26004if ${gcc_cv_as_section_has_align+:} false; then :
26005  $as_echo_n "(cached) " >&6
26006else
26007  gcc_cv_as_section_has_align=no
26008    if test $in_tree_gas = yes; then
26009    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26010  then gcc_cv_as_section_has_align=yes
26011fi
26012  elif test x$gcc_cv_as != x; then
26013    $as_echo '.section lto_test,"dr0"' > conftest.s
26014    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26015  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26016  (eval $ac_try) 2>&5
26017  ac_status=$?
26018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26019  test $ac_status = 0; }; }
26020    then
26021	gcc_cv_as_section_has_align=yes
26022    else
26023      echo "configure: failed program was" >&5
26024      cat conftest.s >&5
26025    fi
26026    rm -f conftest.o conftest.s
26027  fi
26028fi
26029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26030$as_echo "$gcc_cv_as_section_has_align" >&6; }
26031
26032
26033	if test x$gcc_cv_as_section_has_align != xyes; then
26034	  case ",$enable_languages," in
26035	    *,lto,*)
26036	      { $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
26037$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;}
26038	      ;;
26039	  esac
26040	fi
26041	;;
26042    esac
26043
26044    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26045$as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26046if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26047  $as_echo_n "(cached) " >&6
26048else
26049  gcc_cv_as_ix86_xbrace_comment=no
26050  if test x$gcc_cv_as != x; then
26051    $as_echo '.text' > conftest.s
26052    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26053  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26054  (eval $ac_try) 2>&5
26055  ac_status=$?
26056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26057  test $ac_status = 0; }; }
26058    then
26059	gcc_cv_as_ix86_xbrace_comment=yes
26060    else
26061      echo "configure: failed program was" >&5
26062      cat conftest.s >&5
26063    fi
26064    rm -f conftest.o conftest.s
26065  fi
26066fi
26067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26068$as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26069if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26070
26071$as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26072
26073fi
26074
26075
26076    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26077$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26078if ${gcc_cv_as_ix86_filds+:} false; then :
26079  $as_echo_n "(cached) " >&6
26080else
26081  gcc_cv_as_ix86_filds=no
26082  if test x$gcc_cv_as != x; then
26083    $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26084    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26085  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086  (eval $ac_try) 2>&5
26087  ac_status=$?
26088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089  test $ac_status = 0; }; }
26090    then
26091	gcc_cv_as_ix86_filds=yes
26092    else
26093      echo "configure: failed program was" >&5
26094      cat conftest.s >&5
26095    fi
26096    rm -f conftest.o conftest.s
26097  fi
26098fi
26099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26100$as_echo "$gcc_cv_as_ix86_filds" >&6; }
26101if test $gcc_cv_as_ix86_filds = yes; then
26102
26103$as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26104
26105fi
26106
26107
26108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26109$as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26110if ${gcc_cv_as_ix86_fildq+:} false; then :
26111  $as_echo_n "(cached) " >&6
26112else
26113  gcc_cv_as_ix86_fildq=no
26114  if test x$gcc_cv_as != x; then
26115    $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26116    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26117  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26118  (eval $ac_try) 2>&5
26119  ac_status=$?
26120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26121  test $ac_status = 0; }; }
26122    then
26123	gcc_cv_as_ix86_fildq=yes
26124    else
26125      echo "configure: failed program was" >&5
26126      cat conftest.s >&5
26127    fi
26128    rm -f conftest.o conftest.s
26129  fi
26130fi
26131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26132$as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26133if test $gcc_cv_as_ix86_fildq = yes; then
26134
26135$as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26136
26137fi
26138
26139
26140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26141$as_echo_n "checking assembler for cmov syntax... " >&6; }
26142if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26143  $as_echo_n "(cached) " >&6
26144else
26145  gcc_cv_as_ix86_cmov_sun_syntax=no
26146  if test x$gcc_cv_as != x; then
26147    $as_echo 'cmovl.l %edx, %eax' > conftest.s
26148    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26149  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26150  (eval $ac_try) 2>&5
26151  ac_status=$?
26152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26153  test $ac_status = 0; }; }
26154    then
26155	gcc_cv_as_ix86_cmov_sun_syntax=yes
26156    else
26157      echo "configure: failed program was" >&5
26158      cat conftest.s >&5
26159    fi
26160    rm -f conftest.o conftest.s
26161  fi
26162fi
26163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26164$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26165if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26166
26167$as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26168
26169fi
26170
26171
26172    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26173$as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26174if ${gcc_cv_as_ix86_ffreep+:} false; then :
26175  $as_echo_n "(cached) " >&6
26176else
26177  gcc_cv_as_ix86_ffreep=no
26178  if test x$gcc_cv_as != x; then
26179    $as_echo 'ffreep %st(1)' > conftest.s
26180    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26181  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26182  (eval $ac_try) 2>&5
26183  ac_status=$?
26184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26185  test $ac_status = 0; }; }
26186    then
26187	gcc_cv_as_ix86_ffreep=yes
26188    else
26189      echo "configure: failed program was" >&5
26190      cat conftest.s >&5
26191    fi
26192    rm -f conftest.o conftest.s
26193  fi
26194fi
26195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26196$as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26197if test $gcc_cv_as_ix86_ffreep = yes; then
26198
26199$as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26200
26201fi
26202
26203
26204    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26205$as_echo_n "checking assembler for .quad directive... " >&6; }
26206if ${gcc_cv_as_ix86_quad+:} false; then :
26207  $as_echo_n "(cached) " >&6
26208else
26209  gcc_cv_as_ix86_quad=no
26210  if test x$gcc_cv_as != x; then
26211    $as_echo '.quad 0' > conftest.s
26212    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26213  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26214  (eval $ac_try) 2>&5
26215  ac_status=$?
26216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26217  test $ac_status = 0; }; }
26218    then
26219	gcc_cv_as_ix86_quad=yes
26220    else
26221      echo "configure: failed program was" >&5
26222      cat conftest.s >&5
26223    fi
26224    rm -f conftest.o conftest.s
26225  fi
26226fi
26227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26228$as_echo "$gcc_cv_as_ix86_quad" >&6; }
26229if test $gcc_cv_as_ix86_quad = yes; then
26230
26231$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26232
26233fi
26234
26235
26236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26237$as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26238if ${gcc_cv_as_ix86_sahf+:} false; then :
26239  $as_echo_n "(cached) " >&6
26240else
26241  gcc_cv_as_ix86_sahf=no
26242  if test x$gcc_cv_as != x; then
26243    $as_echo '.code64
26244       sahf' > conftest.s
26245    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26246  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26247  (eval $ac_try) 2>&5
26248  ac_status=$?
26249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26250  test $ac_status = 0; }; }
26251    then
26252	gcc_cv_as_ix86_sahf=yes
26253    else
26254      echo "configure: failed program was" >&5
26255      cat conftest.s >&5
26256    fi
26257    rm -f conftest.o conftest.s
26258  fi
26259fi
26260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26261$as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26262if test $gcc_cv_as_ix86_sahf = yes; then
26263
26264$as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26265
26266fi
26267
26268
26269    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26270$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26271if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26272  $as_echo_n "(cached) " >&6
26273else
26274  gcc_cv_as_ix86_interunit_movq=no
26275  if test x$gcc_cv_as != x; then
26276    $as_echo '.code64
26277       movq %mm0, %rax
26278       movq %rax, %xmm0' > conftest.s
26279    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26280  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26281  (eval $ac_try) 2>&5
26282  ac_status=$?
26283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26284  test $ac_status = 0; }; }
26285    then
26286	gcc_cv_as_ix86_interunit_movq=yes
26287    else
26288      echo "configure: failed program was" >&5
26289      cat conftest.s >&5
26290    fi
26291    rm -f conftest.o conftest.s
26292  fi
26293fi
26294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26295$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26296
26297
26298
26299cat >>confdefs.h <<_ACEOF
26300#define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26301_ACEOF
26302
26303
26304    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26305$as_echo_n "checking assembler for hle prefixes... " >&6; }
26306if ${gcc_cv_as_ix86_hle+:} false; then :
26307  $as_echo_n "(cached) " >&6
26308else
26309  gcc_cv_as_ix86_hle=no
26310  if test x$gcc_cv_as != x; then
26311    $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26312    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26313  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26314  (eval $ac_try) 2>&5
26315  ac_status=$?
26316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26317  test $ac_status = 0; }; }
26318    then
26319	gcc_cv_as_ix86_hle=yes
26320    else
26321      echo "configure: failed program was" >&5
26322      cat conftest.s >&5
26323    fi
26324    rm -f conftest.o conftest.s
26325  fi
26326fi
26327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26328$as_echo "$gcc_cv_as_ix86_hle" >&6; }
26329if test $gcc_cv_as_ix86_hle = yes; then
26330
26331$as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26332
26333fi
26334
26335
26336    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26337$as_echo_n "checking assembler for swap suffix... " >&6; }
26338if ${gcc_cv_as_ix86_swap+:} false; then :
26339  $as_echo_n "(cached) " >&6
26340else
26341  gcc_cv_as_ix86_swap=no
26342  if test x$gcc_cv_as != x; then
26343    $as_echo 'movl.s %esp, %ebp' > conftest.s
26344    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26345  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26346  (eval $ac_try) 2>&5
26347  ac_status=$?
26348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26349  test $ac_status = 0; }; }
26350    then
26351	gcc_cv_as_ix86_swap=yes
26352    else
26353      echo "configure: failed program was" >&5
26354      cat conftest.s >&5
26355    fi
26356    rm -f conftest.o conftest.s
26357  fi
26358fi
26359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26360$as_echo "$gcc_cv_as_ix86_swap" >&6; }
26361if test $gcc_cv_as_ix86_swap = yes; then
26362
26363$as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26364
26365fi
26366
26367
26368    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26369$as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26370if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26371  $as_echo_n "(cached) " >&6
26372else
26373  gcc_cv_as_ix86_diff_sect_delta=no
26374  if test x$gcc_cv_as != x; then
26375    $as_echo '.section .rodata
26376.L1:
26377        .long .L2-.L1
26378        .long .L3-.L1
26379        .text
26380.L3:    nop
26381.L2:    nop' > conftest.s
26382    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26383  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26384  (eval $ac_try) 2>&5
26385  ac_status=$?
26386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26387  test $ac_status = 0; }; }
26388    then
26389	gcc_cv_as_ix86_diff_sect_delta=yes
26390    else
26391      echo "configure: failed program was" >&5
26392      cat conftest.s >&5
26393    fi
26394    rm -f conftest.o conftest.s
26395  fi
26396fi
26397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26398$as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26399if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26400
26401$as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26402
26403fi
26404
26405
26406    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26407$as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26408if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26409  $as_echo_n "(cached) " >&6
26410else
26411  gcc_cv_as_ix86_rep_lock_prefix=no
26412  if test x$gcc_cv_as != x; then
26413    $as_echo 'rep movsl
26414	 rep ret
26415	 rep nop
26416	 rep bsf %ecx, %eax
26417	 rep bsr %ecx, %eax
26418	 lock addl %edi, (%eax,%esi)
26419	 lock orl $0, (%esp)' > conftest.s
26420    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26421  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26422  (eval $ac_try) 2>&5
26423  ac_status=$?
26424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26425  test $ac_status = 0; }; }
26426    then
26427	gcc_cv_as_ix86_rep_lock_prefix=yes
26428    else
26429      echo "configure: failed program was" >&5
26430      cat conftest.s >&5
26431    fi
26432    rm -f conftest.o conftest.s
26433  fi
26434fi
26435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26436$as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26437if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26438
26439$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26440
26441fi
26442
26443
26444    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26445$as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26446if ${gcc_cv_as_ix86_ud2+:} false; then :
26447  $as_echo_n "(cached) " >&6
26448else
26449  gcc_cv_as_ix86_ud2=no
26450  if test x$gcc_cv_as != x; then
26451    $as_echo 'ud2' > conftest.s
26452    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26453  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26454  (eval $ac_try) 2>&5
26455  ac_status=$?
26456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26457  test $ac_status = 0; }; }
26458    then
26459	gcc_cv_as_ix86_ud2=yes
26460    else
26461      echo "configure: failed program was" >&5
26462      cat conftest.s >&5
26463    fi
26464    rm -f conftest.o conftest.s
26465  fi
26466fi
26467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26468$as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26469if test $gcc_cv_as_ix86_ud2 = yes; then
26470
26471$as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26472
26473fi
26474
26475
26476    # Enforce 32-bit output with gas and gld.
26477    if test x$gas = xyes; then
26478      as_ix86_gas_32_opt="--32"
26479    fi
26480    if echo "$ld_ver" | grep GNU > /dev/null; then
26481      if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26482        ld_ix86_gld_32_opt="-melf_i386_sol2"
26483      else
26484        ld_ix86_gld_32_opt="-melf_i386"
26485      fi
26486    fi
26487
26488    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26489$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26490if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26491  $as_echo_n "(cached) " >&6
26492else
26493  gcc_cv_as_ix86_tlsgdplt=no
26494  if test x$gcc_cv_as != x; then
26495    $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
26496    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26497  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26498  (eval $ac_try) 2>&5
26499  ac_status=$?
26500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26501  test $ac_status = 0; }; }
26502    then
26503	if test x$gcc_cv_ld != x \
26504	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26505	   gcc_cv_as_ix86_tlsgdplt=yes
26506	 fi
26507	 rm -f conftest
26508    else
26509      echo "configure: failed program was" >&5
26510      cat conftest.s >&5
26511    fi
26512    rm -f conftest.o conftest.s
26513  fi
26514fi
26515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26516$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26517if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26518
26519$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26520
26521fi
26522
26523
26524    conftest_s='
26525	.section .tdata,"aw'$tls_section_flag'",@progbits
26526tls_ld:
26527	.section .text,"ax",@progbits
26528	 call    tls_ld@tlsldmplt'
26529
26530    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26531$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26532if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26533  $as_echo_n "(cached) " >&6
26534else
26535  gcc_cv_as_ix86_tlsldmplt=no
26536  if test x$gcc_cv_as != x; then
26537    $as_echo "$conftest_s" > conftest.s
26538    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26539  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26540  (eval $ac_try) 2>&5
26541  ac_status=$?
26542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26543  test $ac_status = 0; }; }
26544    then
26545	if test x$gcc_cv_ld != x \
26546	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26547	   gcc_cv_as_ix86_tlsldmplt=yes
26548	 fi
26549	 rm -f conftest
26550    else
26551      echo "configure: failed program was" >&5
26552      cat conftest.s >&5
26553    fi
26554    rm -f conftest.o conftest.s
26555  fi
26556fi
26557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26558$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26559
26560
26561
26562cat >>confdefs.h <<_ACEOF
26563#define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26564_ACEOF
26565
26566
26567    conftest_s='
26568	.section .text,"ax",@progbits
26569        .globl  _start
26570        .type   _start, @function
26571_start:
26572	leal	value@tlsldm(%ebx), %eax
26573	call	___tls_get_addr@plt
26574
26575        .section .tdata,"aw'$tls_section_flag'",@progbits
26576        .type	value, @object
26577value:'
26578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26579$as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26580if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26581  $as_echo_n "(cached) " >&6
26582else
26583  gcc_cv_as_ix86_tlsldm=no
26584  if test x$gcc_cv_as != x; then
26585    $as_echo "$conftest_s" > conftest.s
26586    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26587  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26588  (eval $ac_try) 2>&5
26589  ac_status=$?
26590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26591  test $ac_status = 0; }; }
26592    then
26593	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26594	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26595	   if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26596	      || dis conftest 2>/dev/null | grep nop > /dev/null; then
26597	     gcc_cv_as_ix86_tlsldm=yes
26598	   fi
26599	 fi
26600	 rm -f conftest
26601    else
26602      echo "configure: failed program was" >&5
26603      cat conftest.s >&5
26604    fi
26605    rm -f conftest.o conftest.s
26606  fi
26607fi
26608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26609$as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26610
26611
26612
26613cat >>confdefs.h <<_ACEOF
26614#define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26615_ACEOF
26616
26617
26618    conftest_s='
26619	.data
26620bar:
26621	.byte 1
26622	.text
26623	.global _start
26624_start:
26625	 cmpl $0, bar@GOT
26626	 jmp *_start@GOT'
26627    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26628$as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26629if ${gcc_cv_as_ix86_got32x+:} false; then :
26630  $as_echo_n "(cached) " >&6
26631else
26632  gcc_cv_as_ix86_got32x=no
26633  if test x$gcc_cv_as != x; then
26634    $as_echo "$conftest_s" > conftest.s
26635    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26636  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26637  (eval $ac_try) 2>&5
26638  ac_status=$?
26639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26640  test $ac_status = 0; }; }
26641    then
26642	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26643	    && test x$gcc_cv_readelf != x \
26644	    && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26645	       | grep R_386_GOT32X > /dev/null 2>&1 \
26646	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26647	   if $gcc_cv_objdump -dw conftest 2>&1 \
26648	      | grep 0xffffff > /dev/null 2>&1; then
26649	     gcc_cv_as_ix86_got32x=no
26650	   else
26651	     gcc_cv_as_ix86_got32x=yes
26652	   fi
26653	 fi
26654	 rm -f conftest
26655    else
26656      echo "configure: failed program was" >&5
26657      cat conftest.s >&5
26658    fi
26659    rm -f conftest.o conftest.s
26660  fi
26661fi
26662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26663$as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26664
26665
26666
26667cat >>confdefs.h <<_ACEOF
26668#define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26669_ACEOF
26670
26671
26672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26673$as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26674if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
26675  $as_echo_n "(cached) " >&6
26676else
26677  gcc_cv_as_ix86_gotoff_in_data=no
26678    if test $in_tree_gas = yes; then
26679    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26680  then gcc_cv_as_ix86_gotoff_in_data=yes
26681fi
26682  elif test x$gcc_cv_as != x; then
26683    $as_echo '	.text
26684.L0:
26685	nop
26686	.data
26687	.long .L0@GOTOFF' > conftest.s
26688    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26689  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26690  (eval $ac_try) 2>&5
26691  ac_status=$?
26692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26693  test $ac_status = 0; }; }
26694    then
26695	gcc_cv_as_ix86_gotoff_in_data=yes
26696    else
26697      echo "configure: failed program was" >&5
26698      cat conftest.s >&5
26699    fi
26700    rm -f conftest.o conftest.s
26701  fi
26702fi
26703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26704$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26705
26706
26707
26708cat >>confdefs.h <<_ACEOF
26709#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26710_ACEOF
26711
26712
26713    conftest_s='
26714	.section .text,"ax",@progbits
26715	.globl  _start
26716	.type   _start, @function
26717_start:
26718	leal	ld@tlsldm(%ecx), %eax
26719	call	*___tls_get_addr@GOT(%ecx)
26720	leal	gd@tlsgd(%ecx), %eax
26721	call	*___tls_get_addr@GOT(%ecx)
26722
26723	.section .tdata,"aw'$tls_section_flag'",@progbits
26724	.type	ld, @object
26725ld:
26726	.byte 0
26727	.globl  gd
26728	.type	gd, @object
26729gd:
26730	.byte 0'
26731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26732$as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26733if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
26734  $as_echo_n "(cached) " >&6
26735else
26736  gcc_cv_as_ix86_tls_get_addr_via_got=no
26737  if test x$gcc_cv_as != x; then
26738    $as_echo "$conftest_s" > conftest.s
26739    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26740  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26741  (eval $ac_try) 2>&5
26742  ac_status=$?
26743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26744  test $ac_status = 0; }; }
26745    then
26746	if test x$gcc_cv_ld != x \
26747	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26748	   gcc_cv_as_ix86_tls_get_addr_via_got=yes
26749	 fi
26750	 rm -f conftest
26751    else
26752      echo "configure: failed program was" >&5
26753      cat conftest.s >&5
26754    fi
26755    rm -f conftest.o conftest.s
26756  fi
26757fi
26758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26759$as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26760
26761
26762
26763cat >>confdefs.h <<_ACEOF
26764#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`
26765_ACEOF
26766
26767    ;;
26768
26769  ia64*-*-*)
26770    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26771$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26772if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
26773  $as_echo_n "(cached) " >&6
26774else
26775  gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26776    if test $in_tree_gas = yes; then
26777    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26778  then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26779fi
26780  elif test x$gcc_cv_as != x; then
26781    $as_echo '	.text
26782	addl r15 = @ltoffx(x#), gp
26783	;;
26784	ld8.mov r16 = [r15], x#
26785' > conftest.s
26786    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26787  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26788  (eval $ac_try) 2>&5
26789  ac_status=$?
26790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26791  test $ac_status = 0; }; }
26792    then
26793	gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26794    else
26795      echo "configure: failed program was" >&5
26796      cat conftest.s >&5
26797    fi
26798    rm -f conftest.o conftest.s
26799  fi
26800fi
26801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26802$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26803if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26804
26805$as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26806
26807fi
26808
26809
26810    ;;
26811
26812  powerpc*-*-*)
26813
26814    case $target in
26815      *-*-darwin*)
26816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26817$as_echo_n "checking assembler for .machine directive support... " >&6; }
26818if ${gcc_cv_as_machine_directive+:} false; then :
26819  $as_echo_n "(cached) " >&6
26820else
26821  gcc_cv_as_machine_directive=no
26822  if test x$gcc_cv_as != x; then
26823    $as_echo '	.machine ppc7400' > conftest.s
26824    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26825  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26826  (eval $ac_try) 2>&5
26827  ac_status=$?
26828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26829  test $ac_status = 0; }; }
26830    then
26831	gcc_cv_as_machine_directive=yes
26832    else
26833      echo "configure: failed program was" >&5
26834      cat conftest.s >&5
26835    fi
26836    rm -f conftest.o conftest.s
26837  fi
26838fi
26839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26840$as_echo "$gcc_cv_as_machine_directive" >&6; }
26841
26842
26843	if test x$gcc_cv_as_machine_directive != xyes; then
26844	  echo "*** This target requires an assembler supporting \".machine\"" >&2
26845	  echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26846	  test x$build = x$target && exit 1
26847	fi
26848        ;;
26849    esac
26850
26851    case $target in
26852      *-*-aix*) conftest_s='	.machine "pwr5"
26853	.csect .text[PR]
26854	mfcr 3,128';;
26855      *-*-darwin*) conftest_s='	.text
26856	mfcr r3,128';;
26857      *) conftest_s='	.machine power4
26858	.text
26859	mfcr 3,128';;
26860    esac
26861
26862    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26863$as_echo_n "checking assembler for mfcr field support... " >&6; }
26864if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
26865  $as_echo_n "(cached) " >&6
26866else
26867  gcc_cv_as_powerpc_mfcrf=no
26868    if test $in_tree_gas = yes; then
26869    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26870  then gcc_cv_as_powerpc_mfcrf=yes
26871fi
26872  elif test x$gcc_cv_as != x; then
26873    $as_echo "$conftest_s" > conftest.s
26874    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26875  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26876  (eval $ac_try) 2>&5
26877  ac_status=$?
26878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26879  test $ac_status = 0; }; }
26880    then
26881	gcc_cv_as_powerpc_mfcrf=yes
26882    else
26883      echo "configure: failed program was" >&5
26884      cat conftest.s >&5
26885    fi
26886    rm -f conftest.o conftest.s
26887  fi
26888fi
26889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26890$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26891if test $gcc_cv_as_powerpc_mfcrf = yes; then
26892
26893$as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26894
26895fi
26896
26897
26898    case $target in
26899      *-*-aix*) conftest_s='	.csect .text[PR]
26900LCF..0:
26901	addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26902      *-*-darwin*)
26903	conftest_s='	.text
26904LCF0:
26905	addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26906      *) conftest_s='	.text
26907.LCF0:
26908	addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26909    esac
26910
26911    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26912$as_echo_n "checking assembler for rel16 relocs... " >&6; }
26913if ${gcc_cv_as_powerpc_rel16+:} false; then :
26914  $as_echo_n "(cached) " >&6
26915else
26916  gcc_cv_as_powerpc_rel16=no
26917    if test $in_tree_gas = yes; then
26918    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26919  then gcc_cv_as_powerpc_rel16=yes
26920fi
26921  elif test x$gcc_cv_as != x; then
26922    $as_echo "$conftest_s" > conftest.s
26923    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26924  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26925  (eval $ac_try) 2>&5
26926  ac_status=$?
26927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26928  test $ac_status = 0; }; }
26929    then
26930	gcc_cv_as_powerpc_rel16=yes
26931    else
26932      echo "configure: failed program was" >&5
26933      cat conftest.s >&5
26934    fi
26935    rm -f conftest.o conftest.s
26936  fi
26937fi
26938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26939$as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26940if test $gcc_cv_as_powerpc_rel16 = yes; then
26941
26942$as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26943
26944fi
26945
26946
26947    case $target in
26948      *-*-aix*) conftest_s='	.machine "pwr7"
26949	.csect .text[PR]
26950	lxvd2x 1,2,3';;
26951      *) conftest_s='	.machine power7
26952	.text
26953	lxvd2x 1,2,3';;
26954    esac
26955
26956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26957$as_echo_n "checking assembler for vector-scalar support... " >&6; }
26958if ${gcc_cv_as_powerpc_vsx+:} false; then :
26959  $as_echo_n "(cached) " >&6
26960else
26961  gcc_cv_as_powerpc_vsx=no
26962    if test $in_tree_gas = yes; then
26963    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26964  then gcc_cv_as_powerpc_vsx=yes
26965fi
26966  elif test x$gcc_cv_as != x; then
26967    $as_echo "$conftest_s" > conftest.s
26968    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26969  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26970  (eval $ac_try) 2>&5
26971  ac_status=$?
26972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26973  test $ac_status = 0; }; }
26974    then
26975	gcc_cv_as_powerpc_vsx=yes
26976    else
26977      echo "configure: failed program was" >&5
26978      cat conftest.s >&5
26979    fi
26980    rm -f conftest.o conftest.s
26981  fi
26982fi
26983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26984$as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26985if test $gcc_cv_as_powerpc_vsx = yes; then
26986
26987$as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26988
26989fi
26990
26991
26992    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26993$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26994if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
26995  $as_echo_n "(cached) " >&6
26996else
26997  gcc_cv_as_powerpc_gnu_attribute=no
26998    if test $in_tree_gas = yes; then
26999    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27000  then gcc_cv_as_powerpc_gnu_attribute=yes
27001fi
27002  elif test x$gcc_cv_as != x; then
27003    $as_echo '.gnu_attribute 4,1' > conftest.s
27004    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27005  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27006  (eval $ac_try) 2>&5
27007  ac_status=$?
27008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27009  test $ac_status = 0; }; }
27010    then
27011	gcc_cv_as_powerpc_gnu_attribute=yes
27012    else
27013      echo "configure: failed program was" >&5
27014      cat conftest.s >&5
27015    fi
27016    rm -f conftest.o conftest.s
27017  fi
27018fi
27019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27020$as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27021if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27022
27023$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27024
27025fi
27026
27027
27028    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27029$as_echo_n "checking assembler for tls marker support... " >&6; }
27030if ${gcc_cv_as_powerpc_tls_markers+:} false; then :
27031  $as_echo_n "(cached) " >&6
27032else
27033  gcc_cv_as_powerpc_tls_markers=no
27034    if test $in_tree_gas = yes; then
27035    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27036  then gcc_cv_as_powerpc_tls_markers=yes
27037fi
27038  elif test x$gcc_cv_as != x; then
27039    $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27040    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27041  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27042  (eval $ac_try) 2>&5
27043  ac_status=$?
27044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27045  test $ac_status = 0; }; }
27046    then
27047	gcc_cv_as_powerpc_tls_markers=yes
27048    else
27049      echo "configure: failed program was" >&5
27050      cat conftest.s >&5
27051    fi
27052    rm -f conftest.o conftest.s
27053  fi
27054fi
27055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27056$as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27057if test $gcc_cv_as_powerpc_tls_markers = yes; then
27058
27059$as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27060
27061fi
27062
27063
27064    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27065$as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27066if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27067  $as_echo_n "(cached) " >&6
27068else
27069  gcc_cv_as_powerpc_entry_markers=no
27070    if test $in_tree_gas = yes; then
27071    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27072  then gcc_cv_as_powerpc_entry_markers=yes
27073fi
27074  elif test x$gcc_cv_as != x; then
27075    $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27076    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27077  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27078  (eval $ac_try) 2>&5
27079  ac_status=$?
27080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27081  test $ac_status = 0; }; }
27082    then
27083	gcc_cv_as_powerpc_entry_markers=yes
27084    else
27085      echo "configure: failed program was" >&5
27086      cat conftest.s >&5
27087    fi
27088    rm -f conftest.o conftest.s
27089  fi
27090fi
27091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27092$as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27093if test $gcc_cv_as_powerpc_entry_markers = yes; then
27094
27095$as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27096
27097fi
27098
27099
27100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27101$as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27102if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27103  $as_echo_n "(cached) " >&6
27104else
27105  gcc_cv_as_powerpc_pltseq_markers=no
27106    if test $in_tree_gas = yes; then
27107    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27108  then gcc_cv_as_powerpc_pltseq_markers=yes
27109fi
27110  elif test x$gcc_cv_as != x; then
27111    $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27112    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27113  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27114  (eval $ac_try) 2>&5
27115  ac_status=$?
27116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27117  test $ac_status = 0; }; }
27118    then
27119	gcc_cv_as_powerpc_pltseq_markers=yes
27120    else
27121      echo "configure: failed program was" >&5
27122      cat conftest.s >&5
27123    fi
27124    rm -f conftest.o conftest.s
27125  fi
27126fi
27127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27128$as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27129if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27130
27131$as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27132
27133fi
27134
27135
27136    case $target in
27137      *-*-aix*)
27138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27139$as_echo_n "checking assembler for AIX .ref support... " >&6; }
27140if ${gcc_cv_as_aix_ref+:} false; then :
27141  $as_echo_n "(cached) " >&6
27142else
27143  gcc_cv_as_aix_ref=no
27144    if test $in_tree_gas = yes; then
27145    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27146  then gcc_cv_as_aix_ref=yes
27147fi
27148  elif test x$gcc_cv_as != x; then
27149    $as_echo '	.csect stuff[rw]
27150	     stuff:
27151		.long 1
27152		.extern sym
27153		.ref sym
27154	  ' > conftest.s
27155    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27156  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27157  (eval $ac_try) 2>&5
27158  ac_status=$?
27159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27160  test $ac_status = 0; }; }
27161    then
27162	gcc_cv_as_aix_ref=yes
27163    else
27164      echo "configure: failed program was" >&5
27165      cat conftest.s >&5
27166    fi
27167    rm -f conftest.o conftest.s
27168  fi
27169fi
27170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27171$as_echo "$gcc_cv_as_aix_ref" >&6; }
27172if test $gcc_cv_as_aix_ref = yes; then
27173
27174$as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27175
27176fi
27177
27178
27179	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27180$as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27181if ${gcc_cv_as_aix_dwloc+:} false; then :
27182  $as_echo_n "(cached) " >&6
27183else
27184  gcc_cv_as_aix_dwloc=no
27185    if test $in_tree_gas = yes; then
27186    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27187  then gcc_cv_as_aix_dwloc=yes
27188fi
27189  elif test x$gcc_cv_as != x; then
27190    $as_echo '	.dwsect 0xA0000
27191	Lframe..0:
27192		.vbyte 4,Lframe..0
27193	  ' > conftest.s
27194    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27195  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27196  (eval $ac_try) 2>&5
27197  ac_status=$?
27198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27199  test $ac_status = 0; }; }
27200    then
27201	gcc_cv_as_aix_dwloc=yes
27202    else
27203      echo "configure: failed program was" >&5
27204      cat conftest.s >&5
27205    fi
27206    rm -f conftest.o conftest.s
27207  fi
27208fi
27209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27210$as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27211if test $gcc_cv_as_aix_dwloc = yes; then
27212
27213$as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27214
27215fi
27216
27217	;;
27218    esac
27219    ;;
27220
27221  mips*-*-*)
27222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27223$as_echo_n "checking assembler for explicit relocation support... " >&6; }
27224if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27225  $as_echo_n "(cached) " >&6
27226else
27227  gcc_cv_as_mips_explicit_relocs=no
27228    if test $in_tree_gas = yes; then
27229    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27230  then gcc_cv_as_mips_explicit_relocs=yes
27231fi
27232  elif test x$gcc_cv_as != x; then
27233    $as_echo '	lw $4,%gp_rel(foo)($4)' > conftest.s
27234    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27235  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27236  (eval $ac_try) 2>&5
27237  ac_status=$?
27238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27239  test $ac_status = 0; }; }
27240    then
27241	gcc_cv_as_mips_explicit_relocs=yes
27242    else
27243      echo "configure: failed program was" >&5
27244      cat conftest.s >&5
27245    fi
27246    rm -f conftest.o conftest.s
27247  fi
27248fi
27249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27250$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27251if test $gcc_cv_as_mips_explicit_relocs = yes; then
27252  if test x$target_cpu_default = x
27253       then target_cpu_default=MASK_EXPLICIT_RELOCS
27254       else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27255       fi
27256fi
27257
27258
27259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27260$as_echo_n "checking assembler for -mno-shared support... " >&6; }
27261if ${gcc_cv_as_mips_no_shared+:} false; then :
27262  $as_echo_n "(cached) " >&6
27263else
27264  gcc_cv_as_mips_no_shared=no
27265    if test $in_tree_gas = yes; then
27266    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27267  then gcc_cv_as_mips_no_shared=yes
27268fi
27269  elif test x$gcc_cv_as != x; then
27270    $as_echo 'nop' > conftest.s
27271    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27272  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27273  (eval $ac_try) 2>&5
27274  ac_status=$?
27275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27276  test $ac_status = 0; }; }
27277    then
27278	gcc_cv_as_mips_no_shared=yes
27279    else
27280      echo "configure: failed program was" >&5
27281      cat conftest.s >&5
27282    fi
27283    rm -f conftest.o conftest.s
27284  fi
27285fi
27286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27287$as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27288if test $gcc_cv_as_mips_no_shared = yes; then
27289
27290$as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27291
27292fi
27293
27294
27295    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27296$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27297if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27298  $as_echo_n "(cached) " >&6
27299else
27300  gcc_cv_as_mips_gnu_attribute=no
27301    if test $in_tree_gas = yes; then
27302    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27303  then gcc_cv_as_mips_gnu_attribute=yes
27304fi
27305  elif test x$gcc_cv_as != x; then
27306    $as_echo '.gnu_attribute 4,1' > conftest.s
27307    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27308  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27309  (eval $ac_try) 2>&5
27310  ac_status=$?
27311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27312  test $ac_status = 0; }; }
27313    then
27314	gcc_cv_as_mips_gnu_attribute=yes
27315    else
27316      echo "configure: failed program was" >&5
27317      cat conftest.s >&5
27318    fi
27319    rm -f conftest.o conftest.s
27320  fi
27321fi
27322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27323$as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27324if test $gcc_cv_as_mips_gnu_attribute = yes; then
27325
27326$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27327
27328fi
27329
27330
27331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27332$as_echo_n "checking assembler for .module support... " >&6; }
27333if ${gcc_cv_as_mips_dot_module+:} false; then :
27334  $as_echo_n "(cached) " >&6
27335else
27336  gcc_cv_as_mips_dot_module=no
27337  if test x$gcc_cv_as != x; then
27338    $as_echo '.module mips2
27339       .module fp=xx' > conftest.s
27340    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27341  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27342  (eval $ac_try) 2>&5
27343  ac_status=$?
27344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27345  test $ac_status = 0; }; }
27346    then
27347	gcc_cv_as_mips_dot_module=yes
27348    else
27349      echo "configure: failed program was" >&5
27350      cat conftest.s >&5
27351    fi
27352    rm -f conftest.o conftest.s
27353  fi
27354fi
27355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27356$as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27357if test $gcc_cv_as_mips_dot_module = yes; then
27358
27359$as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27360
27361fi
27362
27363    if test x$gcc_cv_as_mips_dot_module = xno \
27364       && test x$with_fp_32 != x; then
27365      as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27366    fi
27367
27368    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27369$as_echo_n "checking assembler for .micromips support... " >&6; }
27370if ${gcc_cv_as_micromips_support+:} false; then :
27371  $as_echo_n "(cached) " >&6
27372else
27373  gcc_cv_as_micromips_support=no
27374  if test x$gcc_cv_as != x; then
27375    $as_echo '.set micromips' > conftest.s
27376    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27377  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27378  (eval $ac_try) 2>&5
27379  ac_status=$?
27380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27381  test $ac_status = 0; }; }
27382    then
27383	gcc_cv_as_micromips_support=yes
27384    else
27385      echo "configure: failed program was" >&5
27386      cat conftest.s >&5
27387    fi
27388    rm -f conftest.o conftest.s
27389  fi
27390fi
27391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27392$as_echo "$gcc_cv_as_micromips_support" >&6; }
27393if test $gcc_cv_as_micromips_support = yes; then
27394
27395$as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27396
27397fi
27398
27399
27400    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27401$as_echo_n "checking assembler for .dtprelword support... " >&6; }
27402if ${gcc_cv_as_mips_dtprelword+:} false; then :
27403  $as_echo_n "(cached) " >&6
27404else
27405  gcc_cv_as_mips_dtprelword=no
27406    if test $in_tree_gas = yes; then
27407    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27408  then gcc_cv_as_mips_dtprelword=yes
27409fi
27410  elif test x$gcc_cv_as != x; then
27411    $as_echo '.section .tdata,"awT",@progbits
27412x:
27413	.word 2
27414	.text
27415	.dtprelword x+0x8000' > conftest.s
27416    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27417  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27418  (eval $ac_try) 2>&5
27419  ac_status=$?
27420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27421  test $ac_status = 0; }; }
27422    then
27423	gcc_cv_as_mips_dtprelword=yes
27424    else
27425      echo "configure: failed program was" >&5
27426      cat conftest.s >&5
27427    fi
27428    rm -f conftest.o conftest.s
27429  fi
27430fi
27431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27432$as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27433if test $gcc_cv_as_mips_dtprelword = yes; then
27434
27435$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27436
27437fi
27438
27439
27440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27441$as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27442if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27443  $as_echo_n "(cached) " >&6
27444else
27445  gcc_cv_as_mips_dspr1_mult=no
27446  if test x$gcc_cv_as != x; then
27447    $as_echo '	.set	mips32r2
27448	.set	nodspr2
27449	.set	dsp
27450	madd	$ac3,$4,$5
27451	maddu	$ac3,$4,$5
27452	msub	$ac3,$4,$5
27453	msubu	$ac3,$4,$5
27454	mult	$ac3,$4,$5
27455	multu	$ac3,$4,$5' > conftest.s
27456    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27457  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27458  (eval $ac_try) 2>&5
27459  ac_status=$?
27460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27461  test $ac_status = 0; }; }
27462    then
27463	gcc_cv_as_mips_dspr1_mult=yes
27464    else
27465      echo "configure: failed program was" >&5
27466      cat conftest.s >&5
27467    fi
27468    rm -f conftest.o conftest.s
27469  fi
27470fi
27471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27472$as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27473if test $gcc_cv_as_mips_dspr1_mult = yes; then
27474
27475$as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27476
27477fi
27478
27479
27480    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27481$as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27482    gcc_cv_as_ld_jalr_reloc=no
27483    if test $gcc_cv_as_mips_explicit_relocs = yes; then
27484      if test $in_tree_ld = yes ; then
27485        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 \
27486           && test $in_tree_ld_is_elf = yes; then
27487          gcc_cv_as_ld_jalr_reloc=yes
27488        fi
27489      elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27490        echo '	.ent x' > conftest.s
27491        echo 'x:	lw $2,%got_disp(y)($3)' >> conftest.s
27492        echo '	lw $25,%call16(y)($28)' >> conftest.s
27493        echo '	.reloc	1f,R_MIPS_JALR,y' >> conftest.s
27494        echo '1:	jalr $25' >> conftest.s
27495        echo '	.reloc	1f,R_MIPS_JALR,x' >> conftest.s
27496        echo '1:	jalr $25' >> conftest.s
27497        echo '	.end x' >> conftest.s
27498        if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27499           && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27500	  if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27501	     && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27502            gcc_cv_as_ld_jalr_reloc=yes
27503	  fi
27504        fi
27505        rm -f conftest.*
27506      fi
27507    fi
27508    if test $gcc_cv_as_ld_jalr_reloc = yes; then
27509      if test x$target_cpu_default = x; then
27510        target_cpu_default=MASK_RELAX_PIC_CALLS
27511      else
27512        target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27513      fi
27514    fi
27515    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27516$as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27517
27518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27519$as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27520if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27521  $as_echo_n "(cached) " >&6
27522else
27523  gcc_cv_ld_mips_personality_relaxation=no
27524       if test $in_tree_ld = yes ; then
27525	 if test "$gcc_cv_gld_major_version" -eq 2 \
27526		 -a "$gcc_cv_gld_minor_version" -ge 21 \
27527		 -o "$gcc_cv_gld_major_version" -gt 2; then
27528	   gcc_cv_ld_mips_personality_relaxation=yes
27529	 fi
27530       elif test x$gcc_cv_as != x \
27531       	    	 -a x$gcc_cv_ld != x \
27532		 -a x$gcc_cv_readelf != x ; then
27533	 cat > conftest.s <<EOF
27534	.cfi_startproc
27535	.cfi_personality 0x80,indirect_ptr
27536	.ent test
27537test:
27538	nop
27539	.end test
27540	.cfi_endproc
27541
27542	.section .data,"aw",@progbits
27543indirect_ptr:
27544	.dc.a personality
27545EOF
27546	 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27547	    && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27548	   if $gcc_cv_readelf -d conftest 2>&1 \
27549	      | grep TEXTREL > /dev/null 2>&1; then
27550	     :
27551	   elif $gcc_cv_readelf --relocs conftest 2>&1 \
27552	        | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27553	     :
27554	   else
27555	     gcc_cv_ld_mips_personality_relaxation=yes
27556	   fi
27557	 fi
27558       fi
27559       rm -f conftest.s conftest.o conftest
27560fi
27561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27562$as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27563    if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27564
27565$as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27566
27567    fi
27568
27569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27570$as_echo_n "checking assembler for -mnan= support... " >&6; }
27571if ${gcc_cv_as_mips_nan+:} false; then :
27572  $as_echo_n "(cached) " >&6
27573else
27574  gcc_cv_as_mips_nan=no
27575  if test x$gcc_cv_as != x; then
27576    $as_echo '' > conftest.s
27577    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27578  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27579  (eval $ac_try) 2>&5
27580  ac_status=$?
27581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27582  test $ac_status = 0; }; }
27583    then
27584	gcc_cv_as_mips_nan=yes
27585    else
27586      echo "configure: failed program was" >&5
27587      cat conftest.s >&5
27588    fi
27589    rm -f conftest.o conftest.s
27590  fi
27591fi
27592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27593$as_echo "$gcc_cv_as_mips_nan" >&6; }
27594if test $gcc_cv_as_mips_nan = yes; then
27595
27596$as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27597
27598fi
27599
27600    if test x$gcc_cv_as_mips_nan = xno \
27601       && test x$with_nan != x; then
27602      as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27603    fi
27604    ;;
27605    riscv*-*-*)
27606    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
27607$as_echo_n "checking assembler for .attribute support... " >&6; }
27608if ${gcc_cv_as_riscv_attribute+:} false; then :
27609  $as_echo_n "(cached) " >&6
27610else
27611  gcc_cv_as_riscv_attribute=no
27612    if test $in_tree_gas = yes; then
27613    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
27614  then gcc_cv_as_riscv_attribute=yes
27615fi
27616  elif test x$gcc_cv_as != x; then
27617    $as_echo '.attribute stack_align,4' > conftest.s
27618    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27619  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27620  (eval $ac_try) 2>&5
27621  ac_status=$?
27622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27623  test $ac_status = 0; }; }
27624    then
27625	gcc_cv_as_riscv_attribute=yes
27626    else
27627      echo "configure: failed program was" >&5
27628      cat conftest.s >&5
27629    fi
27630    rm -f conftest.o conftest.s
27631  fi
27632fi
27633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
27634$as_echo "$gcc_cv_as_riscv_attribute" >&6; }
27635if test $gcc_cv_as_riscv_attribute = yes; then
27636
27637$as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
27638
27639fi
27640
27641    ;;
27642    s390*-*-*)
27643    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27644$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27645if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
27646  $as_echo_n "(cached) " >&6
27647else
27648  gcc_cv_as_s390_gnu_attribute=no
27649    if test $in_tree_gas = yes; then
27650    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27651  then gcc_cv_as_s390_gnu_attribute=yes
27652fi
27653  elif test x$gcc_cv_as != x; then
27654    $as_echo '.gnu_attribute 8,1' > conftest.s
27655    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27656  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27657  (eval $ac_try) 2>&5
27658  ac_status=$?
27659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27660  test $ac_status = 0; }; }
27661    then
27662	gcc_cv_as_s390_gnu_attribute=yes
27663    else
27664      echo "configure: failed program was" >&5
27665      cat conftest.s >&5
27666    fi
27667    rm -f conftest.o conftest.s
27668  fi
27669fi
27670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27671$as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27672if test $gcc_cv_as_s390_gnu_attribute = yes; then
27673
27674$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27675
27676fi
27677
27678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27679$as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27680if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
27681  $as_echo_n "(cached) " >&6
27682else
27683  gcc_cv_as_s390_machine_machinemode=no
27684    if test $in_tree_gas = yes; then
27685    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27686  then gcc_cv_as_s390_machine_machinemode=yes
27687fi
27688  elif test x$gcc_cv_as != x; then
27689    $as_echo '	.machinemode push
27690	.machinemode pop
27691	.machine push
27692	.machine pop' > conftest.s
27693    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27694  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27695  (eval $ac_try) 2>&5
27696  ac_status=$?
27697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27698  test $ac_status = 0; }; }
27699    then
27700	gcc_cv_as_s390_machine_machinemode=yes
27701    else
27702      echo "configure: failed program was" >&5
27703      cat conftest.s >&5
27704    fi
27705    rm -f conftest.o conftest.s
27706  fi
27707fi
27708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27709$as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27710if test $gcc_cv_as_s390_machine_machinemode = yes; then
27711
27712$as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27713
27714fi
27715
27716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27717$as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27718if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
27719  $as_echo_n "(cached) " >&6
27720else
27721  gcc_cv_as_s390_architecture_modifiers=no
27722    if test $in_tree_gas = yes; then
27723    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27724  then gcc_cv_as_s390_architecture_modifiers=yes
27725fi
27726  elif test x$gcc_cv_as != x; then
27727    $as_echo '	.machine z13+vx ' > conftest.s
27728    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27729  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27730  (eval $ac_try) 2>&5
27731  ac_status=$?
27732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27733  test $ac_status = 0; }; }
27734    then
27735	gcc_cv_as_s390_architecture_modifiers=yes
27736    else
27737      echo "configure: failed program was" >&5
27738      cat conftest.s >&5
27739    fi
27740    rm -f conftest.o conftest.s
27741  fi
27742fi
27743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27744$as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27745if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27746
27747$as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27748
27749fi
27750
27751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
27752$as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
27753if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
27754  $as_echo_n "(cached) " >&6
27755else
27756  gcc_cv_as_s390_vector_loadstore_alignment_hints=no
27757    if test $in_tree_gas = yes; then
27758    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27759  then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27760fi
27761  elif test x$gcc_cv_as != x; then
27762    $as_echo '	vl %v24,0(%r15),3 ' > conftest.s
27763    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27764  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27765  (eval $ac_try) 2>&5
27766  ac_status=$?
27767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27768  test $ac_status = 0; }; }
27769    then
27770	gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27771    else
27772      echo "configure: failed program was" >&5
27773      cat conftest.s >&5
27774    fi
27775    rm -f conftest.o conftest.s
27776  fi
27777fi
27778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
27779$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
27780if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
27781
27782$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
27783
27784fi
27785
27786    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
27787$as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
27788if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
27789  $as_echo_n "(cached) " >&6
27790else
27791  gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
27792  if test x$gcc_cv_as != x; then
27793    $as_echo '	vl %v24,0(%r15),3 ' > conftest.s
27794    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
27795  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27796  (eval $ac_try) 2>&5
27797  ac_status=$?
27798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27799  test $ac_status = 0; }; }
27800    then
27801	gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
27802    else
27803      echo "configure: failed program was" >&5
27804      cat conftest.s >&5
27805    fi
27806    rm -f conftest.o conftest.s
27807  fi
27808fi
27809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
27810$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
27811if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
27812
27813$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
27814
27815fi
27816
27817
27818    ;;
27819esac
27820
27821# Mips and HP-UX need the GNU assembler.
27822# Linux on IA64 might be able to use the Intel assembler.
27823
27824case "$target" in
27825  mips*-*-* | *-*-hpux* )
27826    if test x$gas_flag = xyes \
27827       || test x"$host" != x"$build" \
27828       || test ! -x "$gcc_cv_as" \
27829       || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27830      :
27831    else
27832      echo "*** This configuration requires the GNU assembler" >&2
27833      exit 1
27834    fi
27835    ;;
27836esac
27837
27838# ??? Not all targets support dwarf2 debug_line, even within a version
27839# of gas.  Moreover, we need to emit a valid instruction to trigger any
27840# info to the output file.  So, as supported targets are added to gas 2.11,
27841# add some instruction here to (also) show we expect this might work.
27842# ??? Once 2.11 is released, probably need to add first known working
27843# version to the per-target configury.
27844case "$cpu_type" in
27845  aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27846  | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27847  | tilegx | tilepro | visium | xstormy16 | xtensa)
27848    insn="nop"
27849    ;;
27850  ia64 | s390)
27851    insn="nop 0"
27852    ;;
27853  mmix)
27854    insn="swym 0"
27855    ;;
27856esac
27857if test x"$insn" != x; then
27858 conftest_s="\
27859	.file 1 \"conftest.s\"
27860	.loc 1 3 0
27861	$insn"
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27863$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27864if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
27865  $as_echo_n "(cached) " >&6
27866else
27867  gcc_cv_as_dwarf2_debug_line=no
27868    if test $in_tree_gas = yes; then
27869    if test $in_tree_gas_is_elf = yes \
27870  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27871  then gcc_cv_as_dwarf2_debug_line=yes
27872fi
27873  elif test x$gcc_cv_as != x; then
27874    $as_echo "$conftest_s" > conftest.s
27875    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27876  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27877  (eval $ac_try) 2>&5
27878  ac_status=$?
27879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27880  test $ac_status = 0; }; }
27881    then
27882	if test x$gcc_cv_objdump != x \
27883   && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27884      | grep debug_line > /dev/null 2>&1; then
27885     gcc_cv_as_dwarf2_debug_line=yes
27886   elif test x$gcc_cv_otool != x \
27887   && $gcc_cv_otool -l conftest.o 2> /dev/null \
27888      | grep debug_line > /dev/null 2>&1; then
27889     gcc_cv_as_dwarf2_debug_line=yes
27890   fi
27891    else
27892      echo "configure: failed program was" >&5
27893      cat conftest.s >&5
27894    fi
27895    rm -f conftest.o conftest.s
27896  fi
27897fi
27898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27899$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27900
27901
27902
27903# The .debug_line file table must be in the exact order that
27904# we specified the files, since these indices are also used
27905# by DW_AT_decl_file.  Approximate this test by testing if
27906# the assembler bitches if the same index is assigned twice.
27907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27908$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27909if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
27910  $as_echo_n "(cached) " >&6
27911else
27912  gcc_cv_as_dwarf2_file_buggy=no
27913  if test x$gcc_cv_as != x; then
27914    $as_echo '	.file 1 "foo.s"
27915	.file 1 "bar.s"' > conftest.s
27916    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27917  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27918  (eval $ac_try) 2>&5
27919  ac_status=$?
27920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27921  test $ac_status = 0; }; }
27922    then
27923	gcc_cv_as_dwarf2_file_buggy=yes
27924    else
27925      echo "configure: failed program was" >&5
27926      cat conftest.s >&5
27927    fi
27928    rm -f conftest.o conftest.s
27929  fi
27930fi
27931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27932$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27933
27934
27935
27936 if test $gcc_cv_as_dwarf2_debug_line = yes \
27937 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27938
27939$as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27940
27941
27942    if test $gcc_cv_as_leb128 = yes; then
27943	conftest_s="\
27944	.file 1 \"conftest.s\"
27945	.loc 1 3 0 view .LVU1
27946	$insn
27947	.data
27948	.uleb128 .LVU1
27949	.uleb128 .LVU1
27950"
27951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27952$as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27953if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
27954  $as_echo_n "(cached) " >&6
27955else
27956  gcc_cv_as_dwarf2_debug_view=no
27957    if test $in_tree_gas = yes; then
27958    if test $in_tree_gas_is_elf = yes \
27959  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27960  then gcc_cv_as_dwarf2_debug_view=yes
27961fi
27962  elif test x$gcc_cv_as != x; then
27963    $as_echo "$conftest_s" > conftest.s
27964    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27965  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27966  (eval $ac_try) 2>&5
27967  ac_status=$?
27968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27969  test $ac_status = 0; }; }
27970    then
27971	gcc_cv_as_dwarf2_debug_view=yes
27972    else
27973      echo "configure: failed program was" >&5
27974      cat conftest.s >&5
27975    fi
27976    rm -f conftest.o conftest.s
27977  fi
27978fi
27979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27980$as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27981if test $gcc_cv_as_dwarf2_debug_view = yes; then
27982
27983$as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27984
27985fi
27986
27987    fi
27988 fi
27989
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27991$as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27992if ${gcc_cv_as_gdwarf2_flag+:} false; then :
27993  $as_echo_n "(cached) " >&6
27994else
27995  gcc_cv_as_gdwarf2_flag=no
27996    if test $in_tree_gas = yes; then
27997    if test $in_tree_gas_is_elf = yes \
27998  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27999  then gcc_cv_as_gdwarf2_flag=yes
28000fi
28001  elif test x$gcc_cv_as != x; then
28002    $as_echo "$insn" > conftest.s
28003    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28004  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28005  (eval $ac_try) 2>&5
28006  ac_status=$?
28007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28008  test $ac_status = 0; }; }
28009    then
28010	gcc_cv_as_gdwarf2_flag=yes
28011    else
28012      echo "configure: failed program was" >&5
28013      cat conftest.s >&5
28014    fi
28015    rm -f conftest.o conftest.s
28016  fi
28017fi
28018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28019$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28020if test $gcc_cv_as_gdwarf2_flag = yes; then
28021
28022$as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28023
28024fi
28025
28026
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28028$as_echo_n "checking assembler for --gstabs option... " >&6; }
28029if ${gcc_cv_as_gstabs_flag+:} false; then :
28030  $as_echo_n "(cached) " >&6
28031else
28032  gcc_cv_as_gstabs_flag=no
28033    if test $in_tree_gas = yes; then
28034    if test $in_tree_gas_is_elf = yes \
28035  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28036  then gcc_cv_as_gstabs_flag=yes
28037fi
28038  elif test x$gcc_cv_as != x; then
28039    $as_echo "$insn" > conftest.s
28040    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28041  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28042  (eval $ac_try) 2>&5
28043  ac_status=$?
28044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28045  test $ac_status = 0; }; }
28046    then
28047	gcc_cv_as_gstabs_flag=yes
28048    else
28049      echo "configure: failed program was" >&5
28050      cat conftest.s >&5
28051    fi
28052    rm -f conftest.o conftest.s
28053  fi
28054fi
28055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28056$as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28057if test $gcc_cv_as_gstabs_flag = yes; then
28058
28059$as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28060
28061fi
28062
28063
28064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28065$as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28066if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28067  $as_echo_n "(cached) " >&6
28068else
28069  gcc_cv_as_debug_prefix_map_flag=no
28070    if test $in_tree_gas = yes; then
28071    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28072  then gcc_cv_as_debug_prefix_map_flag=yes
28073fi
28074  elif test x$gcc_cv_as != x; then
28075    $as_echo "$insn" > conftest.s
28076    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28077  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28078  (eval $ac_try) 2>&5
28079  ac_status=$?
28080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28081  test $ac_status = 0; }; }
28082    then
28083	gcc_cv_as_debug_prefix_map_flag=yes
28084    else
28085      echo "configure: failed program was" >&5
28086      cat conftest.s >&5
28087    fi
28088    rm -f conftest.o conftest.s
28089  fi
28090fi
28091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28092$as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28093if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28094
28095$as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28096
28097fi
28098
28099fi
28100
28101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28102$as_echo_n "checking assembler for compressed debug sections... " >&6; }
28103if ${gcc_cv_as_compress_debug+:} false; then :
28104  $as_echo_n "(cached) " >&6
28105else
28106  gcc_cv_as_compress_debug=no
28107  if test x$gcc_cv_as != x; then
28108    $as_echo '' > conftest.s
28109    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28110  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28111  (eval $ac_try) 2>&5
28112  ac_status=$?
28113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28114  test $ac_status = 0; }; }
28115    then
28116	# gas compiled without zlib cannot compress debug sections and warns
28117   # about it, but still exits successfully.  So check for this, too.
28118   if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28119   then
28120     gcc_cv_as_compress_debug=0
28121   # Since binutils 2.26, gas supports --compress-debug-sections=type,
28122   # defaulting to the ELF gABI format.
28123   elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28124   then
28125     gcc_cv_as_compress_debug=2
28126     gcc_cv_as_compress_debug_option="--compress-debug-sections"
28127     gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28128   # Before binutils 2.26, gas only supported --compress-debug-options and
28129   # emitted the traditional GNU format.
28130   elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28131   then
28132     gcc_cv_as_compress_debug=1
28133     gcc_cv_as_compress_debug_option="--compress-debug-sections"
28134     gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28135   else
28136     gcc_cv_as_compress_debug=0
28137   fi
28138    else
28139      echo "configure: failed program was" >&5
28140      cat conftest.s >&5
28141    fi
28142    rm -f conftest.o conftest.s
28143  fi
28144fi
28145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28146$as_echo "$gcc_cv_as_compress_debug" >&6; }
28147
28148
28149
28150cat >>confdefs.h <<_ACEOF
28151#define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28152_ACEOF
28153
28154
28155cat >>confdefs.h <<_ACEOF
28156#define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28157_ACEOF
28158
28159
28160cat >>confdefs.h <<_ACEOF
28161#define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28162_ACEOF
28163
28164
28165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28166$as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28167if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28168  $as_echo_n "(cached) " >&6
28169else
28170  gcc_cv_as_lcomm_with_alignment=no
28171  if test x$gcc_cv_as != x; then
28172    $as_echo '.lcomm bar,4,16' > conftest.s
28173    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28174  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28175  (eval $ac_try) 2>&5
28176  ac_status=$?
28177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28178  test $ac_status = 0; }; }
28179    then
28180	gcc_cv_as_lcomm_with_alignment=yes
28181    else
28182      echo "configure: failed program was" >&5
28183      cat conftest.s >&5
28184    fi
28185    rm -f conftest.o conftest.s
28186  fi
28187fi
28188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28189$as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28190if test $gcc_cv_as_lcomm_with_alignment = yes; then
28191
28192$as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28193
28194fi
28195
28196
28197if test x$with_sysroot = x && test x$host = x$target \
28198   && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28199   && test "$prefix" != "NONE"; then
28200
28201cat >>confdefs.h <<_ACEOF
28202#define PREFIX_INCLUDE_DIR "$prefix/include"
28203_ACEOF
28204
28205fi
28206
28207# Determine the version of glibc, if any, used on the target.
28208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28209$as_echo_n "checking for target glibc version... " >&6; }
28210
28211# Check whether --with-glibc-version was given.
28212if test "${with_glibc_version+set}" = set; then :
28213  withval=$with_glibc_version;
28214if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28215  glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28216  glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28217else
28218  as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28219fi
28220else
28221
28222glibc_version_major=0
28223glibc_version_minor=0
28224if test -f $target_header_dir/features.h \
28225  && glibc_version_major_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC__[ 	]+[0-9]' $target_header_dir/features.h` \
28226  && glibc_version_minor_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC_MINOR__[ 	]+[0-9]' $target_header_dir/features.h`; then
28227  glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ 	]*//'`
28228  glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ 	]*//'`
28229fi
28230fi
28231
28232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28233$as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28234
28235cat >>confdefs.h <<_ACEOF
28236#define TARGET_GLIBC_MAJOR $glibc_version_major
28237_ACEOF
28238
28239
28240cat >>confdefs.h <<_ACEOF
28241#define TARGET_GLIBC_MINOR $glibc_version_minor
28242_ACEOF
28243
28244
28245# Check whether --enable-gnu-unique-object was given.
28246if test "${enable_gnu_unique_object+set}" = set; then :
28247  enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28248    yes | no) ;;
28249    *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28250Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28251  esac
28252else
28253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28254$as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28255if ${gcc_cv_as_gnu_unique_object+:} false; then :
28256  $as_echo_n "(cached) " >&6
28257else
28258  gcc_cv_as_gnu_unique_object=no
28259    if test $in_tree_gas = yes; then
28260    if test $in_tree_gas_is_elf = yes \
28261  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28262  then gcc_cv_as_gnu_unique_object=yes
28263fi
28264  elif test x$gcc_cv_as != x; then
28265    $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28266    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28267  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28268  (eval $ac_try) 2>&5
28269  ac_status=$?
28270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28271  test $ac_status = 0; }; }
28272    then
28273	gcc_cv_as_gnu_unique_object=yes
28274    else
28275      echo "configure: failed program was" >&5
28276      cat conftest.s >&5
28277    fi
28278    rm -f conftest.o conftest.s
28279  fi
28280fi
28281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28282$as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28283if test $gcc_cv_as_gnu_unique_object = yes; then
28284  # We need to unquote above to to use the definition from config.gcc.
28285# Also check for ld.so support, i.e. glibc 2.11 or higher.
28286
28287if test $glibc_version_major -gt 2 \
28288  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28289  enable_gnu_unique_object=yes
28290fi
28291
28292fi
28293
28294fi
28295
28296if test x$enable_gnu_unique_object = xyes; then
28297
28298$as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28299
28300fi
28301
28302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28303$as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28304if ${gcc_cv_as_line_zero+:} false; then :
28305  $as_echo_n "(cached) " >&6
28306else
28307  gcc_cv_as_line_zero=no
28308  if test $in_tree_gas = yes; then
28309    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28310  then gcc_cv_as_line_zero=yes
28311fi
28312  elif test "x$gcc_cv_as" != x; then
28313    { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28314    if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28315  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28316  (eval $ac_try) 2>&5
28317  ac_status=$?
28318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28319  test $ac_status = 0; }; } &&
28320       test "x`cat conftest.out`" = x
28321    then
28322      gcc_cv_as_line_zero=yes
28323    else
28324      echo "configure: failed program was" >&5
28325      cat conftest.s >&5
28326      echo "configure: error output was" >&5
28327      cat conftest.out >&5
28328    fi
28329    rm -f conftest.o conftest.s conftest.out
28330  fi
28331fi
28332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28333$as_echo "$gcc_cv_as_line_zero" >&6; }
28334if test "x$gcc_cv_as_line_zero" = xyes; then
28335
28336$as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28337
28338fi
28339
28340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28341$as_echo_n "checking support for thin archives... " >&6; }
28342thin_archive_support=no
28343echo 'int main (void) { return 0; }' > conftest.c
28344if ($AR --version | sed 1q | grep "GNU ar" \
28345    && $CC $CFLAGS -c conftest.c \
28346    && $AR rcT conftest.a conftest.o \
28347    && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28348  thin_archive_support=yes
28349fi
28350rm -f conftest.c conftest.o conftest.a conftest
28351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28352$as_echo "$thin_archive_support" >&6; }
28353
28354
28355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28356$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28357gcc_cv_ld_eh_frame_hdr=no
28358if test $in_tree_ld = yes ; then
28359  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 \
28360     && test $in_tree_ld_is_elf = yes; then
28361    gcc_cv_ld_eh_frame_hdr=yes
28362  fi
28363elif test x$gcc_cv_ld != x; then
28364  if echo "$ld_ver" | grep GNU > /dev/null; then
28365    # Check if linker supports --eh-frame-hdr option
28366    if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28367      gcc_cv_ld_eh_frame_hdr=yes
28368    fi
28369  else
28370    case "$target" in
28371      *-*-solaris2*)
28372        # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28373        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28374          gcc_cv_ld_eh_frame_hdr=yes
28375        fi
28376        ;;
28377    esac
28378  fi
28379fi
28380
28381if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28382
28383$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28384
28385fi
28386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28387$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28388
28389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28390$as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28391gcc_cv_ld_eh_frame_ciev3=no
28392if test $in_tree_ld = yes ; then
28393  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 \
28394     && test $in_tree_ld_is_elf = yes; then
28395    gcc_cv_ld_eh_frame_ciev3=yes
28396  fi
28397elif test x$gcc_cv_ld != x; then
28398  if echo "$ld_ver" | grep GNU > /dev/null; then
28399    gcc_cv_ld_eh_frame_ciev3=yes
28400    if test 0"$ld_date" -lt 20040513; then
28401      if test -n "$ld_date"; then
28402	# If there was date string, but was earlier than 2004-05-13, fail
28403	gcc_cv_ld_eh_frame_ciev3=no
28404      elif test "$ld_vers_major" -lt 2; then
28405	gcc_cv_ld_eh_frame_ciev3=no
28406      elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28407	gcc_cv_ld_eh_frame_ciev3=no
28408      fi
28409    fi
28410  else
28411    case "$target" in
28412      *-*-solaris2*)
28413        # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28414        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28415          gcc_cv_ld_eh_frame_ciev3=yes
28416        fi
28417        ;;
28418    esac
28419  fi
28420fi
28421
28422cat >>confdefs.h <<_ACEOF
28423#define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28424_ACEOF
28425
28426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28427$as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28428
28429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28430$as_echo_n "checking linker position independent executable support... " >&6; }
28431gcc_cv_ld_pie=no
28432if test $in_tree_ld = yes ; then
28433  case "$target" in
28434    # Full PIE support on Solaris was only introduced in gld 2.26.
28435    *-*-solaris2*)  gcc_gld_pie_min_version=26 ;;
28436    *) 		    gcc_gld_pie_min_version=15 ;;
28437  esac
28438  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 \
28439     && test $in_tree_ld_is_elf = yes; then
28440    gcc_cv_ld_pie=yes
28441  fi
28442elif test x$gcc_cv_ld != x; then
28443  # Check if linker supports -pie option
28444  if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28445    gcc_cv_ld_pie=yes
28446    case "$target" in
28447      *-*-solaris2*)
28448	if echo "$ld_ver" | grep GNU > /dev/null \
28449	  && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28450	  gcc_cv_ld_pie=no
28451	fi
28452	;;
28453    esac
28454  else
28455    case "$target" in
28456      *-*-solaris2.1[1-9]*)
28457	# Solaris 11.3 added PIE support.
28458	if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28459	  gcc_cv_ld_pie=yes
28460	fi
28461	;;
28462    esac
28463  fi
28464fi
28465if test x"$gcc_cv_ld_pie" = xyes; then
28466
28467$as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28468
28469fi
28470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28471$as_echo "$gcc_cv_ld_pie" >&6; }
28472
28473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28474$as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28475gcc_cv_ld_pie_copyreloc=no
28476if test $gcc_cv_ld_pie = yes ; then
28477  if test $in_tree_ld = yes ; then
28478    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
28479      gcc_cv_ld_pie_copyreloc=yes
28480    fi
28481  elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28482    # Check if linker supports -pie option with copy reloc
28483    case "$target" in
28484    i?86-*-linux* | x86_64-*-linux*)
28485      cat > conftest1.s <<EOF
28486	.globl	a_glob
28487	.data
28488	.type	a_glob, @object
28489	.size	a_glob, 4
28490a_glob:
28491	.long	2
28492EOF
28493      cat > conftest2.s <<EOF
28494	.text
28495	.globl	main
28496	.type	main, @function
28497main:
28498	movl	%eax, a_glob(%rip)
28499	.size	main, .-main
28500	.globl	ptr
28501	.section	.data.rel,"aw",@progbits
28502	.type	ptr, @object
28503ptr:
28504	.quad	a_glob
28505EOF
28506      if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28507         && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28508         && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28509         && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28510        gcc_cv_ld_pie_copyreloc=yes
28511      fi
28512      rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28513      ;;
28514    esac
28515  fi
28516fi
28517
28518cat >>confdefs.h <<_ACEOF
28519#define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28520_ACEOF
28521
28522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28523$as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28524
28525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28526$as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28527gcc_cv_ld_eh_gc_sections=no
28528if test $in_tree_ld = yes ; then
28529  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 \
28530     && test $in_tree_ld_is_elf = yes; then
28531    gcc_cv_ld_eh_gc_sections=yes
28532  fi
28533elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28534  cat > conftest.s <<EOF
28535	.section	.text
28536.globl _start
28537        .type _start, @function
28538_start:
28539	.long foo
28540	.size _start, .-_start
28541	.section	.text.foo,"ax",@progbits
28542	.type foo, @function
28543foo:
28544	.long 0
28545	.size foo, .-foo
28546	.section	.gcc_except_table.foo,"a",@progbits
28547.L0:
28548	.long 0
28549	.section	.eh_frame,"a",@progbits
28550	.long .L0
28551EOF
28552  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28553    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28554	 | grep "gc-sections option ignored" > /dev/null; then
28555      gcc_cv_ld_eh_gc_sections=no
28556    elif $gcc_cv_objdump -h conftest 2> /dev/null \
28557         | grep gcc_except_table > /dev/null; then
28558      gcc_cv_ld_eh_gc_sections=yes
28559      # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28560      if test x$gcc_cv_as_comdat_group != xyes; then
28561	gcc_cv_ld_eh_gc_sections=no
28562	cat > conftest.s <<EOF
28563	.section	.text
28564.globl _start
28565        .type _start, @function
28566_start:
28567	.long foo
28568	.size _start, .-_start
28569	.section	.gnu.linkonce.t.foo,"ax",@progbits
28570	.type foo, @function
28571foo:
28572	.long 0
28573	.size foo, .-foo
28574	.section	.gcc_except_table.foo,"a",@progbits
28575.L0:
28576	.long 0
28577	.section	.eh_frame,"a",@progbits
28578	.long .L0
28579EOF
28580	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28581	  if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28582	       | grep "gc-sections option ignored" > /dev/null; then
28583	    gcc_cv_ld_eh_gc_sections=no
28584	  elif $gcc_cv_objdump -h conftest 2> /dev/null \
28585	       | grep gcc_except_table > /dev/null; then
28586	    gcc_cv_ld_eh_gc_sections=yes
28587	  fi
28588	fi
28589      fi
28590    fi
28591  fi
28592  rm -f conftest.s conftest.o conftest
28593fi
28594case "$target" in
28595  hppa*-*-linux*)
28596    # ??? This apparently exposes a binutils bug with PC-relative relocations.
28597    gcc_cv_ld_eh_gc_sections=no
28598    ;;
28599esac
28600if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28601
28602$as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28603
28604fi
28605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28606$as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28607
28608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28609$as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28610gcc_cv_ld_eh_gc_sections_bug=no
28611if test $in_tree_ld = yes ; then
28612  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 \
28613     && test $in_tree_ld_is_elf = yes; then
28614    gcc_cv_ld_eh_gc_sections_bug=yes
28615  fi
28616elif 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
28617  gcc_cv_ld_eh_gc_sections_bug=yes
28618  cat > conftest.s <<EOF
28619	.section	.text
28620.globl _start
28621	.type _start, @function
28622_start:
28623	.long foo
28624	.size _start, .-_start
28625	.section	.text.startup.foo,"ax",@progbits
28626	.type foo, @function
28627foo:
28628	.long 0
28629	.size foo, .-foo
28630	.section	.gcc_except_table.foo,"a",@progbits
28631.L0:
28632	.long 0
28633	.section	.eh_frame,"a",@progbits
28634	.long .L0
28635EOF
28636  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28637    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28638	 | grep "gc-sections option ignored" > /dev/null; then
28639      :
28640    elif $gcc_cv_objdump -h conftest 2> /dev/null \
28641	 | grep gcc_except_table > /dev/null; then
28642      gcc_cv_ld_eh_gc_sections_bug=no
28643    fi
28644  fi
28645  rm -f conftest.s conftest.o conftest
28646fi
28647if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28648
28649$as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28650
28651fi
28652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28653$as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28654
28655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28656$as_echo_n "checking linker for compressed debug sections... " >&6; }
28657# gold/gld support compressed debug sections since binutils 2.19/2.21
28658# In binutils 2.26, gld gained support for the ELF gABI format.
28659if test $in_tree_ld = yes ; then
28660  gcc_cv_ld_compress_debug=0
28661  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 \
28662     && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28663    gcc_cv_ld_compress_debug=2
28664    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28665  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 \
28666     && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28667    gcc_cv_ld_compress_debug=3
28668    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28669  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 \
28670     && test $in_tree_ld_is_elf = yes; then
28671    gcc_cv_ld_compress_debug=1
28672  fi
28673elif echo "$ld_ver" | grep GNU > /dev/null; then
28674  if test "$ld_vers_major" -lt 2 \
28675     || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28676    gcc_cv_ld_compress_debug=0
28677  elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28678    gcc_cv_ld_compress_debug=1
28679  else
28680    gcc_cv_ld_compress_debug=3
28681    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28682  fi
28683  if test $ld_is_gold = yes; then
28684    gcc_cv_ld_compress_debug=2
28685    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28686  fi
28687else
28688  case "${target}" in
28689    *-*-solaris2*)
28690      # Introduced in Solaris 11.2.
28691      if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28692        gcc_cv_ld_compress_debug=3
28693        gcc_cv_ld_compress_debug_option="-z compress-sections"
28694      else
28695        gcc_cv_ld_compress_debug=0
28696      fi
28697      ;;
28698    *)
28699      # Assume linkers other than GNU ld don't support compessed debug
28700      # sections.
28701      gcc_cv_ld_compress_debug=0
28702      ;;
28703  esac
28704fi
28705
28706cat >>confdefs.h <<_ACEOF
28707#define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28708_ACEOF
28709
28710
28711cat >>confdefs.h <<_ACEOF
28712#define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28713_ACEOF
28714
28715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28716$as_echo "$gcc_cv_ld_compress_debug" >&6; }
28717
28718if test x"$ld64_flag" = x"yes"; then
28719
28720  # Set defaults for possibly untestable items.
28721  gcc_cv_ld64_export_dynamic=0
28722
28723  if test "$build" = "$host"; then
28724    darwin_try_test=1
28725  else
28726    darwin_try_test=0
28727  fi
28728
28729  # On Darwin, because of FAT library support, it is often possible to execute
28730  # exes from compatible archs even when the host differs from the build system.
28731  case "$build","$host" in
28732    x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28733	darwin_try_test=1;;
28734    *) ;;
28735  esac
28736
28737  # If the configurer specified a minimum ld64 version to be supported, then use
28738  # that to determine feature support.
28739  if test x"${gcc_cv_ld64_version}" != x; then
28740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28741$as_echo_n "checking ld64 specified version... " >&6; }
28742    gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28743    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28744$as_echo "$gcc_cv_ld64_major" >&6; }
28745   if test "$gcc_cv_ld64_major" -ge 236; then
28746      gcc_cv_ld64_export_dynamic=1
28747    fi
28748  elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28749    # If the version was not specified, try to find it.
28750    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28751$as_echo_n "checking linker version... " >&6; }
28752    if test x"${gcc_cv_ld64_version}" = x; then
28753      gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28754    fi
28755    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28756$as_echo "$gcc_cv_ld64_version" >&6; }
28757
28758    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28759$as_echo_n "checking linker for -export_dynamic support... " >&6; }
28760    gcc_cv_ld64_export_dynamic=1
28761    if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28762      gcc_cv_ld64_export_dynamic=0
28763    fi
28764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28765$as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28766  fi
28767
28768  if test x"${gcc_cv_ld64_version}" != x; then
28769
28770cat >>confdefs.h <<_ACEOF
28771#define LD64_VERSION "${gcc_cv_ld64_version}"
28772_ACEOF
28773
28774  fi
28775
28776
28777cat >>confdefs.h <<_ACEOF
28778#define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28779_ACEOF
28780
28781fi
28782
28783# --------
28784# UNSORTED
28785# --------
28786
28787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28788$as_echo_n "checking linker --as-needed support... " >&6; }
28789if ${gcc_cv_ld_as_needed+:} false; then :
28790  $as_echo_n "(cached) " >&6
28791else
28792  gcc_cv_ld_as_needed=no
28793gcc_cv_ld_as_needed_option='--as-needed'
28794gcc_cv_ld_no_as_needed_option='--no-as-needed'
28795if test $in_tree_ld = yes ; then
28796  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 \
28797     && test $in_tree_ld_is_elf = yes; then
28798    gcc_cv_ld_as_needed=yes
28799    if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28800      gcc_cv_ld_as_needed_option='--push-state --as-needed'
28801      gcc_cv_ld_no_as_needed_option='--pop-state'
28802    fi
28803  fi
28804elif test x$gcc_cv_ld != x; then
28805  # Check if linker supports --as-needed and --no-as-needed options
28806  if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28807    gcc_cv_ld_as_needed=yes
28808    if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28809       && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28810       && echo "$ld_ver" | grep GNU > /dev/null \
28811       && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28812      # Use these options only when both ld.bfd and ld.gold support
28813      # --push-state/--pop-state, which unfortunately wasn't added
28814      # at the same time.
28815      gcc_cv_ld_as_needed_option='--push-state --as-needed'
28816      gcc_cv_ld_no_as_needed_option='--pop-state'
28817    fi
28818  fi
28819  case "$target:$gnu_ld" in
28820    *-*-solaris2*:no)
28821      # Solaris 2 ld always supports -z ignore/-z record.  Prefer the native
28822      # forms.
28823      gcc_cv_ld_as_needed=yes
28824      gcc_cv_ld_as_needed_option="-z ignore"
28825      gcc_cv_ld_no_as_needed_option="-z record"
28826      ;;
28827  esac
28828fi
28829# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28830# dl_iterate_phdr, i.e. since Solaris 11.
28831case "$target" in
28832  *-*-solaris2.1[1-9]*)
28833    case "$target" in
28834    i?86-*-* | x86_64-*-*)
28835      if echo "$ld_ver" | grep GNU > /dev/null; then
28836        # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28837        gcc_cv_ld_as_needed=no
28838      fi
28839      ;;
28840    esac
28841    ;;
28842  *-*-solaris2*)
28843    gcc_cv_ld_as_needed=no
28844    ;;
28845esac
28846
28847fi
28848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28849$as_echo "$gcc_cv_ld_as_needed" >&6; }
28850if test x"$gcc_cv_ld_as_needed" = xyes; then
28851
28852$as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28853
28854
28855cat >>confdefs.h <<_ACEOF
28856#define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28857_ACEOF
28858
28859
28860cat >>confdefs.h <<_ACEOF
28861#define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28862_ACEOF
28863
28864fi
28865
28866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28867$as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28868saved_LDFLAGS="$LDFLAGS"
28869for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28870  LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28872/* end confdefs.h.  */
28873int main(void) {return 0;}
28874_ACEOF
28875if ac_fn_cxx_try_link "$LINENO"; then :
28876  gcc_cv_ld_clearcap=yes; break
28877else
28878  gcc_cv_ld_clearcap=no
28879fi
28880rm -f core conftest.err conftest.$ac_objext \
28881    conftest$ac_exeext conftest.$ac_ext
28882done
28883LDFLAGS="$saved_LDFLAGS"
28884if test "x$gcc_cv_ld_clearcap" = xyes; then
28885
28886$as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28887
28888  ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28889
28890fi
28891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28892$as_echo "$gcc_cv_ld_clearcap" >&6; }
28893
28894case "$target" in
28895  powerpc*-*-*)
28896    case "$target" in
28897      *le-*-linux*)
28898	emul_name="-melf32lppc"
28899	;;
28900      *)
28901	emul_name="-melf32ppc"
28902	;;
28903    esac
28904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28905$as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28906if ${gcc_cv_ld_ppc_attr+:} false; then :
28907  $as_echo_n "(cached) " >&6
28908else
28909  gcc_cv_ld_ppc_attr=no
28910    if test x"$ld_is_gold" = xyes; then
28911      gcc_cv_ld_ppc_attr=yes
28912    elif test $in_tree_ld = yes ; then
28913      if test "$gcc_cv_gld_major_version" -eq 2 \
28914		-a "$gcc_cv_gld_minor_version" -ge 28 \
28915		-o "$gcc_cv_gld_major_version" -gt 2; then
28916        gcc_cv_ld_ppc_attr=yes
28917      fi
28918    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28919      # check that merging the long double .gnu_attribute doesn't warn
28920      cat > conftest1.s <<EOF
28921	.gnu_attribute 4,1
28922EOF
28923      cat > conftest2.s <<EOF
28924	.gnu_attribute 4,9
28925EOF
28926      if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28927         && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28928         && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28929	 && test ! -s conftest.err; then
28930        gcc_cv_ld_ppc_attr=yes
28931      fi
28932      rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28933    fi
28934
28935fi
28936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28937$as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28938    if test x$gcc_cv_ld_ppc_attr = xyes; then
28939
28940$as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28941
28942    fi
28943    ;;
28944esac
28945
28946case "$target:$tm_file" in
28947  powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28948  case "$target" in
28949     *le-*-linux*)
28950     emul_name="-melf64lppc"
28951      ;;
28952     *-*-linux*)
28953     emul_name="-melf64ppc"
28954      ;;
28955     *le-*-freebsd*)
28956     emul_name="-melf64lppc_fbsd"
28957      ;;
28958     *-*-freebsd*)
28959     emul_name="-melf64ppc_fbsd"
28960      ;;
28961  esac
28962    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28963$as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28964if ${gcc_cv_ld_no_dot_syms+:} false; then :
28965  $as_echo_n "(cached) " >&6
28966else
28967  gcc_cv_ld_no_dot_syms=no
28968    if test x"$ld_is_gold" = xyes; then
28969      gcc_cv_ld_no_dot_syms=yes
28970    elif test $in_tree_ld = yes ; then
28971      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
28972        gcc_cv_ld_no_dot_syms=yes
28973      fi
28974    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28975      cat > conftest1.s <<EOF
28976	.text
28977	bl .foo
28978EOF
28979      cat > conftest2.s <<EOF
28980	.section ".opd","aw"
28981	.align 3
28982	.globl foo
28983	.type foo,@function
28984foo:
28985	.quad .LEfoo,.TOC.@tocbase,0
28986	.text
28987.LEfoo:
28988	blr
28989	.size foo,.-.LEfoo
28990EOF
28991      if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28992         && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28993         && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28994        gcc_cv_ld_no_dot_syms=yes
28995      fi
28996      rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28997    fi
28998
28999fi
29000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29001$as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29002    if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29003
29004$as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29005
29006    fi
29007
29008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29009$as_echo_n "checking linker large toc support... " >&6; }
29010if ${gcc_cv_ld_large_toc+:} false; then :
29011  $as_echo_n "(cached) " >&6
29012else
29013  gcc_cv_ld_large_toc=no
29014    if test x"$ld_is_gold" = xyes; then
29015      gcc_cv_ld_large_toc=yes
29016    elif test $in_tree_ld = yes ; then
29017      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
29018        gcc_cv_ld_large_toc=yes
29019      fi
29020    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29021      cat > conftest.s <<EOF
29022	.section ".tbss","awT",@nobits
29023	.align 3
29024ie0:	.space 8
29025	.global _start
29026	.text
29027_start:
29028	addis 9,13,ie0@got@tprel@ha
29029	ld 9,ie0@got@tprel@l(9)
29030EOF
29031      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29032         && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29033        gcc_cv_ld_large_toc=yes
29034      fi
29035      rm -f conftest conftest.o conftest.s
29036    fi
29037
29038fi
29039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29040$as_echo "$gcc_cv_ld_large_toc" >&6; }
29041    if test x"$gcc_cv_ld_large_toc" = xyes; then
29042
29043$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29044
29045    fi
29046
29047    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29048$as_echo_n "checking linker toc pointer alignment... " >&6; }
29049if ${gcc_cv_ld_toc_align+:} false; then :
29050  $as_echo_n "(cached) " >&6
29051else
29052  if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29053      cat > conftest.s <<EOF
29054	.global _start
29055	.text
29056_start:
29057	addis 9,2,x@got@ha
29058	.section .data.rel.ro,"aw",@progbits
29059	.p2align 16
29060	.space 32768
29061x:	.quad .TOC.
29062EOF
29063      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29064         && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29065        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)) }'`
29066      fi
29067      rm -f conftest conftest.o conftest.s
29068    fi
29069
29070fi
29071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29072$as_echo "$gcc_cv_ld_toc_align" >&6; }
29073    if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29074
29075cat >>confdefs.h <<_ACEOF
29076#define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29077_ACEOF
29078
29079    fi
29080    ;;
29081esac
29082
29083case "$target" in
29084  *-*-aix*)
29085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29086$as_echo_n "checking linker large toc support... " >&6; }
29087if ${gcc_cv_ld_large_toc+:} false; then :
29088  $as_echo_n "(cached) " >&6
29089else
29090  gcc_cv_ld_large_toc=no
29091    if test x$gcc_cv_as != x ; then
29092      cat > conftest.s <<EOF
29093	.toc
29094LC..1:
29095	.tc a[TC],a[RW]
29096	.extern a[RW]
29097	.csect .text[PR]
29098.largetoctest:
29099	addis 9,LC..1@u(2)
29100	ld 3,LC..1@l(9)
29101EOF
29102      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29103        gcc_cv_ld_large_toc=yes
29104      fi
29105      rm -f conftest conftest.o conftest.s
29106    fi
29107
29108fi
29109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29110$as_echo "$gcc_cv_ld_large_toc" >&6; }
29111    if test x"$gcc_cv_ld_large_toc" = xyes; then
29112
29113$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29114
29115    fi
29116    ;;
29117esac
29118
29119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29120$as_echo_n "checking linker --build-id support... " >&6; }
29121if ${gcc_cv_ld_buildid+:} false; then :
29122  $as_echo_n "(cached) " >&6
29123else
29124  gcc_cv_ld_buildid=no
29125  if test $in_tree_ld = yes ; then
29126    if test "$gcc_cv_gld_major_version" -eq 2 -a \
29127       "$gcc_cv_gld_minor_version" -ge 18 -o \
29128       "$gcc_cv_gld_major_version" -gt 2 \
29129       && test $in_tree_ld_is_elf = yes; then
29130      gcc_cv_ld_buildid=yes
29131    fi
29132  elif test x$gcc_cv_ld != x; then
29133    if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29134      gcc_cv_ld_buildid=yes
29135    fi
29136  fi
29137fi
29138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29139$as_echo "$gcc_cv_ld_buildid" >&6; }
29140if test x"$gcc_cv_ld_buildid" = xyes; then
29141
29142$as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29143
29144fi
29145
29146# Check whether --enable-linker-build-id was given.
29147if test "${enable_linker_build_id+set}" = set; then :
29148  enableval=$enable_linker_build_id;
29149else
29150  enable_linker_build_id=no
29151fi
29152
29153
29154if test x"$enable_linker_build_id" = xyes; then
29155  if test x"$gcc_cv_ld_buildid" = xyes; then
29156
29157$as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29158
29159  else
29160    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29161$as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29162  fi
29163fi
29164
29165# In binutils 2.21, GNU ld gained support for new emulations fully
29166# supporting the Solaris 2 ABI.  Detect their presence in the linker used.
29167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29168$as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29169if ${gcc_cv_ld_sol2_emulation+:} false; then :
29170  $as_echo_n "(cached) " >&6
29171else
29172  gcc_cv_ld_sol2_emulation=no
29173  if test $in_tree_ld = yes ; then
29174    if test "$gcc_cv_gld_major_version" -eq 2 -a \
29175       "$gcc_cv_gld_minor_version" -ge 21 -o \
29176       "$gcc_cv_gld_major_version" -gt 2 \
29177       && test $in_tree_ld_is_elf = yes; then
29178      gcc_cv_ld_sol2_emulation=yes
29179    fi
29180  elif test x$gcc_cv_ld != x; then
29181    if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29182       grep _sol2 > /dev/null; then
29183      gcc_cv_ld_sol2_emulation=yes
29184    fi
29185  fi
29186fi
29187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29188$as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29189if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29190
29191$as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29192
29193fi
29194
29195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29196$as_echo_n "checking linker --sysroot support... " >&6; }
29197if ${gcc_cv_ld_sysroot+:} false; then :
29198  $as_echo_n "(cached) " >&6
29199else
29200  gcc_cv_ld_sysroot=no
29201  if test $in_tree_ld = yes ; then
29202      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
29203        gcc_cv_ld_sysroot=yes
29204      fi
29205  elif test x$gcc_cv_ld != x; then
29206    if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29207      gcc_cv_ld_sysroot=yes
29208    fi
29209  fi
29210fi
29211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29212$as_echo "$gcc_cv_ld_sysroot" >&6; }
29213if test x"$gcc_cv_ld_sysroot" = xyes; then
29214
29215$as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29216
29217fi
29218
29219case $target in
29220*-*-solaris2*)
29221  # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29223$as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29224if ${gcc_cv_solaris_crts+:} false; then :
29225  $as_echo_n "(cached) " >&6
29226else
29227  gcc_cv_solaris_crts=no
29228     if test x$host != x$target; then
29229       if test "x$with_sysroot" = xyes; then
29230         target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29231       else
29232         target_sysroot="${with_sysroot}"
29233       fi
29234     fi
29235     target_libdir="$target_sysroot/usr/lib"
29236     # At the time they were added, gcrt1.o became a symlink for backwards
29237     # compatibility on x86, while crt1.o was added on sparc, so check for that.
29238     case $target in
29239       i?86-*-solaris2* | x86_64-*-solaris2*)
29240         if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29241	 ;;
29242       sparc*-*-solaris2*)
29243         if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29244	 ;;
29245     esac
29246fi
29247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29248$as_echo "$gcc_cv_solaris_crts" >&6; }
29249  ;;
29250esac
29251if test x$gcc_cv_solaris_crts = xyes; then
29252
29253$as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29254
29255fi
29256
29257# Check whether --enable-libssp was given.
29258if test "${enable_libssp+set}" = set; then :
29259  enableval=$enable_libssp; case "${enableval}" in
29260  yes|no)
29261    ;;
29262  *)
29263    as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29264    ;;
29265esac
29266fi
29267
29268
29269# Test for stack protector support in target C library.
29270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29271$as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29272if ${gcc_cv_libc_provides_ssp+:} false; then :
29273  $as_echo_n "(cached) " >&6
29274else
29275  gcc_cv_libc_provides_ssp=no
29276  if test "x$enable_libssp" = "xno"; then
29277    gcc_cv_libc_provides_ssp=yes
29278  elif test "x$enable_libssp" = "xyes"; then
29279    gcc_cv_libc_provides_ssp=no
29280  else
29281    case "$target" in
29282       *-*-musl*)
29283	 # All versions of musl provide stack protector
29284	 gcc_cv_libc_provides_ssp=yes;;
29285       *-*-linux* | *-*-kfreebsd*-gnu)
29286      # glibc 2.4 and later provides __stack_chk_fail and
29287      # either __stack_chk_guard, or TLS access to stack guard canary.
29288
29289if test $glibc_version_major -gt 2 \
29290  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29291  gcc_cv_libc_provides_ssp=yes
29292else
29293
29294      if test -f $target_header_dir/features.h \
29295	 && $EGREP '^[ 	]*#[ 	]*define[ 	]+__GNU_LIBRARY__[ 	]+([1-9][0-9]|[6-9])' \
29296	    $target_header_dir/features.h > /dev/null; then
29297	if $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC__[ 	]+1' \
29298	     $target_header_dir/features.h > /dev/null && \
29299	     test -f $target_header_dir/bits/uClibc_config.h && \
29300	     $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC_HAS_SSP__[ 	]+1' \
29301	     $target_header_dir/bits/uClibc_config.h > /dev/null; then
29302	  gcc_cv_libc_provides_ssp=yes
29303	fi
29304      # all versions of Bionic support stack protector
29305      elif test -f $target_header_dir/sys/cdefs.h \
29306        && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
29307           $target_header_dir/sys/cdefs.h > /dev/null; then
29308         gcc_cv_libc_provides_ssp=yes
29309      fi
29310fi
29311	;;
29312       *-*-gnu*)
29313	 # Avoid complicated tests (see
29314	 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29315	 # simply assert that glibc does provide this, which is true for all
29316	 # realistically usable GNU/Hurd configurations.
29317	 # All supported versions of musl provide it as well
29318	 gcc_cv_libc_provides_ssp=yes;;
29319       *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd*)
29320	 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29321if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29322  gcc_cv_libc_provides_ssp=yes
29323else
29324  echo "no __stack_chk_fail on this target"
29325fi
29326
29327        ;;
29328       *) gcc_cv_libc_provides_ssp=no ;;
29329    esac
29330  fi
29331fi
29332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29333$as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29334
29335if test x$gcc_cv_libc_provides_ssp = xyes; then
29336
29337$as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29338
29339fi
29340
29341# Check whether --enable-default-ssp was given.
29342# Check whether --enable-default-ssp was given.
29343if test "${enable_default_ssp+set}" = set; then :
29344  enableval=$enable_default_ssp;
29345if test x$gcc_cv_libc_provides_ssp = xyes; then
29346  case "$target" in
29347    ia64*-*-*) enable_default_ssp=no ;;
29348    *) enable_default_ssp=$enableval ;;
29349  esac
29350else
29351  enable_default_ssp=no
29352fi
29353else
29354  enable_default_ssp=no
29355fi
29356
29357if test x$enable_default_ssp = xyes ; then
29358
29359$as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29360
29361fi
29362
29363
29364# Test for <sys/sdt.h> on the target.
29365
29366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29367$as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29368have_sys_sdt_h=no
29369if test -f $target_header_dir/sys/sdt.h; then
29370  have_sys_sdt_h=yes
29371
29372$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29373
29374fi
29375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29376$as_echo "$have_sys_sdt_h" >&6; }
29377
29378# Check if TFmode long double should be used by default or not.
29379# Some glibc targets used DFmode long double, but with glibc 2.4
29380# and later they can use TFmode.
29381case "$target" in
29382  powerpc*-*-linux* | \
29383  sparc*-*-linux* | \
29384  s390*-*-linux* | \
29385  alpha*-*-linux*)
29386
29387# Check whether --with-long-double-128 was given.
29388if test "${with_long_double_128+set}" = set; then :
29389  withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29390else
29391
29392if test $glibc_version_major -gt 2 \
29393  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29394  gcc_cv_target_ldbl128=yes
29395else
29396
29397      gcc_cv_target_ldbl128=no
29398      grep '^[ 	]*#[ 	]*define[ 	][ 	]*__LONG_DOUBLE_MATH_OPTIONAL' \
29399        $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29400      && gcc_cv_target_ldbl128=yes
29401
29402fi
29403fi
29404
29405    ;;
29406esac
29407if test x$gcc_cv_target_ldbl128 = xyes; then
29408
29409$as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29410
29411fi
29412
29413# Check if TFmode long double target should use the IBM extended double or IEEE
29414# 128-bit floating point formats if long doubles are 128-bits long.  The long
29415# double type can only be switched on powerpc64 bit Linux systems where VSX is
29416# supported.  Other PowerPC systems do not build the IEEE 128-bit emulator in
29417# libgcc.
29418
29419# Check whether --with-long-double-format was given.
29420if test "${with_long_double_format+set}" = set; then :
29421  withval=$with_long_double_format;
29422case "$target:$with_long_double_format" in
29423  powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29424    :
29425    ;;
29426  powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29427    # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29428    case "$with_cpu" in
29429      power7 | power8 | power9 | power1*)
29430	:
29431	;;
29432      *)
29433	as_fn_error $? "Configuration option --with-long-double-format is only \
29434supported if the default cpu is power7 or newer" "$LINENO" 5
29435	with_long_double_format=""
29436	;;
29437      esac
29438      ;;
29439  xpowerpc64*-*-linux*:*)
29440    as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29441    with_long_double_format=""
29442    ;;
29443  *)
29444    as_fn_error $? "Configure option --with-long-double-format is only supported \
29445on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29446    with_long_double_format=""
29447    ;;
29448esac
29449fi
29450
29451
29452# Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29453# values in the TCB.  Currently, only GLIBC 2.23 and later support this.
29454gcc_cv_libc_provides_hwcap_in_tcb=no
29455case "$target" in
29456  powerpc*-*-linux*)
29457
29458if test $glibc_version_major -gt 2 \
29459  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29460  gcc_cv_libc_provides_hwcap_in_tcb=yes
29461fi
29462    ;;
29463esac
29464if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29465
29466$as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29467
29468fi
29469
29470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29471$as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29472gcc_cv_target_dl_iterate_phdr=unknown
29473case "$target" in
29474  # Restrict to Solaris 11+.  While most of the Solaris 11 linker changes
29475  # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29476  # libdl there, both complicating its use and breaking compatibility
29477  # between Solaris 10 updates.
29478  *-*-solaris2.1[1-9]*)
29479    # <link.h> needs both a dl_iterate_phdr declaration and support for
29480    # compilation with largefile support.
29481    if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29482      && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29483      gcc_cv_target_dl_iterate_phdr=yes
29484    else
29485      gcc_cv_target_dl_iterate_phdr=no
29486    fi
29487    ;;
29488  *-*-dragonfly* | *-*-freebsd*)
29489    if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29490      gcc_cv_target_dl_iterate_phdr=yes
29491    else
29492      gcc_cv_target_dl_iterate_phdr=no
29493    fi
29494    ;;
29495  *-linux-musl*)
29496    gcc_cv_target_dl_iterate_phdr=yes
29497    ;;
29498esac
29499
29500if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29501
29502$as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29503
29504fi
29505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29506$as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29507
29508# We no longer support different GC mechanisms.  Emit an error if
29509# the user configures with --with-gc.
29510
29511# Check whether --with-gc was given.
29512if test "${with_gc+set}" = set; then :
29513  withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29514fi
29515
29516
29517# Libraries to use on the host.  This will normally be set by the top
29518# level Makefile.  Here we simply capture the value for our Makefile.
29519if test -z "${HOST_LIBS+set}"; then
29520  HOST_LIBS=
29521fi
29522
29523
29524# Use the system's zlib library.
29525
29526  # Use the system's zlib library.
29527  zlibdir="-L\$(top_builddir)/../zlib"
29528  zlibinc="-I\$(top_srcdir)/../zlib"
29529
29530# Check whether --with-system-zlib was given.
29531if test "${with_system_zlib+set}" = set; then :
29532  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29533    zlibdir=
29534    zlibinc=
29535  fi
29536
29537fi
29538
29539
29540
29541
29542
29543
29544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29545$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29546    # Check whether --enable-maintainer-mode was given.
29547if test "${enable_maintainer_mode+set}" = set; then :
29548  enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29549else
29550  maintainer_mode=no
29551fi
29552
29553
29554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29555$as_echo "$maintainer_mode" >&6; }
29556
29557if test "$maintainer_mode" = "yes"; then
29558  MAINT=''
29559else
29560  MAINT='#'
29561fi
29562
29563
29564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29565$as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29566  # Check whether --enable-link-mutex was given.
29567if test "${enable_link_mutex+set}" = set; then :
29568  enableval=$enable_link_mutex; do_link_mutex=$enableval
29569else
29570  do_link_mutex=no
29571fi
29572
29573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29574$as_echo "$do_link_mutex" >&6; }
29575
29576if test "$do_link_mutex" = "yes"; then
29577   DO_LINK_MUTEX=true
29578else
29579   DO_LINK_MUTEX=false
29580fi
29581
29582
29583# --------------
29584# Language hooks
29585# --------------
29586
29587# Make empty files to contain the specs and options for each language.
29588# Then add #include lines to for a compiler that has specs and/or options.
29589
29590subdirs=
29591lang_opt_files=
29592lang_specs_files=
29593lang_tree_files=
29594# These (without "all_") are set in each config-lang.in.
29595# `language' must be a single word so is spelled singularly.
29596all_languages=
29597all_compilers=
29598all_outputs='Makefile'
29599# List of language configure and makefile fragments.
29600all_lang_configurefrags=
29601all_lang_makefrags=
29602# Additional files for gengtype
29603all_gtfiles="$target_gtfiles"
29604
29605# These are the languages that are set in --enable-languages,
29606# and are available in the GCC tree.
29607all_selected_languages=
29608
29609# Add the language fragments.
29610# Languages are added via two mechanisms.  Some information must be
29611# recorded in makefile variables, these are defined in config-lang.in.
29612# We accumulate them and plug them into the main Makefile.
29613# The other mechanism is a set of hooks for each of the main targets
29614# like `clean', `install', etc.
29615
29616language_hooks="Make-hooks"
29617
29618for lang in ${srcdir}/*/config-lang.in
29619do
29620	test "$lang" = "${srcdir}/*/config-lang.in" && continue
29621
29622        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
29623        if test "x$lang_alias" = x
29624        then
29625              echo "$lang doesn't set \$language." 1>&2
29626              exit 1
29627        fi
29628        subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29629        subdirs="$subdirs $subdir"
29630
29631	# $gcc_subdir is where the gcc integration files are to be found
29632	# for a language, both for internal compiler purposes (compiler
29633	# sources implementing front-end to GCC tree converters), and for
29634	# build infrastructure purposes (Make-lang.in, etc.)
29635	#
29636	# This will be <subdir> (relative to $srcdir) if a line like
29637	# gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29638	# is found in <langdir>/config-lang.in, and will remain <langdir>
29639	# otherwise.
29640	#
29641	# Except for the language alias (fetched above), the regular
29642	# "config-lang.in" contents are always retrieved from $gcc_subdir,
29643	# so a <langdir>/config-lang.in setting gcc_subdir typically sets
29644	# only this and the language alias.
29645
29646        gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
29647        if [ "$gcc_subdir" = "" ]; then
29648           gcc_subdir="$subdir"
29649        fi
29650
29651        case ",$enable_languages," in
29652        *,$lang_alias,*)
29653            all_selected_languages="$all_selected_languages $lang_alias"
29654            if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29655                lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29656	    fi
29657	    ;;
29658        esac
29659
29660	language=
29661	boot_language=
29662	compilers=
29663	outputs=
29664	gtfiles=
29665	subdir_requires=
29666	. ${srcdir}/$gcc_subdir/config-lang.in
29667	if test "x$language" = x
29668	then
29669		echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29670		exit 1
29671	fi
29672
29673	ok=:
29674        case ",$enable_languages," in
29675        	*,$lang_alias,*) ;;
29676		*)
29677			for i in $subdir_requires; do
29678				test -f "${srcdir}/$i/config-lang.in" && continue
29679				ok=false
29680				break
29681			done
29682		;;
29683	esac
29684	$ok || continue
29685
29686	all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
29687	all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29688	if test -f $srcdir/$gcc_subdir/lang.opt; then
29689	    lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29690	    all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29691	fi
29692	if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29693	    lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29694	fi
29695	all_languages="$all_languages $language"
29696	all_compilers="$all_compilers $compilers"
29697	all_outputs="$all_outputs $outputs"
29698	all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29699        case ",$enable_languages," in
29700        	*,lto,*)
29701
29702$as_echo "#define ENABLE_LTO 1" >>confdefs.h
29703
29704		    enable_lto=yes
29705
29706		    ;;
29707		*) ;;
29708	esac
29709done
29710
29711check_languages=
29712for language in $all_selected_languages
29713do
29714	check_languages="$check_languages check-$language"
29715done
29716
29717selftest_languages=
29718for language in $all_selected_languages
29719do
29720	selftest_languages="$selftest_languages selftest-$language"
29721done
29722
29723# We link each language in with a set of hooks, reached indirectly via
29724# lang.${target}.  Only do so for selected languages.
29725
29726rm -f Make-hooks
29727touch Make-hooks
29728target_list="all.cross start.encap rest.encap tags \
29729	install-common install-man install-info install-pdf install-html dvi \
29730	pdf html uninstall info man srcextra srcman srcinfo \
29731	mostlyclean clean distclean maintainer-clean install-plugin"
29732
29733for t in $target_list
29734do
29735	x=
29736	for lang in $all_selected_languages
29737	do
29738		x="$x $lang.$t"
29739	done
29740	echo "lang.$t: $x" >> Make-hooks
29741done
29742
29743# --------
29744# Option include files
29745# --------
29746
29747${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29748option_includes="option-includes.mk"
29749
29750
29751# --------
29752# UNSORTED
29753# --------
29754
29755# Create .gdbinit.
29756
29757echo "dir ." > .gdbinit
29758echo "dir ${srcdir}" >> .gdbinit
29759if test x$gdb_needs_out_file_path = xyes
29760then
29761	echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29762fi
29763if test "x$subdirs" != x; then
29764	for s in $subdirs
29765	do
29766		echo "dir ${srcdir}/$s" >> .gdbinit
29767	done
29768fi
29769echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29770echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29771
29772# Put a breakpoint on __asan_report_error to help with debugging buffer
29773# overflow.
29774case "$CFLAGS" in
29775*-fsanitize=address*)
29776  echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29777  ;;
29778esac
29779
29780gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29781
29782
29783
29784# Find a directory in which to install a shared libgcc.
29785
29786# Check whether --enable-version-specific-runtime-libs was given.
29787if test "${enable_version_specific_runtime_libs+set}" = set; then :
29788  enableval=$enable_version_specific_runtime_libs;
29789fi
29790
29791
29792# Substitute configuration variables
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860# Echo link setup.
29861if test x${build} = x${host} ; then
29862  if test x${host} = x${target} ; then
29863    echo "Links are now set up to build a native compiler for ${target}." 1>&2
29864  else
29865    echo "Links are now set up to build a cross-compiler" 1>&2
29866    echo " from ${host} to ${target}." 1>&2
29867  fi
29868else
29869  if test x${host} = x${target} ; then
29870    echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29871    echo " for ${target}." 1>&2
29872  else
29873    echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29874    echo " from ${host} to ${target}." 1>&2
29875  fi
29876fi
29877
29878
29879
29880
29881
29882
29883if test "x${ISLLIBS}" != "x" ; then
29884
29885$as_echo "#define HAVE_isl 1" >>confdefs.h
29886
29887fi
29888
29889# Check for plugin support
29890   # Check whether --enable-plugin was given.
29891if test "${enable_plugin+set}" = set; then :
29892  enableval=$enable_plugin; enable_plugin=$enableval
29893else
29894  enable_plugin=yes; default_plugin=yes
29895fi
29896
29897
29898   pluginlibs=
29899   plugin_check=yes
29900
29901   case "${host}" in
29902     *-*-mingw*)
29903       # Since plugin support under MinGW is not as straightforward as on
29904       # other platforms (e.g., we have to link import library, etc), we
29905       # only enable it if explicitly requested.
29906       if test x"$default_plugin" = x"yes"; then
29907         enable_plugin=no
29908       elif test x"$enable_plugin" = x"yes"; then
29909         # Use make's target variable to derive import library name.
29910         pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29911	 plugin_check=no
29912       fi
29913     ;;
29914     *-*-darwin*)
29915       if test x$build = x$host; then
29916	 export_sym_check="nm${exeext} -g"
29917       elif test x$host = x$target; then
29918	 export_sym_check="$gcc_cv_nm -g"
29919       else
29920	 export_sym_check=
29921       fi
29922     ;;
29923     *)
29924       if test x$build = x$host; then
29925	 export_sym_check="objdump${exeext} -T"
29926       elif test x$host = x$target; then
29927	 export_sym_check="$gcc_cv_objdump -T"
29928       else
29929	 export_sym_check=
29930       fi
29931     ;;
29932   esac
29933
29934   if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29935
29936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29937$as_echo_n "checking for exported symbols... " >&6; }
29938     if test "x$export_sym_check" != x; then
29939       echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29940       ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29941       if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29942	 : # No need to use a flag
29943	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29944$as_echo "yes" >&6; }
29945       else
29946	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29947$as_echo "yes" >&6; }
29948	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29949$as_echo_n "checking for -rdynamic... " >&6; }
29950	 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29951	 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29952	   plugin_rdynamic=yes
29953	   pluginlibs="-rdynamic"
29954	 else
29955	   plugin_rdynamic=no
29956	   enable_plugin=no
29957	 fi
29958	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29959$as_echo "$plugin_rdynamic" >&6; }
29960       fi
29961     else
29962       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29963$as_echo "unable to check" >&6; }
29964     fi
29965
29966     # Check -ldl
29967     saved_LIBS="$LIBS"
29968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29969$as_echo_n "checking for library containing dlopen... " >&6; }
29970if ${ac_cv_search_dlopen+:} false; then :
29971  $as_echo_n "(cached) " >&6
29972else
29973  ac_func_search_save_LIBS=$LIBS
29974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29975/* end confdefs.h.  */
29976
29977/* Override any GCC internal prototype to avoid an error.
29978   Use char because int might match the return type of a GCC
29979   builtin and then its argument prototype would still apply.  */
29980#ifdef __cplusplus
29981extern "C"
29982#endif
29983char dlopen ();
29984int
29985main ()
29986{
29987return dlopen ();
29988  ;
29989  return 0;
29990}
29991_ACEOF
29992for ac_lib in '' dl; do
29993  if test -z "$ac_lib"; then
29994    ac_res="none required"
29995  else
29996    ac_res=-l$ac_lib
29997    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29998  fi
29999  if ac_fn_cxx_try_link "$LINENO"; then :
30000  ac_cv_search_dlopen=$ac_res
30001fi
30002rm -f core conftest.err conftest.$ac_objext \
30003    conftest$ac_exeext
30004  if ${ac_cv_search_dlopen+:} false; then :
30005  break
30006fi
30007done
30008if ${ac_cv_search_dlopen+:} false; then :
30009
30010else
30011  ac_cv_search_dlopen=no
30012fi
30013rm conftest.$ac_ext
30014LIBS=$ac_func_search_save_LIBS
30015fi
30016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30017$as_echo "$ac_cv_search_dlopen" >&6; }
30018ac_res=$ac_cv_search_dlopen
30019if test "$ac_res" != no; then :
30020  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30021
30022fi
30023
30024     if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30025       pluginlibs="$pluginlibs -ldl"
30026     fi
30027     LIBS="$saved_LIBS"
30028
30029     # Check that we can build shared objects with -fPIC -shared
30030     saved_LDFLAGS="$LDFLAGS"
30031     saved_CFLAGS="$CFLAGS"
30032     case "${host}" in
30033       *-*-darwin*)
30034	 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30035	 CFLAGS="$CFLAGS -fPIC"
30036	 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30037       ;;
30038       *)
30039	 CFLAGS="$CFLAGS -fPIC"
30040	 LDFLAGS="$LDFLAGS -fPIC -shared"
30041       ;;
30042     esac
30043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30044$as_echo_n "checking for -fPIC -shared... " >&6; }
30045     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30046/* end confdefs.h.  */
30047extern int X;
30048int
30049main ()
30050{
30051return X == 0;
30052  ;
30053  return 0;
30054}
30055_ACEOF
30056if ac_fn_cxx_try_link "$LINENO"; then :
30057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30058$as_echo "yes" >&6; }; have_pic_shared=yes
30059else
30060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30061$as_echo "no" >&6; }; have_pic_shared=no
30062fi
30063rm -f core conftest.err conftest.$ac_objext \
30064    conftest$ac_exeext conftest.$ac_ext
30065     if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30066       pluginlibs=
30067       enable_plugin=no
30068     fi
30069     LDFLAGS="$saved_LDFLAGS"
30070     CFLAGS="$saved_CFLAGS"
30071
30072     # If plugin support had been requested but not available, fail.
30073     if test x"$enable_plugin" = x"no" ; then
30074       if test x"$default_plugin" != x"yes"; then
30075	 as_fn_error $? "
30076   Building GCC with plugin support requires a host that supports
30077   -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30078       fi
30079     fi
30080   fi
30081
30082
30083
30084if test x"$enable_plugin" = x"yes"; then
30085
30086$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30087
30088fi
30089
30090
30091# Enable --enable-host-shared
30092# Check whether --enable-host-shared was given.
30093if test "${enable_host_shared+set}" = set; then :
30094  enableval=$enable_host_shared; PICFLAG=-fPIC
30095else
30096  PICFLAG=
30097fi
30098
30099
30100
30101
30102
30103# Check whether --enable-libquadmath-support was given.
30104if test "${enable_libquadmath_support+set}" = set; then :
30105  enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30106else
30107  ENABLE_LIBQUADMATH_SUPPORT=yes
30108fi
30109
30110if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30111
30112$as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30113
30114fi
30115
30116
30117# Specify what hash style to use by default.
30118
30119# Check whether --with-linker-hash-style was given.
30120if test "${with_linker_hash_style+set}" = set; then :
30121  withval=$with_linker_hash_style; case x"$withval" in
30122   xsysv)
30123     LINKER_HASH_STYLE=sysv
30124     ;;
30125   xgnu)
30126     LINKER_HASH_STYLE=gnu
30127     ;;
30128   xboth)
30129     LINKER_HASH_STYLE=both
30130     ;;
30131   *)
30132     as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30133     ;;
30134 esac
30135else
30136  LINKER_HASH_STYLE=''
30137fi
30138
30139if test x"${LINKER_HASH_STYLE}" != x; then
30140
30141cat >>confdefs.h <<_ACEOF
30142#define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30143_ACEOF
30144
30145fi
30146
30147# Specify what should be the default of -fdiagnostics-color option.
30148
30149# Check whether --with-diagnostics-color was given.
30150if test "${with_diagnostics_color+set}" = set; then :
30151  withval=$with_diagnostics_color; case x"$withval" in
30152   xnever)
30153     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30154     ;;
30155   xauto)
30156     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30157     ;;
30158   xauto-if-env)
30159     DIAGNOSTICS_COLOR_DEFAULT=-1
30160     ;;
30161   xalways)
30162     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30163     ;;
30164   *)
30165     as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30166     ;;
30167 esac
30168else
30169  DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30170fi
30171
30172
30173cat >>confdefs.h <<_ACEOF
30174#define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30175_ACEOF
30176
30177
30178# Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30179# of jit/jit-playback.c.
30180gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30181echo "gcc_driver_version: ${gcc_driver_version}"
30182cat > gcc-driver-name.h <<EOF
30183#define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30184EOF
30185
30186# Check whether --enable-default-pie was given.
30187# Check whether --enable-default-pie was given.
30188if test "${enable_default_pie+set}" = set; then :
30189  enableval=$enable_default_pie; enable_default_pie=$enableval
30190else
30191  enable_default_pie=no
30192fi
30193
30194if test x$enable_default_pie = xyes ; then
30195
30196$as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30197
30198fi
30199
30200
30201# Check if -fno-PIE works.
30202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30203$as_echo_n "checking for -fno-PIE option... " >&6; }
30204if ${gcc_cv_c_no_fpie+:} false; then :
30205  $as_echo_n "(cached) " >&6
30206else
30207  saved_CXXFLAGS="$CXXFLAGS"
30208   CXXFLAGS="$CXXFLAGS -fno-PIE"
30209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30210/* end confdefs.h.  */
30211int main(void) {return 0;}
30212_ACEOF
30213if ac_fn_cxx_try_compile "$LINENO"; then :
30214  gcc_cv_c_no_fpie=yes
30215else
30216  gcc_cv_c_no_fpie=no
30217fi
30218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30219   CXXFLAGS="$saved_CXXFLAGS"
30220fi
30221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30222$as_echo "$gcc_cv_c_no_fpie" >&6; }
30223if test "$gcc_cv_c_no_fpie" = "yes"; then
30224  NO_PIE_CFLAGS="-fno-PIE"
30225fi
30226
30227
30228# Check if -no-pie works.
30229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30230$as_echo_n "checking for -no-pie option... " >&6; }
30231if ${gcc_cv_no_pie+:} false; then :
30232  $as_echo_n "(cached) " >&6
30233else
30234  saved_LDFLAGS="$LDFLAGS"
30235   LDFLAGS="$LDFLAGS -no-pie"
30236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30237/* end confdefs.h.  */
30238int main(void) {return 0;}
30239_ACEOF
30240if ac_fn_cxx_try_link "$LINENO"; then :
30241  gcc_cv_no_pie=yes
30242else
30243  gcc_cv_no_pie=no
30244fi
30245rm -f core conftest.err conftest.$ac_objext \
30246    conftest$ac_exeext conftest.$ac_ext
30247   LDFLAGS="$saved_LDFLAGS"
30248fi
30249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30250$as_echo "$gcc_cv_no_pie" >&6; }
30251if test "$gcc_cv_no_pie" = "yes"; then
30252  NO_PIE_FLAG="-no-pie"
30253fi
30254
30255
30256# Check linker supports '-z bndplt'
30257ld_bndplt_support=no
30258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30259$as_echo_n "checking linker -z bndplt option... " >&6; }
30260if test x"$ld_is_gold" = xno; then
30261  if test $in_tree_ld = yes ; then
30262    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
30263      ld_bndplt_support=yes
30264    fi
30265  elif test x$gcc_cv_ld != x; then
30266    # Check if linker supports -a bndplt option
30267    if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30268      ld_bndplt_support=yes
30269    fi
30270  fi
30271fi
30272if test x"$ld_bndplt_support" = xyes; then
30273
30274$as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30275
30276fi
30277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30278$as_echo "$ld_bndplt_support" >&6; }
30279
30280# Check linker supports '--push-state'/'--pop-state'
30281ld_pushpopstate_support=no
30282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30283$as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30284if test x"$ld_is_gold" = xno; then
30285  if test $in_tree_ld = yes ; then
30286    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
30287      ld_pushpopstate_support=yes
30288    fi
30289  elif test x$gcc_cv_ld != x; then
30290    # Check if linker supports --push-state/--pop-state options
30291    if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30292      ld_pushpopstate_support=yes
30293    fi
30294  fi
30295fi
30296if test x"$ld_pushpopstate_support" = xyes; then
30297
30298$as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30299
30300fi
30301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30302$as_echo "$ld_pushpopstate_support" >&6; }
30303
30304# Configure the subdirectories
30305# AC_CONFIG_SUBDIRS($subdirs)
30306
30307# Create the Makefile
30308# and configure language subdirectories
30309ac_config_files="$ac_config_files $all_outputs"
30310
30311
30312ac_config_commands="$ac_config_commands default"
30313
30314cat >confcache <<\_ACEOF
30315# This file is a shell script that caches the results of configure
30316# tests run on this system so they can be shared between configure
30317# scripts and configure runs, see configure's option --config-cache.
30318# It is not useful on other systems.  If it contains results you don't
30319# want to keep, you may remove or edit it.
30320#
30321# config.status only pays attention to the cache file if you give it
30322# the --recheck option to rerun configure.
30323#
30324# `ac_cv_env_foo' variables (set or unset) will be overridden when
30325# loading this file, other *unset* `ac_cv_foo' will be assigned the
30326# following values.
30327
30328_ACEOF
30329
30330# The following way of writing the cache mishandles newlines in values,
30331# but we know of no workaround that is simple, portable, and efficient.
30332# So, we kill variables containing newlines.
30333# Ultrix sh set writes to stderr and can't be redirected directly,
30334# and sets the high bit in the cache file unless we assign to the vars.
30335(
30336  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30337    eval ac_val=\$$ac_var
30338    case $ac_val in #(
30339    *${as_nl}*)
30340      case $ac_var in #(
30341      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30342$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30343      esac
30344      case $ac_var in #(
30345      _ | IFS | as_nl) ;; #(
30346      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30347      *) { eval $ac_var=; unset $ac_var;} ;;
30348      esac ;;
30349    esac
30350  done
30351
30352  (set) 2>&1 |
30353    case $as_nl`(ac_space=' '; set) 2>&1` in #(
30354    *${as_nl}ac_space=\ *)
30355      # `set' does not quote correctly, so add quotes: double-quote
30356      # substitution turns \\\\ into \\, and sed turns \\ into \.
30357      sed -n \
30358	"s/'/'\\\\''/g;
30359	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30360      ;; #(
30361    *)
30362      # `set' quotes correctly as required by POSIX, so do not add quotes.
30363      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30364      ;;
30365    esac |
30366    sort
30367) |
30368  sed '
30369     /^ac_cv_env_/b end
30370     t clear
30371     :clear
30372     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30373     t end
30374     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30375     :end' >>confcache
30376if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30377  if test -w "$cache_file"; then
30378    if test "x$cache_file" != "x/dev/null"; then
30379      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30380$as_echo "$as_me: updating cache $cache_file" >&6;}
30381      if test ! -f "$cache_file" || test -h "$cache_file"; then
30382	cat confcache >"$cache_file"
30383      else
30384        case $cache_file in #(
30385        */* | ?:*)
30386	  mv -f confcache "$cache_file"$$ &&
30387	  mv -f "$cache_file"$$ "$cache_file" ;; #(
30388        *)
30389	  mv -f confcache "$cache_file" ;;
30390	esac
30391      fi
30392    fi
30393  else
30394    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30395$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30396  fi
30397fi
30398rm -f confcache
30399
30400test "x$prefix" = xNONE && prefix=$ac_default_prefix
30401# Let make expand exec_prefix.
30402test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30403
30404DEFS=-DHAVE_CONFIG_H
30405
30406ac_libobjs=
30407ac_ltlibobjs=
30408U=
30409for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30410  # 1. Remove the extension, and $U if already installed.
30411  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30412  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30413  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30414  #    will be set to the directory where LIBOBJS objects are built.
30415  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30416  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30417done
30418LIBOBJS=$ac_libobjs
30419
30420LTLIBOBJS=$ac_ltlibobjs
30421
30422
30423
30424
30425: "${CONFIG_STATUS=./config.status}"
30426ac_write_fail=0
30427ac_clean_files_save=$ac_clean_files
30428ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30429{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30430$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30431as_write_fail=0
30432cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30433#! $SHELL
30434# Generated by $as_me.
30435# Run this file to recreate the current configuration.
30436# Compiler output produced by configure, useful for debugging
30437# configure, is in config.log if it exists.
30438
30439debug=false
30440ac_cs_recheck=false
30441ac_cs_silent=false
30442
30443SHELL=\${CONFIG_SHELL-$SHELL}
30444export SHELL
30445_ASEOF
30446cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30447## -------------------- ##
30448## M4sh Initialization. ##
30449## -------------------- ##
30450
30451# Be more Bourne compatible
30452DUALCASE=1; export DUALCASE # for MKS sh
30453if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30454  emulate sh
30455  NULLCMD=:
30456  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30457  # is contrary to our usage.  Disable this feature.
30458  alias -g '${1+"$@"}'='"$@"'
30459  setopt NO_GLOB_SUBST
30460else
30461  case `(set -o) 2>/dev/null` in #(
30462  *posix*) :
30463    set -o posix ;; #(
30464  *) :
30465     ;;
30466esac
30467fi
30468
30469
30470as_nl='
30471'
30472export as_nl
30473# Printing a long string crashes Solaris 7 /usr/bin/printf.
30474as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30475as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30476as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30477# Prefer a ksh shell builtin over an external printf program on Solaris,
30478# but without wasting forks for bash or zsh.
30479if test -z "$BASH_VERSION$ZSH_VERSION" \
30480    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30481  as_echo='print -r --'
30482  as_echo_n='print -rn --'
30483elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30484  as_echo='printf %s\n'
30485  as_echo_n='printf %s'
30486else
30487  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30488    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30489    as_echo_n='/usr/ucb/echo -n'
30490  else
30491    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30492    as_echo_n_body='eval
30493      arg=$1;
30494      case $arg in #(
30495      *"$as_nl"*)
30496	expr "X$arg" : "X\\(.*\\)$as_nl";
30497	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30498      esac;
30499      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30500    '
30501    export as_echo_n_body
30502    as_echo_n='sh -c $as_echo_n_body as_echo'
30503  fi
30504  export as_echo_body
30505  as_echo='sh -c $as_echo_body as_echo'
30506fi
30507
30508# The user is always right.
30509if test "${PATH_SEPARATOR+set}" != set; then
30510  PATH_SEPARATOR=:
30511  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30512    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30513      PATH_SEPARATOR=';'
30514  }
30515fi
30516
30517
30518# IFS
30519# We need space, tab and new line, in precisely that order.  Quoting is
30520# there to prevent editors from complaining about space-tab.
30521# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30522# splitting by setting IFS to empty value.)
30523IFS=" ""	$as_nl"
30524
30525# Find who we are.  Look in the path if we contain no directory separator.
30526as_myself=
30527case $0 in #((
30528  *[\\/]* ) as_myself=$0 ;;
30529  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30530for as_dir in $PATH
30531do
30532  IFS=$as_save_IFS
30533  test -z "$as_dir" && as_dir=.
30534    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30535  done
30536IFS=$as_save_IFS
30537
30538     ;;
30539esac
30540# We did not find ourselves, most probably we were run as `sh COMMAND'
30541# in which case we are not to be found in the path.
30542if test "x$as_myself" = x; then
30543  as_myself=$0
30544fi
30545if test ! -f "$as_myself"; then
30546  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30547  exit 1
30548fi
30549
30550# Unset variables that we do not need and which cause bugs (e.g. in
30551# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30552# suppresses any "Segmentation fault" message there.  '((' could
30553# trigger a bug in pdksh 5.2.14.
30554for as_var in BASH_ENV ENV MAIL MAILPATH
30555do eval test x\${$as_var+set} = xset \
30556  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30557done
30558PS1='$ '
30559PS2='> '
30560PS4='+ '
30561
30562# NLS nuisances.
30563LC_ALL=C
30564export LC_ALL
30565LANGUAGE=C
30566export LANGUAGE
30567
30568# CDPATH.
30569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30570
30571
30572# as_fn_error STATUS ERROR [LINENO LOG_FD]
30573# ----------------------------------------
30574# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30575# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30576# script with STATUS, using 1 if that was 0.
30577as_fn_error ()
30578{
30579  as_status=$1; test $as_status -eq 0 && as_status=1
30580  if test "$4"; then
30581    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30582    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30583  fi
30584  $as_echo "$as_me: error: $2" >&2
30585  as_fn_exit $as_status
30586} # as_fn_error
30587
30588
30589# as_fn_set_status STATUS
30590# -----------------------
30591# Set $? to STATUS, without forking.
30592as_fn_set_status ()
30593{
30594  return $1
30595} # as_fn_set_status
30596
30597# as_fn_exit STATUS
30598# -----------------
30599# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30600as_fn_exit ()
30601{
30602  set +e
30603  as_fn_set_status $1
30604  exit $1
30605} # as_fn_exit
30606
30607# as_fn_unset VAR
30608# ---------------
30609# Portably unset VAR.
30610as_fn_unset ()
30611{
30612  { eval $1=; unset $1;}
30613}
30614as_unset=as_fn_unset
30615# as_fn_append VAR VALUE
30616# ----------------------
30617# Append the text in VALUE to the end of the definition contained in VAR. Take
30618# advantage of any shell optimizations that allow amortized linear growth over
30619# repeated appends, instead of the typical quadratic growth present in naive
30620# implementations.
30621if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30622  eval 'as_fn_append ()
30623  {
30624    eval $1+=\$2
30625  }'
30626else
30627  as_fn_append ()
30628  {
30629    eval $1=\$$1\$2
30630  }
30631fi # as_fn_append
30632
30633# as_fn_arith ARG...
30634# ------------------
30635# Perform arithmetic evaluation on the ARGs, and store the result in the
30636# global $as_val. Take advantage of shells that can avoid forks. The arguments
30637# must be portable across $(()) and expr.
30638if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30639  eval 'as_fn_arith ()
30640  {
30641    as_val=$(( $* ))
30642  }'
30643else
30644  as_fn_arith ()
30645  {
30646    as_val=`expr "$@" || test $? -eq 1`
30647  }
30648fi # as_fn_arith
30649
30650
30651if expr a : '\(a\)' >/dev/null 2>&1 &&
30652   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30653  as_expr=expr
30654else
30655  as_expr=false
30656fi
30657
30658if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30659  as_basename=basename
30660else
30661  as_basename=false
30662fi
30663
30664if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30665  as_dirname=dirname
30666else
30667  as_dirname=false
30668fi
30669
30670as_me=`$as_basename -- "$0" ||
30671$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30672	 X"$0" : 'X\(//\)$' \| \
30673	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30674$as_echo X/"$0" |
30675    sed '/^.*\/\([^/][^/]*\)\/*$/{
30676	    s//\1/
30677	    q
30678	  }
30679	  /^X\/\(\/\/\)$/{
30680	    s//\1/
30681	    q
30682	  }
30683	  /^X\/\(\/\).*/{
30684	    s//\1/
30685	    q
30686	  }
30687	  s/.*/./; q'`
30688
30689# Avoid depending upon Character Ranges.
30690as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30691as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30692as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30693as_cr_digits='0123456789'
30694as_cr_alnum=$as_cr_Letters$as_cr_digits
30695
30696ECHO_C= ECHO_N= ECHO_T=
30697case `echo -n x` in #(((((
30698-n*)
30699  case `echo 'xy\c'` in
30700  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
30701  xy)  ECHO_C='\c';;
30702  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30703       ECHO_T='	';;
30704  esac;;
30705*)
30706  ECHO_N='-n';;
30707esac
30708
30709rm -f conf$$ conf$$.exe conf$$.file
30710if test -d conf$$.dir; then
30711  rm -f conf$$.dir/conf$$.file
30712else
30713  rm -f conf$$.dir
30714  mkdir conf$$.dir 2>/dev/null
30715fi
30716if (echo >conf$$.file) 2>/dev/null; then
30717  if ln -s conf$$.file conf$$ 2>/dev/null; then
30718    as_ln_s='ln -s'
30719    # ... but there are two gotchas:
30720    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30721    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30722    # In both cases, we have to default to `cp -pR'.
30723    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30724      as_ln_s='cp -pR'
30725  elif ln conf$$.file conf$$ 2>/dev/null; then
30726    as_ln_s=ln
30727  else
30728    as_ln_s='cp -pR'
30729  fi
30730else
30731  as_ln_s='cp -pR'
30732fi
30733rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30734rmdir conf$$.dir 2>/dev/null
30735
30736
30737# as_fn_mkdir_p
30738# -------------
30739# Create "$as_dir" as a directory, including parents if necessary.
30740as_fn_mkdir_p ()
30741{
30742
30743  case $as_dir in #(
30744  -*) as_dir=./$as_dir;;
30745  esac
30746  test -d "$as_dir" || eval $as_mkdir_p || {
30747    as_dirs=
30748    while :; do
30749      case $as_dir in #(
30750      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30751      *) as_qdir=$as_dir;;
30752      esac
30753      as_dirs="'$as_qdir' $as_dirs"
30754      as_dir=`$as_dirname -- "$as_dir" ||
30755$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30756	 X"$as_dir" : 'X\(//\)[^/]' \| \
30757	 X"$as_dir" : 'X\(//\)$' \| \
30758	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30759$as_echo X"$as_dir" |
30760    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30761	    s//\1/
30762	    q
30763	  }
30764	  /^X\(\/\/\)[^/].*/{
30765	    s//\1/
30766	    q
30767	  }
30768	  /^X\(\/\/\)$/{
30769	    s//\1/
30770	    q
30771	  }
30772	  /^X\(\/\).*/{
30773	    s//\1/
30774	    q
30775	  }
30776	  s/.*/./; q'`
30777      test -d "$as_dir" && break
30778    done
30779    test -z "$as_dirs" || eval "mkdir $as_dirs"
30780  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30781
30782
30783} # as_fn_mkdir_p
30784if mkdir -p . 2>/dev/null; then
30785  as_mkdir_p='mkdir -p "$as_dir"'
30786else
30787  test -d ./-p && rmdir ./-p
30788  as_mkdir_p=false
30789fi
30790
30791
30792# as_fn_executable_p FILE
30793# -----------------------
30794# Test if FILE is an executable regular file.
30795as_fn_executable_p ()
30796{
30797  test -f "$1" && test -x "$1"
30798} # as_fn_executable_p
30799as_test_x='test -x'
30800as_executable_p=as_fn_executable_p
30801
30802# Sed expression to map a string onto a valid CPP name.
30803as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30804
30805# Sed expression to map a string onto a valid variable name.
30806as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30807
30808
30809exec 6>&1
30810## ----------------------------------- ##
30811## Main body of $CONFIG_STATUS script. ##
30812## ----------------------------------- ##
30813_ASEOF
30814test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30815
30816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30817# Save the log message, to keep $0 and so on meaningful, and to
30818# report actual input values of CONFIG_FILES etc. instead of their
30819# values after options handling.
30820ac_log="
30821This file was extended by $as_me, which was
30822generated by GNU Autoconf 2.69.  Invocation command line was
30823
30824  CONFIG_FILES    = $CONFIG_FILES
30825  CONFIG_HEADERS  = $CONFIG_HEADERS
30826  CONFIG_LINKS    = $CONFIG_LINKS
30827  CONFIG_COMMANDS = $CONFIG_COMMANDS
30828  $ $0 $@
30829
30830on `(hostname || uname -n) 2>/dev/null | sed 1q`
30831"
30832
30833_ACEOF
30834
30835case $ac_config_files in *"
30836"*) set x $ac_config_files; shift; ac_config_files=$*;;
30837esac
30838
30839case $ac_config_headers in *"
30840"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30841esac
30842
30843
30844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30845# Files that config.status was made for.
30846config_files="$ac_config_files"
30847config_headers="$ac_config_headers"
30848config_links="$ac_config_links"
30849config_commands="$ac_config_commands"
30850
30851_ACEOF
30852
30853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30854ac_cs_usage="\
30855\`$as_me' instantiates files and other configuration actions
30856from templates according to the current configuration.  Unless the files
30857and actions are specified as TAGs, all are instantiated by default.
30858
30859Usage: $0 [OPTION]... [TAG]...
30860
30861  -h, --help       print this help, then exit
30862  -V, --version    print version number and configuration settings, then exit
30863      --config     print configuration, then exit
30864  -q, --quiet, --silent
30865                   do not print progress messages
30866  -d, --debug      don't remove temporary files
30867      --recheck    update $as_me by reconfiguring in the same conditions
30868      --file=FILE[:TEMPLATE]
30869                   instantiate the configuration file FILE
30870      --header=FILE[:TEMPLATE]
30871                   instantiate the configuration header FILE
30872
30873Configuration files:
30874$config_files
30875
30876Configuration headers:
30877$config_headers
30878
30879Configuration links:
30880$config_links
30881
30882Configuration commands:
30883$config_commands
30884
30885Report bugs to the package provider."
30886
30887_ACEOF
30888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30889ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30890ac_cs_version="\\
30891config.status
30892configured by $0, generated by GNU Autoconf 2.69,
30893  with options \\"\$ac_cs_config\\"
30894
30895Copyright (C) 2012 Free Software Foundation, Inc.
30896This config.status script is free software; the Free Software Foundation
30897gives unlimited permission to copy, distribute and modify it."
30898
30899ac_pwd='$ac_pwd'
30900srcdir='$srcdir'
30901AWK='$AWK'
30902test -n "\$AWK" || AWK=awk
30903_ACEOF
30904
30905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30906# The default lists apply if the user does not specify any file.
30907ac_need_defaults=:
30908while test $# != 0
30909do
30910  case $1 in
30911  --*=?*)
30912    ac_option=`expr "X$1" : 'X\([^=]*\)='`
30913    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30914    ac_shift=:
30915    ;;
30916  --*=)
30917    ac_option=`expr "X$1" : 'X\([^=]*\)='`
30918    ac_optarg=
30919    ac_shift=:
30920    ;;
30921  *)
30922    ac_option=$1
30923    ac_optarg=$2
30924    ac_shift=shift
30925    ;;
30926  esac
30927
30928  case $ac_option in
30929  # Handling of the options.
30930  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30931    ac_cs_recheck=: ;;
30932  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30933    $as_echo "$ac_cs_version"; exit ;;
30934  --config | --confi | --conf | --con | --co | --c )
30935    $as_echo "$ac_cs_config"; exit ;;
30936  --debug | --debu | --deb | --de | --d | -d )
30937    debug=: ;;
30938  --file | --fil | --fi | --f )
30939    $ac_shift
30940    case $ac_optarg in
30941    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30942    '') as_fn_error $? "missing file argument" ;;
30943    esac
30944    as_fn_append CONFIG_FILES " '$ac_optarg'"
30945    ac_need_defaults=false;;
30946  --header | --heade | --head | --hea )
30947    $ac_shift
30948    case $ac_optarg in
30949    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30950    esac
30951    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30952    ac_need_defaults=false;;
30953  --he | --h)
30954    # Conflict between --help and --header
30955    as_fn_error $? "ambiguous option: \`$1'
30956Try \`$0 --help' for more information.";;
30957  --help | --hel | -h )
30958    $as_echo "$ac_cs_usage"; exit ;;
30959  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30960  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30961    ac_cs_silent=: ;;
30962
30963  # This is an error.
30964  -*) as_fn_error $? "unrecognized option: \`$1'
30965Try \`$0 --help' for more information." ;;
30966
30967  *) as_fn_append ac_config_targets " $1"
30968     ac_need_defaults=false ;;
30969
30970  esac
30971  shift
30972done
30973
30974ac_configure_extra_args=
30975
30976if $ac_cs_silent; then
30977  exec 6>/dev/null
30978  ac_configure_extra_args="$ac_configure_extra_args --silent"
30979fi
30980
30981_ACEOF
30982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30983if \$ac_cs_recheck; then
30984  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30985  shift
30986  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30987  CONFIG_SHELL='$SHELL'
30988  export CONFIG_SHELL
30989  exec "\$@"
30990fi
30991
30992_ACEOF
30993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30994exec 5>>config.log
30995{
30996  echo
30997  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30998## Running $as_me. ##
30999_ASBOX
31000  $as_echo "$ac_log"
31001} >&5
31002
31003_ACEOF
31004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31005#
31006# INIT-COMMANDS
31007#
31008ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31009subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31010subdirs='$subdirs'
31011
31012_ACEOF
31013
31014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31015
31016# Handling of arguments.
31017for ac_config_target in $ac_config_targets
31018do
31019  case $ac_config_target in
31020    "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
31021    "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31022    "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
31023    "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
31024    "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31025    "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
31026    "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31027    "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
31028    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31029
31030  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31031  esac
31032done
31033
31034
31035# If the user did not use the arguments to specify the items to instantiate,
31036# then the envvar interface is used.  Set only those that are not.
31037# We use the long form for the default assignment because of an extremely
31038# bizarre bug on SunOS 4.1.3.
31039if $ac_need_defaults; then
31040  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31041  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31042  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31043  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31044fi
31045
31046# Have a temporary directory for convenience.  Make it in the build tree
31047# simply because there is no reason against having it here, and in addition,
31048# creating and moving files from /tmp can sometimes cause problems.
31049# Hook for its removal unless debugging.
31050# Note that there is a small window in which the directory will not be cleaned:
31051# after its creation but before its name has been assigned to `$tmp'.
31052$debug ||
31053{
31054  tmp= ac_tmp=
31055  trap 'exit_status=$?
31056  : "${ac_tmp:=$tmp}"
31057  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31058' 0
31059  trap 'as_fn_exit 1' 1 2 13 15
31060}
31061# Create a (secure) tmp directory for tmp files.
31062
31063{
31064  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31065  test -d "$tmp"
31066}  ||
31067{
31068  tmp=./conf$$-$RANDOM
31069  (umask 077 && mkdir "$tmp")
31070} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31071ac_tmp=$tmp
31072
31073# Set up the scripts for CONFIG_FILES section.
31074# No need to generate them if there are no CONFIG_FILES.
31075# This happens for instance with `./config.status config.h'.
31076if test -n "$CONFIG_FILES"; then
31077
31078if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31079  ac_cs_awk_getline=:
31080  ac_cs_awk_pipe_init=
31081  ac_cs_awk_read_file='
31082      while ((getline aline < (F[key])) > 0)
31083	print(aline)
31084      close(F[key])'
31085  ac_cs_awk_pipe_fini=
31086else
31087  ac_cs_awk_getline=false
31088  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31089  ac_cs_awk_read_file='
31090      print "|#_!!_#|"
31091      print "cat " F[key] " &&"
31092      '$ac_cs_awk_pipe_init
31093  # The final `:' finishes the AND list.
31094  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31095fi
31096ac_cr=`echo X | tr X '\015'`
31097# On cygwin, bash can eat \r inside `` if the user requested igncr.
31098# But we know of no other shell where ac_cr would be empty at this
31099# point, so we can use a bashism as a fallback.
31100if test "x$ac_cr" = x; then
31101  eval ac_cr=\$\'\\r\'
31102fi
31103ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31104if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31105  ac_cs_awk_cr='\\r'
31106else
31107  ac_cs_awk_cr=$ac_cr
31108fi
31109
31110echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31111_ACEOF
31112
31113# Create commands to substitute file output variables.
31114{
31115  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31116  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31117  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31118  echo "_ACAWK" &&
31119  echo "_ACEOF"
31120} >conf$$files.sh &&
31121. ./conf$$files.sh ||
31122  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31123rm -f conf$$files.sh
31124
31125{
31126  echo "cat >conf$$subs.awk <<_ACEOF" &&
31127  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31128  echo "_ACEOF"
31129} >conf$$subs.sh ||
31130  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31131ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31132ac_delim='%!_!# '
31133for ac_last_try in false false false false false :; do
31134  . ./conf$$subs.sh ||
31135    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31136
31137  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31138  if test $ac_delim_n = $ac_delim_num; then
31139    break
31140  elif $ac_last_try; then
31141    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31142  else
31143    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31144  fi
31145done
31146rm -f conf$$subs.sh
31147
31148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31149cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31150_ACEOF
31151sed -n '
31152h
31153s/^/S["/; s/!.*/"]=/
31154p
31155g
31156s/^[^!]*!//
31157:repl
31158t repl
31159s/'"$ac_delim"'$//
31160t delim
31161:nl
31162h
31163s/\(.\{148\}\)..*/\1/
31164t more1
31165s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31166p
31167n
31168b repl
31169:more1
31170s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31171p
31172g
31173s/.\{148\}//
31174t nl
31175:delim
31176h
31177s/\(.\{148\}\)..*/\1/
31178t more2
31179s/["\\]/\\&/g; s/^/"/; s/$/"/
31180p
31181b
31182:more2
31183s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31184p
31185g
31186s/.\{148\}//
31187t delim
31188' <conf$$subs.awk | sed '
31189/^[^""]/{
31190  N
31191  s/\n//
31192}
31193' >>$CONFIG_STATUS || ac_write_fail=1
31194rm -f conf$$subs.awk
31195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31196_ACAWK
31197cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31198  for (key in S) S_is_set[key] = 1
31199  FS = ""
31200  \$ac_cs_awk_pipe_init
31201}
31202{
31203  line = $ 0
31204  nfields = split(line, field, "@")
31205  substed = 0
31206  len = length(field[1])
31207  for (i = 2; i < nfields; i++) {
31208    key = field[i]
31209    keylen = length(key)
31210    if (S_is_set[key]) {
31211      value = S[key]
31212      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31213      len += length(value) + length(field[++i])
31214      substed = 1
31215    } else
31216      len += 1 + keylen
31217  }
31218  if (nfields == 3 && !substed) {
31219    key = field[2]
31220    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
31221      \$ac_cs_awk_read_file
31222      next
31223    }
31224  }
31225  print line
31226}
31227\$ac_cs_awk_pipe_fini
31228_ACAWK
31229_ACEOF
31230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31231if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31232  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31233else
31234  cat
31235fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31236  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31237_ACEOF
31238
31239# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31240# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31241# trailing colons and then remove the whole line if VPATH becomes empty
31242# (actually we leave an empty line to preserve line numbers).
31243if test "x$srcdir" = x.; then
31244  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
31245h
31246s///
31247s/^/:/
31248s/[	 ]*$/:/
31249s/:\$(srcdir):/:/g
31250s/:\${srcdir}:/:/g
31251s/:@srcdir@:/:/g
31252s/^:*//
31253s/:*$//
31254x
31255s/\(=[	 ]*\).*/\1/
31256G
31257s/\n//
31258s/^[^=]*=[	 ]*$//
31259}'
31260fi
31261
31262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31263fi # test -n "$CONFIG_FILES"
31264
31265# Set up the scripts for CONFIG_HEADERS section.
31266# No need to generate them if there are no CONFIG_HEADERS.
31267# This happens for instance with `./config.status Makefile'.
31268if test -n "$CONFIG_HEADERS"; then
31269cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31270BEGIN {
31271_ACEOF
31272
31273# Transform confdefs.h into an awk script `defines.awk', embedded as
31274# here-document in config.status, that substitutes the proper values into
31275# config.h.in to produce config.h.
31276
31277# Create a delimiter string that does not exist in confdefs.h, to ease
31278# handling of long lines.
31279ac_delim='%!_!# '
31280for ac_last_try in false false :; do
31281  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31282  if test -z "$ac_tt"; then
31283    break
31284  elif $ac_last_try; then
31285    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31286  else
31287    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31288  fi
31289done
31290
31291# For the awk script, D is an array of macro values keyed by name,
31292# likewise P contains macro parameters if any.  Preserve backslash
31293# newline sequences.
31294
31295ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31296sed -n '
31297s/.\{148\}/&'"$ac_delim"'/g
31298t rset
31299:rset
31300s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
31301t def
31302d
31303:def
31304s/\\$//
31305t bsnl
31306s/["\\]/\\&/g
31307s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31308D["\1"]=" \3"/p
31309s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
31310d
31311:bsnl
31312s/["\\]/\\&/g
31313s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31314D["\1"]=" \3\\\\\\n"\\/p
31315t cont
31316s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31317t cont
31318d
31319:cont
31320n
31321s/.\{148\}/&'"$ac_delim"'/g
31322t clear
31323:clear
31324s/\\$//
31325t bsnlc
31326s/["\\]/\\&/g; s/^/"/; s/$/"/p
31327d
31328:bsnlc
31329s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31330b cont
31331' <confdefs.h | sed '
31332s/'"$ac_delim"'/"\\\
31333"/g' >>$CONFIG_STATUS || ac_write_fail=1
31334
31335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31336  for (key in D) D_is_set[key] = 1
31337  FS = ""
31338}
31339/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31340  line = \$ 0
31341  split(line, arg, " ")
31342  if (arg[1] == "#") {
31343    defundef = arg[2]
31344    mac1 = arg[3]
31345  } else {
31346    defundef = substr(arg[1], 2)
31347    mac1 = arg[2]
31348  }
31349  split(mac1, mac2, "(") #)
31350  macro = mac2[1]
31351  prefix = substr(line, 1, index(line, defundef) - 1)
31352  if (D_is_set[macro]) {
31353    # Preserve the white space surrounding the "#".
31354    print prefix "define", macro P[macro] D[macro]
31355    next
31356  } else {
31357    # Replace #undef with comments.  This is necessary, for example,
31358    # in the case of _POSIX_SOURCE, which is predefined and required
31359    # on some systems where configure will not decide to define it.
31360    if (defundef == "undef") {
31361      print "/*", prefix defundef, macro, "*/"
31362      next
31363    }
31364  }
31365}
31366{ print }
31367_ACAWK
31368_ACEOF
31369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31370  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31371fi # test -n "$CONFIG_HEADERS"
31372
31373
31374eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
31375shift
31376for ac_tag
31377do
31378  case $ac_tag in
31379  :[FHLC]) ac_mode=$ac_tag; continue;;
31380  esac
31381  case $ac_mode$ac_tag in
31382  :[FHL]*:*);;
31383  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31384  :[FH]-) ac_tag=-:-;;
31385  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31386  esac
31387  ac_save_IFS=$IFS
31388  IFS=:
31389  set x $ac_tag
31390  IFS=$ac_save_IFS
31391  shift
31392  ac_file=$1
31393  shift
31394
31395  case $ac_mode in
31396  :L) ac_source=$1;;
31397  :[FH])
31398    ac_file_inputs=
31399    for ac_f
31400    do
31401      case $ac_f in
31402      -) ac_f="$ac_tmp/stdin";;
31403      *) # Look for the file first in the build tree, then in the source tree
31404	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
31405	 # because $ac_f cannot contain `:'.
31406	 test -f "$ac_f" ||
31407	   case $ac_f in
31408	   [\\/$]*) false;;
31409	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31410	   esac ||
31411	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31412      esac
31413      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31414      as_fn_append ac_file_inputs " '$ac_f'"
31415    done
31416
31417    # Let's still pretend it is `configure' which instantiates (i.e., don't
31418    # use $as_me), people would be surprised to read:
31419    #    /* config.h.  Generated by config.status.  */
31420    configure_input='Generated from '`
31421	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31422	`' by configure.'
31423    if test x"$ac_file" != x-; then
31424      configure_input="$ac_file.  $configure_input"
31425      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31426$as_echo "$as_me: creating $ac_file" >&6;}
31427    fi
31428    # Neutralize special characters interpreted by sed in replacement strings.
31429    case $configure_input in #(
31430    *\&* | *\|* | *\\* )
31431       ac_sed_conf_input=`$as_echo "$configure_input" |
31432       sed 's/[\\\\&|]/\\\\&/g'`;; #(
31433    *) ac_sed_conf_input=$configure_input;;
31434    esac
31435
31436    case $ac_tag in
31437    *:-:* | *:-) cat >"$ac_tmp/stdin" \
31438      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31439    esac
31440    ;;
31441  esac
31442
31443  ac_dir=`$as_dirname -- "$ac_file" ||
31444$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31445	 X"$ac_file" : 'X\(//\)[^/]' \| \
31446	 X"$ac_file" : 'X\(//\)$' \| \
31447	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31448$as_echo X"$ac_file" |
31449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31450	    s//\1/
31451	    q
31452	  }
31453	  /^X\(\/\/\)[^/].*/{
31454	    s//\1/
31455	    q
31456	  }
31457	  /^X\(\/\/\)$/{
31458	    s//\1/
31459	    q
31460	  }
31461	  /^X\(\/\).*/{
31462	    s//\1/
31463	    q
31464	  }
31465	  s/.*/./; q'`
31466  as_dir="$ac_dir"; as_fn_mkdir_p
31467  ac_builddir=.
31468
31469case "$ac_dir" in
31470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31471*)
31472  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31473  # A ".." for each directory in $ac_dir_suffix.
31474  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31475  case $ac_top_builddir_sub in
31476  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31477  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31478  esac ;;
31479esac
31480ac_abs_top_builddir=$ac_pwd
31481ac_abs_builddir=$ac_pwd$ac_dir_suffix
31482# for backward compatibility:
31483ac_top_builddir=$ac_top_build_prefix
31484
31485case $srcdir in
31486  .)  # We are building in place.
31487    ac_srcdir=.
31488    ac_top_srcdir=$ac_top_builddir_sub
31489    ac_abs_top_srcdir=$ac_pwd ;;
31490  [\\/]* | ?:[\\/]* )  # Absolute name.
31491    ac_srcdir=$srcdir$ac_dir_suffix;
31492    ac_top_srcdir=$srcdir
31493    ac_abs_top_srcdir=$srcdir ;;
31494  *) # Relative name.
31495    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31496    ac_top_srcdir=$ac_top_build_prefix$srcdir
31497    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31498esac
31499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31500
31501
31502  case $ac_mode in
31503  :F)
31504  #
31505  # CONFIG_FILE
31506  #
31507
31508_ACEOF
31509
31510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31511# If the template does not know about datarootdir, expand it.
31512# FIXME: This hack should be removed a few years after 2.60.
31513ac_datarootdir_hack=; ac_datarootdir_seen=
31514ac_sed_dataroot='
31515/datarootdir/ {
31516  p
31517  q
31518}
31519/@datadir@/p
31520/@docdir@/p
31521/@infodir@/p
31522/@localedir@/p
31523/@mandir@/p'
31524case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31525*datarootdir*) ac_datarootdir_seen=yes;;
31526*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31527  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31528$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31529_ACEOF
31530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31531  ac_datarootdir_hack='
31532  s&@datadir@&$datadir&g
31533  s&@docdir@&$docdir&g
31534  s&@infodir@&$infodir&g
31535  s&@localedir@&$localedir&g
31536  s&@mandir@&$mandir&g
31537  s&\\\${datarootdir}&$datarootdir&g' ;;
31538esac
31539_ACEOF
31540
31541# Neutralize VPATH when `$srcdir' = `.'.
31542# Shell code in configure.ac might set extrasub.
31543# FIXME: do we really want to maintain this feature?
31544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31545ac_sed_extra="$ac_vpsub
31546$extrasub
31547_ACEOF
31548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31549:t
31550/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31551s|@configure_input@|$ac_sed_conf_input|;t t
31552s&@top_builddir@&$ac_top_builddir_sub&;t t
31553s&@top_build_prefix@&$ac_top_build_prefix&;t t
31554s&@srcdir@&$ac_srcdir&;t t
31555s&@abs_srcdir@&$ac_abs_srcdir&;t t
31556s&@top_srcdir@&$ac_top_srcdir&;t t
31557s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31558s&@builddir@&$ac_builddir&;t t
31559s&@abs_builddir@&$ac_abs_builddir&;t t
31560s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31561$ac_datarootdir_hack
31562"
31563eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31564if $ac_cs_awk_getline; then
31565  $AWK -f "$ac_tmp/subs.awk"
31566else
31567  $AWK -f "$ac_tmp/subs.awk" | $SHELL
31568fi \
31569  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31570
31571test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31572  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31573  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
31574      "$ac_tmp/out"`; test -z "$ac_out"; } &&
31575  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31576which seems to be undefined.  Please make sure it is defined" >&5
31577$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31578which seems to be undefined.  Please make sure it is defined" >&2;}
31579
31580  rm -f "$ac_tmp/stdin"
31581  case $ac_file in
31582  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31583  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31584  esac \
31585  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31586 ;;
31587  :H)
31588  #
31589  # CONFIG_HEADER
31590  #
31591  if test x"$ac_file" != x-; then
31592    {
31593      $as_echo "/* $configure_input  */" \
31594      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31595    } >"$ac_tmp/config.h" \
31596      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31597    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31598      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31599$as_echo "$as_me: $ac_file is unchanged" >&6;}
31600    else
31601      rm -f "$ac_file"
31602      mv "$ac_tmp/config.h" "$ac_file" \
31603	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
31604    fi
31605  else
31606    $as_echo "/* $configure_input  */" \
31607      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31608      || as_fn_error $? "could not create -" "$LINENO" 5
31609  fi
31610 ;;
31611  :L)
31612  #
31613  # CONFIG_LINK
31614  #
31615
31616  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31617    :
31618  else
31619    # Prefer the file from the source tree if names are identical.
31620    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31621      ac_source=$srcdir/$ac_source
31622    fi
31623
31624    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31625$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31626
31627    if test ! -r "$ac_source"; then
31628      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31629    fi
31630    rm -f "$ac_file"
31631
31632    # Try a relative symlink, then a hard link, then a copy.
31633    case $ac_source in
31634    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31635	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31636    esac
31637    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31638      ln "$ac_source" "$ac_file" 2>/dev/null ||
31639      cp -p "$ac_source" "$ac_file" ||
31640      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31641  fi
31642 ;;
31643  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31644$as_echo "$as_me: executing $ac_file commands" >&6;}
31645 ;;
31646  esac
31647
31648
31649  case $ac_file$ac_mode in
31650    "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31651    "gccdepdir":C)
31652  ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31653  for lang in $subdirs c-family common
31654  do
31655      ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31656  done ;;
31657    "as":F) chmod +x as ;;
31658    "collect-ld":F) chmod +x collect-ld ;;
31659    "nm":F) chmod +x nm ;;
31660    "default":C)
31661case ${CONFIG_HEADERS} in
31662  *auto-host.h:config.in*)
31663  echo > cstamp-h ;;
31664esac
31665# Make sure all the subdirs exist.
31666for d in $subdirs doc build common c-family
31667do
31668    test -d $d || mkdir $d
31669done
31670 ;;
31671
31672  esac
31673done # for ac_tag
31674
31675
31676as_fn_exit 0
31677_ACEOF
31678ac_clean_files=$ac_clean_files_save
31679
31680test $ac_write_fail = 0 ||
31681  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31682
31683
31684# configure is writing to config.log, and then calls config.status.
31685# config.status does its own redirection, appending to config.log.
31686# Unfortunately, on DOS this fails, as config.log is still kept open
31687# by configure, so config.status won't be able to write to it; its
31688# output is simply discarded.  So we exec the FD to /dev/null,
31689# effectively closing config.log, so it can be properly (re)opened and
31690# appended to by config.status.  When coming back to configure, we
31691# need to make the FD available again.
31692if test "$no_create" != yes; then
31693  ac_cs_success=:
31694  ac_config_status_args=
31695  test "$silent" = yes &&
31696    ac_config_status_args="$ac_config_status_args --quiet"
31697  exec 5>/dev/null
31698  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31699  exec 5>>config.log
31700  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31701  # would make configure fail if this is the last instruction.
31702  $ac_cs_success || as_fn_exit 1
31703fi
31704if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31705  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31706$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31707fi
31708
31709
31710