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
778HAVE_AUTO_BUILD
779extra_opt_files
780extra_modes_file
781NATIVE_SYSTEM_HEADER_DIR
782objext
783manext
784LIBICONV_DEP
785LTLIBICONV
786LIBICONV
787ZSTD_LIB
788ZSTD_INCLUDE
789DL_LIB
790LDEXP_LIB
791EXTRA_GCC_LIBS
792GNAT_LIBEXC
793COLLECT2_LIBS
794CXXDEPMODE
795DEPDIR
796am__leading_dot
797doc_build_sys
798AR
799NM
800BISON
801FLEX
802GENERATED_MANPAGES
803BUILD_INFO
804MAKEINFO
805have_mktemp_command
806make_compare_target
807INSTALL_DATA
808INSTALL_PROGRAM
809INSTALL
810ranlib_flags
811RANLIB
812LN
813LN_S
814AWK
815SET_MAKE
816omp_device_property_deps
817omp_device_properties
818accel_dir_suffix
819real_target_noncanonical
820enable_as_accelerator
821gnat_install_lib
822REPORT_BUGS_TEXI
823REPORT_BUGS_TO
824PKGVERSION
825CONFIGURE_SPECS
826enable_gcov
827enable_shared
828enable_fixed_point
829enable_decimal_float
830with_float
831with_cpu
832enable_multiarch
833enable_multilib
834coverage_flags
835valgrind_command
836valgrind_path_defines
837valgrind_path
838TREECHECKING
839nocommon_flag
840noexception_flags
841warn_cxxflags
842warn_cflags
843c_strict_warn
844strict_warn
845c_loose_warn
846loose_warn
847aliasing_flags
848CPP
849EGREP
850GREP
851CXXCPP
852PICFLAG_FOR_TARGET
853GNATMAKE
854GNATBIND
855ac_ct_CXX
856CXXFLAGS
857CXX
858OBJEXT
859EXEEXT
860ac_ct_CC
861CPPFLAGS
862LDFLAGS
863CFLAGS
864CC
865GENINSRC
866CROSS_SYSTEM_HEADER_DIR
867TARGET_SYSTEM_ROOT_DEFINE
868TARGET_SYSTEM_ROOT
869SYSROOT_CFLAGS_FOR_TARGET
870target_subdir
871host_subdir
872build_subdir
873build_libsubdir
874target_noncanonical
875host_noncanonical
876target_os
877target_vendor
878target_cpu
879target
880host_os
881host_vendor
882host_cpu
883host
884build_os
885build_vendor
886build_cpu
887build
888target_alias
889host_alias
890build_alias
891LIBS
892ECHO_T
893ECHO_N
894ECHO_C
895DEFS
896mandir
897localedir
898libdir
899psdir
900pdfdir
901dvidir
902htmldir
903infodir
904docdir
905oldincludedir
906includedir
907localstatedir
908sharedstatedir
909sysconfdir
910datadir
911datarootdir
912libexecdir
913sbindir
914bindir
915program_transform_name
916prefix
917exec_prefix
918PACKAGE_URL
919PACKAGE_BUGREPORT
920PACKAGE_STRING
921PACKAGE_VERSION
922PACKAGE_TARNAME
923PACKAGE_NAME
924PATH_SEPARATOR
925SHELL'
926ac_subst_files='option_includes
927language_hooks'
928ac_user_opts='
929enable_option_checking
930with_build_libsubdir
931with_local_prefix
932with_native_system_header_dir
933with_build_sysroot
934with_sysroot
935with_gxx_include_dir
936with_cpp_install_dir
937enable_generated_files_in_srcdir
938with_gnu_ld
939with_ld
940with_demangler_in_ld
941with_gnu_as
942with_as
943enable_largefile
944enable_build_format_warnings
945enable_werror_always
946enable_checking
947enable_coverage
948enable_gather_detailed_mem_stats
949enable_valgrind_annotations
950with_stabs
951enable_multilib
952enable_multiarch
953with_stack_clash_protection_guard_size
954enable___cxa_atexit
955enable_decimal_float
956enable_fixed_point
957enable_threads
958enable_tls
959enable_vtable_verify
960enable_analyzer
961enable_objc_gc
962with_dwarf2
963enable_shared
964enable_gcov
965with_specs
966with_pkgversion
967with_bugurl
968with_documentation_root_url
969with_changes_root_url
970enable_languages
971with_multilib_list
972with_zstd
973with_zstd_include
974with_zstd_lib
975enable_rpath
976with_libiconv_prefix
977with_libiconv_type
978enable_sjlj_exceptions
979with_gcc_major_version_only
980enable_secureplt
981enable_mingw_wildcard
982enable_large_address_aware
983enable_leading_mingw64_underscores
984enable_cld
985enable_frame_pointer
986enable_win32_registry
987enable_static
988with_pic
989enable_fast_install
990enable_libtool_lock
991enable_ld
992enable_gold
993with_plugin_ld
994enable_gnu_indirect_function
995enable_initfini_array
996enable_comdat
997enable_newlib_nano_formatted_io
998enable_standard_branch_protection
999enable_fix_cortex_a53_835769
1000enable_fix_cortex_a53_843419
1001with_glibc_version
1002enable_gnu_unique_object
1003enable_linker_build_id
1004enable_libssp
1005enable_default_ssp
1006with_long_double_128
1007with_long_double_format
1008with_gc
1009with_system_zlib
1010enable_maintainer_mode
1011enable_link_mutex
1012enable_version_specific_runtime_libs
1013enable_plugin
1014enable_host_shared
1015enable_libquadmath_support
1016with_linker_hash_style
1017with_diagnostics_color
1018with_diagnostics_urls
1019enable_default_pie
1020'
1021      ac_precious_vars='build_alias
1022host_alias
1023target_alias
1024CC
1025CFLAGS
1026LDFLAGS
1027LIBS
1028CPPFLAGS
1029CXX
1030CXXFLAGS
1031CCC
1032CXXCPP
1033CPP
1034GMPLIBS
1035GMPINC
1036ISLLIBS
1037ISLINC'
1038
1039
1040# Initialize some variables set by options.
1041ac_init_help=
1042ac_init_version=false
1043ac_unrecognized_opts=
1044ac_unrecognized_sep=
1045# The variables have the same names as the options, with
1046# dashes changed to underlines.
1047cache_file=/dev/null
1048exec_prefix=NONE
1049no_create=
1050no_recursion=
1051prefix=NONE
1052program_prefix=NONE
1053program_suffix=NONE
1054program_transform_name=s,x,x,
1055silent=
1056site=
1057srcdir=
1058verbose=
1059x_includes=NONE
1060x_libraries=NONE
1061
1062# Installation directory options.
1063# These are left unexpanded so users can "make install exec_prefix=/foo"
1064# and all the variables that are supposed to be based on exec_prefix
1065# by default will actually change.
1066# Use braces instead of parens because sh, perl, etc. also accept them.
1067# (The list follows the same order as the GNU Coding Standards.)
1068bindir='${exec_prefix}/bin'
1069sbindir='${exec_prefix}/sbin'
1070libexecdir='${exec_prefix}/libexec'
1071datarootdir='${prefix}/share'
1072datadir='${datarootdir}'
1073sysconfdir='${prefix}/etc'
1074sharedstatedir='${prefix}/com'
1075localstatedir='${prefix}/var'
1076includedir='${prefix}/include'
1077oldincludedir='/usr/include'
1078docdir='${datarootdir}/doc/${PACKAGE}'
1079infodir='${datarootdir}/info'
1080htmldir='${docdir}'
1081dvidir='${docdir}'
1082pdfdir='${docdir}'
1083psdir='${docdir}'
1084libdir='${exec_prefix}/lib'
1085localedir='${datarootdir}/locale'
1086mandir='${datarootdir}/man'
1087
1088ac_prev=
1089ac_dashdash=
1090for ac_option
1091do
1092  # If the previous option needs an argument, assign it.
1093  if test -n "$ac_prev"; then
1094    eval $ac_prev=\$ac_option
1095    ac_prev=
1096    continue
1097  fi
1098
1099  case $ac_option in
1100  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1101  *=)   ac_optarg= ;;
1102  *)    ac_optarg=yes ;;
1103  esac
1104
1105  # Accept the important Cygnus configure options, so we can diagnose typos.
1106
1107  case $ac_dashdash$ac_option in
1108  --)
1109    ac_dashdash=yes ;;
1110
1111  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1112    ac_prev=bindir ;;
1113  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1114    bindir=$ac_optarg ;;
1115
1116  -build | --build | --buil | --bui | --bu)
1117    ac_prev=build_alias ;;
1118  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1119    build_alias=$ac_optarg ;;
1120
1121  -cache-file | --cache-file | --cache-fil | --cache-fi \
1122  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1123    ac_prev=cache_file ;;
1124  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1125  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1126    cache_file=$ac_optarg ;;
1127
1128  --config-cache | -C)
1129    cache_file=config.cache ;;
1130
1131  -datadir | --datadir | --datadi | --datad)
1132    ac_prev=datadir ;;
1133  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1134    datadir=$ac_optarg ;;
1135
1136  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1137  | --dataroo | --dataro | --datar)
1138    ac_prev=datarootdir ;;
1139  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1140  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1141    datarootdir=$ac_optarg ;;
1142
1143  -disable-* | --disable-*)
1144    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1145    # Reject names that are not valid shell variable names.
1146    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147      as_fn_error $? "invalid feature name: $ac_useropt"
1148    ac_useropt_orig=$ac_useropt
1149    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150    case $ac_user_opts in
1151      *"
1152"enable_$ac_useropt"
1153"*) ;;
1154      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1155	 ac_unrecognized_sep=', ';;
1156    esac
1157    eval enable_$ac_useropt=no ;;
1158
1159  -docdir | --docdir | --docdi | --doc | --do)
1160    ac_prev=docdir ;;
1161  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162    docdir=$ac_optarg ;;
1163
1164  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1165    ac_prev=dvidir ;;
1166  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167    dvidir=$ac_optarg ;;
1168
1169  -enable-* | --enable-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      as_fn_error $? "invalid feature name: $ac_useropt"
1174    ac_useropt_orig=$ac_useropt
1175    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176    case $ac_user_opts in
1177      *"
1178"enable_$ac_useropt"
1179"*) ;;
1180      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1181	 ac_unrecognized_sep=', ';;
1182    esac
1183    eval enable_$ac_useropt=\$ac_optarg ;;
1184
1185  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1186  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1187  | --exec | --exe | --ex)
1188    ac_prev=exec_prefix ;;
1189  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1190  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1191  | --exec=* | --exe=* | --ex=*)
1192    exec_prefix=$ac_optarg ;;
1193
1194  -gas | --gas | --ga | --g)
1195    # Obsolete; use --with-gas.
1196    with_gas=yes ;;
1197
1198  -help | --help | --hel | --he | -h)
1199    ac_init_help=long ;;
1200  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1201    ac_init_help=recursive ;;
1202  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1203    ac_init_help=short ;;
1204
1205  -host | --host | --hos | --ho)
1206    ac_prev=host_alias ;;
1207  -host=* | --host=* | --hos=* | --ho=*)
1208    host_alias=$ac_optarg ;;
1209
1210  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1211    ac_prev=htmldir ;;
1212  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1213  | --ht=*)
1214    htmldir=$ac_optarg ;;
1215
1216  -includedir | --includedir | --includedi | --included | --include \
1217  | --includ | --inclu | --incl | --inc)
1218    ac_prev=includedir ;;
1219  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1220  | --includ=* | --inclu=* | --incl=* | --inc=*)
1221    includedir=$ac_optarg ;;
1222
1223  -infodir | --infodir | --infodi | --infod | --info | --inf)
1224    ac_prev=infodir ;;
1225  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1226    infodir=$ac_optarg ;;
1227
1228  -libdir | --libdir | --libdi | --libd)
1229    ac_prev=libdir ;;
1230  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1231    libdir=$ac_optarg ;;
1232
1233  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1234  | --libexe | --libex | --libe)
1235    ac_prev=libexecdir ;;
1236  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1237  | --libexe=* | --libex=* | --libe=*)
1238    libexecdir=$ac_optarg ;;
1239
1240  -localedir | --localedir | --localedi | --localed | --locale)
1241    ac_prev=localedir ;;
1242  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1243    localedir=$ac_optarg ;;
1244
1245  -localstatedir | --localstatedir | --localstatedi | --localstated \
1246  | --localstate | --localstat | --localsta | --localst | --locals)
1247    ac_prev=localstatedir ;;
1248  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1250    localstatedir=$ac_optarg ;;
1251
1252  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1253    ac_prev=mandir ;;
1254  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1255    mandir=$ac_optarg ;;
1256
1257  -nfp | --nfp | --nf)
1258    # Obsolete; use --without-fp.
1259    with_fp=no ;;
1260
1261  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1262  | --no-cr | --no-c | -n)
1263    no_create=yes ;;
1264
1265  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1266  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1267    no_recursion=yes ;;
1268
1269  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1270  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1271  | --oldin | --oldi | --old | --ol | --o)
1272    ac_prev=oldincludedir ;;
1273  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1274  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1275  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1276    oldincludedir=$ac_optarg ;;
1277
1278  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1279    ac_prev=prefix ;;
1280  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1281    prefix=$ac_optarg ;;
1282
1283  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1284  | --program-pre | --program-pr | --program-p)
1285    ac_prev=program_prefix ;;
1286  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1287  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1288    program_prefix=$ac_optarg ;;
1289
1290  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1291  | --program-suf | --program-su | --program-s)
1292    ac_prev=program_suffix ;;
1293  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1294  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1295    program_suffix=$ac_optarg ;;
1296
1297  -program-transform-name | --program-transform-name \
1298  | --program-transform-nam | --program-transform-na \
1299  | --program-transform-n | --program-transform- \
1300  | --program-transform | --program-transfor \
1301  | --program-transfo | --program-transf \
1302  | --program-trans | --program-tran \
1303  | --progr-tra | --program-tr | --program-t)
1304    ac_prev=program_transform_name ;;
1305  -program-transform-name=* | --program-transform-name=* \
1306  | --program-transform-nam=* | --program-transform-na=* \
1307  | --program-transform-n=* | --program-transform-=* \
1308  | --program-transform=* | --program-transfor=* \
1309  | --program-transfo=* | --program-transf=* \
1310  | --program-trans=* | --program-tran=* \
1311  | --progr-tra=* | --program-tr=* | --program-t=*)
1312    program_transform_name=$ac_optarg ;;
1313
1314  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1315    ac_prev=pdfdir ;;
1316  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1317    pdfdir=$ac_optarg ;;
1318
1319  -psdir | --psdir | --psdi | --psd | --ps)
1320    ac_prev=psdir ;;
1321  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1322    psdir=$ac_optarg ;;
1323
1324  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325  | -silent | --silent | --silen | --sile | --sil)
1326    silent=yes ;;
1327
1328  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1329    ac_prev=sbindir ;;
1330  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1331  | --sbi=* | --sb=*)
1332    sbindir=$ac_optarg ;;
1333
1334  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1335  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1336  | --sharedst | --shareds | --shared | --share | --shar \
1337  | --sha | --sh)
1338    ac_prev=sharedstatedir ;;
1339  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1340  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1341  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1342  | --sha=* | --sh=*)
1343    sharedstatedir=$ac_optarg ;;
1344
1345  -site | --site | --sit)
1346    ac_prev=site ;;
1347  -site=* | --site=* | --sit=*)
1348    site=$ac_optarg ;;
1349
1350  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1351    ac_prev=srcdir ;;
1352  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1353    srcdir=$ac_optarg ;;
1354
1355  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1356  | --syscon | --sysco | --sysc | --sys | --sy)
1357    ac_prev=sysconfdir ;;
1358  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1359  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1360    sysconfdir=$ac_optarg ;;
1361
1362  -target | --target | --targe | --targ | --tar | --ta | --t)
1363    ac_prev=target_alias ;;
1364  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1365    target_alias=$ac_optarg ;;
1366
1367  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1368    verbose=yes ;;
1369
1370  -version | --version | --versio | --versi | --vers | -V)
1371    ac_init_version=: ;;
1372
1373  -with-* | --with-*)
1374    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1375    # Reject names that are not valid shell variable names.
1376    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377      as_fn_error $? "invalid package name: $ac_useropt"
1378    ac_useropt_orig=$ac_useropt
1379    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380    case $ac_user_opts in
1381      *"
1382"with_$ac_useropt"
1383"*) ;;
1384      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1385	 ac_unrecognized_sep=', ';;
1386    esac
1387    eval with_$ac_useropt=\$ac_optarg ;;
1388
1389  -without-* | --without-*)
1390    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391    # Reject names that are not valid shell variable names.
1392    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1393      as_fn_error $? "invalid package name: $ac_useropt"
1394    ac_useropt_orig=$ac_useropt
1395    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1396    case $ac_user_opts in
1397      *"
1398"with_$ac_useropt"
1399"*) ;;
1400      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1401	 ac_unrecognized_sep=', ';;
1402    esac
1403    eval with_$ac_useropt=no ;;
1404
1405  --x)
1406    # Obsolete; use --with-x.
1407    with_x=yes ;;
1408
1409  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410  | --x-incl | --x-inc | --x-in | --x-i)
1411    ac_prev=x_includes ;;
1412  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414    x_includes=$ac_optarg ;;
1415
1416  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418    ac_prev=x_libraries ;;
1419  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421    x_libraries=$ac_optarg ;;
1422
1423  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1424Try \`$0 --help' for more information"
1425    ;;
1426
1427  *=*)
1428    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1429    # Reject names that are not valid shell variable names.
1430    case $ac_envvar in #(
1431      '' | [0-9]* | *[!_$as_cr_alnum]* )
1432      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1433    esac
1434    eval $ac_envvar=\$ac_optarg
1435    export $ac_envvar ;;
1436
1437  *)
1438    # FIXME: should be removed in autoconf 3.0.
1439    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1443    ;;
1444
1445  esac
1446done
1447
1448if test -n "$ac_prev"; then
1449  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450  as_fn_error $? "missing argument to $ac_option"
1451fi
1452
1453if test -n "$ac_unrecognized_opts"; then
1454  case $enable_option_checking in
1455    no) ;;
1456    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1457    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1458  esac
1459fi
1460
1461# Check all directory arguments for consistency.
1462for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1463		datadir sysconfdir sharedstatedir localstatedir includedir \
1464		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1465		libdir localedir mandir
1466do
1467  eval ac_val=\$$ac_var
1468  # Remove trailing slashes.
1469  case $ac_val in
1470    */ )
1471      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1472      eval $ac_var=\$ac_val;;
1473  esac
1474  # Be sure to have absolute directory names.
1475  case $ac_val in
1476    [\\/$]* | ?:[\\/]* )  continue;;
1477    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1478  esac
1479  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1480done
1481
1482# There might be people who depend on the old broken behavior: `$host'
1483# used to hold the argument of --host etc.
1484# FIXME: To remove some day.
1485build=$build_alias
1486host=$host_alias
1487target=$target_alias
1488
1489# FIXME: To remove some day.
1490if test "x$host_alias" != x; then
1491  if test "x$build_alias" = x; then
1492    cross_compiling=maybe
1493  elif test "x$build_alias" != "x$host_alias"; then
1494    cross_compiling=yes
1495  fi
1496fi
1497
1498ac_tool_prefix=
1499test -n "$host_alias" && ac_tool_prefix=$host_alias-
1500
1501test "$silent" = yes && exec 6>/dev/null
1502
1503
1504ac_pwd=`pwd` && test -n "$ac_pwd" &&
1505ac_ls_di=`ls -di .` &&
1506ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1507  as_fn_error $? "working directory cannot be determined"
1508test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1509  as_fn_error $? "pwd does not report name of working directory"
1510
1511
1512# Find the source files, if location was not specified.
1513if test -z "$srcdir"; then
1514  ac_srcdir_defaulted=yes
1515  # Try the directory containing this script, then the parent directory.
1516  ac_confdir=`$as_dirname -- "$as_myself" ||
1517$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1518	 X"$as_myself" : 'X\(//\)[^/]' \| \
1519	 X"$as_myself" : 'X\(//\)$' \| \
1520	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1521$as_echo X"$as_myself" |
1522    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1523	    s//\1/
1524	    q
1525	  }
1526	  /^X\(\/\/\)[^/].*/{
1527	    s//\1/
1528	    q
1529	  }
1530	  /^X\(\/\/\)$/{
1531	    s//\1/
1532	    q
1533	  }
1534	  /^X\(\/\).*/{
1535	    s//\1/
1536	    q
1537	  }
1538	  s/.*/./; q'`
1539  srcdir=$ac_confdir
1540  if test ! -r "$srcdir/$ac_unique_file"; then
1541    srcdir=..
1542  fi
1543else
1544  ac_srcdir_defaulted=no
1545fi
1546if test ! -r "$srcdir/$ac_unique_file"; then
1547  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1548  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1549fi
1550ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1551ac_abs_confdir=`(
1552	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1553	pwd)`
1554# When building in place, set srcdir=.
1555if test "$ac_abs_confdir" = "$ac_pwd"; then
1556  srcdir=.
1557fi
1558# Remove unnecessary trailing slashes from srcdir.
1559# Double slashes in file names in object file debugging info
1560# mess up M-x gdb in Emacs.
1561case $srcdir in
1562*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1563esac
1564for ac_var in $ac_precious_vars; do
1565  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1566  eval ac_env_${ac_var}_value=\$${ac_var}
1567  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1568  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1569done
1570
1571#
1572# Report the --help message.
1573#
1574if test "$ac_init_help" = "long"; then
1575  # Omit some internal or obsolete options to make the list less imposing.
1576  # This message is too long to be a string in the A/UX 3.1 sh.
1577  cat <<_ACEOF
1578\`configure' configures this package to adapt to many kinds of systems.
1579
1580Usage: $0 [OPTION]... [VAR=VALUE]...
1581
1582To assign environment variables (e.g., CC, CFLAGS...), specify them as
1583VAR=VALUE.  See below for descriptions of some of the useful variables.
1584
1585Defaults for the options are specified in brackets.
1586
1587Configuration:
1588  -h, --help              display this help and exit
1589      --help=short        display options specific to this package
1590      --help=recursive    display the short help of all the included packages
1591  -V, --version           display version information and exit
1592  -q, --quiet, --silent   do not print \`checking ...' messages
1593      --cache-file=FILE   cache test results in FILE [disabled]
1594  -C, --config-cache      alias for \`--cache-file=config.cache'
1595  -n, --no-create         do not create output files
1596      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1597
1598Installation directories:
1599  --prefix=PREFIX         install architecture-independent files in PREFIX
1600                          [$ac_default_prefix]
1601  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1602                          [PREFIX]
1603
1604By default, \`make install' will install all the files in
1605\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1606an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1607for instance \`--prefix=\$HOME'.
1608
1609For better control, use the options below.
1610
1611Fine tuning of the installation directories:
1612  --bindir=DIR            user executables [EPREFIX/bin]
1613  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1614  --libexecdir=DIR        program executables [EPREFIX/libexec]
1615  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1616  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1617  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1618  --libdir=DIR            object code libraries [EPREFIX/lib]
1619  --includedir=DIR        C header files [PREFIX/include]
1620  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1621  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1622  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1623  --infodir=DIR           info documentation [DATAROOTDIR/info]
1624  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1625  --mandir=DIR            man documentation [DATAROOTDIR/man]
1626  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1627  --htmldir=DIR           html documentation [DOCDIR]
1628  --dvidir=DIR            dvi documentation [DOCDIR]
1629  --pdfdir=DIR            pdf documentation [DOCDIR]
1630  --psdir=DIR             ps documentation [DOCDIR]
1631_ACEOF
1632
1633  cat <<\_ACEOF
1634
1635Program names:
1636  --program-prefix=PREFIX            prepend PREFIX to installed program names
1637  --program-suffix=SUFFIX            append SUFFIX to installed program names
1638  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1639
1640System types:
1641  --build=BUILD     configure for building on BUILD [guessed]
1642  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1643  --target=TARGET   configure for building compilers for TARGET [HOST]
1644_ACEOF
1645fi
1646
1647if test -n "$ac_init_help"; then
1648
1649  cat <<\_ACEOF
1650
1651Optional Features:
1652  --disable-option-checking  ignore unrecognized --enable/--with options
1653  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1654  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1655  --enable-generated-files-in-srcdir
1656                          put copies of generated files in source dir intended
1657                          for creating source tarballs for users without
1658                          texinfo bison or flex
1659  --disable-largefile     omit support for large files
1660  --disable-build-format-warnings
1661                          don't use -Wformat while building GCC
1662  --enable-werror-always  enable -Werror despite compiler version
1663  --enable-checking[=LIST]
1664                          enable expensive run-time checks. With LIST, enable
1665                          only specific categories of checks. Categories are:
1666                          yes,no,all,none,release. Flags are:
1667                          assert,df,extra,fold,gc,gcac,gimple,misc,
1668                          rtlflag,rtl,runtime,tree,valgrind,types
1669  --enable-coverage[=LEVEL]
1670                          enable compiler's code coverage collection. Use to
1671                          measure compiler performance and locate unused parts
1672                          of the compiler. With LEVEL, specify optimization.
1673                          Values are opt, noopt, default is noopt
1674  --enable-gather-detailed-mem-stats
1675                          enable detailed memory allocation stats gathering
1676  --enable-valgrind-annotations
1677                          enable valgrind runtime interaction
1678  --enable-multilib       enable library support for multiple ABIs
1679  --enable-multiarch      enable support for multiarch paths
1680  --enable-__cxa_atexit   enable __cxa_atexit for C++
1681  --enable-decimal-float={no,yes,bid,dpd}
1682			enable decimal float extension to C.  Selecting 'bid'
1683			or 'dpd' choses which decimal floating point format
1684			to use
1685  --enable-fixed-point    enable fixed-point arithmetic extension to C
1686  --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1687                          package
1688  --enable-tls            enable or disable generation of tls code overriding
1689                          the assembler check for tls support
1690  --enable-vtable-verify  enable vtable verification feature
1691  --disable-analyzer      disable -fanalyzer static analyzer
1692  --enable-objc-gc        enable the use of Boehm's garbage collector with the
1693                          GNU Objective-C runtime
1694  --disable-shared        don't provide a shared libgcc
1695  --disable-gcov          don't provide libgcov and related host tools
1696  --enable-languages=LIST specify which front-ends to build
1697  --disable-rpath         do not hardcode runtime library paths
1698  --enable-sjlj-exceptions
1699                          arrange to use setjmp/longjmp exception handling
1700  --enable-secureplt      enable -msecure-plt by default for PowerPC
1701  --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1702                          Default to platform configuration
1703  --enable-large-address-aware
1704                          Link mingw executables with --large-address-aware
1705  --enable-leading-mingw64-underscores
1706                          enable leading underscores on 64 bit mingw targets
1707  --enable-cld            enable -mcld by default for 32bit x86
1708  --enable-frame-pointer  enable -fno-omit-frame-pointer by default for x86
1709  --disable-win32-registry
1710                          disable lookup of installation paths in the Registry
1711                          on Windows hosts
1712  --enable-win32-registry enable registry lookup (default)
1713  --enable-win32-registry=KEY
1714                          use KEY instead of GCC version as the last portion
1715                          of the registry key
1716  --enable-shared[=PKGS]  build shared libraries [default=yes]
1717  --enable-static[=PKGS]  build static libraries [default=yes]
1718  --enable-fast-install[=PKGS]
1719                          optimize for fast installation [default=yes]
1720  --disable-libtool-lock  avoid locking (might break parallel builds)
1721  --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1722  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1723  --enable-gnu-indirect-function
1724                          enable the use of the @gnu_indirect_function to
1725                          glibc systems
1726  --enable-initfini-array	use .init_array/.fini_array sections
1727  --enable-comdat         enable COMDAT group support
1728  --enable-newlib-nano-formatted-io
1729                          Use nano version formatted IO
1730
1731  --enable-standard-branch-protection
1732                          enable Branch Target Identification Mechanism and
1733                          Return Address Signing by default for AArch64
1734  --disable-standard-branch-protection
1735                          disable Branch Target Identification Mechanism and
1736                          Return Address Signing by default for AArch64
1737
1738
1739  --enable-fix-cortex-a53-835769
1740                          enable workaround for AArch64 Cortex-A53 erratum
1741                          835769 by default
1742  --disable-fix-cortex-a53-835769
1743                          disable workaround for AArch64 Cortex-A53 erratum
1744                          835769 by default
1745
1746
1747  --enable-fix-cortex-a53-843419
1748                          enable workaround for AArch64 Cortex-A53 erratum
1749                          843419 by default
1750  --disable-fix-cortex-a53-843419
1751                          disable workaround for AArch64 Cortex-A53 erratum
1752                          843419 by default
1753
1754  --enable-gnu-unique-object
1755                          enable the use of the @gnu_unique_object ELF
1756                          extension on glibc systems
1757  --enable-linker-build-id
1758                          compiler will always pass --build-id to linker
1759  --enable-libssp         enable linking against libssp
1760  --enable-default-ssp    enable Stack Smashing Protection as default
1761  --enable-maintainer-mode
1762                          enable make rules and dependencies not useful (and
1763                          sometimes confusing) to the casual installer
1764  --enable-link-mutex     avoid linking multiple front-ends at once to avoid
1765                          thrashing on the build machine
1766  --enable-version-specific-runtime-libs
1767                          specify that runtime libraries should be installed
1768                          in a compiler-specific directory
1769  --enable-plugin         enable plugin support
1770  --enable-host-shared    build host code as shared libraries
1771  --disable-libquadmath-support
1772                          disable libquadmath support for Fortran
1773  --enable-default-pie    enable Position Independent Executable as default
1774
1775Optional Packages:
1776  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1777  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1778  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1779  --with-local-prefix=DIR specifies directory to put local include
1780  --with-native-system-header-dir=dir
1781                          use dir as the directory to look for standard
1782                          system header files in.  Defaults to /usr/include.
1783  --with-build-sysroot=sysroot
1784                          use sysroot as the system root during the build
1785  --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1786  --with-gxx-include-dir=DIR
1787                          specifies directory to put g++ header files
1788  --with-cpp-install-dir=DIR
1789                          install the user visible C preprocessor in DIR
1790                          (relative to PREFIX) as well as PREFIX/bin
1791  --with-gnu-ld           arrange to work with GNU ld
1792  --with-ld               arrange to use the specified ld (full pathname)
1793  --with-demangler-in-ld  try to use demangler in GNU ld
1794  --with-gnu-as           arrange to work with GNU as
1795  --with-as               arrange to use the specified as (full pathname)
1796  --with-stabs            arrange to use stabs instead of host debug format
1797  --with-stack-clash-protection-guard-size=size
1798                          Set the default stack clash protection guard size
1799                          for specific targets as a power of two in bytes.
1800  --with-dwarf2           force the default debug format to be DWARF 2
1801  --with-specs=SPECS      add SPECS to driver command-line processing
1802  --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1803  --with-bugurl=URL       Direct users to URL to report a bug
1804  --with-documentation-root-url=URL
1805                          Root for documentation URLs
1806  --with-changes-root-url=URL
1807                          Root for GCC changes URLs
1808  --with-multilib-list    select multilibs (AArch64, SH and x86-64 only)
1809  --with-zstd=PATH        specify prefix directory for installed zstd library.
1810                          Equivalent to --with-zstd-include=PATH/include plus
1811                          --with-zstd-lib=PATH/lib
1812  --with-zstd-include=PATH
1813                          specify directory for installed zstd include files
1814  --with-zstd-lib=PATH    specify directory for the installed zstd library
1815  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1816  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1817  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1818  --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
1819  --with-gcc-major-version-only
1820                          use only GCC major number in filesystem paths
1821  --with-pic              try to use only PIC/non-PIC objects [default=use
1822                          both]
1823  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1824  --with-plugin-ld=[ARG]  specify the plugin linker
1825  --with-glibc-version=M.N
1826                          assume GCC used with glibc version M.N or later
1827  --with-long-double-128  use 128-bit long double by default
1828  --with-long-double-format={ieee,ibm}
1829		  Specify whether PowerPC long double uses IEEE or IBM format
1830
1831  --with-gc={page,zone}   this option is not supported anymore. It used to
1832                          choose the garbage collection mechanism to use with
1833                          the compiler
1834  --with-system-zlib      use installed libz
1835  --with-linker-hash-style={sysv,gnu,both}
1836                          specify the linker hash style
1837  --with-diagnostics-color={never,auto,auto-if-env,always}
1838                          specify the default of -fdiagnostics-color option
1839                          auto-if-env stands for -fdiagnostics-color=auto if
1840                          GCC_COLOR environment variable is present and
1841                          -fdiagnostics-color=never otherwise
1842  --with-diagnostics-urls={never,auto,auto-if-env,always}
1843                          specify the default of -fdiagnostics-urls option
1844                          auto-if-env stands for -fdiagnostics-urls=auto if
1845                          GCC_URLS or TERM_URLS environment variable is
1846                          present and -fdiagnostics-urls=never otherwise
1847
1848Some influential environment variables:
1849  CC          C compiler command
1850  CFLAGS      C compiler flags
1851  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1852              nonstandard directory <lib dir>
1853  LIBS        libraries to pass to the linker, e.g. -l<library>
1854  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1855              you have headers in a nonstandard directory <include dir>
1856  CXX         C++ compiler command
1857  CXXFLAGS    C++ compiler flags
1858  CXXCPP      C++ preprocessor
1859  CPP         C preprocessor
1860  GMPLIBS     How to link GMP
1861  GMPINC      How to find GMP include files
1862  ISLLIBS     How to link isl
1863  ISLINC      How to find isl include files
1864
1865Use these variables to override the choices made by `configure' or to help
1866it to find libraries and programs with nonstandard names/locations.
1867
1868Report bugs to the package provider.
1869_ACEOF
1870ac_status=$?
1871fi
1872
1873if test "$ac_init_help" = "recursive"; then
1874  # If there are subdirs, report their specific --help.
1875  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1876    test -d "$ac_dir" ||
1877      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1878      continue
1879    ac_builddir=.
1880
1881case "$ac_dir" in
1882.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1883*)
1884  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1885  # A ".." for each directory in $ac_dir_suffix.
1886  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1887  case $ac_top_builddir_sub in
1888  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1889  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1890  esac ;;
1891esac
1892ac_abs_top_builddir=$ac_pwd
1893ac_abs_builddir=$ac_pwd$ac_dir_suffix
1894# for backward compatibility:
1895ac_top_builddir=$ac_top_build_prefix
1896
1897case $srcdir in
1898  .)  # We are building in place.
1899    ac_srcdir=.
1900    ac_top_srcdir=$ac_top_builddir_sub
1901    ac_abs_top_srcdir=$ac_pwd ;;
1902  [\\/]* | ?:[\\/]* )  # Absolute name.
1903    ac_srcdir=$srcdir$ac_dir_suffix;
1904    ac_top_srcdir=$srcdir
1905    ac_abs_top_srcdir=$srcdir ;;
1906  *) # Relative name.
1907    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1908    ac_top_srcdir=$ac_top_build_prefix$srcdir
1909    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1910esac
1911ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1912
1913    cd "$ac_dir" || { ac_status=$?; continue; }
1914    # Check for guested configure.
1915    if test -f "$ac_srcdir/configure.gnu"; then
1916      echo &&
1917      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1918    elif test -f "$ac_srcdir/configure"; then
1919      echo &&
1920      $SHELL "$ac_srcdir/configure" --help=recursive
1921    else
1922      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1923    fi || ac_status=$?
1924    cd "$ac_pwd" || { ac_status=$?; break; }
1925  done
1926fi
1927
1928test -n "$ac_init_help" && exit $ac_status
1929if $ac_init_version; then
1930  cat <<\_ACEOF
1931configure
1932generated by GNU Autoconf 2.69
1933
1934Copyright (C) 2012 Free Software Foundation, Inc.
1935This configure script is free software; the Free Software Foundation
1936gives unlimited permission to copy, distribute and modify it.
1937_ACEOF
1938  exit
1939fi
1940
1941## ------------------------ ##
1942## Autoconf initialization. ##
1943## ------------------------ ##
1944
1945# ac_fn_c_try_compile LINENO
1946# --------------------------
1947# Try to compile conftest.$ac_ext, and return whether this succeeded.
1948ac_fn_c_try_compile ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  rm -f conftest.$ac_objext
1952  if { { ac_try="$ac_compile"
1953case "(($ac_try" in
1954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955  *) ac_try_echo=$ac_try;;
1956esac
1957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958$as_echo "$ac_try_echo"; } >&5
1959  (eval "$ac_compile") 2>conftest.err
1960  ac_status=$?
1961  if test -s conftest.err; then
1962    grep -v '^ *+' conftest.err >conftest.er1
1963    cat conftest.er1 >&5
1964    mv -f conftest.er1 conftest.err
1965  fi
1966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967  test $ac_status = 0; } && {
1968	 test -z "$ac_c_werror_flag" ||
1969	 test ! -s conftest.err
1970       } && test -s conftest.$ac_objext; then :
1971  ac_retval=0
1972else
1973  $as_echo "$as_me: failed program was:" >&5
1974sed 's/^/| /' conftest.$ac_ext >&5
1975
1976	ac_retval=1
1977fi
1978  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979  as_fn_set_status $ac_retval
1980
1981} # ac_fn_c_try_compile
1982
1983# ac_fn_cxx_try_compile LINENO
1984# ----------------------------
1985# Try to compile conftest.$ac_ext, and return whether this succeeded.
1986ac_fn_cxx_try_compile ()
1987{
1988  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989  rm -f conftest.$ac_objext
1990  if { { ac_try="$ac_compile"
1991case "(($ac_try" in
1992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993  *) ac_try_echo=$ac_try;;
1994esac
1995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996$as_echo "$ac_try_echo"; } >&5
1997  (eval "$ac_compile") 2>conftest.err
1998  ac_status=$?
1999  if test -s conftest.err; then
2000    grep -v '^ *+' conftest.err >conftest.er1
2001    cat conftest.er1 >&5
2002    mv -f conftest.er1 conftest.err
2003  fi
2004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005  test $ac_status = 0; } && {
2006	 test -z "$ac_cxx_werror_flag" ||
2007	 test ! -s conftest.err
2008       } && test -s conftest.$ac_objext; then :
2009  ac_retval=0
2010else
2011  $as_echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
2013
2014	ac_retval=1
2015fi
2016  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017  as_fn_set_status $ac_retval
2018
2019} # ac_fn_cxx_try_compile
2020
2021# ac_fn_cxx_try_cpp LINENO
2022# ------------------------
2023# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2024ac_fn_cxx_try_cpp ()
2025{
2026  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027  if { { ac_try="$ac_cpp conftest.$ac_ext"
2028case "(($ac_try" in
2029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030  *) ac_try_echo=$ac_try;;
2031esac
2032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033$as_echo "$ac_try_echo"; } >&5
2034  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2035  ac_status=$?
2036  if test -s conftest.err; then
2037    grep -v '^ *+' conftest.err >conftest.er1
2038    cat conftest.er1 >&5
2039    mv -f conftest.er1 conftest.err
2040  fi
2041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042  test $ac_status = 0; } > conftest.i && {
2043	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2044	 test ! -s conftest.err
2045       }; then :
2046  ac_retval=0
2047else
2048  $as_echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051    ac_retval=1
2052fi
2053  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054  as_fn_set_status $ac_retval
2055
2056} # ac_fn_cxx_try_cpp
2057
2058# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2059# ---------------------------------------------------------
2060# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2061# the include files in INCLUDES and setting the cache variable VAR
2062# accordingly.
2063ac_fn_cxx_check_header_mongrel ()
2064{
2065  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066  if eval \${$3+:} false; then :
2067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068$as_echo_n "checking for $2... " >&6; }
2069if eval \${$3+:} false; then :
2070  $as_echo_n "(cached) " >&6
2071fi
2072eval ac_res=\$$3
2073	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074$as_echo "$ac_res" >&6; }
2075else
2076  # Is the header compilable?
2077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2078$as_echo_n "checking $2 usability... " >&6; }
2079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h.  */
2081$4
2082#include <$2>
2083_ACEOF
2084if ac_fn_cxx_try_compile "$LINENO"; then :
2085  ac_header_compiler=yes
2086else
2087  ac_header_compiler=no
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2091$as_echo "$ac_header_compiler" >&6; }
2092
2093# Is the header present?
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2095$as_echo_n "checking $2 presence... " >&6; }
2096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h.  */
2098#include <$2>
2099_ACEOF
2100if ac_fn_cxx_try_cpp "$LINENO"; then :
2101  ac_header_preproc=yes
2102else
2103  ac_header_preproc=no
2104fi
2105rm -f conftest.err conftest.i conftest.$ac_ext
2106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2107$as_echo "$ac_header_preproc" >&6; }
2108
2109# So?  What about this header?
2110case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2111  yes:no: )
2112    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2113$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2114    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2115$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2116    ;;
2117  no:yes:* )
2118    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2119$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2120    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2121$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2122    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2123$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2124    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2125$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2126    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2127$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2128    ;;
2129esac
2130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131$as_echo_n "checking for $2... " >&6; }
2132if eval \${$3+:} false; then :
2133  $as_echo_n "(cached) " >&6
2134else
2135  eval "$3=\$ac_header_compiler"
2136fi
2137eval ac_res=\$$3
2138	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139$as_echo "$ac_res" >&6; }
2140fi
2141  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142
2143} # ac_fn_cxx_check_header_mongrel
2144
2145# ac_fn_cxx_try_run LINENO
2146# ------------------------
2147# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2148# that executables *can* be run.
2149ac_fn_cxx_try_run ()
2150{
2151  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152  if { { ac_try="$ac_link"
2153case "(($ac_try" in
2154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155  *) ac_try_echo=$ac_try;;
2156esac
2157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158$as_echo "$ac_try_echo"; } >&5
2159  (eval "$ac_link") 2>&5
2160  ac_status=$?
2161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2163  { { case "(($ac_try" in
2164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165  *) ac_try_echo=$ac_try;;
2166esac
2167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2168$as_echo "$ac_try_echo"; } >&5
2169  (eval "$ac_try") 2>&5
2170  ac_status=$?
2171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172  test $ac_status = 0; }; }; then :
2173  ac_retval=0
2174else
2175  $as_echo "$as_me: program exited with status $ac_status" >&5
2176       $as_echo "$as_me: failed program was:" >&5
2177sed 's/^/| /' conftest.$ac_ext >&5
2178
2179       ac_retval=$ac_status
2180fi
2181  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2182  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183  as_fn_set_status $ac_retval
2184
2185} # ac_fn_cxx_try_run
2186
2187# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2188# ---------------------------------------------------------
2189# Tests whether HEADER exists and can be compiled using the include files in
2190# INCLUDES, setting the cache variable VAR accordingly.
2191ac_fn_cxx_check_header_compile ()
2192{
2193  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2195$as_echo_n "checking for $2... " >&6; }
2196if eval \${$3+:} false; then :
2197  $as_echo_n "(cached) " >&6
2198else
2199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h.  */
2201$4
2202#include <$2>
2203_ACEOF
2204if ac_fn_cxx_try_compile "$LINENO"; then :
2205  eval "$3=yes"
2206else
2207  eval "$3=no"
2208fi
2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210fi
2211eval ac_res=\$$3
2212	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213$as_echo "$ac_res" >&6; }
2214  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215
2216} # ac_fn_cxx_check_header_compile
2217
2218# ac_fn_c_try_cpp LINENO
2219# ----------------------
2220# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2221ac_fn_c_try_cpp ()
2222{
2223  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224  if { { ac_try="$ac_cpp conftest.$ac_ext"
2225case "(($ac_try" in
2226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227  *) ac_try_echo=$ac_try;;
2228esac
2229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2230$as_echo "$ac_try_echo"; } >&5
2231  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2232  ac_status=$?
2233  if test -s conftest.err; then
2234    grep -v '^ *+' conftest.err >conftest.er1
2235    cat conftest.er1 >&5
2236    mv -f conftest.er1 conftest.err
2237  fi
2238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2239  test $ac_status = 0; } > conftest.i && {
2240	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2241	 test ! -s conftest.err
2242       }; then :
2243  ac_retval=0
2244else
2245  $as_echo "$as_me: failed program was:" >&5
2246sed 's/^/| /' conftest.$ac_ext >&5
2247
2248    ac_retval=1
2249fi
2250  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251  as_fn_set_status $ac_retval
2252
2253} # ac_fn_c_try_cpp
2254
2255# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2256# ----------------------------------------------
2257# Tries to find the compile-time value of EXPR in a program that includes
2258# INCLUDES, setting VAR accordingly. Returns whether the value could be
2259# computed
2260ac_fn_cxx_compute_int ()
2261{
2262  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263  if test "$cross_compiling" = yes; then
2264    # Depending upon the size, compute the lo and hi bounds.
2265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h.  */
2267$4
2268int
2269main ()
2270{
2271static int test_array [1 - 2 * !(($2) >= 0)];
2272test_array [0] = 0;
2273return test_array [0];
2274
2275  ;
2276  return 0;
2277}
2278_ACEOF
2279if ac_fn_cxx_try_compile "$LINENO"; then :
2280  ac_lo=0 ac_mid=0
2281  while :; do
2282    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283/* end confdefs.h.  */
2284$4
2285int
2286main ()
2287{
2288static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2289test_array [0] = 0;
2290return test_array [0];
2291
2292  ;
2293  return 0;
2294}
2295_ACEOF
2296if ac_fn_cxx_try_compile "$LINENO"; then :
2297  ac_hi=$ac_mid; break
2298else
2299  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2300			if test $ac_lo -le $ac_mid; then
2301			  ac_lo= ac_hi=
2302			  break
2303			fi
2304			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2305fi
2306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307  done
2308else
2309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310/* end confdefs.h.  */
2311$4
2312int
2313main ()
2314{
2315static int test_array [1 - 2 * !(($2) < 0)];
2316test_array [0] = 0;
2317return test_array [0];
2318
2319  ;
2320  return 0;
2321}
2322_ACEOF
2323if ac_fn_cxx_try_compile "$LINENO"; then :
2324  ac_hi=-1 ac_mid=-1
2325  while :; do
2326    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327/* end confdefs.h.  */
2328$4
2329int
2330main ()
2331{
2332static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2333test_array [0] = 0;
2334return test_array [0];
2335
2336  ;
2337  return 0;
2338}
2339_ACEOF
2340if ac_fn_cxx_try_compile "$LINENO"; then :
2341  ac_lo=$ac_mid; break
2342else
2343  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2344			if test $ac_mid -le $ac_hi; then
2345			  ac_lo= ac_hi=
2346			  break
2347			fi
2348			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2349fi
2350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351  done
2352else
2353  ac_lo= ac_hi=
2354fi
2355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356fi
2357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358# Binary search between lo and hi bounds.
2359while test "x$ac_lo" != "x$ac_hi"; do
2360  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362/* end confdefs.h.  */
2363$4
2364int
2365main ()
2366{
2367static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2368test_array [0] = 0;
2369return test_array [0];
2370
2371  ;
2372  return 0;
2373}
2374_ACEOF
2375if ac_fn_cxx_try_compile "$LINENO"; then :
2376  ac_hi=$ac_mid
2377else
2378  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2379fi
2380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381done
2382case $ac_lo in #((
2383?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2384'') ac_retval=1 ;;
2385esac
2386  else
2387    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388/* end confdefs.h.  */
2389$4
2390static long int longval () { return $2; }
2391static unsigned long int ulongval () { return $2; }
2392#include <stdio.h>
2393#include <stdlib.h>
2394int
2395main ()
2396{
2397
2398  FILE *f = fopen ("conftest.val", "w");
2399  if (! f)
2400    return 1;
2401  if (($2) < 0)
2402    {
2403      long int i = longval ();
2404      if (i != ($2))
2405	return 1;
2406      fprintf (f, "%ld", i);
2407    }
2408  else
2409    {
2410      unsigned long int i = ulongval ();
2411      if (i != ($2))
2412	return 1;
2413      fprintf (f, "%lu", i);
2414    }
2415  /* Do not output a trailing newline, as this causes \r\n confusion
2416     on some platforms.  */
2417  return ferror (f) || fclose (f) != 0;
2418
2419  ;
2420  return 0;
2421}
2422_ACEOF
2423if ac_fn_cxx_try_run "$LINENO"; then :
2424  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2425else
2426  ac_retval=1
2427fi
2428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2429  conftest.$ac_objext conftest.beam conftest.$ac_ext
2430rm -f conftest.val
2431
2432  fi
2433  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2434  as_fn_set_status $ac_retval
2435
2436} # ac_fn_cxx_compute_int
2437
2438# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2439# ---------------------------------------------
2440# Tests whether TYPE exists after having included INCLUDES, setting cache
2441# variable VAR accordingly.
2442ac_fn_cxx_check_type ()
2443{
2444  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2446$as_echo_n "checking for $2... " >&6; }
2447if eval \${$3+:} false; then :
2448  $as_echo_n "(cached) " >&6
2449else
2450  eval "$3=no"
2451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452/* end confdefs.h.  */
2453$4
2454int
2455main ()
2456{
2457if (sizeof ($2))
2458	 return 0;
2459  ;
2460  return 0;
2461}
2462_ACEOF
2463if ac_fn_cxx_try_compile "$LINENO"; then :
2464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465/* end confdefs.h.  */
2466$4
2467int
2468main ()
2469{
2470if (sizeof (($2)))
2471	    return 0;
2472  ;
2473  return 0;
2474}
2475_ACEOF
2476if ac_fn_cxx_try_compile "$LINENO"; then :
2477
2478else
2479  eval "$3=yes"
2480fi
2481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482fi
2483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484fi
2485eval ac_res=\$$3
2486	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487$as_echo "$ac_res" >&6; }
2488  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2489
2490} # ac_fn_cxx_check_type
2491
2492# ac_fn_c_find_intX_t LINENO BITS VAR
2493# -----------------------------------
2494# Finds a signed integer type with width BITS, setting cache variable VAR
2495# accordingly.
2496ac_fn_c_find_intX_t ()
2497{
2498  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2500$as_echo_n "checking for int$2_t... " >&6; }
2501if eval \${$3+:} false; then :
2502  $as_echo_n "(cached) " >&6
2503else
2504  eval "$3=no"
2505     # Order is important - never check a type that is potentially smaller
2506     # than half of the expected target width.
2507     for ac_type in int$2_t 'int' 'long int' \
2508	 'long long int' 'short int' 'signed char'; do
2509       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510/* end confdefs.h.  */
2511$ac_includes_default
2512	     enum { N = $2 / 2 - 1 };
2513int
2514main ()
2515{
2516static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2517test_array [0] = 0;
2518return test_array [0];
2519
2520  ;
2521  return 0;
2522}
2523_ACEOF
2524if ac_fn_cxx_try_compile "$LINENO"; then :
2525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526/* end confdefs.h.  */
2527$ac_includes_default
2528	        enum { N = $2 / 2 - 1 };
2529int
2530main ()
2531{
2532static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2533		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2534test_array [0] = 0;
2535return test_array [0];
2536
2537  ;
2538  return 0;
2539}
2540_ACEOF
2541if ac_fn_cxx_try_compile "$LINENO"; then :
2542
2543else
2544  case $ac_type in #(
2545  int$2_t) :
2546    eval "$3=yes" ;; #(
2547  *) :
2548    eval "$3=\$ac_type" ;;
2549esac
2550fi
2551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552fi
2553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554       if eval test \"x\$"$3"\" = x"no"; then :
2555
2556else
2557  break
2558fi
2559     done
2560fi
2561eval ac_res=\$$3
2562	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563$as_echo "$ac_res" >&6; }
2564  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2565
2566} # ac_fn_c_find_intX_t
2567
2568# ac_fn_cxx_try_link LINENO
2569# -------------------------
2570# Try to link conftest.$ac_ext, and return whether this succeeded.
2571ac_fn_cxx_try_link ()
2572{
2573  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574  rm -f conftest.$ac_objext conftest$ac_exeext
2575  if { { ac_try="$ac_link"
2576case "(($ac_try" in
2577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578  *) ac_try_echo=$ac_try;;
2579esac
2580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2581$as_echo "$ac_try_echo"; } >&5
2582  (eval "$ac_link") 2>conftest.err
2583  ac_status=$?
2584  if test -s conftest.err; then
2585    grep -v '^ *+' conftest.err >conftest.er1
2586    cat conftest.er1 >&5
2587    mv -f conftest.er1 conftest.err
2588  fi
2589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2590  test $ac_status = 0; } && {
2591	 test -z "$ac_cxx_werror_flag" ||
2592	 test ! -s conftest.err
2593       } && test -s conftest$ac_exeext && {
2594	 test "$cross_compiling" = yes ||
2595	 test -x conftest$ac_exeext
2596       }; then :
2597  ac_retval=0
2598else
2599  $as_echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602	ac_retval=1
2603fi
2604  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2605  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2606  # interfere with the next link command; also delete a directory that is
2607  # left behind by Apple's compiler.  We do this before executing the actions.
2608  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2609  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2610  as_fn_set_status $ac_retval
2611
2612} # ac_fn_cxx_try_link
2613
2614# ac_fn_c_find_uintX_t LINENO BITS VAR
2615# ------------------------------------
2616# Finds an unsigned integer type with width BITS, setting cache variable VAR
2617# accordingly.
2618ac_fn_c_find_uintX_t ()
2619{
2620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2622$as_echo_n "checking for uint$2_t... " >&6; }
2623if eval \${$3+:} false; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  eval "$3=no"
2627     # Order is important - never check a type that is potentially smaller
2628     # than half of the expected target width.
2629     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2630	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2631       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632/* end confdefs.h.  */
2633$ac_includes_default
2634int
2635main ()
2636{
2637static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2638test_array [0] = 0;
2639return test_array [0];
2640
2641  ;
2642  return 0;
2643}
2644_ACEOF
2645if ac_fn_cxx_try_compile "$LINENO"; then :
2646  case $ac_type in #(
2647  uint$2_t) :
2648    eval "$3=yes" ;; #(
2649  *) :
2650    eval "$3=\$ac_type" ;;
2651esac
2652fi
2653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654       if eval test \"x\$"$3"\" = x"no"; then :
2655
2656else
2657  break
2658fi
2659     done
2660fi
2661eval ac_res=\$$3
2662	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2663$as_echo "$ac_res" >&6; }
2664  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2665
2666} # ac_fn_c_find_uintX_t
2667
2668# ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2669# ------------------------------------------------
2670# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2671ac_fn_cxx_check_header_preproc ()
2672{
2673  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2675$as_echo_n "checking for $2... " >&6; }
2676if eval \${$3+:} false; then :
2677  $as_echo_n "(cached) " >&6
2678else
2679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680/* end confdefs.h.  */
2681#include <$2>
2682_ACEOF
2683if ac_fn_cxx_try_cpp "$LINENO"; then :
2684  eval "$3=yes"
2685else
2686  eval "$3=no"
2687fi
2688rm -f conftest.err conftest.i conftest.$ac_ext
2689fi
2690eval ac_res=\$$3
2691	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692$as_echo "$ac_res" >&6; }
2693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2694
2695} # ac_fn_cxx_check_header_preproc
2696
2697# ac_fn_cxx_check_func LINENO FUNC VAR
2698# ------------------------------------
2699# Tests whether FUNC exists, setting the cache variable VAR accordingly
2700ac_fn_cxx_check_func ()
2701{
2702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2704$as_echo_n "checking for $2... " >&6; }
2705if eval \${$3+:} false; then :
2706  $as_echo_n "(cached) " >&6
2707else
2708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h.  */
2710/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2711   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2712#define $2 innocuous_$2
2713
2714/* System header to define __stub macros and hopefully few prototypes,
2715    which can conflict with char $2 (); below.
2716    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2717    <limits.h> exists even on freestanding compilers.  */
2718
2719#ifdef __STDC__
2720# include <limits.h>
2721#else
2722# include <assert.h>
2723#endif
2724
2725#undef $2
2726
2727/* Override any GCC internal prototype to avoid an error.
2728   Use char because int might match the return type of a GCC
2729   builtin and then its argument prototype would still apply.  */
2730#ifdef __cplusplus
2731extern "C"
2732#endif
2733char $2 ();
2734/* The GNU C library defines this for functions which it implements
2735    to always fail with ENOSYS.  Some functions are actually named
2736    something starting with __ and the normal name is an alias.  */
2737#if defined __stub_$2 || defined __stub___$2
2738choke me
2739#endif
2740
2741int
2742main ()
2743{
2744return $2 ();
2745  ;
2746  return 0;
2747}
2748_ACEOF
2749if ac_fn_cxx_try_link "$LINENO"; then :
2750  eval "$3=yes"
2751else
2752  eval "$3=no"
2753fi
2754rm -f core conftest.err conftest.$ac_objext \
2755    conftest$ac_exeext conftest.$ac_ext
2756fi
2757eval ac_res=\$$3
2758	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2759$as_echo "$ac_res" >&6; }
2760  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2761
2762} # ac_fn_cxx_check_func
2763
2764# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2765# -----------------------------------------------
2766# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2767# accordingly.
2768ac_fn_cxx_check_decl ()
2769{
2770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2771  as_decl_name=`echo $2|sed 's/ *(.*//'`
2772  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2774$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2775if eval \${$3+:} false; then :
2776  $as_echo_n "(cached) " >&6
2777else
2778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779/* end confdefs.h.  */
2780$4
2781int
2782main ()
2783{
2784#ifndef $as_decl_name
2785#ifdef __cplusplus
2786  (void) $as_decl_use;
2787#else
2788  (void) $as_decl_name;
2789#endif
2790#endif
2791
2792  ;
2793  return 0;
2794}
2795_ACEOF
2796if ac_fn_cxx_try_compile "$LINENO"; then :
2797  eval "$3=yes"
2798else
2799  eval "$3=no"
2800fi
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802fi
2803eval ac_res=\$$3
2804	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2805$as_echo "$ac_res" >&6; }
2806  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2807
2808} # ac_fn_cxx_check_decl
2809
2810# ac_fn_c_try_link LINENO
2811# -----------------------
2812# Try to link conftest.$ac_ext, and return whether this succeeded.
2813ac_fn_c_try_link ()
2814{
2815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2816  rm -f conftest.$ac_objext conftest$ac_exeext
2817  if { { ac_try="$ac_link"
2818case "(($ac_try" in
2819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820  *) ac_try_echo=$ac_try;;
2821esac
2822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2823$as_echo "$ac_try_echo"; } >&5
2824  (eval "$ac_link") 2>conftest.err
2825  ac_status=$?
2826  if test -s conftest.err; then
2827    grep -v '^ *+' conftest.err >conftest.er1
2828    cat conftest.er1 >&5
2829    mv -f conftest.er1 conftest.err
2830  fi
2831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2832  test $ac_status = 0; } && {
2833	 test -z "$ac_c_werror_flag" ||
2834	 test ! -s conftest.err
2835       } && test -s conftest$ac_exeext && {
2836	 test "$cross_compiling" = yes ||
2837	 test -x conftest$ac_exeext
2838       }; then :
2839  ac_retval=0
2840else
2841  $as_echo "$as_me: failed program was:" >&5
2842sed 's/^/| /' conftest.$ac_ext >&5
2843
2844	ac_retval=1
2845fi
2846  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2847  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2848  # interfere with the next link command; also delete a directory that is
2849  # left behind by Apple's compiler.  We do this before executing the actions.
2850  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2851  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2852  as_fn_set_status $ac_retval
2853
2854} # ac_fn_c_try_link
2855
2856# ac_fn_c_check_header_preproc LINENO HEADER VAR
2857# ----------------------------------------------
2858# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2859ac_fn_c_check_header_preproc ()
2860{
2861  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2863$as_echo_n "checking for $2... " >&6; }
2864if eval \${$3+:} false; then :
2865  $as_echo_n "(cached) " >&6
2866else
2867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868/* end confdefs.h.  */
2869#include <$2>
2870_ACEOF
2871if ac_fn_c_try_cpp "$LINENO"; then :
2872  eval "$3=yes"
2873else
2874  eval "$3=no"
2875fi
2876rm -f conftest.err conftest.i conftest.$ac_ext
2877fi
2878eval ac_res=\$$3
2879	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2880$as_echo "$ac_res" >&6; }
2881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2882
2883} # ac_fn_c_check_header_preproc
2884
2885# ac_fn_c_check_func LINENO FUNC VAR
2886# ----------------------------------
2887# Tests whether FUNC exists, setting the cache variable VAR accordingly
2888ac_fn_c_check_func ()
2889{
2890  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2892$as_echo_n "checking for $2... " >&6; }
2893if eval \${$3+:} false; then :
2894  $as_echo_n "(cached) " >&6
2895else
2896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897/* end confdefs.h.  */
2898/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2899   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2900#define $2 innocuous_$2
2901
2902/* System header to define __stub macros and hopefully few prototypes,
2903    which can conflict with char $2 (); below.
2904    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2905    <limits.h> exists even on freestanding compilers.  */
2906
2907#ifdef __STDC__
2908# include <limits.h>
2909#else
2910# include <assert.h>
2911#endif
2912
2913#undef $2
2914
2915/* Override any GCC internal prototype to avoid an error.
2916   Use char because int might match the return type of a GCC
2917   builtin and then its argument prototype would still apply.  */
2918#ifdef __cplusplus
2919extern "C"
2920#endif
2921char $2 ();
2922/* The GNU C library defines this for functions which it implements
2923    to always fail with ENOSYS.  Some functions are actually named
2924    something starting with __ and the normal name is an alias.  */
2925#if defined __stub_$2 || defined __stub___$2
2926choke me
2927#endif
2928
2929int
2930main ()
2931{
2932return $2 ();
2933  ;
2934  return 0;
2935}
2936_ACEOF
2937if ac_fn_c_try_link "$LINENO"; then :
2938  eval "$3=yes"
2939else
2940  eval "$3=no"
2941fi
2942rm -f core conftest.err conftest.$ac_objext \
2943    conftest$ac_exeext conftest.$ac_ext
2944fi
2945eval ac_res=\$$3
2946	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2947$as_echo "$ac_res" >&6; }
2948  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2949
2950} # ac_fn_c_check_func
2951cat >config.log <<_ACEOF
2952This file contains any messages produced by compilers while
2953running configure, to aid debugging if configure makes a mistake.
2954
2955It was created by $as_me, which was
2956generated by GNU Autoconf 2.69.  Invocation command line was
2957
2958  $ $0 $@
2959
2960_ACEOF
2961exec 5>>config.log
2962{
2963cat <<_ASUNAME
2964## --------- ##
2965## Platform. ##
2966## --------- ##
2967
2968hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2969uname -m = `(uname -m) 2>/dev/null || echo unknown`
2970uname -r = `(uname -r) 2>/dev/null || echo unknown`
2971uname -s = `(uname -s) 2>/dev/null || echo unknown`
2972uname -v = `(uname -v) 2>/dev/null || echo unknown`
2973
2974/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2975/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2976
2977/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2978/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2979/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2980/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2981/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2982/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2983/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2984
2985_ASUNAME
2986
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990  IFS=$as_save_IFS
2991  test -z "$as_dir" && as_dir=.
2992    $as_echo "PATH: $as_dir"
2993  done
2994IFS=$as_save_IFS
2995
2996} >&5
2997
2998cat >&5 <<_ACEOF
2999
3000
3001## ----------- ##
3002## Core tests. ##
3003## ----------- ##
3004
3005_ACEOF
3006
3007
3008# Keep a trace of the command line.
3009# Strip out --no-create and --no-recursion so they do not pile up.
3010# Strip out --silent because we don't want to record it for future runs.
3011# Also quote any args containing shell meta-characters.
3012# Make two passes to allow for proper duplicate-argument suppression.
3013ac_configure_args=
3014ac_configure_args0=
3015ac_configure_args1=
3016ac_must_keep_next=false
3017for ac_pass in 1 2
3018do
3019  for ac_arg
3020  do
3021    case $ac_arg in
3022    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3023    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3024    | -silent | --silent | --silen | --sile | --sil)
3025      continue ;;
3026    *\'*)
3027      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3028    esac
3029    case $ac_pass in
3030    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3031    2)
3032      as_fn_append ac_configure_args1 " '$ac_arg'"
3033      if test $ac_must_keep_next = true; then
3034	ac_must_keep_next=false # Got value, back to normal.
3035      else
3036	case $ac_arg in
3037	  *=* | --config-cache | -C | -disable-* | --disable-* \
3038	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3039	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3040	  | -with-* | --with-* | -without-* | --without-* | --x)
3041	    case "$ac_configure_args0 " in
3042	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3043	    esac
3044	    ;;
3045	  -* ) ac_must_keep_next=true ;;
3046	esac
3047      fi
3048      as_fn_append ac_configure_args " '$ac_arg'"
3049      ;;
3050    esac
3051  done
3052done
3053{ ac_configure_args0=; unset ac_configure_args0;}
3054{ ac_configure_args1=; unset ac_configure_args1;}
3055
3056# When interrupted or exit'd, cleanup temporary files, and complete
3057# config.log.  We remove comments because anyway the quotes in there
3058# would cause problems or look ugly.
3059# WARNING: Use '\'' to represent an apostrophe within the trap.
3060# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3061trap 'exit_status=$?
3062  # Save into config.log some information that might help in debugging.
3063  {
3064    echo
3065
3066    $as_echo "## ---------------- ##
3067## Cache variables. ##
3068## ---------------- ##"
3069    echo
3070    # The following way of writing the cache mishandles newlines in values,
3071(
3072  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3073    eval ac_val=\$$ac_var
3074    case $ac_val in #(
3075    *${as_nl}*)
3076      case $ac_var in #(
3077      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3079      esac
3080      case $ac_var in #(
3081      _ | IFS | as_nl) ;; #(
3082      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3083      *) { eval $ac_var=; unset $ac_var;} ;;
3084      esac ;;
3085    esac
3086  done
3087  (set) 2>&1 |
3088    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3089    *${as_nl}ac_space=\ *)
3090      sed -n \
3091	"s/'\''/'\''\\\\'\'''\''/g;
3092	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3093      ;; #(
3094    *)
3095      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3096      ;;
3097    esac |
3098    sort
3099)
3100    echo
3101
3102    $as_echo "## ----------------- ##
3103## Output variables. ##
3104## ----------------- ##"
3105    echo
3106    for ac_var in $ac_subst_vars
3107    do
3108      eval ac_val=\$$ac_var
3109      case $ac_val in
3110      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3111      esac
3112      $as_echo "$ac_var='\''$ac_val'\''"
3113    done | sort
3114    echo
3115
3116    if test -n "$ac_subst_files"; then
3117      $as_echo "## ------------------- ##
3118## File substitutions. ##
3119## ------------------- ##"
3120      echo
3121      for ac_var in $ac_subst_files
3122      do
3123	eval ac_val=\$$ac_var
3124	case $ac_val in
3125	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3126	esac
3127	$as_echo "$ac_var='\''$ac_val'\''"
3128      done | sort
3129      echo
3130    fi
3131
3132    if test -s confdefs.h; then
3133      $as_echo "## ----------- ##
3134## confdefs.h. ##
3135## ----------- ##"
3136      echo
3137      cat confdefs.h
3138      echo
3139    fi
3140    test "$ac_signal" != 0 &&
3141      $as_echo "$as_me: caught signal $ac_signal"
3142    $as_echo "$as_me: exit $exit_status"
3143  } >&5
3144  rm -f core *.core core.conftest.* &&
3145    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3146    exit $exit_status
3147' 0
3148for ac_signal in 1 2 13 15; do
3149  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3150done
3151ac_signal=0
3152
3153# confdefs.h avoids OS command line length limits that DEFS can exceed.
3154rm -f -r conftest* confdefs.h
3155
3156$as_echo "/* confdefs.h */" > confdefs.h
3157
3158# Predefined preprocessor variables.
3159
3160cat >>confdefs.h <<_ACEOF
3161#define PACKAGE_NAME "$PACKAGE_NAME"
3162_ACEOF
3163
3164cat >>confdefs.h <<_ACEOF
3165#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3166_ACEOF
3167
3168cat >>confdefs.h <<_ACEOF
3169#define PACKAGE_VERSION "$PACKAGE_VERSION"
3170_ACEOF
3171
3172cat >>confdefs.h <<_ACEOF
3173#define PACKAGE_STRING "$PACKAGE_STRING"
3174_ACEOF
3175
3176cat >>confdefs.h <<_ACEOF
3177#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3178_ACEOF
3179
3180cat >>confdefs.h <<_ACEOF
3181#define PACKAGE_URL "$PACKAGE_URL"
3182_ACEOF
3183
3184
3185# Let the site file select an alternate cache file if it wants to.
3186# Prefer an explicitly selected file to automatically selected ones.
3187ac_site_file1=NONE
3188ac_site_file2=NONE
3189if test -n "$CONFIG_SITE"; then
3190  # We do not want a PATH search for config.site.
3191  case $CONFIG_SITE in #((
3192    -*)  ac_site_file1=./$CONFIG_SITE;;
3193    */*) ac_site_file1=$CONFIG_SITE;;
3194    *)   ac_site_file1=./$CONFIG_SITE;;
3195  esac
3196elif test "x$prefix" != xNONE; then
3197  ac_site_file1=$prefix/share/config.site
3198  ac_site_file2=$prefix/etc/config.site
3199else
3200  ac_site_file1=$ac_default_prefix/share/config.site
3201  ac_site_file2=$ac_default_prefix/etc/config.site
3202fi
3203for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3204do
3205  test "x$ac_site_file" = xNONE && continue
3206  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3207    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3208$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3209    sed 's/^/| /' "$ac_site_file" >&5
3210    . "$ac_site_file" \
3211      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213as_fn_error $? "failed to load site script $ac_site_file
3214See \`config.log' for more details" "$LINENO" 5; }
3215  fi
3216done
3217
3218if test -r "$cache_file"; then
3219  # Some versions of bash will fail to source /dev/null (special files
3220  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3221  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3222    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3223$as_echo "$as_me: loading cache $cache_file" >&6;}
3224    case $cache_file in
3225      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3226      *)                      . "./$cache_file";;
3227    esac
3228  fi
3229else
3230  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3231$as_echo "$as_me: creating cache $cache_file" >&6;}
3232  >$cache_file
3233fi
3234
3235# Check that the precious variables saved in the cache have kept the same
3236# value.
3237ac_cache_corrupted=false
3238for ac_var in $ac_precious_vars; do
3239  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3240  eval ac_new_set=\$ac_env_${ac_var}_set
3241  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3242  eval ac_new_val=\$ac_env_${ac_var}_value
3243  case $ac_old_set,$ac_new_set in
3244    set,)
3245      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3246$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3247      ac_cache_corrupted=: ;;
3248    ,set)
3249      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3250$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3251      ac_cache_corrupted=: ;;
3252    ,);;
3253    *)
3254      if test "x$ac_old_val" != "x$ac_new_val"; then
3255	# differences in whitespace do not lead to failure.
3256	ac_old_val_w=`echo x $ac_old_val`
3257	ac_new_val_w=`echo x $ac_new_val`
3258	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3259	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3260$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3261	  ac_cache_corrupted=:
3262	else
3263	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3264$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3265	  eval $ac_var=\$ac_old_val
3266	fi
3267	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3268$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3269	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3270$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3271      fi;;
3272  esac
3273  # Pass precious variables to config.status.
3274  if test "$ac_new_set" = set; then
3275    case $ac_new_val in
3276    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3277    *) ac_arg=$ac_var=$ac_new_val ;;
3278    esac
3279    case " $ac_configure_args " in
3280      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3281      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3282    esac
3283  fi
3284done
3285if $ac_cache_corrupted; then
3286  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3289$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3290  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3291fi
3292## -------------------- ##
3293## Main body of script. ##
3294## -------------------- ##
3295
3296ac_ext=c
3297ac_cpp='$CPP $CPPFLAGS'
3298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301
3302
3303
3304
3305
3306
3307ac_config_headers="$ac_config_headers auto-host.h:config.in"
3308
3309
3310gcc_version=`cat $srcdir/BASE-VER`
3311
3312# Determine the host, build, and target systems
3313ac_aux_dir=
3314for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3315  if test -f "$ac_dir/install-sh"; then
3316    ac_aux_dir=$ac_dir
3317    ac_install_sh="$ac_aux_dir/install-sh -c"
3318    break
3319  elif test -f "$ac_dir/install.sh"; then
3320    ac_aux_dir=$ac_dir
3321    ac_install_sh="$ac_aux_dir/install.sh -c"
3322    break
3323  elif test -f "$ac_dir/shtool"; then
3324    ac_aux_dir=$ac_dir
3325    ac_install_sh="$ac_aux_dir/shtool install -c"
3326    break
3327  fi
3328done
3329if test -z "$ac_aux_dir"; then
3330  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3331fi
3332
3333# These three variables are undocumented and unsupported,
3334# and are intended to be withdrawn in a future Autoconf release.
3335# They can cause serious problems if a builder's source tree is in a directory
3336# whose full name contains unusual characters.
3337ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3338ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3339ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3340
3341
3342# Make sure we can run config.sub.
3343$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3344  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3345
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3347$as_echo_n "checking build system type... " >&6; }
3348if ${ac_cv_build+:} false; then :
3349  $as_echo_n "(cached) " >&6
3350else
3351  ac_build_alias=$build_alias
3352test "x$ac_build_alias" = x &&
3353  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3354test "x$ac_build_alias" = x &&
3355  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3356ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3357  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3358
3359fi
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3361$as_echo "$ac_cv_build" >&6; }
3362case $ac_cv_build in
3363*-*-*) ;;
3364*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3365esac
3366build=$ac_cv_build
3367ac_save_IFS=$IFS; IFS='-'
3368set x $ac_cv_build
3369shift
3370build_cpu=$1
3371build_vendor=$2
3372shift; shift
3373# Remember, the first character of IFS is used to create $*,
3374# except with old shells:
3375build_os=$*
3376IFS=$ac_save_IFS
3377case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3378
3379
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3381$as_echo_n "checking host system type... " >&6; }
3382if ${ac_cv_host+:} false; then :
3383  $as_echo_n "(cached) " >&6
3384else
3385  if test "x$host_alias" = x; then
3386  ac_cv_host=$ac_cv_build
3387else
3388  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3389    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3390fi
3391
3392fi
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3394$as_echo "$ac_cv_host" >&6; }
3395case $ac_cv_host in
3396*-*-*) ;;
3397*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3398esac
3399host=$ac_cv_host
3400ac_save_IFS=$IFS; IFS='-'
3401set x $ac_cv_host
3402shift
3403host_cpu=$1
3404host_vendor=$2
3405shift; shift
3406# Remember, the first character of IFS is used to create $*,
3407# except with old shells:
3408host_os=$*
3409IFS=$ac_save_IFS
3410case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3411
3412
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3414$as_echo_n "checking target system type... " >&6; }
3415if ${ac_cv_target+:} false; then :
3416  $as_echo_n "(cached) " >&6
3417else
3418  if test "x$target_alias" = x; then
3419  ac_cv_target=$ac_cv_host
3420else
3421  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3422    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3423fi
3424
3425fi
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3427$as_echo "$ac_cv_target" >&6; }
3428case $ac_cv_target in
3429*-*-*) ;;
3430*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3431esac
3432target=$ac_cv_target
3433ac_save_IFS=$IFS; IFS='-'
3434set x $ac_cv_target
3435shift
3436target_cpu=$1
3437target_vendor=$2
3438shift; shift
3439# Remember, the first character of IFS is used to create $*,
3440# except with old shells:
3441target_os=$*
3442IFS=$ac_save_IFS
3443case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3444
3445
3446# The aliases save the names the user supplied, while $host etc.
3447# will get canonicalized.
3448test -n "$target_alias" &&
3449  test "$program_prefix$program_suffix$program_transform_name" = \
3450    NONENONEs,x,x, &&
3451  program_prefix=${target_alias}-
3452
3453# Determine the noncanonical host name, for Ada.
3454 case ${build_alias} in
3455  "") build_noncanonical=${build} ;;
3456  *) build_noncanonical=${build_alias} ;;
3457esac
3458
3459 case ${host_alias} in
3460  "") host_noncanonical=${build_noncanonical} ;;
3461  *) host_noncanonical=${host_alias} ;;
3462esac
3463
3464
3465
3466
3467# Determine the noncanonical target name, for directory use.
3468 case ${target_alias} in
3469  "") target_noncanonical=${host_noncanonical} ;;
3470  *) target_noncanonical=${target_alias} ;;
3471esac
3472
3473
3474
3475
3476# Used for constructing correct paths for offload compilers.
3477real_target_noncanonical=${target_noncanonical}
3478accel_dir_suffix=
3479
3480# Determine the target- and build-specific subdirectories
3481
3482# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3483# have matching libraries, they should use host libraries: Makefile.tpl
3484# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3485# However, they still use the build modules, because the corresponding
3486# host modules (e.g. bison) are only built for the host when bootstrap
3487# finishes. So:
3488# - build_subdir is where we find build modules, and never changes.
3489# - build_libsubdir is where we find build libraries, and can be overridden.
3490
3491# Prefix 'build-' so this never conflicts with target_subdir.
3492build_subdir="build-${build_noncanonical}"
3493
3494# Check whether --with-build-libsubdir was given.
3495if test "${with_build_libsubdir+set}" = set; then :
3496  withval=$with_build_libsubdir; build_libsubdir="$withval"
3497else
3498  build_libsubdir="$build_subdir"
3499fi
3500
3501# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3502if ( test $srcdir = . && test -d gcc ) \
3503   || test -d $srcdir/../host-${host_noncanonical}; then
3504  host_subdir="host-${host_noncanonical}"
3505else
3506  host_subdir=.
3507fi
3508# No prefix.
3509target_subdir=${target_noncanonical}
3510
3511
3512# Set program_transform_name
3513test "$program_prefix" != NONE &&
3514  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3515# Use a double $ so make ignores it.
3516test "$program_suffix" != NONE &&
3517  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3518# Double any \ or $.
3519# By default was `s,x,x', remove it if useless.
3520ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3521program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3522
3523
3524# Check for bogus environment variables.
3525# Test if LIBRARY_PATH contains the notation for the current directory
3526# since this would lead to problems installing/building glibc.
3527# LIBRARY_PATH contains the current directory if one of the following
3528# is true:
3529# - one of the terminals (":" and ";") is the first or last sign
3530# - two terminals occur directly after each other
3531# - the path contains an element with a dot in it
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3533$as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3534case ${LIBRARY_PATH} in
3535  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3536    library_path_setting="contains current directory"
3537    ;;
3538  *)
3539    library_path_setting="ok"
3540    ;;
3541esac
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3543$as_echo "$library_path_setting" >&6; }
3544if test "$library_path_setting" != "ok"; then
3545as_fn_error $? "
3546*** LIBRARY_PATH shouldn't contain the current directory when
3547*** building gcc. Please change the environment variable
3548*** and run configure again." "$LINENO" 5
3549fi
3550
3551# Test if GCC_EXEC_PREFIX contains the notation for the current directory
3552# since this would lead to problems installing/building glibc.
3553# GCC_EXEC_PREFIX contains the current directory if one of the following
3554# is true:
3555# - one of the terminals (":" and ";") is the first or last sign
3556# - two terminals occur directly after each other
3557# - the path contains an element with a dot in it
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3559$as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3560case ${GCC_EXEC_PREFIX} in
3561  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3562    gcc_exec_prefix_setting="contains current directory"
3563    ;;
3564  *)
3565    gcc_exec_prefix_setting="ok"
3566    ;;
3567esac
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3569$as_echo "$gcc_exec_prefix_setting" >&6; }
3570if test "$gcc_exec_prefix_setting" != "ok"; then
3571as_fn_error $? "
3572*** GCC_EXEC_PREFIX shouldn't contain the current directory when
3573*** building gcc. Please change the environment variable
3574*** and run configure again." "$LINENO" 5
3575fi
3576
3577# -----------
3578# Directories
3579# -----------
3580
3581# Specify the local prefix
3582local_prefix=
3583
3584# Check whether --with-local-prefix was given.
3585if test "${with_local_prefix+set}" = set; then :
3586  withval=$with_local_prefix; case "${withval}" in
3587yes)	as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3588no)	;;
3589*)	local_prefix=$with_local_prefix ;;
3590esac
3591fi
3592
3593
3594# Default local prefix if it is empty
3595if test x$local_prefix = x; then
3596	local_prefix=/usr/local
3597fi
3598
3599
3600# Check whether --with-native-system-header-dir was given.
3601if test "${with_native_system_header_dir+set}" = set; then :
3602  withval=$with_native_system_header_dir;
3603 case ${with_native_system_header_dir} in
3604 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3605 /* | [A-Za-z]:[\\/]*) ;;
3606 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3607 esac
3608 configured_native_system_header_dir="${withval}"
3609
3610else
3611  configured_native_system_header_dir=
3612fi
3613
3614
3615
3616# Check whether --with-build-sysroot was given.
3617if test "${with_build_sysroot+set}" = set; then :
3618  withval=$with_build_sysroot; if test x"$withval" != x ; then
3619     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3620   fi
3621else
3622  SYSROOT_CFLAGS_FOR_TARGET=
3623fi
3624
3625
3626
3627if test "x$prefix" = xNONE; then
3628 test_prefix=/usr/local
3629else
3630 test_prefix=$prefix
3631fi
3632if test "x$exec_prefix" = xNONE; then
3633 test_exec_prefix=$test_prefix
3634else
3635 test_exec_prefix=$exec_prefix
3636fi
3637
3638
3639# Check whether --with-sysroot was given.
3640if test "${with_sysroot+set}" = set; then :
3641  withval=$with_sysroot;
3642 case ${with_sysroot} in
3643 /) ;;
3644 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3645 esac
3646 case ${with_sysroot} in
3647 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3648 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3649 esac
3650
3651 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3652 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3653
3654 case ${TARGET_SYSTEM_ROOT} in
3655 "${test_prefix}"|"${test_prefix}/"*|\
3656 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3657 '${prefix}'|'${prefix}/'*|\
3658 '${exec_prefix}'|'${exec_prefix}/'*)
3659   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3660   TARGET_SYSTEM_ROOT_DEFINE="$t"
3661   ;;
3662 esac
3663
3664else
3665
3666 TARGET_SYSTEM_ROOT=
3667 TARGET_SYSTEM_ROOT_DEFINE=
3668 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3669
3670fi
3671
3672
3673
3674
3675
3676# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3677# passed in by the toplevel make and thus we'd get different behavior
3678# depending on where we built the sources.
3679gcc_gxx_include_dir=
3680# Specify the g++ header file directory
3681
3682# Check whether --with-gxx-include-dir was given.
3683if test "${with_gxx_include_dir+set}" = set; then :
3684  withval=$with_gxx_include_dir; case "${withval}" in
3685yes)	as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3686no)	;;
3687*)	gcc_gxx_include_dir=$with_gxx_include_dir ;;
3688esac
3689fi
3690
3691
3692# If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3693# the former in the latter and, upon success, compute gcc_gxx_include_dir as
3694# relative to the sysroot.
3695gcc_gxx_include_dir_add_sysroot=0
3696
3697# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3698if test x${gcc_gxx_include_dir} = x; then
3699  if test x${enable_version_specific_runtime_libs} = xyes; then
3700    gcc_gxx_include_dir='${libsubdir}/include/c++'
3701  else
3702    libstdcxx_incdir='include/c++/$(version)'
3703    if test x$host != x$target; then
3704       libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3705    fi
3706    gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3707  fi
3708elif test "${with_sysroot+set}" = set; then
3709  gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3710  if test "${gcc_gxx_without_sysroot}"; then
3711    gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3712    gcc_gxx_include_dir_add_sysroot=1
3713  fi
3714fi
3715
3716
3717# Check whether --with-cpp_install_dir was given.
3718if test "${with_cpp_install_dir+set}" = set; then :
3719  withval=$with_cpp_install_dir; if test x$withval = xyes; then
3720  as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3721elif test x$withval != xno; then
3722  cpp_install_dir=$withval
3723fi
3724fi
3725
3726
3727# We would like to our source tree to be readonly.  However when releases or
3728# pre-releases are generated, the flex/bison generated files as well as the
3729# various formats of manuals need to be included along with the rest of the
3730# sources.  Therefore we have --enable-generated-files-in-srcdir to do
3731# just that.
3732
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3734$as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3735    # Check whether --enable-generated-files-in-srcdir was given.
3736if test "${enable_generated_files_in_srcdir+set}" = set; then :
3737  enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3738else
3739  generated_files_in_srcdir=no
3740fi
3741
3742
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3744$as_echo "$generated_files_in_srcdir" >&6; }
3745
3746if test "$generated_files_in_srcdir" = "yes"; then
3747  GENINSRC=''
3748else
3749  GENINSRC='#'
3750fi
3751
3752
3753# -------------------
3754# Find default linker
3755# -------------------
3756
3757# With GNU ld
3758
3759# Check whether --with-gnu-ld was given.
3760if test "${with_gnu_ld+set}" = set; then :
3761  withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3762else
3763  gnu_ld_flag=no
3764fi
3765
3766
3767case $target in
3768    *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3769    *) ld64_flag=no;;
3770esac
3771
3772# With pre-defined ld
3773
3774# Check whether --with-ld was given.
3775if test "${with_ld+set}" = set; then :
3776  withval=$with_ld; DEFAULT_LINKER="$with_ld"
3777fi
3778
3779if test x"${DEFAULT_LINKER+set}" = x"set"; then
3780  if test ! -x "$DEFAULT_LINKER"; then
3781    as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3782  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3783    gnu_ld_flag=yes
3784  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3785    ld64_flag=yes
3786  fi
3787
3788cat >>confdefs.h <<_ACEOF
3789#define DEFAULT_LINKER "$DEFAULT_LINKER"
3790_ACEOF
3791
3792fi
3793
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3795$as_echo_n "checking whether a default linker was specified... " >&6; }
3796if test x"${DEFAULT_LINKER+set}" = x"set"; then
3797  if test x"$gnu_ld_flag" = x"no"; then
3798    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3799$as_echo "yes ($DEFAULT_LINKER)" >&6; }
3800  else
3801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3802$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3803  fi
3804else
3805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806$as_echo "no" >&6; }
3807fi
3808
3809# With demangler in GNU ld
3810
3811# Check whether --with-demangler-in-ld was given.
3812if test "${with_demangler_in_ld+set}" = set; then :
3813  withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3814else
3815  demangler_in_ld=yes
3816fi
3817
3818
3819# ----------------------
3820# Find default assembler
3821# ----------------------
3822
3823# With GNU as
3824
3825# Check whether --with-gnu-as was given.
3826if test "${with_gnu_as+set}" = set; then :
3827  withval=$with_gnu_as; gas_flag="$with_gnu_as"
3828else
3829  gas_flag=no
3830fi
3831
3832
3833
3834# Check whether --with-as was given.
3835if test "${with_as+set}" = set; then :
3836  withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3837fi
3838
3839if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3840  if test ! -x "$DEFAULT_ASSEMBLER"; then
3841    as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3842  elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3843    gas_flag=yes
3844  fi
3845
3846cat >>confdefs.h <<_ACEOF
3847#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3848_ACEOF
3849
3850fi
3851
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3853$as_echo_n "checking whether a default assembler was specified... " >&6; }
3854if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3855  if test x"$gas_flag" = x"no"; then
3856    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3857$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3858  else
3859    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3860$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3861  fi
3862else
3863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864$as_echo "no" >&6; }
3865fi
3866
3867# ---------------
3868# Find C compiler
3869# ---------------
3870
3871# If a non-executable a.out is present (e.g. created by GNU as above even if
3872# invoked with -v only), the IRIX 6 native ld just overwrites the existing
3873# file, even when creating an executable, so an execution test fails.
3874# Remove possible default executable files to avoid this.
3875#
3876# FIXME: This really belongs into AC_PROG_CC and can be removed once
3877# Autoconf includes it.
3878rm -f a.out a.exe b.out
3879
3880# Find the native compiler
3881ac_ext=c
3882ac_cpp='$CPP $CPPFLAGS'
3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886if test -n "$ac_tool_prefix"; then
3887  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3888set dummy ${ac_tool_prefix}gcc; ac_word=$2
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890$as_echo_n "checking for $ac_word... " >&6; }
3891if ${ac_cv_prog_CC+:} false; then :
3892  $as_echo_n "(cached) " >&6
3893else
3894  if test -n "$CC"; then
3895  ac_cv_prog_CC="$CC" # Let the user override the test.
3896else
3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH
3899do
3900  IFS=$as_save_IFS
3901  test -z "$as_dir" && as_dir=.
3902    for ac_exec_ext in '' $ac_executable_extensions; do
3903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906    break 2
3907  fi
3908done
3909  done
3910IFS=$as_save_IFS
3911
3912fi
3913fi
3914CC=$ac_cv_prog_CC
3915if test -n "$CC"; then
3916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3917$as_echo "$CC" >&6; }
3918else
3919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920$as_echo "no" >&6; }
3921fi
3922
3923
3924fi
3925if test -z "$ac_cv_prog_CC"; then
3926  ac_ct_CC=$CC
3927  # Extract the first word of "gcc", so it can be a program name with args.
3928set dummy gcc; ac_word=$2
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930$as_echo_n "checking for $ac_word... " >&6; }
3931if ${ac_cv_prog_ac_ct_CC+:} false; then :
3932  $as_echo_n "(cached) " >&6
3933else
3934  if test -n "$ac_ct_CC"; then
3935  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940  IFS=$as_save_IFS
3941  test -z "$as_dir" && as_dir=.
3942    for ac_exec_ext in '' $ac_executable_extensions; do
3943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944    ac_cv_prog_ac_ct_CC="gcc"
3945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946    break 2
3947  fi
3948done
3949  done
3950IFS=$as_save_IFS
3951
3952fi
3953fi
3954ac_ct_CC=$ac_cv_prog_ac_ct_CC
3955if test -n "$ac_ct_CC"; then
3956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3957$as_echo "$ac_ct_CC" >&6; }
3958else
3959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
3961fi
3962
3963  if test "x$ac_ct_CC" = x; then
3964    CC=""
3965  else
3966    case $cross_compiling:$ac_tool_warned in
3967yes:)
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3970ac_tool_warned=yes ;;
3971esac
3972    CC=$ac_ct_CC
3973  fi
3974else
3975  CC="$ac_cv_prog_CC"
3976fi
3977
3978if test -z "$CC"; then
3979          if test -n "$ac_tool_prefix"; then
3980    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3981set dummy ${ac_tool_prefix}cc; ac_word=$2
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983$as_echo_n "checking for $ac_word... " >&6; }
3984if ${ac_cv_prog_CC+:} false; then :
3985  $as_echo_n "(cached) " >&6
3986else
3987  if test -n "$CC"; then
3988  ac_cv_prog_CC="$CC" # Let the user override the test.
3989else
3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991for as_dir in $PATH
3992do
3993  IFS=$as_save_IFS
3994  test -z "$as_dir" && as_dir=.
3995    for ac_exec_ext in '' $ac_executable_extensions; do
3996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997    ac_cv_prog_CC="${ac_tool_prefix}cc"
3998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999    break 2
4000  fi
4001done
4002  done
4003IFS=$as_save_IFS
4004
4005fi
4006fi
4007CC=$ac_cv_prog_CC
4008if test -n "$CC"; then
4009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4010$as_echo "$CC" >&6; }
4011else
4012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013$as_echo "no" >&6; }
4014fi
4015
4016
4017  fi
4018fi
4019if test -z "$CC"; then
4020  # Extract the first word of "cc", so it can be a program name with args.
4021set dummy cc; ac_word=$2
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023$as_echo_n "checking for $ac_word... " >&6; }
4024if ${ac_cv_prog_CC+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  if test -n "$CC"; then
4028  ac_cv_prog_CC="$CC" # Let the user override the test.
4029else
4030  ac_prog_rejected=no
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034  IFS=$as_save_IFS
4035  test -z "$as_dir" && as_dir=.
4036    for ac_exec_ext in '' $ac_executable_extensions; do
4037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4039       ac_prog_rejected=yes
4040       continue
4041     fi
4042    ac_cv_prog_CC="cc"
4043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044    break 2
4045  fi
4046done
4047  done
4048IFS=$as_save_IFS
4049
4050if test $ac_prog_rejected = yes; then
4051  # We found a bogon in the path, so make sure we never use it.
4052  set dummy $ac_cv_prog_CC
4053  shift
4054  if test $# != 0; then
4055    # We chose a different compiler from the bogus one.
4056    # However, it has the same basename, so the bogon will be chosen
4057    # first if we set CC to just the basename; use the full file name.
4058    shift
4059    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4060  fi
4061fi
4062fi
4063fi
4064CC=$ac_cv_prog_CC
4065if test -n "$CC"; then
4066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4067$as_echo "$CC" >&6; }
4068else
4069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070$as_echo "no" >&6; }
4071fi
4072
4073
4074fi
4075if test -z "$CC"; then
4076  if test -n "$ac_tool_prefix"; then
4077  for ac_prog in cl.exe
4078  do
4079    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4080set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082$as_echo_n "checking for $ac_word... " >&6; }
4083if ${ac_cv_prog_CC+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  if test -n "$CC"; then
4087  ac_cv_prog_CC="$CC" # Let the user override the test.
4088else
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092  IFS=$as_save_IFS
4093  test -z "$as_dir" && as_dir=.
4094    for ac_exec_ext in '' $ac_executable_extensions; do
4095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098    break 2
4099  fi
4100done
4101  done
4102IFS=$as_save_IFS
4103
4104fi
4105fi
4106CC=$ac_cv_prog_CC
4107if test -n "$CC"; then
4108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4109$as_echo "$CC" >&6; }
4110else
4111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112$as_echo "no" >&6; }
4113fi
4114
4115
4116    test -n "$CC" && break
4117  done
4118fi
4119if test -z "$CC"; then
4120  ac_ct_CC=$CC
4121  for ac_prog in cl.exe
4122do
4123  # Extract the first word of "$ac_prog", so it can be a program name with args.
4124set dummy $ac_prog; ac_word=$2
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126$as_echo_n "checking for $ac_word... " >&6; }
4127if ${ac_cv_prog_ac_ct_CC+:} false; then :
4128  $as_echo_n "(cached) " >&6
4129else
4130  if test -n "$ac_ct_CC"; then
4131  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4132else
4133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136  IFS=$as_save_IFS
4137  test -z "$as_dir" && as_dir=.
4138    for ac_exec_ext in '' $ac_executable_extensions; do
4139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140    ac_cv_prog_ac_ct_CC="$ac_prog"
4141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4142    break 2
4143  fi
4144done
4145  done
4146IFS=$as_save_IFS
4147
4148fi
4149fi
4150ac_ct_CC=$ac_cv_prog_ac_ct_CC
4151if test -n "$ac_ct_CC"; then
4152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4153$as_echo "$ac_ct_CC" >&6; }
4154else
4155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156$as_echo "no" >&6; }
4157fi
4158
4159
4160  test -n "$ac_ct_CC" && break
4161done
4162
4163  if test "x$ac_ct_CC" = x; then
4164    CC=""
4165  else
4166    case $cross_compiling:$ac_tool_warned in
4167yes:)
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4170ac_tool_warned=yes ;;
4171esac
4172    CC=$ac_ct_CC
4173  fi
4174fi
4175
4176fi
4177
4178
4179test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4181as_fn_error $? "no acceptable C compiler found in \$PATH
4182See \`config.log' for more details" "$LINENO" 5; }
4183
4184# Provide some information about the compiler.
4185$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4186set X $ac_compile
4187ac_compiler=$2
4188for ac_option in --version -v -V -qversion; do
4189  { { ac_try="$ac_compiler $ac_option >&5"
4190case "(($ac_try" in
4191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192  *) ac_try_echo=$ac_try;;
4193esac
4194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195$as_echo "$ac_try_echo"; } >&5
4196  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4197  ac_status=$?
4198  if test -s conftest.err; then
4199    sed '10a\
4200... rest of stderr output deleted ...
4201         10q' conftest.err >conftest.er1
4202    cat conftest.er1 >&5
4203  fi
4204  rm -f conftest.er1 conftest.err
4205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4206  test $ac_status = 0; }
4207done
4208
4209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h.  */
4211
4212int
4213main ()
4214{
4215
4216  ;
4217  return 0;
4218}
4219_ACEOF
4220ac_clean_files_save=$ac_clean_files
4221ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4222# Try to create an executable without -o first, disregard a.out.
4223# It will help us diagnose broken compilers, and finding out an intuition
4224# of exeext.
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4226$as_echo_n "checking whether the C compiler works... " >&6; }
4227ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4228
4229# The possible output files:
4230ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4231
4232ac_rmfiles=
4233for ac_file in $ac_files
4234do
4235  case $ac_file in
4236    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4237    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4238  esac
4239done
4240rm -f $ac_rmfiles
4241
4242if { { ac_try="$ac_link_default"
4243case "(($ac_try" in
4244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245  *) ac_try_echo=$ac_try;;
4246esac
4247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4248$as_echo "$ac_try_echo"; } >&5
4249  (eval "$ac_link_default") 2>&5
4250  ac_status=$?
4251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4252  test $ac_status = 0; }; then :
4253  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4254# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4255# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4256# so that the user can short-circuit this test for compilers unknown to
4257# Autoconf.
4258for ac_file in $ac_files ''
4259do
4260  test -f "$ac_file" || continue
4261  case $ac_file in
4262    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4263	;;
4264    [ab].out )
4265	# We found the default executable, but exeext='' is most
4266	# certainly right.
4267	break;;
4268    *.* )
4269	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4270	then :; else
4271	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4272	fi
4273	# We set ac_cv_exeext here because the later test for it is not
4274	# safe: cross compilers may not add the suffix if given an `-o'
4275	# argument, so we may need to know it at that point already.
4276	# Even if this section looks crufty: it has the advantage of
4277	# actually working.
4278	break;;
4279    * )
4280	break;;
4281  esac
4282done
4283test "$ac_cv_exeext" = no && ac_cv_exeext=
4284
4285else
4286  ac_file=''
4287fi
4288if test -z "$ac_file"; then :
4289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290$as_echo "no" >&6; }
4291$as_echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296as_fn_error 77 "C compiler cannot create executables
4297See \`config.log' for more details" "$LINENO" 5; }
4298else
4299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4300$as_echo "yes" >&6; }
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4303$as_echo_n "checking for C compiler default output file name... " >&6; }
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4305$as_echo "$ac_file" >&6; }
4306ac_exeext=$ac_cv_exeext
4307
4308rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4309ac_clean_files=$ac_clean_files_save
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4311$as_echo_n "checking for suffix of executables... " >&6; }
4312if { { ac_try="$ac_link"
4313case "(($ac_try" in
4314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315  *) ac_try_echo=$ac_try;;
4316esac
4317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318$as_echo "$ac_try_echo"; } >&5
4319  (eval "$ac_link") 2>&5
4320  ac_status=$?
4321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322  test $ac_status = 0; }; then :
4323  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4324# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4325# work properly (i.e., refer to `conftest.exe'), while it won't with
4326# `rm'.
4327for ac_file in conftest.exe conftest conftest.*; do
4328  test -f "$ac_file" || continue
4329  case $ac_file in
4330    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4331    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4332	  break;;
4333    * ) break;;
4334  esac
4335done
4336else
4337  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4339as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4340See \`config.log' for more details" "$LINENO" 5; }
4341fi
4342rm -f conftest conftest$ac_cv_exeext
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4344$as_echo "$ac_cv_exeext" >&6; }
4345
4346rm -f conftest.$ac_ext
4347EXEEXT=$ac_cv_exeext
4348ac_exeext=$EXEEXT
4349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350/* end confdefs.h.  */
4351#include <stdio.h>
4352int
4353main ()
4354{
4355FILE *f = fopen ("conftest.out", "w");
4356 return ferror (f) || fclose (f) != 0;
4357
4358  ;
4359  return 0;
4360}
4361_ACEOF
4362ac_clean_files="$ac_clean_files conftest.out"
4363# Check that the compiler produces executables we can run.  If not, either
4364# the compiler is broken, or we cross compile.
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4366$as_echo_n "checking whether we are cross compiling... " >&6; }
4367if test "$cross_compiling" != yes; then
4368  { { ac_try="$ac_link"
4369case "(($ac_try" in
4370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371  *) ac_try_echo=$ac_try;;
4372esac
4373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4374$as_echo "$ac_try_echo"; } >&5
4375  (eval "$ac_link") 2>&5
4376  ac_status=$?
4377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378  test $ac_status = 0; }
4379  if { ac_try='./conftest$ac_cv_exeext'
4380  { { case "(($ac_try" in
4381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382  *) ac_try_echo=$ac_try;;
4383esac
4384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385$as_echo "$ac_try_echo"; } >&5
4386  (eval "$ac_try") 2>&5
4387  ac_status=$?
4388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389  test $ac_status = 0; }; }; then
4390    cross_compiling=no
4391  else
4392    if test "$cross_compiling" = maybe; then
4393	cross_compiling=yes
4394    else
4395	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4397as_fn_error $? "cannot run C compiled programs.
4398If you meant to cross compile, use \`--host'.
4399See \`config.log' for more details" "$LINENO" 5; }
4400    fi
4401  fi
4402fi
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4404$as_echo "$cross_compiling" >&6; }
4405
4406rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4407ac_clean_files=$ac_clean_files_save
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4409$as_echo_n "checking for suffix of object files... " >&6; }
4410if ${ac_cv_objext+:} false; then :
4411  $as_echo_n "(cached) " >&6
4412else
4413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414/* end confdefs.h.  */
4415
4416int
4417main ()
4418{
4419
4420  ;
4421  return 0;
4422}
4423_ACEOF
4424rm -f conftest.o conftest.obj
4425if { { ac_try="$ac_compile"
4426case "(($ac_try" in
4427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428  *) ac_try_echo=$ac_try;;
4429esac
4430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4431$as_echo "$ac_try_echo"; } >&5
4432  (eval "$ac_compile") 2>&5
4433  ac_status=$?
4434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4435  test $ac_status = 0; }; then :
4436  for ac_file in conftest.o conftest.obj conftest.*; do
4437  test -f "$ac_file" || continue;
4438  case $ac_file in
4439    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4440    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4441       break;;
4442  esac
4443done
4444else
4445  $as_echo "$as_me: failed program was:" >&5
4446sed 's/^/| /' conftest.$ac_ext >&5
4447
4448{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4450as_fn_error $? "cannot compute suffix of object files: cannot compile
4451See \`config.log' for more details" "$LINENO" 5; }
4452fi
4453rm -f conftest.$ac_cv_objext conftest.$ac_ext
4454fi
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4456$as_echo "$ac_cv_objext" >&6; }
4457OBJEXT=$ac_cv_objext
4458ac_objext=$OBJEXT
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4460$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4461if ${ac_cv_c_compiler_gnu+:} false; then :
4462  $as_echo_n "(cached) " >&6
4463else
4464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465/* end confdefs.h.  */
4466
4467int
4468main ()
4469{
4470#ifndef __GNUC__
4471       choke me
4472#endif
4473
4474  ;
4475  return 0;
4476}
4477_ACEOF
4478if ac_fn_c_try_compile "$LINENO"; then :
4479  ac_compiler_gnu=yes
4480else
4481  ac_compiler_gnu=no
4482fi
4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484ac_cv_c_compiler_gnu=$ac_compiler_gnu
4485
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4488$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4489if test $ac_compiler_gnu = yes; then
4490  GCC=yes
4491else
4492  GCC=
4493fi
4494ac_test_CFLAGS=${CFLAGS+set}
4495ac_save_CFLAGS=$CFLAGS
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4497$as_echo_n "checking whether $CC accepts -g... " >&6; }
4498if ${ac_cv_prog_cc_g+:} false; then :
4499  $as_echo_n "(cached) " >&6
4500else
4501  ac_save_c_werror_flag=$ac_c_werror_flag
4502   ac_c_werror_flag=yes
4503   ac_cv_prog_cc_g=no
4504   CFLAGS="-g"
4505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506/* end confdefs.h.  */
4507
4508int
4509main ()
4510{
4511
4512  ;
4513  return 0;
4514}
4515_ACEOF
4516if ac_fn_c_try_compile "$LINENO"; then :
4517  ac_cv_prog_cc_g=yes
4518else
4519  CFLAGS=""
4520      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521/* end confdefs.h.  */
4522
4523int
4524main ()
4525{
4526
4527  ;
4528  return 0;
4529}
4530_ACEOF
4531if ac_fn_c_try_compile "$LINENO"; then :
4532
4533else
4534  ac_c_werror_flag=$ac_save_c_werror_flag
4535	 CFLAGS="-g"
4536	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h.  */
4538
4539int
4540main ()
4541{
4542
4543  ;
4544  return 0;
4545}
4546_ACEOF
4547if ac_fn_c_try_compile "$LINENO"; then :
4548  ac_cv_prog_cc_g=yes
4549fi
4550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551fi
4552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553fi
4554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555   ac_c_werror_flag=$ac_save_c_werror_flag
4556fi
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4558$as_echo "$ac_cv_prog_cc_g" >&6; }
4559if test "$ac_test_CFLAGS" = set; then
4560  CFLAGS=$ac_save_CFLAGS
4561elif test $ac_cv_prog_cc_g = yes; then
4562  if test "$GCC" = yes; then
4563    CFLAGS="-g -O2"
4564  else
4565    CFLAGS="-g"
4566  fi
4567else
4568  if test "$GCC" = yes; then
4569    CFLAGS="-O2"
4570  else
4571    CFLAGS=
4572  fi
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4575$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4576if ${ac_cv_prog_cc_c89+:} false; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579  ac_cv_prog_cc_c89=no
4580ac_save_CC=$CC
4581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582/* end confdefs.h.  */
4583#include <stdarg.h>
4584#include <stdio.h>
4585struct stat;
4586/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4587struct buf { int x; };
4588FILE * (*rcsopen) (struct buf *, struct stat *, int);
4589static char *e (p, i)
4590     char **p;
4591     int i;
4592{
4593  return p[i];
4594}
4595static char *f (char * (*g) (char **, int), char **p, ...)
4596{
4597  char *s;
4598  va_list v;
4599  va_start (v,p);
4600  s = g (p, va_arg (v,int));
4601  va_end (v);
4602  return s;
4603}
4604
4605/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4606   function prototypes and stuff, but not '\xHH' hex character constants.
4607   These don't provoke an error unfortunately, instead are silently treated
4608   as 'x'.  The following induces an error, until -std is added to get
4609   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4610   array size at least.  It's necessary to write '\x00'==0 to get something
4611   that's true only with -std.  */
4612int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4613
4614/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4615   inside strings and character constants.  */
4616#define FOO(x) 'x'
4617int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4618
4619int test (int i, double x);
4620struct s1 {int (*f) (int a);};
4621struct s2 {int (*f) (double a);};
4622int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4623int argc;
4624char **argv;
4625int
4626main ()
4627{
4628return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4629  ;
4630  return 0;
4631}
4632_ACEOF
4633for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4634	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4635do
4636  CC="$ac_save_CC $ac_arg"
4637  if ac_fn_c_try_compile "$LINENO"; then :
4638  ac_cv_prog_cc_c89=$ac_arg
4639fi
4640rm -f core conftest.err conftest.$ac_objext
4641  test "x$ac_cv_prog_cc_c89" != "xno" && break
4642done
4643rm -f conftest.$ac_ext
4644CC=$ac_save_CC
4645
4646fi
4647# AC_CACHE_VAL
4648case "x$ac_cv_prog_cc_c89" in
4649  x)
4650    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4651$as_echo "none needed" >&6; } ;;
4652  xno)
4653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4654$as_echo "unsupported" >&6; } ;;
4655  *)
4656    CC="$CC $ac_cv_prog_cc_c89"
4657    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4658$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4659esac
4660if test "x$ac_cv_prog_cc_c89" != xno; then :
4661
4662fi
4663
4664ac_ext=c
4665ac_cpp='$CPP $CPPFLAGS'
4666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4668ac_compiler_gnu=$ac_cv_c_compiler_gnu
4669
4670ac_ext=cpp
4671ac_cpp='$CXXCPP $CPPFLAGS'
4672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4675if test -z "$CXX"; then
4676  if test -n "$CCC"; then
4677    CXX=$CCC
4678  else
4679    if test -n "$ac_tool_prefix"; then
4680  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4681  do
4682    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4683set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685$as_echo_n "checking for $ac_word... " >&6; }
4686if ${ac_cv_prog_CXX+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  if test -n "$CXX"; then
4690  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4691else
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695  IFS=$as_save_IFS
4696  test -z "$as_dir" && as_dir=.
4697    for ac_exec_ext in '' $ac_executable_extensions; do
4698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701    break 2
4702  fi
4703done
4704  done
4705IFS=$as_save_IFS
4706
4707fi
4708fi
4709CXX=$ac_cv_prog_CXX
4710if test -n "$CXX"; then
4711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4712$as_echo "$CXX" >&6; }
4713else
4714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715$as_echo "no" >&6; }
4716fi
4717
4718
4719    test -n "$CXX" && break
4720  done
4721fi
4722if test -z "$CXX"; then
4723  ac_ct_CXX=$CXX
4724  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4725do
4726  # Extract the first word of "$ac_prog", so it can be a program name with args.
4727set dummy $ac_prog; ac_word=$2
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729$as_echo_n "checking for $ac_word... " >&6; }
4730if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4731  $as_echo_n "(cached) " >&6
4732else
4733  if test -n "$ac_ct_CXX"; then
4734  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739  IFS=$as_save_IFS
4740  test -z "$as_dir" && as_dir=.
4741    for ac_exec_ext in '' $ac_executable_extensions; do
4742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743    ac_cv_prog_ac_ct_CXX="$ac_prog"
4744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745    break 2
4746  fi
4747done
4748  done
4749IFS=$as_save_IFS
4750
4751fi
4752fi
4753ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4754if test -n "$ac_ct_CXX"; then
4755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4756$as_echo "$ac_ct_CXX" >&6; }
4757else
4758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759$as_echo "no" >&6; }
4760fi
4761
4762
4763  test -n "$ac_ct_CXX" && break
4764done
4765
4766  if test "x$ac_ct_CXX" = x; then
4767    CXX="g++"
4768  else
4769    case $cross_compiling:$ac_tool_warned in
4770yes:)
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4773ac_tool_warned=yes ;;
4774esac
4775    CXX=$ac_ct_CXX
4776  fi
4777fi
4778
4779  fi
4780fi
4781# Provide some information about the compiler.
4782$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4783set X $ac_compile
4784ac_compiler=$2
4785for ac_option in --version -v -V -qversion; do
4786  { { ac_try="$ac_compiler $ac_option >&5"
4787case "(($ac_try" in
4788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789  *) ac_try_echo=$ac_try;;
4790esac
4791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4792$as_echo "$ac_try_echo"; } >&5
4793  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4794  ac_status=$?
4795  if test -s conftest.err; then
4796    sed '10a\
4797... rest of stderr output deleted ...
4798         10q' conftest.err >conftest.er1
4799    cat conftest.er1 >&5
4800  fi
4801  rm -f conftest.er1 conftest.err
4802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4803  test $ac_status = 0; }
4804done
4805
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4807$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4808if ${ac_cv_cxx_compiler_gnu+:} false; then :
4809  $as_echo_n "(cached) " >&6
4810else
4811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812/* end confdefs.h.  */
4813
4814int
4815main ()
4816{
4817#ifndef __GNUC__
4818       choke me
4819#endif
4820
4821  ;
4822  return 0;
4823}
4824_ACEOF
4825if ac_fn_cxx_try_compile "$LINENO"; then :
4826  ac_compiler_gnu=yes
4827else
4828  ac_compiler_gnu=no
4829fi
4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4832
4833fi
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4835$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4836if test $ac_compiler_gnu = yes; then
4837  GXX=yes
4838else
4839  GXX=
4840fi
4841ac_test_CXXFLAGS=${CXXFLAGS+set}
4842ac_save_CXXFLAGS=$CXXFLAGS
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4844$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4845if ${ac_cv_prog_cxx_g+:} false; then :
4846  $as_echo_n "(cached) " >&6
4847else
4848  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4849   ac_cxx_werror_flag=yes
4850   ac_cv_prog_cxx_g=no
4851   CXXFLAGS="-g"
4852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853/* end confdefs.h.  */
4854
4855int
4856main ()
4857{
4858
4859  ;
4860  return 0;
4861}
4862_ACEOF
4863if ac_fn_cxx_try_compile "$LINENO"; then :
4864  ac_cv_prog_cxx_g=yes
4865else
4866  CXXFLAGS=""
4867      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868/* end confdefs.h.  */
4869
4870int
4871main ()
4872{
4873
4874  ;
4875  return 0;
4876}
4877_ACEOF
4878if ac_fn_cxx_try_compile "$LINENO"; then :
4879
4880else
4881  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4882	 CXXFLAGS="-g"
4883	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884/* end confdefs.h.  */
4885
4886int
4887main ()
4888{
4889
4890  ;
4891  return 0;
4892}
4893_ACEOF
4894if ac_fn_cxx_try_compile "$LINENO"; then :
4895  ac_cv_prog_cxx_g=yes
4896fi
4897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898fi
4899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900fi
4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4903fi
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4905$as_echo "$ac_cv_prog_cxx_g" >&6; }
4906if test "$ac_test_CXXFLAGS" = set; then
4907  CXXFLAGS=$ac_save_CXXFLAGS
4908elif test $ac_cv_prog_cxx_g = yes; then
4909  if test "$GXX" = yes; then
4910    CXXFLAGS="-g -O2"
4911  else
4912    CXXFLAGS="-g"
4913  fi
4914else
4915  if test "$GXX" = yes; then
4916    CXXFLAGS="-O2"
4917  else
4918    CXXFLAGS=
4919  fi
4920fi
4921ac_ext=c
4922ac_cpp='$CPP $CPPFLAGS'
4923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926
4927
4928
4929
4930if test -n "$ac_tool_prefix"; then
4931  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4932set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934$as_echo_n "checking for $ac_word... " >&6; }
4935if ${ac_cv_prog_GNATBIND+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  if test -n "$GNATBIND"; then
4939  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4940else
4941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH
4943do
4944  IFS=$as_save_IFS
4945  test -z "$as_dir" && as_dir=.
4946    for ac_exec_ext in '' $ac_executable_extensions; do
4947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4948    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950    break 2
4951  fi
4952done
4953  done
4954IFS=$as_save_IFS
4955
4956fi
4957fi
4958GNATBIND=$ac_cv_prog_GNATBIND
4959if test -n "$GNATBIND"; then
4960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4961$as_echo "$GNATBIND" >&6; }
4962else
4963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964$as_echo "no" >&6; }
4965fi
4966
4967
4968fi
4969if test -z "$ac_cv_prog_GNATBIND"; then
4970  ac_ct_GNATBIND=$GNATBIND
4971  # Extract the first word of "gnatbind", so it can be a program name with args.
4972set dummy gnatbind; ac_word=$2
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974$as_echo_n "checking for $ac_word... " >&6; }
4975if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978  if test -n "$ac_ct_GNATBIND"; then
4979  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4980else
4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982for as_dir in $PATH
4983do
4984  IFS=$as_save_IFS
4985  test -z "$as_dir" && as_dir=.
4986    for ac_exec_ext in '' $ac_executable_extensions; do
4987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990    break 2
4991  fi
4992done
4993  done
4994IFS=$as_save_IFS
4995
4996fi
4997fi
4998ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4999if test -n "$ac_ct_GNATBIND"; then
5000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5001$as_echo "$ac_ct_GNATBIND" >&6; }
5002else
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004$as_echo "no" >&6; }
5005fi
5006
5007  if test "x$ac_ct_GNATBIND" = x; then
5008    GNATBIND="no"
5009  else
5010    case $cross_compiling:$ac_tool_warned in
5011yes:)
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014ac_tool_warned=yes ;;
5015esac
5016    GNATBIND=$ac_ct_GNATBIND
5017  fi
5018else
5019  GNATBIND="$ac_cv_prog_GNATBIND"
5020fi
5021
5022if test -n "$ac_tool_prefix"; then
5023  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5024set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026$as_echo_n "checking for $ac_word... " >&6; }
5027if ${ac_cv_prog_GNATMAKE+:} false; then :
5028  $as_echo_n "(cached) " >&6
5029else
5030  if test -n "$GNATMAKE"; then
5031  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5032else
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036  IFS=$as_save_IFS
5037  test -z "$as_dir" && as_dir=.
5038    for ac_exec_ext in '' $ac_executable_extensions; do
5039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042    break 2
5043  fi
5044done
5045  done
5046IFS=$as_save_IFS
5047
5048fi
5049fi
5050GNATMAKE=$ac_cv_prog_GNATMAKE
5051if test -n "$GNATMAKE"; then
5052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5053$as_echo "$GNATMAKE" >&6; }
5054else
5055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056$as_echo "no" >&6; }
5057fi
5058
5059
5060fi
5061if test -z "$ac_cv_prog_GNATMAKE"; then
5062  ac_ct_GNATMAKE=$GNATMAKE
5063  # Extract the first word of "gnatmake", so it can be a program name with args.
5064set dummy gnatmake; ac_word=$2
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066$as_echo_n "checking for $ac_word... " >&6; }
5067if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  if test -n "$ac_ct_GNATMAKE"; then
5071  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5072else
5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076  IFS=$as_save_IFS
5077  test -z "$as_dir" && as_dir=.
5078    for ac_exec_ext in '' $ac_executable_extensions; do
5079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082    break 2
5083  fi
5084done
5085  done
5086IFS=$as_save_IFS
5087
5088fi
5089fi
5090ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5091if test -n "$ac_ct_GNATMAKE"; then
5092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5093$as_echo "$ac_ct_GNATMAKE" >&6; }
5094else
5095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096$as_echo "no" >&6; }
5097fi
5098
5099  if test "x$ac_ct_GNATMAKE" = x; then
5100    GNATMAKE="no"
5101  else
5102    case $cross_compiling:$ac_tool_warned in
5103yes:)
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5106ac_tool_warned=yes ;;
5107esac
5108    GNATMAKE=$ac_ct_GNATMAKE
5109  fi
5110else
5111  GNATMAKE="$ac_cv_prog_GNATMAKE"
5112fi
5113
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5115$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5116if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  cat >conftest.adb <<EOF
5120procedure conftest is begin null; end conftest;
5121EOF
5122acx_cv_cc_gcc_supports_ada=no
5123# There is a bug in old released versions of GCC which causes the
5124# driver to exit successfully when the appropriate language module
5125# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5126# Therefore we must check for the error message as well as an
5127# unsuccessful exit.
5128# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5129# given a .adb file, but produce no object file.  So we must check
5130# if an object file was really produced to guard against this.
5131errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5132if test x"$errors" = x && test -f conftest.$ac_objext; then
5133  acx_cv_cc_gcc_supports_ada=yes
5134fi
5135rm -f conftest.*
5136fi
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5138$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5139
5140if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5141  have_gnat=yes
5142else
5143  have_gnat=no
5144fi
5145
5146
5147# Do configure tests with the C++ compiler, since that's what we build with.
5148ac_ext=cpp
5149ac_cpp='$CXXCPP $CPPFLAGS'
5150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5153
5154
5155# Remove the -O2: for historical reasons, unless bootstrapping we prefer
5156# optimizations to be activated explicitly by the toplevel.
5157case "$CC" in
5158  */prev-gcc/xgcc*) ;;
5159  *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" `
5160     CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" ` ;;
5161esac
5162
5163
5164
5165# Determine PICFLAG for target gnatlib.
5166
5167
5168
5169
5170case "${target}" in
5171    # PIC is the default on some targets or must not be used.
5172    *-*-darwin*)
5173	# For darwin, common symbols are not allowed in MH_DYLIB files
5174	case "${CFLAGS}" in
5175	  # If we are using a compiler supporting mdynamic-no-pic
5176	  # and the option has been tested as safe to add, then cancel
5177	  # it here, since the code generated is incompatible with shared
5178	  # libs.
5179	  *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5180	  *) PICFLAG_FOR_TARGET=-fno-common ;;
5181	esac
5182	;;
5183    alpha*-dec-osf5*)
5184	# PIC is the default.
5185	;;
5186    hppa*64*-*-hpux*)
5187	# PIC is the default for 64-bit PA HP-UX.
5188	;;
5189    i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5190	;;
5191    i[34567]86-*-mingw* | x86_64-*-mingw*)
5192	;;
5193    i[34567]86-*-interix[3-9]*)
5194	# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5195	# Instead, we relocate shared libraries at runtime.
5196	;;
5197    i[34567]86-*-nto-qnx*)
5198	# QNX uses GNU C++, but need to define -shared option too, otherwise
5199	# it will coredump.
5200	PICFLAG_FOR_TARGET='-fPIC -shared'
5201	;;
5202    i[34567]86-pc-msdosdjgpp*)
5203	# DJGPP does not support shared libraries at all.
5204	;;
5205    ia64*-*-hpux*)
5206	# On IA64 HP-UX, PIC is the default but the pic flag
5207	# sets the default TLS model and affects inlining.
5208	PICFLAG_FOR_TARGET=-fPIC
5209	;;
5210    mips-sgi-irix6*)
5211	# PIC is the default.
5212	;;
5213    rs6000-ibm-aix* | powerpc-ibm-aix*)
5214	# All AIX code is PIC.
5215	;;
5216
5217    # Some targets support both -fPIC and -fpic, but prefer the latter.
5218    # FIXME: Why?
5219    i[34567]86-*-* | x86_64-*-*)
5220	PICFLAG_FOR_TARGET=-fpic
5221	;;
5222    # FIXME: Override -fPIC default in libgcc only?
5223    sh-*-linux* | sh[2346lbe]*-*-linux*)
5224	PICFLAG_FOR_TARGET=-fpic
5225	;;
5226    # FIXME: Simplify to sh*-*-netbsd*?
5227    sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5228      sh64-*-netbsd* | sh64l*-*-netbsd*)
5229	PICFLAG_FOR_TARGET=-fpic
5230	;;
5231    # Default to -fPIC unless specified otherwise.
5232    *)
5233	PICFLAG_FOR_TARGET=-fPIC
5234	;;
5235esac
5236
5237# If the user explicitly uses -fpic/-fPIC, keep that.
5238case "${CFLAGS_FOR_TARGET}" in
5239    *-fpic*)
5240	PICFLAG_FOR_TARGET=-fpic
5241	;;
5242    *-fPIC*)
5243	PICFLAG_FOR_TARGET=-fPIC
5244	;;
5245esac
5246
5247
5248
5249# -------------------------
5250# Check C compiler features
5251# -------------------------
5252
5253
5254ac_ext=cpp
5255ac_cpp='$CXXCPP $CPPFLAGS'
5256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5260$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5261if test -z "$CXXCPP"; then
5262  if ${ac_cv_prog_CXXCPP+:} false; then :
5263  $as_echo_n "(cached) " >&6
5264else
5265      # Double quotes because CXXCPP needs to be expanded
5266    for CXXCPP in "$CXX -E" "/lib/cpp"
5267    do
5268      ac_preproc_ok=false
5269for ac_cxx_preproc_warn_flag in '' yes
5270do
5271  # Use a header file that comes with gcc, so configuring glibc
5272  # with a fresh cross-compiler works.
5273  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5274  # <limits.h> exists even on freestanding compilers.
5275  # On the NeXT, cc -E runs the code through the compiler's parser,
5276  # not just through cpp. "Syntax error" is here to catch this case.
5277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278/* end confdefs.h.  */
5279#ifdef __STDC__
5280# include <limits.h>
5281#else
5282# include <assert.h>
5283#endif
5284		     Syntax error
5285_ACEOF
5286if ac_fn_cxx_try_cpp "$LINENO"; then :
5287
5288else
5289  # Broken: fails on valid input.
5290continue
5291fi
5292rm -f conftest.err conftest.i conftest.$ac_ext
5293
5294  # OK, works on sane cases.  Now check whether nonexistent headers
5295  # can be detected and how.
5296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h.  */
5298#include <ac_nonexistent.h>
5299_ACEOF
5300if ac_fn_cxx_try_cpp "$LINENO"; then :
5301  # Broken: success on invalid input.
5302continue
5303else
5304  # Passes both tests.
5305ac_preproc_ok=:
5306break
5307fi
5308rm -f conftest.err conftest.i conftest.$ac_ext
5309
5310done
5311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5312rm -f conftest.i conftest.err conftest.$ac_ext
5313if $ac_preproc_ok; then :
5314  break
5315fi
5316
5317    done
5318    ac_cv_prog_CXXCPP=$CXXCPP
5319
5320fi
5321  CXXCPP=$ac_cv_prog_CXXCPP
5322else
5323  ac_cv_prog_CXXCPP=$CXXCPP
5324fi
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5326$as_echo "$CXXCPP" >&6; }
5327ac_preproc_ok=false
5328for ac_cxx_preproc_warn_flag in '' yes
5329do
5330  # Use a header file that comes with gcc, so configuring glibc
5331  # with a fresh cross-compiler works.
5332  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5333  # <limits.h> exists even on freestanding compilers.
5334  # On the NeXT, cc -E runs the code through the compiler's parser,
5335  # not just through cpp. "Syntax error" is here to catch this case.
5336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337/* end confdefs.h.  */
5338#ifdef __STDC__
5339# include <limits.h>
5340#else
5341# include <assert.h>
5342#endif
5343		     Syntax error
5344_ACEOF
5345if ac_fn_cxx_try_cpp "$LINENO"; then :
5346
5347else
5348  # Broken: fails on valid input.
5349continue
5350fi
5351rm -f conftest.err conftest.i conftest.$ac_ext
5352
5353  # OK, works on sane cases.  Now check whether nonexistent headers
5354  # can be detected and how.
5355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356/* end confdefs.h.  */
5357#include <ac_nonexistent.h>
5358_ACEOF
5359if ac_fn_cxx_try_cpp "$LINENO"; then :
5360  # Broken: success on invalid input.
5361continue
5362else
5363  # Passes both tests.
5364ac_preproc_ok=:
5365break
5366fi
5367rm -f conftest.err conftest.i conftest.$ac_ext
5368
5369done
5370# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5371rm -f conftest.i conftest.err conftest.$ac_ext
5372if $ac_preproc_ok; then :
5373
5374else
5375  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5377as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5378See \`config.log' for more details" "$LINENO" 5; }
5379fi
5380
5381ac_ext=cpp
5382ac_cpp='$CXXCPP $CPPFLAGS'
5383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5386
5387
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5389$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5390if ${ac_cv_path_GREP+:} false; then :
5391  $as_echo_n "(cached) " >&6
5392else
5393  if test -z "$GREP"; then
5394  ac_path_GREP_found=false
5395  # Loop through the user's path and test for each of PROGNAME-LIST
5396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5398do
5399  IFS=$as_save_IFS
5400  test -z "$as_dir" && as_dir=.
5401    for ac_prog in grep ggrep; do
5402    for ac_exec_ext in '' $ac_executable_extensions; do
5403      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5404      as_fn_executable_p "$ac_path_GREP" || continue
5405# Check for GNU ac_path_GREP and select it if it is found.
5406  # Check for GNU $ac_path_GREP
5407case `"$ac_path_GREP" --version 2>&1` in
5408*GNU*)
5409  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5410*)
5411  ac_count=0
5412  $as_echo_n 0123456789 >"conftest.in"
5413  while :
5414  do
5415    cat "conftest.in" "conftest.in" >"conftest.tmp"
5416    mv "conftest.tmp" "conftest.in"
5417    cp "conftest.in" "conftest.nl"
5418    $as_echo 'GREP' >> "conftest.nl"
5419    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5420    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5421    as_fn_arith $ac_count + 1 && ac_count=$as_val
5422    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5423      # Best one so far, save it but keep looking for a better one
5424      ac_cv_path_GREP="$ac_path_GREP"
5425      ac_path_GREP_max=$ac_count
5426    fi
5427    # 10*(2^10) chars as input seems more than enough
5428    test $ac_count -gt 10 && break
5429  done
5430  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5431esac
5432
5433      $ac_path_GREP_found && break 3
5434    done
5435  done
5436  done
5437IFS=$as_save_IFS
5438  if test -z "$ac_cv_path_GREP"; then
5439    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5440  fi
5441else
5442  ac_cv_path_GREP=$GREP
5443fi
5444
5445fi
5446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5447$as_echo "$ac_cv_path_GREP" >&6; }
5448 GREP="$ac_cv_path_GREP"
5449
5450
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5452$as_echo_n "checking for egrep... " >&6; }
5453if ${ac_cv_path_EGREP+:} false; then :
5454  $as_echo_n "(cached) " >&6
5455else
5456  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5457   then ac_cv_path_EGREP="$GREP -E"
5458   else
5459     if test -z "$EGREP"; then
5460  ac_path_EGREP_found=false
5461  # Loop through the user's path and test for each of PROGNAME-LIST
5462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5464do
5465  IFS=$as_save_IFS
5466  test -z "$as_dir" && as_dir=.
5467    for ac_prog in egrep; do
5468    for ac_exec_ext in '' $ac_executable_extensions; do
5469      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5470      as_fn_executable_p "$ac_path_EGREP" || continue
5471# Check for GNU ac_path_EGREP and select it if it is found.
5472  # Check for GNU $ac_path_EGREP
5473case `"$ac_path_EGREP" --version 2>&1` in
5474*GNU*)
5475  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5476*)
5477  ac_count=0
5478  $as_echo_n 0123456789 >"conftest.in"
5479  while :
5480  do
5481    cat "conftest.in" "conftest.in" >"conftest.tmp"
5482    mv "conftest.tmp" "conftest.in"
5483    cp "conftest.in" "conftest.nl"
5484    $as_echo 'EGREP' >> "conftest.nl"
5485    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5486    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5487    as_fn_arith $ac_count + 1 && ac_count=$as_val
5488    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5489      # Best one so far, save it but keep looking for a better one
5490      ac_cv_path_EGREP="$ac_path_EGREP"
5491      ac_path_EGREP_max=$ac_count
5492    fi
5493    # 10*(2^10) chars as input seems more than enough
5494    test $ac_count -gt 10 && break
5495  done
5496  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5497esac
5498
5499      $ac_path_EGREP_found && break 3
5500    done
5501  done
5502  done
5503IFS=$as_save_IFS
5504  if test -z "$ac_cv_path_EGREP"; then
5505    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5506  fi
5507else
5508  ac_cv_path_EGREP=$EGREP
5509fi
5510
5511   fi
5512fi
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5514$as_echo "$ac_cv_path_EGREP" >&6; }
5515 EGREP="$ac_cv_path_EGREP"
5516
5517
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5519$as_echo_n "checking for ANSI C header files... " >&6; }
5520if ${ac_cv_header_stdc+:} false; then :
5521  $as_echo_n "(cached) " >&6
5522else
5523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h.  */
5525#include <stdlib.h>
5526#include <stdarg.h>
5527#include <string.h>
5528#include <float.h>
5529
5530int
5531main ()
5532{
5533
5534  ;
5535  return 0;
5536}
5537_ACEOF
5538if ac_fn_cxx_try_compile "$LINENO"; then :
5539  ac_cv_header_stdc=yes
5540else
5541  ac_cv_header_stdc=no
5542fi
5543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544
5545if test $ac_cv_header_stdc = yes; then
5546  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548/* end confdefs.h.  */
5549#include <string.h>
5550
5551_ACEOF
5552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5553  $EGREP "memchr" >/dev/null 2>&1; then :
5554
5555else
5556  ac_cv_header_stdc=no
5557fi
5558rm -f conftest*
5559
5560fi
5561
5562if test $ac_cv_header_stdc = yes; then
5563  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565/* end confdefs.h.  */
5566#include <stdlib.h>
5567
5568_ACEOF
5569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5570  $EGREP "free" >/dev/null 2>&1; then :
5571
5572else
5573  ac_cv_header_stdc=no
5574fi
5575rm -f conftest*
5576
5577fi
5578
5579if test $ac_cv_header_stdc = yes; then
5580  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5581  if test "$cross_compiling" = yes; then :
5582  :
5583else
5584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585/* end confdefs.h.  */
5586#include <ctype.h>
5587#include <stdlib.h>
5588#if ((' ' & 0x0FF) == 0x020)
5589# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5590# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5591#else
5592# define ISLOWER(c) \
5593		   (('a' <= (c) && (c) <= 'i') \
5594		     || ('j' <= (c) && (c) <= 'r') \
5595		     || ('s' <= (c) && (c) <= 'z'))
5596# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5597#endif
5598
5599#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5600int
5601main ()
5602{
5603  int i;
5604  for (i = 0; i < 256; i++)
5605    if (XOR (islower (i), ISLOWER (i))
5606	|| toupper (i) != TOUPPER (i))
5607      return 2;
5608  return 0;
5609}
5610_ACEOF
5611if ac_fn_cxx_try_run "$LINENO"; then :
5612
5613else
5614  ac_cv_header_stdc=no
5615fi
5616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5617  conftest.$ac_objext conftest.beam conftest.$ac_ext
5618fi
5619
5620fi
5621fi
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5623$as_echo "$ac_cv_header_stdc" >&6; }
5624if test $ac_cv_header_stdc = yes; then
5625
5626$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5627
5628fi
5629
5630# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5631for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5632		  inttypes.h stdint.h unistd.h
5633do :
5634  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5635ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5636"
5637if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5638  cat >>confdefs.h <<_ACEOF
5639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5640_ACEOF
5641
5642fi
5643
5644done
5645
5646
5647
5648  ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5649if test "x$ac_cv_header_minix_config_h" = xyes; then :
5650  MINIX=yes
5651else
5652  MINIX=
5653fi
5654
5655
5656  if test "$MINIX" = yes; then
5657
5658$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5659
5660
5661$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5662
5663
5664$as_echo "#define _MINIX 1" >>confdefs.h
5665
5666  fi
5667
5668
5669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5670$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5671if ${ac_cv_safe_to_define___extensions__+:} false; then :
5672  $as_echo_n "(cached) " >&6
5673else
5674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h.  */
5676
5677#         define __EXTENSIONS__ 1
5678          $ac_includes_default
5679int
5680main ()
5681{
5682
5683  ;
5684  return 0;
5685}
5686_ACEOF
5687if ac_fn_cxx_try_compile "$LINENO"; then :
5688  ac_cv_safe_to_define___extensions__=yes
5689else
5690  ac_cv_safe_to_define___extensions__=no
5691fi
5692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693fi
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5695$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5696  test $ac_cv_safe_to_define___extensions__ = yes &&
5697    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5698
5699  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5700
5701  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5702
5703  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5704
5705  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5706
5707
5708ac_ext=c
5709ac_cpp='$CPP $CPPFLAGS'
5710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5712ac_compiler_gnu=$ac_cv_c_compiler_gnu
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5714$as_echo_n "checking how to run the C preprocessor... " >&6; }
5715# On Suns, sometimes $CPP names a directory.
5716if test -n "$CPP" && test -d "$CPP"; then
5717  CPP=
5718fi
5719if test -z "$CPP"; then
5720  if ${ac_cv_prog_CPP+:} false; then :
5721  $as_echo_n "(cached) " >&6
5722else
5723      # Double quotes because CPP needs to be expanded
5724    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5725    do
5726      ac_preproc_ok=false
5727for ac_c_preproc_warn_flag in '' yes
5728do
5729  # Use a header file that comes with gcc, so configuring glibc
5730  # with a fresh cross-compiler works.
5731  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5732  # <limits.h> exists even on freestanding compilers.
5733  # On the NeXT, cc -E runs the code through the compiler's parser,
5734  # not just through cpp. "Syntax error" is here to catch this case.
5735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736/* end confdefs.h.  */
5737#ifdef __STDC__
5738# include <limits.h>
5739#else
5740# include <assert.h>
5741#endif
5742		     Syntax error
5743_ACEOF
5744if ac_fn_c_try_cpp "$LINENO"; then :
5745
5746else
5747  # Broken: fails on valid input.
5748continue
5749fi
5750rm -f conftest.err conftest.i conftest.$ac_ext
5751
5752  # OK, works on sane cases.  Now check whether nonexistent headers
5753  # can be detected and how.
5754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755/* end confdefs.h.  */
5756#include <ac_nonexistent.h>
5757_ACEOF
5758if ac_fn_c_try_cpp "$LINENO"; then :
5759  # Broken: success on invalid input.
5760continue
5761else
5762  # Passes both tests.
5763ac_preproc_ok=:
5764break
5765fi
5766rm -f conftest.err conftest.i conftest.$ac_ext
5767
5768done
5769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5770rm -f conftest.i conftest.err conftest.$ac_ext
5771if $ac_preproc_ok; then :
5772  break
5773fi
5774
5775    done
5776    ac_cv_prog_CPP=$CPP
5777
5778fi
5779  CPP=$ac_cv_prog_CPP
5780else
5781  ac_cv_prog_CPP=$CPP
5782fi
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5784$as_echo "$CPP" >&6; }
5785ac_preproc_ok=false
5786for ac_c_preproc_warn_flag in '' yes
5787do
5788  # Use a header file that comes with gcc, so configuring glibc
5789  # with a fresh cross-compiler works.
5790  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5791  # <limits.h> exists even on freestanding compilers.
5792  # On the NeXT, cc -E runs the code through the compiler's parser,
5793  # not just through cpp. "Syntax error" is here to catch this case.
5794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h.  */
5796#ifdef __STDC__
5797# include <limits.h>
5798#else
5799# include <assert.h>
5800#endif
5801		     Syntax error
5802_ACEOF
5803if ac_fn_c_try_cpp "$LINENO"; then :
5804
5805else
5806  # Broken: fails on valid input.
5807continue
5808fi
5809rm -f conftest.err conftest.i conftest.$ac_ext
5810
5811  # OK, works on sane cases.  Now check whether nonexistent headers
5812  # can be detected and how.
5813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h.  */
5815#include <ac_nonexistent.h>
5816_ACEOF
5817if ac_fn_c_try_cpp "$LINENO"; then :
5818  # Broken: success on invalid input.
5819continue
5820else
5821  # Passes both tests.
5822ac_preproc_ok=:
5823break
5824fi
5825rm -f conftest.err conftest.i conftest.$ac_ext
5826
5827done
5828# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5829rm -f conftest.i conftest.err conftest.$ac_ext
5830if $ac_preproc_ok; then :
5831
5832else
5833  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5835as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5836See \`config.log' for more details" "$LINENO" 5; }
5837fi
5838
5839ac_ext=cpp
5840ac_cpp='$CXXCPP $CPPFLAGS'
5841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5844
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5846$as_echo_n "checking for inline... " >&6; }
5847if ${ac_cv_c_inline+:} false; then :
5848  $as_echo_n "(cached) " >&6
5849else
5850  ac_cv_c_inline=no
5851for ac_kw in inline __inline__ __inline; do
5852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853/* end confdefs.h.  */
5854#ifndef __cplusplus
5855typedef int foo_t;
5856static $ac_kw foo_t static_foo () {return 0; }
5857$ac_kw foo_t foo () {return 0; }
5858#endif
5859
5860_ACEOF
5861if ac_fn_cxx_try_compile "$LINENO"; then :
5862  ac_cv_c_inline=$ac_kw
5863fi
5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865  test "$ac_cv_c_inline" != no && break
5866done
5867
5868fi
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5870$as_echo "$ac_cv_c_inline" >&6; }
5871
5872case $ac_cv_c_inline in
5873  inline | yes) ;;
5874  *)
5875    case $ac_cv_c_inline in
5876      no) ac_val=;;
5877      *) ac_val=$ac_cv_c_inline;;
5878    esac
5879    cat >>confdefs.h <<_ACEOF
5880#ifndef __cplusplus
5881#define inline $ac_val
5882#endif
5883_ACEOF
5884    ;;
5885esac
5886
5887
5888# Check whether --enable-largefile was given.
5889if test "${enable_largefile+set}" = set; then :
5890  enableval=$enable_largefile;
5891fi
5892
5893if test "$enable_largefile" != no; then
5894
5895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5896$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5897if ${ac_cv_sys_largefile_CC+:} false; then :
5898  $as_echo_n "(cached) " >&6
5899else
5900  ac_cv_sys_largefile_CC=no
5901     if test "$GCC" != yes; then
5902       ac_save_CC=$CC
5903       while :; do
5904	 # IRIX 6.2 and later do not support large files by default,
5905	 # so use the C compiler's -n32 option if that helps.
5906	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h.  */
5908#include <sys/types.h>
5909 /* Check that off_t can represent 2**63 - 1 correctly.
5910    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5911    since some C++ compilers masquerading as C compilers
5912    incorrectly reject 9223372036854775807.  */
5913#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5914  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5915		       && LARGE_OFF_T % 2147483647 == 1)
5916		      ? 1 : -1];
5917int
5918main ()
5919{
5920
5921  ;
5922  return 0;
5923}
5924_ACEOF
5925	 if ac_fn_cxx_try_compile "$LINENO"; then :
5926  break
5927fi
5928rm -f core conftest.err conftest.$ac_objext
5929	 CC="$CC -n32"
5930	 if ac_fn_cxx_try_compile "$LINENO"; then :
5931  ac_cv_sys_largefile_CC=' -n32'; break
5932fi
5933rm -f core conftest.err conftest.$ac_objext
5934	 break
5935       done
5936       CC=$ac_save_CC
5937       rm -f conftest.$ac_ext
5938    fi
5939fi
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5941$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5942  if test "$ac_cv_sys_largefile_CC" != no; then
5943    CC=$CC$ac_cv_sys_largefile_CC
5944  fi
5945
5946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5947$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5948if ${ac_cv_sys_file_offset_bits+:} false; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  while :; do
5952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h.  */
5954#include <sys/types.h>
5955 /* Check that off_t can represent 2**63 - 1 correctly.
5956    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5957    since some C++ compilers masquerading as C compilers
5958    incorrectly reject 9223372036854775807.  */
5959#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5960  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5961		       && LARGE_OFF_T % 2147483647 == 1)
5962		      ? 1 : -1];
5963int
5964main ()
5965{
5966
5967  ;
5968  return 0;
5969}
5970_ACEOF
5971if ac_fn_cxx_try_compile "$LINENO"; then :
5972  ac_cv_sys_file_offset_bits=no; break
5973fi
5974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976/* end confdefs.h.  */
5977#define _FILE_OFFSET_BITS 64
5978#include <sys/types.h>
5979 /* Check that off_t can represent 2**63 - 1 correctly.
5980    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5981    since some C++ compilers masquerading as C compilers
5982    incorrectly reject 9223372036854775807.  */
5983#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5984  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5985		       && LARGE_OFF_T % 2147483647 == 1)
5986		      ? 1 : -1];
5987int
5988main ()
5989{
5990
5991  ;
5992  return 0;
5993}
5994_ACEOF
5995if ac_fn_cxx_try_compile "$LINENO"; then :
5996  ac_cv_sys_file_offset_bits=64; break
5997fi
5998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999  ac_cv_sys_file_offset_bits=unknown
6000  break
6001done
6002fi
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6004$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6005case $ac_cv_sys_file_offset_bits in #(
6006  no | unknown) ;;
6007  *)
6008cat >>confdefs.h <<_ACEOF
6009#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6010_ACEOF
6011;;
6012esac
6013rm -rf conftest*
6014  if test $ac_cv_sys_file_offset_bits = unknown; then
6015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6016$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6017if ${ac_cv_sys_large_files+:} false; then :
6018  $as_echo_n "(cached) " >&6
6019else
6020  while :; do
6021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022/* end confdefs.h.  */
6023#include <sys/types.h>
6024 /* Check that off_t can represent 2**63 - 1 correctly.
6025    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6026    since some C++ compilers masquerading as C compilers
6027    incorrectly reject 9223372036854775807.  */
6028#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6029  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6030		       && LARGE_OFF_T % 2147483647 == 1)
6031		      ? 1 : -1];
6032int
6033main ()
6034{
6035
6036  ;
6037  return 0;
6038}
6039_ACEOF
6040if ac_fn_cxx_try_compile "$LINENO"; then :
6041  ac_cv_sys_large_files=no; break
6042fi
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h.  */
6046#define _LARGE_FILES 1
6047#include <sys/types.h>
6048 /* Check that off_t can represent 2**63 - 1 correctly.
6049    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6050    since some C++ compilers masquerading as C compilers
6051    incorrectly reject 9223372036854775807.  */
6052#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6053  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6054		       && LARGE_OFF_T % 2147483647 == 1)
6055		      ? 1 : -1];
6056int
6057main ()
6058{
6059
6060  ;
6061  return 0;
6062}
6063_ACEOF
6064if ac_fn_cxx_try_compile "$LINENO"; then :
6065  ac_cv_sys_large_files=1; break
6066fi
6067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068  ac_cv_sys_large_files=unknown
6069  break
6070done
6071fi
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6073$as_echo "$ac_cv_sys_large_files" >&6; }
6074case $ac_cv_sys_large_files in #(
6075  no | unknown) ;;
6076  *)
6077cat >>confdefs.h <<_ACEOF
6078#define _LARGE_FILES $ac_cv_sys_large_files
6079_ACEOF
6080;;
6081esac
6082rm -rf conftest*
6083  fi
6084
6085
6086fi
6087
6088
6089# sizeof(char) is 1 by definition.
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 void *" >&5
6095$as_echo_n "checking size of void *... " >&6; }
6096if ${ac_cv_sizeof_void_p+:} false; then :
6097  $as_echo_n "(cached) " >&6
6098else
6099  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
6100
6101else
6102  if test "$ac_cv_type_void_p" = 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 (void *)
6106See \`config.log' for more details" "$LINENO" 5; }
6107   else
6108     ac_cv_sizeof_void_p=0
6109   fi
6110fi
6111
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6114$as_echo "$ac_cv_sizeof_void_p" >&6; }
6115
6116
6117
6118cat >>confdefs.h <<_ACEOF
6119#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
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 short" >&5
6128$as_echo_n "checking size of short... " >&6; }
6129if ${ac_cv_sizeof_short+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
6133
6134else
6135  if test "$ac_cv_type_short" = 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 (short)
6139See \`config.log' for more details" "$LINENO" 5; }
6140   else
6141     ac_cv_sizeof_short=0
6142   fi
6143fi
6144
6145fi
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6147$as_echo "$ac_cv_sizeof_short" >&6; }
6148
6149
6150
6151cat >>confdefs.h <<_ACEOF
6152#define SIZEOF_SHORT $ac_cv_sizeof_short
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 int" >&5
6161$as_echo_n "checking size of int... " >&6; }
6162if ${ac_cv_sizeof_int+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6166
6167else
6168  if test "$ac_cv_type_int" = 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 (int)
6172See \`config.log' for more details" "$LINENO" 5; }
6173   else
6174     ac_cv_sizeof_int=0
6175   fi
6176fi
6177
6178fi
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6180$as_echo "$ac_cv_sizeof_int" >&6; }
6181
6182
6183
6184cat >>confdefs.h <<_ACEOF
6185#define SIZEOF_INT $ac_cv_sizeof_int
6186_ACEOF
6187
6188
6189# The cast to long int works around a bug in the HP C Compiler
6190# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6191# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6192# This bug is HP SR number 8606223364.
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6194$as_echo_n "checking size of long... " >&6; }
6195if ${ac_cv_sizeof_long+:} false; then :
6196  $as_echo_n "(cached) " >&6
6197else
6198  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6199
6200else
6201  if test "$ac_cv_type_long" = yes; then
6202     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6204as_fn_error 77 "cannot compute sizeof (long)
6205See \`config.log' for more details" "$LINENO" 5; }
6206   else
6207     ac_cv_sizeof_long=0
6208   fi
6209fi
6210
6211fi
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6213$as_echo "$ac_cv_sizeof_long" >&6; }
6214
6215
6216
6217cat >>confdefs.h <<_ACEOF
6218#define SIZEOF_LONG $ac_cv_sizeof_long
6219_ACEOF
6220
6221
6222ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6223if test "x$ac_cv_type_long_long" = xyes; then :
6224
6225cat >>confdefs.h <<_ACEOF
6226#define HAVE_LONG_LONG 1
6227_ACEOF
6228
6229# The cast to long int works around a bug in the HP C Compiler
6230# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6231# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6232# This bug is HP SR number 8606223364.
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6234$as_echo_n "checking size of long long... " >&6; }
6235if ${ac_cv_sizeof_long_long+:} false; then :
6236  $as_echo_n "(cached) " >&6
6237else
6238  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6239
6240else
6241  if test "$ac_cv_type_long_long" = yes; then
6242     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6244as_fn_error 77 "cannot compute sizeof (long long)
6245See \`config.log' for more details" "$LINENO" 5; }
6246   else
6247     ac_cv_sizeof_long_long=0
6248   fi
6249fi
6250
6251fi
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6253$as_echo "$ac_cv_sizeof_long_long" >&6; }
6254
6255
6256
6257cat >>confdefs.h <<_ACEOF
6258#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6259_ACEOF
6260
6261
6262fi
6263
6264ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6265case $ac_cv_c_int8_t in #(
6266  no|yes) ;; #(
6267  *)
6268
6269cat >>confdefs.h <<_ACEOF
6270#define int8_t $ac_cv_c_int8_t
6271_ACEOF
6272;;
6273esac
6274
6275ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6276case $ac_cv_c_int16_t in #(
6277  no|yes) ;; #(
6278  *)
6279
6280cat >>confdefs.h <<_ACEOF
6281#define int16_t $ac_cv_c_int16_t
6282_ACEOF
6283;;
6284esac
6285
6286ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6287case $ac_cv_c_int32_t in #(
6288  no|yes) ;; #(
6289  *)
6290
6291cat >>confdefs.h <<_ACEOF
6292#define int32_t $ac_cv_c_int32_t
6293_ACEOF
6294;;
6295esac
6296
6297ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6298case $ac_cv_c_int64_t in #(
6299  no|yes) ;; #(
6300  *)
6301
6302cat >>confdefs.h <<_ACEOF
6303#define int64_t $ac_cv_c_int64_t
6304_ACEOF
6305;;
6306esac
6307
6308
6309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6310$as_echo_n "checking for unsigned long long int... " >&6; }
6311if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314  ac_cv_type_unsigned_long_long_int=yes
6315     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6316       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317/* end confdefs.h.  */
6318
6319  /* For now, do not test the preprocessor; as of 2007 there are too many
6320	 implementations with broken preprocessors.  Perhaps this can
6321	 be revisited in 2012.  In the meantime, code should not expect
6322	 #if to work with literals wider than 32 bits.  */
6323      /* Test literals.  */
6324      long long int ll = 9223372036854775807ll;
6325      long long int nll = -9223372036854775807LL;
6326      unsigned long long int ull = 18446744073709551615ULL;
6327      /* Test constant expressions.   */
6328      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6329		     ? 1 : -1)];
6330      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6331		     ? 1 : -1)];
6332      int i = 63;
6333int
6334main ()
6335{
6336/* Test availability of runtime routines for shift and division.  */
6337      long long int llmax = 9223372036854775807ll;
6338      unsigned long long int ullmax = 18446744073709551615ull;
6339      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6340	      | (llmax / ll) | (llmax % ll)
6341	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6342	      | (ullmax / ull) | (ullmax % ull));
6343  ;
6344  return 0;
6345}
6346
6347_ACEOF
6348if ac_fn_cxx_try_link "$LINENO"; then :
6349
6350else
6351  ac_cv_type_unsigned_long_long_int=no
6352fi
6353rm -f core conftest.err conftest.$ac_objext \
6354    conftest$ac_exeext conftest.$ac_ext
6355     fi
6356fi
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6358$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6359  if test $ac_cv_type_unsigned_long_long_int = yes; then
6360
6361$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6362
6363  fi
6364
6365
6366
6367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6368$as_echo_n "checking for long long int... " >&6; }
6369if ${ac_cv_type_long_long_int+:} false; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  ac_cv_type_long_long_int=yes
6373      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6374	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6375	if test $ac_cv_type_long_long_int = yes; then
6376	  	  	  	  if test "$cross_compiling" = yes; then :
6377  :
6378else
6379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380/* end confdefs.h.  */
6381#include <limits.h>
6382		 #ifndef LLONG_MAX
6383		 # define HALF \
6384			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6385		 # define LLONG_MAX (HALF - 1 + HALF)
6386		 #endif
6387int
6388main ()
6389{
6390long long int n = 1;
6391		 int i;
6392		 for (i = 0; ; i++)
6393		   {
6394		     long long int m = n << i;
6395		     if (m >> i != n)
6396		       return 1;
6397		     if (LLONG_MAX / 2 < m)
6398		       break;
6399		   }
6400		 return 0;
6401  ;
6402  return 0;
6403}
6404_ACEOF
6405if ac_fn_cxx_try_run "$LINENO"; then :
6406
6407else
6408  ac_cv_type_long_long_int=no
6409fi
6410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6411  conftest.$ac_objext conftest.beam conftest.$ac_ext
6412fi
6413
6414	fi
6415      fi
6416fi
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6418$as_echo "$ac_cv_type_long_long_int" >&6; }
6419  if test $ac_cv_type_long_long_int = yes; then
6420
6421$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6422
6423  fi
6424
6425
6426
6427  ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6428if test "x$ac_cv_type_intmax_t" = xyes; then :
6429
6430$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6431
6432else
6433  test $ac_cv_type_long_long_int = yes \
6434       && ac_type='long long int' \
6435       || ac_type='long int'
6436
6437cat >>confdefs.h <<_ACEOF
6438#define intmax_t $ac_type
6439_ACEOF
6440
6441fi
6442
6443
6444
6445  ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6446if test "x$ac_cv_type_intptr_t" = xyes; then :
6447
6448$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6449
6450else
6451  for ac_type in 'int' 'long int' 'long long int'; do
6452       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453/* end confdefs.h.  */
6454$ac_includes_default
6455int
6456main ()
6457{
6458static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6459test_array [0] = 0;
6460return test_array [0];
6461
6462  ;
6463  return 0;
6464}
6465_ACEOF
6466if ac_fn_cxx_try_compile "$LINENO"; then :
6467
6468cat >>confdefs.h <<_ACEOF
6469#define intptr_t $ac_type
6470_ACEOF
6471
6472	  ac_type=
6473fi
6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475       test -z "$ac_type" && break
6476     done
6477fi
6478
6479
6480ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6481case $ac_cv_c_uint8_t in #(
6482  no|yes) ;; #(
6483  *)
6484
6485$as_echo "#define _UINT8_T 1" >>confdefs.h
6486
6487
6488cat >>confdefs.h <<_ACEOF
6489#define uint8_t $ac_cv_c_uint8_t
6490_ACEOF
6491;;
6492  esac
6493
6494ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6495case $ac_cv_c_uint16_t in #(
6496  no|yes) ;; #(
6497  *)
6498
6499
6500cat >>confdefs.h <<_ACEOF
6501#define uint16_t $ac_cv_c_uint16_t
6502_ACEOF
6503;;
6504  esac
6505
6506ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6507case $ac_cv_c_uint32_t in #(
6508  no|yes) ;; #(
6509  *)
6510
6511$as_echo "#define _UINT32_T 1" >>confdefs.h
6512
6513
6514cat >>confdefs.h <<_ACEOF
6515#define uint32_t $ac_cv_c_uint32_t
6516_ACEOF
6517;;
6518  esac
6519
6520ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6521case $ac_cv_c_uint64_t in #(
6522  no|yes) ;; #(
6523  *)
6524
6525$as_echo "#define _UINT64_T 1" >>confdefs.h
6526
6527
6528cat >>confdefs.h <<_ACEOF
6529#define uint64_t $ac_cv_c_uint64_t
6530_ACEOF
6531;;
6532  esac
6533
6534
6535
6536  ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6537if test "x$ac_cv_type_uintmax_t" = xyes; then :
6538
6539$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6540
6541else
6542  test $ac_cv_type_unsigned_long_long_int = yes \
6543       && ac_type='unsigned long long int' \
6544       || ac_type='unsigned long int'
6545
6546cat >>confdefs.h <<_ACEOF
6547#define uintmax_t $ac_type
6548_ACEOF
6549
6550fi
6551
6552
6553
6554  ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6555if test "x$ac_cv_type_uintptr_t" = xyes; then :
6556
6557$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6558
6559else
6560  for ac_type in 'unsigned int' 'unsigned long int' \
6561	'unsigned long long int'; do
6562       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563/* end confdefs.h.  */
6564$ac_includes_default
6565int
6566main ()
6567{
6568static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6569test_array [0] = 0;
6570return test_array [0];
6571
6572  ;
6573  return 0;
6574}
6575_ACEOF
6576if ac_fn_cxx_try_compile "$LINENO"; then :
6577
6578cat >>confdefs.h <<_ACEOF
6579#define uintptr_t $ac_type
6580_ACEOF
6581
6582	  ac_type=
6583fi
6584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585       test -z "$ac_type" && break
6586     done
6587fi
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6603  as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6604fi
6605
6606# check what underlying integer type int64_t uses
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6608$as_echo_n "checking for int64_t underlying type... " >&6; }
6609if ${ac_cv_int64_t_type+:} false; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612
6613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614/* end confdefs.h.  */
6615
6616#ifdef HAVE_STDINT_H
6617#include <stdint.h>
6618#endif
6619template <typename T> struct X { };
6620template <>
6621struct X<long> { typedef long t; };
6622
6623int
6624main ()
6625{
6626X<int64_t>::t x;
6627  ;
6628  return 0;
6629}
6630_ACEOF
6631if ac_fn_cxx_try_compile "$LINENO"; then :
6632  ac_cv_int64_t_type=long
6633else
6634  ac_cv_int64_t_type="long long"
6635fi
6636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6639$as_echo "$ac_cv_int64_t_type" >&6; }
6640if test "$ac_cv_int64_t_type" = "long"; then
6641
6642$as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6643
6644else
6645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h.  */
6647
6648#ifdef HAVE_STDINT_H
6649#include <stdint.h>
6650#endif
6651template <typename T> struct X { };
6652template <>
6653struct X<long long> { typedef long long t; };
6654
6655int
6656main ()
6657{
6658X<int64_t>::t x;
6659  ;
6660  return 0;
6661}
6662_ACEOF
6663if ac_fn_cxx_try_compile "$LINENO"; then :
6664
6665else
6666  as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6667fi
6668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669fi
6670
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6672$as_echo_n "checking for std::swap in <utility>... " >&6; }
6673if ${ac_cv_std_swap_in_utility+:} false; then :
6674  $as_echo_n "(cached) " >&6
6675else
6676
6677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678/* end confdefs.h.  */
6679
6680#include <utility>
6681
6682int
6683main ()
6684{
6685int a, b; std::swap(a,b);
6686  ;
6687  return 0;
6688}
6689_ACEOF
6690if ac_fn_cxx_try_compile "$LINENO"; then :
6691  ac_cv_std_swap_in_utility=yes
6692else
6693  ac_cv_std_swap_in_utility=no
6694fi
6695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696fi
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6698$as_echo "$ac_cv_std_swap_in_utility" >&6; }
6699if test $ac_cv_std_swap_in_utility = yes; then
6700
6701$as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6702
6703fi
6704
6705# Check whether compiler is affected by placement new aliasing bug (PR 29286).
6706# If the host compiler is affected by the bug, and we build with optimization
6707# enabled (which happens e.g. when cross-compiling), the pool allocator may
6708# get miscompiled.  Use -fno-strict-aliasing to work around this problem.
6709# Since there is no reliable feature check for the presence of this bug,
6710# we simply use a GCC version number check.  (This should never trigger for
6711# stages 2 or 3 of a native bootstrap.)
6712aliasing_flags=
6713if test "$GCC" = yes; then
6714  saved_CXXFLAGS="$CXXFLAGS"
6715
6716  # The following test compilation will succeed if and only if $CXX accepts
6717  # -fno-strict-aliasing *and* is older than GCC 4.3.
6718  CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6720$as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h.  */
6723
6724#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6725#error compiler not affected by placement new aliasing bug
6726#endif
6727
6728_ACEOF
6729if ac_fn_cxx_try_compile "$LINENO"; then :
6730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6731$as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6732else
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734$as_echo "no" >&6; }
6735fi
6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737
6738  CXXFLAGS="$saved_CXXFLAGS"
6739fi
6740
6741
6742
6743
6744# ---------------------
6745# Warnings and checking
6746# ---------------------
6747
6748# Check $CC warning features (if it's GCC).
6749# We want to use -pedantic, but we don't want warnings about
6750# * 'long long'
6751# * variadic macros
6752# * overlong strings
6753# * C++11 narrowing conversions in { }
6754# So, we only use -pedantic if we can disable those warnings.
6755
6756# In stage 1, disable -Wformat warnings from old GCCs about new % codes
6757# Check whether --enable-build-format-warnings was given.
6758if test "${enable_build_format_warnings+set}" = set; then :
6759  enableval=$enable_build_format_warnings;
6760else
6761  enable_build_format_warnings=yes
6762fi
6763
6764if test $enable_build_format_warnings = no; then :
6765  wf_opt=-Wno-format
6766else
6767  wf_opt=
6768fi
6769ac_ext=cpp
6770ac_cpp='$CXXCPP $CPPFLAGS'
6771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6774
6775loose_warn=
6776save_CXXFLAGS="$CXXFLAGS"
6777for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6778  # Do the check with the no- prefix removed since gcc silently
6779  # accepts any -Wno-* option on purpose
6780  case $real_option in
6781    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6782    *) option=$real_option ;;
6783  esac
6784  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6785
6786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6787$as_echo_n "checking whether $CXX supports $option... " >&6; }
6788if eval \${$as_acx_Woption+:} false; then :
6789  $as_echo_n "(cached) " >&6
6790else
6791  CXXFLAGS="$option"
6792    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793/* end confdefs.h.  */
6794
6795int
6796main ()
6797{
6798
6799  ;
6800  return 0;
6801}
6802_ACEOF
6803if ac_fn_cxx_try_compile "$LINENO"; then :
6804  eval "$as_acx_Woption=yes"
6805else
6806  eval "$as_acx_Woption=no"
6807fi
6808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809
6810fi
6811eval ac_res=\$$as_acx_Woption
6812	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6813$as_echo "$ac_res" >&6; }
6814  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6815  loose_warn="$loose_warn${loose_warn:+ }$real_option"
6816fi
6817  done
6818CXXFLAGS="$save_CXXFLAGS"
6819ac_ext=cpp
6820ac_cpp='$CXXCPP $CPPFLAGS'
6821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6824
6825
6826
6827ac_ext=c
6828ac_cpp='$CPP $CPPFLAGS'
6829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831ac_compiler_gnu=$ac_cv_c_compiler_gnu
6832
6833c_loose_warn=
6834save_CFLAGS="$CFLAGS"
6835for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6836  # Do the check with the no- prefix removed since gcc silently
6837  # accepts any -Wno-* option on purpose
6838  case $real_option in
6839    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6840    *) option=$real_option ;;
6841  esac
6842  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6843
6844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6845$as_echo_n "checking whether $CC supports $option... " >&6; }
6846if eval \${$as_acx_Woption+:} false; then :
6847  $as_echo_n "(cached) " >&6
6848else
6849  CFLAGS="$option"
6850    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h.  */
6852
6853int
6854main ()
6855{
6856
6857  ;
6858  return 0;
6859}
6860_ACEOF
6861if ac_fn_c_try_compile "$LINENO"; then :
6862  eval "$as_acx_Woption=yes"
6863else
6864  eval "$as_acx_Woption=no"
6865fi
6866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867
6868fi
6869eval ac_res=\$$as_acx_Woption
6870	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6871$as_echo "$ac_res" >&6; }
6872  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6873  c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6874fi
6875  done
6876CFLAGS="$save_CFLAGS"
6877ac_ext=cpp
6878ac_cpp='$CXXCPP $CPPFLAGS'
6879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6882
6883
6884ac_ext=cpp
6885ac_cpp='$CXXCPP $CPPFLAGS'
6886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6889
6890strict_warn=
6891save_CXXFLAGS="$CXXFLAGS"
6892for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6893  # Do the check with the no- prefix removed since gcc silently
6894  # accepts any -Wno-* option on purpose
6895  case $real_option in
6896    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6897    *) option=$real_option ;;
6898  esac
6899  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6900
6901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6902$as_echo_n "checking whether $CXX supports $option... " >&6; }
6903if eval \${$as_acx_Woption+:} false; then :
6904  $as_echo_n "(cached) " >&6
6905else
6906  CXXFLAGS="$option"
6907    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908/* end confdefs.h.  */
6909
6910int
6911main ()
6912{
6913
6914  ;
6915  return 0;
6916}
6917_ACEOF
6918if ac_fn_cxx_try_compile "$LINENO"; then :
6919  eval "$as_acx_Woption=yes"
6920else
6921  eval "$as_acx_Woption=no"
6922fi
6923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924
6925fi
6926eval ac_res=\$$as_acx_Woption
6927	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6928$as_echo "$ac_res" >&6; }
6929  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6930  strict_warn="$strict_warn${strict_warn:+ }$real_option"
6931fi
6932  done
6933CXXFLAGS="$save_CXXFLAGS"
6934ac_ext=cpp
6935ac_cpp='$CXXCPP $CPPFLAGS'
6936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6939
6940
6941ac_ext=c
6942ac_cpp='$CPP $CPPFLAGS'
6943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6945ac_compiler_gnu=$ac_cv_c_compiler_gnu
6946
6947c_strict_warn=
6948save_CFLAGS="$CFLAGS"
6949for real_option in -Wold-style-definition -Wc++-compat; do
6950  # Do the check with the no- prefix removed since gcc silently
6951  # accepts any -Wno-* option on purpose
6952  case $real_option in
6953    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6954    *) option=$real_option ;;
6955  esac
6956  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6957
6958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6959$as_echo_n "checking whether $CC supports $option... " >&6; }
6960if eval \${$as_acx_Woption+:} false; then :
6961  $as_echo_n "(cached) " >&6
6962else
6963  CFLAGS="$option"
6964    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h.  */
6966
6967int
6968main ()
6969{
6970
6971  ;
6972  return 0;
6973}
6974_ACEOF
6975if ac_fn_c_try_compile "$LINENO"; then :
6976  eval "$as_acx_Woption=yes"
6977else
6978  eval "$as_acx_Woption=no"
6979fi
6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981
6982fi
6983eval ac_res=\$$as_acx_Woption
6984	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6985$as_echo "$ac_res" >&6; }
6986  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6987  c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6988fi
6989  done
6990CFLAGS="$save_CFLAGS"
6991ac_ext=cpp
6992ac_cpp='$CXXCPP $CPPFLAGS'
6993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6996
6997
6998ac_ext=cpp
6999ac_cpp='$CXXCPP $CPPFLAGS'
7000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7003
7004# Do the check with the no- prefix removed from the warning options
7005# since gcc silently accepts any -Wno-* option on purpose
7006if test "$GXX" = yes; then :
7007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7008$as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7009if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7010  $as_echo_n "(cached) " >&6
7011else
7012  save_CXXFLAGS="$CXXFLAGS"
7013CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015/* end confdefs.h.  */
7016
7017int
7018main ()
7019{
7020
7021  ;
7022  return 0;
7023}
7024_ACEOF
7025if ac_fn_cxx_try_compile "$LINENO"; then :
7026  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7027else
7028  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7029fi
7030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031CXXFLAGS="$save_CXXFLAGS"
7032fi
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7034$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7035if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7036  strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7037fi
7038
7039fi
7040ac_ext=cpp
7041ac_cpp='$CXXCPP $CPPFLAGS'
7042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7045
7046
7047ac_ext=cpp
7048ac_cpp='$CXXCPP $CPPFLAGS'
7049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7052
7053# Check whether --enable-werror-always was given.
7054if test "${enable_werror_always+set}" = set; then :
7055  enableval=$enable_werror_always;
7056else
7057  enable_werror_always=no
7058fi
7059
7060if test $enable_werror_always = yes; then :
7061  strict_warn="$strict_warn${strict_warn:+ }-Werror"
7062fi
7063
7064ac_ext=cpp
7065ac_cpp='$CXXCPP $CPPFLAGS'
7066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7069
7070
7071
7072# The above macros do nothing if the compiler is not GCC.  However, the
7073# Makefile has more goo to add other flags, so these variables are used
7074# to enable warnings only for GCC.
7075warn_cflags=
7076warn_cxxflags=
7077if test "x$GCC" = "xyes"; then
7078  warn_cflags='$(GCC_WARN_CFLAGS)'
7079  warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7080fi
7081
7082
7083
7084# Disable exceptions and RTTI if building with g++
7085ac_ext=c
7086ac_cpp='$CPP $CPPFLAGS'
7087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7089ac_compiler_gnu=$ac_cv_c_compiler_gnu
7090
7091noexception_flags=
7092save_CFLAGS="$CFLAGS"
7093for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7094  # Do the check with the no- prefix removed since gcc silently
7095  # accepts any -Wno-* option on purpose
7096  case $real_option in
7097    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7098    *) option=$real_option ;;
7099  esac
7100  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7101
7102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7103$as_echo_n "checking whether $CC supports $option... " >&6; }
7104if eval \${$as_acx_Woption+:} false; then :
7105  $as_echo_n "(cached) " >&6
7106else
7107  CFLAGS="$option"
7108    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109/* end confdefs.h.  */
7110
7111int
7112main ()
7113{
7114
7115  ;
7116  return 0;
7117}
7118_ACEOF
7119if ac_fn_c_try_compile "$LINENO"; then :
7120  eval "$as_acx_Woption=yes"
7121else
7122  eval "$as_acx_Woption=no"
7123fi
7124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125
7126fi
7127eval ac_res=\$$as_acx_Woption
7128	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7129$as_echo "$ac_res" >&6; }
7130  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7131  noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7132fi
7133  done
7134CFLAGS="$save_CFLAGS"
7135ac_ext=cpp
7136ac_cpp='$CXXCPP $CPPFLAGS'
7137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7140
7141
7142
7143# Enable expensive internal checks
7144is_release=
7145if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7146  is_release=yes
7147fi
7148
7149# Check whether --enable-checking was given.
7150if test "${enable_checking+set}" = set; then :
7151  enableval=$enable_checking; ac_checking_flags="${enableval}"
7152else
7153
7154# Determine the default checks.
7155if test x$is_release = x ; then
7156  ac_checking_flags=yes,extra
7157else
7158  ac_checking_flags=release
7159fi
7160fi
7161
7162IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
7163for check in release $ac_checking_flags
7164do
7165	case $check in
7166	# these set all the flags to specific states
7167	yes)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7168			ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7169			ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7170			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7171			ac_tree_checking=1 ; ac_valgrind_checking= ;
7172			ac_types_checking=1 ;;
7173	no|none)	ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7174			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7175			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7176			ac_rtlflag_checking= ; ac_runtime_checking= ;
7177			ac_tree_checking= ; ac_valgrind_checking= ;
7178			ac_types_checking= ;;
7179	all)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7180			ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7181			ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7182			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7183			ac_tree_checking=1 ; ac_valgrind_checking= ;
7184			ac_types_checking=1 ;;
7185	release)	ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7186			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7187			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7188			ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7189			ac_tree_checking= ; ac_valgrind_checking= ;
7190			ac_types_checking= ;;
7191	# these enable particular checks
7192	assert) 	ac_assert_checking=1 ;;
7193	df)		ac_df_checking=1 ;;
7194	extra)		ac_extra_checking=1 ;;
7195	fold)		ac_fold_checking=1 ;;
7196	gc)		ac_gc_checking=1 ;;
7197	gcac)		ac_gc_always_collect=1 ;;
7198	gimple)		ac_gimple_checking=1 ;;
7199	misc)		ac_checking=1 ;;
7200	rtl)		ac_rtl_checking=1 ;;
7201	rtlflag)	ac_rtlflag_checking=1 ;;
7202	runtime)	ac_runtime_checking=1 ;;
7203	tree)		ac_tree_checking=1 ;;
7204	types)		ac_types_checking=1 ;;
7205	valgrind)	ac_valgrind_checking=1 ;;
7206	*)	as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7207	esac
7208done
7209IFS="$ac_save_IFS"
7210
7211nocommon_flag=""
7212if test x$ac_checking != x ; then
7213
7214$as_echo "#define CHECKING_P 1" >>confdefs.h
7215
7216  nocommon_flag=-fno-common
7217else
7218  $as_echo "#define CHECKING_P 0" >>confdefs.h
7219
7220fi
7221
7222if test x$ac_extra_checking != x ; then
7223
7224$as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7225
7226else
7227  $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7228
7229fi
7230if test x$ac_df_checking != x ; then
7231
7232$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7233
7234fi
7235if test x$ac_assert_checking != x ; then
7236
7237$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7238
7239fi
7240if test x$ac_gimple_checking != x ; then
7241
7242$as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7243
7244fi
7245
7246if test x$ac_runtime_checking != x ; then
7247
7248$as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7249
7250fi
7251if test x$ac_tree_checking != x ; then
7252
7253$as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7254
7255  TREECHECKING=yes
7256fi
7257if test x$ac_types_checking != x ; then
7258
7259$as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7260
7261fi
7262
7263if test x$ac_rtl_checking != x ; then
7264
7265$as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7266
7267fi
7268if test x$ac_rtlflag_checking != x ; then
7269
7270$as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7271
7272fi
7273if test x$ac_gc_checking != x ; then
7274
7275$as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7276
7277fi
7278if test x$ac_gc_always_collect != x ; then
7279
7280$as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7281
7282fi
7283if test x$ac_fold_checking != x ; then
7284
7285$as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7286
7287fi
7288valgrind_path_defines=
7289valgrind_command=
7290
7291ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7292if test "x$ac_cv_header_valgrind_h" = xyes; then :
7293  have_valgrind_h=yes
7294else
7295  have_valgrind_h=no
7296fi
7297
7298
7299
7300# It is certainly possible that there's valgrind but no valgrind.h.
7301# GCC relies on making annotations so we must have both.
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7303$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305/* end confdefs.h.  */
7306#include <valgrind/memcheck.h>
7307#ifndef VALGRIND_DISCARD
7308#error VALGRIND_DISCARD not defined
7309#endif
7310_ACEOF
7311if ac_fn_cxx_try_cpp "$LINENO"; then :
7312  gcc_cv_header_valgrind_memcheck_h=yes
7313else
7314  gcc_cv_header_valgrind_memcheck_h=no
7315fi
7316rm -f conftest.err conftest.i conftest.$ac_ext
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7318$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7320$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322/* end confdefs.h.  */
7323#include <memcheck.h>
7324#ifndef VALGRIND_DISCARD
7325#error VALGRIND_DISCARD not defined
7326#endif
7327_ACEOF
7328if ac_fn_cxx_try_cpp "$LINENO"; then :
7329  gcc_cv_header_memcheck_h=yes
7330else
7331  gcc_cv_header_memcheck_h=no
7332fi
7333rm -f conftest.err conftest.i conftest.$ac_ext
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7335$as_echo "$gcc_cv_header_memcheck_h" >&6; }
7336if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7337
7338$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7339
7340fi
7341if test $gcc_cv_header_memcheck_h = yes; then
7342
7343$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7344
7345fi
7346
7347if test x$ac_valgrind_checking != x ; then
7348
7349# Prepare PATH_SEPARATOR.
7350# The user is always right.
7351if test "${PATH_SEPARATOR+set}" != set; then
7352  echo "#! /bin/sh" >conf$$.sh
7353  echo  "exit 0"   >>conf$$.sh
7354  chmod +x conf$$.sh
7355  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7356    PATH_SEPARATOR=';'
7357  else
7358    PATH_SEPARATOR=:
7359  fi
7360  rm -f conf$$.sh
7361fi
7362
7363# Find out how to test for executable files. Don't use a zero-byte file,
7364# as systems may use methods other than mode bits to determine executability.
7365cat >conf$$.file <<_ASEOF
7366#! /bin/sh
7367exit 0
7368_ASEOF
7369chmod +x conf$$.file
7370if test -x conf$$.file >/dev/null 2>&1; then
7371  ac_executable_p="test -x"
7372else
7373  ac_executable_p="test -f"
7374fi
7375rm -f conf$$.file
7376
7377# Extract the first word of "valgrind", so it can be a program name with args.
7378set dummy valgrind; ac_word=$2
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380$as_echo_n "checking for $ac_word... " >&6; }
7381if ${ac_cv_path_valgrind_path+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  case "$valgrind_path" in
7385  [\\/]* | ?:[\\/]*)
7386    ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7387    ;;
7388  *)
7389    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7390    for ac_dir in $PATH; do
7391      IFS="$ac_save_IFS"
7392      test -z "$ac_dir" && ac_dir=.
7393      for ac_exec_ext in '' $ac_executable_extensions; do
7394        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7395          if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7396            ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7397            break 2
7398          fi
7399        fi
7400      done
7401    done
7402    IFS="$ac_save_IFS"
7403    ;;
7404esac
7405fi
7406valgrind_path="$ac_cv_path_valgrind_path"
7407if test -n "$valgrind_path"; then
7408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7409$as_echo "$valgrind_path" >&6; }
7410else
7411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412$as_echo "no" >&6; }
7413fi
7414
7415  if test "x$valgrind_path" = "x" \
7416    || (test $have_valgrind_h = no \
7417	&& test $gcc_cv_header_memcheck_h = no \
7418	&& test $gcc_cv_header_valgrind_memcheck_h = no); then
7419	as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7420  fi
7421  valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7422  valgrind_command="$valgrind_path -q"
7423
7424$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7425
7426fi
7427
7428
7429
7430# Enable code coverage collection
7431# Check whether --enable-coverage was given.
7432if test "${enable_coverage+set}" = set; then :
7433  enableval=$enable_coverage; case "${enableval}" in
7434  yes|noopt)
7435    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7436    ;;
7437  opt)
7438    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7439    ;;
7440  no)
7441    # a.k.a. --disable-coverage
7442    coverage_flags=""
7443    ;;
7444  *)
7445    as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7446    ;;
7447esac
7448else
7449  coverage_flags=""
7450fi
7451
7452
7453
7454# Check whether --enable-gather-detailed-mem-stats was given.
7455if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7456  enableval=$enable_gather_detailed_mem_stats;
7457else
7458  enable_gather_detailed_mem_stats=no
7459fi
7460
7461gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7462
7463cat >>confdefs.h <<_ACEOF
7464#define GATHER_STATISTICS $gather_stats
7465_ACEOF
7466
7467
7468# Check whether --enable-valgrind-annotations was given.
7469if test "${enable_valgrind_annotations+set}" = set; then :
7470  enableval=$enable_valgrind_annotations;
7471else
7472  enable_valgrind_annotations=no
7473fi
7474
7475if test x$enable_valgrind_annotations != xno \
7476    || test x$ac_valgrind_checking != x; then
7477  if (test $have_valgrind_h = no \
7478      && test $gcc_cv_header_memcheck_h = no \
7479      && test $gcc_cv_header_valgrind_memcheck_h = no); then
7480    as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7481  fi
7482
7483$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7484
7485fi
7486
7487# -------------------------------
7488# Miscenalleous configure options
7489# -------------------------------
7490
7491# With stabs
7492
7493# Check whether --with-stabs was given.
7494if test "${with_stabs+set}" = set; then :
7495  withval=$with_stabs; stabs="$with_stabs"
7496else
7497  stabs=no
7498fi
7499
7500
7501# Determine whether or not multilibs are enabled.
7502# Check whether --enable-multilib was given.
7503if test "${enable_multilib+set}" = set; then :
7504  enableval=$enable_multilib;
7505else
7506  enable_multilib=yes
7507fi
7508
7509
7510
7511# Determine whether or not multiarch is enabled.
7512# Check whether --enable-multiarch was given.
7513if test "${enable_multiarch+set}" = set; then :
7514  enableval=$enable_multiarch; case "${enableval}" in
7515yes|no|auto) enable_multiarch=$enableval;;
7516*) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7517esac
7518else
7519  enable_multiarch=auto
7520fi
7521
7522if test x${enable_multiarch} = xauto; then
7523  if test x${with_native_system_header_dir} != x; then
7524    ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7525    enable_multiarch=no
7526  fi
7527  if test x$host != x$target && test "x$with_sysroot" = x; then
7528    ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7529    enable_multiarch=no
7530  fi
7531fi
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7533$as_echo_n "checking for multiarch configuration... " >&6; }
7534
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7536$as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7537
7538# needed for setting the multiarch name for soft-float/hard-float ABIs
7539
7540
7541
7542# default stack clash protection guard size as power of twos in bytes.
7543# Please keep these in sync with params.def.
7544stk_clash_min=12
7545stk_clash_max=30
7546
7547# Keep the default value when the option is not used to 0, this allows us to
7548# distinguish between the cases where the user specifially set a value via
7549# configure and when the normal default value is used.
7550
7551# Check whether --with-stack-clash-protection-guard-size was given.
7552if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7553  withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7554else
7555  DEFAULT_STK_CLASH_GUARD_SIZE=0
7556fi
7557
7558if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7559     && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7560	 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7561  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
7562fi
7563
7564
7565cat >>confdefs.h <<_ACEOF
7566#define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7567_ACEOF
7568
7569
7570# Enable __cxa_atexit for C++.
7571# Check whether --enable-__cxa_atexit was given.
7572if test "${enable___cxa_atexit+set}" = set; then :
7573  enableval=$enable___cxa_atexit;
7574fi
7575
7576
7577# Enable C extension for decimal float if target supports it.
7578
7579# Check whether --enable-decimal-float was given.
7580if test "${enable_decimal_float+set}" = set; then :
7581  enableval=$enable_decimal_float;
7582  case $enable_decimal_float in
7583    yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7584    *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7585Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7586  esac
7587
7588else
7589
7590  case $target in
7591    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7592    i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7593    i?86*-*-mingw* | x86_64*-*-mingw* | \
7594    i?86*-*-cygwin* | x86_64*-*-cygwin*)
7595      enable_decimal_float=yes
7596      ;;
7597    *)
7598      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7599$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7600      enable_decimal_float=no
7601      ;;
7602  esac
7603
7604fi
7605
7606
7607# x86's use BID format instead of DPD
7608case x$enable_decimal_float in
7609  xyes)
7610    case $target in
7611      i?86*-*-* | x86_64*-*-*)
7612	enable_decimal_float=bid
7613	;;
7614      *)
7615	enable_decimal_float=dpd
7616	;;
7617    esac
7618    default_decimal_float=$enable_decimal_float
7619    ;;
7620  xno)
7621    # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7622    # dependency on libdecnumber.
7623    default_decimal_float=dpd
7624    ;;
7625esac
7626
7627
7628
7629
7630dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7631
7632cat >>confdefs.h <<_ACEOF
7633#define ENABLE_DECIMAL_FLOAT $dfp
7634_ACEOF
7635
7636
7637# Use default_decimal_float for dependency.
7638enable_decimal_float=$default_decimal_float
7639
7640bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7641
7642cat >>confdefs.h <<_ACEOF
7643#define ENABLE_DECIMAL_BID_FORMAT $bid
7644_ACEOF
7645
7646
7647# Enable C extension for fixed-point arithmetic.
7648# Check whether --enable-fixed-point was given.
7649if test "${enable_fixed_point+set}" = set; then :
7650  enableval=$enable_fixed_point;
7651else
7652
7653  case $target in
7654    arm*)
7655      enable_fixed_point=yes
7656      ;;
7657
7658    mips*-*-*)
7659      enable_fixed_point=yes
7660      ;;
7661    *)
7662      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7663$as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7664      enable_fixed_point=no
7665      ;;
7666  esac
7667
7668fi
7669
7670
7671
7672fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7673
7674cat >>confdefs.h <<_ACEOF
7675#define ENABLE_FIXED_POINT $fixedpoint
7676_ACEOF
7677
7678
7679# Enable threads
7680# Pass with no value to take the default
7681# Pass with a value to specify a thread package
7682# Check whether --enable-threads was given.
7683if test "${enable_threads+set}" = set; then :
7684  enableval=$enable_threads;
7685else
7686  enable_threads=''
7687fi
7688
7689
7690# Check whether --enable-tls was given.
7691if test "${enable_tls+set}" = set; then :
7692  enableval=$enable_tls;
7693  case $enable_tls in
7694    yes | no) ;;
7695    *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7696Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7697  esac
7698
7699else
7700  enable_tls=''
7701fi
7702
7703
7704# Check whether --enable-vtable-verify was given.
7705if test "${enable_vtable_verify+set}" = set; then :
7706  enableval=$enable_vtable_verify;
7707else
7708  enable_vtable_verify=no
7709fi
7710
7711vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7712
7713cat >>confdefs.h <<_ACEOF
7714#define ENABLE_VTABLE_VERIFY $vtable_verify
7715_ACEOF
7716
7717
7718# Check whether --enable-analyzer was given.
7719if test "${enable_analyzer+set}" = set; then :
7720  enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7721	analyzer=0
7722else
7723	analyzer=1
7724fi
7725else
7726  analyzer=1
7727fi
7728
7729
7730cat >>confdefs.h <<_ACEOF
7731#define ENABLE_ANALYZER $analyzer
7732_ACEOF
7733
7734
7735# Check whether --enable-objc-gc was given.
7736if test "${enable_objc_gc+set}" = set; then :
7737  enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7738	objc_boehm_gc=''
7739else
7740	objc_boehm_gc=1
7741fi
7742else
7743  objc_boehm_gc=''
7744fi
7745
7746
7747
7748# Check whether --with-dwarf2 was given.
7749if test "${with_dwarf2+set}" = set; then :
7750  withval=$with_dwarf2; dwarf2="$with_dwarf2"
7751else
7752  dwarf2=no
7753fi
7754
7755
7756# Check whether --enable-shared was given.
7757if test "${enable_shared+set}" = set; then :
7758  enableval=$enable_shared;
7759  case $enable_shared in
7760  yes | no) ;;
7761  *)
7762    enable_shared=no
7763    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7764    for pkg in $enableval; do
7765      if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7766        enable_shared=yes
7767      fi
7768    done
7769    IFS="$ac_save_ifs"
7770    ;;
7771  esac
7772
7773else
7774  enable_shared=yes
7775fi
7776
7777
7778
7779# Check whether --enable-gcov was given.
7780if test "${enable_gcov+set}" = set; then :
7781  enableval=$enable_gcov;
7782else
7783  enable_gcov=yes
7784fi
7785
7786
7787
7788
7789# Check whether --with-specs was given.
7790if test "${with_specs+set}" = set; then :
7791  withval=$with_specs; CONFIGURE_SPECS=$withval
7792else
7793  CONFIGURE_SPECS=
7794
7795fi
7796
7797
7798
7799
7800
7801# Check whether --with-pkgversion was given.
7802if test "${with_pkgversion+set}" = set; then :
7803  withval=$with_pkgversion; case "$withval" in
7804      yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7805      no)  PKGVERSION= ;;
7806      *)   PKGVERSION="($withval) " ;;
7807     esac
7808else
7809  PKGVERSION="(GCC) "
7810
7811fi
7812
7813
7814
7815
7816
7817# Check whether --with-bugurl was given.
7818if test "${with_bugurl+set}" = set; then :
7819  withval=$with_bugurl; case "$withval" in
7820      yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7821      no)  BUGURL=
7822	   ;;
7823      *)   BUGURL="$withval"
7824	   ;;
7825     esac
7826else
7827  BUGURL="https://gcc.gnu.org/bugs/"
7828
7829fi
7830
7831  case ${BUGURL} in
7832  "")
7833    REPORT_BUGS_TO=
7834    REPORT_BUGS_TEXI=
7835    ;;
7836  *)
7837    REPORT_BUGS_TO="<$BUGURL>"
7838    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7839    ;;
7840  esac;
7841
7842
7843
7844
7845# Allow overriding the default URL for documentation
7846
7847# Check whether --with-documentation-root-url was given.
7848if test "${with_documentation_root_url+set}" = set; then :
7849  withval=$with_documentation_root_url; case "$withval" in
7850      yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7851      no)  as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7852      */)  DOCUMENTATION_ROOT_URL="$withval" ;;
7853      *)   as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
7854     esac
7855else
7856  DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
7857
7858fi
7859
7860
7861cat >>confdefs.h <<_ACEOF
7862#define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7863_ACEOF
7864
7865
7866# Allow overriding the default URL for GCC changes
7867
7868# Check whether --with-changes-root-url was given.
7869if test "${with_changes_root_url+set}" = set; then :
7870  withval=$with_changes_root_url; case "$withval" in
7871      yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7872      no)  as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7873      */)  CHANGES_ROOT_URL="$withval" ;;
7874      *)   as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
7875     esac
7876else
7877  CHANGES_ROOT_URL="https://gcc.gnu.org/"
7878
7879fi
7880
7881
7882cat >>confdefs.h <<_ACEOF
7883#define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
7884_ACEOF
7885
7886
7887# Sanity check enable_languages in case someone does not run the toplevel
7888# configure # script.
7889# Check whether --enable-languages was given.
7890if test "${enable_languages+set}" = set; then :
7891  enableval=$enable_languages; case ,${enable_languages}, in
7892       ,,|,yes,)
7893		# go safe -- we cannot be much sure without the toplevel
7894		# configure's
7895		# analysis of which target libs are present and usable
7896		enable_languages=c
7897		;;
7898	 *,all,*)
7899		as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7900		;;
7901	*,c,*)
7902		;;
7903        *)
7904		enable_languages=c,${enable_languages}
7905		;;
7906esac
7907else
7908  enable_languages=c
7909fi
7910
7911
7912# If top-level libada has been disabled, then wire in install-gnatlib
7913# invocation with `make install', so that one can build and install
7914# the library manually with `make -C gcc all gnatlib gnattools install'.
7915if test x"$enable_libada" = xno; then
7916  gnat_install_lib=gnat-install-lib
7917else
7918  gnat_install_lib=
7919fi
7920
7921
7922if test x"$enable_as_accelerator_for" != x; then
7923
7924$as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7925
7926  enable_as_accelerator=yes
7927  case "${target}" in
7928    *-intelmicemul-*)
7929      # In this case we expect offload compiler to be built as native, so we
7930      # need to rename the driver to avoid clashes with host's drivers.
7931      program_transform_name="s&^&${target}-&" ;;
7932  esac
7933  sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7934  program_transform_name=`echo $program_transform_name | sed $sedscript`
7935  accel_dir_suffix=/accel/${target_noncanonical}
7936  real_target_noncanonical=${enable_as_accelerator_for}
7937fi
7938
7939
7940
7941
7942for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7943  tgt=`echo $tgt | sed 's/=.*//'`
7944
7945  if echo "$tgt" | grep "^hsa" > /dev/null ; then
7946    enable_hsa=1
7947  else
7948    enable_offloading=1
7949    case "$tgt" in
7950      *-intelmic-* | *-intelmicemul-*)
7951	omp_device_property=omp-device-properties-i386
7952	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7953	;;
7954      amdgcn*)
7955	omp_device_property=omp-device-properties-gcn
7956	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7957	;;
7958      nvptx*)
7959	omp_device_property=omp-device-properties-nvptx
7960	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7961	;;
7962      *)
7963	as_fn_error $? "unknown offload target specified" "$LINENO" 5
7964	;;
7965    esac
7966    omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7967    omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7968  fi
7969
7970  if test x"$offload_targets" = x; then
7971    offload_targets=$tgt
7972  else
7973    offload_targets="$offload_targets,$tgt"
7974  fi
7975done
7976
7977
7978
7979
7980cat >>confdefs.h <<_ACEOF
7981#define OFFLOAD_TARGETS "$offload_targets"
7982_ACEOF
7983
7984if test x"$enable_offloading" != x; then
7985
7986$as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7987
7988else
7989
7990$as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7991
7992fi
7993
7994if test x"$enable_hsa" = x1 ; then
7995
7996$as_echo "#define ENABLE_HSA 1" >>confdefs.h
7997
7998fi
7999
8000
8001# Check whether --with-multilib-list was given.
8002if test "${with_multilib_list+set}" = set; then :
8003  withval=$with_multilib_list; :
8004else
8005  with_multilib_list=default
8006fi
8007
8008
8009# -------------------------
8010# Checks for other programs
8011# -------------------------
8012
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8014$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8015set x ${MAKE-make}
8016ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8017if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8018  $as_echo_n "(cached) " >&6
8019else
8020  cat >conftest.make <<\_ACEOF
8021SHELL = /bin/sh
8022all:
8023	@echo '@@@%%%=$(MAKE)=@@@%%%'
8024_ACEOF
8025# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8026case `${MAKE-make} -f conftest.make 2>/dev/null` in
8027  *@@@%%%=?*=@@@%%%*)
8028    eval ac_cv_prog_make_${ac_make}_set=yes;;
8029  *)
8030    eval ac_cv_prog_make_${ac_make}_set=no;;
8031esac
8032rm -f conftest.make
8033fi
8034if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8036$as_echo "yes" >&6; }
8037  SET_MAKE=
8038else
8039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040$as_echo "no" >&6; }
8041  SET_MAKE="MAKE=${MAKE-make}"
8042fi
8043
8044
8045# Find some useful tools
8046for ac_prog in gawk mawk nawk awk
8047do
8048  # Extract the first word of "$ac_prog", so it can be a program name with args.
8049set dummy $ac_prog; ac_word=$2
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051$as_echo_n "checking for $ac_word... " >&6; }
8052if ${ac_cv_prog_AWK+:} false; then :
8053  $as_echo_n "(cached) " >&6
8054else
8055  if test -n "$AWK"; then
8056  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8057else
8058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061  IFS=$as_save_IFS
8062  test -z "$as_dir" && as_dir=.
8063    for ac_exec_ext in '' $ac_executable_extensions; do
8064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8065    ac_cv_prog_AWK="$ac_prog"
8066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067    break 2
8068  fi
8069done
8070  done
8071IFS=$as_save_IFS
8072
8073fi
8074fi
8075AWK=$ac_cv_prog_AWK
8076if test -n "$AWK"; then
8077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8078$as_echo "$AWK" >&6; }
8079else
8080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081$as_echo "no" >&6; }
8082fi
8083
8084
8085  test -n "$AWK" && break
8086done
8087
8088# We need awk to create options.c and options.h.
8089# Bail out if it's missing.
8090case ${AWK} in
8091  "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8092esac
8093
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8095$as_echo_n "checking whether ln -s works... " >&6; }
8096if ${gcc_cv_prog_LN_S+:} false; then :
8097  $as_echo_n "(cached) " >&6
8098else
8099  rm -f conftestdata_t
8100echo >conftestdata_f
8101if ln -s conftestdata_f conftestdata_t 2>/dev/null
8102then
8103  gcc_cv_prog_LN_S="ln -s"
8104else
8105  if ln conftestdata_f conftestdata_t 2>/dev/null
8106  then
8107    gcc_cv_prog_LN_S=ln
8108  else
8109    if cp -p conftestdata_f conftestdata_t 2>/dev/null
8110    then
8111      gcc_cv_prog_LN_S="cp -p"
8112    else
8113      gcc_cv_prog_LN_S=cp
8114    fi
8115  fi
8116fi
8117rm -f conftestdata_f conftestdata_t
8118
8119fi
8120LN_S="$gcc_cv_prog_LN_S"
8121if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8123$as_echo "yes" >&6; }
8124else
8125  if test "$gcc_cv_prog_LN_S" = "ln"; then
8126    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8127$as_echo "no, using ln" >&6; }
8128  else
8129    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8130$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8131  fi
8132fi
8133
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8135$as_echo_n "checking whether ln works... " >&6; }
8136if ${acx_cv_prog_LN+:} false; then :
8137  $as_echo_n "(cached) " >&6
8138else
8139  rm -f conftestdata_t
8140echo >conftestdata_f
8141if ln conftestdata_f conftestdata_t 2>/dev/null
8142then
8143  acx_cv_prog_LN=ln
8144else
8145  acx_cv_prog_LN=no
8146fi
8147rm -f conftestdata_f conftestdata_t
8148
8149fi
8150if test $acx_cv_prog_LN = no; then
8151  LN="$LN_S"
8152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8153$as_echo "no, using $LN" >&6; }
8154else
8155  LN="$acx_cv_prog_LN"
8156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8157$as_echo "yes" >&6; }
8158fi
8159
8160if test -n "$ac_tool_prefix"; then
8161  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8162set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164$as_echo_n "checking for $ac_word... " >&6; }
8165if ${ac_cv_prog_RANLIB+:} false; then :
8166  $as_echo_n "(cached) " >&6
8167else
8168  if test -n "$RANLIB"; then
8169  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8170else
8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172for as_dir in $PATH
8173do
8174  IFS=$as_save_IFS
8175  test -z "$as_dir" && as_dir=.
8176    for ac_exec_ext in '' $ac_executable_extensions; do
8177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180    break 2
8181  fi
8182done
8183  done
8184IFS=$as_save_IFS
8185
8186fi
8187fi
8188RANLIB=$ac_cv_prog_RANLIB
8189if test -n "$RANLIB"; then
8190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8191$as_echo "$RANLIB" >&6; }
8192else
8193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194$as_echo "no" >&6; }
8195fi
8196
8197
8198fi
8199if test -z "$ac_cv_prog_RANLIB"; then
8200  ac_ct_RANLIB=$RANLIB
8201  # Extract the first word of "ranlib", so it can be a program name with args.
8202set dummy ranlib; ac_word=$2
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204$as_echo_n "checking for $ac_word... " >&6; }
8205if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8206  $as_echo_n "(cached) " >&6
8207else
8208  if test -n "$ac_ct_RANLIB"; then
8209  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8210else
8211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212for as_dir in $PATH
8213do
8214  IFS=$as_save_IFS
8215  test -z "$as_dir" && as_dir=.
8216    for ac_exec_ext in '' $ac_executable_extensions; do
8217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8218    ac_cv_prog_ac_ct_RANLIB="ranlib"
8219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220    break 2
8221  fi
8222done
8223  done
8224IFS=$as_save_IFS
8225
8226fi
8227fi
8228ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8229if test -n "$ac_ct_RANLIB"; then
8230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8231$as_echo "$ac_ct_RANLIB" >&6; }
8232else
8233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234$as_echo "no" >&6; }
8235fi
8236
8237  if test "x$ac_ct_RANLIB" = x; then
8238    RANLIB=":"
8239  else
8240    case $cross_compiling:$ac_tool_warned in
8241yes:)
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8244ac_tool_warned=yes ;;
8245esac
8246    RANLIB=$ac_ct_RANLIB
8247  fi
8248else
8249  RANLIB="$ac_cv_prog_RANLIB"
8250fi
8251
8252ranlib_flags=""
8253
8254
8255# Find a good install program.  We prefer a C program (faster),
8256# so one script is as good as another.  But avoid the broken or
8257# incompatible versions:
8258# SysV /etc/install, /usr/sbin/install
8259# SunOS /usr/etc/install
8260# IRIX /sbin/install
8261# AIX /bin/install
8262# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8263# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8264# ./install, which can be erroneously created by make from ./install.sh.
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8266$as_echo_n "checking for a BSD compatible install... " >&6; }
8267if test -z "$INSTALL"; then
8268if ${ac_cv_path_install+:} false; then :
8269  $as_echo_n "(cached) " >&6
8270else
8271    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8272  for ac_dir in $PATH; do
8273    # Account for people who put trailing slashes in PATH elements.
8274    case "$ac_dir/" in
8275    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8276    *)
8277      # OSF1 and SCO ODT 3.0 have their own names for install.
8278      for ac_prog in ginstall scoinst install; do
8279        if test -f $ac_dir/$ac_prog; then
8280	  if test $ac_prog = install &&
8281            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8282	    # AIX install.  It has an incompatible calling convention.
8283	    # OSF/1 installbsd also uses dspmsg, but is usable.
8284	    :
8285	  else
8286	    ac_cv_path_install="$ac_dir/$ac_prog -c"
8287	    break 2
8288	  fi
8289	fi
8290      done
8291      ;;
8292    esac
8293  done
8294  IFS="$ac_save_IFS"
8295
8296fi
8297  if test "${ac_cv_path_install+set}" = set; then
8298    INSTALL="$ac_cv_path_install"
8299  else
8300    # As a last resort, use the slow shell script.  We don't cache a
8301    # path for INSTALL within a source directory, because that will
8302    # break other packages using the cache if that directory is
8303    # removed, or if the path is relative.
8304    INSTALL="$ac_install_sh"
8305  fi
8306fi
8307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8308$as_echo "$INSTALL" >&6; }
8309
8310# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8311# It thinks the first close brace ends the variable substitution.
8312test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8313
8314test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8315
8316
8317# See if cmp has --ignore-initial.
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8319$as_echo_n "checking for cmp's capabilities... " >&6; }
8320if ${gcc_cv_prog_cmp_skip+:} false; then :
8321  $as_echo_n "(cached) " >&6
8322else
8323   echo abfoo >t1
8324  echo cdfoo >t2
8325  gcc_cv_prog_cmp_skip=slowcompare
8326  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8327    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8328      :
8329    else
8330      gcc_cv_prog_cmp_skip=gnucompare
8331    fi
8332  fi
8333  if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8334    if cmp t1 t2 2 2 > /dev/null 2>&1; then
8335      if cmp t1 t2 1 1 > /dev/null 2>&1; then
8336        :
8337      else
8338        gcc_cv_prog_cmp_skip=fastcompare
8339      fi
8340    fi
8341  fi
8342  rm t1 t2
8343
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8346$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8347make_compare_target=$gcc_cv_prog_cmp_skip
8348
8349
8350
8351# See if we have the mktemp command.
8352# Extract the first word of "mktemp", so it can be a program name with args.
8353set dummy mktemp; ac_word=$2
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355$as_echo_n "checking for $ac_word... " >&6; }
8356if ${ac_cv_prog_have_mktemp_command+:} false; then :
8357  $as_echo_n "(cached) " >&6
8358else
8359  if test -n "$have_mktemp_command"; then
8360  ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8361else
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365  IFS=$as_save_IFS
8366  test -z "$as_dir" && as_dir=.
8367    for ac_exec_ext in '' $ac_executable_extensions; do
8368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369    ac_cv_prog_have_mktemp_command="yes"
8370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371    break 2
8372  fi
8373done
8374  done
8375IFS=$as_save_IFS
8376
8377  test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8378fi
8379fi
8380have_mktemp_command=$ac_cv_prog_have_mktemp_command
8381if test -n "$have_mktemp_command"; then
8382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8383$as_echo "$have_mktemp_command" >&6; }
8384else
8385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386$as_echo "no" >&6; }
8387fi
8388
8389
8390
8391# See if makeinfo has been installed and is modern enough
8392# that we can use it.
8393
8394  # Extract the first word of "makeinfo", so it can be a program name with args.
8395set dummy makeinfo; ac_word=$2
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397$as_echo_n "checking for $ac_word... " >&6; }
8398if ${ac_cv_prog_MAKEINFO+:} false; then :
8399  $as_echo_n "(cached) " >&6
8400else
8401  if test -n "$MAKEINFO"; then
8402  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8403else
8404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405for as_dir in $PATH
8406do
8407  IFS=$as_save_IFS
8408  test -z "$as_dir" && as_dir=.
8409    for ac_exec_ext in '' $ac_executable_extensions; do
8410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8411    ac_cv_prog_MAKEINFO="makeinfo"
8412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413    break 2
8414  fi
8415done
8416  done
8417IFS=$as_save_IFS
8418
8419fi
8420fi
8421MAKEINFO=$ac_cv_prog_MAKEINFO
8422if test -n "$MAKEINFO"; then
8423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8424$as_echo "$MAKEINFO" >&6; }
8425else
8426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427$as_echo "no" >&6; }
8428fi
8429
8430
8431  if test -n "$MAKEINFO"; then
8432    # Found it, now check the version.
8433    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8434$as_echo_n "checking for modern makeinfo... " >&6; }
8435if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8436  $as_echo_n "(cached) " >&6
8437else
8438  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8439                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8440
8441                    case $ac_prog_version in
8442                      '')  gcc_cv_prog_makeinfo_modern=no;;
8443                      4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8444                      *)   gcc_cv_prog_makeinfo_modern=no;;
8445                    esac
8446
8447fi
8448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8449$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8450  else
8451    gcc_cv_prog_makeinfo_modern=no
8452  fi
8453  if test $gcc_cv_prog_makeinfo_modern = no; then
8454    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8455  fi
8456
8457if test $gcc_cv_prog_makeinfo_modern = no; then
8458  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8459*** Makeinfo is missing or too old.
8460*** Info documentation will not be built." >&5
8461$as_echo "$as_me: WARNING:
8462*** Makeinfo is missing or too old.
8463*** Info documentation will not be built." >&2;}
8464  BUILD_INFO=
8465else
8466  BUILD_INFO=info
8467fi
8468
8469
8470# Is pod2man recent enough to regenerate manpages?
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8472$as_echo_n "checking for recent Pod::Man... " >&6; }
8473if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8475$as_echo "yes" >&6; }
8476  GENERATED_MANPAGES=generated-manpages
8477else
8478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479$as_echo "no" >&6; }
8480  GENERATED_MANPAGES=
8481fi
8482
8483
8484MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8485
8486# How about lex?
8487for ac_prog in flex
8488do
8489  # Extract the first word of "$ac_prog", so it can be a program name with args.
8490set dummy $ac_prog; ac_word=$2
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492$as_echo_n "checking for $ac_word... " >&6; }
8493if ${ac_cv_prog_FLEX+:} false; then :
8494  $as_echo_n "(cached) " >&6
8495else
8496  if test -n "$FLEX"; then
8497  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8498else
8499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500for as_dir in $PATH
8501do
8502  IFS=$as_save_IFS
8503  test -z "$as_dir" && as_dir=.
8504    for ac_exec_ext in '' $ac_executable_extensions; do
8505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506    ac_cv_prog_FLEX="$ac_prog"
8507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508    break 2
8509  fi
8510done
8511  done
8512IFS=$as_save_IFS
8513
8514fi
8515fi
8516FLEX=$ac_cv_prog_FLEX
8517if test -n "$FLEX"; then
8518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8519$as_echo "$FLEX" >&6; }
8520else
8521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522$as_echo "no" >&6; }
8523fi
8524
8525
8526  test -n "$FLEX" && break
8527done
8528test -n "$FLEX" || FLEX="$MISSING flex"
8529
8530
8531# Bison?
8532for ac_prog in bison
8533do
8534  # Extract the first word of "$ac_prog", so it can be a program name with args.
8535set dummy $ac_prog; ac_word=$2
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537$as_echo_n "checking for $ac_word... " >&6; }
8538if ${ac_cv_prog_BISON+:} false; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  if test -n "$BISON"; then
8542  ac_cv_prog_BISON="$BISON" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547  IFS=$as_save_IFS
8548  test -z "$as_dir" && as_dir=.
8549    for ac_exec_ext in '' $ac_executable_extensions; do
8550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8551    ac_cv_prog_BISON="$ac_prog"
8552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553    break 2
8554  fi
8555done
8556  done
8557IFS=$as_save_IFS
8558
8559fi
8560fi
8561BISON=$ac_cv_prog_BISON
8562if test -n "$BISON"; then
8563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8564$as_echo "$BISON" >&6; }
8565else
8566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567$as_echo "no" >&6; }
8568fi
8569
8570
8571  test -n "$BISON" && break
8572done
8573test -n "$BISON" || BISON="$MISSING bison"
8574
8575
8576# Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8577# check for build == host before using them.
8578
8579# NM
8580if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8581  && test -d ../binutils ; then
8582  NM='${objdir}/../binutils/nm-new'
8583else
8584  # Extract the first word of "nm", so it can be a program name with args.
8585set dummy nm; ac_word=$2
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587$as_echo_n "checking for $ac_word... " >&6; }
8588if ${ac_cv_prog_NM+:} false; then :
8589  $as_echo_n "(cached) " >&6
8590else
8591  if test -n "$NM"; then
8592  ac_cv_prog_NM="$NM" # Let the user override the test.
8593else
8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597  IFS=$as_save_IFS
8598  test -z "$as_dir" && as_dir=.
8599    for ac_exec_ext in '' $ac_executable_extensions; do
8600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601    ac_cv_prog_NM="nm"
8602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603    break 2
8604  fi
8605done
8606  done
8607IFS=$as_save_IFS
8608
8609  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8610fi
8611fi
8612NM=$ac_cv_prog_NM
8613if test -n "$NM"; then
8614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8615$as_echo "$NM" >&6; }
8616else
8617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
8619fi
8620
8621
8622fi
8623
8624# AR
8625if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8626  && test -d ../binutils ; then
8627  AR='${objdir}/../binutils/ar'
8628else
8629  # Extract the first word of "ar", so it can be a program name with args.
8630set dummy ar; ac_word=$2
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632$as_echo_n "checking for $ac_word... " >&6; }
8633if ${ac_cv_prog_AR+:} false; then :
8634  $as_echo_n "(cached) " >&6
8635else
8636  if test -n "$AR"; then
8637  ac_cv_prog_AR="$AR" # Let the user override the test.
8638else
8639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640for as_dir in $PATH
8641do
8642  IFS=$as_save_IFS
8643  test -z "$as_dir" && as_dir=.
8644    for ac_exec_ext in '' $ac_executable_extensions; do
8645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646    ac_cv_prog_AR="ar"
8647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648    break 2
8649  fi
8650done
8651  done
8652IFS=$as_save_IFS
8653
8654  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8655fi
8656fi
8657AR=$ac_cv_prog_AR
8658if test -n "$AR"; then
8659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8660$as_echo "$AR" >&6; }
8661else
8662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663$as_echo "no" >&6; }
8664fi
8665
8666
8667fi
8668
8669# The jit documentation looks better if built with sphinx, but can be
8670# built with texinfo if sphinx is not available.
8671# Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8672# Extract the first word of "sphinx-build", so it can be a program name with args.
8673set dummy sphinx-build; ac_word=$2
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675$as_echo_n "checking for $ac_word... " >&6; }
8676if ${ac_cv_prog_doc_build_sys+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679  if test -n "$doc_build_sys"; then
8680  ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8681else
8682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683for as_dir in $PATH
8684do
8685  IFS=$as_save_IFS
8686  test -z "$as_dir" && as_dir=.
8687    for ac_exec_ext in '' $ac_executable_extensions; do
8688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8689    ac_cv_prog_doc_build_sys="sphinx"
8690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8691    break 2
8692  fi
8693done
8694  done
8695IFS=$as_save_IFS
8696
8697  test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8698fi
8699fi
8700doc_build_sys=$ac_cv_prog_doc_build_sys
8701if test -n "$doc_build_sys"; then
8702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8703$as_echo "$doc_build_sys" >&6; }
8704else
8705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706$as_echo "no" >&6; }
8707fi
8708
8709
8710
8711# --------------------
8712# Checks for C headers
8713# --------------------
8714
8715# Need to reject headers which give warnings, so that the -Werror bootstrap
8716# works later. *sigh*  This needs to come before all header checks.
8717
8718ac_c_preproc_warn_flag=yes
8719
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8721$as_echo_n "checking for ANSI C header files... " >&6; }
8722if ${ac_cv_header_stdc+:} false; then :
8723  $as_echo_n "(cached) " >&6
8724else
8725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h.  */
8727#include <stdlib.h>
8728#include <stdarg.h>
8729#include <string.h>
8730#include <float.h>
8731
8732int
8733main ()
8734{
8735
8736  ;
8737  return 0;
8738}
8739_ACEOF
8740if ac_fn_cxx_try_compile "$LINENO"; then :
8741  ac_cv_header_stdc=yes
8742else
8743  ac_cv_header_stdc=no
8744fi
8745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746
8747if test $ac_cv_header_stdc = yes; then
8748  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750/* end confdefs.h.  */
8751#include <string.h>
8752
8753_ACEOF
8754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8755  $EGREP "memchr" >/dev/null 2>&1; then :
8756
8757else
8758  ac_cv_header_stdc=no
8759fi
8760rm -f conftest*
8761
8762fi
8763
8764if test $ac_cv_header_stdc = yes; then
8765  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767/* end confdefs.h.  */
8768#include <stdlib.h>
8769
8770_ACEOF
8771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8772  $EGREP "free" >/dev/null 2>&1; then :
8773
8774else
8775  ac_cv_header_stdc=no
8776fi
8777rm -f conftest*
8778
8779fi
8780
8781if test $ac_cv_header_stdc = yes; then
8782  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8783  if test "$cross_compiling" = yes; then :
8784  :
8785else
8786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787/* end confdefs.h.  */
8788#include <ctype.h>
8789#include <stdlib.h>
8790#if ((' ' & 0x0FF) == 0x020)
8791# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8792# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8793#else
8794# define ISLOWER(c) \
8795		   (('a' <= (c) && (c) <= 'i') \
8796		     || ('j' <= (c) && (c) <= 'r') \
8797		     || ('s' <= (c) && (c) <= 'z'))
8798# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8799#endif
8800
8801#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8802int
8803main ()
8804{
8805  int i;
8806  for (i = 0; i < 256; i++)
8807    if (XOR (islower (i), ISLOWER (i))
8808	|| toupper (i) != TOUPPER (i))
8809      return 2;
8810  return 0;
8811}
8812_ACEOF
8813if ac_fn_cxx_try_run "$LINENO"; then :
8814
8815else
8816  ac_cv_header_stdc=no
8817fi
8818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8819  conftest.$ac_objext conftest.beam conftest.$ac_ext
8820fi
8821
8822fi
8823fi
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8825$as_echo "$ac_cv_header_stdc" >&6; }
8826if test $ac_cv_header_stdc = yes; then
8827
8828$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8829
8830fi
8831
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8833$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8834if ${ac_cv_header_time+:} false; then :
8835  $as_echo_n "(cached) " >&6
8836else
8837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838/* end confdefs.h.  */
8839#include <sys/types.h>
8840#include <sys/time.h>
8841#include <time.h>
8842
8843int
8844main ()
8845{
8846if ((struct tm *) 0)
8847return 0;
8848  ;
8849  return 0;
8850}
8851_ACEOF
8852if ac_fn_cxx_try_compile "$LINENO"; then :
8853  ac_cv_header_time=yes
8854else
8855  ac_cv_header_time=no
8856fi
8857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858fi
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8860$as_echo "$ac_cv_header_time" >&6; }
8861if test $ac_cv_header_time = yes; then
8862
8863$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8864
8865fi
8866
8867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8868$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8869if ${gcc_cv_header_string+:} false; then :
8870  $as_echo_n "(cached) " >&6
8871else
8872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873/* end confdefs.h.  */
8874#include <string.h>
8875#include <strings.h>
8876int
8877main ()
8878{
8879
8880  ;
8881  return 0;
8882}
8883_ACEOF
8884if ac_fn_cxx_try_compile "$LINENO"; then :
8885  gcc_cv_header_string=yes
8886else
8887  gcc_cv_header_string=no
8888fi
8889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890fi
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8892$as_echo "$gcc_cv_header_string" >&6; }
8893if test $gcc_cv_header_string = yes; then
8894
8895$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8896
8897fi
8898
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8900$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8901if ${ac_cv_header_sys_wait_h+:} false; then :
8902  $as_echo_n "(cached) " >&6
8903else
8904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905/* end confdefs.h.  */
8906#include <sys/types.h>
8907#include <sys/wait.h>
8908#ifndef WEXITSTATUS
8909# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8910#endif
8911#ifndef WIFEXITED
8912# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8913#endif
8914
8915int
8916main ()
8917{
8918  int s;
8919  wait (&s);
8920  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8921  ;
8922  return 0;
8923}
8924_ACEOF
8925if ac_fn_cxx_try_compile "$LINENO"; then :
8926  ac_cv_header_sys_wait_h=yes
8927else
8928  ac_cv_header_sys_wait_h=no
8929fi
8930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931fi
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8933$as_echo "$ac_cv_header_sys_wait_h" >&6; }
8934if test $ac_cv_header_sys_wait_h = yes; then
8935
8936$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8937
8938fi
8939
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8941$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8942if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8943  $as_echo_n "(cached) " >&6
8944else
8945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946/* end confdefs.h.  */
8947#include <sys/types.h>
8948#include <termios.h>
8949#ifdef TIOCGWINSZ
8950  yes
8951#endif
8952
8953_ACEOF
8954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8955  $EGREP "yes" >/dev/null 2>&1; then :
8956  ac_cv_sys_tiocgwinsz_in_termios_h=yes
8957else
8958  ac_cv_sys_tiocgwinsz_in_termios_h=no
8959fi
8960rm -f conftest*
8961
8962fi
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8964$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8965
8966if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8968$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8969if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8970  $as_echo_n "(cached) " >&6
8971else
8972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973/* end confdefs.h.  */
8974#include <sys/types.h>
8975#include <sys/ioctl.h>
8976#ifdef TIOCGWINSZ
8977  yes
8978#endif
8979
8980_ACEOF
8981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8982  $EGREP "yes" >/dev/null 2>&1; then :
8983  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8984else
8985  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8986fi
8987rm -f conftest*
8988
8989fi
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8991$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8992
8993  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8994
8995$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8996
8997  fi
8998fi
8999
9000for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9001		 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
9002		 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9003		 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9004do :
9005  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9006ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9008  cat >>confdefs.h <<_ACEOF
9009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9010_ACEOF
9011
9012fi
9013done
9014
9015
9016# Check for thread headers.
9017ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9018if test "x$ac_cv_header_thread_h" = xyes; then :
9019  have_thread_h=yes
9020else
9021  have_thread_h=
9022fi
9023
9024ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9025if test "x$ac_cv_header_pthread_h" = xyes; then :
9026  have_pthread_h=yes
9027else
9028  have_pthread_h=
9029fi
9030
9031
9032# These tests can't be done till we know if we have limits.h.
9033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9034$as_echo_n "checking for CHAR_BIT... " >&6; }
9035if ${gcc_cv_decl_char_bit+:} false; then :
9036  $as_echo_n "(cached) " >&6
9037else
9038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039/* end confdefs.h.  */
9040#ifdef HAVE_LIMITS_H
9041#include <limits.h>
9042#endif
9043#ifdef CHAR_BIT
9044found
9045#endif
9046_ACEOF
9047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9048  $EGREP "found" >/dev/null 2>&1; then :
9049  gcc_cv_decl_char_bit=yes
9050else
9051  gcc_cv_decl_char_bit=no
9052fi
9053rm -f conftest*
9054
9055
9056fi
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9058$as_echo "$gcc_cv_decl_char_bit" >&6; }
9059if test $gcc_cv_decl_char_bit = no; then
9060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9061$as_echo_n "checking number of bits in a byte... " >&6; }
9062if ${gcc_cv_c_nbby+:} false; then :
9063  $as_echo_n "(cached) " >&6
9064else
9065  i=8
9066 gcc_cv_c_nbby=
9067 while test $i -lt 65; do
9068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069/* end confdefs.h.  */
9070
9071int
9072main ()
9073{
9074switch(0) {
9075  case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9076  case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9077  ; }
9078  ;
9079  return 0;
9080}
9081_ACEOF
9082if ac_fn_cxx_try_compile "$LINENO"; then :
9083  gcc_cv_c_nbby=$i; break
9084fi
9085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9086   i=`expr $i + 1`
9087 done
9088 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9089
9090fi
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9092$as_echo "$gcc_cv_c_nbby" >&6; }
9093if test $gcc_cv_c_nbby = failed; then
9094  as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9095else
9096
9097cat >>confdefs.h <<_ACEOF
9098#define CHAR_BIT $gcc_cv_c_nbby
9099_ACEOF
9100
9101fi
9102fi
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9104$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9105if ${ac_cv_c_bigendian+:} false; then :
9106  $as_echo_n "(cached) " >&6
9107else
9108  ac_cv_c_bigendian=unknown
9109    # See if we're dealing with a universal compiler.
9110    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111/* end confdefs.h.  */
9112#ifndef __APPLE_CC__
9113	       not a universal capable compiler
9114	     #endif
9115	     typedef int dummy;
9116
9117_ACEOF
9118if ac_fn_cxx_try_compile "$LINENO"; then :
9119
9120	# Check for potential -arch flags.  It is not universal unless
9121	# there are at least two -arch flags with different values.
9122	ac_arch=
9123	ac_prev=
9124	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9125	 if test -n "$ac_prev"; then
9126	   case $ac_word in
9127	     i?86 | x86_64 | ppc | ppc64)
9128	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9129		 ac_arch=$ac_word
9130	       else
9131		 ac_cv_c_bigendian=universal
9132		 break
9133	       fi
9134	       ;;
9135	   esac
9136	   ac_prev=
9137	 elif test "x$ac_word" = "x-arch"; then
9138	   ac_prev=arch
9139	 fi
9140       done
9141fi
9142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143    if test $ac_cv_c_bigendian = unknown; then
9144      # See if sys/param.h defines the BYTE_ORDER macro.
9145      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146/* end confdefs.h.  */
9147#include <sys/types.h>
9148	     #include <sys/param.h>
9149
9150int
9151main ()
9152{
9153#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9154		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9155		     && LITTLE_ENDIAN)
9156	      bogus endian macros
9157	     #endif
9158
9159  ;
9160  return 0;
9161}
9162_ACEOF
9163if ac_fn_cxx_try_compile "$LINENO"; then :
9164  # It does; now see whether it defined to BIG_ENDIAN or not.
9165	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166/* end confdefs.h.  */
9167#include <sys/types.h>
9168		#include <sys/param.h>
9169
9170int
9171main ()
9172{
9173#if BYTE_ORDER != BIG_ENDIAN
9174		 not big endian
9175		#endif
9176
9177  ;
9178  return 0;
9179}
9180_ACEOF
9181if ac_fn_cxx_try_compile "$LINENO"; then :
9182  ac_cv_c_bigendian=yes
9183else
9184  ac_cv_c_bigendian=no
9185fi
9186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187fi
9188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189    fi
9190    if test $ac_cv_c_bigendian = unknown; then
9191      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9192      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193/* end confdefs.h.  */
9194#include <limits.h>
9195
9196int
9197main ()
9198{
9199#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9200	      bogus endian macros
9201	     #endif
9202
9203  ;
9204  return 0;
9205}
9206_ACEOF
9207if ac_fn_cxx_try_compile "$LINENO"; then :
9208  # It does; now see whether it defined to _BIG_ENDIAN or not.
9209	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210/* end confdefs.h.  */
9211#include <limits.h>
9212
9213int
9214main ()
9215{
9216#ifndef _BIG_ENDIAN
9217		 not big endian
9218		#endif
9219
9220  ;
9221  return 0;
9222}
9223_ACEOF
9224if ac_fn_cxx_try_compile "$LINENO"; then :
9225  ac_cv_c_bigendian=yes
9226else
9227  ac_cv_c_bigendian=no
9228fi
9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230fi
9231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9232    fi
9233    if test $ac_cv_c_bigendian = unknown; then
9234      # Compile a test program.
9235      if test "$cross_compiling" = yes; then :
9236  # Try to guess by grepping values from an object file.
9237	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9238/* end confdefs.h.  */
9239short int ascii_mm[] =
9240		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9241		short int ascii_ii[] =
9242		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9243		int use_ascii (int i) {
9244		  return ascii_mm[i] + ascii_ii[i];
9245		}
9246		short int ebcdic_ii[] =
9247		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9248		short int ebcdic_mm[] =
9249		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9250		int use_ebcdic (int i) {
9251		  return ebcdic_mm[i] + ebcdic_ii[i];
9252		}
9253		extern int foo;
9254
9255int
9256main ()
9257{
9258return use_ascii (foo) == use_ebcdic (foo);
9259  ;
9260  return 0;
9261}
9262_ACEOF
9263if ac_fn_cxx_try_compile "$LINENO"; then :
9264  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9265	      ac_cv_c_bigendian=yes
9266	    fi
9267	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9268	      if test "$ac_cv_c_bigendian" = unknown; then
9269		ac_cv_c_bigendian=no
9270	      else
9271		# finding both strings is unlikely to happen, but who knows?
9272		ac_cv_c_bigendian=unknown
9273	      fi
9274	    fi
9275fi
9276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277else
9278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h.  */
9280$ac_includes_default
9281int
9282main ()
9283{
9284
9285	     /* Are we little or big endian?  From Harbison&Steele.  */
9286	     union
9287	     {
9288	       long int l;
9289	       char c[sizeof (long int)];
9290	     } u;
9291	     u.l = 1;
9292	     return u.c[sizeof (long int) - 1] == 1;
9293
9294  ;
9295  return 0;
9296}
9297_ACEOF
9298if ac_fn_cxx_try_run "$LINENO"; then :
9299  ac_cv_c_bigendian=no
9300else
9301  ac_cv_c_bigendian=yes
9302fi
9303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9304  conftest.$ac_objext conftest.beam conftest.$ac_ext
9305fi
9306
9307    fi
9308fi
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9310$as_echo "$ac_cv_c_bigendian" >&6; }
9311 case $ac_cv_c_bigendian in #(
9312   yes)
9313     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9314;; #(
9315   no)
9316      ;; #(
9317   universal)
9318
9319$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9320
9321     ;; #(
9322   *)
9323     as_fn_error $? "unknown endianness
9324 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9325 esac
9326
9327
9328# ----------------------
9329# Checks for C++ headers
9330# ----------------------
9331
9332ac_ext=cpp
9333ac_cpp='$CXXCPP $CPPFLAGS'
9334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9338$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9339if test -z "$CXXCPP"; then
9340  if ${ac_cv_prog_CXXCPP+:} false; then :
9341  $as_echo_n "(cached) " >&6
9342else
9343      # Double quotes because CXXCPP needs to be expanded
9344    for CXXCPP in "$CXX -E" "/lib/cpp"
9345    do
9346      ac_preproc_ok=false
9347for ac_cxx_preproc_warn_flag in '' yes
9348do
9349  # Use a header file that comes with gcc, so configuring glibc
9350  # with a fresh cross-compiler works.
9351  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9352  # <limits.h> exists even on freestanding compilers.
9353  # On the NeXT, cc -E runs the code through the compiler's parser,
9354  # not just through cpp. "Syntax error" is here to catch this case.
9355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356/* end confdefs.h.  */
9357#ifdef __STDC__
9358# include <limits.h>
9359#else
9360# include <assert.h>
9361#endif
9362		     Syntax error
9363_ACEOF
9364if ac_fn_cxx_try_cpp "$LINENO"; then :
9365
9366else
9367  # Broken: fails on valid input.
9368continue
9369fi
9370rm -f conftest.err conftest.i conftest.$ac_ext
9371
9372  # OK, works on sane cases.  Now check whether nonexistent headers
9373  # can be detected and how.
9374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375/* end confdefs.h.  */
9376#include <ac_nonexistent.h>
9377_ACEOF
9378if ac_fn_cxx_try_cpp "$LINENO"; then :
9379  # Broken: success on invalid input.
9380continue
9381else
9382  # Passes both tests.
9383ac_preproc_ok=:
9384break
9385fi
9386rm -f conftest.err conftest.i conftest.$ac_ext
9387
9388done
9389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9390rm -f conftest.i conftest.err conftest.$ac_ext
9391if $ac_preproc_ok; then :
9392  break
9393fi
9394
9395    done
9396    ac_cv_prog_CXXCPP=$CXXCPP
9397
9398fi
9399  CXXCPP=$ac_cv_prog_CXXCPP
9400else
9401  ac_cv_prog_CXXCPP=$CXXCPP
9402fi
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9404$as_echo "$CXXCPP" >&6; }
9405ac_preproc_ok=false
9406for ac_cxx_preproc_warn_flag in '' yes
9407do
9408  # Use a header file that comes with gcc, so configuring glibc
9409  # with a fresh cross-compiler works.
9410  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9411  # <limits.h> exists even on freestanding compilers.
9412  # On the NeXT, cc -E runs the code through the compiler's parser,
9413  # not just through cpp. "Syntax error" is here to catch this case.
9414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415/* end confdefs.h.  */
9416#ifdef __STDC__
9417# include <limits.h>
9418#else
9419# include <assert.h>
9420#endif
9421		     Syntax error
9422_ACEOF
9423if ac_fn_cxx_try_cpp "$LINENO"; then :
9424
9425else
9426  # Broken: fails on valid input.
9427continue
9428fi
9429rm -f conftest.err conftest.i conftest.$ac_ext
9430
9431  # OK, works on sane cases.  Now check whether nonexistent headers
9432  # can be detected and how.
9433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434/* end confdefs.h.  */
9435#include <ac_nonexistent.h>
9436_ACEOF
9437if ac_fn_cxx_try_cpp "$LINENO"; then :
9438  # Broken: success on invalid input.
9439continue
9440else
9441  # Passes both tests.
9442ac_preproc_ok=:
9443break
9444fi
9445rm -f conftest.err conftest.i conftest.$ac_ext
9446
9447done
9448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9449rm -f conftest.i conftest.err conftest.$ac_ext
9450if $ac_preproc_ok; then :
9451
9452else
9453  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9456See \`config.log' for more details" >&5
9457$as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9458See \`config.log' for more details" >&2;}; }
9459fi
9460
9461ac_ext=cpp
9462ac_cpp='$CXXCPP $CPPFLAGS'
9463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9466
9467
9468for ac_header in unordered_map
9469do :
9470  ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9471if test "x$ac_cv_header_unordered_map" = xyes; then :
9472  cat >>confdefs.h <<_ACEOF
9473#define HAVE_UNORDERED_MAP 1
9474_ACEOF
9475
9476fi
9477done
9478
9479for ac_header in tr1/unordered_map
9480do :
9481  ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9482if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9483  cat >>confdefs.h <<_ACEOF
9484#define HAVE_TR1_UNORDERED_MAP 1
9485_ACEOF
9486
9487fi
9488done
9489
9490for ac_header in ext/hash_map
9491do :
9492  ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9493if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9494  cat >>confdefs.h <<_ACEOF
9495#define HAVE_EXT_HASH_MAP 1
9496_ACEOF
9497
9498fi
9499done
9500
9501
9502# --------
9503# Dependency checking.
9504# --------
9505
9506rm -rf .tst 2>/dev/null
9507mkdir .tst 2>/dev/null
9508if test -d .tst; then
9509  am__leading_dot=.
9510else
9511  am__leading_dot=_
9512fi
9513rmdir .tst 2>/dev/null
9514
9515DEPDIR="${am__leading_dot}deps"
9516
9517ac_config_commands="$ac_config_commands depdir"
9518
9519
9520ac_config_commands="$ac_config_commands gccdepdir"
9521
9522
9523depcc="$CXX"  am_compiler_list=
9524
9525am_depcomp=$ac_aux_dir/depcomp
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9527$as_echo_n "checking dependency style of $depcc... " >&6; }
9528if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9529  $as_echo_n "(cached) " >&6
9530else
9531  if test -f "$am_depcomp"; then
9532  # We make a subdir and do the tests there.  Otherwise we can end up
9533  # making bogus files that we don't know about and never remove.  For
9534  # instance it was reported that on HP-UX the gcc test will end up
9535  # making a dummy file named `D' -- because `-MD' means `put the output
9536  # in D'.
9537  mkdir conftest.dir
9538  # Copy depcomp to subdir because otherwise we won't find it if we're
9539  # using a relative directory.
9540  cp "$am_depcomp" conftest.dir
9541  cd conftest.dir
9542  # We will build objects and dependencies in a subdirectory because
9543  # it helps to detect inapplicable dependency modes.  For instance
9544  # both Tru64's cc and ICC support -MD to output dependencies as a
9545  # side effect of compilation, but ICC will put the dependencies in
9546  # the current directory while Tru64 will put them in the object
9547  # directory.
9548  mkdir sub
9549
9550  am_cv_CXX_dependencies_compiler_type=none
9551  if test "$am_compiler_list" = ""; then
9552     am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9553  fi
9554  for depmode in $am_compiler_list; do
9555    if test $depmode = none; then break; fi
9556
9557    $as_echo "$as_me:$LINENO: trying $depmode" >&5
9558    # Setup a source with many dependencies, because some compilers
9559    # like to wrap large dependency lists on column 80 (with \), and
9560    # we should not choose a depcomp mode which is confused by this.
9561    #
9562    # We need to recreate these files for each test, as the compiler may
9563    # overwrite some of them when testing with obscure command lines.
9564    # This happens at least with the AIX C compiler.
9565    : > sub/conftest.c
9566    for i in 1 2 3 4 5 6; do
9567      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9568      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9569      # Solaris 8's {/usr,}/bin/sh.
9570      touch sub/conftst$i.h
9571    done
9572    echo "include sub/conftest.Po" > confmf
9573
9574    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9575    # mode.  It turns out that the SunPro C++ compiler does not properly
9576    # handle `-M -o', and we need to detect this.
9577    depcmd="depmode=$depmode \
9578       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9579       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9580       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9581    echo "| $depcmd" | sed -e 's/  */ /g' >&5
9582    if env $depcmd > conftest.err 2>&1 &&
9583       grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9584       grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9585       ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9586      # icc doesn't choke on unknown options, it will just issue warnings
9587      # or remarks (even with -Werror).  So we grep stderr for any message
9588      # that says an option was ignored or not supported.
9589      # When given -MP, icc 7.0 and 7.1 complain thusly:
9590      #   icc: Command line warning: ignoring option '-M'; no argument required
9591      # The diagnosis changed in icc 8.0:
9592      #   icc: Command line remark: option '-MP' not supported
9593      if (grep 'ignoring option' conftest.err ||
9594          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9595        am_cv_CXX_dependencies_compiler_type=$depmode
9596	$as_echo "$as_me:$LINENO: success" >&5
9597        break
9598      fi
9599    fi
9600    $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9601    sed -e 's/^/| /' < conftest.err >&5
9602  done
9603
9604  cd ..
9605  rm -rf conftest.dir
9606else
9607  am_cv_CXX_dependencies_compiler_type=none
9608fi
9609
9610fi
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9612$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9613if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9614then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9615else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9616
9617fi
9618
9619
9620# --------
9621# UNSORTED
9622# --------
9623
9624
9625# These libraries may be used by collect2.
9626# We may need a special search path to get them linked.
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9628$as_echo_n "checking for collect2 libraries... " >&6; }
9629if ${gcc_cv_collect2_libs+:} false; then :
9630  $as_echo_n "(cached) " >&6
9631else
9632  save_LIBS="$LIBS"
9633for libs in '' -lld -lmld \
9634		'-L/usr/lib/cmplrs/cc2.11 -lmld' \
9635		'-L/usr/lib/cmplrs/cc3.11 -lmld'
9636do
9637	LIBS="$libs"
9638	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639/* end confdefs.h.  */
9640
9641/* Override any GCC internal prototype to avoid an error.
9642   Use char because int might match the return type of a GCC
9643   builtin and then its argument prototype would still apply.  */
9644#ifdef __cplusplus
9645extern "C"
9646#endif
9647char ldopen ();
9648int
9649main ()
9650{
9651return ldopen ();
9652  ;
9653  return 0;
9654}
9655_ACEOF
9656if ac_fn_cxx_try_link "$LINENO"; then :
9657  gcc_cv_collect2_libs="$libs"; break
9658fi
9659rm -f core conftest.err conftest.$ac_objext \
9660    conftest$ac_exeext conftest.$ac_ext
9661done
9662LIBS="$save_LIBS"
9663test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9664fi
9665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9666$as_echo "$gcc_cv_collect2_libs" >&6; }
9667case $gcc_cv_collect2_libs in
9668	"none required")	;;
9669	*)	COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9670esac
9671
9672
9673# When building Ada code on Alpha, we need exc_resume which is usually in
9674# -lexc.  So test for it.
9675save_LIBS="$LIBS"
9676LIBS=
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9678$as_echo_n "checking for library containing exc_resume... " >&6; }
9679if ${ac_cv_search_exc_resume+:} false; then :
9680  $as_echo_n "(cached) " >&6
9681else
9682  ac_func_search_save_LIBS=$LIBS
9683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684/* end confdefs.h.  */
9685
9686/* Override any GCC internal prototype to avoid an error.
9687   Use char because int might match the return type of a GCC
9688   builtin and then its argument prototype would still apply.  */
9689#ifdef __cplusplus
9690extern "C"
9691#endif
9692char exc_resume ();
9693int
9694main ()
9695{
9696return exc_resume ();
9697  ;
9698  return 0;
9699}
9700_ACEOF
9701for ac_lib in '' exc; do
9702  if test -z "$ac_lib"; then
9703    ac_res="none required"
9704  else
9705    ac_res=-l$ac_lib
9706    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9707  fi
9708  if ac_fn_cxx_try_link "$LINENO"; then :
9709  ac_cv_search_exc_resume=$ac_res
9710fi
9711rm -f core conftest.err conftest.$ac_objext \
9712    conftest$ac_exeext
9713  if ${ac_cv_search_exc_resume+:} false; then :
9714  break
9715fi
9716done
9717if ${ac_cv_search_exc_resume+:} false; then :
9718
9719else
9720  ac_cv_search_exc_resume=no
9721fi
9722rm conftest.$ac_ext
9723LIBS=$ac_func_search_save_LIBS
9724fi
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9726$as_echo "$ac_cv_search_exc_resume" >&6; }
9727ac_res=$ac_cv_search_exc_resume
9728if test "$ac_res" != no; then :
9729  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9730
9731fi
9732
9733GNAT_LIBEXC="$LIBS"
9734LIBS="$save_LIBS"
9735
9736
9737# To support -mcpu=native on Solaris/SPARC, we need libkstat.
9738save_LIBS="$LIBS"
9739LIBS=
9740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9741$as_echo_n "checking for library containing kstat_open... " >&6; }
9742if ${ac_cv_search_kstat_open+:} false; then :
9743  $as_echo_n "(cached) " >&6
9744else
9745  ac_func_search_save_LIBS=$LIBS
9746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747/* end confdefs.h.  */
9748
9749/* Override any GCC internal prototype to avoid an error.
9750   Use char because int might match the return type of a GCC
9751   builtin and then its argument prototype would still apply.  */
9752#ifdef __cplusplus
9753extern "C"
9754#endif
9755char kstat_open ();
9756int
9757main ()
9758{
9759return kstat_open ();
9760  ;
9761  return 0;
9762}
9763_ACEOF
9764for ac_lib in '' kstat; do
9765  if test -z "$ac_lib"; then
9766    ac_res="none required"
9767  else
9768    ac_res=-l$ac_lib
9769    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9770  fi
9771  if ac_fn_cxx_try_link "$LINENO"; then :
9772  ac_cv_search_kstat_open=$ac_res
9773fi
9774rm -f core conftest.err conftest.$ac_objext \
9775    conftest$ac_exeext
9776  if ${ac_cv_search_kstat_open+:} false; then :
9777  break
9778fi
9779done
9780if ${ac_cv_search_kstat_open+:} false; then :
9781
9782else
9783  ac_cv_search_kstat_open=no
9784fi
9785rm conftest.$ac_ext
9786LIBS=$ac_func_search_save_LIBS
9787fi
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9789$as_echo "$ac_cv_search_kstat_open" >&6; }
9790ac_res=$ac_cv_search_kstat_open
9791if test "$ac_res" != no; then :
9792  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9793
9794fi
9795
9796EXTRA_GCC_LIBS="$LIBS"
9797LIBS="$save_LIBS"
9798
9799
9800# Some systems put ldexp and frexp in libm instead of libc; assume
9801# they're both in the same place.  jcf-dump needs them.
9802save_LIBS="$LIBS"
9803LIBS=
9804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9805$as_echo_n "checking for library containing ldexp... " >&6; }
9806if ${ac_cv_search_ldexp+:} false; then :
9807  $as_echo_n "(cached) " >&6
9808else
9809  ac_func_search_save_LIBS=$LIBS
9810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h.  */
9812
9813/* Override any GCC internal prototype to avoid an error.
9814   Use char because int might match the return type of a GCC
9815   builtin and then its argument prototype would still apply.  */
9816#ifdef __cplusplus
9817extern "C"
9818#endif
9819char ldexp ();
9820int
9821main ()
9822{
9823return ldexp ();
9824  ;
9825  return 0;
9826}
9827_ACEOF
9828for ac_lib in '' m; do
9829  if test -z "$ac_lib"; then
9830    ac_res="none required"
9831  else
9832    ac_res=-l$ac_lib
9833    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9834  fi
9835  if ac_fn_cxx_try_link "$LINENO"; then :
9836  ac_cv_search_ldexp=$ac_res
9837fi
9838rm -f core conftest.err conftest.$ac_objext \
9839    conftest$ac_exeext
9840  if ${ac_cv_search_ldexp+:} false; then :
9841  break
9842fi
9843done
9844if ${ac_cv_search_ldexp+:} false; then :
9845
9846else
9847  ac_cv_search_ldexp=no
9848fi
9849rm conftest.$ac_ext
9850LIBS=$ac_func_search_save_LIBS
9851fi
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9853$as_echo "$ac_cv_search_ldexp" >&6; }
9854ac_res=$ac_cv_search_ldexp
9855if test "$ac_res" != no; then :
9856  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9857
9858fi
9859
9860LDEXP_LIB="$LIBS"
9861LIBS="$save_LIBS"
9862
9863
9864# Some systems need dlopen
9865save_LIBS="$LIBS"
9866LIBS=
9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9868$as_echo_n "checking for library containing dlopen... " >&6; }
9869if ${ac_cv_search_dlopen+:} false; then :
9870  $as_echo_n "(cached) " >&6
9871else
9872  ac_func_search_save_LIBS=$LIBS
9873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h.  */
9875
9876/* Override any GCC internal prototype to avoid an error.
9877   Use char because int might match the return type of a GCC
9878   builtin and then its argument prototype would still apply.  */
9879#ifdef __cplusplus
9880extern "C"
9881#endif
9882char dlopen ();
9883int
9884main ()
9885{
9886return dlopen ();
9887  ;
9888  return 0;
9889}
9890_ACEOF
9891for ac_lib in '' dl; do
9892  if test -z "$ac_lib"; then
9893    ac_res="none required"
9894  else
9895    ac_res=-l$ac_lib
9896    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9897  fi
9898  if ac_fn_cxx_try_link "$LINENO"; then :
9899  ac_cv_search_dlopen=$ac_res
9900fi
9901rm -f core conftest.err conftest.$ac_objext \
9902    conftest$ac_exeext
9903  if ${ac_cv_search_dlopen+:} false; then :
9904  break
9905fi
9906done
9907if ${ac_cv_search_dlopen+:} false; then :
9908
9909else
9910  ac_cv_search_dlopen=no
9911fi
9912rm conftest.$ac_ext
9913LIBS=$ac_func_search_save_LIBS
9914fi
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9916$as_echo "$ac_cv_search_dlopen" >&6; }
9917ac_res=$ac_cv_search_dlopen
9918if test "$ac_res" != no; then :
9919  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9920
9921fi
9922
9923DL_LIB="$LIBS"
9924LIBS="$save_LIBS"
9925
9926
9927# Use <inttypes.h> only if it exists,
9928# doesn't clash with <sys/types.h>, declares intmax_t and defines
9929# PRId64
9930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9931$as_echo_n "checking for inttypes.h... " >&6; }
9932if ${gcc_cv_header_inttypes_h+:} false; then :
9933  $as_echo_n "(cached) " >&6
9934else
9935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h.  */
9937#define __STDC_FORMAT_MACROS
9938#include <sys/types.h>
9939#include <inttypes.h>
9940int
9941main ()
9942{
9943intmax_t i = -1;
9944#ifndef PRId64
9945choke me
9946#endif
9947  ;
9948  return 0;
9949}
9950_ACEOF
9951if ac_fn_cxx_try_compile "$LINENO"; then :
9952  gcc_cv_header_inttypes_h=yes
9953else
9954  gcc_cv_header_inttypes_h=no
9955fi
9956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957fi
9958
9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9960$as_echo "$gcc_cv_header_inttypes_h" >&6; }
9961if test $gcc_cv_header_inttypes_h = yes; then
9962
9963$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9964
9965fi
9966
9967# Look for the ZSTD package.
9968ZSTD_INCLUDE=
9969ZSTD_LIB=
9970
9971
9972ZSTD_CPPFLAGS=
9973ZSTD_LDFLAGS=
9974
9975# Check whether --with-zstd was given.
9976if test "${with_zstd+set}" = set; then :
9977  withval=$with_zstd;
9978fi
9979
9980
9981# Check whether --with-zstd-include was given.
9982if test "${with_zstd_include+set}" = set; then :
9983  withval=$with_zstd_include;
9984fi
9985
9986
9987# Check whether --with-zstd-lib was given.
9988if test "${with_zstd_lib+set}" = set; then :
9989  withval=$with_zstd_lib;
9990fi
9991
9992case "x$with_zstd" in
9993  x) ;;
9994  xno)
9995    ZSTD_INCLUDE=
9996    ZSTD_LIB=
9997    ;;
9998  *) ZSTD_INCLUDE=$with_zstd/include
9999     ZSTD_LIB=$with_zstd/lib
10000     ;;
10001esac
10002
10003if test "x$with_zstd" != xno; then
10004if test "x$with_zstd_include" != x; then
10005  ZSTD_INCLUDE=$with_zstd_include
10006fi
10007if test "x$with_zstd_lib" != x; then
10008  ZSTD_LIB=$with_zstd_lib
10009fi
10010if test "x$ZSTD_INCLUDE" != x \
10011   && test "x$ZSTD_INCLUDE" != xno; then
10012  ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10013fi
10014if test "x$ZSTD_LIB" != x \
10015   && test "x$ZSTD_LIB" != xno; then
10016  ZSTD_LDFLAGS=-L$ZSTD_LIB
10017fi
10018
10019CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10020LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10021
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10023$as_echo_n "checking for zstd.h... " >&6; }
10024if ${gcc_cv_header_zstd_h+:} false; then :
10025  $as_echo_n "(cached) " >&6
10026else
10027  # We require version 1.3.0 or later.  This is the first version that has
10028# ZSTD_getFrameContentSize.
10029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030/* end confdefs.h.  */
10031#include <zstd.h>
10032#if ZSTD_VERSION_NUMBER < 10300
10033#error "need zstd 1.3.0 or better"
10034#endif
10035int
10036main ()
10037{
10038
10039  ;
10040  return 0;
10041}
10042_ACEOF
10043if ac_fn_cxx_try_compile "$LINENO"; then :
10044  gcc_cv_header_zstd_h=yes
10045else
10046  gcc_cv_header_zstd_h=no
10047fi
10048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10049fi
10050
10051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10052$as_echo "$gcc_cv_header_zstd_h" >&6; }
10053if test $gcc_cv_header_zstd_h = yes; then
10054
10055$as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10056
10057elif test "x$with_zstd" != x; then
10058    as_fn_error $? "Unable to find zstd.h.  See config.log for details." "$LINENO" 5
10059fi
10060
10061# LTO can use zstd compression algorithm
10062save_LIBS="$LIBS"
10063LIBS=
10064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10065$as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10066if ${ac_cv_search_ZSTD_compress+:} false; then :
10067  $as_echo_n "(cached) " >&6
10068else
10069  ac_func_search_save_LIBS=$LIBS
10070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071/* end confdefs.h.  */
10072
10073/* Override any GCC internal prototype to avoid an error.
10074   Use char because int might match the return type of a GCC
10075   builtin and then its argument prototype would still apply.  */
10076#ifdef __cplusplus
10077extern "C"
10078#endif
10079char ZSTD_compress ();
10080int
10081main ()
10082{
10083return ZSTD_compress ();
10084  ;
10085  return 0;
10086}
10087_ACEOF
10088for ac_lib in '' zstd; do
10089  if test -z "$ac_lib"; then
10090    ac_res="none required"
10091  else
10092    ac_res=-l$ac_lib
10093    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10094  fi
10095  if ac_fn_cxx_try_link "$LINENO"; then :
10096  ac_cv_search_ZSTD_compress=$ac_res
10097fi
10098rm -f core conftest.err conftest.$ac_objext \
10099    conftest$ac_exeext
10100  if ${ac_cv_search_ZSTD_compress+:} false; then :
10101  break
10102fi
10103done
10104if ${ac_cv_search_ZSTD_compress+:} false; then :
10105
10106else
10107  ac_cv_search_ZSTD_compress=no
10108fi
10109rm conftest.$ac_ext
10110LIBS=$ac_func_search_save_LIBS
10111fi
10112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10113$as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10114ac_res=$ac_cv_search_ZSTD_compress
10115if test "$ac_res" != no; then :
10116  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10117
10118fi
10119
10120ZSTD_LIB="$LIBS"
10121LIBS="$save_LIBS"
10122
10123fi
10124
10125
10126
10127for ac_func in times clock kill getrlimit setrlimit atoq \
10128	popen sysconf strsignal getrusage nl_langinfo \
10129	gettimeofday mbstowcs wcswidth mmap setlocale \
10130	clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked madvise mallinfo
10131do :
10132  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10133ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10134if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10135  cat >>confdefs.h <<_ACEOF
10136#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10137_ACEOF
10138
10139fi
10140done
10141
10142
10143if test x$ac_cv_func_mbstowcs = xyes; then
10144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10145$as_echo_n "checking whether mbstowcs works... " >&6; }
10146if ${gcc_cv_func_mbstowcs_works+:} false; then :
10147  $as_echo_n "(cached) " >&6
10148else
10149      if test "$cross_compiling" = yes; then :
10150  gcc_cv_func_mbstowcs_works=yes
10151else
10152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153/* end confdefs.h.  */
10154#include <stdlib.h>
10155int main()
10156{
10157  mbstowcs(0, "", 0);
10158  return 0;
10159}
10160_ACEOF
10161if ac_fn_cxx_try_run "$LINENO"; then :
10162  gcc_cv_func_mbstowcs_works=yes
10163else
10164  gcc_cv_func_mbstowcs_works=no
10165fi
10166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10167  conftest.$ac_objext conftest.beam conftest.$ac_ext
10168fi
10169
10170fi
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10172$as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10173  if test x$gcc_cv_func_mbstowcs_works = xyes; then
10174
10175$as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10176
10177  fi
10178fi
10179
10180ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10181if test "x$ac_cv_type_ssize_t" = xyes; then :
10182
10183else
10184
10185cat >>confdefs.h <<_ACEOF
10186#define ssize_t int
10187_ACEOF
10188
10189fi
10190
10191ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10192if test "x$ac_cv_type_caddr_t" = xyes; then :
10193
10194else
10195
10196cat >>confdefs.h <<_ACEOF
10197#define caddr_t char *
10198_ACEOF
10199
10200fi
10201
10202
10203
10204ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10205if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10206  gcc_header_sys_mman_h=yes
10207else
10208  gcc_header_sys_mman_h=no
10209fi
10210
10211ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10212if test "x$ac_cv_func_mmap" = xyes; then :
10213  gcc_func_mmap=yes
10214else
10215  gcc_func_mmap=no
10216fi
10217
10218if test "$gcc_header_sys_mman_h" != yes \
10219 || test "$gcc_func_mmap" != yes; then
10220   gcc_cv_func_mmap_file=no
10221   gcc_cv_func_mmap_dev_zero=no
10222   gcc_cv_func_mmap_anon=no
10223else
10224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10225$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10226if ${gcc_cv_func_mmap_file+:} false; then :
10227  $as_echo_n "(cached) " >&6
10228else
10229  # Add a system to this blacklist if
10230   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10231   # memory area containing the same data that you'd get if you applied
10232   # read() to the same fd.  The only system known to have a problem here
10233   # is VMS, where text files have record structure.
10234   case "$host_os" in
10235     *vms* | ultrix*)
10236        gcc_cv_func_mmap_file=no ;;
10237     *)
10238        gcc_cv_func_mmap_file=yes;;
10239   esac
10240fi
10241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10242$as_echo "$gcc_cv_func_mmap_file" >&6; }
10243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10244$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10245if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10246  $as_echo_n "(cached) " >&6
10247else
10248  # Add a system to this blacklist if it has mmap() but /dev/zero
10249   # does not exist, or if mmapping /dev/zero does not give anonymous
10250   # zeroed pages with both the following properties:
10251   # 1. If you map N consecutive pages in with one call, and then
10252   #    unmap any subset of those pages, the pages that were not
10253   #    explicitly unmapped remain accessible.
10254   # 2. If you map two adjacent blocks of memory and then unmap them
10255   #    both at once, they must both go away.
10256   # Systems known to be in this category are Windows (all variants),
10257   # VMS, and Darwin.
10258   case "$host_os" in
10259     *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10260        gcc_cv_func_mmap_dev_zero=no ;;
10261     *)
10262        gcc_cv_func_mmap_dev_zero=yes;;
10263   esac
10264fi
10265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10266$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10267
10268   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10270$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10271if ${gcc_cv_decl_map_anon+:} false; then :
10272  $as_echo_n "(cached) " >&6
10273else
10274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275/* end confdefs.h.  */
10276#include <sys/types.h>
10277#include <sys/mman.h>
10278#include <unistd.h>
10279
10280#ifndef MAP_ANONYMOUS
10281#define MAP_ANONYMOUS MAP_ANON
10282#endif
10283
10284int
10285main ()
10286{
10287int n = MAP_ANONYMOUS;
10288  ;
10289  return 0;
10290}
10291_ACEOF
10292if ac_fn_cxx_try_compile "$LINENO"; then :
10293  gcc_cv_decl_map_anon=yes
10294else
10295  gcc_cv_decl_map_anon=no
10296fi
10297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298fi
10299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10300$as_echo "$gcc_cv_decl_map_anon" >&6; }
10301
10302   if test $gcc_cv_decl_map_anon = no; then
10303     gcc_cv_func_mmap_anon=no
10304   else
10305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10306$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10307if ${gcc_cv_func_mmap_anon+:} false; then :
10308  $as_echo_n "(cached) " >&6
10309else
10310  # Add a system to this blacklist if it has mmap() and MAP_ANON or
10311   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10312   # doesn't give anonymous zeroed pages with the same properties listed
10313   # above for use of /dev/zero.
10314   # Systems known to be in this category are Windows, VMS, and SCO Unix.
10315   case "$host_os" in
10316     *vms* | cygwin* | pe | mingw* | sco* | udk* )
10317        gcc_cv_func_mmap_anon=no ;;
10318     *)
10319        gcc_cv_func_mmap_anon=yes;;
10320   esac
10321fi
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10323$as_echo "$gcc_cv_func_mmap_anon" >&6; }
10324   fi
10325fi
10326
10327if test $gcc_cv_func_mmap_file = yes; then
10328
10329$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10330
10331fi
10332if test $gcc_cv_func_mmap_dev_zero = yes; then
10333
10334$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10335
10336fi
10337if test $gcc_cv_func_mmap_anon = yes; then
10338
10339$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10340
10341fi
10342
10343
10344case "${host}" in
10345*-*-*vms*)
10346  # Under VMS, vfork works very differently than on Unix. The standard test
10347  # won't work, and it isn't easily adaptable. It makes more sense to
10348  # just force it.
10349  ac_cv_func_vfork_works=yes
10350  ;;
10351esac
10352ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10353if test "x$ac_cv_type_pid_t" = xyes; then :
10354
10355else
10356
10357cat >>confdefs.h <<_ACEOF
10358#define pid_t int
10359_ACEOF
10360
10361fi
10362
10363for ac_header in vfork.h
10364do :
10365  ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10366if test "x$ac_cv_header_vfork_h" = xyes; then :
10367  cat >>confdefs.h <<_ACEOF
10368#define HAVE_VFORK_H 1
10369_ACEOF
10370
10371fi
10372done
10373
10374for ac_func in fork vfork
10375do :
10376  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10377ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10378if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10379  cat >>confdefs.h <<_ACEOF
10380#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10381_ACEOF
10382
10383fi
10384done
10385
10386if test "x$ac_cv_func_fork" = xyes; then
10387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10388$as_echo_n "checking for working fork... " >&6; }
10389if ${ac_cv_func_fork_works+:} false; then :
10390  $as_echo_n "(cached) " >&6
10391else
10392  if test "$cross_compiling" = yes; then :
10393  ac_cv_func_fork_works=cross
10394else
10395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396/* end confdefs.h.  */
10397$ac_includes_default
10398int
10399main ()
10400{
10401
10402	  /* By Ruediger Kuhlmann. */
10403	  return fork () < 0;
10404
10405  ;
10406  return 0;
10407}
10408_ACEOF
10409if ac_fn_cxx_try_run "$LINENO"; then :
10410  ac_cv_func_fork_works=yes
10411else
10412  ac_cv_func_fork_works=no
10413fi
10414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10415  conftest.$ac_objext conftest.beam conftest.$ac_ext
10416fi
10417
10418fi
10419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10420$as_echo "$ac_cv_func_fork_works" >&6; }
10421
10422else
10423  ac_cv_func_fork_works=$ac_cv_func_fork
10424fi
10425if test "x$ac_cv_func_fork_works" = xcross; then
10426  case $host in
10427    *-*-amigaos* | *-*-msdosdjgpp*)
10428      # Override, as these systems have only a dummy fork() stub
10429      ac_cv_func_fork_works=no
10430      ;;
10431    *)
10432      ac_cv_func_fork_works=yes
10433      ;;
10434  esac
10435  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10436$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10437fi
10438ac_cv_func_vfork_works=$ac_cv_func_vfork
10439if test "x$ac_cv_func_vfork" = xyes; then
10440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10441$as_echo_n "checking for working vfork... " >&6; }
10442if ${ac_cv_func_vfork_works+:} false; then :
10443  $as_echo_n "(cached) " >&6
10444else
10445  if test "$cross_compiling" = yes; then :
10446  ac_cv_func_vfork_works=cross
10447else
10448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h.  */
10450/* Thanks to Paul Eggert for this test.  */
10451$ac_includes_default
10452#include <sys/wait.h>
10453#ifdef HAVE_VFORK_H
10454# include <vfork.h>
10455#endif
10456/* On some sparc systems, changes by the child to local and incoming
10457   argument registers are propagated back to the parent.  The compiler
10458   is told about this with #include <vfork.h>, but some compilers
10459   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10460   static variable whose address is put into a register that is
10461   clobbered by the vfork.  */
10462static void
10463#ifdef __cplusplus
10464sparc_address_test (int arg)
10465# else
10466sparc_address_test (arg) int arg;
10467#endif
10468{
10469  static pid_t child;
10470  if (!child) {
10471    child = vfork ();
10472    if (child < 0) {
10473      perror ("vfork");
10474      _exit(2);
10475    }
10476    if (!child) {
10477      arg = getpid();
10478      write(-1, "", 0);
10479      _exit (arg);
10480    }
10481  }
10482}
10483
10484int
10485main ()
10486{
10487  pid_t parent = getpid ();
10488  pid_t child;
10489
10490  sparc_address_test (0);
10491
10492  child = vfork ();
10493
10494  if (child == 0) {
10495    /* Here is another test for sparc vfork register problems.  This
10496       test uses lots of local variables, at least as many local
10497       variables as main has allocated so far including compiler
10498       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10499       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10500       reuse the register of parent for one of the local variables,
10501       since it will think that parent can't possibly be used any more
10502       in this routine.  Assigning to the local variable will thus
10503       munge parent in the parent process.  */
10504    pid_t
10505      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10506      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10507    /* Convince the compiler that p..p7 are live; otherwise, it might
10508       use the same hardware register for all 8 local variables.  */
10509    if (p != p1 || p != p2 || p != p3 || p != p4
10510	|| p != p5 || p != p6 || p != p7)
10511      _exit(1);
10512
10513    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10514       from child file descriptors.  If the child closes a descriptor
10515       before it execs or exits, this munges the parent's descriptor
10516       as well.  Test for this by closing stdout in the child.  */
10517    _exit(close(fileno(stdout)) != 0);
10518  } else {
10519    int status;
10520    struct stat st;
10521
10522    while (wait(&status) != child)
10523      ;
10524    return (
10525	 /* Was there some problem with vforking?  */
10526	 child < 0
10527
10528	 /* Did the child fail?  (This shouldn't happen.)  */
10529	 || status
10530
10531	 /* Did the vfork/compiler bug occur?  */
10532	 || parent != getpid()
10533
10534	 /* Did the file descriptor bug occur?  */
10535	 || fstat(fileno(stdout), &st) != 0
10536	 );
10537  }
10538}
10539_ACEOF
10540if ac_fn_cxx_try_run "$LINENO"; then :
10541  ac_cv_func_vfork_works=yes
10542else
10543  ac_cv_func_vfork_works=no
10544fi
10545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10546  conftest.$ac_objext conftest.beam conftest.$ac_ext
10547fi
10548
10549fi
10550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10551$as_echo "$ac_cv_func_vfork_works" >&6; }
10552
10553fi;
10554if test "x$ac_cv_func_fork_works" = xcross; then
10555  ac_cv_func_vfork_works=$ac_cv_func_vfork
10556  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10557$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10558fi
10559
10560if test "x$ac_cv_func_vfork_works" = xyes; then
10561
10562$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10563
10564else
10565
10566$as_echo "#define vfork fork" >>confdefs.h
10567
10568fi
10569if test "x$ac_cv_func_fork_works" = xyes; then
10570
10571$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10572
10573fi
10574
10575
10576
10577      if test "X$prefix" = "XNONE"; then
10578    acl_final_prefix="$ac_default_prefix"
10579  else
10580    acl_final_prefix="$prefix"
10581  fi
10582  if test "X$exec_prefix" = "XNONE"; then
10583    acl_final_exec_prefix='${prefix}'
10584  else
10585    acl_final_exec_prefix="$exec_prefix"
10586  fi
10587  acl_save_prefix="$prefix"
10588  prefix="$acl_final_prefix"
10589  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10590  prefix="$acl_save_prefix"
10591
10592
10593# Check whether --with-gnu-ld was given.
10594if test "${with_gnu_ld+set}" = set; then :
10595  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10596else
10597  with_gnu_ld=no
10598fi
10599
10600# Prepare PATH_SEPARATOR.
10601# The user is always right.
10602if test "${PATH_SEPARATOR+set}" != set; then
10603  echo "#! /bin/sh" >conf$$.sh
10604  echo  "exit 0"   >>conf$$.sh
10605  chmod +x conf$$.sh
10606  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10607    PATH_SEPARATOR=';'
10608  else
10609    PATH_SEPARATOR=:
10610  fi
10611  rm -f conf$$.sh
10612fi
10613ac_prog=ld
10614if test "$GCC" = yes; then
10615  # Check if gcc -print-prog-name=ld gives a path.
10616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10617$as_echo_n "checking for ld used by GCC... " >&6; }
10618  case $host in
10619  *-*-mingw*)
10620    # gcc leaves a trailing carriage return which upsets mingw
10621    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10622  *)
10623    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10624  esac
10625  case $ac_prog in
10626    # Accept absolute paths.
10627    [\\/]* | [A-Za-z]:[\\/]*)
10628      re_direlt='/[^/][^/]*/\.\./'
10629      # Canonicalize the path of ld
10630      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10631      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10632	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10633      done
10634      test -z "$LD" && LD="$ac_prog"
10635      ;;
10636  "")
10637    # If it fails, then pretend we aren't using GCC.
10638    ac_prog=ld
10639    ;;
10640  *)
10641    # If it is relative, then search for the first ld in PATH.
10642    with_gnu_ld=unknown
10643    ;;
10644  esac
10645elif test "$with_gnu_ld" = yes; then
10646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10647$as_echo_n "checking for GNU ld... " >&6; }
10648else
10649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10650$as_echo_n "checking for non-GNU ld... " >&6; }
10651fi
10652if ${acl_cv_path_LD+:} false; then :
10653  $as_echo_n "(cached) " >&6
10654else
10655  if test -z "$LD"; then
10656  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10657  for ac_dir in $PATH; do
10658    test -z "$ac_dir" && ac_dir=.
10659    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10660      acl_cv_path_LD="$ac_dir/$ac_prog"
10661      # Check to see if the program is GNU ld.  I'd rather use --version,
10662      # but apparently some GNU ld's only accept -v.
10663      # Break only if it was the GNU/non-GNU ld that we prefer.
10664      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10665	test "$with_gnu_ld" != no && break
10666      else
10667	test "$with_gnu_ld" != yes && break
10668      fi
10669    fi
10670  done
10671  IFS="$ac_save_ifs"
10672else
10673  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10674fi
10675fi
10676
10677LD="$acl_cv_path_LD"
10678if test -n "$LD"; then
10679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10680$as_echo "$LD" >&6; }
10681else
10682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683$as_echo "no" >&6; }
10684fi
10685test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10687$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10688if ${acl_cv_prog_gnu_ld+:} false; then :
10689  $as_echo_n "(cached) " >&6
10690else
10691  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10692if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10693  acl_cv_prog_gnu_ld=yes
10694else
10695  acl_cv_prog_gnu_ld=no
10696fi
10697fi
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10699$as_echo "$acl_cv_prog_gnu_ld" >&6; }
10700with_gnu_ld=$acl_cv_prog_gnu_ld
10701
10702
10703
10704                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10705$as_echo_n "checking for shared library run path origin... " >&6; }
10706if ${acl_cv_rpath+:} false; then :
10707  $as_echo_n "(cached) " >&6
10708else
10709
10710    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10711    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10712    . ./conftest.sh
10713    rm -f ./conftest.sh
10714    acl_cv_rpath=done
10715
10716fi
10717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10718$as_echo "$acl_cv_rpath" >&6; }
10719  wl="$acl_cv_wl"
10720  libext="$acl_cv_libext"
10721  shlibext="$acl_cv_shlibext"
10722  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10723  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10724  hardcode_direct="$acl_cv_hardcode_direct"
10725  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10726    # Check whether --enable-rpath was given.
10727if test "${enable_rpath+set}" = set; then :
10728  enableval=$enable_rpath; :
10729else
10730  enable_rpath=yes
10731fi
10732
10733
10734
10735
10736
10737
10738
10739
10740    use_additional=yes
10741
10742  acl_save_prefix="$prefix"
10743  prefix="$acl_final_prefix"
10744  acl_save_exec_prefix="$exec_prefix"
10745  exec_prefix="$acl_final_exec_prefix"
10746
10747    eval additional_includedir=\"$includedir\"
10748    eval additional_libdir=\"$libdir\"
10749
10750  exec_prefix="$acl_save_exec_prefix"
10751  prefix="$acl_save_prefix"
10752
10753
10754# Check whether --with-libiconv-prefix was given.
10755if test "${with_libiconv_prefix+set}" = set; then :
10756  withval=$with_libiconv_prefix;
10757    if test "X$withval" = "Xno"; then
10758      use_additional=no
10759    else
10760      if test "X$withval" = "X"; then
10761
10762  acl_save_prefix="$prefix"
10763  prefix="$acl_final_prefix"
10764  acl_save_exec_prefix="$exec_prefix"
10765  exec_prefix="$acl_final_exec_prefix"
10766
10767          eval additional_includedir=\"$includedir\"
10768          eval additional_libdir=\"$libdir\"
10769
10770  exec_prefix="$acl_save_exec_prefix"
10771  prefix="$acl_save_prefix"
10772
10773      else
10774        additional_includedir="$withval/include"
10775        additional_libdir="$withval/lib"
10776      fi
10777    fi
10778
10779fi
10780
10781
10782# Check whether --with-libiconv-type was given.
10783if test "${with_libiconv_type+set}" = set; then :
10784  withval=$with_libiconv_type;  with_libiconv_type=$withval
10785else
10786   with_libiconv_type=auto
10787fi
10788
10789  lib_type=`eval echo \$with_libiconv_type`
10790
10791      LIBICONV=
10792  LTLIBICONV=
10793  INCICONV=
10794  rpathdirs=
10795  ltrpathdirs=
10796  names_already_handled=
10797  names_next_round='iconv '
10798  while test -n "$names_next_round"; do
10799    names_this_round="$names_next_round"
10800    names_next_round=
10801    for name in $names_this_round; do
10802      already_handled=
10803      for n in $names_already_handled; do
10804        if test "$n" = "$name"; then
10805          already_handled=yes
10806          break
10807        fi
10808      done
10809      if test -z "$already_handled"; then
10810        names_already_handled="$names_already_handled $name"
10811                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10812        eval value=\"\$HAVE_LIB$uppername\"
10813        if test -n "$value"; then
10814          if test "$value" = yes; then
10815            eval value=\"\$LIB$uppername\"
10816            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10817            eval value=\"\$LTLIB$uppername\"
10818            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10819          else
10820                                    :
10821          fi
10822        else
10823                              found_dir=
10824          found_la=
10825          found_so=
10826          found_a=
10827          if test $use_additional = yes; then
10828            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10829              found_dir="$additional_libdir"
10830              found_so="$additional_libdir/lib$name.$shlibext"
10831              if test -f "$additional_libdir/lib$name.la"; then
10832                found_la="$additional_libdir/lib$name.la"
10833              fi
10834            elif test x$lib_type != xshared; then
10835              if test -f "$additional_libdir/lib$name.$libext"; then
10836                found_dir="$additional_libdir"
10837                found_a="$additional_libdir/lib$name.$libext"
10838                if test -f "$additional_libdir/lib$name.la"; then
10839                  found_la="$additional_libdir/lib$name.la"
10840                fi
10841              fi
10842            fi
10843          fi
10844          if test "X$found_dir" = "X"; then
10845            for x in $LDFLAGS $LTLIBICONV; do
10846
10847  acl_save_prefix="$prefix"
10848  prefix="$acl_final_prefix"
10849  acl_save_exec_prefix="$exec_prefix"
10850  exec_prefix="$acl_final_exec_prefix"
10851  eval x=\"$x\"
10852  exec_prefix="$acl_save_exec_prefix"
10853  prefix="$acl_save_prefix"
10854
10855              case "$x" in
10856                -L*)
10857                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10858                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10859                    found_dir="$dir"
10860                    found_so="$dir/lib$name.$shlibext"
10861                    if test -f "$dir/lib$name.la"; then
10862                      found_la="$dir/lib$name.la"
10863                    fi
10864                  elif test x$lib_type != xshared; then
10865                    if test -f "$dir/lib$name.$libext"; then
10866                      found_dir="$dir"
10867                      found_a="$dir/lib$name.$libext"
10868                      if test -f "$dir/lib$name.la"; then
10869                        found_la="$dir/lib$name.la"
10870                      fi
10871                    fi
10872                  fi
10873                  ;;
10874              esac
10875              if test "X$found_dir" != "X"; then
10876                break
10877              fi
10878            done
10879          fi
10880          if test "X$found_dir" != "X"; then
10881                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10882            if test "X$found_so" != "X"; then
10883                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10884                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10885              else
10886                                                                                haveit=
10887                for x in $ltrpathdirs; do
10888                  if test "X$x" = "X$found_dir"; then
10889                    haveit=yes
10890                    break
10891                  fi
10892                done
10893                if test -z "$haveit"; then
10894                  ltrpathdirs="$ltrpathdirs $found_dir"
10895                fi
10896                                if test "$hardcode_direct" = yes; then
10897                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10898                else
10899                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10900                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10901                                                            haveit=
10902                    for x in $rpathdirs; do
10903                      if test "X$x" = "X$found_dir"; then
10904                        haveit=yes
10905                        break
10906                      fi
10907                    done
10908                    if test -z "$haveit"; then
10909                      rpathdirs="$rpathdirs $found_dir"
10910                    fi
10911                  else
10912                                                                                haveit=
10913                    for x in $LDFLAGS $LIBICONV; do
10914
10915  acl_save_prefix="$prefix"
10916  prefix="$acl_final_prefix"
10917  acl_save_exec_prefix="$exec_prefix"
10918  exec_prefix="$acl_final_exec_prefix"
10919  eval x=\"$x\"
10920  exec_prefix="$acl_save_exec_prefix"
10921  prefix="$acl_save_prefix"
10922
10923                      if test "X$x" = "X-L$found_dir"; then
10924                        haveit=yes
10925                        break
10926                      fi
10927                    done
10928                    if test -z "$haveit"; then
10929                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10930                    fi
10931                    if test "$hardcode_minus_L" != no; then
10932                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10933                    else
10934                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10935                    fi
10936                  fi
10937                fi
10938              fi
10939            else
10940              if test "X$found_a" != "X"; then
10941                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10942              else
10943                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10944              fi
10945            fi
10946                        additional_includedir=
10947            case "$found_dir" in
10948              */lib | */lib/)
10949                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10950                additional_includedir="$basedir/include"
10951                ;;
10952            esac
10953            if test "X$additional_includedir" != "X"; then
10954                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10955                haveit=
10956                if test "X$additional_includedir" = "X/usr/local/include"; then
10957                  if test -n "$GCC"; then
10958                    case $host_os in
10959                      linux*) haveit=yes;;
10960                    esac
10961                  fi
10962                fi
10963                if test -z "$haveit"; then
10964                  for x in $CPPFLAGS $INCICONV; do
10965
10966  acl_save_prefix="$prefix"
10967  prefix="$acl_final_prefix"
10968  acl_save_exec_prefix="$exec_prefix"
10969  exec_prefix="$acl_final_exec_prefix"
10970  eval x=\"$x\"
10971  exec_prefix="$acl_save_exec_prefix"
10972  prefix="$acl_save_prefix"
10973
10974                    if test "X$x" = "X-I$additional_includedir"; then
10975                      haveit=yes
10976                      break
10977                    fi
10978                  done
10979                  if test -z "$haveit"; then
10980                    if test -d "$additional_includedir"; then
10981                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10982                    fi
10983                  fi
10984                fi
10985              fi
10986            fi
10987                        if test -n "$found_la"; then
10988                                                        save_libdir="$libdir"
10989              case "$found_la" in
10990                */* | *\\*) . "$found_la" ;;
10991                *) . "./$found_la" ;;
10992              esac
10993              libdir="$save_libdir"
10994                            for dep in $dependency_libs; do
10995                case "$dep" in
10996                  -L*)
10997                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10998                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
10999                      haveit=
11000                      if test "X$additional_libdir" = "X/usr/local/lib"; then
11001                        if test -n "$GCC"; then
11002                          case $host_os in
11003                            linux*) haveit=yes;;
11004                          esac
11005                        fi
11006                      fi
11007                      if test -z "$haveit"; then
11008                        haveit=
11009                        for x in $LDFLAGS $LIBICONV; do
11010
11011  acl_save_prefix="$prefix"
11012  prefix="$acl_final_prefix"
11013  acl_save_exec_prefix="$exec_prefix"
11014  exec_prefix="$acl_final_exec_prefix"
11015  eval x=\"$x\"
11016  exec_prefix="$acl_save_exec_prefix"
11017  prefix="$acl_save_prefix"
11018
11019                          if test "X$x" = "X-L$additional_libdir"; then
11020                            haveit=yes
11021                            break
11022                          fi
11023                        done
11024                        if test -z "$haveit"; then
11025                          if test -d "$additional_libdir"; then
11026                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11027                          fi
11028                        fi
11029                        haveit=
11030                        for x in $LDFLAGS $LTLIBICONV; do
11031
11032  acl_save_prefix="$prefix"
11033  prefix="$acl_final_prefix"
11034  acl_save_exec_prefix="$exec_prefix"
11035  exec_prefix="$acl_final_exec_prefix"
11036  eval x=\"$x\"
11037  exec_prefix="$acl_save_exec_prefix"
11038  prefix="$acl_save_prefix"
11039
11040                          if test "X$x" = "X-L$additional_libdir"; then
11041                            haveit=yes
11042                            break
11043                          fi
11044                        done
11045                        if test -z "$haveit"; then
11046                          if test -d "$additional_libdir"; then
11047                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11048                          fi
11049                        fi
11050                      fi
11051                    fi
11052                    ;;
11053                  -R*)
11054                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11055                    if test "$enable_rpath" != no; then
11056                                                                  haveit=
11057                      for x in $rpathdirs; do
11058                        if test "X$x" = "X$dir"; then
11059                          haveit=yes
11060                          break
11061                        fi
11062                      done
11063                      if test -z "$haveit"; then
11064                        rpathdirs="$rpathdirs $dir"
11065                      fi
11066                                                                  haveit=
11067                      for x in $ltrpathdirs; do
11068                        if test "X$x" = "X$dir"; then
11069                          haveit=yes
11070                          break
11071                        fi
11072                      done
11073                      if test -z "$haveit"; then
11074                        ltrpathdirs="$ltrpathdirs $dir"
11075                      fi
11076                    fi
11077                    ;;
11078                  -l*)
11079                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11080                    ;;
11081                  *.la)
11082                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11083                    ;;
11084                  *)
11085                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11086                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11087                    ;;
11088                esac
11089              done
11090            fi
11091          else
11092                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11093              LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11094              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11095            else
11096              LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11097              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11098            fi
11099          fi
11100        fi
11101      fi
11102    done
11103  done
11104  if test "X$rpathdirs" != "X"; then
11105    if test -n "$hardcode_libdir_separator"; then
11106                        alldirs=
11107      for found_dir in $rpathdirs; do
11108        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11109      done
11110            acl_save_libdir="$libdir"
11111      libdir="$alldirs"
11112      eval flag=\"$hardcode_libdir_flag_spec\"
11113      libdir="$acl_save_libdir"
11114      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11115    else
11116            for found_dir in $rpathdirs; do
11117        acl_save_libdir="$libdir"
11118        libdir="$found_dir"
11119        eval flag=\"$hardcode_libdir_flag_spec\"
11120        libdir="$acl_save_libdir"
11121        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11122      done
11123    fi
11124  fi
11125  if test "X$ltrpathdirs" != "X"; then
11126            for found_dir in $ltrpathdirs; do
11127      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11128    done
11129  fi
11130
11131
11132
11133
11134
11135
11136
11137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11138$as_echo_n "checking for iconv... " >&6; }
11139if ${am_cv_func_iconv+:} false; then :
11140  $as_echo_n "(cached) " >&6
11141else
11142
11143    am_cv_func_iconv="no, consider installing GNU libiconv"
11144    am_cv_lib_iconv=no
11145                    am_save_CPPFLAGS="$CPPFLAGS"
11146    CPPFLAGS="$CPPFLAGS $INCICONV"
11147    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148/* end confdefs.h.  */
11149#include <stdlib.h>
11150#include <iconv.h>
11151int
11152main ()
11153{
11154iconv_t cd = iconv_open("","");
11155       iconv(cd,NULL,NULL,NULL,NULL);
11156       iconv_close(cd);
11157  ;
11158  return 0;
11159}
11160_ACEOF
11161if ac_fn_cxx_try_link "$LINENO"; then :
11162  am_cv_func_iconv=yes
11163fi
11164rm -f core conftest.err conftest.$ac_objext \
11165    conftest$ac_exeext conftest.$ac_ext
11166    CPPFLAGS="$am_save_CPPFLAGS"
11167
11168    if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11169      for _libs in .libs _libs; do
11170        am_save_CPPFLAGS="$CPPFLAGS"
11171        am_save_LIBS="$LIBS"
11172        CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11173        LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11174        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175/* end confdefs.h.  */
11176#include <stdlib.h>
11177#include <iconv.h>
11178int
11179main ()
11180{
11181iconv_t cd = iconv_open("","");
11182           iconv(cd,NULL,NULL,NULL,NULL);
11183           iconv_close(cd);
11184  ;
11185  return 0;
11186}
11187_ACEOF
11188if ac_fn_cxx_try_link "$LINENO"; then :
11189  INCICONV="-I../libiconv/include"
11190          LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11191          LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11192          am_cv_lib_iconv=yes
11193          am_cv_func_iconv=yes
11194fi
11195rm -f core conftest.err conftest.$ac_objext \
11196    conftest$ac_exeext conftest.$ac_ext
11197        CPPFLAGS="$am_save_CPPFLAGS"
11198        LIBS="$am_save_LIBS"
11199        if test "$am_cv_func_iconv" = "yes"; then
11200          break
11201        fi
11202      done
11203    fi
11204
11205    if test "$am_cv_func_iconv" != yes; then
11206      am_save_CPPFLAGS="$CPPFLAGS"
11207      am_save_LIBS="$LIBS"
11208      CPPFLAGS="$CPPFLAGS $INCICONV"
11209      LIBS="$LIBS $LIBICONV"
11210      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211/* end confdefs.h.  */
11212#include <stdlib.h>
11213#include <iconv.h>
11214int
11215main ()
11216{
11217iconv_t cd = iconv_open("","");
11218         iconv(cd,NULL,NULL,NULL,NULL);
11219         iconv_close(cd);
11220  ;
11221  return 0;
11222}
11223_ACEOF
11224if ac_fn_cxx_try_link "$LINENO"; then :
11225  am_cv_lib_iconv=yes
11226        am_cv_func_iconv=yes
11227fi
11228rm -f core conftest.err conftest.$ac_objext \
11229    conftest$ac_exeext conftest.$ac_ext
11230      CPPFLAGS="$am_save_CPPFLAGS"
11231      LIBS="$am_save_LIBS"
11232    fi
11233
11234fi
11235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11236$as_echo "$am_cv_func_iconv" >&6; }
11237  if test "$am_cv_func_iconv" = yes; then
11238
11239$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11240
11241  fi
11242  if test "$am_cv_lib_iconv" = yes; then
11243
11244  for element in $INCICONV; do
11245    haveit=
11246    for x in $CPPFLAGS; do
11247
11248  acl_save_prefix="$prefix"
11249  prefix="$acl_final_prefix"
11250  acl_save_exec_prefix="$exec_prefix"
11251  exec_prefix="$acl_final_exec_prefix"
11252  eval x=\"$x\"
11253  exec_prefix="$acl_save_exec_prefix"
11254  prefix="$acl_save_prefix"
11255
11256      if test "X$x" = "X$element"; then
11257        haveit=yes
11258        break
11259      fi
11260    done
11261    if test -z "$haveit"; then
11262      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11263    fi
11264  done
11265
11266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11267$as_echo_n "checking how to link with libiconv... " >&6; }
11268    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11269$as_echo "$LIBICONV" >&6; }
11270  else
11271    LIBICONV=
11272    LTLIBICONV=
11273  fi
11274
11275
11276
11277  if test "$am_cv_func_iconv" = yes; then
11278    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11279$as_echo_n "checking for iconv declaration... " >&6; }
11280    if ${am_cv_proto_iconv+:} false; then :
11281  $as_echo_n "(cached) " >&6
11282else
11283
11284      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285/* end confdefs.h.  */
11286
11287#include <stdlib.h>
11288#include <iconv.h>
11289extern
11290#ifdef __cplusplus
11291"C"
11292#endif
11293#if defined(__STDC__) || defined(__cplusplus)
11294size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11295#else
11296size_t iconv();
11297#endif
11298
11299int
11300main ()
11301{
11302
11303  ;
11304  return 0;
11305}
11306_ACEOF
11307if ac_fn_cxx_try_compile "$LINENO"; then :
11308  am_cv_proto_iconv_arg1=""
11309else
11310  am_cv_proto_iconv_arg1="const"
11311fi
11312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11313      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);"
11314fi
11315
11316    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11317    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11318         }$am_cv_proto_iconv" >&5
11319$as_echo "${ac_t:-
11320         }$am_cv_proto_iconv" >&6; }
11321
11322cat >>confdefs.h <<_ACEOF
11323#define ICONV_CONST $am_cv_proto_iconv_arg1
11324_ACEOF
11325
11326  fi
11327
11328
11329# Until we have in-tree GNU iconv:
11330LIBICONV_DEP=
11331if test -f "$LTLIBICONV"; then
11332  LIBICONV_DEP=$LTLIBICONV
11333fi
11334
11335
11336
11337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11338$as_echo_n "checking for LC_MESSAGES... " >&6; }
11339if ${am_cv_val_LC_MESSAGES+:} false; then :
11340  $as_echo_n "(cached) " >&6
11341else
11342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343/* end confdefs.h.  */
11344#include <locale.h>
11345int
11346main ()
11347{
11348return LC_MESSAGES
11349  ;
11350  return 0;
11351}
11352_ACEOF
11353if ac_fn_cxx_try_link "$LINENO"; then :
11354  am_cv_val_LC_MESSAGES=yes
11355else
11356  am_cv_val_LC_MESSAGES=no
11357fi
11358rm -f core conftest.err conftest.$ac_objext \
11359    conftest$ac_exeext conftest.$ac_ext
11360fi
11361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11362$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11363  if test $am_cv_val_LC_MESSAGES = yes; then
11364
11365$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11366
11367  fi
11368
11369
11370
11371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11372$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11373if ${am_cv_langinfo_codeset+:} false; then :
11374  $as_echo_n "(cached) " >&6
11375else
11376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377/* end confdefs.h.  */
11378#include <langinfo.h>
11379int
11380main ()
11381{
11382char* cs = nl_langinfo(CODESET);
11383  ;
11384  return 0;
11385}
11386_ACEOF
11387if ac_fn_cxx_try_link "$LINENO"; then :
11388  am_cv_langinfo_codeset=yes
11389else
11390  am_cv_langinfo_codeset=no
11391fi
11392rm -f core conftest.err conftest.$ac_objext \
11393    conftest$ac_exeext conftest.$ac_ext
11394
11395fi
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11397$as_echo "$am_cv_langinfo_codeset" >&6; }
11398  if test $am_cv_langinfo_codeset = yes; then
11399
11400$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11401
11402  fi
11403
11404
11405# We will need to find libiberty.h and ansidecl.h
11406saved_CFLAGS="$CFLAGS"
11407CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11408saved_CXXFLAGS="$CXXFLAGS"
11409CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11410
11411# gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11412# normal autoconf function for these.  But force definition of
11413# HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11414# basename handling in libiberty.h.
11415as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11416ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11417#undef HAVE_DECL_BASENAME
11418#define HAVE_DECL_BASENAME 1
11419#include \"ansidecl.h\"
11420#include \"system.h\"
11421"
11422if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11423  ac_have_decl=1
11424else
11425  ac_have_decl=0
11426fi
11427
11428cat >>confdefs.h <<_ACEOF
11429#define HAVE_DECL_BASENAME $ac_have_decl
11430_ACEOF
11431as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11432ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11433#undef HAVE_DECL_BASENAME
11434#define HAVE_DECL_BASENAME 1
11435#include \"ansidecl.h\"
11436#include \"system.h\"
11437"
11438if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11439  ac_have_decl=1
11440else
11441  ac_have_decl=0
11442fi
11443
11444cat >>confdefs.h <<_ACEOF
11445#define HAVE_DECL_STRSTR $ac_have_decl
11446_ACEOF
11447
11448
11449for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11450	madvise stpcpy strnlen strsignal strverscmp \
11451	strtol strtoul strtoll strtoull setenv unsetenv \
11452	errno snprintf vsnprintf vasprintf malloc realloc calloc \
11453	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
11454do
11455  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11457$as_echo_n "checking whether $ac_func is declared... " >&6; }
11458if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11459  $as_echo_n "(cached) " >&6
11460else
11461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462/* end confdefs.h.  */
11463#undef $ac_tr_decl
11464#define $ac_tr_decl 1
11465
11466#include "ansidecl.h"
11467#include "system.h"
11468
11469int
11470main ()
11471{
11472#ifndef $ac_func
11473char *(*pfn) = (char *(*)) $ac_func ;
11474#endif
11475  ;
11476  return 0;
11477}
11478_ACEOF
11479if ac_fn_cxx_try_compile "$LINENO"; then :
11480  eval "gcc_cv_have_decl_$ac_func=yes"
11481else
11482  eval "gcc_cv_have_decl_$ac_func=no"
11483fi
11484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11485fi
11486
11487if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11489$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11490#define $ac_tr_decl 1
11491_ACEOF
11492
11493else
11494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11496#define $ac_tr_decl 0
11497_ACEOF
11498
11499fi
11500
11501done
11502
11503
11504for ac_func in getrlimit setrlimit getrusage
11505do
11506  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11508$as_echo_n "checking whether $ac_func is declared... " >&6; }
11509if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11510  $as_echo_n "(cached) " >&6
11511else
11512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513/* end confdefs.h.  */
11514#undef $ac_tr_decl
11515#define $ac_tr_decl 1
11516
11517#include "ansidecl.h"
11518#include "system.h"
11519#ifdef HAVE_SYS_RESOURCE_H
11520#include <sys/resource.h>
11521#endif
11522
11523
11524int
11525main ()
11526{
11527#ifndef $ac_func
11528char *(*pfn) = (char *(*)) $ac_func ;
11529#endif
11530  ;
11531  return 0;
11532}
11533_ACEOF
11534if ac_fn_cxx_try_compile "$LINENO"; then :
11535  eval "gcc_cv_have_decl_$ac_func=yes"
11536else
11537  eval "gcc_cv_have_decl_$ac_func=no"
11538fi
11539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540fi
11541
11542if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11544$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11545#define $ac_tr_decl 1
11546_ACEOF
11547
11548else
11549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11551#define $ac_tr_decl 0
11552_ACEOF
11553
11554fi
11555
11556done
11557
11558
11559for ac_func in mallinfo
11560do
11561  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11563$as_echo_n "checking whether $ac_func is declared... " >&6; }
11564if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11565  $as_echo_n "(cached) " >&6
11566else
11567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568/* end confdefs.h.  */
11569#undef $ac_tr_decl
11570#define $ac_tr_decl 1
11571
11572#include "ansidecl.h"
11573#include "system.h"
11574#ifdef HAVE_MALLOC_H
11575#include <malloc.h>
11576#endif
11577
11578
11579int
11580main ()
11581{
11582#ifndef $ac_func
11583char *(*pfn) = (char *(*)) $ac_func ;
11584#endif
11585  ;
11586  return 0;
11587}
11588_ACEOF
11589if ac_fn_cxx_try_compile "$LINENO"; then :
11590  eval "gcc_cv_have_decl_$ac_func=yes"
11591else
11592  eval "gcc_cv_have_decl_$ac_func=no"
11593fi
11594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595fi
11596
11597if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11599$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11600#define $ac_tr_decl 1
11601_ACEOF
11602
11603else
11604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11606#define $ac_tr_decl 0
11607_ACEOF
11608
11609fi
11610
11611done
11612
11613
11614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615/* end confdefs.h.  */
11616
11617#include "ansidecl.h"
11618#include "system.h"
11619#ifdef HAVE_SYS_RESOURCE_H
11620#include <sys/resource.h>
11621#endif
11622
11623int
11624main ()
11625{
11626rlim_t l = 0;
11627  ;
11628  return 0;
11629}
11630_ACEOF
11631if ac_fn_cxx_try_compile "$LINENO"; then :
11632
11633else
11634
11635$as_echo "#define rlim_t long" >>confdefs.h
11636
11637fi
11638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11639
11640# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11641# FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11642# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11643# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11644for ac_func in ldgetname
11645do
11646  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11648$as_echo_n "checking whether $ac_func is declared... " >&6; }
11649if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11650  $as_echo_n "(cached) " >&6
11651else
11652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653/* end confdefs.h.  */
11654#undef $ac_tr_decl
11655#define $ac_tr_decl 1
11656
11657#include "ansidecl.h"
11658#include "system.h"
11659#ifdef HAVE_LDFCN_H
11660#undef FREAD
11661#undef FWRITE
11662#include <ldfcn.h>
11663#endif
11664
11665
11666int
11667main ()
11668{
11669#ifndef $ac_func
11670char *(*pfn) = (char *(*)) $ac_func ;
11671#endif
11672  ;
11673  return 0;
11674}
11675_ACEOF
11676if ac_fn_cxx_try_compile "$LINENO"; then :
11677  eval "gcc_cv_have_decl_$ac_func=yes"
11678else
11679  eval "gcc_cv_have_decl_$ac_func=no"
11680fi
11681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11682fi
11683
11684if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11686$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11687#define $ac_tr_decl 1
11688_ACEOF
11689
11690else
11691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11693#define $ac_tr_decl 0
11694_ACEOF
11695
11696fi
11697
11698done
11699
11700
11701for ac_func in times
11702do
11703  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11705$as_echo_n "checking whether $ac_func is declared... " >&6; }
11706if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11707  $as_echo_n "(cached) " >&6
11708else
11709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710/* end confdefs.h.  */
11711#undef $ac_tr_decl
11712#define $ac_tr_decl 1
11713
11714#include "ansidecl.h"
11715#include "system.h"
11716#ifdef HAVE_SYS_TIMES_H
11717#include <sys/times.h>
11718#endif
11719
11720
11721int
11722main ()
11723{
11724#ifndef $ac_func
11725char *(*pfn) = (char *(*)) $ac_func ;
11726#endif
11727  ;
11728  return 0;
11729}
11730_ACEOF
11731if ac_fn_cxx_try_compile "$LINENO"; then :
11732  eval "gcc_cv_have_decl_$ac_func=yes"
11733else
11734  eval "gcc_cv_have_decl_$ac_func=no"
11735fi
11736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737fi
11738
11739if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11741$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11742#define $ac_tr_decl 1
11743_ACEOF
11744
11745else
11746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11748#define $ac_tr_decl 0
11749_ACEOF
11750
11751fi
11752
11753done
11754
11755
11756for ac_func in sigaltstack
11757do
11758  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11760$as_echo_n "checking whether $ac_func is declared... " >&6; }
11761if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11762  $as_echo_n "(cached) " >&6
11763else
11764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765/* end confdefs.h.  */
11766#undef $ac_tr_decl
11767#define $ac_tr_decl 1
11768
11769#include "ansidecl.h"
11770#include "system.h"
11771#include <signal.h>
11772
11773
11774int
11775main ()
11776{
11777#ifndef $ac_func
11778char *(*pfn) = (char *(*)) $ac_func ;
11779#endif
11780  ;
11781  return 0;
11782}
11783_ACEOF
11784if ac_fn_cxx_try_compile "$LINENO"; then :
11785  eval "gcc_cv_have_decl_$ac_func=yes"
11786else
11787  eval "gcc_cv_have_decl_$ac_func=no"
11788fi
11789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790fi
11791
11792if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11794$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11795#define $ac_tr_decl 1
11796_ACEOF
11797
11798else
11799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11801#define $ac_tr_decl 0
11802_ACEOF
11803
11804fi
11805
11806done
11807
11808
11809# More time-related stuff.
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11811$as_echo_n "checking for struct tms... " >&6; }
11812if ${ac_cv_struct_tms+:} false; then :
11813  $as_echo_n "(cached) " >&6
11814else
11815
11816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817/* end confdefs.h.  */
11818
11819#include "ansidecl.h"
11820#include "system.h"
11821#ifdef HAVE_SYS_TIMES_H
11822#include <sys/times.h>
11823#endif
11824
11825int
11826main ()
11827{
11828struct tms tms;
11829  ;
11830  return 0;
11831}
11832_ACEOF
11833if ac_fn_cxx_try_compile "$LINENO"; then :
11834  ac_cv_struct_tms=yes
11835else
11836  ac_cv_struct_tms=no
11837fi
11838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11839fi
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11841$as_echo "$ac_cv_struct_tms" >&6; }
11842if test $ac_cv_struct_tms = yes; then
11843
11844$as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11845
11846fi
11847
11848# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11849# revisit after autoconf 2.50.
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11851$as_echo_n "checking for clock_t... " >&6; }
11852if ${gcc_cv_type_clock_t+:} false; then :
11853  $as_echo_n "(cached) " >&6
11854else
11855
11856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857/* end confdefs.h.  */
11858
11859#include "ansidecl.h"
11860#include "system.h"
11861
11862int
11863main ()
11864{
11865clock_t x;
11866  ;
11867  return 0;
11868}
11869_ACEOF
11870if ac_fn_cxx_try_compile "$LINENO"; then :
11871  gcc_cv_type_clock_t=yes
11872else
11873  gcc_cv_type_clock_t=no
11874fi
11875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876fi
11877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11878$as_echo "$gcc_cv_type_clock_t" >&6; }
11879if test $gcc_cv_type_clock_t = yes; then
11880
11881$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11882
11883fi
11884
11885# Check if F_SETLKW is supported by fcntl.
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11887$as_echo_n "checking for F_SETLKW... " >&6; }
11888if ${ac_cv_f_setlkw+:} false; then :
11889  $as_echo_n "(cached) " >&6
11890else
11891
11892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893/* end confdefs.h.  */
11894
11895#include <fcntl.h>
11896int
11897main ()
11898{
11899
11900struct flock fl;
11901fl.l_whence = 0;
11902fl.l_start = 0;
11903fl.l_len = 0;
11904fl.l_pid = 0;
11905return fcntl (1, F_SETLKW, &fl);
11906  ;
11907  return 0;
11908}
11909_ACEOF
11910if ac_fn_cxx_try_compile "$LINENO"; then :
11911  ac_cv_f_setlkw=yes
11912else
11913  ac_cv_f_setlkw=no
11914fi
11915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11916fi
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11918$as_echo "$ac_cv_f_setlkw" >&6; }
11919if test $ac_cv_f_setlkw = yes; then
11920
11921$as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11922
11923fi
11924
11925# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11926CFLAGS="$saved_CFLAGS"
11927CXXFLAGS="$saved_CXXFLAGS"
11928
11929# mkdir takes a single argument on some systems.
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11931$as_echo_n "checking if mkdir takes one argument... " >&6; }
11932if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11933  $as_echo_n "(cached) " >&6
11934else
11935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936/* end confdefs.h.  */
11937
11938#include <sys/types.h>
11939#ifdef HAVE_SYS_STAT_H
11940# include <sys/stat.h>
11941#endif
11942#ifdef HAVE_UNISTD_H
11943# include <unistd.h>
11944#endif
11945#ifdef HAVE_DIRECT_H
11946# include <direct.h>
11947#endif
11948int
11949main ()
11950{
11951mkdir ("foo", 0);
11952  ;
11953  return 0;
11954}
11955_ACEOF
11956if ac_fn_cxx_try_compile "$LINENO"; then :
11957  gcc_cv_mkdir_takes_one_arg=no
11958else
11959  gcc_cv_mkdir_takes_one_arg=yes
11960fi
11961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11962fi
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11964$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11965if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11966
11967$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11968
11969fi
11970
11971
11972# File extensions
11973manext='.1'
11974objext='.o'
11975
11976
11977
11978# With Setjmp/Longjmp based exception handling.
11979# Check whether --enable-sjlj-exceptions was given.
11980if test "${enable_sjlj_exceptions+set}" = set; then :
11981  enableval=$enable_sjlj_exceptions; case $target in
11982  *-*-hpux10*)
11983    if test $enableval != yes; then
11984      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11985$as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11986      enableval=yes
11987    fi
11988    ;;
11989esac
11990force_sjlj_exceptions=yes
11991else
11992  case $target in
11993  *-*-hpux10*)
11994    force_sjlj_exceptions=yes
11995    enableval=yes
11996    ;;
11997  lm32*-*-*)
11998     force_sjlj_exceptions=yes
11999     enableval=yes
12000     ;;
12001  *)
12002    force_sjlj_exceptions=no
12003    ;;
12004esac
12005fi
12006
12007if test $force_sjlj_exceptions = yes; then
12008  sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12009
12010cat >>confdefs.h <<_ACEOF
12011#define CONFIG_SJLJ_EXCEPTIONS $sjlj
12012_ACEOF
12013
12014fi
12015
12016# --------------------------------------------------------
12017# Build, host, and target specific configuration fragments
12018# --------------------------------------------------------
12019
12020# Collect build-machine-specific information.
12021. ${srcdir}/config.build || exit 1
12022
12023# Collect host-machine-specific information.
12024. ${srcdir}/config.host || exit 1
12025
12026target_gtfiles=
12027
12028# Collect target-machine-specific information.
12029. ${srcdir}/config.gcc || exit 1
12030
12031extra_objs="${host_extra_objs} ${extra_objs}"
12032extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12033
12034# Default the target-machine variables that were not explicitly set.
12035if test x"$tm_file" = x
12036then tm_file=$cpu_type/$cpu_type.h; fi
12037
12038if test x"$extra_headers" = x
12039then extra_headers=; fi
12040
12041if test x$md_file = x
12042then md_file=$cpu_type/$cpu_type.md; fi
12043
12044if test x$out_file = x
12045then out_file=$cpu_type/$cpu_type.c; fi
12046
12047if test x"$tmake_file" = x
12048then tmake_file=$cpu_type/t-$cpu_type
12049fi
12050
12051# Support --enable-initfini-array.
12052if test x$enable_initfini_array != xno; then
12053  tm_file="${tm_file} initfini-array.h"
12054fi
12055
12056if test x"$dwarf2" = xyes
12057then tm_file="$tm_file tm-dwarf2.h"
12058fi
12059
12060# Say what files are being used for the output code and MD file.
12061echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12062echo "Using \`$srcdir/config/$md_file' as machine description file."
12063
12064# If any of the xm_file variables contain nonexistent files, warn
12065# about them and drop them.
12066
12067bx=
12068for x in $build_xm_file; do
12069  if    test -f $srcdir/config/$x
12070  then      bx="$bx $x"
12071  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12072$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12073  fi
12074done
12075build_xm_file="$bx"
12076
12077hx=
12078for x in $host_xm_file; do
12079  if    test -f $srcdir/config/$x
12080  then      hx="$hx $x"
12081  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12082$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12083  fi
12084done
12085host_xm_file="$hx"
12086
12087tx=
12088for x in $xm_file; do
12089  if    test -f $srcdir/config/$x
12090  then      tx="$tx $x"
12091  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12092$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12093  fi
12094done
12095xm_file="$tx"
12096
12097count=a
12098for f in $tm_file; do
12099	count=${count}x
12100done
12101if test $count = ax; then
12102	echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12103else
12104	echo "Using the following target machine macro files:"
12105	for f in $tm_file; do
12106		echo "	$srcdir/config/$f"
12107	done
12108fi
12109
12110if test x$use_long_long_for_widest_fast_int = xyes; then
12111
12112$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12113
12114fi
12115
12116gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12117
12118cat >>confdefs.h <<_ACEOF
12119#define HAVE_GNU_LD $gnu_ld_bool
12120_ACEOF
12121
12122
12123gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12124
12125cat >>confdefs.h <<_ACEOF
12126#define HAVE_GNU_AS $gnu_as_bool
12127_ACEOF
12128
12129
12130count=a
12131for f in $host_xm_file; do
12132	count=${count}x
12133done
12134if test $count = a; then
12135	:
12136elif test $count = ax; then
12137	echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12138else
12139	echo "Using the following host machine macro files:"
12140	for f in $host_xm_file; do
12141		echo "	$srcdir/config/$f"
12142	done
12143fi
12144echo "Using ${out_host_hook_obj} for host machine hooks."
12145
12146if test "$host_xm_file" != "$build_xm_file"; then
12147	count=a
12148	for f in $build_xm_file; do
12149		count=${count}x
12150	done
12151	if test $count = a; then
12152		:
12153	elif test $count = ax; then
12154		echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12155	else
12156		echo "Using the following build machine macro files:"
12157		for f in $build_xm_file; do
12158			echo "	$srcdir/config/$f"
12159		done
12160	fi
12161fi
12162
12163if test -n "$configured_native_system_header_dir"; then
12164  native_system_header_dir=$configured_native_system_header_dir
12165fi
12166NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12167
12168
12169case ${host} in
12170  powerpc*-*-darwin*)
12171    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12172$as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12173if ${gcc_cv_mcontext_underscores+:} false; then :
12174  $as_echo_n "(cached) " >&6
12175else
12176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177/* end confdefs.h.  */
12178
12179#include <sys/cdefs.h>
12180#include <sys/signal.h>
12181#include <ucontext.h>
12182int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12183
12184_ACEOF
12185if ac_fn_cxx_try_compile "$LINENO"; then :
12186  gcc_cv_mcontext_underscores=no
12187else
12188  gcc_cv_mcontext_underscores=yes
12189fi
12190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191fi
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12193$as_echo "$gcc_cv_mcontext_underscores" >&6; }
12194      if test $gcc_cv_mcontext_underscores = yes; then
12195
12196$as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12197
12198      fi
12199    ;;
12200esac
12201
12202# ---------
12203# Threading
12204# ---------
12205
12206# Check if a valid thread package
12207case ${enable_threads} in
12208  "" | no)
12209    # No threads
12210    target_thread_file='single'
12211    ;;
12212  yes)
12213    # default
12214    target_thread_file='single'
12215    ;;
12216  aix | dce | lynx | mipssde | posix | rtems | \
12217  single | tpf | vxworks | win32)
12218    target_thread_file=${enable_threads}
12219    ;;
12220  *)
12221    echo "${enable_threads} is an unknown thread package" 1>&2
12222    exit 1
12223    ;;
12224esac
12225
12226if test x${thread_file} = x; then
12227  # No thread file set by target-specific clauses in config.gcc,
12228  # so use file chosen by default logic above
12229  thread_file=${target_thread_file}
12230fi
12231
12232# --------
12233# UNSORTED
12234# --------
12235
12236use_cxa_atexit=no
12237if test x$enable___cxa_atexit = xyes || \
12238   test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12239  if test x$host = x$target; then
12240    case $host in
12241      # mingw32 doesn't have __cxa_atexit but uses atexit registration
12242      # keyed to flag_use_cxa_atexit
12243      *-*-mingw32*)
12244	use_cxa_atexit=yes
12245	;;
12246      powerpc-ibm-aix*)
12247	use_cxa_atexit=yes
12248	;;
12249      *)
12250	ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12251if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12252  use_cxa_atexit=yes
12253else
12254  echo "__cxa_atexit can't be enabled on this target"
12255fi
12256
12257	;;
12258    esac
12259  else
12260    # We can't check for __cxa_atexit when building a cross, so assume
12261    # it is available
12262    use_cxa_atexit=yes
12263  fi
12264  if test x$use_cxa_atexit = xyes; then
12265
12266$as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12267
12268  fi
12269fi
12270
12271# Look for a file containing extra machine modes.
12272if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12273  extra_modes_file='$(srcdir)'/config/${extra_modes}
12274
12275
12276cat >>confdefs.h <<_ACEOF
12277#define EXTRA_MODES_FILE "config/$extra_modes"
12278_ACEOF
12279
12280fi
12281
12282# Convert extra_options into a form suitable for Makefile use.
12283extra_opt_files=
12284all_opt_files=
12285for f in $extra_options; do
12286  extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12287  all_opt_files="$all_opt_files $srcdir/config/$f"
12288done
12289
12290
12291# auto-host.h is the file containing items generated by autoconf and is
12292# the first file included by config.h.
12293# If host=build, it is correct to have bconfig include auto-host.h
12294# as well.  If host!=build, we are in error and need to do more
12295# work to find out the build config parameters.
12296if test x$host = x$build
12297then
12298	build_auto=auto-host.h
12299	HAVE_AUTO_BUILD='# '
12300else
12301	# We create a subdir, then run autoconf in the subdir.
12302	# To prevent recursion we set host and build for the new
12303	# invocation of configure to the build for this invocation
12304	# of configure.
12305	tempdir=build.$$
12306	rm -rf $tempdir
12307	mkdir $tempdir
12308	cd $tempdir
12309	case ${srcdir} in
12310	/* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12311	*) realsrcdir=../${srcdir};;
12312	esac
12313	# Clearing GMPINC is necessary to prevent host headers being
12314	# used by the build compiler.  Defining GENERATOR_FILE stops
12315	# system.h from including gmp.h.
12316	CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12317	CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12318	LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12319	GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12320	${realsrcdir}/configure \
12321		--enable-languages=${enable_languages-all} \
12322		${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12323		${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12324		--target=$target_alias --host=$build_alias \
12325		--build=$build_alias || exit # retaining $tempdir
12326
12327	# We just finished tests for the build machine, so rename
12328	# the file auto-build.h in the gcc directory.
12329	mv auto-host.h ../auto-build.h
12330	cd ..
12331	rm -rf $tempdir
12332	build_auto=auto-build.h
12333	HAVE_AUTO_BUILD=
12334fi
12335
12336
12337
12338tm_file="${tm_file} defaults.h"
12339tm_p_file="${tm_p_file} tm-preds.h"
12340tm_d_file="${tm_d_file} defaults.h"
12341host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12342build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12343# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12344# put this back in temporarily.
12345xm_file="auto-host.h ansidecl.h ${xm_file}"
12346
12347# --------
12348# UNSORTED
12349# --------
12350
12351# Compile in configure arguments.
12352if test -f configargs.h ; then
12353	# Being re-configured.
12354	gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12355	gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12356	if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12357		gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12358	fi
12359else
12360	gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12361fi
12362
12363# Double all backslashes and backslash all quotes to turn
12364# gcc_config_arguments into a C string.
12365sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12366$gcc_config_arguments
12367EOF
12368gcc_config_arguments_str=`cat conftest.out`
12369rm -f conftest.out
12370
12371cat > configargs.h <<EOF
12372/* Generated automatically. */
12373static const char configuration_arguments[] = "$gcc_config_arguments_str";
12374static const char thread_model[] = "$thread_file";
12375
12376static const struct {
12377  const char *name, *value;
12378} configure_default_options[] = $configure_default_options;
12379EOF
12380
12381gcc_BASEVER=`cat $srcdir/BASE-VER`
12382gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12383gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12384if test -f $srcdir/REVISION ; then
12385	gcc_REVISION=`cat $srcdir/REVISION`
12386else
12387        gcc_REVISION=""
12388fi
12389cat > plugin-version.h <<EOF
12390#include "configargs.h"
12391
12392#define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12393#define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12394#define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12395#define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12396
12397static char basever[] = "$gcc_BASEVER";
12398static char datestamp[] = "$gcc_DATESTAMP";
12399static char devphase[] = "$gcc_DEVPHASE";
12400static char revision[] = "$gcc_REVISION";
12401
12402/* FIXME plugins: We should make the version information more precise.
12403   One way to do is to add a checksum. */
12404
12405static struct plugin_gcc_version gcc_version = {basever, datestamp,
12406						devphase, revision,
12407						configuration_arguments};
12408EOF
12409
12410# Determine what GCC version number to use in filesystem paths.
12411
12412  get_gcc_base_ver="cat"
12413
12414# Check whether --with-gcc-major-version-only was given.
12415if test "${with_gcc_major_version_only+set}" = set; then :
12416  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12417        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12418      fi
12419
12420fi
12421
12422
12423
12424
12425# Internationalization
12426# If we haven't got the data from the intl directory,
12427# assume NLS is disabled.
12428USE_NLS=no
12429LIBINTL=
12430LIBINTL_DEP=
12431INCINTL=
12432XGETTEXT=
12433GMSGFMT=
12434POSUB=
12435
12436if test -f  ../intl/config.intl; then
12437  .  ../intl/config.intl
12438fi
12439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12440$as_echo_n "checking whether NLS is requested... " >&6; }
12441if test x"$USE_NLS" != xyes; then
12442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443$as_echo "no" >&6; }
12444else
12445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12446$as_echo "yes" >&6; }
12447
12448$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12449
12450
12451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12452$as_echo_n "checking for catalogs to be installed... " >&6; }
12453  # Look for .po and .gmo files in the source directory.
12454  CATALOGS=
12455  XLINGUAS=
12456  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12457    # If there aren't any .gmo files the shell will give us the
12458    # literal string "../path/to/srcdir/po/*.gmo" which has to be
12459    # weeded out.
12460    case "$cat" in *\**)
12461      continue;;
12462    esac
12463    # The quadruple backslash is collapsed to a double backslash
12464    # by the backticks, then collapsed again by the double quotes,
12465    # leaving us with one backslash in the sed expression (right
12466    # before the dot that mustn't act as a wildcard).
12467    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12468    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12469    # The user is allowed to set LINGUAS to a list of languages to
12470    # install catalogs for.  If it's empty that means "all of them."
12471    if test "x$LINGUAS" = x; then
12472      CATALOGS="$CATALOGS $cat"
12473      XLINGUAS="$XLINGUAS $lang"
12474    else
12475      case "$LINGUAS" in *$lang*)
12476        CATALOGS="$CATALOGS $cat"
12477        XLINGUAS="$XLINGUAS $lang"
12478        ;;
12479      esac
12480    fi
12481  done
12482  LINGUAS="$XLINGUAS"
12483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12484$as_echo "$LINGUAS" >&6; }
12485
12486
12487    DATADIRNAME=share
12488
12489  INSTOBJEXT=.mo
12490
12491  GENCAT=gencat
12492
12493  CATOBJEXT=.gmo
12494
12495fi
12496
12497# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12498# -liconv on the link line twice.
12499case "$LIBINTL" in *$LIBICONV*)
12500	LIBICONV= ;;
12501esac
12502
12503# Check whether --enable-secureplt was given.
12504if test "${enable_secureplt+set}" = set; then :
12505  enableval=$enable_secureplt;
12506fi
12507
12508
12509# Check whether --enable-mingw-wildcard was given.
12510if test "${enable_mingw_wildcard+set}" = set; then :
12511  enableval=$enable_mingw_wildcard;
12512else
12513  enable_mingw_wildcard=platform
12514fi
12515
12516if test x"$enable_mingw_wildcard" != xplatform ; then :
12517
12518cat >>confdefs.h <<_ACEOF
12519#define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12520_ACEOF
12521
12522fi
12523
12524# Check whether --enable-large-address-aware was given.
12525if test "${enable_large_address_aware+set}" = set; then :
12526  enableval=$enable_large_address_aware;
12527fi
12528
12529if test x"$enable_large_address_aware" = xyes; then :
12530
12531$as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12532
12533fi
12534
12535# Check whether --enable-leading-mingw64-underscores was given.
12536if test "${enable_leading_mingw64_underscores+set}" = set; then :
12537  enableval=$enable_leading_mingw64_underscores;
12538fi
12539
12540if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
12541
12542$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12543
12544fi
12545
12546# Check whether --enable-cld was given.
12547if test "${enable_cld+set}" = set; then :
12548  enableval=$enable_cld;
12549else
12550  enable_cld=no
12551fi
12552
12553
12554# Check whether --enable-frame-pointer was given.
12555if test "${enable_frame_pointer+set}" = set; then :
12556  enableval=$enable_frame_pointer;
12557else
12558
12559case $target_os in
12560linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12561  # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12562  enable_frame_pointer=no
12563  ;;
12564*)
12565  enable_frame_pointer=yes
12566  ;;
12567esac
12568
12569fi
12570
12571
12572case $target in
12573i[34567]86-*-* | x86_64-*-*)
12574	if test "x$enable_cld" = xyes; then
12575		tm_defines="${tm_defines} USE_IX86_CLD=1"
12576	fi
12577	if test "x$enable_frame_pointer" = xyes; then
12578		tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12579	fi
12580	;;
12581esac
12582
12583# Windows32 Registry support for specifying GCC installation paths.
12584# Check whether --enable-win32-registry was given.
12585if test "${enable_win32_registry+set}" = set; then :
12586  enableval=$enable_win32_registry;
12587fi
12588
12589
12590case $host_os in
12591  win32 | pe | cygwin* | mingw32*)
12592    if test "x$enable_win32_registry" != xno; then
12593      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12594$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12595if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12596  $as_echo_n "(cached) " >&6
12597else
12598  ac_func_search_save_LIBS=$LIBS
12599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600/* end confdefs.h.  */
12601
12602/* Override any GCC internal prototype to avoid an error.
12603   Use char because int might match the return type of a GCC
12604   builtin and then its argument prototype would still apply.  */
12605#ifdef __cplusplus
12606extern "C"
12607#endif
12608char RegOpenKeyExA ();
12609int
12610main ()
12611{
12612return RegOpenKeyExA ();
12613  ;
12614  return 0;
12615}
12616_ACEOF
12617for ac_lib in '' advapi32; do
12618  if test -z "$ac_lib"; then
12619    ac_res="none required"
12620  else
12621    ac_res=-l$ac_lib
12622    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12623  fi
12624  if ac_fn_cxx_try_link "$LINENO"; then :
12625  ac_cv_search_RegOpenKeyExA=$ac_res
12626fi
12627rm -f core conftest.err conftest.$ac_objext \
12628    conftest$ac_exeext
12629  if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12630  break
12631fi
12632done
12633if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12634
12635else
12636  ac_cv_search_RegOpenKeyExA=no
12637fi
12638rm conftest.$ac_ext
12639LIBS=$ac_func_search_save_LIBS
12640fi
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12642$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12643ac_res=$ac_cv_search_RegOpenKeyExA
12644if test "$ac_res" != no; then :
12645  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12646
12647else
12648  enable_win32_registry=no
12649fi
12650
12651    fi
12652
12653    if test "x$enable_win32_registry" != xno; then
12654
12655$as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12656
12657
12658      if test "x$enable_win32_registry" != xyes \
12659         && test "x$enable_win32_registry" != x; then
12660
12661cat >>confdefs.h <<_ACEOF
12662#define WIN32_REGISTRY_KEY "$enable_win32_registry"
12663_ACEOF
12664
12665      fi
12666    fi
12667  ;;
12668esac
12669
12670# Get an absolute path to the GCC top-level source directory
12671holddir=`${PWDCMD-pwd}`
12672cd $srcdir
12673topdir=`${PWDCMD-pwd}`
12674cd $holddir
12675
12676# Conditionalize the makefile for this host machine.
12677xmake_file=
12678for f in ${host_xmake_file}
12679do
12680	if test -f ${srcdir}/config/$f
12681	then
12682		xmake_file="${xmake_file} \$(srcdir)/config/$f"
12683	fi
12684done
12685
12686# Conditionalize the makefile for this target machine.
12687tmake_file_=
12688for f in ${tmake_file}
12689do
12690	if test -f ${srcdir}/config/$f
12691	then
12692		tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12693	fi
12694done
12695tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
12696
12697out_object_file=`basename $out_file .c`.o
12698common_out_object_file=`basename $common_out_file .c`.o
12699
12700tm_file_list="options.h"
12701tm_include_list="options.h insn-constants.h"
12702for f in $tm_file; do
12703  case $f in
12704    ./* )
12705       f=`echo $f | sed 's/^..//'`
12706       tm_file_list="${tm_file_list} $f"
12707       tm_include_list="${tm_include_list} $f"
12708       ;;
12709    defaults.h )
12710       tm_file_list="${tm_file_list} \$(srcdir)/$f"
12711       tm_include_list="${tm_include_list} $f"
12712       ;;
12713    * )
12714       tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12715       tm_include_list="${tm_include_list} config/$f"
12716       ;;
12717  esac
12718done
12719
12720tm_p_file_list=
12721tm_p_include_list=
12722for f in $tm_p_file; do
12723  case $f in
12724    tm-preds.h )
12725       tm_p_file_list="${tm_p_file_list} $f"
12726       tm_p_include_list="${tm_p_include_list} $f"
12727       ;;
12728    * )
12729       tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12730       tm_p_include_list="${tm_p_include_list} config/$f"
12731  esac
12732done
12733
12734tm_d_file_list=
12735tm_d_include_list="options.h insn-constants.h"
12736for f in $tm_d_file; do
12737  case $f in
12738    defaults.h )
12739       tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12740       tm_d_include_list="${tm_d_include_list} $f"
12741       ;;
12742    * )
12743       tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12744       tm_d_include_list="${tm_d_include_list} config/$f"
12745       ;;
12746  esac
12747done
12748
12749xm_file_list=
12750xm_include_list=
12751for f in $xm_file; do
12752  case $f in
12753    ansidecl.h )
12754       xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12755       xm_include_list="${xm_include_list} $f"
12756       ;;
12757    auto-host.h )
12758       xm_file_list="${xm_file_list} $f"
12759       xm_include_list="${xm_include_list} $f"
12760       ;;
12761    * )
12762       xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12763       xm_include_list="${xm_include_list} config/$f"
12764       ;;
12765  esac
12766done
12767
12768host_xm_file_list=
12769host_xm_include_list=
12770for f in $host_xm_file; do
12771  case $f in
12772    ansidecl.h )
12773       host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12774       host_xm_include_list="${host_xm_include_list} $f"
12775       ;;
12776    auto-host.h )
12777       host_xm_file_list="${host_xm_file_list} $f"
12778       host_xm_include_list="${host_xm_include_list} $f"
12779       ;;
12780    * )
12781       host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12782       host_xm_include_list="${host_xm_include_list} config/$f"
12783       ;;
12784  esac
12785done
12786
12787build_xm_file_list=
12788for f in $build_xm_file; do
12789  case $f in
12790    ansidecl.h )
12791       build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12792       build_xm_include_list="${build_xm_include_list} $f"
12793       ;;
12794    auto-build.h | auto-host.h )
12795       build_xm_file_list="${build_xm_file_list} $f"
12796       build_xm_include_list="${build_xm_include_list} $f"
12797       ;;
12798    * )
12799       build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12800       build_xm_include_list="${build_xm_include_list} config/$f"
12801       ;;
12802  esac
12803done
12804
12805# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12806# cross-compiler which does not use the native headers and libraries.
12807# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12808CROSS=
12809ALL=all.internal
12810SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12811BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12812
12813if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12814   test x$build != x$host || test "x$with_build_sysroot" != x; then
12815  if test "x$with_build_sysroot" != x; then
12816    BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12817  else
12818    BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12819  fi
12820
12821  if test x$host != x$target
12822  then
12823    CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12824    ALL=all.cross
12825    SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12826  elif test "x$TARGET_SYSTEM_ROOT" != x; then
12827    SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12828  fi
12829
12830  if test "x$with_build_sysroot" != "x"; then
12831    target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12832  elif test "x$with_sysroot" = x; then
12833    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12834  elif test "x$with_sysroot" = xyes; then
12835    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12836  else
12837    target_header_dir="${with_sysroot}${native_system_header_dir}"
12838  fi
12839else
12840  target_header_dir=${native_system_header_dir}
12841fi
12842
12843# If this is a cross-compiler that does not
12844# have its own set of headers then define
12845# inhibit_libc
12846
12847# If this is using newlib, without having the headers available now,
12848# then define inhibit_libc in LIBGCC2_CFLAGS.
12849# This prevents libgcc2 from containing any code which requires libc
12850# support.
12851: ${inhibit_libc=false}
12852if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12853       test x$with_newlib = xyes ; } &&
12854     { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12855       inhibit_libc=true
12856fi
12857
12858
12859# When building gcc with a cross-compiler, we need to adjust things so
12860# that the generator programs are still built with the native compiler.
12861# Also, we cannot run fixincludes.
12862
12863# These are the normal (build=host) settings:
12864CC_FOR_BUILD='$(CC)'
12865CXX_FOR_BUILD='$(CXX)'
12866BUILD_CFLAGS='$(ALL_CFLAGS)'
12867BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12868BUILD_LDFLAGS='$(LDFLAGS)'
12869STMP_FIXINC=stmp-fixinc
12870
12871BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12872BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12873
12874# And these apply if build != host, or we are generating coverage data
12875if test x$build != x$host || test "x$coverage_flags" != x
12876then
12877    BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12878    BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12879    BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12880
12881    NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12882    NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12883    BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12884    BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12885fi
12886
12887
12888
12889# Expand extra_headers to include complete path.
12890# This substitutes for lots of t-* files.
12891extra_headers_list=
12892# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12893for file in ${extra_headers} ; do
12894  extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12895done
12896
12897# If use_gcc_tgmath is set, append ginclude/tgmath.h.
12898if test x"$use_gcc_tgmath" = xyes
12899then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12900fi
12901
12902# Define collect2 in Makefile.
12903case $host_can_use_collect2 in
12904  no) collect2= ;;
12905  *) collect2='collect2$(exeext)' ;;
12906esac
12907
12908
12909# Add a definition of USE_COLLECT2 if system wants one.
12910case $use_collect2 in
12911  no) use_collect2= ;;
12912  "") ;;
12913  *)
12914    host_xm_defines="${host_xm_defines} USE_COLLECT2"
12915    xm_defines="${xm_defines} USE_COLLECT2"
12916    case $host_can_use_collect2 in
12917      no)
12918        as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12919        ;;
12920    esac
12921    ;;
12922esac
12923
12924
12925cat >>confdefs.h <<_ACEOF
12926#define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12927_ACEOF
12928
12929
12930# ---------------------------
12931# Assembler & linker features
12932# ---------------------------
12933
12934# During stage 2, ld is actually gcc/collect-ld, which is a small script to
12935# discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12936# However when ld-new is first executed from the build tree, libtool will
12937# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12938# to the build tree.  While doing this we need to use the previous-stage
12939# linker, or we have an infinite loop.  The presence of a shell script as
12940# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12941# the gcc/collect-ld script.  So we need to know how libtool works, or
12942# exec-tool will fail.
12943
12944
12945case `pwd` in
12946  *\ * | *\	*)
12947    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12948$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12949esac
12950
12951
12952
12953macro_version='2.2.7a'
12954macro_revision='1.3134'
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968ltmain="$ac_aux_dir/ltmain.sh"
12969
12970# Backslashify metacharacters that are still active within
12971# double-quoted strings.
12972sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12973
12974# Same as above, but do not quote variable references.
12975double_quote_subst='s/\(["`\\]\)/\\\1/g'
12976
12977# Sed substitution to delay expansion of an escaped shell variable in a
12978# double_quote_subst'ed string.
12979delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12980
12981# Sed substitution to delay expansion of an escaped single quote.
12982delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12983
12984# Sed substitution to avoid accidental globbing in evaled expressions
12985no_glob_subst='s/\*/\\\*/g'
12986
12987ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12988ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12989ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12990
12991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12992$as_echo_n "checking how to print strings... " >&6; }
12993# Test print first, because it will be a builtin if present.
12994if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12995   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12996  ECHO='print -r --'
12997elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12998  ECHO='printf %s\n'
12999else
13000  # Use this function as a fallback that always works.
13001  func_fallback_echo ()
13002  {
13003    eval 'cat <<_LTECHO_EOF
13004$1
13005_LTECHO_EOF'
13006  }
13007  ECHO='func_fallback_echo'
13008fi
13009
13010# func_echo_all arg...
13011# Invoke $ECHO with all args, space-separated.
13012func_echo_all ()
13013{
13014    $ECHO ""
13015}
13016
13017case "$ECHO" in
13018  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13019$as_echo "printf" >&6; } ;;
13020  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13021$as_echo "print -r" >&6; } ;;
13022  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13023$as_echo "cat" >&6; } ;;
13024esac
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13040$as_echo_n "checking for a sed that does not truncate output... " >&6; }
13041if ${ac_cv_path_SED+:} false; then :
13042  $as_echo_n "(cached) " >&6
13043else
13044            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13045     for ac_i in 1 2 3 4 5 6 7; do
13046       ac_script="$ac_script$as_nl$ac_script"
13047     done
13048     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13049     { ac_script=; unset ac_script;}
13050     if test -z "$SED"; then
13051  ac_path_SED_found=false
13052  # Loop through the user's path and test for each of PROGNAME-LIST
13053  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054for as_dir in $PATH
13055do
13056  IFS=$as_save_IFS
13057  test -z "$as_dir" && as_dir=.
13058    for ac_prog in sed gsed; do
13059    for ac_exec_ext in '' $ac_executable_extensions; do
13060      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13061      as_fn_executable_p "$ac_path_SED" || continue
13062# Check for GNU ac_path_SED and select it if it is found.
13063  # Check for GNU $ac_path_SED
13064case `"$ac_path_SED" --version 2>&1` in
13065*GNU*)
13066  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13067*)
13068  ac_count=0
13069  $as_echo_n 0123456789 >"conftest.in"
13070  while :
13071  do
13072    cat "conftest.in" "conftest.in" >"conftest.tmp"
13073    mv "conftest.tmp" "conftest.in"
13074    cp "conftest.in" "conftest.nl"
13075    $as_echo '' >> "conftest.nl"
13076    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13077    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13078    as_fn_arith $ac_count + 1 && ac_count=$as_val
13079    if test $ac_count -gt ${ac_path_SED_max-0}; then
13080      # Best one so far, save it but keep looking for a better one
13081      ac_cv_path_SED="$ac_path_SED"
13082      ac_path_SED_max=$ac_count
13083    fi
13084    # 10*(2^10) chars as input seems more than enough
13085    test $ac_count -gt 10 && break
13086  done
13087  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13088esac
13089
13090      $ac_path_SED_found && break 3
13091    done
13092  done
13093  done
13094IFS=$as_save_IFS
13095  if test -z "$ac_cv_path_SED"; then
13096    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13097  fi
13098else
13099  ac_cv_path_SED=$SED
13100fi
13101
13102fi
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13104$as_echo "$ac_cv_path_SED" >&6; }
13105 SED="$ac_cv_path_SED"
13106  rm -f conftest.sed
13107
13108test -z "$SED" && SED=sed
13109Xsed="$SED -e 1s/^X//"
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13122$as_echo_n "checking for fgrep... " >&6; }
13123if ${ac_cv_path_FGREP+:} false; then :
13124  $as_echo_n "(cached) " >&6
13125else
13126  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13127   then ac_cv_path_FGREP="$GREP -F"
13128   else
13129     if test -z "$FGREP"; then
13130  ac_path_FGREP_found=false
13131  # Loop through the user's path and test for each of PROGNAME-LIST
13132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13134do
13135  IFS=$as_save_IFS
13136  test -z "$as_dir" && as_dir=.
13137    for ac_prog in fgrep; do
13138    for ac_exec_ext in '' $ac_executable_extensions; do
13139      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13140      as_fn_executable_p "$ac_path_FGREP" || continue
13141# Check for GNU ac_path_FGREP and select it if it is found.
13142  # Check for GNU $ac_path_FGREP
13143case `"$ac_path_FGREP" --version 2>&1` in
13144*GNU*)
13145  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13146*)
13147  ac_count=0
13148  $as_echo_n 0123456789 >"conftest.in"
13149  while :
13150  do
13151    cat "conftest.in" "conftest.in" >"conftest.tmp"
13152    mv "conftest.tmp" "conftest.in"
13153    cp "conftest.in" "conftest.nl"
13154    $as_echo 'FGREP' >> "conftest.nl"
13155    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13156    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13157    as_fn_arith $ac_count + 1 && ac_count=$as_val
13158    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13159      # Best one so far, save it but keep looking for a better one
13160      ac_cv_path_FGREP="$ac_path_FGREP"
13161      ac_path_FGREP_max=$ac_count
13162    fi
13163    # 10*(2^10) chars as input seems more than enough
13164    test $ac_count -gt 10 && break
13165  done
13166  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13167esac
13168
13169      $ac_path_FGREP_found && break 3
13170    done
13171  done
13172  done
13173IFS=$as_save_IFS
13174  if test -z "$ac_cv_path_FGREP"; then
13175    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13176  fi
13177else
13178  ac_cv_path_FGREP=$FGREP
13179fi
13180
13181   fi
13182fi
13183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13184$as_echo "$ac_cv_path_FGREP" >&6; }
13185 FGREP="$ac_cv_path_FGREP"
13186
13187
13188test -z "$GREP" && GREP=grep
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208# Check whether --with-gnu-ld was given.
13209if test "${with_gnu_ld+set}" = set; then :
13210  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13211else
13212  with_gnu_ld=no
13213fi
13214
13215ac_prog=ld
13216if test "$GCC" = yes; then
13217  # Check if gcc -print-prog-name=ld gives a path.
13218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13219$as_echo_n "checking for ld used by $CC... " >&6; }
13220  case $host in
13221  *-*-mingw*)
13222    # gcc leaves a trailing carriage return which upsets mingw
13223    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13224  *)
13225    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13226  esac
13227  case $ac_prog in
13228    # Accept absolute paths.
13229    [\\/]* | ?:[\\/]*)
13230      re_direlt='/[^/][^/]*/\.\./'
13231      # Canonicalize the pathname of ld
13232      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13233      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13234	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13235      done
13236      test -z "$LD" && LD="$ac_prog"
13237      ;;
13238  "")
13239    # If it fails, then pretend we aren't using GCC.
13240    ac_prog=ld
13241    ;;
13242  *)
13243    # If it is relative, then search for the first ld in PATH.
13244    with_gnu_ld=unknown
13245    ;;
13246  esac
13247elif test "$with_gnu_ld" = yes; then
13248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13249$as_echo_n "checking for GNU ld... " >&6; }
13250else
13251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13252$as_echo_n "checking for non-GNU ld... " >&6; }
13253fi
13254if ${lt_cv_path_LD+:} false; then :
13255  $as_echo_n "(cached) " >&6
13256else
13257  if test -z "$LD"; then
13258  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13259  for ac_dir in $PATH; do
13260    IFS="$lt_save_ifs"
13261    test -z "$ac_dir" && ac_dir=.
13262    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13263      lt_cv_path_LD="$ac_dir/$ac_prog"
13264      # Check to see if the program is GNU ld.  I'd rather use --version,
13265      # but apparently some variants of GNU ld only accept -v.
13266      # Break only if it was the GNU/non-GNU ld that we prefer.
13267      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13268      *GNU* | *'with BFD'*)
13269	test "$with_gnu_ld" != no && break
13270	;;
13271      *)
13272	test "$with_gnu_ld" != yes && break
13273	;;
13274      esac
13275    fi
13276  done
13277  IFS="$lt_save_ifs"
13278else
13279  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13280fi
13281fi
13282
13283LD="$lt_cv_path_LD"
13284if test -n "$LD"; then
13285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13286$as_echo "$LD" >&6; }
13287else
13288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289$as_echo "no" >&6; }
13290fi
13291test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13293$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13294if ${lt_cv_prog_gnu_ld+:} false; then :
13295  $as_echo_n "(cached) " >&6
13296else
13297  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13298case `$LD -v 2>&1 </dev/null` in
13299*GNU* | *'with BFD'*)
13300  lt_cv_prog_gnu_ld=yes
13301  ;;
13302*)
13303  lt_cv_prog_gnu_ld=no
13304  ;;
13305esac
13306fi
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13308$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13309with_gnu_ld=$lt_cv_prog_gnu_ld
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13320$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13321if ${lt_cv_path_NM+:} false; then :
13322  $as_echo_n "(cached) " >&6
13323else
13324  if test -n "$NM"; then
13325  # Let the user override the test.
13326  lt_cv_path_NM="$NM"
13327else
13328  lt_nm_to_check="${ac_tool_prefix}nm"
13329  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13330    lt_nm_to_check="$lt_nm_to_check nm"
13331  fi
13332  for lt_tmp_nm in $lt_nm_to_check; do
13333    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13334    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13335      IFS="$lt_save_ifs"
13336      test -z "$ac_dir" && ac_dir=.
13337      tmp_nm="$ac_dir/$lt_tmp_nm"
13338      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13339	# Check to see if the nm accepts a BSD-compat flag.
13340	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
13341	#   nm: unknown option "B" ignored
13342	# Tru64's nm complains that /dev/null is an invalid object file
13343	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13344	*/dev/null* | *'Invalid file or object type'*)
13345	  lt_cv_path_NM="$tmp_nm -B"
13346	  break
13347	  ;;
13348	*)
13349	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13350	  */dev/null*)
13351	    lt_cv_path_NM="$tmp_nm -p"
13352	    break
13353	    ;;
13354	  *)
13355	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13356	    continue # so that we can try to find one that supports BSD flags
13357	    ;;
13358	  esac
13359	  ;;
13360	esac
13361      fi
13362    done
13363    IFS="$lt_save_ifs"
13364  done
13365  : ${lt_cv_path_NM=no}
13366fi
13367fi
13368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13369$as_echo "$lt_cv_path_NM" >&6; }
13370if test "$lt_cv_path_NM" != "no"; then
13371  NM="$lt_cv_path_NM"
13372else
13373  # Didn't find any BSD compatible name lister, look for dumpbin.
13374  if test -n "$DUMPBIN"; then :
13375    # Let the user override the test.
13376  else
13377    if test -n "$ac_tool_prefix"; then
13378  for ac_prog in dumpbin "link -dump"
13379  do
13380    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13381set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383$as_echo_n "checking for $ac_word... " >&6; }
13384if ${ac_cv_prog_DUMPBIN+:} false; then :
13385  $as_echo_n "(cached) " >&6
13386else
13387  if test -n "$DUMPBIN"; then
13388  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13389else
13390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391for as_dir in $PATH
13392do
13393  IFS=$as_save_IFS
13394  test -z "$as_dir" && as_dir=.
13395    for ac_exec_ext in '' $ac_executable_extensions; do
13396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13397    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13399    break 2
13400  fi
13401done
13402  done
13403IFS=$as_save_IFS
13404
13405fi
13406fi
13407DUMPBIN=$ac_cv_prog_DUMPBIN
13408if test -n "$DUMPBIN"; then
13409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13410$as_echo "$DUMPBIN" >&6; }
13411else
13412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13413$as_echo "no" >&6; }
13414fi
13415
13416
13417    test -n "$DUMPBIN" && break
13418  done
13419fi
13420if test -z "$DUMPBIN"; then
13421  ac_ct_DUMPBIN=$DUMPBIN
13422  for ac_prog in dumpbin "link -dump"
13423do
13424  # Extract the first word of "$ac_prog", so it can be a program name with args.
13425set dummy $ac_prog; ac_word=$2
13426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427$as_echo_n "checking for $ac_word... " >&6; }
13428if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13429  $as_echo_n "(cached) " >&6
13430else
13431  if test -n "$ac_ct_DUMPBIN"; then
13432  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13433else
13434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435for as_dir in $PATH
13436do
13437  IFS=$as_save_IFS
13438  test -z "$as_dir" && as_dir=.
13439    for ac_exec_ext in '' $ac_executable_extensions; do
13440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13441    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13443    break 2
13444  fi
13445done
13446  done
13447IFS=$as_save_IFS
13448
13449fi
13450fi
13451ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13452if test -n "$ac_ct_DUMPBIN"; then
13453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13454$as_echo "$ac_ct_DUMPBIN" >&6; }
13455else
13456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457$as_echo "no" >&6; }
13458fi
13459
13460
13461  test -n "$ac_ct_DUMPBIN" && break
13462done
13463
13464  if test "x$ac_ct_DUMPBIN" = x; then
13465    DUMPBIN=":"
13466  else
13467    case $cross_compiling:$ac_tool_warned in
13468yes:)
13469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13471ac_tool_warned=yes ;;
13472esac
13473    DUMPBIN=$ac_ct_DUMPBIN
13474  fi
13475fi
13476
13477    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13478    *COFF*)
13479      DUMPBIN="$DUMPBIN -symbols"
13480      ;;
13481    *)
13482      DUMPBIN=:
13483      ;;
13484    esac
13485  fi
13486
13487  if test "$DUMPBIN" != ":"; then
13488    NM="$DUMPBIN"
13489  fi
13490fi
13491test -z "$NM" && NM=nm
13492
13493
13494
13495
13496
13497
13498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13499$as_echo_n "checking the name lister ($NM) interface... " >&6; }
13500if ${lt_cv_nm_interface+:} false; then :
13501  $as_echo_n "(cached) " >&6
13502else
13503  lt_cv_nm_interface="BSD nm"
13504  echo "int some_variable = 0;" > conftest.$ac_ext
13505  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13506  (eval "$ac_compile" 2>conftest.err)
13507  cat conftest.err >&5
13508  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13509  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13510  cat conftest.err >&5
13511  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13512  cat conftest.out >&5
13513  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13514    lt_cv_nm_interface="MS dumpbin"
13515  fi
13516  rm -f conftest*
13517fi
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13519$as_echo "$lt_cv_nm_interface" >&6; }
13520
13521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13522$as_echo_n "checking whether ln -s works... " >&6; }
13523LN_S=$as_ln_s
13524if test "$LN_S" = "ln -s"; then
13525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13526$as_echo "yes" >&6; }
13527else
13528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13529$as_echo "no, using $LN_S" >&6; }
13530fi
13531
13532# find the maximum length of command line arguments
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13534$as_echo_n "checking the maximum length of command line arguments... " >&6; }
13535if ${lt_cv_sys_max_cmd_len+:} false; then :
13536  $as_echo_n "(cached) " >&6
13537else
13538    i=0
13539  teststring="ABCD"
13540
13541  case $build_os in
13542  msdosdjgpp*)
13543    # On DJGPP, this test can blow up pretty badly due to problems in libc
13544    # (any single argument exceeding 2000 bytes causes a buffer overrun
13545    # during glob expansion).  Even if it were fixed, the result of this
13546    # check would be larger than it should be.
13547    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13548    ;;
13549
13550  gnu*)
13551    # Under GNU Hurd, this test is not required because there is
13552    # no limit to the length of command line arguments.
13553    # Libtool will interpret -1 as no limit whatsoever
13554    lt_cv_sys_max_cmd_len=-1;
13555    ;;
13556
13557  cygwin* | mingw* | cegcc*)
13558    # On Win9x/ME, this test blows up -- it succeeds, but takes
13559    # about 5 minutes as the teststring grows exponentially.
13560    # Worse, since 9x/ME are not pre-emptively multitasking,
13561    # you end up with a "frozen" computer, even though with patience
13562    # the test eventually succeeds (with a max line length of 256k).
13563    # Instead, let's just punt: use the minimum linelength reported by
13564    # all of the supported platforms: 8192 (on NT/2K/XP).
13565    lt_cv_sys_max_cmd_len=8192;
13566    ;;
13567
13568  mint*)
13569    # On MiNT this can take a long time and run out of memory.
13570    lt_cv_sys_max_cmd_len=8192;
13571    ;;
13572
13573  amigaos*)
13574    # On AmigaOS with pdksh, this test takes hours, literally.
13575    # So we just punt and use a minimum line length of 8192.
13576    lt_cv_sys_max_cmd_len=8192;
13577    ;;
13578
13579  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13580    # This has been around since 386BSD, at least.  Likely further.
13581    if test -x /sbin/sysctl; then
13582      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13583    elif test -x /usr/sbin/sysctl; then
13584      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13585    else
13586      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13587    fi
13588    # And add a safety zone
13589    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13590    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13591    ;;
13592
13593  interix*)
13594    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13595    lt_cv_sys_max_cmd_len=196608
13596    ;;
13597
13598  osf*)
13599    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13600    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13601    # nice to cause kernel panics so lets avoid the loop below.
13602    # First set a reasonable default.
13603    lt_cv_sys_max_cmd_len=16384
13604    #
13605    if test -x /sbin/sysconfig; then
13606      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13607        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13608      esac
13609    fi
13610    ;;
13611  sco3.2v5*)
13612    lt_cv_sys_max_cmd_len=102400
13613    ;;
13614  sysv5* | sco5v6* | sysv4.2uw2*)
13615    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13616    if test -n "$kargmax"; then
13617      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
13618    else
13619      lt_cv_sys_max_cmd_len=32768
13620    fi
13621    ;;
13622  *)
13623    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13624    if test -n "$lt_cv_sys_max_cmd_len"; then
13625      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13626      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13627    else
13628      # Make teststring a little bigger before we do anything with it.
13629      # a 1K string should be a reasonable start.
13630      for i in 1 2 3 4 5 6 7 8 ; do
13631        teststring=$teststring$teststring
13632      done
13633      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13634      # If test is not a shell built-in, we'll probably end up computing a
13635      # maximum length that is only half of the actual maximum length, but
13636      # we can't tell.
13637      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13638	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13639	      test $i != 17 # 1/2 MB should be enough
13640      do
13641        i=`expr $i + 1`
13642        teststring=$teststring$teststring
13643      done
13644      # Only check the string length outside the loop.
13645      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13646      teststring=
13647      # Add a significant safety factor because C++ compilers can tack on
13648      # massive amounts of additional arguments before passing them to the
13649      # linker.  It appears as though 1/2 is a usable value.
13650      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13651    fi
13652    ;;
13653  esac
13654
13655fi
13656
13657if test -n $lt_cv_sys_max_cmd_len ; then
13658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13659$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13660else
13661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13662$as_echo "none" >&6; }
13663fi
13664max_cmd_len=$lt_cv_sys_max_cmd_len
13665
13666
13667
13668
13669
13670
13671: ${CP="cp -f"}
13672: ${MV="mv -f"}
13673: ${RM="rm -f"}
13674
13675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13676$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13677# Try some XSI features
13678xsi_shell=no
13679( _lt_dummy="a/b/c"
13680  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13681      = c,a/b,, \
13682    && eval 'test $(( 1 + 1 )) -eq 2 \
13683    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13684  && xsi_shell=yes
13685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13686$as_echo "$xsi_shell" >&6; }
13687
13688
13689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13690$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13691lt_shell_append=no
13692( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13693    >/dev/null 2>&1 \
13694  && lt_shell_append=yes
13695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13696$as_echo "$lt_shell_append" >&6; }
13697
13698
13699if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13700  lt_unset=unset
13701else
13702  lt_unset=false
13703fi
13704
13705
13706
13707
13708
13709# test EBCDIC or ASCII
13710case `echo X|tr X '\101'` in
13711 A) # ASCII based system
13712    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13713  lt_SP2NL='tr \040 \012'
13714  lt_NL2SP='tr \015\012 \040\040'
13715  ;;
13716 *) # EBCDIC based system
13717  lt_SP2NL='tr \100 \n'
13718  lt_NL2SP='tr \r\n \100\100'
13719  ;;
13720esac
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13731$as_echo_n "checking for $LD option to reload object files... " >&6; }
13732if ${lt_cv_ld_reload_flag+:} false; then :
13733  $as_echo_n "(cached) " >&6
13734else
13735  lt_cv_ld_reload_flag='-r'
13736fi
13737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13738$as_echo "$lt_cv_ld_reload_flag" >&6; }
13739reload_flag=$lt_cv_ld_reload_flag
13740case $reload_flag in
13741"" | " "*) ;;
13742*) reload_flag=" $reload_flag" ;;
13743esac
13744reload_cmds='$LD$reload_flag -o $output$reload_objs'
13745case $host_os in
13746  darwin*)
13747    if test "$GCC" = yes; then
13748      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13749    else
13750      reload_cmds='$LD$reload_flag -o $output$reload_objs'
13751    fi
13752    ;;
13753esac
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763if test -n "$ac_tool_prefix"; then
13764  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13765set dummy ${ac_tool_prefix}objdump; ac_word=$2
13766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767$as_echo_n "checking for $ac_word... " >&6; }
13768if ${ac_cv_prog_OBJDUMP+:} false; then :
13769  $as_echo_n "(cached) " >&6
13770else
13771  if test -n "$OBJDUMP"; then
13772  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13773else
13774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775for as_dir in $PATH
13776do
13777  IFS=$as_save_IFS
13778  test -z "$as_dir" && as_dir=.
13779    for ac_exec_ext in '' $ac_executable_extensions; do
13780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13783    break 2
13784  fi
13785done
13786  done
13787IFS=$as_save_IFS
13788
13789fi
13790fi
13791OBJDUMP=$ac_cv_prog_OBJDUMP
13792if test -n "$OBJDUMP"; then
13793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13794$as_echo "$OBJDUMP" >&6; }
13795else
13796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797$as_echo "no" >&6; }
13798fi
13799
13800
13801fi
13802if test -z "$ac_cv_prog_OBJDUMP"; then
13803  ac_ct_OBJDUMP=$OBJDUMP
13804  # Extract the first word of "objdump", so it can be a program name with args.
13805set dummy objdump; ac_word=$2
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13807$as_echo_n "checking for $ac_word... " >&6; }
13808if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13809  $as_echo_n "(cached) " >&6
13810else
13811  if test -n "$ac_ct_OBJDUMP"; then
13812  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13813else
13814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13815for as_dir in $PATH
13816do
13817  IFS=$as_save_IFS
13818  test -z "$as_dir" && as_dir=.
13819    for ac_exec_ext in '' $ac_executable_extensions; do
13820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13821    ac_cv_prog_ac_ct_OBJDUMP="objdump"
13822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13823    break 2
13824  fi
13825done
13826  done
13827IFS=$as_save_IFS
13828
13829fi
13830fi
13831ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13832if test -n "$ac_ct_OBJDUMP"; then
13833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13834$as_echo "$ac_ct_OBJDUMP" >&6; }
13835else
13836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837$as_echo "no" >&6; }
13838fi
13839
13840  if test "x$ac_ct_OBJDUMP" = x; then
13841    OBJDUMP="false"
13842  else
13843    case $cross_compiling:$ac_tool_warned in
13844yes:)
13845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13847ac_tool_warned=yes ;;
13848esac
13849    OBJDUMP=$ac_ct_OBJDUMP
13850  fi
13851else
13852  OBJDUMP="$ac_cv_prog_OBJDUMP"
13853fi
13854
13855test -z "$OBJDUMP" && OBJDUMP=objdump
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13866$as_echo_n "checking how to recognize dependent libraries... " >&6; }
13867if ${lt_cv_deplibs_check_method+:} false; then :
13868  $as_echo_n "(cached) " >&6
13869else
13870  lt_cv_file_magic_cmd='$MAGIC_CMD'
13871lt_cv_file_magic_test_file=
13872lt_cv_deplibs_check_method='unknown'
13873# Need to set the preceding variable on all platforms that support
13874# interlibrary dependencies.
13875# 'none' -- dependencies not supported.
13876# `unknown' -- same as none, but documents that we really don't know.
13877# 'pass_all' -- all dependencies passed with no checks.
13878# 'test_compile' -- check by making test program.
13879# 'file_magic [[regex]]' -- check by looking for files in library path
13880# which responds to the $file_magic_cmd with a given extended regex.
13881# If you have `file' or equivalent on your system and you're not sure
13882# whether `pass_all' will *always* work, you probably want this one.
13883
13884case $host_os in
13885aix[4-9]*)
13886  lt_cv_deplibs_check_method=pass_all
13887  ;;
13888
13889beos*)
13890  lt_cv_deplibs_check_method=pass_all
13891  ;;
13892
13893bsdi[45]*)
13894  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13895  lt_cv_file_magic_cmd='/usr/bin/file -L'
13896  lt_cv_file_magic_test_file=/shlib/libc.so
13897  ;;
13898
13899cygwin*)
13900  # func_win32_libid is a shell function defined in ltmain.sh
13901  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13902  lt_cv_file_magic_cmd='func_win32_libid'
13903  ;;
13904
13905mingw* | pw32*)
13906  # Base MSYS/MinGW do not provide the 'file' command needed by
13907  # func_win32_libid shell function, so use a weaker test based on 'objdump',
13908  # unless we find 'file', for example because we are cross-compiling.
13909  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13910  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13911    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13912    lt_cv_file_magic_cmd='func_win32_libid'
13913  else
13914    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13915    lt_cv_file_magic_cmd='$OBJDUMP -f'
13916  fi
13917  ;;
13918
13919cegcc*)
13920  # use the weaker test based on 'objdump'. See mingw*.
13921  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13922  lt_cv_file_magic_cmd='$OBJDUMP -f'
13923  ;;
13924
13925darwin* | rhapsody*)
13926  lt_cv_deplibs_check_method=pass_all
13927  ;;
13928
13929freebsd* | dragonfly*)
13930  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13931    case $host_cpu in
13932    i*86 )
13933      # Not sure whether the presence of OpenBSD here was a mistake.
13934      # Let's accept both of them until this is cleared up.
13935      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13936      lt_cv_file_magic_cmd=/usr/bin/file
13937      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13938      ;;
13939    esac
13940  else
13941    lt_cv_deplibs_check_method=pass_all
13942  fi
13943  ;;
13944
13945gnu*)
13946  lt_cv_deplibs_check_method=pass_all
13947  ;;
13948
13949haiku*)
13950  lt_cv_deplibs_check_method=pass_all
13951  ;;
13952
13953hpux10.20* | hpux11*)
13954  lt_cv_file_magic_cmd=/usr/bin/file
13955  case $host_cpu in
13956  ia64*)
13957    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13958    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13959    ;;
13960  hppa*64*)
13961    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]'
13962    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13963    ;;
13964  *)
13965    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13966    lt_cv_file_magic_test_file=/usr/lib/libc.sl
13967    ;;
13968  esac
13969  ;;
13970
13971interix[3-9]*)
13972  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13973  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13974  ;;
13975
13976irix5* | irix6* | nonstopux*)
13977  case $LD in
13978  *-32|*"-32 ") libmagic=32-bit;;
13979  *-n32|*"-n32 ") libmagic=N32;;
13980  *-64|*"-64 ") libmagic=64-bit;;
13981  *) libmagic=never-match;;
13982  esac
13983  lt_cv_deplibs_check_method=pass_all
13984  ;;
13985
13986# This must be Linux ELF.
13987linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13988  lt_cv_deplibs_check_method=pass_all
13989  ;;
13990
13991netbsd*)
13992  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13993    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13994  else
13995    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13996  fi
13997  ;;
13998
13999newos6*)
14000  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14001  lt_cv_file_magic_cmd=/usr/bin/file
14002  lt_cv_file_magic_test_file=/usr/lib/libnls.so
14003  ;;
14004
14005*nto* | *qnx*)
14006  lt_cv_deplibs_check_method=pass_all
14007  ;;
14008
14009openbsd*)
14010  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14011    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14012  else
14013    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14014  fi
14015  ;;
14016
14017osf3* | osf4* | osf5*)
14018  lt_cv_deplibs_check_method=pass_all
14019  ;;
14020
14021rdos*)
14022  lt_cv_deplibs_check_method=pass_all
14023  ;;
14024
14025solaris*)
14026  lt_cv_deplibs_check_method=pass_all
14027  ;;
14028
14029sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14030  lt_cv_deplibs_check_method=pass_all
14031  ;;
14032
14033sysv4 | sysv4.3*)
14034  case $host_vendor in
14035  motorola)
14036    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]'
14037    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14038    ;;
14039  ncr)
14040    lt_cv_deplibs_check_method=pass_all
14041    ;;
14042  sequent)
14043    lt_cv_file_magic_cmd='/bin/file'
14044    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14045    ;;
14046  sni)
14047    lt_cv_file_magic_cmd='/bin/file'
14048    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14049    lt_cv_file_magic_test_file=/lib/libc.so
14050    ;;
14051  siemens)
14052    lt_cv_deplibs_check_method=pass_all
14053    ;;
14054  pc)
14055    lt_cv_deplibs_check_method=pass_all
14056    ;;
14057  esac
14058  ;;
14059
14060tpf*)
14061  lt_cv_deplibs_check_method=pass_all
14062  ;;
14063esac
14064
14065fi
14066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14067$as_echo "$lt_cv_deplibs_check_method" >&6; }
14068file_magic_cmd=$lt_cv_file_magic_cmd
14069deplibs_check_method=$lt_cv_deplibs_check_method
14070test -z "$deplibs_check_method" && deplibs_check_method=unknown
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083if test -n "$ac_tool_prefix"; then
14084  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14085set dummy ${ac_tool_prefix}ar; ac_word=$2
14086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14087$as_echo_n "checking for $ac_word... " >&6; }
14088if ${ac_cv_prog_AR+:} false; then :
14089  $as_echo_n "(cached) " >&6
14090else
14091  if test -n "$AR"; then
14092  ac_cv_prog_AR="$AR" # Let the user override the test.
14093else
14094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095for as_dir in $PATH
14096do
14097  IFS=$as_save_IFS
14098  test -z "$as_dir" && as_dir=.
14099    for ac_exec_ext in '' $ac_executable_extensions; do
14100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101    ac_cv_prog_AR="${ac_tool_prefix}ar"
14102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14103    break 2
14104  fi
14105done
14106  done
14107IFS=$as_save_IFS
14108
14109fi
14110fi
14111AR=$ac_cv_prog_AR
14112if test -n "$AR"; then
14113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14114$as_echo "$AR" >&6; }
14115else
14116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14117$as_echo "no" >&6; }
14118fi
14119
14120
14121fi
14122if test -z "$ac_cv_prog_AR"; then
14123  ac_ct_AR=$AR
14124  # Extract the first word of "ar", so it can be a program name with args.
14125set dummy ar; ac_word=$2
14126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14127$as_echo_n "checking for $ac_word... " >&6; }
14128if ${ac_cv_prog_ac_ct_AR+:} false; then :
14129  $as_echo_n "(cached) " >&6
14130else
14131  if test -n "$ac_ct_AR"; then
14132  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14133else
14134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14135for as_dir in $PATH
14136do
14137  IFS=$as_save_IFS
14138  test -z "$as_dir" && as_dir=.
14139    for ac_exec_ext in '' $ac_executable_extensions; do
14140  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14141    ac_cv_prog_ac_ct_AR="ar"
14142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14143    break 2
14144  fi
14145done
14146  done
14147IFS=$as_save_IFS
14148
14149fi
14150fi
14151ac_ct_AR=$ac_cv_prog_ac_ct_AR
14152if test -n "$ac_ct_AR"; then
14153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14154$as_echo "$ac_ct_AR" >&6; }
14155else
14156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14157$as_echo "no" >&6; }
14158fi
14159
14160  if test "x$ac_ct_AR" = x; then
14161    AR="false"
14162  else
14163    case $cross_compiling:$ac_tool_warned in
14164yes:)
14165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14167ac_tool_warned=yes ;;
14168esac
14169    AR=$ac_ct_AR
14170  fi
14171else
14172  AR="$ac_cv_prog_AR"
14173fi
14174
14175test -z "$AR" && AR=ar
14176test -z "$AR_FLAGS" && AR_FLAGS=cru
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188if test -n "$ac_tool_prefix"; then
14189  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14190set dummy ${ac_tool_prefix}strip; ac_word=$2
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14192$as_echo_n "checking for $ac_word... " >&6; }
14193if ${ac_cv_prog_STRIP+:} false; then :
14194  $as_echo_n "(cached) " >&6
14195else
14196  if test -n "$STRIP"; then
14197  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14198else
14199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14200for as_dir in $PATH
14201do
14202  IFS=$as_save_IFS
14203  test -z "$as_dir" && as_dir=.
14204    for ac_exec_ext in '' $ac_executable_extensions; do
14205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14206    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14208    break 2
14209  fi
14210done
14211  done
14212IFS=$as_save_IFS
14213
14214fi
14215fi
14216STRIP=$ac_cv_prog_STRIP
14217if test -n "$STRIP"; then
14218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14219$as_echo "$STRIP" >&6; }
14220else
14221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222$as_echo "no" >&6; }
14223fi
14224
14225
14226fi
14227if test -z "$ac_cv_prog_STRIP"; then
14228  ac_ct_STRIP=$STRIP
14229  # Extract the first word of "strip", so it can be a program name with args.
14230set dummy strip; ac_word=$2
14231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14232$as_echo_n "checking for $ac_word... " >&6; }
14233if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14234  $as_echo_n "(cached) " >&6
14235else
14236  if test -n "$ac_ct_STRIP"; then
14237  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14238else
14239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14240for as_dir in $PATH
14241do
14242  IFS=$as_save_IFS
14243  test -z "$as_dir" && as_dir=.
14244    for ac_exec_ext in '' $ac_executable_extensions; do
14245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14246    ac_cv_prog_ac_ct_STRIP="strip"
14247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14248    break 2
14249  fi
14250done
14251  done
14252IFS=$as_save_IFS
14253
14254fi
14255fi
14256ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14257if test -n "$ac_ct_STRIP"; then
14258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14259$as_echo "$ac_ct_STRIP" >&6; }
14260else
14261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14262$as_echo "no" >&6; }
14263fi
14264
14265  if test "x$ac_ct_STRIP" = x; then
14266    STRIP=":"
14267  else
14268    case $cross_compiling:$ac_tool_warned in
14269yes:)
14270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14272ac_tool_warned=yes ;;
14273esac
14274    STRIP=$ac_ct_STRIP
14275  fi
14276else
14277  STRIP="$ac_cv_prog_STRIP"
14278fi
14279
14280test -z "$STRIP" && STRIP=:
14281
14282
14283
14284
14285
14286
14287if test -n "$ac_tool_prefix"; then
14288  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14289set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14291$as_echo_n "checking for $ac_word... " >&6; }
14292if ${ac_cv_prog_RANLIB+:} false; then :
14293  $as_echo_n "(cached) " >&6
14294else
14295  if test -n "$RANLIB"; then
14296  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14297else
14298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299for as_dir in $PATH
14300do
14301  IFS=$as_save_IFS
14302  test -z "$as_dir" && as_dir=.
14303    for ac_exec_ext in '' $ac_executable_extensions; do
14304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14305    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14307    break 2
14308  fi
14309done
14310  done
14311IFS=$as_save_IFS
14312
14313fi
14314fi
14315RANLIB=$ac_cv_prog_RANLIB
14316if test -n "$RANLIB"; then
14317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14318$as_echo "$RANLIB" >&6; }
14319else
14320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321$as_echo "no" >&6; }
14322fi
14323
14324
14325fi
14326if test -z "$ac_cv_prog_RANLIB"; then
14327  ac_ct_RANLIB=$RANLIB
14328  # Extract the first word of "ranlib", so it can be a program name with args.
14329set dummy ranlib; ac_word=$2
14330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14331$as_echo_n "checking for $ac_word... " >&6; }
14332if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14333  $as_echo_n "(cached) " >&6
14334else
14335  if test -n "$ac_ct_RANLIB"; then
14336  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14337else
14338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14339for as_dir in $PATH
14340do
14341  IFS=$as_save_IFS
14342  test -z "$as_dir" && as_dir=.
14343    for ac_exec_ext in '' $ac_executable_extensions; do
14344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14345    ac_cv_prog_ac_ct_RANLIB="ranlib"
14346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14347    break 2
14348  fi
14349done
14350  done
14351IFS=$as_save_IFS
14352
14353fi
14354fi
14355ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14356if test -n "$ac_ct_RANLIB"; then
14357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14358$as_echo "$ac_ct_RANLIB" >&6; }
14359else
14360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14361$as_echo "no" >&6; }
14362fi
14363
14364  if test "x$ac_ct_RANLIB" = x; then
14365    RANLIB=":"
14366  else
14367    case $cross_compiling:$ac_tool_warned in
14368yes:)
14369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14371ac_tool_warned=yes ;;
14372esac
14373    RANLIB=$ac_ct_RANLIB
14374  fi
14375else
14376  RANLIB="$ac_cv_prog_RANLIB"
14377fi
14378
14379test -z "$RANLIB" && RANLIB=:
14380
14381
14382
14383
14384
14385
14386# Determine commands to create old-style static archives.
14387old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14388old_postinstall_cmds='chmod 644 $oldlib'
14389old_postuninstall_cmds=
14390
14391if test -n "$RANLIB"; then
14392  case $host_os in
14393  openbsd*)
14394    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14395    ;;
14396  *)
14397    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14398    ;;
14399  esac
14400  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14401fi
14402
14403case $host_os in
14404  darwin*)
14405    lock_old_archive_extraction=yes ;;
14406  *)
14407    lock_old_archive_extraction=no ;;
14408esac
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448# If no C compiler was specified, use CC.
14449LTCC=${LTCC-"$CC"}
14450
14451# If no C compiler flags were specified, use CFLAGS.
14452LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14453
14454# Allow CC to be a program name with arguments.
14455compiler=$CC
14456
14457
14458# Check for command to grab the raw symbol name followed by C symbol from nm.
14459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14460$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14461if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14462  $as_echo_n "(cached) " >&6
14463else
14464
14465# These are sane defaults that work on at least a few old systems.
14466# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14467
14468# Character class describing NM global symbol codes.
14469symcode='[BCDEGRST]'
14470
14471# Regexp to match symbols that can be accessed directly from C.
14472sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14473
14474# Define system-specific variables.
14475case $host_os in
14476aix*)
14477  symcode='[BCDT]'
14478  ;;
14479cygwin* | mingw* | pw32* | cegcc*)
14480  symcode='[ABCDGISTW]'
14481  ;;
14482hpux*)
14483  if test "$host_cpu" = ia64; then
14484    symcode='[ABCDEGRST]'
14485  fi
14486  ;;
14487irix* | nonstopux*)
14488  symcode='[BCDEGRST]'
14489  ;;
14490osf*)
14491  symcode='[BCDEGQRST]'
14492  ;;
14493solaris*)
14494  symcode='[BDRT]'
14495  ;;
14496sco3.2v5*)
14497  symcode='[DT]'
14498  ;;
14499sysv4.2uw2*)
14500  symcode='[DT]'
14501  ;;
14502sysv5* | sco5v6* | unixware* | OpenUNIX*)
14503  symcode='[ABDT]'
14504  ;;
14505sysv4)
14506  symcode='[DFNSTU]'
14507  ;;
14508esac
14509
14510# If we're using GNU nm, then use its standard symbol codes.
14511case `$NM -V 2>&1` in
14512*GNU* | *'with BFD'*)
14513  symcode='[ABCDGIRSTW]' ;;
14514esac
14515
14516# Transform an extracted symbol line into a proper C declaration.
14517# Some systems (esp. on ia64) link data and code symbols differently,
14518# so use this general approach.
14519lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14520
14521# Transform an extracted symbol line into symbol name and symbol address
14522lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
14523lt_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'"
14524
14525# Handle CRLF in mingw tool chain
14526opt_cr=
14527case $build_os in
14528mingw*)
14529  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14530  ;;
14531esac
14532
14533# Try without a prefix underscore, then with it.
14534for ac_symprfx in "" "_"; do
14535
14536  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14537  symxfrm="\\1 $ac_symprfx\\2 \\2"
14538
14539  # Write the raw and C identifiers.
14540  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14541    # Fake it for dumpbin and say T for any non-static function
14542    # and D for any global variable.
14543    # Also find C++ and __fastcall symbols from MSVC++,
14544    # which start with @ or ?.
14545    lt_cv_sys_global_symbol_pipe="$AWK '"\
14546"     {last_section=section; section=\$ 3};"\
14547"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14548"     \$ 0!~/External *\|/{next};"\
14549"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14550"     {if(hide[section]) next};"\
14551"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14552"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14553"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
14554"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14555"     ' prfx=^$ac_symprfx"
14556  else
14557    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14558  fi
14559
14560  # Check to see that the pipe works correctly.
14561  pipe_works=no
14562
14563  rm -f conftest*
14564  cat > conftest.$ac_ext <<_LT_EOF
14565#ifdef __cplusplus
14566extern "C" {
14567#endif
14568char nm_test_var;
14569void nm_test_func(void);
14570void nm_test_func(void){}
14571#ifdef __cplusplus
14572}
14573#endif
14574int main(){nm_test_var='a';nm_test_func();return(0);}
14575_LT_EOF
14576
14577  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14578  (eval $ac_compile) 2>&5
14579  ac_status=$?
14580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14581  test $ac_status = 0; }; then
14582    # Now try to grab the symbols.
14583    nlist=conftest.nm
14584    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14585  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14586  ac_status=$?
14587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14588  test $ac_status = 0; } && test -s "$nlist"; then
14589      # Try sorting and uniquifying the output.
14590      if sort "$nlist" | uniq > "$nlist"T; then
14591	mv -f "$nlist"T "$nlist"
14592      else
14593	rm -f "$nlist"T
14594      fi
14595
14596      # Make sure that we snagged all the symbols we need.
14597      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14598	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14599	  cat <<_LT_EOF > conftest.$ac_ext
14600#ifdef __cplusplus
14601extern "C" {
14602#endif
14603
14604_LT_EOF
14605	  # Now generate the symbol file.
14606	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14607
14608	  cat <<_LT_EOF >> conftest.$ac_ext
14609
14610/* The mapping between symbol names and symbols.  */
14611const struct {
14612  const char *name;
14613  void       *address;
14614}
14615lt__PROGRAM__LTX_preloaded_symbols[] =
14616{
14617  { "@PROGRAM@", (void *) 0 },
14618_LT_EOF
14619	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14620	  cat <<\_LT_EOF >> conftest.$ac_ext
14621  {0, (void *) 0}
14622};
14623
14624/* This works around a problem in FreeBSD linker */
14625#ifdef FREEBSD_WORKAROUND
14626static const void *lt_preloaded_setup() {
14627  return lt__PROGRAM__LTX_preloaded_symbols;
14628}
14629#endif
14630
14631#ifdef __cplusplus
14632}
14633#endif
14634_LT_EOF
14635	  # Now try linking the two files.
14636	  mv conftest.$ac_objext conftstm.$ac_objext
14637	  lt_save_LIBS="$LIBS"
14638	  lt_save_CFLAGS="$CFLAGS"
14639	  LIBS="conftstm.$ac_objext"
14640	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14641	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14642  (eval $ac_link) 2>&5
14643  ac_status=$?
14644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14645  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14646	    pipe_works=yes
14647	  fi
14648	  LIBS="$lt_save_LIBS"
14649	  CFLAGS="$lt_save_CFLAGS"
14650	else
14651	  echo "cannot find nm_test_func in $nlist" >&5
14652	fi
14653      else
14654	echo "cannot find nm_test_var in $nlist" >&5
14655      fi
14656    else
14657      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14658    fi
14659  else
14660    echo "$progname: failed program was:" >&5
14661    cat conftest.$ac_ext >&5
14662  fi
14663  rm -rf conftest* conftst*
14664
14665  # Do not use the global_symbol_pipe unless it works.
14666  if test "$pipe_works" = yes; then
14667    break
14668  else
14669    lt_cv_sys_global_symbol_pipe=
14670  fi
14671done
14672
14673fi
14674
14675if test -z "$lt_cv_sys_global_symbol_pipe"; then
14676  lt_cv_sys_global_symbol_to_cdecl=
14677fi
14678if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14680$as_echo "failed" >&6; }
14681else
14682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14683$as_echo "ok" >&6; }
14684fi
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707# Check whether --enable-libtool-lock was given.
14708if test "${enable_libtool_lock+set}" = set; then :
14709  enableval=$enable_libtool_lock;
14710fi
14711
14712test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14713
14714# Some flags need to be propagated to the compiler or linker for good
14715# libtool support.
14716case $host in
14717ia64-*-hpux*)
14718  # Find out which ABI we are using.
14719  echo 'int i;' > conftest.$ac_ext
14720  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14721  (eval $ac_compile) 2>&5
14722  ac_status=$?
14723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14724  test $ac_status = 0; }; then
14725    case `/usr/bin/file conftest.$ac_objext` in
14726      *ELF-32*)
14727	HPUX_IA64_MODE="32"
14728	;;
14729      *ELF-64*)
14730	HPUX_IA64_MODE="64"
14731	;;
14732    esac
14733  fi
14734  rm -rf conftest*
14735  ;;
14736*-*-irix6*)
14737  # Find out which ABI we are using.
14738  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14739  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14740  (eval $ac_compile) 2>&5
14741  ac_status=$?
14742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14743  test $ac_status = 0; }; then
14744    if test "$lt_cv_prog_gnu_ld" = yes; then
14745      case `/usr/bin/file conftest.$ac_objext` in
14746	*32-bit*)
14747	  LD="${LD-ld} -melf32bsmip"
14748	  ;;
14749	*N32*)
14750	  LD="${LD-ld} -melf32bmipn32"
14751	  ;;
14752	*64-bit*)
14753	  LD="${LD-ld} -melf64bmip"
14754	;;
14755      esac
14756    else
14757      case `/usr/bin/file conftest.$ac_objext` in
14758	*32-bit*)
14759	  LD="${LD-ld} -32"
14760	  ;;
14761	*N32*)
14762	  LD="${LD-ld} -n32"
14763	  ;;
14764	*64-bit*)
14765	  LD="${LD-ld} -64"
14766	  ;;
14767      esac
14768    fi
14769  fi
14770  rm -rf conftest*
14771  ;;
14772
14773x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14774s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14775  # Find out which ABI we are using.
14776  echo 'int i;' > conftest.$ac_ext
14777  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14778  (eval $ac_compile) 2>&5
14779  ac_status=$?
14780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14781  test $ac_status = 0; }; then
14782    case `/usr/bin/file conftest.o` in
14783      *32-bit*)
14784	case $host in
14785	  x86_64-*kfreebsd*-gnu)
14786	    LD="${LD-ld} -m elf_i386_fbsd"
14787	    ;;
14788	  x86_64-*linux*)
14789	    case `/usr/bin/file conftest.o` in
14790	      *x86-64*)
14791		LD="${LD-ld} -m elf32_x86_64"
14792		;;
14793	      *)
14794		LD="${LD-ld} -m elf_i386"
14795		;;
14796	    esac
14797	    ;;
14798	  powerpc64le-*linux*)
14799	    LD="${LD-ld} -m elf32lppclinux"
14800	    ;;
14801	  powerpc64-*linux*)
14802	    LD="${LD-ld} -m elf32ppclinux"
14803	    ;;
14804	  s390x-*linux*)
14805	    LD="${LD-ld} -m elf_s390"
14806	    ;;
14807	  sparc64-*linux*)
14808	    LD="${LD-ld} -m elf32_sparc"
14809	    ;;
14810	esac
14811	;;
14812      *64-bit*)
14813	case $host in
14814	  x86_64-*kfreebsd*-gnu)
14815	    LD="${LD-ld} -m elf_x86_64_fbsd"
14816	    ;;
14817	  x86_64-*linux*)
14818	    LD="${LD-ld} -m elf_x86_64"
14819	    ;;
14820	  powerpcle-*linux*)
14821	    LD="${LD-ld} -m elf64lppc"
14822	    ;;
14823	  powerpc-*linux*)
14824	    LD="${LD-ld} -m elf64ppc"
14825	    ;;
14826	  s390*-*linux*|s390*-*tpf*)
14827	    LD="${LD-ld} -m elf64_s390"
14828	    ;;
14829	  sparc*-*linux*)
14830	    LD="${LD-ld} -m elf64_sparc"
14831	    ;;
14832	esac
14833	;;
14834    esac
14835  fi
14836  rm -rf conftest*
14837  ;;
14838
14839*-*-sco3.2v5*)
14840  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14841  SAVE_CFLAGS="$CFLAGS"
14842  CFLAGS="$CFLAGS -belf"
14843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14844$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14845if ${lt_cv_cc_needs_belf+:} false; then :
14846  $as_echo_n "(cached) " >&6
14847else
14848  ac_ext=c
14849ac_cpp='$CPP $CPPFLAGS'
14850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14852ac_compiler_gnu=$ac_cv_c_compiler_gnu
14853
14854     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855/* end confdefs.h.  */
14856
14857int
14858main ()
14859{
14860
14861  ;
14862  return 0;
14863}
14864_ACEOF
14865if ac_fn_c_try_link "$LINENO"; then :
14866  lt_cv_cc_needs_belf=yes
14867else
14868  lt_cv_cc_needs_belf=no
14869fi
14870rm -f core conftest.err conftest.$ac_objext \
14871    conftest$ac_exeext conftest.$ac_ext
14872     ac_ext=c
14873ac_cpp='$CPP $CPPFLAGS'
14874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14876ac_compiler_gnu=$ac_cv_c_compiler_gnu
14877
14878fi
14879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14880$as_echo "$lt_cv_cc_needs_belf" >&6; }
14881  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14882    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14883    CFLAGS="$SAVE_CFLAGS"
14884  fi
14885  ;;
14886sparc*-*solaris*)
14887  # Find out which ABI we are using.
14888  echo 'int i;' > conftest.$ac_ext
14889  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14890  (eval $ac_compile) 2>&5
14891  ac_status=$?
14892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14893  test $ac_status = 0; }; then
14894    case `/usr/bin/file conftest.o` in
14895    *64-bit*)
14896      case $lt_cv_prog_gnu_ld in
14897      yes*) LD="${LD-ld} -m elf64_sparc" ;;
14898      *)
14899	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14900	  LD="${LD-ld} -64"
14901	fi
14902	;;
14903      esac
14904      ;;
14905    esac
14906  fi
14907  rm -rf conftest*
14908  ;;
14909esac
14910
14911need_locks="$enable_libtool_lock"
14912
14913
14914  case $host_os in
14915    rhapsody* | darwin*)
14916    if test -n "$ac_tool_prefix"; then
14917  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14918set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then :
14922  $as_echo_n "(cached) " >&6
14923else
14924  if test -n "$DSYMUTIL"; then
14925  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil"
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
14944DSYMUTIL=$ac_cv_prog_DSYMUTIL
14945if test -n "$DSYMUTIL"; then
14946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14947$as_echo "$DSYMUTIL" >&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_DSYMUTIL"; then
14956  ac_ct_DSYMUTIL=$DSYMUTIL
14957  # Extract the first word of "dsymutil", so it can be a program name with args.
14958set dummy dsymutil; 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_DSYMUTIL+:} false; then :
14962  $as_echo_n "(cached) " >&6
14963else
14964  if test -n "$ac_ct_DSYMUTIL"; then
14965  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_DSYMUTIL="dsymutil"
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_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14985if test -n "$ac_ct_DSYMUTIL"; then
14986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14987$as_echo "$ac_ct_DSYMUTIL" >&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_DSYMUTIL" = x; then
14994    DSYMUTIL=":"
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    DSYMUTIL=$ac_ct_DSYMUTIL
15003  fi
15004else
15005  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15006fi
15007
15008    if test -n "$ac_tool_prefix"; then
15009  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15010set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15012$as_echo_n "checking for $ac_word... " >&6; }
15013if ${ac_cv_prog_NMEDIT+:} false; then :
15014  $as_echo_n "(cached) " >&6
15015else
15016  if test -n "$NMEDIT"; then
15017  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15018else
15019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15020for as_dir in $PATH
15021do
15022  IFS=$as_save_IFS
15023  test -z "$as_dir" && as_dir=.
15024    for ac_exec_ext in '' $ac_executable_extensions; do
15025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15026    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15028    break 2
15029  fi
15030done
15031  done
15032IFS=$as_save_IFS
15033
15034fi
15035fi
15036NMEDIT=$ac_cv_prog_NMEDIT
15037if test -n "$NMEDIT"; then
15038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15039$as_echo "$NMEDIT" >&6; }
15040else
15041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15042$as_echo "no" >&6; }
15043fi
15044
15045
15046fi
15047if test -z "$ac_cv_prog_NMEDIT"; then
15048  ac_ct_NMEDIT=$NMEDIT
15049  # Extract the first word of "nmedit", so it can be a program name with args.
15050set dummy nmedit; ac_word=$2
15051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15052$as_echo_n "checking for $ac_word... " >&6; }
15053if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15054  $as_echo_n "(cached) " >&6
15055else
15056  if test -n "$ac_ct_NMEDIT"; then
15057  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15058else
15059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15060for as_dir in $PATH
15061do
15062  IFS=$as_save_IFS
15063  test -z "$as_dir" && as_dir=.
15064    for ac_exec_ext in '' $ac_executable_extensions; do
15065  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15066    ac_cv_prog_ac_ct_NMEDIT="nmedit"
15067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15068    break 2
15069  fi
15070done
15071  done
15072IFS=$as_save_IFS
15073
15074fi
15075fi
15076ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15077if test -n "$ac_ct_NMEDIT"; then
15078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15079$as_echo "$ac_ct_NMEDIT" >&6; }
15080else
15081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15082$as_echo "no" >&6; }
15083fi
15084
15085  if test "x$ac_ct_NMEDIT" = x; then
15086    NMEDIT=":"
15087  else
15088    case $cross_compiling:$ac_tool_warned in
15089yes:)
15090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15092ac_tool_warned=yes ;;
15093esac
15094    NMEDIT=$ac_ct_NMEDIT
15095  fi
15096else
15097  NMEDIT="$ac_cv_prog_NMEDIT"
15098fi
15099
15100    if test -n "$ac_tool_prefix"; then
15101  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15102set dummy ${ac_tool_prefix}lipo; ac_word=$2
15103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15104$as_echo_n "checking for $ac_word... " >&6; }
15105if ${ac_cv_prog_LIPO+:} false; then :
15106  $as_echo_n "(cached) " >&6
15107else
15108  if test -n "$LIPO"; then
15109  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15110else
15111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15112for as_dir in $PATH
15113do
15114  IFS=$as_save_IFS
15115  test -z "$as_dir" && as_dir=.
15116    for ac_exec_ext in '' $ac_executable_extensions; do
15117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15118    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15120    break 2
15121  fi
15122done
15123  done
15124IFS=$as_save_IFS
15125
15126fi
15127fi
15128LIPO=$ac_cv_prog_LIPO
15129if test -n "$LIPO"; then
15130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15131$as_echo "$LIPO" >&6; }
15132else
15133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15134$as_echo "no" >&6; }
15135fi
15136
15137
15138fi
15139if test -z "$ac_cv_prog_LIPO"; then
15140  ac_ct_LIPO=$LIPO
15141  # Extract the first word of "lipo", so it can be a program name with args.
15142set dummy lipo; ac_word=$2
15143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15144$as_echo_n "checking for $ac_word... " >&6; }
15145if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15146  $as_echo_n "(cached) " >&6
15147else
15148  if test -n "$ac_ct_LIPO"; then
15149  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15150else
15151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15152for as_dir in $PATH
15153do
15154  IFS=$as_save_IFS
15155  test -z "$as_dir" && as_dir=.
15156    for ac_exec_ext in '' $ac_executable_extensions; do
15157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15158    ac_cv_prog_ac_ct_LIPO="lipo"
15159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15160    break 2
15161  fi
15162done
15163  done
15164IFS=$as_save_IFS
15165
15166fi
15167fi
15168ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15169if test -n "$ac_ct_LIPO"; then
15170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15171$as_echo "$ac_ct_LIPO" >&6; }
15172else
15173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15174$as_echo "no" >&6; }
15175fi
15176
15177  if test "x$ac_ct_LIPO" = x; then
15178    LIPO=":"
15179  else
15180    case $cross_compiling:$ac_tool_warned in
15181yes:)
15182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15184ac_tool_warned=yes ;;
15185esac
15186    LIPO=$ac_ct_LIPO
15187  fi
15188else
15189  LIPO="$ac_cv_prog_LIPO"
15190fi
15191
15192    if test -n "$ac_tool_prefix"; then
15193  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15194set dummy ${ac_tool_prefix}otool; ac_word=$2
15195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15196$as_echo_n "checking for $ac_word... " >&6; }
15197if ${ac_cv_prog_OTOOL+:} false; then :
15198  $as_echo_n "(cached) " >&6
15199else
15200  if test -n "$OTOOL"; then
15201  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15202else
15203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15204for as_dir in $PATH
15205do
15206  IFS=$as_save_IFS
15207  test -z "$as_dir" && as_dir=.
15208    for ac_exec_ext in '' $ac_executable_extensions; do
15209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15210    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15212    break 2
15213  fi
15214done
15215  done
15216IFS=$as_save_IFS
15217
15218fi
15219fi
15220OTOOL=$ac_cv_prog_OTOOL
15221if test -n "$OTOOL"; then
15222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15223$as_echo "$OTOOL" >&6; }
15224else
15225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226$as_echo "no" >&6; }
15227fi
15228
15229
15230fi
15231if test -z "$ac_cv_prog_OTOOL"; then
15232  ac_ct_OTOOL=$OTOOL
15233  # Extract the first word of "otool", so it can be a program name with args.
15234set dummy otool; ac_word=$2
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15236$as_echo_n "checking for $ac_word... " >&6; }
15237if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15238  $as_echo_n "(cached) " >&6
15239else
15240  if test -n "$ac_ct_OTOOL"; then
15241  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15242else
15243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15244for as_dir in $PATH
15245do
15246  IFS=$as_save_IFS
15247  test -z "$as_dir" && as_dir=.
15248    for ac_exec_ext in '' $ac_executable_extensions; do
15249  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15250    ac_cv_prog_ac_ct_OTOOL="otool"
15251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15252    break 2
15253  fi
15254done
15255  done
15256IFS=$as_save_IFS
15257
15258fi
15259fi
15260ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15261if test -n "$ac_ct_OTOOL"; then
15262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15263$as_echo "$ac_ct_OTOOL" >&6; }
15264else
15265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15266$as_echo "no" >&6; }
15267fi
15268
15269  if test "x$ac_ct_OTOOL" = x; then
15270    OTOOL=":"
15271  else
15272    case $cross_compiling:$ac_tool_warned in
15273yes:)
15274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15276ac_tool_warned=yes ;;
15277esac
15278    OTOOL=$ac_ct_OTOOL
15279  fi
15280else
15281  OTOOL="$ac_cv_prog_OTOOL"
15282fi
15283
15284    if test -n "$ac_tool_prefix"; then
15285  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15286set dummy ${ac_tool_prefix}otool64; ac_word=$2
15287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15288$as_echo_n "checking for $ac_word... " >&6; }
15289if ${ac_cv_prog_OTOOL64+:} false; then :
15290  $as_echo_n "(cached) " >&6
15291else
15292  if test -n "$OTOOL64"; then
15293  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15294else
15295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15296for as_dir in $PATH
15297do
15298  IFS=$as_save_IFS
15299  test -z "$as_dir" && as_dir=.
15300    for ac_exec_ext in '' $ac_executable_extensions; do
15301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15302    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15304    break 2
15305  fi
15306done
15307  done
15308IFS=$as_save_IFS
15309
15310fi
15311fi
15312OTOOL64=$ac_cv_prog_OTOOL64
15313if test -n "$OTOOL64"; then
15314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15315$as_echo "$OTOOL64" >&6; }
15316else
15317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15318$as_echo "no" >&6; }
15319fi
15320
15321
15322fi
15323if test -z "$ac_cv_prog_OTOOL64"; then
15324  ac_ct_OTOOL64=$OTOOL64
15325  # Extract the first word of "otool64", so it can be a program name with args.
15326set dummy otool64; ac_word=$2
15327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15328$as_echo_n "checking for $ac_word... " >&6; }
15329if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15330  $as_echo_n "(cached) " >&6
15331else
15332  if test -n "$ac_ct_OTOOL64"; then
15333  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15334else
15335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15336for as_dir in $PATH
15337do
15338  IFS=$as_save_IFS
15339  test -z "$as_dir" && as_dir=.
15340    for ac_exec_ext in '' $ac_executable_extensions; do
15341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15342    ac_cv_prog_ac_ct_OTOOL64="otool64"
15343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15344    break 2
15345  fi
15346done
15347  done
15348IFS=$as_save_IFS
15349
15350fi
15351fi
15352ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15353if test -n "$ac_ct_OTOOL64"; then
15354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15355$as_echo "$ac_ct_OTOOL64" >&6; }
15356else
15357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15358$as_echo "no" >&6; }
15359fi
15360
15361  if test "x$ac_ct_OTOOL64" = x; then
15362    OTOOL64=":"
15363  else
15364    case $cross_compiling:$ac_tool_warned in
15365yes:)
15366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15368ac_tool_warned=yes ;;
15369esac
15370    OTOOL64=$ac_ct_OTOOL64
15371  fi
15372else
15373  OTOOL64="$ac_cv_prog_OTOOL64"
15374fi
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15403$as_echo_n "checking for -single_module linker flag... " >&6; }
15404if ${lt_cv_apple_cc_single_mod+:} false; then :
15405  $as_echo_n "(cached) " >&6
15406else
15407  lt_cv_apple_cc_single_mod=no
15408      if test -z "${LT_MULTI_MODULE}"; then
15409	# By default we will add the -single_module flag. You can override
15410	# by either setting the environment variable LT_MULTI_MODULE
15411	# non-empty at configure time, or by adding -multi_module to the
15412	# link flags.
15413	rm -rf libconftest.dylib*
15414	echo "int foo(void){return 1;}" > conftest.c
15415	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15416-dynamiclib -Wl,-single_module conftest.c" >&5
15417	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15418	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15419        _lt_result=$?
15420	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15421	  lt_cv_apple_cc_single_mod=yes
15422	else
15423	  cat conftest.err >&5
15424	fi
15425	rm -rf libconftest.dylib*
15426	rm -f conftest.*
15427      fi
15428fi
15429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15430$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15431    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15432$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15433if ${lt_cv_ld_exported_symbols_list+:} false; then :
15434  $as_echo_n "(cached) " >&6
15435else
15436  lt_cv_ld_exported_symbols_list=no
15437      save_LDFLAGS=$LDFLAGS
15438      echo "_main" > conftest.sym
15439      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15440      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441/* end confdefs.h.  */
15442
15443int
15444main ()
15445{
15446
15447  ;
15448  return 0;
15449}
15450_ACEOF
15451if ac_fn_c_try_link "$LINENO"; then :
15452  lt_cv_ld_exported_symbols_list=yes
15453else
15454  lt_cv_ld_exported_symbols_list=no
15455fi
15456rm -f core conftest.err conftest.$ac_objext \
15457    conftest$ac_exeext conftest.$ac_ext
15458	LDFLAGS="$save_LDFLAGS"
15459
15460fi
15461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15462$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15463    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15464$as_echo_n "checking for -force_load linker flag... " >&6; }
15465if ${lt_cv_ld_force_load+:} false; then :
15466  $as_echo_n "(cached) " >&6
15467else
15468  lt_cv_ld_force_load=no
15469      cat > conftest.c << _LT_EOF
15470int forced_loaded() { return 2;}
15471_LT_EOF
15472      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15473      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15474      echo "$AR cru libconftest.a conftest.o" >&5
15475      $AR cru libconftest.a conftest.o 2>&5
15476      cat > conftest.c << _LT_EOF
15477int main() { return 0;}
15478_LT_EOF
15479      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15480      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15481      _lt_result=$?
15482      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15483	lt_cv_ld_force_load=yes
15484      else
15485	cat conftest.err >&5
15486      fi
15487        rm -f conftest.err libconftest.a conftest conftest.c
15488        rm -rf conftest.dSYM
15489
15490fi
15491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15492$as_echo "$lt_cv_ld_force_load" >&6; }
15493    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
15494    # build without first building modern cctools / linker.
15495    case $host_cpu-$host_os in
15496    *-rhapsody* | *-darwin1.[012])
15497      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15498    *-darwin1.*)
15499      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15500    *-darwin*)
15501      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
15502      # deployment target is forced to an earlier version.
15503      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
15504	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
15505	  ;;
15506	10.[012][,.]*)
15507	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15508	  ;;
15509	*)
15510	  ;;
15511     esac
15512    ;;
15513  esac
15514    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15515      _lt_dar_single_mod='$single_module'
15516    fi
15517    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15518      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15519    else
15520      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15521    fi
15522    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15523      _lt_dsymutil='~$DSYMUTIL $lib || :'
15524    else
15525      _lt_dsymutil=
15526    fi
15527    ;;
15528  esac
15529
15530
15531for ac_header in dlfcn.h
15532do :
15533  ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15534if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15535  cat >>confdefs.h <<_ACEOF
15536#define HAVE_DLFCN_H 1
15537_ACEOF
15538
15539fi
15540done
15541
15542
15543
15544
15545
15546# Set options
15547
15548
15549
15550        enable_dlopen=no
15551
15552
15553  enable_win32_dll=no
15554
15555
15556            # Check whether --enable-shared was given.
15557if test "${enable_shared+set}" = set; then :
15558  enableval=$enable_shared; p=${PACKAGE-default}
15559    case $enableval in
15560    yes) enable_shared=yes ;;
15561    no) enable_shared=no ;;
15562    *)
15563      enable_shared=no
15564      # Look at the argument we got.  We use all the common list separators.
15565      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15566      for pkg in $enableval; do
15567	IFS="$lt_save_ifs"
15568	if test "X$pkg" = "X$p"; then
15569	  enable_shared=yes
15570	fi
15571      done
15572      IFS="$lt_save_ifs"
15573      ;;
15574    esac
15575else
15576  enable_shared=yes
15577fi
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587  # Check whether --enable-static was given.
15588if test "${enable_static+set}" = set; then :
15589  enableval=$enable_static; p=${PACKAGE-default}
15590    case $enableval in
15591    yes) enable_static=yes ;;
15592    no) enable_static=no ;;
15593    *)
15594     enable_static=no
15595      # Look at the argument we got.  We use all the common list separators.
15596      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15597      for pkg in $enableval; do
15598	IFS="$lt_save_ifs"
15599	if test "X$pkg" = "X$p"; then
15600	  enable_static=yes
15601	fi
15602      done
15603      IFS="$lt_save_ifs"
15604      ;;
15605    esac
15606else
15607  enable_static=yes
15608fi
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619# Check whether --with-pic was given.
15620if test "${with_pic+set}" = set; then :
15621  withval=$with_pic; pic_mode="$withval"
15622else
15623  pic_mode=default
15624fi
15625
15626
15627test -z "$pic_mode" && pic_mode=default
15628
15629
15630
15631
15632
15633
15634
15635  # Check whether --enable-fast-install was given.
15636if test "${enable_fast_install+set}" = set; then :
15637  enableval=$enable_fast_install; p=${PACKAGE-default}
15638    case $enableval in
15639    yes) enable_fast_install=yes ;;
15640    no) enable_fast_install=no ;;
15641    *)
15642      enable_fast_install=no
15643      # Look at the argument we got.  We use all the common list separators.
15644      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15645      for pkg in $enableval; do
15646	IFS="$lt_save_ifs"
15647	if test "X$pkg" = "X$p"; then
15648	  enable_fast_install=yes
15649	fi
15650      done
15651      IFS="$lt_save_ifs"
15652      ;;
15653    esac
15654else
15655  enable_fast_install=yes
15656fi
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668# This can be used to rebuild libtool when needed
15669LIBTOOL_DEPS="$ltmain"
15670
15671# Always use our own libtool.
15672LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699test -z "$LN_S" && LN_S="ln -s"
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714if test -n "${ZSH_VERSION+set}" ; then
15715   setopt NO_GLOB_SUBST
15716fi
15717
15718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15719$as_echo_n "checking for objdir... " >&6; }
15720if ${lt_cv_objdir+:} false; then :
15721  $as_echo_n "(cached) " >&6
15722else
15723  rm -f .libs 2>/dev/null
15724mkdir .libs 2>/dev/null
15725if test -d .libs; then
15726  lt_cv_objdir=.libs
15727else
15728  # MS-DOS does not allow filenames that begin with a dot.
15729  lt_cv_objdir=_libs
15730fi
15731rmdir .libs 2>/dev/null
15732fi
15733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15734$as_echo "$lt_cv_objdir" >&6; }
15735objdir=$lt_cv_objdir
15736
15737
15738
15739
15740
15741cat >>confdefs.h <<_ACEOF
15742#define LT_OBJDIR "$lt_cv_objdir/"
15743_ACEOF
15744
15745
15746
15747
15748case $host_os in
15749aix3*)
15750  # AIX sometimes has problems with the GCC collect2 program.  For some
15751  # reason, if we set the COLLECT_NAMES environment variable, the problems
15752  # vanish in a puff of smoke.
15753  if test "X${COLLECT_NAMES+set}" != Xset; then
15754    COLLECT_NAMES=
15755    export COLLECT_NAMES
15756  fi
15757  ;;
15758esac
15759
15760# Global variables:
15761ofile=libtool
15762can_build_shared=yes
15763
15764# All known linkers require a `.a' archive for static linking (except MSVC,
15765# which needs '.lib').
15766libext=a
15767
15768with_gnu_ld="$lt_cv_prog_gnu_ld"
15769
15770old_CC="$CC"
15771old_CFLAGS="$CFLAGS"
15772
15773# Set sane defaults for various variables
15774test -z "$CC" && CC=cc
15775test -z "$LTCC" && LTCC=$CC
15776test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15777test -z "$LD" && LD=ld
15778test -z "$ac_objext" && ac_objext=o
15779
15780for cc_temp in $compiler""; do
15781  case $cc_temp in
15782    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15783    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15784    \-*) ;;
15785    *) break;;
15786  esac
15787done
15788cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15789
15790
15791# Only perform the check for file, if the check method requires it
15792test -z "$MAGIC_CMD" && MAGIC_CMD=file
15793case $deplibs_check_method in
15794file_magic*)
15795  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15796    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15797$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15798if ${lt_cv_path_MAGIC_CMD+:} false; then :
15799  $as_echo_n "(cached) " >&6
15800else
15801  case $MAGIC_CMD in
15802[\\/*] |  ?:[\\/]*)
15803  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15804  ;;
15805*)
15806  lt_save_MAGIC_CMD="$MAGIC_CMD"
15807  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15808  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15809  for ac_dir in $ac_dummy; do
15810    IFS="$lt_save_ifs"
15811    test -z "$ac_dir" && ac_dir=.
15812    if test -f $ac_dir/${ac_tool_prefix}file; then
15813      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15814      if test -n "$file_magic_test_file"; then
15815	case $deplibs_check_method in
15816	"file_magic "*)
15817	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15818	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15819	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15820	    $EGREP "$file_magic_regex" > /dev/null; then
15821	    :
15822	  else
15823	    cat <<_LT_EOF 1>&2
15824
15825*** Warning: the command libtool uses to detect shared libraries,
15826*** $file_magic_cmd, produces output that libtool cannot recognize.
15827*** The result is that libtool may fail to recognize shared libraries
15828*** as such.  This will affect the creation of libtool libraries that
15829*** depend on shared libraries, but programs linked with such libtool
15830*** libraries will work regardless of this problem.  Nevertheless, you
15831*** may want to report the problem to your system manager and/or to
15832*** bug-libtool@gnu.org
15833
15834_LT_EOF
15835	  fi ;;
15836	esac
15837      fi
15838      break
15839    fi
15840  done
15841  IFS="$lt_save_ifs"
15842  MAGIC_CMD="$lt_save_MAGIC_CMD"
15843  ;;
15844esac
15845fi
15846
15847MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15848if test -n "$MAGIC_CMD"; then
15849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15850$as_echo "$MAGIC_CMD" >&6; }
15851else
15852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15853$as_echo "no" >&6; }
15854fi
15855
15856
15857
15858
15859
15860if test -z "$lt_cv_path_MAGIC_CMD"; then
15861  if test -n "$ac_tool_prefix"; then
15862    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15863$as_echo_n "checking for file... " >&6; }
15864if ${lt_cv_path_MAGIC_CMD+:} false; then :
15865  $as_echo_n "(cached) " >&6
15866else
15867  case $MAGIC_CMD in
15868[\\/*] |  ?:[\\/]*)
15869  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15870  ;;
15871*)
15872  lt_save_MAGIC_CMD="$MAGIC_CMD"
15873  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15874  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15875  for ac_dir in $ac_dummy; do
15876    IFS="$lt_save_ifs"
15877    test -z "$ac_dir" && ac_dir=.
15878    if test -f $ac_dir/file; then
15879      lt_cv_path_MAGIC_CMD="$ac_dir/file"
15880      if test -n "$file_magic_test_file"; then
15881	case $deplibs_check_method in
15882	"file_magic "*)
15883	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15884	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15885	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15886	    $EGREP "$file_magic_regex" > /dev/null; then
15887	    :
15888	  else
15889	    cat <<_LT_EOF 1>&2
15890
15891*** Warning: the command libtool uses to detect shared libraries,
15892*** $file_magic_cmd, produces output that libtool cannot recognize.
15893*** The result is that libtool may fail to recognize shared libraries
15894*** as such.  This will affect the creation of libtool libraries that
15895*** depend on shared libraries, but programs linked with such libtool
15896*** libraries will work regardless of this problem.  Nevertheless, you
15897*** may want to report the problem to your system manager and/or to
15898*** bug-libtool@gnu.org
15899
15900_LT_EOF
15901	  fi ;;
15902	esac
15903      fi
15904      break
15905    fi
15906  done
15907  IFS="$lt_save_ifs"
15908  MAGIC_CMD="$lt_save_MAGIC_CMD"
15909  ;;
15910esac
15911fi
15912
15913MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15914if test -n "$MAGIC_CMD"; then
15915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15916$as_echo "$MAGIC_CMD" >&6; }
15917else
15918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919$as_echo "no" >&6; }
15920fi
15921
15922
15923  else
15924    MAGIC_CMD=:
15925  fi
15926fi
15927
15928  fi
15929  ;;
15930esac
15931
15932# Use C for the default configuration in the libtool script
15933
15934lt_save_CC="$CC"
15935ac_ext=c
15936ac_cpp='$CPP $CPPFLAGS'
15937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15939ac_compiler_gnu=$ac_cv_c_compiler_gnu
15940
15941
15942# Source file extension for C test sources.
15943ac_ext=c
15944
15945# Object file extension for compiled C test sources.
15946objext=o
15947objext=$objext
15948
15949# Code to be used in simple compile tests
15950lt_simple_compile_test_code="int some_variable = 0;"
15951
15952# Code to be used in simple link tests
15953lt_simple_link_test_code='int main(){return(0);}'
15954
15955
15956
15957
15958
15959
15960
15961# If no C compiler was specified, use CC.
15962LTCC=${LTCC-"$CC"}
15963
15964# If no C compiler flags were specified, use CFLAGS.
15965LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15966
15967# Allow CC to be a program name with arguments.
15968compiler=$CC
15969
15970# Save the default compiler, since it gets overwritten when the other
15971# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15972compiler_DEFAULT=$CC
15973
15974# save warnings/boilerplate of simple test code
15975ac_outfile=conftest.$ac_objext
15976echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15977eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15978_lt_compiler_boilerplate=`cat conftest.err`
15979$RM conftest*
15980
15981ac_outfile=conftest.$ac_objext
15982echo "$lt_simple_link_test_code" >conftest.$ac_ext
15983eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15984_lt_linker_boilerplate=`cat conftest.err`
15985$RM -r conftest*
15986
15987
15988## CAVEAT EMPTOR:
15989## There is no encapsulation within the following macros, do not change
15990## the running order or otherwise move them around unless you know exactly
15991## what you are doing...
15992if test -n "$compiler"; then
15993
15994lt_prog_compiler_no_builtin_flag=
15995
15996if test "$GCC" = yes; then
15997  case $cc_basename in
15998  nvcc*)
15999    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16000  *)
16001    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16002  esac
16003
16004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16005$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16006if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16007  $as_echo_n "(cached) " >&6
16008else
16009  lt_cv_prog_compiler_rtti_exceptions=no
16010   ac_outfile=conftest.$ac_objext
16011   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16012   lt_compiler_flag="-fno-rtti -fno-exceptions"
16013   # Insert the option either (1) after the last *FLAGS variable, or
16014   # (2) before a word containing "conftest.", or (3) at the end.
16015   # Note that $ac_compile itself does not contain backslashes and begins
16016   # with a dollar sign (not a hyphen), so the echo should work correctly.
16017   # The option is referenced via a variable to avoid confusing sed.
16018   lt_compile=`echo "$ac_compile" | $SED \
16019   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16020   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16021   -e 's:$: $lt_compiler_flag:'`
16022   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16023   (eval "$lt_compile" 2>conftest.err)
16024   ac_status=$?
16025   cat conftest.err >&5
16026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027   if (exit $ac_status) && test -s "$ac_outfile"; then
16028     # The compiler can only warn and ignore the option if not recognized
16029     # So say no if there are warnings other than the usual output.
16030     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16031     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16032     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16033       lt_cv_prog_compiler_rtti_exceptions=yes
16034     fi
16035   fi
16036   $RM conftest*
16037
16038fi
16039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16040$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16041
16042if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16043    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16044else
16045    :
16046fi
16047
16048fi
16049
16050
16051
16052
16053
16054
16055  lt_prog_compiler_wl=
16056lt_prog_compiler_pic=
16057lt_prog_compiler_static=
16058
16059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16060$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16061
16062  if test "$GCC" = yes; then
16063    lt_prog_compiler_wl='-Wl,'
16064    lt_prog_compiler_static='-static'
16065
16066    case $host_os in
16067      aix*)
16068      # All AIX code is PIC.
16069      if test "$host_cpu" = ia64; then
16070	# AIX 5 now supports IA64 processor
16071	lt_prog_compiler_static='-Bstatic'
16072      fi
16073      lt_prog_compiler_pic='-fPIC'
16074      ;;
16075
16076    amigaos*)
16077      case $host_cpu in
16078      powerpc)
16079            # see comment about AmigaOS4 .so support
16080            lt_prog_compiler_pic='-fPIC'
16081        ;;
16082      m68k)
16083            # FIXME: we need at least 68020 code to build shared libraries, but
16084            # adding the `-m68020' flag to GCC prevents building anything better,
16085            # like `-m68040'.
16086            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16087        ;;
16088      esac
16089      ;;
16090
16091    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16092      # PIC is the default for these OSes.
16093      ;;
16094
16095    mingw* | cygwin* | pw32* | os2* | cegcc*)
16096      # This hack is so that the source file can tell whether it is being
16097      # built for inclusion in a dll (and should export symbols for example).
16098      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16099      # (--disable-auto-import) libraries
16100      lt_prog_compiler_pic='-DDLL_EXPORT'
16101      ;;
16102
16103    darwin* | rhapsody*)
16104      # PIC is the default on this platform
16105      # Common symbols not allowed in MH_DYLIB files
16106      lt_prog_compiler_pic='-fno-common'
16107      ;;
16108
16109    haiku*)
16110      # PIC is the default for Haiku.
16111      # The "-static" flag exists, but is broken.
16112      lt_prog_compiler_static=
16113      ;;
16114
16115    hpux*)
16116      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16117      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16118      # sets the default TLS model and affects inlining.
16119      case $host_cpu in
16120      hppa*64*)
16121	# +Z the default
16122	;;
16123      *)
16124	lt_prog_compiler_pic='-fPIC'
16125	;;
16126      esac
16127      ;;
16128
16129    interix[3-9]*)
16130      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16131      # Instead, we relocate shared libraries at runtime.
16132      ;;
16133
16134    msdosdjgpp*)
16135      # Just because we use GCC doesn't mean we suddenly get shared libraries
16136      # on systems that don't support them.
16137      lt_prog_compiler_can_build_shared=no
16138      enable_shared=no
16139      ;;
16140
16141    *nto* | *qnx*)
16142      # QNX uses GNU C++, but need to define -shared option too, otherwise
16143      # it will coredump.
16144      lt_prog_compiler_pic='-fPIC -shared'
16145      ;;
16146
16147    sysv4*MP*)
16148      if test -d /usr/nec; then
16149	lt_prog_compiler_pic=-Kconform_pic
16150      fi
16151      ;;
16152
16153    *)
16154      lt_prog_compiler_pic='-fPIC'
16155      ;;
16156    esac
16157
16158    case $cc_basename in
16159    nvcc*) # Cuda Compiler Driver 2.2
16160      lt_prog_compiler_wl='-Xlinker '
16161      lt_prog_compiler_pic='-Xcompiler -fPIC'
16162      ;;
16163    esac
16164  else
16165    # PORTME Check for flag to pass linker flags through the system compiler.
16166    case $host_os in
16167    aix*)
16168      lt_prog_compiler_wl='-Wl,'
16169      if test "$host_cpu" = ia64; then
16170	# AIX 5 now supports IA64 processor
16171	lt_prog_compiler_static='-Bstatic'
16172      else
16173	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16174      fi
16175      ;;
16176
16177    mingw* | cygwin* | pw32* | os2* | cegcc*)
16178      # This hack is so that the source file can tell whether it is being
16179      # built for inclusion in a dll (and should export symbols for example).
16180      lt_prog_compiler_pic='-DDLL_EXPORT'
16181      ;;
16182
16183    hpux9* | hpux10* | hpux11*)
16184      lt_prog_compiler_wl='-Wl,'
16185      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16186      # not for PA HP-UX.
16187      case $host_cpu in
16188      hppa*64*|ia64*)
16189	# +Z the default
16190	;;
16191      *)
16192	lt_prog_compiler_pic='+Z'
16193	;;
16194      esac
16195      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16196      lt_prog_compiler_static='${wl}-a ${wl}archive'
16197      ;;
16198
16199    irix5* | irix6* | nonstopux*)
16200      lt_prog_compiler_wl='-Wl,'
16201      # PIC (with -KPIC) is the default.
16202      lt_prog_compiler_static='-non_shared'
16203      ;;
16204
16205    linux* | k*bsd*-gnu | kopensolaris*-gnu)
16206      case $cc_basename in
16207      # old Intel for x86_64 which still supported -KPIC.
16208      ecc*)
16209	lt_prog_compiler_wl='-Wl,'
16210	lt_prog_compiler_pic='-KPIC'
16211	lt_prog_compiler_static='-static'
16212        ;;
16213      # icc used to be incompatible with GCC.
16214      # ICC 10 doesn't accept -KPIC any more.
16215      icc* | ifort*)
16216	lt_prog_compiler_wl='-Wl,'
16217	lt_prog_compiler_pic='-fPIC'
16218	lt_prog_compiler_static='-static'
16219        ;;
16220      # Lahey Fortran 8.1.
16221      lf95*)
16222	lt_prog_compiler_wl='-Wl,'
16223	lt_prog_compiler_pic='--shared'
16224	lt_prog_compiler_static='--static'
16225	;;
16226      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16227        # Portland Group compilers (*not* the Pentium gcc compiler,
16228	# which looks to be a dead project)
16229	lt_prog_compiler_wl='-Wl,'
16230	lt_prog_compiler_pic='-fpic'
16231	lt_prog_compiler_static='-Bstatic'
16232        ;;
16233      ccc*)
16234        lt_prog_compiler_wl='-Wl,'
16235        # All Alpha code is PIC.
16236        lt_prog_compiler_static='-non_shared'
16237        ;;
16238      xl* | bgxl* | bgf* | mpixl*)
16239	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16240	lt_prog_compiler_wl='-Wl,'
16241	lt_prog_compiler_pic='-qpic'
16242	lt_prog_compiler_static='-qstaticlink'
16243	;;
16244      *)
16245	case `$CC -V 2>&1 | sed 5q` in
16246	*Sun\ F* | *Sun*Fortran*)
16247	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16248	  lt_prog_compiler_pic='-KPIC'
16249	  lt_prog_compiler_static='-Bstatic'
16250	  lt_prog_compiler_wl=''
16251	  ;;
16252	*Sun\ C*)
16253	  # Sun C 5.9
16254	  lt_prog_compiler_pic='-KPIC'
16255	  lt_prog_compiler_static='-Bstatic'
16256	  lt_prog_compiler_wl='-Wl,'
16257	  ;;
16258	esac
16259	;;
16260      esac
16261      ;;
16262
16263    newsos6)
16264      lt_prog_compiler_pic='-KPIC'
16265      lt_prog_compiler_static='-Bstatic'
16266      ;;
16267
16268    *nto* | *qnx*)
16269      # QNX uses GNU C++, but need to define -shared option too, otherwise
16270      # it will coredump.
16271      lt_prog_compiler_pic='-fPIC -shared'
16272      ;;
16273
16274    osf3* | osf4* | osf5*)
16275      lt_prog_compiler_wl='-Wl,'
16276      # All OSF/1 code is PIC.
16277      lt_prog_compiler_static='-non_shared'
16278      ;;
16279
16280    rdos*)
16281      lt_prog_compiler_static='-non_shared'
16282      ;;
16283
16284    solaris*)
16285      lt_prog_compiler_pic='-KPIC'
16286      lt_prog_compiler_static='-Bstatic'
16287      case $cc_basename in
16288      f77* | f90* | f95*)
16289	lt_prog_compiler_wl='-Qoption ld ';;
16290      *)
16291	lt_prog_compiler_wl='-Wl,';;
16292      esac
16293      ;;
16294
16295    sunos4*)
16296      lt_prog_compiler_wl='-Qoption ld '
16297      lt_prog_compiler_pic='-PIC'
16298      lt_prog_compiler_static='-Bstatic'
16299      ;;
16300
16301    sysv4 | sysv4.2uw2* | sysv4.3*)
16302      lt_prog_compiler_wl='-Wl,'
16303      lt_prog_compiler_pic='-KPIC'
16304      lt_prog_compiler_static='-Bstatic'
16305      ;;
16306
16307    sysv4*MP*)
16308      if test -d /usr/nec ;then
16309	lt_prog_compiler_pic='-Kconform_pic'
16310	lt_prog_compiler_static='-Bstatic'
16311      fi
16312      ;;
16313
16314    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16315      lt_prog_compiler_wl='-Wl,'
16316      lt_prog_compiler_pic='-KPIC'
16317      lt_prog_compiler_static='-Bstatic'
16318      ;;
16319
16320    unicos*)
16321      lt_prog_compiler_wl='-Wl,'
16322      lt_prog_compiler_can_build_shared=no
16323      ;;
16324
16325    uts4*)
16326      lt_prog_compiler_pic='-pic'
16327      lt_prog_compiler_static='-Bstatic'
16328      ;;
16329
16330    *)
16331      lt_prog_compiler_can_build_shared=no
16332      ;;
16333    esac
16334  fi
16335
16336case $host_os in
16337  # For platforms which do not support PIC, -DPIC is meaningless:
16338  *djgpp*)
16339    lt_prog_compiler_pic=
16340    ;;
16341  *)
16342    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16343    ;;
16344esac
16345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16346$as_echo "$lt_prog_compiler_pic" >&6; }
16347
16348
16349
16350
16351
16352
16353#
16354# Check to make sure the PIC flag actually works.
16355#
16356if test -n "$lt_prog_compiler_pic"; then
16357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16358$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16359if ${lt_cv_prog_compiler_pic_works+:} false; then :
16360  $as_echo_n "(cached) " >&6
16361else
16362  lt_cv_prog_compiler_pic_works=no
16363   ac_outfile=conftest.$ac_objext
16364   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16365   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16366   # Insert the option either (1) after the last *FLAGS variable, or
16367   # (2) before a word containing "conftest.", or (3) at the end.
16368   # Note that $ac_compile itself does not contain backslashes and begins
16369   # with a dollar sign (not a hyphen), so the echo should work correctly.
16370   # The option is referenced via a variable to avoid confusing sed.
16371   lt_compile=`echo "$ac_compile" | $SED \
16372   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16373   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16374   -e 's:$: $lt_compiler_flag:'`
16375   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16376   (eval "$lt_compile" 2>conftest.err)
16377   ac_status=$?
16378   cat conftest.err >&5
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   if (exit $ac_status) && test -s "$ac_outfile"; then
16381     # The compiler can only warn and ignore the option if not recognized
16382     # So say no if there are warnings other than the usual output.
16383     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16384     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16385     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16386       lt_cv_prog_compiler_pic_works=yes
16387     fi
16388   fi
16389   $RM conftest*
16390
16391fi
16392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16393$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16394
16395if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16396    case $lt_prog_compiler_pic in
16397     "" | " "*) ;;
16398     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16399     esac
16400else
16401    lt_prog_compiler_pic=
16402     lt_prog_compiler_can_build_shared=no
16403fi
16404
16405fi
16406
16407
16408
16409
16410
16411
16412#
16413# Check to make sure the static flag actually works.
16414#
16415wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16417$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16418if ${lt_cv_prog_compiler_static_works+:} false; then :
16419  $as_echo_n "(cached) " >&6
16420else
16421  lt_cv_prog_compiler_static_works=no
16422   save_LDFLAGS="$LDFLAGS"
16423   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16424   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16425   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16426     # The linker can only warn and ignore the option if not recognized
16427     # So say no if there are warnings
16428     if test -s conftest.err; then
16429       # Append any errors to the config.log.
16430       cat conftest.err 1>&5
16431       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16432       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16433       if diff conftest.exp conftest.er2 >/dev/null; then
16434         lt_cv_prog_compiler_static_works=yes
16435       fi
16436     else
16437       lt_cv_prog_compiler_static_works=yes
16438     fi
16439   fi
16440   $RM -r conftest*
16441   LDFLAGS="$save_LDFLAGS"
16442
16443fi
16444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16445$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16446
16447if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16448    :
16449else
16450    lt_prog_compiler_static=
16451fi
16452
16453
16454
16455
16456
16457
16458
16459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16460$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16461if ${lt_cv_prog_compiler_c_o+:} false; then :
16462  $as_echo_n "(cached) " >&6
16463else
16464  lt_cv_prog_compiler_c_o=no
16465   $RM -r conftest 2>/dev/null
16466   mkdir conftest
16467   cd conftest
16468   mkdir out
16469   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16470
16471   lt_compiler_flag="-o out/conftest2.$ac_objext"
16472   # Insert the option either (1) after the last *FLAGS variable, or
16473   # (2) before a word containing "conftest.", or (3) at the end.
16474   # Note that $ac_compile itself does not contain backslashes and begins
16475   # with a dollar sign (not a hyphen), so the echo should work correctly.
16476   lt_compile=`echo "$ac_compile" | $SED \
16477   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16478   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16479   -e 's:$: $lt_compiler_flag:'`
16480   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16481   (eval "$lt_compile" 2>out/conftest.err)
16482   ac_status=$?
16483   cat out/conftest.err >&5
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16486   then
16487     # The compiler can only warn and ignore the option if not recognized
16488     # So say no if there are warnings
16489     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16490     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16491     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16492       lt_cv_prog_compiler_c_o=yes
16493     fi
16494   fi
16495   chmod u+w . 2>&5
16496   $RM conftest*
16497   # SGI C++ compiler will create directory out/ii_files/ for
16498   # template instantiation
16499   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16500   $RM out/* && rmdir out
16501   cd ..
16502   $RM -r conftest
16503   $RM conftest*
16504
16505fi
16506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16507$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16508
16509
16510
16511
16512
16513
16514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16515$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16516if ${lt_cv_prog_compiler_c_o+:} false; then :
16517  $as_echo_n "(cached) " >&6
16518else
16519  lt_cv_prog_compiler_c_o=no
16520   $RM -r conftest 2>/dev/null
16521   mkdir conftest
16522   cd conftest
16523   mkdir out
16524   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16525
16526   lt_compiler_flag="-o out/conftest2.$ac_objext"
16527   # Insert the option either (1) after the last *FLAGS variable, or
16528   # (2) before a word containing "conftest.", or (3) at the end.
16529   # Note that $ac_compile itself does not contain backslashes and begins
16530   # with a dollar sign (not a hyphen), so the echo should work correctly.
16531   lt_compile=`echo "$ac_compile" | $SED \
16532   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16533   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16534   -e 's:$: $lt_compiler_flag:'`
16535   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16536   (eval "$lt_compile" 2>out/conftest.err)
16537   ac_status=$?
16538   cat out/conftest.err >&5
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16541   then
16542     # The compiler can only warn and ignore the option if not recognized
16543     # So say no if there are warnings
16544     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16545     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16546     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16547       lt_cv_prog_compiler_c_o=yes
16548     fi
16549   fi
16550   chmod u+w . 2>&5
16551   $RM conftest*
16552   # SGI C++ compiler will create directory out/ii_files/ for
16553   # template instantiation
16554   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16555   $RM out/* && rmdir out
16556   cd ..
16557   $RM -r conftest
16558   $RM conftest*
16559
16560fi
16561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16562$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16563
16564
16565
16566
16567hard_links="nottested"
16568if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16569  # do not overwrite the value of need_locks provided by the user
16570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16571$as_echo_n "checking if we can lock with hard links... " >&6; }
16572  hard_links=yes
16573  $RM conftest*
16574  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16575  touch conftest.a
16576  ln conftest.a conftest.b 2>&5 || hard_links=no
16577  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16579$as_echo "$hard_links" >&6; }
16580  if test "$hard_links" = no; then
16581    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16582$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16583    need_locks=warn
16584  fi
16585else
16586  need_locks=no
16587fi
16588
16589
16590
16591
16592
16593
16594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16595$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16596
16597  runpath_var=
16598  allow_undefined_flag=
16599  always_export_symbols=no
16600  archive_cmds=
16601  archive_expsym_cmds=
16602  compiler_needs_object=no
16603  enable_shared_with_static_runtimes=no
16604  export_dynamic_flag_spec=
16605  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16606  hardcode_automatic=no
16607  hardcode_direct=no
16608  hardcode_direct_absolute=no
16609  hardcode_libdir_flag_spec=
16610  hardcode_libdir_flag_spec_ld=
16611  hardcode_libdir_separator=
16612  hardcode_minus_L=no
16613  hardcode_shlibpath_var=unsupported
16614  inherit_rpath=no
16615  link_all_deplibs=unknown
16616  module_cmds=
16617  module_expsym_cmds=
16618  old_archive_from_new_cmds=
16619  old_archive_from_expsyms_cmds=
16620  thread_safe_flag_spec=
16621  whole_archive_flag_spec=
16622  # include_expsyms should be a list of space-separated symbols to be *always*
16623  # included in the symbol list
16624  include_expsyms=
16625  # exclude_expsyms can be an extended regexp of symbols to exclude
16626  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16627  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16628  # as well as any symbol that contains `d'.
16629  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16630  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16631  # platforms (ab)use it in PIC code, but their linkers get confused if
16632  # the symbol is explicitly referenced.  Since portable code cannot
16633  # rely on this symbol name, it's probably fine to never include it in
16634  # preloaded symbol tables.
16635  # Exclude shared library initialization/finalization symbols.
16636  extract_expsyms_cmds=
16637
16638  case $host_os in
16639  cygwin* | mingw* | pw32* | cegcc*)
16640    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16641    # When not using gcc, we currently assume that we are using
16642    # Microsoft Visual C++.
16643    if test "$GCC" != yes; then
16644      with_gnu_ld=no
16645    fi
16646    ;;
16647  interix*)
16648    # we just hope/assume this is gcc and not c89 (= MSVC++)
16649    with_gnu_ld=yes
16650    ;;
16651  openbsd*)
16652    with_gnu_ld=no
16653    ;;
16654  esac
16655
16656  ld_shlibs=yes
16657
16658  # On some targets, GNU ld is compatible enough with the native linker
16659  # that we're better off using the native interface for both.
16660  lt_use_gnu_ld_interface=no
16661  if test "$with_gnu_ld" = yes; then
16662    case $host_os in
16663      aix*)
16664	# The AIX port of GNU ld has always aspired to compatibility
16665	# with the native linker.  However, as the warning in the GNU ld
16666	# block says, versions before 2.19.5* couldn't really create working
16667	# shared libraries, regardless of the interface used.
16668	case `$LD -v 2>&1` in
16669	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16670	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16671	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16672	  *)
16673	    lt_use_gnu_ld_interface=yes
16674	    ;;
16675	esac
16676	;;
16677      *)
16678	lt_use_gnu_ld_interface=yes
16679	;;
16680    esac
16681  fi
16682
16683  if test "$lt_use_gnu_ld_interface" = yes; then
16684    # If archive_cmds runs LD, not CC, wlarc should be empty
16685    wlarc='${wl}'
16686
16687    # Set some defaults for GNU ld with shared library support. These
16688    # are reset later if shared libraries are not supported. Putting them
16689    # here allows them to be overridden if necessary.
16690    runpath_var=LD_RUN_PATH
16691    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16692    export_dynamic_flag_spec='${wl}--export-dynamic'
16693    # ancient GNU ld didn't support --whole-archive et. al.
16694    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16695      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16696    else
16697      whole_archive_flag_spec=
16698    fi
16699    supports_anon_versioning=no
16700    case `$LD -v 2>&1` in
16701      *GNU\ gold*) supports_anon_versioning=yes ;;
16702      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16703      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16704      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16705      *\ 2.11.*) ;; # other 2.11 versions
16706      *) supports_anon_versioning=yes ;;
16707    esac
16708
16709    # See if GNU ld supports shared libraries.
16710    case $host_os in
16711    aix[3-9]*)
16712      # On AIX/PPC, the GNU linker is very broken
16713      if test "$host_cpu" != ia64; then
16714	ld_shlibs=no
16715	cat <<_LT_EOF 1>&2
16716
16717*** Warning: the GNU linker, at least up to release 2.19, is reported
16718*** to be unable to reliably create shared libraries on AIX.
16719*** Therefore, libtool is disabling shared libraries support.  If you
16720*** really care for shared libraries, you may want to install binutils
16721*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16722*** You will then need to restart the configuration process.
16723
16724_LT_EOF
16725      fi
16726      ;;
16727
16728    amigaos*)
16729      case $host_cpu in
16730      powerpc)
16731            # see comment about AmigaOS4 .so support
16732            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16733            archive_expsym_cmds=''
16734        ;;
16735      m68k)
16736            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)'
16737            hardcode_libdir_flag_spec='-L$libdir'
16738            hardcode_minus_L=yes
16739        ;;
16740      esac
16741      ;;
16742
16743    beos*)
16744      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16745	allow_undefined_flag=unsupported
16746	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16747	# support --undefined.  This deserves some investigation.  FIXME
16748	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16749      else
16750	ld_shlibs=no
16751      fi
16752      ;;
16753
16754    cygwin* | mingw* | pw32* | cegcc*)
16755      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16756      # as there is no search path for DLLs.
16757      hardcode_libdir_flag_spec='-L$libdir'
16758      export_dynamic_flag_spec='${wl}--export-all-symbols'
16759      allow_undefined_flag=unsupported
16760      always_export_symbols=no
16761      enable_shared_with_static_runtimes=yes
16762      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16763
16764      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16765        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16766	# If the export-symbols file already is a .def file (1st line
16767	# is EXPORTS), use it as is; otherwise, prepend...
16768	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16769	  cp $export_symbols $output_objdir/$soname.def;
16770	else
16771	  echo EXPORTS > $output_objdir/$soname.def;
16772	  cat $export_symbols >> $output_objdir/$soname.def;
16773	fi~
16774	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16775      else
16776	ld_shlibs=no
16777      fi
16778      ;;
16779
16780    haiku*)
16781      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16782      link_all_deplibs=yes
16783      ;;
16784
16785    interix[3-9]*)
16786      hardcode_direct=no
16787      hardcode_shlibpath_var=no
16788      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16789      export_dynamic_flag_spec='${wl}-E'
16790      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16791      # Instead, shared libraries are loaded at an image base (0x10000000 by
16792      # default) and relocated if they conflict, which is a slow very memory
16793      # consuming and fragmenting process.  To avoid this, we pick a random,
16794      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16795      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16796      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16797      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'
16798      ;;
16799
16800    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16801      tmp_diet=no
16802      if test "$host_os" = linux-dietlibc; then
16803	case $cc_basename in
16804	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16805	esac
16806      fi
16807      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16808	 && test "$tmp_diet" = no
16809      then
16810	tmp_addflag=' $pic_flag'
16811	tmp_sharedflag='-shared'
16812	case $cc_basename,$host_cpu in
16813        pgcc*)				# Portland Group C compiler
16814	  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'
16815	  tmp_addflag=' $pic_flag'
16816	  ;;
16817	pgf77* | pgf90* | pgf95* | pgfortran*)
16818					# Portland Group f77 and f90 compilers
16819	  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'
16820	  tmp_addflag=' $pic_flag -Mnomain' ;;
16821	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16822	  tmp_addflag=' -i_dynamic' ;;
16823	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16824	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16825	ifc* | ifort*)			# Intel Fortran compiler
16826	  tmp_addflag=' -nofor_main' ;;
16827	lf95*)				# Lahey Fortran 8.1
16828	  whole_archive_flag_spec=
16829	  tmp_sharedflag='--shared' ;;
16830	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16831	  tmp_sharedflag='-qmkshrobj'
16832	  tmp_addflag= ;;
16833	nvcc*)	# Cuda Compiler Driver 2.2
16834	  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'
16835	  compiler_needs_object=yes
16836	  ;;
16837	esac
16838	case `$CC -V 2>&1 | sed 5q` in
16839	*Sun\ C*)			# Sun C 5.9
16840	  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'
16841	  compiler_needs_object=yes
16842	  tmp_sharedflag='-G' ;;
16843	*Sun\ F*)			# Sun Fortran 8.3
16844	  tmp_sharedflag='-G' ;;
16845	esac
16846	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16847
16848        if test "x$supports_anon_versioning" = xyes; then
16849          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16850	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16851	    echo "local: *; };" >> $output_objdir/$libname.ver~
16852	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16853        fi
16854
16855	case $cc_basename in
16856	xlf* | bgf* | bgxlf* | mpixlf*)
16857	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16858	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16859	  hardcode_libdir_flag_spec=
16860	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
16861	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16862	  if test "x$supports_anon_versioning" = xyes; then
16863	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16864	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16865	      echo "local: *; };" >> $output_objdir/$libname.ver~
16866	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16867	  fi
16868	  ;;
16869	esac
16870      else
16871        ld_shlibs=no
16872      fi
16873      ;;
16874
16875    netbsd*)
16876      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16877	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16878	wlarc=
16879      else
16880	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16881	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16882      fi
16883      ;;
16884
16885    solaris*)
16886      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16887	ld_shlibs=no
16888	cat <<_LT_EOF 1>&2
16889
16890*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16891*** create shared libraries on Solaris systems.  Therefore, libtool
16892*** is disabling shared libraries support.  We urge you to upgrade GNU
16893*** binutils to release 2.9.1 or newer.  Another option is to modify
16894*** your PATH or compiler configuration so that the native linker is
16895*** used, and then restart.
16896
16897_LT_EOF
16898      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16899	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16900	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16901      else
16902	ld_shlibs=no
16903      fi
16904      ;;
16905
16906    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16907      case `$LD -v 2>&1` in
16908        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16909	ld_shlibs=no
16910	cat <<_LT_EOF 1>&2
16911
16912*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16913*** reliably create shared libraries on SCO systems.  Therefore, libtool
16914*** is disabling shared libraries support.  We urge you to upgrade GNU
16915*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16916*** your PATH or compiler configuration so that the native linker is
16917*** used, and then restart.
16918
16919_LT_EOF
16920	;;
16921	*)
16922	  # For security reasons, it is highly recommended that you always
16923	  # use absolute paths for naming shared libraries, and exclude the
16924	  # DT_RUNPATH tag from executables and libraries.  But doing so
16925	  # requires that you compile everything twice, which is a pain.
16926	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16927	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16928	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16929	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16930	  else
16931	    ld_shlibs=no
16932	  fi
16933	;;
16934      esac
16935      ;;
16936
16937    sunos4*)
16938      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16939      wlarc=
16940      hardcode_direct=yes
16941      hardcode_shlibpath_var=no
16942      ;;
16943
16944    *)
16945      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16946	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16947	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16948      else
16949	ld_shlibs=no
16950      fi
16951      ;;
16952    esac
16953
16954    if test "$ld_shlibs" = no; then
16955      runpath_var=
16956      hardcode_libdir_flag_spec=
16957      export_dynamic_flag_spec=
16958      whole_archive_flag_spec=
16959    fi
16960  else
16961    # PORTME fill in a description of your system's linker (not GNU ld)
16962    case $host_os in
16963    aix3*)
16964      allow_undefined_flag=unsupported
16965      always_export_symbols=yes
16966      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'
16967      # Note: this linker hardcodes the directories in LIBPATH if there
16968      # are no directories specified by -L.
16969      hardcode_minus_L=yes
16970      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16971	# Neither direct hardcoding nor static linking is supported with a
16972	# broken collect2.
16973	hardcode_direct=unsupported
16974      fi
16975      ;;
16976
16977    aix[4-9]*)
16978      if test "$host_cpu" = ia64; then
16979	# On IA64, the linker does run time linking by default, so we don't
16980	# have to do anything special.
16981	aix_use_runtimelinking=no
16982	exp_sym_flag='-Bexport'
16983	no_entry_flag=""
16984      else
16985	# If we're using GNU nm, then we don't want the "-C" option.
16986	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16987	# Also, AIX nm treats weak defined symbols like other global
16988	# defined symbols, whereas GNU nm marks them as "W".
16989	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16990	  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'
16991	else
16992	  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'
16993	fi
16994	aix_use_runtimelinking=no
16995
16996	# Test if we are trying to use run time linking or normal
16997	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16998	# need to do runtime linking.
16999	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17000	  for ld_flag in $LDFLAGS; do
17001	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17002	    aix_use_runtimelinking=yes
17003	    break
17004	  fi
17005	  done
17006	  ;;
17007	esac
17008
17009	exp_sym_flag='-bexport'
17010	no_entry_flag='-bnoentry'
17011      fi
17012
17013      # When large executables or shared objects are built, AIX ld can
17014      # have problems creating the table of contents.  If linking a library
17015      # or program results in "error TOC overflow" add -mminimal-toc to
17016      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17017      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17018
17019      archive_cmds=''
17020      hardcode_direct=yes
17021      hardcode_direct_absolute=yes
17022      hardcode_libdir_separator=':'
17023      link_all_deplibs=yes
17024      file_list_spec='${wl}-f,'
17025
17026      if test "$GCC" = yes; then
17027	case $host_os in aix4.[012]|aix4.[012].*)
17028	# We only want to do this on AIX 4.2 and lower, the check
17029	# below for broken collect2 doesn't work under 4.3+
17030	  collect2name=`${CC} -print-prog-name=collect2`
17031	  if test -f "$collect2name" &&
17032	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17033	  then
17034	  # We have reworked collect2
17035	  :
17036	  else
17037	  # We have old collect2
17038	  hardcode_direct=unsupported
17039	  # It fails to find uninstalled libraries when the uninstalled
17040	  # path is not listed in the libpath.  Setting hardcode_minus_L
17041	  # to unsupported forces relinking
17042	  hardcode_minus_L=yes
17043	  hardcode_libdir_flag_spec='-L$libdir'
17044	  hardcode_libdir_separator=
17045	  fi
17046	  ;;
17047	esac
17048	shared_flag='-shared'
17049	if test "$aix_use_runtimelinking" = yes; then
17050	  shared_flag="$shared_flag "'${wl}-G'
17051	fi
17052      else
17053	# not using gcc
17054	if test "$host_cpu" = ia64; then
17055	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17056	# chokes on -Wl,-G. The following line is correct:
17057	  shared_flag='-G'
17058	else
17059	  if test "$aix_use_runtimelinking" = yes; then
17060	    shared_flag='${wl}-G'
17061	  else
17062	    shared_flag='${wl}-bM:SRE'
17063	  fi
17064	fi
17065      fi
17066
17067      export_dynamic_flag_spec='${wl}-bexpall'
17068      # It seems that -bexpall does not export symbols beginning with
17069      # underscore (_), so it is better to generate a list of symbols to export.
17070      always_export_symbols=yes
17071      if test "$aix_use_runtimelinking" = yes; then
17072	# Warning - without using the other runtime loading flags (-brtl),
17073	# -berok will link without error, but may produce a broken library.
17074	allow_undefined_flag='-berok'
17075        # Determine the default libpath from the value encoded in an
17076        # empty executable.
17077        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078/* end confdefs.h.  */
17079
17080int
17081main ()
17082{
17083
17084  ;
17085  return 0;
17086}
17087_ACEOF
17088if ac_fn_c_try_link "$LINENO"; then :
17089
17090lt_aix_libpath_sed='
17091    /Import File Strings/,/^$/ {
17092	/^0/ {
17093	    s/^0  *\(.*\)$/\1/
17094	    p
17095	}
17096    }'
17097aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17098# Check for a 64-bit object if we didn't find anything.
17099if test -z "$aix_libpath"; then
17100  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17101fi
17102fi
17103rm -f core conftest.err conftest.$ac_objext \
17104    conftest$ac_exeext conftest.$ac_ext
17105if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17106
17107        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17108        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"
17109      else
17110	if test "$host_cpu" = ia64; then
17111	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17112	  allow_undefined_flag="-z nodefs"
17113	  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"
17114	else
17115	 # Determine the default libpath from the value encoded in an
17116	 # empty executable.
17117	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17118/* end confdefs.h.  */
17119
17120int
17121main ()
17122{
17123
17124  ;
17125  return 0;
17126}
17127_ACEOF
17128if ac_fn_c_try_link "$LINENO"; then :
17129
17130lt_aix_libpath_sed='
17131    /Import File Strings/,/^$/ {
17132	/^0/ {
17133	    s/^0  *\(.*\)$/\1/
17134	    p
17135	}
17136    }'
17137aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17138# Check for a 64-bit object if we didn't find anything.
17139if test -z "$aix_libpath"; then
17140  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17141fi
17142fi
17143rm -f core conftest.err conftest.$ac_objext \
17144    conftest$ac_exeext conftest.$ac_ext
17145if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17146
17147	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17148	  # Warning - without using the other run time loading flags,
17149	  # -berok will link without error, but may produce a broken library.
17150	  no_undefined_flag=' ${wl}-bernotok'
17151	  allow_undefined_flag=' ${wl}-berok'
17152	  if test "$with_gnu_ld" = yes; then
17153	    # We only use this code for GNU lds that support --whole-archive.
17154	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17155	  else
17156	    # Exported symbols can be pulled into shared objects from archives
17157	    whole_archive_flag_spec='$convenience'
17158	  fi
17159	  archive_cmds_need_lc=yes
17160	  # This is similar to how AIX traditionally builds its shared libraries.
17161	  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'
17162	fi
17163      fi
17164      ;;
17165
17166    amigaos*)
17167      case $host_cpu in
17168      powerpc)
17169            # see comment about AmigaOS4 .so support
17170            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17171            archive_expsym_cmds=''
17172        ;;
17173      m68k)
17174            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)'
17175            hardcode_libdir_flag_spec='-L$libdir'
17176            hardcode_minus_L=yes
17177        ;;
17178      esac
17179      ;;
17180
17181    bsdi[45]*)
17182      export_dynamic_flag_spec=-rdynamic
17183      ;;
17184
17185    cygwin* | mingw* | pw32* | cegcc*)
17186      # When not using gcc, we currently assume that we are using
17187      # Microsoft Visual C++.
17188      # hardcode_libdir_flag_spec is actually meaningless, as there is
17189      # no search path for DLLs.
17190      hardcode_libdir_flag_spec=' '
17191      allow_undefined_flag=unsupported
17192      # Tell ltmain to make .lib files, not .a files.
17193      libext=lib
17194      # Tell ltmain to make .dll files, not .so files.
17195      shrext_cmds=".dll"
17196      # FIXME: Setting linknames here is a bad hack.
17197      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17198      # The linker will automatically build a .lib file if we build a DLL.
17199      old_archive_from_new_cmds='true'
17200      # FIXME: Should let the user specify the lib program.
17201      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17202      fix_srcfile_path='`cygpath -w "$srcfile"`'
17203      enable_shared_with_static_runtimes=yes
17204      ;;
17205
17206    darwin* | rhapsody*)
17207
17208
17209  archive_cmds_need_lc=no
17210  hardcode_direct=no
17211  hardcode_automatic=yes
17212  hardcode_shlibpath_var=unsupported
17213  if test "$lt_cv_ld_force_load" = "yes"; then
17214    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\"`'
17215  else
17216    whole_archive_flag_spec=''
17217  fi
17218  link_all_deplibs=yes
17219  allow_undefined_flag="$_lt_dar_allow_undefined"
17220  case $cc_basename in
17221     ifort*) _lt_dar_can_shared=yes ;;
17222     *) _lt_dar_can_shared=$GCC ;;
17223  esac
17224  if test "$_lt_dar_can_shared" = "yes"; then
17225    output_verbose_link_cmd=func_echo_all
17226    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17227    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17228    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}"
17229    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}"
17230
17231  else
17232  ld_shlibs=no
17233  fi
17234
17235      ;;
17236
17237    dgux*)
17238      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17239      hardcode_libdir_flag_spec='-L$libdir'
17240      hardcode_shlibpath_var=no
17241      ;;
17242
17243    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17244    # support.  Future versions do this automatically, but an explicit c++rt0.o
17245    # does not break anything, and helps significantly (at the cost of a little
17246    # extra space).
17247    freebsd2.2*)
17248      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17249      hardcode_libdir_flag_spec='-R$libdir'
17250      hardcode_direct=yes
17251      hardcode_shlibpath_var=no
17252      ;;
17253
17254    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17255    freebsd2.*)
17256      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17257      hardcode_direct=yes
17258      hardcode_minus_L=yes
17259      hardcode_shlibpath_var=no
17260      ;;
17261
17262    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17263    freebsd* | dragonfly*)
17264      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17265      hardcode_libdir_flag_spec='-R$libdir'
17266      hardcode_direct=yes
17267      hardcode_shlibpath_var=no
17268      ;;
17269
17270    hpux9*)
17271      if test "$GCC" = yes; then
17272	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'
17273      else
17274	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'
17275      fi
17276      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17277      hardcode_libdir_separator=:
17278      hardcode_direct=yes
17279
17280      # hardcode_minus_L: Not really in the search PATH,
17281      # but as the default location of the library.
17282      hardcode_minus_L=yes
17283      export_dynamic_flag_spec='${wl}-E'
17284      ;;
17285
17286    hpux10*)
17287      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17288	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17289      else
17290	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17291      fi
17292      if test "$with_gnu_ld" = no; then
17293	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17294	hardcode_libdir_flag_spec_ld='+b $libdir'
17295	hardcode_libdir_separator=:
17296	hardcode_direct=yes
17297	hardcode_direct_absolute=yes
17298	export_dynamic_flag_spec='${wl}-E'
17299	# hardcode_minus_L: Not really in the search PATH,
17300	# but as the default location of the library.
17301	hardcode_minus_L=yes
17302      fi
17303      ;;
17304
17305    hpux11*)
17306      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17307	case $host_cpu in
17308	hppa*64*)
17309	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17310	  ;;
17311	ia64*)
17312	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17313	  ;;
17314	*)
17315	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17316	  ;;
17317	esac
17318      else
17319	case $host_cpu in
17320	hppa*64*)
17321	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17322	  ;;
17323	ia64*)
17324	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17325	  ;;
17326	*)
17327
17328	  # Older versions of the 11.00 compiler do not understand -b yet
17329	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17330	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17331$as_echo_n "checking if $CC understands -b... " >&6; }
17332if ${lt_cv_prog_compiler__b+:} false; then :
17333  $as_echo_n "(cached) " >&6
17334else
17335  lt_cv_prog_compiler__b=no
17336   save_LDFLAGS="$LDFLAGS"
17337   LDFLAGS="$LDFLAGS -b"
17338   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17339   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17340     # The linker can only warn and ignore the option if not recognized
17341     # So say no if there are warnings
17342     if test -s conftest.err; then
17343       # Append any errors to the config.log.
17344       cat conftest.err 1>&5
17345       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17346       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17347       if diff conftest.exp conftest.er2 >/dev/null; then
17348         lt_cv_prog_compiler__b=yes
17349       fi
17350     else
17351       lt_cv_prog_compiler__b=yes
17352     fi
17353   fi
17354   $RM -r conftest*
17355   LDFLAGS="$save_LDFLAGS"
17356
17357fi
17358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17359$as_echo "$lt_cv_prog_compiler__b" >&6; }
17360
17361if test x"$lt_cv_prog_compiler__b" = xyes; then
17362    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17363else
17364    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17365fi
17366
17367	  ;;
17368	esac
17369      fi
17370      if test "$with_gnu_ld" = no; then
17371	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17372	hardcode_libdir_separator=:
17373
17374	case $host_cpu in
17375	hppa*64*|ia64*)
17376	  hardcode_direct=no
17377	  hardcode_shlibpath_var=no
17378	  ;;
17379	*)
17380	  hardcode_direct=yes
17381	  hardcode_direct_absolute=yes
17382	  export_dynamic_flag_spec='${wl}-E'
17383
17384	  # hardcode_minus_L: Not really in the search PATH,
17385	  # but as the default location of the library.
17386	  hardcode_minus_L=yes
17387	  ;;
17388	esac
17389      fi
17390      ;;
17391
17392    irix5* | irix6* | nonstopux*)
17393      if test "$GCC" = yes; then
17394	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'
17395	# Try to use the -exported_symbol ld option, if it does not
17396	# work, assume that -exports_file does not work either and
17397	# implicitly export all symbols.
17398        save_LDFLAGS="$LDFLAGS"
17399        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17400        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401/* end confdefs.h.  */
17402int foo(void) {}
17403_ACEOF
17404if ac_fn_c_try_link "$LINENO"; then :
17405  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'
17406
17407fi
17408rm -f core conftest.err conftest.$ac_objext \
17409    conftest$ac_exeext conftest.$ac_ext
17410        LDFLAGS="$save_LDFLAGS"
17411      else
17412	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'
17413	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'
17414      fi
17415      archive_cmds_need_lc='no'
17416      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17417      hardcode_libdir_separator=:
17418      inherit_rpath=yes
17419      link_all_deplibs=yes
17420      ;;
17421
17422    netbsd*)
17423      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17424	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17425      else
17426	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17427      fi
17428      hardcode_libdir_flag_spec='-R$libdir'
17429      hardcode_direct=yes
17430      hardcode_shlibpath_var=no
17431      ;;
17432
17433    newsos6)
17434      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17435      hardcode_direct=yes
17436      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17437      hardcode_libdir_separator=:
17438      hardcode_shlibpath_var=no
17439      ;;
17440
17441    *nto* | *qnx*)
17442      ;;
17443
17444    openbsd*)
17445      if test -f /usr/libexec/ld.so; then
17446	hardcode_direct=yes
17447	hardcode_shlibpath_var=no
17448	hardcode_direct_absolute=yes
17449	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17450	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17451	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17452	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17453	  export_dynamic_flag_spec='${wl}-E'
17454	else
17455	  case $host_os in
17456	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17457	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17458	     hardcode_libdir_flag_spec='-R$libdir'
17459	     ;;
17460	   *)
17461	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17462	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17463	     ;;
17464	  esac
17465	fi
17466      else
17467	ld_shlibs=no
17468      fi
17469      ;;
17470
17471    os2*)
17472      hardcode_libdir_flag_spec='-L$libdir'
17473      hardcode_minus_L=yes
17474      allow_undefined_flag=unsupported
17475      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'
17476      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17477      ;;
17478
17479    osf3*)
17480      if test "$GCC" = yes; then
17481	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17482	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'
17483      else
17484	allow_undefined_flag=' -expect_unresolved \*'
17485	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'
17486      fi
17487      archive_cmds_need_lc='no'
17488      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17489      hardcode_libdir_separator=:
17490      ;;
17491
17492    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17493      if test "$GCC" = yes; then
17494	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17495	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'
17496	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17497      else
17498	allow_undefined_flag=' -expect_unresolved \*'
17499	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'
17500	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~
17501	$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'
17502
17503	# Both c and cxx compiler support -rpath directly
17504	hardcode_libdir_flag_spec='-rpath $libdir'
17505      fi
17506      archive_cmds_need_lc='no'
17507      hardcode_libdir_separator=:
17508      ;;
17509
17510    solaris*)
17511      no_undefined_flag=' -z defs'
17512      if test "$GCC" = yes; then
17513	wlarc='${wl}'
17514	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17515	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17516	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17517      else
17518	case `$CC -V 2>&1` in
17519	*"Compilers 5.0"*)
17520	  wlarc=''
17521	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17522	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17523	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17524	  ;;
17525	*)
17526	  wlarc='${wl}'
17527	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17528	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17529	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17530	  ;;
17531	esac
17532      fi
17533      hardcode_libdir_flag_spec='-R$libdir'
17534      hardcode_shlibpath_var=no
17535      case $host_os in
17536      solaris2.[0-5] | solaris2.[0-5].*) ;;
17537      *)
17538	# The compiler driver will combine and reorder linker options,
17539	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17540	# but is careful enough not to reorder.
17541	# Supported since Solaris 2.6 (maybe 2.5.1?)
17542	if test "$GCC" = yes; then
17543	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17544	else
17545	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17546	fi
17547	;;
17548      esac
17549      link_all_deplibs=yes
17550      ;;
17551
17552    sunos4*)
17553      if test "x$host_vendor" = xsequent; then
17554	# Use $CC to link under sequent, because it throws in some extra .o
17555	# files that make .init and .fini sections work.
17556	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17557      else
17558	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17559      fi
17560      hardcode_libdir_flag_spec='-L$libdir'
17561      hardcode_direct=yes
17562      hardcode_minus_L=yes
17563      hardcode_shlibpath_var=no
17564      ;;
17565
17566    sysv4)
17567      case $host_vendor in
17568	sni)
17569	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17570	  hardcode_direct=yes # is this really true???
17571	;;
17572	siemens)
17573	  ## LD is ld it makes a PLAMLIB
17574	  ## CC just makes a GrossModule.
17575	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17576	  reload_cmds='$CC -r -o $output$reload_objs'
17577	  hardcode_direct=no
17578        ;;
17579	motorola)
17580	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17581	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17582	;;
17583      esac
17584      runpath_var='LD_RUN_PATH'
17585      hardcode_shlibpath_var=no
17586      ;;
17587
17588    sysv4.3*)
17589      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17590      hardcode_shlibpath_var=no
17591      export_dynamic_flag_spec='-Bexport'
17592      ;;
17593
17594    sysv4*MP*)
17595      if test -d /usr/nec; then
17596	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17597	hardcode_shlibpath_var=no
17598	runpath_var=LD_RUN_PATH
17599	hardcode_runpath_var=yes
17600	ld_shlibs=yes
17601      fi
17602      ;;
17603
17604    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17605      no_undefined_flag='${wl}-z,text'
17606      archive_cmds_need_lc=no
17607      hardcode_shlibpath_var=no
17608      runpath_var='LD_RUN_PATH'
17609
17610      if test "$GCC" = yes; then
17611	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17612	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17613      else
17614	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17615	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17616      fi
17617      ;;
17618
17619    sysv5* | sco3.2v5* | sco5v6*)
17620      # Note: We can NOT use -z defs as we might desire, because we do not
17621      # link with -lc, and that would cause any symbols used from libc to
17622      # always be unresolved, which means just about no library would
17623      # ever link correctly.  If we're not using GNU ld we use -z text
17624      # though, which does catch some bad symbols but isn't as heavy-handed
17625      # as -z defs.
17626      no_undefined_flag='${wl}-z,text'
17627      allow_undefined_flag='${wl}-z,nodefs'
17628      archive_cmds_need_lc=no
17629      hardcode_shlibpath_var=no
17630      hardcode_libdir_flag_spec='${wl}-R,$libdir'
17631      hardcode_libdir_separator=':'
17632      link_all_deplibs=yes
17633      export_dynamic_flag_spec='${wl}-Bexport'
17634      runpath_var='LD_RUN_PATH'
17635
17636      if test "$GCC" = yes; then
17637	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17638	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17639      else
17640	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17641	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17642      fi
17643      ;;
17644
17645    uts4*)
17646      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17647      hardcode_libdir_flag_spec='-L$libdir'
17648      hardcode_shlibpath_var=no
17649      ;;
17650
17651    *)
17652      ld_shlibs=no
17653      ;;
17654    esac
17655
17656    if test x$host_vendor = xsni; then
17657      case $host in
17658      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17659	export_dynamic_flag_spec='${wl}-Blargedynsym'
17660	;;
17661      esac
17662    fi
17663  fi
17664
17665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17666$as_echo "$ld_shlibs" >&6; }
17667test "$ld_shlibs" = no && can_build_shared=no
17668
17669with_gnu_ld=$with_gnu_ld
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685#
17686# Do we need to explicitly link libc?
17687#
17688case "x$archive_cmds_need_lc" in
17689x|xyes)
17690  # Assume -lc should be added
17691  archive_cmds_need_lc=yes
17692
17693  if test "$enable_shared" = yes && test "$GCC" = yes; then
17694    case $archive_cmds in
17695    *'~'*)
17696      # FIXME: we may have to deal with multi-command sequences.
17697      ;;
17698    '$CC '*)
17699      # Test whether the compiler implicitly links with -lc since on some
17700      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17701      # to ld, don't add -lc before -lgcc.
17702      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17703$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17704if ${lt_cv_archive_cmds_need_lc+:} false; then :
17705  $as_echo_n "(cached) " >&6
17706else
17707  $RM conftest*
17708	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17709
17710	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17711  (eval $ac_compile) 2>&5
17712  ac_status=$?
17713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17714  test $ac_status = 0; } 2>conftest.err; then
17715	  soname=conftest
17716	  lib=conftest
17717	  libobjs=conftest.$ac_objext
17718	  deplibs=
17719	  wl=$lt_prog_compiler_wl
17720	  pic_flag=$lt_prog_compiler_pic
17721	  compiler_flags=-v
17722	  linker_flags=-v
17723	  verstring=
17724	  output_objdir=.
17725	  libname=conftest
17726	  lt_save_allow_undefined_flag=$allow_undefined_flag
17727	  allow_undefined_flag=
17728	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17729  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17730  ac_status=$?
17731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17732  test $ac_status = 0; }
17733	  then
17734	    lt_cv_archive_cmds_need_lc=no
17735	  else
17736	    lt_cv_archive_cmds_need_lc=yes
17737	  fi
17738	  allow_undefined_flag=$lt_save_allow_undefined_flag
17739	else
17740	  cat conftest.err 1>&5
17741	fi
17742	$RM conftest*
17743
17744fi
17745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17746$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17747      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17748      ;;
17749    esac
17750  fi
17751  ;;
17752esac
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17911$as_echo_n "checking dynamic linker characteristics... " >&6; }
17912
17913if test "$GCC" = yes; then
17914  case $host_os in
17915    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17916    *) lt_awk_arg="/^libraries:/" ;;
17917  esac
17918  case $host_os in
17919    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17920    *) lt_sed_strip_eq="s,=/,/,g" ;;
17921  esac
17922  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17923  case $lt_search_path_spec in
17924  *\;*)
17925    # if the path contains ";" then we assume it to be the separator
17926    # otherwise default to the standard path separator (i.e. ":") - it is
17927    # assumed that no part of a normal pathname contains ";" but that should
17928    # okay in the real world where ";" in dirpaths is itself problematic.
17929    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17930    ;;
17931  *)
17932    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17933    ;;
17934  esac
17935  # Ok, now we have the path, separated by spaces, we can step through it
17936  # and add multilib dir if necessary.
17937  lt_tmp_lt_search_path_spec=
17938  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17939  for lt_sys_path in $lt_search_path_spec; do
17940    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17941      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17942    else
17943      test -d "$lt_sys_path" && \
17944	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17945    fi
17946  done
17947  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17948BEGIN {RS=" "; FS="/|\n";} {
17949  lt_foo="";
17950  lt_count=0;
17951  for (lt_i = NF; lt_i > 0; lt_i--) {
17952    if ($lt_i != "" && $lt_i != ".") {
17953      if ($lt_i == "..") {
17954        lt_count++;
17955      } else {
17956        if (lt_count == 0) {
17957          lt_foo="/" $lt_i lt_foo;
17958        } else {
17959          lt_count--;
17960        }
17961      }
17962    }
17963  }
17964  if (lt_foo != "") { lt_freq[lt_foo]++; }
17965  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17966}'`
17967  # AWK program above erroneously prepends '/' to C:/dos/paths
17968  # for these hosts.
17969  case $host_os in
17970    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17971      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17972  esac
17973  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17974else
17975  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17976fi
17977library_names_spec=
17978libname_spec='lib$name'
17979soname_spec=
17980shrext_cmds=".so"
17981postinstall_cmds=
17982postuninstall_cmds=
17983finish_cmds=
17984finish_eval=
17985shlibpath_var=
17986shlibpath_overrides_runpath=unknown
17987version_type=none
17988dynamic_linker="$host_os ld.so"
17989sys_lib_dlsearch_path_spec="/lib /usr/lib"
17990need_lib_prefix=unknown
17991hardcode_into_libs=no
17992
17993# when you set need_version to no, make sure it does not cause -set_version
17994# flags to be left without arguments
17995need_version=unknown
17996
17997case $host_os in
17998aix3*)
17999  version_type=linux
18000  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18001  shlibpath_var=LIBPATH
18002
18003  # AIX 3 has no versioning support, so we append a major version to the name.
18004  soname_spec='${libname}${release}${shared_ext}$major'
18005  ;;
18006
18007aix[4-9]*)
18008  version_type=linux
18009  need_lib_prefix=no
18010  need_version=no
18011  hardcode_into_libs=yes
18012  if test "$host_cpu" = ia64; then
18013    # AIX 5 supports IA64
18014    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18015    shlibpath_var=LD_LIBRARY_PATH
18016  else
18017    # With GCC up to 2.95.x, collect2 would create an import file
18018    # for dependence libraries.  The import file would start with
18019    # the line `#! .'.  This would cause the generated library to
18020    # depend on `.', always an invalid library.  This was fixed in
18021    # development snapshots of GCC prior to 3.0.
18022    case $host_os in
18023      aix4 | aix4.[01] | aix4.[01].*)
18024      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18025	   echo ' yes '
18026	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18027	:
18028      else
18029	can_build_shared=no
18030      fi
18031      ;;
18032    esac
18033    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18034    # soname into executable. Probably we can add versioning support to
18035    # collect2, so additional links can be useful in future.
18036    if test "$aix_use_runtimelinking" = yes; then
18037      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18038      # instead of lib<name>.a to let people know that these are not
18039      # typical AIX shared libraries.
18040      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18041    else
18042      # We preserve .a as extension for shared libraries through AIX4.2
18043      # and later when we are not doing run time linking.
18044      library_names_spec='${libname}${release}.a $libname.a'
18045      soname_spec='${libname}${release}${shared_ext}$major'
18046    fi
18047    shlibpath_var=LIBPATH
18048  fi
18049  ;;
18050
18051amigaos*)
18052  case $host_cpu in
18053  powerpc)
18054    # Since July 2007 AmigaOS4 officially supports .so libraries.
18055    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18056    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18057    ;;
18058  m68k)
18059    library_names_spec='$libname.ixlibrary $libname.a'
18060    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18061    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'
18062    ;;
18063  esac
18064  ;;
18065
18066beos*)
18067  library_names_spec='${libname}${shared_ext}'
18068  dynamic_linker="$host_os ld.so"
18069  shlibpath_var=LIBRARY_PATH
18070  ;;
18071
18072bsdi[45]*)
18073  version_type=linux
18074  need_version=no
18075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18076  soname_spec='${libname}${release}${shared_ext}$major'
18077  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18078  shlibpath_var=LD_LIBRARY_PATH
18079  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18080  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18081  # the default ld.so.conf also contains /usr/contrib/lib and
18082  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18083  # libtool to hard-code these into programs
18084  ;;
18085
18086cygwin* | mingw* | pw32* | cegcc*)
18087  version_type=windows
18088  shrext_cmds=".dll"
18089  need_version=no
18090  need_lib_prefix=no
18091
18092  case $GCC,$host_os in
18093  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18094    library_names_spec='$libname.dll.a'
18095    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18096    postinstall_cmds='base_file=`basename \${file}`~
18097      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18098      dldir=$destdir/`dirname \$dlpath`~
18099      test -d \$dldir || mkdir -p \$dldir~
18100      $install_prog $dir/$dlname \$dldir/$dlname~
18101      chmod a+x \$dldir/$dlname~
18102      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18103        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18104      fi'
18105    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18106      dlpath=$dir/\$dldll~
18107       $RM \$dlpath'
18108    shlibpath_overrides_runpath=yes
18109
18110    case $host_os in
18111    cygwin*)
18112      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18113      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18114
18115      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18116      ;;
18117    mingw* | cegcc*)
18118      # MinGW DLLs use traditional 'lib' prefix
18119      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18120      ;;
18121    pw32*)
18122      # pw32 DLLs use 'pw' prefix rather than 'lib'
18123      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18124      ;;
18125    esac
18126    ;;
18127
18128  *)
18129    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18130    ;;
18131  esac
18132  dynamic_linker='Win32 ld.exe'
18133  # FIXME: first we should search . and the directory the executable is in
18134  shlibpath_var=PATH
18135  ;;
18136
18137darwin* | rhapsody*)
18138  dynamic_linker="$host_os dyld"
18139  version_type=darwin
18140  need_lib_prefix=no
18141  need_version=no
18142  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18143  soname_spec='${libname}${release}${major}$shared_ext'
18144  shlibpath_overrides_runpath=yes
18145  shlibpath_var=DYLD_LIBRARY_PATH
18146  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18147
18148  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18149  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18150  ;;
18151
18152dgux*)
18153  version_type=linux
18154  need_lib_prefix=no
18155  need_version=no
18156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18157  soname_spec='${libname}${release}${shared_ext}$major'
18158  shlibpath_var=LD_LIBRARY_PATH
18159  ;;
18160
18161freebsd* | dragonfly*)
18162  # DragonFly does not have aout.  When/if they implement a new
18163  # versioning mechanism, adjust this.
18164  if test -x /usr/bin/objformat; then
18165    objformat=`/usr/bin/objformat`
18166  else
18167    case $host_os in
18168    freebsd[23].*) objformat=aout ;;
18169    *) objformat=elf ;;
18170    esac
18171  fi
18172  version_type=freebsd-$objformat
18173  case $version_type in
18174    freebsd-elf*)
18175      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18176      need_version=no
18177      need_lib_prefix=no
18178      ;;
18179    freebsd-*)
18180      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18181      need_version=yes
18182      ;;
18183  esac
18184  shlibpath_var=LD_LIBRARY_PATH
18185  case $host_os in
18186  freebsd2.*)
18187    shlibpath_overrides_runpath=yes
18188    ;;
18189  freebsd3.[01]* | freebsdelf3.[01]*)
18190    shlibpath_overrides_runpath=yes
18191    hardcode_into_libs=yes
18192    ;;
18193  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18194  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18195    shlibpath_overrides_runpath=no
18196    hardcode_into_libs=yes
18197    ;;
18198  *) # from 4.6 on, and DragonFly
18199    shlibpath_overrides_runpath=yes
18200    hardcode_into_libs=yes
18201    ;;
18202  esac
18203  ;;
18204
18205gnu*)
18206  version_type=linux
18207  need_lib_prefix=no
18208  need_version=no
18209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18210  soname_spec='${libname}${release}${shared_ext}$major'
18211  shlibpath_var=LD_LIBRARY_PATH
18212  hardcode_into_libs=yes
18213  ;;
18214
18215haiku*)
18216  version_type=linux
18217  need_lib_prefix=no
18218  need_version=no
18219  dynamic_linker="$host_os runtime_loader"
18220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18221  soname_spec='${libname}${release}${shared_ext}$major'
18222  shlibpath_var=LIBRARY_PATH
18223  shlibpath_overrides_runpath=yes
18224  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18225  hardcode_into_libs=yes
18226  ;;
18227
18228hpux9* | hpux10* | hpux11*)
18229  # Give a soname corresponding to the major version so that dld.sl refuses to
18230  # link against other versions.
18231  version_type=sunos
18232  need_lib_prefix=no
18233  need_version=no
18234  case $host_cpu in
18235  ia64*)
18236    shrext_cmds='.so'
18237    hardcode_into_libs=yes
18238    dynamic_linker="$host_os dld.so"
18239    shlibpath_var=LD_LIBRARY_PATH
18240    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18241    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18242    soname_spec='${libname}${release}${shared_ext}$major'
18243    if test "X$HPUX_IA64_MODE" = X32; then
18244      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18245    else
18246      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18247    fi
18248    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18249    ;;
18250  hppa*64*)
18251    shrext_cmds='.sl'
18252    hardcode_into_libs=yes
18253    dynamic_linker="$host_os dld.sl"
18254    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18255    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18256    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18257    soname_spec='${libname}${release}${shared_ext}$major'
18258    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18259    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18260    ;;
18261  *)
18262    shrext_cmds='.sl'
18263    dynamic_linker="$host_os dld.sl"
18264    shlibpath_var=SHLIB_PATH
18265    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18266    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18267    soname_spec='${libname}${release}${shared_ext}$major'
18268    ;;
18269  esac
18270  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18271  postinstall_cmds='chmod 555 $lib'
18272  # or fails outright, so override atomically:
18273  install_override_mode=555
18274  ;;
18275
18276interix[3-9]*)
18277  version_type=linux
18278  need_lib_prefix=no
18279  need_version=no
18280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18281  soname_spec='${libname}${release}${shared_ext}$major'
18282  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18283  shlibpath_var=LD_LIBRARY_PATH
18284  shlibpath_overrides_runpath=no
18285  hardcode_into_libs=yes
18286  ;;
18287
18288irix5* | irix6* | nonstopux*)
18289  case $host_os in
18290    nonstopux*) version_type=nonstopux ;;
18291    *)
18292	if test "$lt_cv_prog_gnu_ld" = yes; then
18293		version_type=linux
18294	else
18295		version_type=irix
18296	fi ;;
18297  esac
18298  need_lib_prefix=no
18299  need_version=no
18300  soname_spec='${libname}${release}${shared_ext}$major'
18301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18302  case $host_os in
18303  irix5* | nonstopux*)
18304    libsuff= shlibsuff=
18305    ;;
18306  *)
18307    case $LD in # libtool.m4 will add one of these switches to LD
18308    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18309      libsuff= shlibsuff= libmagic=32-bit;;
18310    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18311      libsuff=32 shlibsuff=N32 libmagic=N32;;
18312    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18313      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18314    *) libsuff= shlibsuff= libmagic=never-match;;
18315    esac
18316    ;;
18317  esac
18318  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18319  shlibpath_overrides_runpath=no
18320  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18321  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18322  hardcode_into_libs=yes
18323  ;;
18324
18325# No shared lib support for Linux oldld, aout, or coff.
18326linux*oldld* | linux*aout* | linux*coff*)
18327  dynamic_linker=no
18328  ;;
18329
18330# This must be Linux ELF.
18331
18332# uclinux* changes (here and below) have been submitted to the libtool
18333# project, but have not yet been accepted: they are GCC-local changes
18334# for the time being.  (See
18335# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18336linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
18337  version_type=linux
18338  need_lib_prefix=no
18339  need_version=no
18340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18341  soname_spec='${libname}${release}${shared_ext}$major'
18342  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18343  shlibpath_var=LD_LIBRARY_PATH
18344  shlibpath_overrides_runpath=no
18345
18346  # Some binutils ld are patched to set DT_RUNPATH
18347  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18348  $as_echo_n "(cached) " >&6
18349else
18350  lt_cv_shlibpath_overrides_runpath=no
18351    save_LDFLAGS=$LDFLAGS
18352    save_libdir=$libdir
18353    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18354	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356/* end confdefs.h.  */
18357
18358int
18359main ()
18360{
18361
18362  ;
18363  return 0;
18364}
18365_ACEOF
18366if ac_fn_c_try_link "$LINENO"; then :
18367  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18368  lt_cv_shlibpath_overrides_runpath=yes
18369fi
18370fi
18371rm -f core conftest.err conftest.$ac_objext \
18372    conftest$ac_exeext conftest.$ac_ext
18373    LDFLAGS=$save_LDFLAGS
18374    libdir=$save_libdir
18375
18376fi
18377
18378  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18379
18380  # This implies no fast_install, which is unacceptable.
18381  # Some rework will be needed to allow for fast_install
18382  # before this can be enabled.
18383  hardcode_into_libs=yes
18384
18385  # Append ld.so.conf contents to the search path
18386  if test -f /etc/ld.so.conf; then
18387    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' ' '`
18388    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18389  fi
18390
18391  # We used to test for /lib/ld.so.1 and disable shared libraries on
18392  # powerpc, because MkLinux only supported shared libraries with the
18393  # GNU dynamic linker.  Since this was broken with cross compilers,
18394  # most powerpc-linux boxes support dynamic linking these days and
18395  # people can always --disable-shared, the test was removed, and we
18396  # assume the GNU/Linux dynamic linker is in use.
18397  dynamic_linker='GNU/Linux ld.so'
18398  ;;
18399
18400netbsd*)
18401  version_type=sunos
18402  need_lib_prefix=no
18403  need_version=no
18404  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18405    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18406    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18407    dynamic_linker='NetBSD (a.out) ld.so'
18408  else
18409    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18410    soname_spec='${libname}${release}${shared_ext}$major'
18411    dynamic_linker='NetBSD ld.elf_so'
18412  fi
18413  shlibpath_var=LD_LIBRARY_PATH
18414  shlibpath_overrides_runpath=yes
18415  hardcode_into_libs=yes
18416  ;;
18417
18418newsos6)
18419  version_type=linux
18420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18421  shlibpath_var=LD_LIBRARY_PATH
18422  shlibpath_overrides_runpath=yes
18423  ;;
18424
18425*nto* | *qnx*)
18426  version_type=qnx
18427  need_lib_prefix=no
18428  need_version=no
18429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18430  soname_spec='${libname}${release}${shared_ext}$major'
18431  shlibpath_var=LD_LIBRARY_PATH
18432  shlibpath_overrides_runpath=no
18433  hardcode_into_libs=yes
18434  dynamic_linker='ldqnx.so'
18435  ;;
18436
18437openbsd*)
18438  version_type=sunos
18439  sys_lib_dlsearch_path_spec="/usr/lib"
18440  need_lib_prefix=no
18441  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18442  case $host_os in
18443    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
18444    *)				need_version=no  ;;
18445  esac
18446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18447  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18448  shlibpath_var=LD_LIBRARY_PATH
18449  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18450    case $host_os in
18451      openbsd2.[89] | openbsd2.[89].*)
18452	shlibpath_overrides_runpath=no
18453	;;
18454      *)
18455	shlibpath_overrides_runpath=yes
18456	;;
18457      esac
18458  else
18459    shlibpath_overrides_runpath=yes
18460  fi
18461  ;;
18462
18463os2*)
18464  libname_spec='$name'
18465  shrext_cmds=".dll"
18466  need_lib_prefix=no
18467  library_names_spec='$libname${shared_ext} $libname.a'
18468  dynamic_linker='OS/2 ld.exe'
18469  shlibpath_var=LIBPATH
18470  ;;
18471
18472osf3* | osf4* | osf5*)
18473  version_type=osf
18474  need_lib_prefix=no
18475  need_version=no
18476  soname_spec='${libname}${release}${shared_ext}$major'
18477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18478  shlibpath_var=LD_LIBRARY_PATH
18479  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18480  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18481  ;;
18482
18483rdos*)
18484  dynamic_linker=no
18485  ;;
18486
18487solaris*)
18488  version_type=linux
18489  need_lib_prefix=no
18490  need_version=no
18491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18492  soname_spec='${libname}${release}${shared_ext}$major'
18493  shlibpath_var=LD_LIBRARY_PATH
18494  shlibpath_overrides_runpath=yes
18495  hardcode_into_libs=yes
18496  # ldd complains unless libraries are executable
18497  postinstall_cmds='chmod +x $lib'
18498  ;;
18499
18500sunos4*)
18501  version_type=sunos
18502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18503  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18504  shlibpath_var=LD_LIBRARY_PATH
18505  shlibpath_overrides_runpath=yes
18506  if test "$with_gnu_ld" = yes; then
18507    need_lib_prefix=no
18508  fi
18509  need_version=yes
18510  ;;
18511
18512sysv4 | sysv4.3*)
18513  version_type=linux
18514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18515  soname_spec='${libname}${release}${shared_ext}$major'
18516  shlibpath_var=LD_LIBRARY_PATH
18517  case $host_vendor in
18518    sni)
18519      shlibpath_overrides_runpath=no
18520      need_lib_prefix=no
18521      runpath_var=LD_RUN_PATH
18522      ;;
18523    siemens)
18524      need_lib_prefix=no
18525      ;;
18526    motorola)
18527      need_lib_prefix=no
18528      need_version=no
18529      shlibpath_overrides_runpath=no
18530      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18531      ;;
18532  esac
18533  ;;
18534
18535sysv4*MP*)
18536  if test -d /usr/nec ;then
18537    version_type=linux
18538    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18539    soname_spec='$libname${shared_ext}.$major'
18540    shlibpath_var=LD_LIBRARY_PATH
18541  fi
18542  ;;
18543
18544sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18545  version_type=freebsd-elf
18546  need_lib_prefix=no
18547  need_version=no
18548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18549  soname_spec='${libname}${release}${shared_ext}$major'
18550  shlibpath_var=LD_LIBRARY_PATH
18551  shlibpath_overrides_runpath=yes
18552  hardcode_into_libs=yes
18553  if test "$with_gnu_ld" = yes; then
18554    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18555  else
18556    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18557    case $host_os in
18558      sco3.2v5*)
18559        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18560	;;
18561    esac
18562  fi
18563  sys_lib_dlsearch_path_spec='/usr/lib'
18564  ;;
18565
18566tpf*)
18567  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18568  version_type=linux
18569  need_lib_prefix=no
18570  need_version=no
18571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18572  shlibpath_var=LD_LIBRARY_PATH
18573  shlibpath_overrides_runpath=no
18574  hardcode_into_libs=yes
18575  ;;
18576
18577uts4*)
18578  version_type=linux
18579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18580  soname_spec='${libname}${release}${shared_ext}$major'
18581  shlibpath_var=LD_LIBRARY_PATH
18582  ;;
18583
18584*)
18585  dynamic_linker=no
18586  ;;
18587esac
18588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18589$as_echo "$dynamic_linker" >&6; }
18590test "$dynamic_linker" = no && can_build_shared=no
18591
18592variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18593if test "$GCC" = yes; then
18594  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18595fi
18596
18597if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18598  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18599fi
18600if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18601  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18602fi
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18696$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18697hardcode_action=
18698if test -n "$hardcode_libdir_flag_spec" ||
18699   test -n "$runpath_var" ||
18700   test "X$hardcode_automatic" = "Xyes" ; then
18701
18702  # We can hardcode non-existent directories.
18703  if test "$hardcode_direct" != no &&
18704     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18705     # have to relink, otherwise we might link with an installed library
18706     # when we should be linking with a yet-to-be-installed one
18707     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18708     test "$hardcode_minus_L" != no; then
18709    # Linking always hardcodes the temporary library directory.
18710    hardcode_action=relink
18711  else
18712    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18713    hardcode_action=immediate
18714  fi
18715else
18716  # We cannot hardcode anything, or else we can only hardcode existing
18717  # directories.
18718  hardcode_action=unsupported
18719fi
18720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18721$as_echo "$hardcode_action" >&6; }
18722
18723if test "$hardcode_action" = relink ||
18724   test "$inherit_rpath" = yes; then
18725  # Fast installation is not supported
18726  enable_fast_install=no
18727elif test "$shlibpath_overrides_runpath" = yes ||
18728     test "$enable_shared" = no; then
18729  # Fast installation is not necessary
18730  enable_fast_install=needless
18731fi
18732
18733
18734
18735
18736
18737
18738  if test "x$enable_dlopen" != xyes; then
18739  enable_dlopen=unknown
18740  enable_dlopen_self=unknown
18741  enable_dlopen_self_static=unknown
18742else
18743  lt_cv_dlopen=no
18744  lt_cv_dlopen_libs=
18745
18746  case $host_os in
18747  beos*)
18748    lt_cv_dlopen="load_add_on"
18749    lt_cv_dlopen_libs=
18750    lt_cv_dlopen_self=yes
18751    ;;
18752
18753  mingw* | pw32* | cegcc*)
18754    lt_cv_dlopen="LoadLibrary"
18755    lt_cv_dlopen_libs=
18756    ;;
18757
18758  cygwin*)
18759    lt_cv_dlopen="dlopen"
18760    lt_cv_dlopen_libs=
18761    ;;
18762
18763  darwin*)
18764  # if libdl is installed we need to link against it
18765    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18766$as_echo_n "checking for dlopen in -ldl... " >&6; }
18767if ${ac_cv_lib_dl_dlopen+:} false; then :
18768  $as_echo_n "(cached) " >&6
18769else
18770  ac_check_lib_save_LIBS=$LIBS
18771LIBS="-ldl  $LIBS"
18772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18773/* end confdefs.h.  */
18774
18775/* Override any GCC internal prototype to avoid an error.
18776   Use char because int might match the return type of a GCC
18777   builtin and then its argument prototype would still apply.  */
18778#ifdef __cplusplus
18779extern "C"
18780#endif
18781char dlopen ();
18782int
18783main ()
18784{
18785return dlopen ();
18786  ;
18787  return 0;
18788}
18789_ACEOF
18790if ac_fn_c_try_link "$LINENO"; then :
18791  ac_cv_lib_dl_dlopen=yes
18792else
18793  ac_cv_lib_dl_dlopen=no
18794fi
18795rm -f core conftest.err conftest.$ac_objext \
18796    conftest$ac_exeext conftest.$ac_ext
18797LIBS=$ac_check_lib_save_LIBS
18798fi
18799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18800$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18801if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18802  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18803else
18804
18805    lt_cv_dlopen="dyld"
18806    lt_cv_dlopen_libs=
18807    lt_cv_dlopen_self=yes
18808
18809fi
18810
18811    ;;
18812
18813  *)
18814    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18815if test "x$ac_cv_func_shl_load" = xyes; then :
18816  lt_cv_dlopen="shl_load"
18817else
18818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18819$as_echo_n "checking for shl_load in -ldld... " >&6; }
18820if ${ac_cv_lib_dld_shl_load+:} false; then :
18821  $as_echo_n "(cached) " >&6
18822else
18823  ac_check_lib_save_LIBS=$LIBS
18824LIBS="-ldld  $LIBS"
18825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18826/* end confdefs.h.  */
18827
18828/* Override any GCC internal prototype to avoid an error.
18829   Use char because int might match the return type of a GCC
18830   builtin and then its argument prototype would still apply.  */
18831#ifdef __cplusplus
18832extern "C"
18833#endif
18834char shl_load ();
18835int
18836main ()
18837{
18838return shl_load ();
18839  ;
18840  return 0;
18841}
18842_ACEOF
18843if ac_fn_c_try_link "$LINENO"; then :
18844  ac_cv_lib_dld_shl_load=yes
18845else
18846  ac_cv_lib_dld_shl_load=no
18847fi
18848rm -f core conftest.err conftest.$ac_objext \
18849    conftest$ac_exeext conftest.$ac_ext
18850LIBS=$ac_check_lib_save_LIBS
18851fi
18852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18853$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18854if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18855  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18856else
18857  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18858if test "x$ac_cv_func_dlopen" = xyes; then :
18859  lt_cv_dlopen="dlopen"
18860else
18861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18862$as_echo_n "checking for dlopen in -ldl... " >&6; }
18863if ${ac_cv_lib_dl_dlopen+:} false; then :
18864  $as_echo_n "(cached) " >&6
18865else
18866  ac_check_lib_save_LIBS=$LIBS
18867LIBS="-ldl  $LIBS"
18868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18869/* end confdefs.h.  */
18870
18871/* Override any GCC internal prototype to avoid an error.
18872   Use char because int might match the return type of a GCC
18873   builtin and then its argument prototype would still apply.  */
18874#ifdef __cplusplus
18875extern "C"
18876#endif
18877char dlopen ();
18878int
18879main ()
18880{
18881return dlopen ();
18882  ;
18883  return 0;
18884}
18885_ACEOF
18886if ac_fn_c_try_link "$LINENO"; then :
18887  ac_cv_lib_dl_dlopen=yes
18888else
18889  ac_cv_lib_dl_dlopen=no
18890fi
18891rm -f core conftest.err conftest.$ac_objext \
18892    conftest$ac_exeext conftest.$ac_ext
18893LIBS=$ac_check_lib_save_LIBS
18894fi
18895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18896$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18897if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18898  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18899else
18900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18901$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18902if ${ac_cv_lib_svld_dlopen+:} false; then :
18903  $as_echo_n "(cached) " >&6
18904else
18905  ac_check_lib_save_LIBS=$LIBS
18906LIBS="-lsvld  $LIBS"
18907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18908/* end confdefs.h.  */
18909
18910/* Override any GCC internal prototype to avoid an error.
18911   Use char because int might match the return type of a GCC
18912   builtin and then its argument prototype would still apply.  */
18913#ifdef __cplusplus
18914extern "C"
18915#endif
18916char dlopen ();
18917int
18918main ()
18919{
18920return dlopen ();
18921  ;
18922  return 0;
18923}
18924_ACEOF
18925if ac_fn_c_try_link "$LINENO"; then :
18926  ac_cv_lib_svld_dlopen=yes
18927else
18928  ac_cv_lib_svld_dlopen=no
18929fi
18930rm -f core conftest.err conftest.$ac_objext \
18931    conftest$ac_exeext conftest.$ac_ext
18932LIBS=$ac_check_lib_save_LIBS
18933fi
18934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18935$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18936if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18937  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18938else
18939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18940$as_echo_n "checking for dld_link in -ldld... " >&6; }
18941if ${ac_cv_lib_dld_dld_link+:} false; then :
18942  $as_echo_n "(cached) " >&6
18943else
18944  ac_check_lib_save_LIBS=$LIBS
18945LIBS="-ldld  $LIBS"
18946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947/* end confdefs.h.  */
18948
18949/* Override any GCC internal prototype to avoid an error.
18950   Use char because int might match the return type of a GCC
18951   builtin and then its argument prototype would still apply.  */
18952#ifdef __cplusplus
18953extern "C"
18954#endif
18955char dld_link ();
18956int
18957main ()
18958{
18959return dld_link ();
18960  ;
18961  return 0;
18962}
18963_ACEOF
18964if ac_fn_c_try_link "$LINENO"; then :
18965  ac_cv_lib_dld_dld_link=yes
18966else
18967  ac_cv_lib_dld_dld_link=no
18968fi
18969rm -f core conftest.err conftest.$ac_objext \
18970    conftest$ac_exeext conftest.$ac_ext
18971LIBS=$ac_check_lib_save_LIBS
18972fi
18973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18974$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18975if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18976  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18977fi
18978
18979
18980fi
18981
18982
18983fi
18984
18985
18986fi
18987
18988
18989fi
18990
18991
18992fi
18993
18994    ;;
18995  esac
18996
18997  if test "x$lt_cv_dlopen" != xno; then
18998    enable_dlopen=yes
18999  else
19000    enable_dlopen=no
19001  fi
19002
19003  case $lt_cv_dlopen in
19004  dlopen)
19005    save_CPPFLAGS="$CPPFLAGS"
19006    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19007
19008    save_LDFLAGS="$LDFLAGS"
19009    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19010
19011    save_LIBS="$LIBS"
19012    LIBS="$lt_cv_dlopen_libs $LIBS"
19013
19014    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19015$as_echo_n "checking whether a program can dlopen itself... " >&6; }
19016if ${lt_cv_dlopen_self+:} false; then :
19017  $as_echo_n "(cached) " >&6
19018else
19019  	  if test "$cross_compiling" = yes; then :
19020  lt_cv_dlopen_self=cross
19021else
19022  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19023  lt_status=$lt_dlunknown
19024  cat > conftest.$ac_ext <<_LT_EOF
19025#line 19025 "configure"
19026#include "confdefs.h"
19027
19028#if HAVE_DLFCN_H
19029#include <dlfcn.h>
19030#endif
19031
19032#include <stdio.h>
19033
19034#ifdef RTLD_GLOBAL
19035#  define LT_DLGLOBAL		RTLD_GLOBAL
19036#else
19037#  ifdef DL_GLOBAL
19038#    define LT_DLGLOBAL		DL_GLOBAL
19039#  else
19040#    define LT_DLGLOBAL		0
19041#  endif
19042#endif
19043
19044/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19045   find out it does not work in some platform. */
19046#ifndef LT_DLLAZY_OR_NOW
19047#  ifdef RTLD_LAZY
19048#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19049#  else
19050#    ifdef DL_LAZY
19051#      define LT_DLLAZY_OR_NOW		DL_LAZY
19052#    else
19053#      ifdef RTLD_NOW
19054#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19055#      else
19056#        ifdef DL_NOW
19057#          define LT_DLLAZY_OR_NOW	DL_NOW
19058#        else
19059#          define LT_DLLAZY_OR_NOW	0
19060#        endif
19061#      endif
19062#    endif
19063#  endif
19064#endif
19065
19066/* When -fvisbility=hidden is used, assume the code has been annotated
19067   correspondingly for the symbols needed.  */
19068#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19069void fnord () __attribute__((visibility("default")));
19070#endif
19071
19072void fnord () { int i=42; }
19073int main ()
19074{
19075  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19076  int status = $lt_dlunknown;
19077
19078  if (self)
19079    {
19080      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19081      else
19082        {
19083	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19084          else puts (dlerror ());
19085	}
19086      /* dlclose (self); */
19087    }
19088  else
19089    puts (dlerror ());
19090
19091  return status;
19092}
19093_LT_EOF
19094  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19095  (eval $ac_link) 2>&5
19096  ac_status=$?
19097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19098  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19099    (./conftest; exit; ) >&5 2>/dev/null
19100    lt_status=$?
19101    case x$lt_status in
19102      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19103      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19104      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19105    esac
19106  else :
19107    # compilation failed
19108    lt_cv_dlopen_self=no
19109  fi
19110fi
19111rm -fr conftest*
19112
19113
19114fi
19115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19116$as_echo "$lt_cv_dlopen_self" >&6; }
19117
19118    if test "x$lt_cv_dlopen_self" = xyes; then
19119      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19120      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19121$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19122if ${lt_cv_dlopen_self_static+:} false; then :
19123  $as_echo_n "(cached) " >&6
19124else
19125  	  if test "$cross_compiling" = yes; then :
19126  lt_cv_dlopen_self_static=cross
19127else
19128  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19129  lt_status=$lt_dlunknown
19130  cat > conftest.$ac_ext <<_LT_EOF
19131#line 19131 "configure"
19132#include "confdefs.h"
19133
19134#if HAVE_DLFCN_H
19135#include <dlfcn.h>
19136#endif
19137
19138#include <stdio.h>
19139
19140#ifdef RTLD_GLOBAL
19141#  define LT_DLGLOBAL		RTLD_GLOBAL
19142#else
19143#  ifdef DL_GLOBAL
19144#    define LT_DLGLOBAL		DL_GLOBAL
19145#  else
19146#    define LT_DLGLOBAL		0
19147#  endif
19148#endif
19149
19150/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19151   find out it does not work in some platform. */
19152#ifndef LT_DLLAZY_OR_NOW
19153#  ifdef RTLD_LAZY
19154#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19155#  else
19156#    ifdef DL_LAZY
19157#      define LT_DLLAZY_OR_NOW		DL_LAZY
19158#    else
19159#      ifdef RTLD_NOW
19160#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19161#      else
19162#        ifdef DL_NOW
19163#          define LT_DLLAZY_OR_NOW	DL_NOW
19164#        else
19165#          define LT_DLLAZY_OR_NOW	0
19166#        endif
19167#      endif
19168#    endif
19169#  endif
19170#endif
19171
19172/* When -fvisbility=hidden is used, assume the code has been annotated
19173   correspondingly for the symbols needed.  */
19174#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19175void fnord () __attribute__((visibility("default")));
19176#endif
19177
19178void fnord () { int i=42; }
19179int main ()
19180{
19181  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19182  int status = $lt_dlunknown;
19183
19184  if (self)
19185    {
19186      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19187      else
19188        {
19189	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19190          else puts (dlerror ());
19191	}
19192      /* dlclose (self); */
19193    }
19194  else
19195    puts (dlerror ());
19196
19197  return status;
19198}
19199_LT_EOF
19200  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19201  (eval $ac_link) 2>&5
19202  ac_status=$?
19203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19204  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19205    (./conftest; exit; ) >&5 2>/dev/null
19206    lt_status=$?
19207    case x$lt_status in
19208      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19209      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19210      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19211    esac
19212  else :
19213    # compilation failed
19214    lt_cv_dlopen_self_static=no
19215  fi
19216fi
19217rm -fr conftest*
19218
19219
19220fi
19221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19222$as_echo "$lt_cv_dlopen_self_static" >&6; }
19223    fi
19224
19225    CPPFLAGS="$save_CPPFLAGS"
19226    LDFLAGS="$save_LDFLAGS"
19227    LIBS="$save_LIBS"
19228    ;;
19229  esac
19230
19231  case $lt_cv_dlopen_self in
19232  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19233  *) enable_dlopen_self=unknown ;;
19234  esac
19235
19236  case $lt_cv_dlopen_self_static in
19237  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19238  *) enable_dlopen_self_static=unknown ;;
19239  esac
19240fi
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258striplib=
19259old_striplib=
19260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19261$as_echo_n "checking whether stripping libraries is possible... " >&6; }
19262if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19263  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19264  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19266$as_echo "yes" >&6; }
19267else
19268# FIXME - insert some real tests, host_os isn't really good enough
19269  case $host_os in
19270  darwin*)
19271    if test -n "$STRIP" ; then
19272      striplib="$STRIP -x"
19273      old_striplib="$STRIP -S"
19274      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19275$as_echo "yes" >&6; }
19276    else
19277      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19278$as_echo "no" >&6; }
19279    fi
19280    ;;
19281  *)
19282    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19283$as_echo "no" >&6; }
19284    ;;
19285  esac
19286fi
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299  # Report which library types will actually be built
19300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19301$as_echo_n "checking if libtool supports shared libraries... " >&6; }
19302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19303$as_echo "$can_build_shared" >&6; }
19304
19305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19306$as_echo_n "checking whether to build shared libraries... " >&6; }
19307  test "$can_build_shared" = "no" && enable_shared=no
19308
19309  # On AIX, shared libraries and static libraries use the same namespace, and
19310  # are all built from PIC.
19311  case $host_os in
19312  aix3*)
19313    test "$enable_shared" = yes && enable_static=no
19314    if test -n "$RANLIB"; then
19315      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19316      postinstall_cmds='$RANLIB $lib'
19317    fi
19318    ;;
19319
19320  aix[4-9]*)
19321    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19322      test "$enable_shared" = yes && enable_static=no
19323    fi
19324    ;;
19325  esac
19326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19327$as_echo "$enable_shared" >&6; }
19328
19329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19330$as_echo_n "checking whether to build static libraries... " >&6; }
19331  # Make sure either enable_shared or enable_static is yes.
19332  test "$enable_shared" = yes || enable_static=yes
19333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19334$as_echo "$enable_static" >&6; }
19335
19336
19337
19338
19339fi
19340ac_ext=cpp
19341ac_cpp='$CXXCPP $CPPFLAGS'
19342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19345
19346CC="$lt_save_CC"
19347
19348      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19349    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19350    (test "X$CXX" != "Xg++"))) ; then
19351  ac_ext=cpp
19352ac_cpp='$CXXCPP $CPPFLAGS'
19353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19357$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19358if test -z "$CXXCPP"; then
19359  if ${ac_cv_prog_CXXCPP+:} false; then :
19360  $as_echo_n "(cached) " >&6
19361else
19362      # Double quotes because CXXCPP needs to be expanded
19363    for CXXCPP in "$CXX -E" "/lib/cpp"
19364    do
19365      ac_preproc_ok=false
19366for ac_cxx_preproc_warn_flag in '' yes
19367do
19368  # Use a header file that comes with gcc, so configuring glibc
19369  # with a fresh cross-compiler works.
19370  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19371  # <limits.h> exists even on freestanding compilers.
19372  # On the NeXT, cc -E runs the code through the compiler's parser,
19373  # not just through cpp. "Syntax error" is here to catch this case.
19374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19375/* end confdefs.h.  */
19376#ifdef __STDC__
19377# include <limits.h>
19378#else
19379# include <assert.h>
19380#endif
19381		     Syntax error
19382_ACEOF
19383if ac_fn_cxx_try_cpp "$LINENO"; then :
19384
19385else
19386  # Broken: fails on valid input.
19387continue
19388fi
19389rm -f conftest.err conftest.i conftest.$ac_ext
19390
19391  # OK, works on sane cases.  Now check whether nonexistent headers
19392  # can be detected and how.
19393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394/* end confdefs.h.  */
19395#include <ac_nonexistent.h>
19396_ACEOF
19397if ac_fn_cxx_try_cpp "$LINENO"; then :
19398  # Broken: success on invalid input.
19399continue
19400else
19401  # Passes both tests.
19402ac_preproc_ok=:
19403break
19404fi
19405rm -f conftest.err conftest.i conftest.$ac_ext
19406
19407done
19408# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19409rm -f conftest.i conftest.err conftest.$ac_ext
19410if $ac_preproc_ok; then :
19411  break
19412fi
19413
19414    done
19415    ac_cv_prog_CXXCPP=$CXXCPP
19416
19417fi
19418  CXXCPP=$ac_cv_prog_CXXCPP
19419else
19420  ac_cv_prog_CXXCPP=$CXXCPP
19421fi
19422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19423$as_echo "$CXXCPP" >&6; }
19424ac_preproc_ok=false
19425for ac_cxx_preproc_warn_flag in '' yes
19426do
19427  # Use a header file that comes with gcc, so configuring glibc
19428  # with a fresh cross-compiler works.
19429  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19430  # <limits.h> exists even on freestanding compilers.
19431  # On the NeXT, cc -E runs the code through the compiler's parser,
19432  # not just through cpp. "Syntax error" is here to catch this case.
19433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19434/* end confdefs.h.  */
19435#ifdef __STDC__
19436# include <limits.h>
19437#else
19438# include <assert.h>
19439#endif
19440		     Syntax error
19441_ACEOF
19442if ac_fn_cxx_try_cpp "$LINENO"; then :
19443
19444else
19445  # Broken: fails on valid input.
19446continue
19447fi
19448rm -f conftest.err conftest.i conftest.$ac_ext
19449
19450  # OK, works on sane cases.  Now check whether nonexistent headers
19451  # can be detected and how.
19452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19453/* end confdefs.h.  */
19454#include <ac_nonexistent.h>
19455_ACEOF
19456if ac_fn_cxx_try_cpp "$LINENO"; then :
19457  # Broken: success on invalid input.
19458continue
19459else
19460  # Passes both tests.
19461ac_preproc_ok=:
19462break
19463fi
19464rm -f conftest.err conftest.i conftest.$ac_ext
19465
19466done
19467# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19468rm -f conftest.i conftest.err conftest.$ac_ext
19469if $ac_preproc_ok; then :
19470
19471else
19472  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19474as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19475See \`config.log' for more details" "$LINENO" 5; }
19476fi
19477
19478ac_ext=cpp
19479ac_cpp='$CXXCPP $CPPFLAGS'
19480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19483
19484else
19485  _lt_caught_CXX_error=yes
19486fi
19487
19488ac_ext=cpp
19489ac_cpp='$CXXCPP $CPPFLAGS'
19490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19493
19494archive_cmds_need_lc_CXX=no
19495allow_undefined_flag_CXX=
19496always_export_symbols_CXX=no
19497archive_expsym_cmds_CXX=
19498compiler_needs_object_CXX=no
19499export_dynamic_flag_spec_CXX=
19500hardcode_direct_CXX=no
19501hardcode_direct_absolute_CXX=no
19502hardcode_libdir_flag_spec_CXX=
19503hardcode_libdir_flag_spec_ld_CXX=
19504hardcode_libdir_separator_CXX=
19505hardcode_minus_L_CXX=no
19506hardcode_shlibpath_var_CXX=unsupported
19507hardcode_automatic_CXX=no
19508inherit_rpath_CXX=no
19509module_cmds_CXX=
19510module_expsym_cmds_CXX=
19511link_all_deplibs_CXX=unknown
19512old_archive_cmds_CXX=$old_archive_cmds
19513reload_flag_CXX=$reload_flag
19514reload_cmds_CXX=$reload_cmds
19515no_undefined_flag_CXX=
19516whole_archive_flag_spec_CXX=
19517enable_shared_with_static_runtimes_CXX=no
19518
19519# Source file extension for C++ test sources.
19520ac_ext=cpp
19521
19522# Object file extension for compiled C++ test sources.
19523objext=o
19524objext_CXX=$objext
19525
19526# No sense in running all these tests if we already determined that
19527# the CXX compiler isn't working.  Some variables (like enable_shared)
19528# are currently assumed to apply to all compilers on this platform,
19529# and will be corrupted by setting them based on a non-working compiler.
19530if test "$_lt_caught_CXX_error" != yes; then
19531  # Code to be used in simple compile tests
19532  lt_simple_compile_test_code="int some_variable = 0;"
19533
19534  # Code to be used in simple link tests
19535  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19536
19537  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19538
19539
19540
19541
19542
19543
19544# If no C compiler was specified, use CC.
19545LTCC=${LTCC-"$CC"}
19546
19547# If no C compiler flags were specified, use CFLAGS.
19548LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19549
19550# Allow CC to be a program name with arguments.
19551compiler=$CC
19552
19553
19554  # save warnings/boilerplate of simple test code
19555  ac_outfile=conftest.$ac_objext
19556echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19557eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19558_lt_compiler_boilerplate=`cat conftest.err`
19559$RM conftest*
19560
19561  ac_outfile=conftest.$ac_objext
19562echo "$lt_simple_link_test_code" >conftest.$ac_ext
19563eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19564_lt_linker_boilerplate=`cat conftest.err`
19565$RM -r conftest*
19566
19567
19568  # Allow CC to be a program name with arguments.
19569  lt_save_CC=$CC
19570  lt_save_LD=$LD
19571  lt_save_GCC=$GCC
19572  GCC=$GXX
19573  lt_save_with_gnu_ld=$with_gnu_ld
19574  lt_save_path_LD=$lt_cv_path_LD
19575  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19576    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19577  else
19578    $as_unset lt_cv_prog_gnu_ld
19579  fi
19580  if test -n "${lt_cv_path_LDCXX+set}"; then
19581    lt_cv_path_LD=$lt_cv_path_LDCXX
19582  else
19583    $as_unset lt_cv_path_LD
19584  fi
19585  test -z "${LDCXX+set}" || LD=$LDCXX
19586  CC=${CXX-"c++"}
19587  compiler=$CC
19588  compiler_CXX=$CC
19589  for cc_temp in $compiler""; do
19590  case $cc_temp in
19591    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19592    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19593    \-*) ;;
19594    *) break;;
19595  esac
19596done
19597cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19598
19599
19600  if test -n "$compiler"; then
19601    # We don't want -fno-exception when compiling C++ code, so set the
19602    # no_builtin_flag separately
19603    if test "$GXX" = yes; then
19604      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19605    else
19606      lt_prog_compiler_no_builtin_flag_CXX=
19607    fi
19608
19609    if test "$GXX" = yes; then
19610      # Set up default GNU C++ configuration
19611
19612
19613
19614# Check whether --with-gnu-ld was given.
19615if test "${with_gnu_ld+set}" = set; then :
19616  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19617else
19618  with_gnu_ld=no
19619fi
19620
19621ac_prog=ld
19622if test "$GCC" = yes; then
19623  # Check if gcc -print-prog-name=ld gives a path.
19624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19625$as_echo_n "checking for ld used by $CC... " >&6; }
19626  case $host in
19627  *-*-mingw*)
19628    # gcc leaves a trailing carriage return which upsets mingw
19629    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19630  *)
19631    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19632  esac
19633  case $ac_prog in
19634    # Accept absolute paths.
19635    [\\/]* | ?:[\\/]*)
19636      re_direlt='/[^/][^/]*/\.\./'
19637      # Canonicalize the pathname of ld
19638      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19639      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19640	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19641      done
19642      test -z "$LD" && LD="$ac_prog"
19643      ;;
19644  "")
19645    # If it fails, then pretend we aren't using GCC.
19646    ac_prog=ld
19647    ;;
19648  *)
19649    # If it is relative, then search for the first ld in PATH.
19650    with_gnu_ld=unknown
19651    ;;
19652  esac
19653elif test "$with_gnu_ld" = yes; then
19654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19655$as_echo_n "checking for GNU ld... " >&6; }
19656else
19657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19658$as_echo_n "checking for non-GNU ld... " >&6; }
19659fi
19660if ${lt_cv_path_LD+:} false; then :
19661  $as_echo_n "(cached) " >&6
19662else
19663  if test -z "$LD"; then
19664  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19665  for ac_dir in $PATH; do
19666    IFS="$lt_save_ifs"
19667    test -z "$ac_dir" && ac_dir=.
19668    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19669      lt_cv_path_LD="$ac_dir/$ac_prog"
19670      # Check to see if the program is GNU ld.  I'd rather use --version,
19671      # but apparently some variants of GNU ld only accept -v.
19672      # Break only if it was the GNU/non-GNU ld that we prefer.
19673      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19674      *GNU* | *'with BFD'*)
19675	test "$with_gnu_ld" != no && break
19676	;;
19677      *)
19678	test "$with_gnu_ld" != yes && break
19679	;;
19680      esac
19681    fi
19682  done
19683  IFS="$lt_save_ifs"
19684else
19685  lt_cv_path_LD="$LD" # Let the user override the test with a path.
19686fi
19687fi
19688
19689LD="$lt_cv_path_LD"
19690if test -n "$LD"; then
19691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19692$as_echo "$LD" >&6; }
19693else
19694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19695$as_echo "no" >&6; }
19696fi
19697test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19699$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19700if ${lt_cv_prog_gnu_ld+:} false; then :
19701  $as_echo_n "(cached) " >&6
19702else
19703  # I'd rather use --version here, but apparently some GNU lds only accept -v.
19704case `$LD -v 2>&1 </dev/null` in
19705*GNU* | *'with BFD'*)
19706  lt_cv_prog_gnu_ld=yes
19707  ;;
19708*)
19709  lt_cv_prog_gnu_ld=no
19710  ;;
19711esac
19712fi
19713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19714$as_echo "$lt_cv_prog_gnu_ld" >&6; }
19715with_gnu_ld=$lt_cv_prog_gnu_ld
19716
19717
19718
19719
19720
19721
19722
19723      # Check if GNU C++ uses GNU ld as the underlying linker, since the
19724      # archiving commands below assume that GNU ld is being used.
19725      if test "$with_gnu_ld" = yes; then
19726        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19727        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'
19728
19729        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19730        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19731
19732        # If archive_cmds runs LD, not CC, wlarc should be empty
19733        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19734        #     investigate it a little bit more. (MM)
19735        wlarc='${wl}'
19736
19737        # ancient GNU ld didn't support --whole-archive et. al.
19738        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19739	  $GREP 'no-whole-archive' > /dev/null; then
19740          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19741        else
19742          whole_archive_flag_spec_CXX=
19743        fi
19744      else
19745        with_gnu_ld=no
19746        wlarc=
19747
19748        # A generic and very simple default shared library creation
19749        # command for GNU C++ for the case where it uses the native
19750        # linker, instead of GNU ld.  If possible, this setting should
19751        # overridden to take advantage of the native linker features on
19752        # the platform it is being used on.
19753        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19754      fi
19755
19756      # Commands to make compiler produce verbose output that lists
19757      # what "hidden" libraries, object files and flags are used when
19758      # linking a shared library.
19759      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19760
19761    else
19762      GXX=no
19763      with_gnu_ld=no
19764      wlarc=
19765    fi
19766
19767    # PORTME: fill in a description of your system's C++ link characteristics
19768    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19769$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19770    ld_shlibs_CXX=yes
19771    case $host_os in
19772      aix3*)
19773        # FIXME: insert proper C++ library support
19774        ld_shlibs_CXX=no
19775        ;;
19776      aix[4-9]*)
19777        if test "$host_cpu" = ia64; then
19778          # On IA64, the linker does run time linking by default, so we don't
19779          # have to do anything special.
19780          aix_use_runtimelinking=no
19781          exp_sym_flag='-Bexport'
19782          no_entry_flag=""
19783        else
19784          aix_use_runtimelinking=no
19785
19786          # Test if we are trying to use run time linking or normal
19787          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19788          # need to do runtime linking.
19789          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19790	    for ld_flag in $LDFLAGS; do
19791	      case $ld_flag in
19792	      *-brtl*)
19793	        aix_use_runtimelinking=yes
19794	        break
19795	        ;;
19796	      esac
19797	    done
19798	    ;;
19799          esac
19800
19801          exp_sym_flag='-bexport'
19802          no_entry_flag='-bnoentry'
19803        fi
19804
19805        # When large executables or shared objects are built, AIX ld can
19806        # have problems creating the table of contents.  If linking a library
19807        # or program results in "error TOC overflow" add -mminimal-toc to
19808        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19809        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19810
19811        archive_cmds_CXX=''
19812        hardcode_direct_CXX=yes
19813        hardcode_direct_absolute_CXX=yes
19814        hardcode_libdir_separator_CXX=':'
19815        link_all_deplibs_CXX=yes
19816        file_list_spec_CXX='${wl}-f,'
19817
19818        if test "$GXX" = yes; then
19819          case $host_os in aix4.[012]|aix4.[012].*)
19820          # We only want to do this on AIX 4.2 and lower, the check
19821          # below for broken collect2 doesn't work under 4.3+
19822	  collect2name=`${CC} -print-prog-name=collect2`
19823	  if test -f "$collect2name" &&
19824	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19825	  then
19826	    # We have reworked collect2
19827	    :
19828	  else
19829	    # We have old collect2
19830	    hardcode_direct_CXX=unsupported
19831	    # It fails to find uninstalled libraries when the uninstalled
19832	    # path is not listed in the libpath.  Setting hardcode_minus_L
19833	    # to unsupported forces relinking
19834	    hardcode_minus_L_CXX=yes
19835	    hardcode_libdir_flag_spec_CXX='-L$libdir'
19836	    hardcode_libdir_separator_CXX=
19837	  fi
19838          esac
19839          shared_flag='-shared'
19840	  if test "$aix_use_runtimelinking" = yes; then
19841	    shared_flag="$shared_flag "'${wl}-G'
19842	  fi
19843        else
19844          # not using gcc
19845          if test "$host_cpu" = ia64; then
19846	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19847	  # chokes on -Wl,-G. The following line is correct:
19848	  shared_flag='-G'
19849          else
19850	    if test "$aix_use_runtimelinking" = yes; then
19851	      shared_flag='${wl}-G'
19852	    else
19853	      shared_flag='${wl}-bM:SRE'
19854	    fi
19855          fi
19856        fi
19857
19858        export_dynamic_flag_spec_CXX='${wl}-bexpall'
19859        # It seems that -bexpall does not export symbols beginning with
19860        # underscore (_), so it is better to generate a list of symbols to
19861	# export.
19862        always_export_symbols_CXX=yes
19863        if test "$aix_use_runtimelinking" = yes; then
19864          # Warning - without using the other runtime loading flags (-brtl),
19865          # -berok will link without error, but may produce a broken library.
19866          allow_undefined_flag_CXX='-berok'
19867          # Determine the default libpath from the value encoded in an empty
19868          # executable.
19869          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870/* end confdefs.h.  */
19871
19872int
19873main ()
19874{
19875
19876  ;
19877  return 0;
19878}
19879_ACEOF
19880if ac_fn_cxx_try_link "$LINENO"; then :
19881
19882lt_aix_libpath_sed='
19883    /Import File Strings/,/^$/ {
19884	/^0/ {
19885	    s/^0  *\(.*\)$/\1/
19886	    p
19887	}
19888    }'
19889aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19890# Check for a 64-bit object if we didn't find anything.
19891if test -z "$aix_libpath"; then
19892  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19893fi
19894fi
19895rm -f core conftest.err conftest.$ac_objext \
19896    conftest$ac_exeext conftest.$ac_ext
19897if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19898
19899          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19900
19901          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"
19902        else
19903          if test "$host_cpu" = ia64; then
19904	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19905	    allow_undefined_flag_CXX="-z nodefs"
19906	    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"
19907          else
19908	    # Determine the default libpath from the value encoded in an
19909	    # empty executable.
19910	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19911/* end confdefs.h.  */
19912
19913int
19914main ()
19915{
19916
19917  ;
19918  return 0;
19919}
19920_ACEOF
19921if ac_fn_cxx_try_link "$LINENO"; then :
19922
19923lt_aix_libpath_sed='
19924    /Import File Strings/,/^$/ {
19925	/^0/ {
19926	    s/^0  *\(.*\)$/\1/
19927	    p
19928	}
19929    }'
19930aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19931# Check for a 64-bit object if we didn't find anything.
19932if test -z "$aix_libpath"; then
19933  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19934fi
19935fi
19936rm -f core conftest.err conftest.$ac_objext \
19937    conftest$ac_exeext conftest.$ac_ext
19938if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19939
19940	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19941	    # Warning - without using the other run time loading flags,
19942	    # -berok will link without error, but may produce a broken library.
19943	    no_undefined_flag_CXX=' ${wl}-bernotok'
19944	    allow_undefined_flag_CXX=' ${wl}-berok'
19945	    if test "$with_gnu_ld" = yes; then
19946	      # We only use this code for GNU lds that support --whole-archive.
19947	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19948	    else
19949	      # Exported symbols can be pulled into shared objects from archives
19950	      whole_archive_flag_spec_CXX='$convenience'
19951	    fi
19952	    archive_cmds_need_lc_CXX=yes
19953	    # This is similar to how AIX traditionally builds its shared
19954	    # libraries.
19955	    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'
19956          fi
19957        fi
19958        ;;
19959
19960      beos*)
19961	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19962	  allow_undefined_flag_CXX=unsupported
19963	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19964	  # support --undefined.  This deserves some investigation.  FIXME
19965	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19966	else
19967	  ld_shlibs_CXX=no
19968	fi
19969	;;
19970
19971      chorus*)
19972        case $cc_basename in
19973          *)
19974	  # FIXME: insert proper C++ library support
19975	  ld_shlibs_CXX=no
19976	  ;;
19977        esac
19978        ;;
19979
19980      cygwin* | mingw* | pw32* | cegcc*)
19981        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19982        # as there is no search path for DLLs.
19983        hardcode_libdir_flag_spec_CXX='-L$libdir'
19984        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19985        allow_undefined_flag_CXX=unsupported
19986        always_export_symbols_CXX=no
19987        enable_shared_with_static_runtimes_CXX=yes
19988
19989        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19990          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'
19991          # If the export-symbols file already is a .def file (1st line
19992          # is EXPORTS), use it as is; otherwise, prepend...
19993          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19994	    cp $export_symbols $output_objdir/$soname.def;
19995          else
19996	    echo EXPORTS > $output_objdir/$soname.def;
19997	    cat $export_symbols >> $output_objdir/$soname.def;
19998          fi~
19999          $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'
20000        else
20001          ld_shlibs_CXX=no
20002        fi
20003        ;;
20004      darwin* | rhapsody*)
20005
20006
20007  archive_cmds_need_lc_CXX=no
20008  hardcode_direct_CXX=no
20009  hardcode_automatic_CXX=yes
20010  hardcode_shlibpath_var_CXX=unsupported
20011  if test "$lt_cv_ld_force_load" = "yes"; then
20012    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\"`'
20013  else
20014    whole_archive_flag_spec_CXX=''
20015  fi
20016  link_all_deplibs_CXX=yes
20017  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20018  case $cc_basename in
20019     ifort*) _lt_dar_can_shared=yes ;;
20020     *) _lt_dar_can_shared=$GCC ;;
20021  esac
20022  if test "$_lt_dar_can_shared" = "yes"; then
20023    output_verbose_link_cmd=func_echo_all
20024    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}"
20025    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20026    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}"
20027    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}"
20028       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20029      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}"
20030      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}"
20031    fi
20032
20033  else
20034  ld_shlibs_CXX=no
20035  fi
20036
20037	;;
20038
20039      dgux*)
20040        case $cc_basename in
20041          ec++*)
20042	    # FIXME: insert proper C++ library support
20043	    ld_shlibs_CXX=no
20044	    ;;
20045          ghcx*)
20046	    # Green Hills C++ Compiler
20047	    # FIXME: insert proper C++ library support
20048	    ld_shlibs_CXX=no
20049	    ;;
20050          *)
20051	    # FIXME: insert proper C++ library support
20052	    ld_shlibs_CXX=no
20053	    ;;
20054        esac
20055        ;;
20056
20057      freebsd2.*)
20058        # C++ shared libraries reported to be fairly broken before
20059	# switch to ELF
20060        ld_shlibs_CXX=no
20061        ;;
20062
20063      freebsd-elf*)
20064        archive_cmds_need_lc_CXX=no
20065        ;;
20066
20067      freebsd* | dragonfly*)
20068        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20069        # conventions
20070        ld_shlibs_CXX=yes
20071        ;;
20072
20073      gnu*)
20074        ;;
20075
20076      haiku*)
20077        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20078        link_all_deplibs_CXX=yes
20079        ;;
20080
20081      hpux9*)
20082        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20083        hardcode_libdir_separator_CXX=:
20084        export_dynamic_flag_spec_CXX='${wl}-E'
20085        hardcode_direct_CXX=yes
20086        hardcode_minus_L_CXX=yes # Not in the search PATH,
20087				             # but as the default
20088				             # location of the library.
20089
20090        case $cc_basename in
20091          CC*)
20092            # FIXME: insert proper C++ library support
20093            ld_shlibs_CXX=no
20094            ;;
20095          aCC*)
20096            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'
20097            # Commands to make compiler produce verbose output that lists
20098            # what "hidden" libraries, object files and flags are used when
20099            # linking a shared library.
20100            #
20101            # There doesn't appear to be a way to prevent this compiler from
20102            # explicitly linking system object files so we need to strip them
20103            # from the output so that they don't get included in the library
20104            # dependencies.
20105            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"'
20106            ;;
20107          *)
20108            if test "$GXX" = yes; then
20109              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'
20110            else
20111              # FIXME: insert proper C++ library support
20112              ld_shlibs_CXX=no
20113            fi
20114            ;;
20115        esac
20116        ;;
20117
20118      hpux10*|hpux11*)
20119        if test $with_gnu_ld = no; then
20120	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20121	  hardcode_libdir_separator_CXX=:
20122
20123          case $host_cpu in
20124            hppa*64*|ia64*)
20125              ;;
20126            *)
20127	      export_dynamic_flag_spec_CXX='${wl}-E'
20128              ;;
20129          esac
20130        fi
20131        case $host_cpu in
20132          hppa*64*|ia64*)
20133            hardcode_direct_CXX=no
20134            hardcode_shlibpath_var_CXX=no
20135            ;;
20136          *)
20137            hardcode_direct_CXX=yes
20138            hardcode_direct_absolute_CXX=yes
20139            hardcode_minus_L_CXX=yes # Not in the search PATH,
20140					         # but as the default
20141					         # location of the library.
20142            ;;
20143        esac
20144
20145        case $cc_basename in
20146          CC*)
20147	    # FIXME: insert proper C++ library support
20148	    ld_shlibs_CXX=no
20149	    ;;
20150          aCC*)
20151	    case $host_cpu in
20152	      hppa*64*)
20153	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20154	        ;;
20155	      ia64*)
20156	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20157	        ;;
20158	      *)
20159	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20160	        ;;
20161	    esac
20162	    # Commands to make compiler produce verbose output that lists
20163	    # what "hidden" libraries, object files and flags are used when
20164	    # linking a shared library.
20165	    #
20166	    # There doesn't appear to be a way to prevent this compiler from
20167	    # explicitly linking system object files so we need to strip them
20168	    # from the output so that they don't get included in the library
20169	    # dependencies.
20170	    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"'
20171	    ;;
20172          *)
20173	    if test "$GXX" = yes; then
20174	      if test $with_gnu_ld = no; then
20175	        case $host_cpu in
20176	          hppa*64*)
20177	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20178	            ;;
20179	          ia64*)
20180	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20181	            ;;
20182	          *)
20183	            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'
20184	            ;;
20185	        esac
20186	      fi
20187	    else
20188	      # FIXME: insert proper C++ library support
20189	      ld_shlibs_CXX=no
20190	    fi
20191	    ;;
20192        esac
20193        ;;
20194
20195      interix[3-9]*)
20196	hardcode_direct_CXX=no
20197	hardcode_shlibpath_var_CXX=no
20198	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20199	export_dynamic_flag_spec_CXX='${wl}-E'
20200	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20201	# Instead, shared libraries are loaded at an image base (0x10000000 by
20202	# default) and relocated if they conflict, which is a slow very memory
20203	# consuming and fragmenting process.  To avoid this, we pick a random,
20204	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20205	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20206	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'
20207	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'
20208	;;
20209      irix5* | irix6*)
20210        case $cc_basename in
20211          CC*)
20212	    # SGI C++
20213	    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'
20214
20215	    # Archives containing C++ object files must be created using
20216	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
20217	    # necessary to make sure instantiated templates are included
20218	    # in the archive.
20219	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20220	    ;;
20221          *)
20222	    if test "$GXX" = yes; then
20223	      if test "$with_gnu_ld" = no; then
20224	        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'
20225	      else
20226	        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'
20227	      fi
20228	    fi
20229	    link_all_deplibs_CXX=yes
20230	    ;;
20231        esac
20232        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20233        hardcode_libdir_separator_CXX=:
20234        inherit_rpath_CXX=yes
20235        ;;
20236
20237      linux* | k*bsd*-gnu | kopensolaris*-gnu)
20238        case $cc_basename in
20239          KCC*)
20240	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20241
20242	    # KCC will only create a shared library if the output file
20243	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20244	    # to its proper name (with version) after linking.
20245	    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'
20246	    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'
20247	    # Commands to make compiler produce verbose output that lists
20248	    # what "hidden" libraries, object files and flags are used when
20249	    # linking a shared library.
20250	    #
20251	    # There doesn't appear to be a way to prevent this compiler from
20252	    # explicitly linking system object files so we need to strip them
20253	    # from the output so that they don't get included in the library
20254	    # dependencies.
20255	    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"'
20256
20257	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20258	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20259
20260	    # Archives containing C++ object files must be created using
20261	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20262	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20263	    ;;
20264	  icpc* | ecpc* )
20265	    # Intel C++
20266	    with_gnu_ld=yes
20267	    # version 8.0 and above of icpc choke on multiply defined symbols
20268	    # if we add $predep_objects and $postdep_objects, however 7.1 and
20269	    # earlier do not add the objects themselves.
20270	    case `$CC -V 2>&1` in
20271	      *"Version 7."*)
20272	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20273		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'
20274		;;
20275	      *)  # Version 8.0 or newer
20276	        tmp_idyn=
20277	        case $host_cpu in
20278		  ia64*) tmp_idyn=' -i_dynamic';;
20279		esac
20280	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20281		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'
20282		;;
20283	    esac
20284	    archive_cmds_need_lc_CXX=no
20285	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20286	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20287	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20288	    ;;
20289          pgCC* | pgcpp*)
20290            # Portland Group C++ compiler
20291	    case `$CC -V` in
20292	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20293	      prelink_cmds_CXX='tpldir=Template.dir~
20294		rm -rf $tpldir~
20295		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20296		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20297	      old_archive_cmds_CXX='tpldir=Template.dir~
20298		rm -rf $tpldir~
20299		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20300		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20301		$RANLIB $oldlib'
20302	      archive_cmds_CXX='tpldir=Template.dir~
20303		rm -rf $tpldir~
20304		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20305		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20306	      archive_expsym_cmds_CXX='tpldir=Template.dir~
20307		rm -rf $tpldir~
20308		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20309		$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'
20310	      ;;
20311	    *) # Version 6 and above use weak symbols
20312	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20313	      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'
20314	      ;;
20315	    esac
20316
20317	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20318	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20319	    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'
20320            ;;
20321	  cxx*)
20322	    # Compaq C++
20323	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20324	    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'
20325
20326	    runpath_var=LD_RUN_PATH
20327	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20328	    hardcode_libdir_separator_CXX=:
20329
20330	    # Commands to make compiler produce verbose output that lists
20331	    # what "hidden" libraries, object files and flags are used when
20332	    # linking a shared library.
20333	    #
20334	    # There doesn't appear to be a way to prevent this compiler from
20335	    # explicitly linking system object files so we need to strip them
20336	    # from the output so that they don't get included in the library
20337	    # dependencies.
20338	    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'
20339	    ;;
20340	  xl* | mpixl* | bgxl*)
20341	    # IBM XL 8.0 on PPC, with GNU ld
20342	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20343	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20344	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20345	    if test "x$supports_anon_versioning" = xyes; then
20346	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20347		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20348		echo "local: *; };" >> $output_objdir/$libname.ver~
20349		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20350	    fi
20351	    ;;
20352	  *)
20353	    case `$CC -V 2>&1 | sed 5q` in
20354	    *Sun\ C*)
20355	      # Sun C++ 5.9
20356	      no_undefined_flag_CXX=' -zdefs'
20357	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20358	      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'
20359	      hardcode_libdir_flag_spec_CXX='-R$libdir'
20360	      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'
20361	      compiler_needs_object_CXX=yes
20362
20363	      # Not sure whether something based on
20364	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20365	      # would be better.
20366	      output_verbose_link_cmd='func_echo_all'
20367
20368	      # Archives containing C++ object files must be created using
20369	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20370	      # necessary to make sure instantiated templates are included
20371	      # in the archive.
20372	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20373	      ;;
20374	    esac
20375	    ;;
20376	esac
20377	;;
20378
20379      lynxos*)
20380        # FIXME: insert proper C++ library support
20381	ld_shlibs_CXX=no
20382	;;
20383
20384      m88k*)
20385        # FIXME: insert proper C++ library support
20386        ld_shlibs_CXX=no
20387	;;
20388
20389      mvs*)
20390        case $cc_basename in
20391          cxx*)
20392	    # FIXME: insert proper C++ library support
20393	    ld_shlibs_CXX=no
20394	    ;;
20395	  *)
20396	    # FIXME: insert proper C++ library support
20397	    ld_shlibs_CXX=no
20398	    ;;
20399	esac
20400	;;
20401
20402      netbsd*)
20403        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20404	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20405	  wlarc=
20406	  hardcode_libdir_flag_spec_CXX='-R$libdir'
20407	  hardcode_direct_CXX=yes
20408	  hardcode_shlibpath_var_CXX=no
20409	fi
20410	# Workaround some broken pre-1.5 toolchains
20411	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20412	;;
20413
20414      *nto* | *qnx*)
20415        ld_shlibs_CXX=yes
20416	;;
20417
20418      openbsd2*)
20419        # C++ shared libraries are fairly broken
20420	ld_shlibs_CXX=no
20421	;;
20422
20423      openbsd*)
20424	if test -f /usr/libexec/ld.so; then
20425	  hardcode_direct_CXX=yes
20426	  hardcode_shlibpath_var_CXX=no
20427	  hardcode_direct_absolute_CXX=yes
20428	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20429	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20430	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20431	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20432	    export_dynamic_flag_spec_CXX='${wl}-E'
20433	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20434	  fi
20435	  output_verbose_link_cmd=func_echo_all
20436	else
20437	  ld_shlibs_CXX=no
20438	fi
20439	;;
20440
20441      osf3* | osf4* | osf5*)
20442        case $cc_basename in
20443          KCC*)
20444	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20445
20446	    # KCC will only create a shared library if the output file
20447	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20448	    # to its proper name (with version) after linking.
20449	    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'
20450
20451	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20452	    hardcode_libdir_separator_CXX=:
20453
20454	    # Archives containing C++ object files must be created using
20455	    # the KAI C++ compiler.
20456	    case $host in
20457	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20458	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20459	    esac
20460	    ;;
20461          RCC*)
20462	    # Rational C++ 2.4.1
20463	    # FIXME: insert proper C++ library support
20464	    ld_shlibs_CXX=no
20465	    ;;
20466          cxx*)
20467	    case $host in
20468	      osf3*)
20469	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20470	        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'
20471	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20472		;;
20473	      *)
20474	        allow_undefined_flag_CXX=' -expect_unresolved \*'
20475	        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'
20476	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20477	          echo "-hidden">> $lib.exp~
20478	          $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~
20479	          $RM $lib.exp'
20480	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20481		;;
20482	    esac
20483
20484	    hardcode_libdir_separator_CXX=:
20485
20486	    # Commands to make compiler produce verbose output that lists
20487	    # what "hidden" libraries, object files and flags are used when
20488	    # linking a shared library.
20489	    #
20490	    # There doesn't appear to be a way to prevent this compiler from
20491	    # explicitly linking system object files so we need to strip them
20492	    # from the output so that they don't get included in the library
20493	    # dependencies.
20494	    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"'
20495	    ;;
20496	  *)
20497	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20498	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20499	      case $host in
20500	        osf3*)
20501	          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'
20502		  ;;
20503	        *)
20504	          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'
20505		  ;;
20506	      esac
20507
20508	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20509	      hardcode_libdir_separator_CXX=:
20510
20511	      # Commands to make compiler produce verbose output that lists
20512	      # what "hidden" libraries, object files and flags are used when
20513	      # linking a shared library.
20514	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20515
20516	    else
20517	      # FIXME: insert proper C++ library support
20518	      ld_shlibs_CXX=no
20519	    fi
20520	    ;;
20521        esac
20522        ;;
20523
20524      psos*)
20525        # FIXME: insert proper C++ library support
20526        ld_shlibs_CXX=no
20527        ;;
20528
20529      sunos4*)
20530        case $cc_basename in
20531          CC*)
20532	    # Sun C++ 4.x
20533	    # FIXME: insert proper C++ library support
20534	    ld_shlibs_CXX=no
20535	    ;;
20536          lcc*)
20537	    # Lucid
20538	    # FIXME: insert proper C++ library support
20539	    ld_shlibs_CXX=no
20540	    ;;
20541          *)
20542	    # FIXME: insert proper C++ library support
20543	    ld_shlibs_CXX=no
20544	    ;;
20545        esac
20546        ;;
20547
20548      solaris*)
20549        case $cc_basename in
20550          CC*)
20551	    # Sun C++ 4.2, 5.x and Centerline C++
20552            archive_cmds_need_lc_CXX=yes
20553	    no_undefined_flag_CXX=' -zdefs'
20554	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20555	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20556	      $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'
20557
20558	    hardcode_libdir_flag_spec_CXX='-R$libdir'
20559	    hardcode_shlibpath_var_CXX=no
20560	    case $host_os in
20561	      solaris2.[0-5] | solaris2.[0-5].*) ;;
20562	      *)
20563		# The compiler driver will combine and reorder linker options,
20564		# but understands `-z linker_flag'.
20565	        # Supported since Solaris 2.6 (maybe 2.5.1?)
20566		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20567	        ;;
20568	    esac
20569	    link_all_deplibs_CXX=yes
20570
20571	    output_verbose_link_cmd='func_echo_all'
20572
20573	    # Archives containing C++ object files must be created using
20574	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20575	    # necessary to make sure instantiated templates are included
20576	    # in the archive.
20577	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20578	    ;;
20579          gcx*)
20580	    # Green Hills C++ Compiler
20581	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20582
20583	    # The C++ compiler must be used to create the archive.
20584	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20585	    ;;
20586          *)
20587	    # GNU C++ compiler with Solaris linker
20588	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20589	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20590	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20591	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20592	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20593		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20594
20595	        # Commands to make compiler produce verbose output that lists
20596	        # what "hidden" libraries, object files and flags are used when
20597	        # linking a shared library.
20598	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20599	      else
20600	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
20601	        # platform.
20602	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20603	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20604		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20605
20606	        # Commands to make compiler produce verbose output that lists
20607	        # what "hidden" libraries, object files and flags are used when
20608	        # linking a shared library.
20609	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20610	      fi
20611
20612	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20613	      case $host_os in
20614		solaris2.[0-5] | solaris2.[0-5].*) ;;
20615		*)
20616		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20617		  ;;
20618	      esac
20619	    fi
20620	    ;;
20621        esac
20622        ;;
20623
20624    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20625      no_undefined_flag_CXX='${wl}-z,text'
20626      archive_cmds_need_lc_CXX=no
20627      hardcode_shlibpath_var_CXX=no
20628      runpath_var='LD_RUN_PATH'
20629
20630      case $cc_basename in
20631        CC*)
20632	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20633	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20634	  ;;
20635	*)
20636	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20637	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20638	  ;;
20639      esac
20640      ;;
20641
20642      sysv5* | sco3.2v5* | sco5v6*)
20643	# Note: We can NOT use -z defs as we might desire, because we do not
20644	# link with -lc, and that would cause any symbols used from libc to
20645	# always be unresolved, which means just about no library would
20646	# ever link correctly.  If we're not using GNU ld we use -z text
20647	# though, which does catch some bad symbols but isn't as heavy-handed
20648	# as -z defs.
20649	no_undefined_flag_CXX='${wl}-z,text'
20650	allow_undefined_flag_CXX='${wl}-z,nodefs'
20651	archive_cmds_need_lc_CXX=no
20652	hardcode_shlibpath_var_CXX=no
20653	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20654	hardcode_libdir_separator_CXX=':'
20655	link_all_deplibs_CXX=yes
20656	export_dynamic_flag_spec_CXX='${wl}-Bexport'
20657	runpath_var='LD_RUN_PATH'
20658
20659	case $cc_basename in
20660          CC*)
20661	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20662	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20663	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20664	      '"$old_archive_cmds_CXX"
20665	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20666	      '"$reload_cmds_CXX"
20667	    ;;
20668	  *)
20669	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20670	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20671	    ;;
20672	esac
20673      ;;
20674
20675      tandem*)
20676        case $cc_basename in
20677          NCC*)
20678	    # NonStop-UX NCC 3.20
20679	    # FIXME: insert proper C++ library support
20680	    ld_shlibs_CXX=no
20681	    ;;
20682          *)
20683	    # FIXME: insert proper C++ library support
20684	    ld_shlibs_CXX=no
20685	    ;;
20686        esac
20687        ;;
20688
20689      vxworks*)
20690        # FIXME: insert proper C++ library support
20691        ld_shlibs_CXX=no
20692        ;;
20693
20694      *)
20695        # FIXME: insert proper C++ library support
20696        ld_shlibs_CXX=no
20697        ;;
20698    esac
20699
20700    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20701$as_echo "$ld_shlibs_CXX" >&6; }
20702    test "$ld_shlibs_CXX" = no && can_build_shared=no
20703
20704    GCC_CXX="$GXX"
20705    LD_CXX="$LD"
20706
20707    ## CAVEAT EMPTOR:
20708    ## There is no encapsulation within the following macros, do not change
20709    ## the running order or otherwise move them around unless you know exactly
20710    ## what you are doing...
20711    # Dependencies to place before and after the object being linked:
20712predep_objects_CXX=
20713postdep_objects_CXX=
20714predeps_CXX=
20715postdeps_CXX=
20716compiler_lib_search_path_CXX=
20717
20718cat > conftest.$ac_ext <<_LT_EOF
20719class Foo
20720{
20721public:
20722  Foo (void) { a = 0; }
20723private:
20724  int a;
20725};
20726_LT_EOF
20727
20728if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20729  (eval $ac_compile) 2>&5
20730  ac_status=$?
20731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20732  test $ac_status = 0; }; then
20733  # Parse the compiler output and extract the necessary
20734  # objects, libraries and library flags.
20735
20736  # Sentinel used to keep track of whether or not we are before
20737  # the conftest object file.
20738  pre_test_object_deps_done=no
20739
20740  for p in `eval "$output_verbose_link_cmd"`; do
20741    case $p in
20742
20743    -L* | -R* | -l*)
20744       # Some compilers place space between "-{L,R}" and the path.
20745       # Remove the space.
20746       if test $p = "-L" ||
20747          test $p = "-R"; then
20748	 prev=$p
20749	 continue
20750       else
20751	 prev=
20752       fi
20753
20754       if test "$pre_test_object_deps_done" = no; then
20755	 case $p in
20756	 -L* | -R*)
20757	   # Internal compiler library paths should come after those
20758	   # provided the user.  The postdeps already come after the
20759	   # user supplied libs so there is no need to process them.
20760	   if test -z "$compiler_lib_search_path_CXX"; then
20761	     compiler_lib_search_path_CXX="${prev}${p}"
20762	   else
20763	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20764	   fi
20765	   ;;
20766	 # The "-l" case would never come before the object being
20767	 # linked, so don't bother handling this case.
20768	 esac
20769       else
20770	 if test -z "$postdeps_CXX"; then
20771	   postdeps_CXX="${prev}${p}"
20772	 else
20773	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20774	 fi
20775       fi
20776       ;;
20777
20778    *.$objext)
20779       # This assumes that the test object file only shows up
20780       # once in the compiler output.
20781       if test "$p" = "conftest.$objext"; then
20782	 pre_test_object_deps_done=yes
20783	 continue
20784       fi
20785
20786       if test "$pre_test_object_deps_done" = no; then
20787	 if test -z "$predep_objects_CXX"; then
20788	   predep_objects_CXX="$p"
20789	 else
20790	   predep_objects_CXX="$predep_objects_CXX $p"
20791	 fi
20792       else
20793	 if test -z "$postdep_objects_CXX"; then
20794	   postdep_objects_CXX="$p"
20795	 else
20796	   postdep_objects_CXX="$postdep_objects_CXX $p"
20797	 fi
20798       fi
20799       ;;
20800
20801    *) ;; # Ignore the rest.
20802
20803    esac
20804  done
20805
20806  # Clean up.
20807  rm -f a.out a.exe
20808else
20809  echo "libtool.m4: error: problem compiling CXX test program"
20810fi
20811
20812$RM -f confest.$objext
20813
20814# PORTME: override above test on systems where it is broken
20815case $host_os in
20816interix[3-9]*)
20817  # Interix 3.5 installs completely hosed .la files for C++, so rather than
20818  # hack all around it, let's just trust "g++" to DTRT.
20819  predep_objects_CXX=
20820  postdep_objects_CXX=
20821  postdeps_CXX=
20822  ;;
20823
20824linux*)
20825  case `$CC -V 2>&1 | sed 5q` in
20826  *Sun\ C*)
20827    # Sun C++ 5.9
20828
20829    # The more standards-conforming stlport4 library is
20830    # incompatible with the Cstd library. Avoid specifying
20831    # it if it's in CXXFLAGS. Ignore libCrun as
20832    # -library=stlport4 depends on it.
20833    case " $CXX $CXXFLAGS " in
20834    *" -library=stlport4 "*)
20835      solaris_use_stlport4=yes
20836      ;;
20837    esac
20838
20839    if test "$solaris_use_stlport4" != yes; then
20840      postdeps_CXX='-library=Cstd -library=Crun'
20841    fi
20842    ;;
20843  esac
20844  ;;
20845
20846solaris*)
20847  case $cc_basename in
20848  CC*)
20849    # The more standards-conforming stlport4 library is
20850    # incompatible with the Cstd library. Avoid specifying
20851    # it if it's in CXXFLAGS. Ignore libCrun as
20852    # -library=stlport4 depends on it.
20853    case " $CXX $CXXFLAGS " in
20854    *" -library=stlport4 "*)
20855      solaris_use_stlport4=yes
20856      ;;
20857    esac
20858
20859    # Adding this requires a known-good setup of shared libraries for
20860    # Sun compiler versions before 5.6, else PIC objects from an old
20861    # archive will be linked into the output, leading to subtle bugs.
20862    if test "$solaris_use_stlport4" != yes; then
20863      postdeps_CXX='-library=Cstd -library=Crun'
20864    fi
20865    ;;
20866  esac
20867  ;;
20868esac
20869
20870
20871case " $postdeps_CXX " in
20872*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20873esac
20874 compiler_lib_search_dirs_CXX=
20875if test -n "${compiler_lib_search_path_CXX}"; then
20876 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20877fi
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909    lt_prog_compiler_wl_CXX=
20910lt_prog_compiler_pic_CXX=
20911lt_prog_compiler_static_CXX=
20912
20913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20914$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20915
20916  # C++ specific cases for pic, static, wl, etc.
20917  if test "$GXX" = yes; then
20918    lt_prog_compiler_wl_CXX='-Wl,'
20919    lt_prog_compiler_static_CXX='-static'
20920
20921    case $host_os in
20922    aix*)
20923      # All AIX code is PIC.
20924      if test "$host_cpu" = ia64; then
20925	# AIX 5 now supports IA64 processor
20926	lt_prog_compiler_static_CXX='-Bstatic'
20927      fi
20928      lt_prog_compiler_pic_CXX='-fPIC'
20929      ;;
20930
20931    amigaos*)
20932      case $host_cpu in
20933      powerpc)
20934            # see comment about AmigaOS4 .so support
20935            lt_prog_compiler_pic_CXX='-fPIC'
20936        ;;
20937      m68k)
20938            # FIXME: we need at least 68020 code to build shared libraries, but
20939            # adding the `-m68020' flag to GCC prevents building anything better,
20940            # like `-m68040'.
20941            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20942        ;;
20943      esac
20944      ;;
20945
20946    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20947      # PIC is the default for these OSes.
20948      ;;
20949    mingw* | cygwin* | os2* | pw32* | cegcc*)
20950      # This hack is so that the source file can tell whether it is being
20951      # built for inclusion in a dll (and should export symbols for example).
20952      # Although the cygwin gcc ignores -fPIC, still need this for old-style
20953      # (--disable-auto-import) libraries
20954      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20955      ;;
20956    darwin* | rhapsody*)
20957      # PIC is the default on this platform
20958      # Common symbols not allowed in MH_DYLIB files
20959      lt_prog_compiler_pic_CXX='-fno-common'
20960      ;;
20961    *djgpp*)
20962      # DJGPP does not support shared libraries at all
20963      lt_prog_compiler_pic_CXX=
20964      ;;
20965    haiku*)
20966      # PIC is the default for Haiku.
20967      # The "-static" flag exists, but is broken.
20968      lt_prog_compiler_static_CXX=
20969      ;;
20970    interix[3-9]*)
20971      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20972      # Instead, we relocate shared libraries at runtime.
20973      ;;
20974    sysv4*MP*)
20975      if test -d /usr/nec; then
20976	lt_prog_compiler_pic_CXX=-Kconform_pic
20977      fi
20978      ;;
20979    hpux*)
20980      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20981      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20982      # sets the default TLS model and affects inlining.
20983      case $host_cpu in
20984      hppa*64*)
20985	;;
20986      *)
20987	lt_prog_compiler_pic_CXX='-fPIC'
20988	;;
20989      esac
20990      ;;
20991    *qnx* | *nto*)
20992      # QNX uses GNU C++, but need to define -shared option too, otherwise
20993      # it will coredump.
20994      lt_prog_compiler_pic_CXX='-fPIC -shared'
20995      ;;
20996    *)
20997      lt_prog_compiler_pic_CXX='-fPIC'
20998      ;;
20999    esac
21000  else
21001    case $host_os in
21002      aix[4-9]*)
21003	# All AIX code is PIC.
21004	if test "$host_cpu" = ia64; then
21005	  # AIX 5 now supports IA64 processor
21006	  lt_prog_compiler_static_CXX='-Bstatic'
21007	else
21008	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21009	fi
21010	;;
21011      chorus*)
21012	case $cc_basename in
21013	cxch68*)
21014	  # Green Hills C++ Compiler
21015	  # _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"
21016	  ;;
21017	esac
21018	;;
21019      dgux*)
21020	case $cc_basename in
21021	  ec++*)
21022	    lt_prog_compiler_pic_CXX='-KPIC'
21023	    ;;
21024	  ghcx*)
21025	    # Green Hills C++ Compiler
21026	    lt_prog_compiler_pic_CXX='-pic'
21027	    ;;
21028	  *)
21029	    ;;
21030	esac
21031	;;
21032      freebsd* | dragonfly*)
21033	# FreeBSD uses GNU C++
21034	;;
21035      hpux9* | hpux10* | hpux11*)
21036	case $cc_basename in
21037	  CC*)
21038	    lt_prog_compiler_wl_CXX='-Wl,'
21039	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21040	    if test "$host_cpu" != ia64; then
21041	      lt_prog_compiler_pic_CXX='+Z'
21042	    fi
21043	    ;;
21044	  aCC*)
21045	    lt_prog_compiler_wl_CXX='-Wl,'
21046	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21047	    case $host_cpu in
21048	    hppa*64*|ia64*)
21049	      # +Z the default
21050	      ;;
21051	    *)
21052	      lt_prog_compiler_pic_CXX='+Z'
21053	      ;;
21054	    esac
21055	    ;;
21056	  *)
21057	    ;;
21058	esac
21059	;;
21060      interix*)
21061	# This is c89, which is MS Visual C++ (no shared libs)
21062	# Anyone wants to do a port?
21063	;;
21064      irix5* | irix6* | nonstopux*)
21065	case $cc_basename in
21066	  CC*)
21067	    lt_prog_compiler_wl_CXX='-Wl,'
21068	    lt_prog_compiler_static_CXX='-non_shared'
21069	    # CC pic flag -KPIC is the default.
21070	    ;;
21071	  *)
21072	    ;;
21073	esac
21074	;;
21075      linux* | k*bsd*-gnu | kopensolaris*-gnu)
21076	case $cc_basename in
21077	  KCC*)
21078	    # KAI C++ Compiler
21079	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21080	    lt_prog_compiler_pic_CXX='-fPIC'
21081	    ;;
21082	  ecpc* )
21083	    # old Intel C++ for x86_64 which still supported -KPIC.
21084	    lt_prog_compiler_wl_CXX='-Wl,'
21085	    lt_prog_compiler_pic_CXX='-KPIC'
21086	    lt_prog_compiler_static_CXX='-static'
21087	    ;;
21088	  icpc* )
21089	    # Intel C++, used to be incompatible with GCC.
21090	    # ICC 10 doesn't accept -KPIC any more.
21091	    lt_prog_compiler_wl_CXX='-Wl,'
21092	    lt_prog_compiler_pic_CXX='-fPIC'
21093	    lt_prog_compiler_static_CXX='-static'
21094	    ;;
21095	  pgCC* | pgcpp*)
21096	    # Portland Group C++ compiler
21097	    lt_prog_compiler_wl_CXX='-Wl,'
21098	    lt_prog_compiler_pic_CXX='-fpic'
21099	    lt_prog_compiler_static_CXX='-Bstatic'
21100	    ;;
21101	  cxx*)
21102	    # Compaq C++
21103	    # Make sure the PIC flag is empty.  It appears that all Alpha
21104	    # Linux and Compaq Tru64 Unix objects are PIC.
21105	    lt_prog_compiler_pic_CXX=
21106	    lt_prog_compiler_static_CXX='-non_shared'
21107	    ;;
21108	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21109	    # IBM XL 8.0, 9.0 on PPC and BlueGene
21110	    lt_prog_compiler_wl_CXX='-Wl,'
21111	    lt_prog_compiler_pic_CXX='-qpic'
21112	    lt_prog_compiler_static_CXX='-qstaticlink'
21113	    ;;
21114	  *)
21115	    case `$CC -V 2>&1 | sed 5q` in
21116	    *Sun\ C*)
21117	      # Sun C++ 5.9
21118	      lt_prog_compiler_pic_CXX='-KPIC'
21119	      lt_prog_compiler_static_CXX='-Bstatic'
21120	      lt_prog_compiler_wl_CXX='-Qoption ld '
21121	      ;;
21122	    esac
21123	    ;;
21124	esac
21125	;;
21126      lynxos*)
21127	;;
21128      m88k*)
21129	;;
21130      mvs*)
21131	case $cc_basename in
21132	  cxx*)
21133	    lt_prog_compiler_pic_CXX='-W c,exportall'
21134	    ;;
21135	  *)
21136	    ;;
21137	esac
21138	;;
21139      netbsd*)
21140	;;
21141      *qnx* | *nto*)
21142        # QNX uses GNU C++, but need to define -shared option too, otherwise
21143        # it will coredump.
21144        lt_prog_compiler_pic_CXX='-fPIC -shared'
21145        ;;
21146      osf3* | osf4* | osf5*)
21147	case $cc_basename in
21148	  KCC*)
21149	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21150	    ;;
21151	  RCC*)
21152	    # Rational C++ 2.4.1
21153	    lt_prog_compiler_pic_CXX='-pic'
21154	    ;;
21155	  cxx*)
21156	    # Digital/Compaq C++
21157	    lt_prog_compiler_wl_CXX='-Wl,'
21158	    # Make sure the PIC flag is empty.  It appears that all Alpha
21159	    # Linux and Compaq Tru64 Unix objects are PIC.
21160	    lt_prog_compiler_pic_CXX=
21161	    lt_prog_compiler_static_CXX='-non_shared'
21162	    ;;
21163	  *)
21164	    ;;
21165	esac
21166	;;
21167      psos*)
21168	;;
21169      solaris*)
21170	case $cc_basename in
21171	  CC*)
21172	    # Sun C++ 4.2, 5.x and Centerline C++
21173	    lt_prog_compiler_pic_CXX='-KPIC'
21174	    lt_prog_compiler_static_CXX='-Bstatic'
21175	    lt_prog_compiler_wl_CXX='-Qoption ld '
21176	    ;;
21177	  gcx*)
21178	    # Green Hills C++ Compiler
21179	    lt_prog_compiler_pic_CXX='-PIC'
21180	    ;;
21181	  *)
21182	    ;;
21183	esac
21184	;;
21185      sunos4*)
21186	case $cc_basename in
21187	  CC*)
21188	    # Sun C++ 4.x
21189	    lt_prog_compiler_pic_CXX='-pic'
21190	    lt_prog_compiler_static_CXX='-Bstatic'
21191	    ;;
21192	  lcc*)
21193	    # Lucid
21194	    lt_prog_compiler_pic_CXX='-pic'
21195	    ;;
21196	  *)
21197	    ;;
21198	esac
21199	;;
21200      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21201	case $cc_basename in
21202	  CC*)
21203	    lt_prog_compiler_wl_CXX='-Wl,'
21204	    lt_prog_compiler_pic_CXX='-KPIC'
21205	    lt_prog_compiler_static_CXX='-Bstatic'
21206	    ;;
21207	esac
21208	;;
21209      tandem*)
21210	case $cc_basename in
21211	  NCC*)
21212	    # NonStop-UX NCC 3.20
21213	    lt_prog_compiler_pic_CXX='-KPIC'
21214	    ;;
21215	  *)
21216	    ;;
21217	esac
21218	;;
21219      vxworks*)
21220	;;
21221      *)
21222	lt_prog_compiler_can_build_shared_CXX=no
21223	;;
21224    esac
21225  fi
21226
21227case $host_os in
21228  # For platforms which do not support PIC, -DPIC is meaningless:
21229  *djgpp*)
21230    lt_prog_compiler_pic_CXX=
21231    ;;
21232  *)
21233    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21234    ;;
21235esac
21236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21237$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21238
21239
21240
21241#
21242# Check to make sure the PIC flag actually works.
21243#
21244if test -n "$lt_prog_compiler_pic_CXX"; then
21245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21246$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21247if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21248  $as_echo_n "(cached) " >&6
21249else
21250  lt_cv_prog_compiler_pic_works_CXX=no
21251   ac_outfile=conftest.$ac_objext
21252   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21253   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21254   # Insert the option either (1) after the last *FLAGS variable, or
21255   # (2) before a word containing "conftest.", or (3) at the end.
21256   # Note that $ac_compile itself does not contain backslashes and begins
21257   # with a dollar sign (not a hyphen), so the echo should work correctly.
21258   # The option is referenced via a variable to avoid confusing sed.
21259   lt_compile=`echo "$ac_compile" | $SED \
21260   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21261   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21262   -e 's:$: $lt_compiler_flag:'`
21263   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21264   (eval "$lt_compile" 2>conftest.err)
21265   ac_status=$?
21266   cat conftest.err >&5
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   if (exit $ac_status) && test -s "$ac_outfile"; then
21269     # The compiler can only warn and ignore the option if not recognized
21270     # So say no if there are warnings other than the usual output.
21271     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21272     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21273     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21274       lt_cv_prog_compiler_pic_works_CXX=yes
21275     fi
21276   fi
21277   $RM conftest*
21278
21279fi
21280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21281$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21282
21283if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21284    case $lt_prog_compiler_pic_CXX in
21285     "" | " "*) ;;
21286     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21287     esac
21288else
21289    lt_prog_compiler_pic_CXX=
21290     lt_prog_compiler_can_build_shared_CXX=no
21291fi
21292
21293fi
21294
21295
21296
21297#
21298# Check to make sure the static flag actually works.
21299#
21300wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21302$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21303if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21304  $as_echo_n "(cached) " >&6
21305else
21306  lt_cv_prog_compiler_static_works_CXX=no
21307   save_LDFLAGS="$LDFLAGS"
21308   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21309   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21310   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21311     # The linker can only warn and ignore the option if not recognized
21312     # So say no if there are warnings
21313     if test -s conftest.err; then
21314       # Append any errors to the config.log.
21315       cat conftest.err 1>&5
21316       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21317       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21318       if diff conftest.exp conftest.er2 >/dev/null; then
21319         lt_cv_prog_compiler_static_works_CXX=yes
21320       fi
21321     else
21322       lt_cv_prog_compiler_static_works_CXX=yes
21323     fi
21324   fi
21325   $RM -r conftest*
21326   LDFLAGS="$save_LDFLAGS"
21327
21328fi
21329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21330$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21331
21332if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21333    :
21334else
21335    lt_prog_compiler_static_CXX=
21336fi
21337
21338
21339
21340
21341    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21342$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21343if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21344  $as_echo_n "(cached) " >&6
21345else
21346  lt_cv_prog_compiler_c_o_CXX=no
21347   $RM -r conftest 2>/dev/null
21348   mkdir conftest
21349   cd conftest
21350   mkdir out
21351   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21352
21353   lt_compiler_flag="-o out/conftest2.$ac_objext"
21354   # Insert the option either (1) after the last *FLAGS variable, or
21355   # (2) before a word containing "conftest.", or (3) at the end.
21356   # Note that $ac_compile itself does not contain backslashes and begins
21357   # with a dollar sign (not a hyphen), so the echo should work correctly.
21358   lt_compile=`echo "$ac_compile" | $SED \
21359   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21360   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21361   -e 's:$: $lt_compiler_flag:'`
21362   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21363   (eval "$lt_compile" 2>out/conftest.err)
21364   ac_status=$?
21365   cat out/conftest.err >&5
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21368   then
21369     # The compiler can only warn and ignore the option if not recognized
21370     # So say no if there are warnings
21371     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21372     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21373     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21374       lt_cv_prog_compiler_c_o_CXX=yes
21375     fi
21376   fi
21377   chmod u+w . 2>&5
21378   $RM conftest*
21379   # SGI C++ compiler will create directory out/ii_files/ for
21380   # template instantiation
21381   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21382   $RM out/* && rmdir out
21383   cd ..
21384   $RM -r conftest
21385   $RM conftest*
21386
21387fi
21388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21389$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21390
21391
21392
21393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21394$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21395if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21396  $as_echo_n "(cached) " >&6
21397else
21398  lt_cv_prog_compiler_c_o_CXX=no
21399   $RM -r conftest 2>/dev/null
21400   mkdir conftest
21401   cd conftest
21402   mkdir out
21403   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21404
21405   lt_compiler_flag="-o out/conftest2.$ac_objext"
21406   # Insert the option either (1) after the last *FLAGS variable, or
21407   # (2) before a word containing "conftest.", or (3) at the end.
21408   # Note that $ac_compile itself does not contain backslashes and begins
21409   # with a dollar sign (not a hyphen), so the echo should work correctly.
21410   lt_compile=`echo "$ac_compile" | $SED \
21411   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21412   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21413   -e 's:$: $lt_compiler_flag:'`
21414   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21415   (eval "$lt_compile" 2>out/conftest.err)
21416   ac_status=$?
21417   cat out/conftest.err >&5
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21420   then
21421     # The compiler can only warn and ignore the option if not recognized
21422     # So say no if there are warnings
21423     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21424     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21425     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21426       lt_cv_prog_compiler_c_o_CXX=yes
21427     fi
21428   fi
21429   chmod u+w . 2>&5
21430   $RM conftest*
21431   # SGI C++ compiler will create directory out/ii_files/ for
21432   # template instantiation
21433   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21434   $RM out/* && rmdir out
21435   cd ..
21436   $RM -r conftest
21437   $RM conftest*
21438
21439fi
21440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21441$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21442
21443
21444
21445
21446hard_links="nottested"
21447if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21448  # do not overwrite the value of need_locks provided by the user
21449  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21450$as_echo_n "checking if we can lock with hard links... " >&6; }
21451  hard_links=yes
21452  $RM conftest*
21453  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21454  touch conftest.a
21455  ln conftest.a conftest.b 2>&5 || hard_links=no
21456  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21458$as_echo "$hard_links" >&6; }
21459  if test "$hard_links" = no; then
21460    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21461$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21462    need_locks=warn
21463  fi
21464else
21465  need_locks=no
21466fi
21467
21468
21469
21470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21471$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21472
21473  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21474  case $host_os in
21475  aix[4-9]*)
21476    # If we're using GNU nm, then we don't want the "-C" option.
21477    # -C means demangle to AIX nm, but means don't demangle with GNU nm
21478    # Also, AIX nm treats weak defined symbols like other global defined
21479    # symbols, whereas GNU nm marks them as "W".
21480    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21481      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'
21482    else
21483      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'
21484    fi
21485    ;;
21486  pw32*)
21487    export_symbols_cmds_CXX="$ltdll_cmds"
21488  ;;
21489  cygwin* | mingw* | cegcc*)
21490    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'
21491  ;;
21492  *)
21493    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21494  ;;
21495  esac
21496  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21497
21498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21499$as_echo "$ld_shlibs_CXX" >&6; }
21500test "$ld_shlibs_CXX" = no && can_build_shared=no
21501
21502with_gnu_ld_CXX=$with_gnu_ld
21503
21504
21505
21506
21507
21508
21509#
21510# Do we need to explicitly link libc?
21511#
21512case "x$archive_cmds_need_lc_CXX" in
21513x|xyes)
21514  # Assume -lc should be added
21515  archive_cmds_need_lc_CXX=yes
21516
21517  if test "$enable_shared" = yes && test "$GCC" = yes; then
21518    case $archive_cmds_CXX in
21519    *'~'*)
21520      # FIXME: we may have to deal with multi-command sequences.
21521      ;;
21522    '$CC '*)
21523      # Test whether the compiler implicitly links with -lc since on some
21524      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21525      # to ld, don't add -lc before -lgcc.
21526      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21527$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21528if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21529  $as_echo_n "(cached) " >&6
21530else
21531  $RM conftest*
21532	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21533
21534	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21535  (eval $ac_compile) 2>&5
21536  ac_status=$?
21537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21538  test $ac_status = 0; } 2>conftest.err; then
21539	  soname=conftest
21540	  lib=conftest
21541	  libobjs=conftest.$ac_objext
21542	  deplibs=
21543	  wl=$lt_prog_compiler_wl_CXX
21544	  pic_flag=$lt_prog_compiler_pic_CXX
21545	  compiler_flags=-v
21546	  linker_flags=-v
21547	  verstring=
21548	  output_objdir=.
21549	  libname=conftest
21550	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21551	  allow_undefined_flag_CXX=
21552	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21553  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21554  ac_status=$?
21555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21556  test $ac_status = 0; }
21557	  then
21558	    lt_cv_archive_cmds_need_lc_CXX=no
21559	  else
21560	    lt_cv_archive_cmds_need_lc_CXX=yes
21561	  fi
21562	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21563	else
21564	  cat conftest.err 1>&5
21565	fi
21566	$RM conftest*
21567
21568fi
21569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21570$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21571      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21572      ;;
21573    esac
21574  fi
21575  ;;
21576esac
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21642$as_echo_n "checking dynamic linker characteristics... " >&6; }
21643
21644library_names_spec=
21645libname_spec='lib$name'
21646soname_spec=
21647shrext_cmds=".so"
21648postinstall_cmds=
21649postuninstall_cmds=
21650finish_cmds=
21651finish_eval=
21652shlibpath_var=
21653shlibpath_overrides_runpath=unknown
21654version_type=none
21655dynamic_linker="$host_os ld.so"
21656sys_lib_dlsearch_path_spec="/lib /usr/lib"
21657need_lib_prefix=unknown
21658hardcode_into_libs=no
21659
21660# when you set need_version to no, make sure it does not cause -set_version
21661# flags to be left without arguments
21662need_version=unknown
21663
21664case $host_os in
21665aix3*)
21666  version_type=linux
21667  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21668  shlibpath_var=LIBPATH
21669
21670  # AIX 3 has no versioning support, so we append a major version to the name.
21671  soname_spec='${libname}${release}${shared_ext}$major'
21672  ;;
21673
21674aix[4-9]*)
21675  version_type=linux
21676  need_lib_prefix=no
21677  need_version=no
21678  hardcode_into_libs=yes
21679  if test "$host_cpu" = ia64; then
21680    # AIX 5 supports IA64
21681    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21682    shlibpath_var=LD_LIBRARY_PATH
21683  else
21684    # With GCC up to 2.95.x, collect2 would create an import file
21685    # for dependence libraries.  The import file would start with
21686    # the line `#! .'.  This would cause the generated library to
21687    # depend on `.', always an invalid library.  This was fixed in
21688    # development snapshots of GCC prior to 3.0.
21689    case $host_os in
21690      aix4 | aix4.[01] | aix4.[01].*)
21691      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21692	   echo ' yes '
21693	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21694	:
21695      else
21696	can_build_shared=no
21697      fi
21698      ;;
21699    esac
21700    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21701    # soname into executable. Probably we can add versioning support to
21702    # collect2, so additional links can be useful in future.
21703    if test "$aix_use_runtimelinking" = yes; then
21704      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21705      # instead of lib<name>.a to let people know that these are not
21706      # typical AIX shared libraries.
21707      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21708    else
21709      # We preserve .a as extension for shared libraries through AIX4.2
21710      # and later when we are not doing run time linking.
21711      library_names_spec='${libname}${release}.a $libname.a'
21712      soname_spec='${libname}${release}${shared_ext}$major'
21713    fi
21714    shlibpath_var=LIBPATH
21715  fi
21716  ;;
21717
21718amigaos*)
21719  case $host_cpu in
21720  powerpc)
21721    # Since July 2007 AmigaOS4 officially supports .so libraries.
21722    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21723    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21724    ;;
21725  m68k)
21726    library_names_spec='$libname.ixlibrary $libname.a'
21727    # Create ${libname}_ixlibrary.a entries in /sys/libs.
21728    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'
21729    ;;
21730  esac
21731  ;;
21732
21733beos*)
21734  library_names_spec='${libname}${shared_ext}'
21735  dynamic_linker="$host_os ld.so"
21736  shlibpath_var=LIBRARY_PATH
21737  ;;
21738
21739bsdi[45]*)
21740  version_type=linux
21741  need_version=no
21742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21743  soname_spec='${libname}${release}${shared_ext}$major'
21744  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21745  shlibpath_var=LD_LIBRARY_PATH
21746  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21747  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21748  # the default ld.so.conf also contains /usr/contrib/lib and
21749  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21750  # libtool to hard-code these into programs
21751  ;;
21752
21753cygwin* | mingw* | pw32* | cegcc*)
21754  version_type=windows
21755  shrext_cmds=".dll"
21756  need_version=no
21757  need_lib_prefix=no
21758
21759  case $GCC,$host_os in
21760  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21761    library_names_spec='$libname.dll.a'
21762    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21763    postinstall_cmds='base_file=`basename \${file}`~
21764      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21765      dldir=$destdir/`dirname \$dlpath`~
21766      test -d \$dldir || mkdir -p \$dldir~
21767      $install_prog $dir/$dlname \$dldir/$dlname~
21768      chmod a+x \$dldir/$dlname~
21769      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21770        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21771      fi'
21772    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21773      dlpath=$dir/\$dldll~
21774       $RM \$dlpath'
21775    shlibpath_overrides_runpath=yes
21776
21777    case $host_os in
21778    cygwin*)
21779      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21780      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21781
21782      ;;
21783    mingw* | cegcc*)
21784      # MinGW DLLs use traditional 'lib' prefix
21785      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21786      ;;
21787    pw32*)
21788      # pw32 DLLs use 'pw' prefix rather than 'lib'
21789      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21790      ;;
21791    esac
21792    ;;
21793
21794  *)
21795    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21796    ;;
21797  esac
21798  dynamic_linker='Win32 ld.exe'
21799  # FIXME: first we should search . and the directory the executable is in
21800  shlibpath_var=PATH
21801  ;;
21802
21803darwin* | rhapsody*)
21804  dynamic_linker="$host_os dyld"
21805  version_type=darwin
21806  need_lib_prefix=no
21807  need_version=no
21808  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21809  soname_spec='${libname}${release}${major}$shared_ext'
21810  shlibpath_overrides_runpath=yes
21811  shlibpath_var=DYLD_LIBRARY_PATH
21812  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21813
21814  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21815  ;;
21816
21817dgux*)
21818  version_type=linux
21819  need_lib_prefix=no
21820  need_version=no
21821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21822  soname_spec='${libname}${release}${shared_ext}$major'
21823  shlibpath_var=LD_LIBRARY_PATH
21824  ;;
21825
21826freebsd* | dragonfly*)
21827  # DragonFly does not have aout.  When/if they implement a new
21828  # versioning mechanism, adjust this.
21829  if test -x /usr/bin/objformat; then
21830    objformat=`/usr/bin/objformat`
21831  else
21832    case $host_os in
21833    freebsd[23].*) objformat=aout ;;
21834    *) objformat=elf ;;
21835    esac
21836  fi
21837  version_type=freebsd-$objformat
21838  case $version_type in
21839    freebsd-elf*)
21840      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21841      need_version=no
21842      need_lib_prefix=no
21843      ;;
21844    freebsd-*)
21845      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21846      need_version=yes
21847      ;;
21848  esac
21849  shlibpath_var=LD_LIBRARY_PATH
21850  case $host_os in
21851  freebsd2.*)
21852    shlibpath_overrides_runpath=yes
21853    ;;
21854  freebsd3.[01]* | freebsdelf3.[01]*)
21855    shlibpath_overrides_runpath=yes
21856    hardcode_into_libs=yes
21857    ;;
21858  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21859  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21860    shlibpath_overrides_runpath=no
21861    hardcode_into_libs=yes
21862    ;;
21863  *) # from 4.6 on, and DragonFly
21864    shlibpath_overrides_runpath=yes
21865    hardcode_into_libs=yes
21866    ;;
21867  esac
21868  ;;
21869
21870gnu*)
21871  version_type=linux
21872  need_lib_prefix=no
21873  need_version=no
21874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21875  soname_spec='${libname}${release}${shared_ext}$major'
21876  shlibpath_var=LD_LIBRARY_PATH
21877  hardcode_into_libs=yes
21878  ;;
21879
21880haiku*)
21881  version_type=linux
21882  need_lib_prefix=no
21883  need_version=no
21884  dynamic_linker="$host_os runtime_loader"
21885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21886  soname_spec='${libname}${release}${shared_ext}$major'
21887  shlibpath_var=LIBRARY_PATH
21888  shlibpath_overrides_runpath=yes
21889  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21890  hardcode_into_libs=yes
21891  ;;
21892
21893hpux9* | hpux10* | hpux11*)
21894  # Give a soname corresponding to the major version so that dld.sl refuses to
21895  # link against other versions.
21896  version_type=sunos
21897  need_lib_prefix=no
21898  need_version=no
21899  case $host_cpu in
21900  ia64*)
21901    shrext_cmds='.so'
21902    hardcode_into_libs=yes
21903    dynamic_linker="$host_os dld.so"
21904    shlibpath_var=LD_LIBRARY_PATH
21905    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21906    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21907    soname_spec='${libname}${release}${shared_ext}$major'
21908    if test "X$HPUX_IA64_MODE" = X32; then
21909      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21910    else
21911      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21912    fi
21913    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21914    ;;
21915  hppa*64*)
21916    shrext_cmds='.sl'
21917    hardcode_into_libs=yes
21918    dynamic_linker="$host_os dld.sl"
21919    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21920    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21921    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21922    soname_spec='${libname}${release}${shared_ext}$major'
21923    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21924    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21925    ;;
21926  *)
21927    shrext_cmds='.sl'
21928    dynamic_linker="$host_os dld.sl"
21929    shlibpath_var=SHLIB_PATH
21930    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21931    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21932    soname_spec='${libname}${release}${shared_ext}$major'
21933    ;;
21934  esac
21935  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21936  postinstall_cmds='chmod 555 $lib'
21937  # or fails outright, so override atomically:
21938  install_override_mode=555
21939  ;;
21940
21941interix[3-9]*)
21942  version_type=linux
21943  need_lib_prefix=no
21944  need_version=no
21945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21946  soname_spec='${libname}${release}${shared_ext}$major'
21947  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21948  shlibpath_var=LD_LIBRARY_PATH
21949  shlibpath_overrides_runpath=no
21950  hardcode_into_libs=yes
21951  ;;
21952
21953irix5* | irix6* | nonstopux*)
21954  case $host_os in
21955    nonstopux*) version_type=nonstopux ;;
21956    *)
21957	if test "$lt_cv_prog_gnu_ld" = yes; then
21958		version_type=linux
21959	else
21960		version_type=irix
21961	fi ;;
21962  esac
21963  need_lib_prefix=no
21964  need_version=no
21965  soname_spec='${libname}${release}${shared_ext}$major'
21966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21967  case $host_os in
21968  irix5* | nonstopux*)
21969    libsuff= shlibsuff=
21970    ;;
21971  *)
21972    case $LD in # libtool.m4 will add one of these switches to LD
21973    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21974      libsuff= shlibsuff= libmagic=32-bit;;
21975    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21976      libsuff=32 shlibsuff=N32 libmagic=N32;;
21977    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21978      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21979    *) libsuff= shlibsuff= libmagic=never-match;;
21980    esac
21981    ;;
21982  esac
21983  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21984  shlibpath_overrides_runpath=no
21985  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21986  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21987  hardcode_into_libs=yes
21988  ;;
21989
21990# No shared lib support for Linux oldld, aout, or coff.
21991linux*oldld* | linux*aout* | linux*coff*)
21992  dynamic_linker=no
21993  ;;
21994
21995# This must be Linux ELF.
21996
21997# uclinux* changes (here and below) have been submitted to the libtool
21998# project, but have not yet been accepted: they are GCC-local changes
21999# for the time being.  (See
22000# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22001linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
22002  version_type=linux
22003  need_lib_prefix=no
22004  need_version=no
22005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22006  soname_spec='${libname}${release}${shared_ext}$major'
22007  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22008  shlibpath_var=LD_LIBRARY_PATH
22009  shlibpath_overrides_runpath=no
22010
22011  # Some binutils ld are patched to set DT_RUNPATH
22012  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22013  $as_echo_n "(cached) " >&6
22014else
22015  lt_cv_shlibpath_overrides_runpath=no
22016    save_LDFLAGS=$LDFLAGS
22017    save_libdir=$libdir
22018    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22019	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22020    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22021/* end confdefs.h.  */
22022
22023int
22024main ()
22025{
22026
22027  ;
22028  return 0;
22029}
22030_ACEOF
22031if ac_fn_cxx_try_link "$LINENO"; then :
22032  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22033  lt_cv_shlibpath_overrides_runpath=yes
22034fi
22035fi
22036rm -f core conftest.err conftest.$ac_objext \
22037    conftest$ac_exeext conftest.$ac_ext
22038    LDFLAGS=$save_LDFLAGS
22039    libdir=$save_libdir
22040
22041fi
22042
22043  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22044
22045  # This implies no fast_install, which is unacceptable.
22046  # Some rework will be needed to allow for fast_install
22047  # before this can be enabled.
22048  hardcode_into_libs=yes
22049
22050  # Append ld.so.conf contents to the search path
22051  if test -f /etc/ld.so.conf; then
22052    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' ' '`
22053    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22054  fi
22055
22056  # We used to test for /lib/ld.so.1 and disable shared libraries on
22057  # powerpc, because MkLinux only supported shared libraries with the
22058  # GNU dynamic linker.  Since this was broken with cross compilers,
22059  # most powerpc-linux boxes support dynamic linking these days and
22060  # people can always --disable-shared, the test was removed, and we
22061  # assume the GNU/Linux dynamic linker is in use.
22062  dynamic_linker='GNU/Linux ld.so'
22063  ;;
22064
22065netbsd*)
22066  version_type=sunos
22067  need_lib_prefix=no
22068  need_version=no
22069  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22070    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22071    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22072    dynamic_linker='NetBSD (a.out) ld.so'
22073  else
22074    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22075    soname_spec='${libname}${release}${shared_ext}$major'
22076    dynamic_linker='NetBSD ld.elf_so'
22077  fi
22078  shlibpath_var=LD_LIBRARY_PATH
22079  shlibpath_overrides_runpath=yes
22080  hardcode_into_libs=yes
22081  ;;
22082
22083newsos6)
22084  version_type=linux
22085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22086  shlibpath_var=LD_LIBRARY_PATH
22087  shlibpath_overrides_runpath=yes
22088  ;;
22089
22090*nto* | *qnx*)
22091  version_type=qnx
22092  need_lib_prefix=no
22093  need_version=no
22094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22095  soname_spec='${libname}${release}${shared_ext}$major'
22096  shlibpath_var=LD_LIBRARY_PATH
22097  shlibpath_overrides_runpath=no
22098  hardcode_into_libs=yes
22099  dynamic_linker='ldqnx.so'
22100  ;;
22101
22102openbsd*)
22103  version_type=sunos
22104  sys_lib_dlsearch_path_spec="/usr/lib"
22105  need_lib_prefix=no
22106  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22107  case $host_os in
22108    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
22109    *)				need_version=no  ;;
22110  esac
22111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22112  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22113  shlibpath_var=LD_LIBRARY_PATH
22114  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22115    case $host_os in
22116      openbsd2.[89] | openbsd2.[89].*)
22117	shlibpath_overrides_runpath=no
22118	;;
22119      *)
22120	shlibpath_overrides_runpath=yes
22121	;;
22122      esac
22123  else
22124    shlibpath_overrides_runpath=yes
22125  fi
22126  ;;
22127
22128os2*)
22129  libname_spec='$name'
22130  shrext_cmds=".dll"
22131  need_lib_prefix=no
22132  library_names_spec='$libname${shared_ext} $libname.a'
22133  dynamic_linker='OS/2 ld.exe'
22134  shlibpath_var=LIBPATH
22135  ;;
22136
22137osf3* | osf4* | osf5*)
22138  version_type=osf
22139  need_lib_prefix=no
22140  need_version=no
22141  soname_spec='${libname}${release}${shared_ext}$major'
22142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22143  shlibpath_var=LD_LIBRARY_PATH
22144  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22145  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22146  ;;
22147
22148rdos*)
22149  dynamic_linker=no
22150  ;;
22151
22152solaris*)
22153  version_type=linux
22154  need_lib_prefix=no
22155  need_version=no
22156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22157  soname_spec='${libname}${release}${shared_ext}$major'
22158  shlibpath_var=LD_LIBRARY_PATH
22159  shlibpath_overrides_runpath=yes
22160  hardcode_into_libs=yes
22161  # ldd complains unless libraries are executable
22162  postinstall_cmds='chmod +x $lib'
22163  ;;
22164
22165sunos4*)
22166  version_type=sunos
22167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22168  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22169  shlibpath_var=LD_LIBRARY_PATH
22170  shlibpath_overrides_runpath=yes
22171  if test "$with_gnu_ld" = yes; then
22172    need_lib_prefix=no
22173  fi
22174  need_version=yes
22175  ;;
22176
22177sysv4 | sysv4.3*)
22178  version_type=linux
22179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22180  soname_spec='${libname}${release}${shared_ext}$major'
22181  shlibpath_var=LD_LIBRARY_PATH
22182  case $host_vendor in
22183    sni)
22184      shlibpath_overrides_runpath=no
22185      need_lib_prefix=no
22186      runpath_var=LD_RUN_PATH
22187      ;;
22188    siemens)
22189      need_lib_prefix=no
22190      ;;
22191    motorola)
22192      need_lib_prefix=no
22193      need_version=no
22194      shlibpath_overrides_runpath=no
22195      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22196      ;;
22197  esac
22198  ;;
22199
22200sysv4*MP*)
22201  if test -d /usr/nec ;then
22202    version_type=linux
22203    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22204    soname_spec='$libname${shared_ext}.$major'
22205    shlibpath_var=LD_LIBRARY_PATH
22206  fi
22207  ;;
22208
22209sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22210  version_type=freebsd-elf
22211  need_lib_prefix=no
22212  need_version=no
22213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22214  soname_spec='${libname}${release}${shared_ext}$major'
22215  shlibpath_var=LD_LIBRARY_PATH
22216  shlibpath_overrides_runpath=yes
22217  hardcode_into_libs=yes
22218  if test "$with_gnu_ld" = yes; then
22219    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22220  else
22221    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22222    case $host_os in
22223      sco3.2v5*)
22224        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22225	;;
22226    esac
22227  fi
22228  sys_lib_dlsearch_path_spec='/usr/lib'
22229  ;;
22230
22231tpf*)
22232  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
22233  version_type=linux
22234  need_lib_prefix=no
22235  need_version=no
22236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22237  shlibpath_var=LD_LIBRARY_PATH
22238  shlibpath_overrides_runpath=no
22239  hardcode_into_libs=yes
22240  ;;
22241
22242uts4*)
22243  version_type=linux
22244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22245  soname_spec='${libname}${release}${shared_ext}$major'
22246  shlibpath_var=LD_LIBRARY_PATH
22247  ;;
22248
22249*)
22250  dynamic_linker=no
22251  ;;
22252esac
22253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22254$as_echo "$dynamic_linker" >&6; }
22255test "$dynamic_linker" = no && can_build_shared=no
22256
22257variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22258if test "$GCC" = yes; then
22259  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22260fi
22261
22262if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22263  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22264fi
22265if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22266  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22267fi
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22307$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22308hardcode_action_CXX=
22309if test -n "$hardcode_libdir_flag_spec_CXX" ||
22310   test -n "$runpath_var_CXX" ||
22311   test "X$hardcode_automatic_CXX" = "Xyes" ; then
22312
22313  # We can hardcode non-existent directories.
22314  if test "$hardcode_direct_CXX" != no &&
22315     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22316     # have to relink, otherwise we might link with an installed library
22317     # when we should be linking with a yet-to-be-installed one
22318     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22319     test "$hardcode_minus_L_CXX" != no; then
22320    # Linking always hardcodes the temporary library directory.
22321    hardcode_action_CXX=relink
22322  else
22323    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22324    hardcode_action_CXX=immediate
22325  fi
22326else
22327  # We cannot hardcode anything, or else we can only hardcode existing
22328  # directories.
22329  hardcode_action_CXX=unsupported
22330fi
22331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22332$as_echo "$hardcode_action_CXX" >&6; }
22333
22334if test "$hardcode_action_CXX" = relink ||
22335   test "$inherit_rpath_CXX" = yes; then
22336  # Fast installation is not supported
22337  enable_fast_install=no
22338elif test "$shlibpath_overrides_runpath" = yes ||
22339     test "$enable_shared" = no; then
22340  # Fast installation is not necessary
22341  enable_fast_install=needless
22342fi
22343
22344
22345
22346
22347
22348
22349
22350  fi # test -n "$compiler"
22351
22352  CC=$lt_save_CC
22353  LDCXX=$LD
22354  LD=$lt_save_LD
22355  GCC=$lt_save_GCC
22356  with_gnu_ld=$lt_save_with_gnu_ld
22357  lt_cv_path_LDCXX=$lt_cv_path_LD
22358  lt_cv_path_LD=$lt_save_path_LD
22359  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22360  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22361fi # test "$_lt_caught_CXX_error" != yes
22362
22363ac_ext=cpp
22364ac_cpp='$CXXCPP $CPPFLAGS'
22365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384# Only expand once:
22385
22386
22387
22388
22389
22390# Identify the assembler which will work hand-in-glove with the newly
22391# built GCC, so that we can examine its features.  This is the assembler
22392# which will be driven by the driver program.
22393#
22394# If build != host, and we aren't building gas in-tree, we identify a
22395# build->target assembler and hope that it will have the same features
22396# as the host->target assembler we'll be using.
22397gcc_cv_gas_major_version=
22398gcc_cv_gas_minor_version=
22399gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22400
22401if ${gcc_cv_as+:} false; then :
22402
22403else
22404
22405if test -x "$DEFAULT_ASSEMBLER"; then
22406	gcc_cv_as="$DEFAULT_ASSEMBLER"
22407elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22408     && test -f ../gas/Makefile \
22409     && test x$build = x$host; then
22410	gcc_cv_as=../gas/as-new$build_exeext
22411elif test -x as$build_exeext; then
22412	# Build using assembler in the current directory.
22413	gcc_cv_as=./as$build_exeext
22414elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22415        gcc_cv_as="$AS_FOR_TARGET"
22416else
22417        # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22418set dummy $AS_FOR_TARGET; ac_word=$2
22419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22420$as_echo_n "checking for $ac_word... " >&6; }
22421if ${ac_cv_path_gcc_cv_as+:} false; then :
22422  $as_echo_n "(cached) " >&6
22423else
22424  case $gcc_cv_as in
22425  [\\/]* | ?:[\\/]*)
22426  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22427  ;;
22428  *)
22429  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22430for as_dir in $PATH
22431do
22432  IFS=$as_save_IFS
22433  test -z "$as_dir" && as_dir=.
22434    for ac_exec_ext in '' $ac_executable_extensions; do
22435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22436    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22438    break 2
22439  fi
22440done
22441  done
22442IFS=$as_save_IFS
22443
22444  ;;
22445esac
22446fi
22447gcc_cv_as=$ac_cv_path_gcc_cv_as
22448if test -n "$gcc_cv_as"; then
22449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22450$as_echo "$gcc_cv_as" >&6; }
22451else
22452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22453$as_echo "no" >&6; }
22454fi
22455
22456
22457fi
22458fi
22459
22460ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22461
22462case "$ORIGINAL_AS_FOR_TARGET" in
22463  ./as | ./as$build_exeext) ;;
22464  *) ac_config_files="$ac_config_files as:exec-tool.in"
22465 ;;
22466esac
22467
22468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22469$as_echo_n "checking what assembler to use... " >&6; }
22470if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22471  # Single tree build which includes gas.  We want to prefer it
22472  # over whatever linker top-level may have detected, since
22473  # we'll use what we're building after installation anyway.
22474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22475$as_echo "newly built gas" >&6; }
22476  in_tree_gas=yes
22477  gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22478for f in $gcc_cv_as_bfd_srcdir/configure \
22479         $gcc_cv_as_gas_srcdir/configure \
22480         $gcc_cv_as_gas_srcdir/configure.ac \
22481         $gcc_cv_as_gas_srcdir/Makefile.in ; do
22482  gcc_cv_gas_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22483  if test x$gcc_cv_gas_version != x; then
22484    break
22485  fi
22486done
22487case $gcc_cv_gas_version in
22488  VERSION=[0-9]*) ;;
22489  *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22490esac
22491gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22492gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22493gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22494case $gcc_cv_gas_patch_version in
22495  "") gcc_cv_gas_patch_version="0" ;;
22496esac
22497gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22498			    + $gcc_cv_gas_minor_version \) \* 1000 \
22499			    + $gcc_cv_gas_patch_version`
22500
22501  in_tree_gas_is_elf=no
22502  if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22503     || (grep 'obj_format = multi' ../gas/Makefile \
22504         && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22505  then
22506    in_tree_gas_is_elf=yes
22507  fi
22508else
22509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22510$as_echo "$gcc_cv_as" >&6; }
22511  in_tree_gas=no
22512fi
22513
22514default_ld=
22515# Check whether --enable-ld was given.
22516if test "${enable_ld+set}" = set; then :
22517  enableval=$enable_ld; case "${enableval}" in
22518 no)
22519   default_ld=ld.gold
22520   ;;
22521 esac
22522fi
22523
22524
22525install_gold_as_default=no
22526# Check whether --enable-gold was given.
22527if test "${enable_gold+set}" = set; then :
22528  enableval=$enable_gold; case "${enableval}" in
22529 default)
22530   install_gold_as_default=yes
22531   ;;
22532 yes)
22533   if test x${default_ld} != x; then
22534     install_gold_as_default=yes
22535   fi
22536   ;;
22537 no)
22538   ;;
22539 *)
22540   as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22541   ;;
22542 esac
22543fi
22544
22545
22546# Identify the linker which will work hand-in-glove with the newly
22547# built GCC, so that we can examine its features.  This is the linker
22548# which will be driven by the driver program.
22549#
22550# If build != host, and we aren't building gas in-tree, we identify a
22551# build->target linker and hope that it will have the same features
22552# as the host->target linker we'll be using.
22553gcc_cv_gld_major_version=
22554gcc_cv_gld_minor_version=
22555gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22556gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22557gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22558
22559if ${gcc_cv_ld+:} false; then :
22560
22561else
22562
22563if test -x "$DEFAULT_LINKER"; then
22564	gcc_cv_ld="$DEFAULT_LINKER"
22565elif test $install_gold_as_default = yes \
22566     && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22567     && test -f ../gold/Makefile \
22568     && test x$build = x$host; then
22569	gcc_cv_ld=../gold/ld-new$build_exeext
22570elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22571     && test -f ../ld/Makefile \
22572     && test x$build = x$host; then
22573	gcc_cv_ld=../ld/ld-new$build_exeext
22574elif test -x collect-ld$build_exeext; then
22575	# Build using linker in the current directory.
22576	gcc_cv_ld=./collect-ld$build_exeext
22577elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22578        gcc_cv_ld="$LD_FOR_TARGET"
22579else
22580        # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22581set dummy $LD_FOR_TARGET; ac_word=$2
22582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22583$as_echo_n "checking for $ac_word... " >&6; }
22584if ${ac_cv_path_gcc_cv_ld+:} false; then :
22585  $as_echo_n "(cached) " >&6
22586else
22587  case $gcc_cv_ld in
22588  [\\/]* | ?:[\\/]*)
22589  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22590  ;;
22591  *)
22592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22593for as_dir in $PATH
22594do
22595  IFS=$as_save_IFS
22596  test -z "$as_dir" && as_dir=.
22597    for ac_exec_ext in '' $ac_executable_extensions; do
22598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22599    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22601    break 2
22602  fi
22603done
22604  done
22605IFS=$as_save_IFS
22606
22607  ;;
22608esac
22609fi
22610gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22611if test -n "$gcc_cv_ld"; then
22612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22613$as_echo "$gcc_cv_ld" >&6; }
22614else
22615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22616$as_echo "no" >&6; }
22617fi
22618
22619
22620fi
22621fi
22622
22623ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22624PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22625# if the PLUGIN_LD is set ld-new, just have it as ld
22626# as that is the installed named.
22627if test x$PLUGIN_LD_SUFFIX = xld-new \
22628   || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22629  PLUGIN_LD_SUFFIX=ld
22630fi
22631
22632# Check whether --with-plugin-ld was given.
22633if test "${with_plugin_ld+set}" = set; then :
22634  withval=$with_plugin_ld; if test x"$withval" != x; then
22635   ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22636   PLUGIN_LD_SUFFIX="$withval"
22637 fi
22638fi
22639
22640
22641
22642cat >>confdefs.h <<_ACEOF
22643#define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22644_ACEOF
22645
22646
22647# Check to see if we are using gold instead of ld
22648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22649$as_echo_n "checking whether we are using gold... " >&6; }
22650ld_is_gold=no
22651if test x$gcc_cv_ld != x; then
22652  if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22653     | grep "GNU gold" > /dev/null; then
22654    ld_is_gold=yes
22655  fi
22656fi
22657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22658$as_echo "$ld_is_gold" >&6; }
22659
22660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22661$as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22662# Check to see if default ld is not gold, but gold is
22663# available and has support for split stack.  If gcc was configured
22664# with gold then no checking is done.
22665#
22666if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22667
22668# For platforms other than powerpc64*, enable as appropriate.
22669
22670  gold_non_default=no
22671  ld_gold=`which ${gcc_cv_ld}.gold`
22672# Make sure this gold has minimal split stack support
22673  if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22674    ld_vers=`$ld_gold --version | sed 1q`
22675    gold_vers=`echo $ld_vers | sed -n \
22676          -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22677    case $target in
22678# check that the gold version contains the complete split stack support
22679# on powerpc64 big and little endian
22680      powerpc64*-*-*)
22681        case "$gold_vers" in
22682          2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22683          ;;
22684          *) gold_non_default=no
22685          ;;
22686        esac
22687        ;;
22688    esac
22689  fi
22690  if test $gold_non_default = yes; then
22691
22692$as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22693
22694  fi
22695fi
22696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22697$as_echo "$gold_non_default" >&6; }
22698
22699ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22700
22701case "$ORIGINAL_LD_FOR_TARGET" in
22702  ./collect-ld | ./collect-ld$build_exeext) ;;
22703  *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22704 ;;
22705esac
22706
22707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22708$as_echo_n "checking what linker to use... " >&6; }
22709if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22710   || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22711	# Single tree build which includes ld.  We want to prefer it
22712	# over whatever linker top-level may have detected, since
22713	# we'll use what we're building after installation anyway.
22714	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22715$as_echo "newly built ld" >&6; }
22716	in_tree_ld=yes
22717	in_tree_ld_is_elf=no
22718	if (grep 'EMUL = .*elf' ../ld/Makefile \
22719	    || grep 'EMUL = .*linux' ../ld/Makefile \
22720	    || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22721	  in_tree_ld_is_elf=yes
22722	elif test "$ld_is_gold" = yes; then
22723	  in_tree_ld_is_elf=yes
22724	fi
22725	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
22726	do
22727		gcc_cv_gld_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22728		if test x$gcc_cv_gld_version != x; then
22729			break
22730		fi
22731	done
22732	case $gcc_cv_gld_version in
22733	  VERSION=[0-9]*) ;;
22734	  *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22735	esac
22736	gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22737	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22738	ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22739	ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22740else
22741	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22742$as_echo "$gcc_cv_ld" >&6; }
22743	in_tree_ld=no
22744	gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22745	ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22746	ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22747fi
22748
22749
22750
22751
22752# Figure out what nm we will be using.
22753gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22754if ${gcc_cv_nm+:} false; then :
22755
22756else
22757
22758if test -f $gcc_cv_binutils_srcdir/configure.ac \
22759     && test -f ../binutils/Makefile \
22760     && test x$build = x$host; then
22761	gcc_cv_nm=../binutils/nm-new$build_exeext
22762elif test -x nm$build_exeext; then
22763	gcc_cv_nm=./nm$build_exeext
22764elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22765        gcc_cv_nm="$NM_FOR_TARGET"
22766else
22767        # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22768set dummy $NM_FOR_TARGET; ac_word=$2
22769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22770$as_echo_n "checking for $ac_word... " >&6; }
22771if ${ac_cv_path_gcc_cv_nm+:} false; then :
22772  $as_echo_n "(cached) " >&6
22773else
22774  case $gcc_cv_nm in
22775  [\\/]* | ?:[\\/]*)
22776  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22777  ;;
22778  *)
22779  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22780for as_dir in $PATH
22781do
22782  IFS=$as_save_IFS
22783  test -z "$as_dir" && as_dir=.
22784    for ac_exec_ext in '' $ac_executable_extensions; do
22785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22786    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22788    break 2
22789  fi
22790done
22791  done
22792IFS=$as_save_IFS
22793
22794  ;;
22795esac
22796fi
22797gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22798if test -n "$gcc_cv_nm"; then
22799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22800$as_echo "$gcc_cv_nm" >&6; }
22801else
22802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22803$as_echo "no" >&6; }
22804fi
22805
22806
22807fi
22808fi
22809
22810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22811$as_echo_n "checking what nm to use... " >&6; }
22812if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22813	# Single tree build which includes binutils.
22814	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22815$as_echo "newly built nm" >&6; }
22816	in_tree_nm=yes
22817else
22818	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22819$as_echo "$gcc_cv_nm" >&6; }
22820	in_tree_nm=no
22821fi
22822
22823ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22824
22825case "$ORIGINAL_NM_FOR_TARGET" in
22826  ./nm | ./nm$build_exeext) ;;
22827  *) ac_config_files="$ac_config_files nm:exec-tool.in"
22828 ;;
22829esac
22830
22831
22832# Figure out what objdump we will be using.
22833if ${gcc_cv_objdump+:} false; then :
22834
22835else
22836
22837if test -f $gcc_cv_binutils_srcdir/configure.ac \
22838     && test -f ../binutils/Makefile \
22839     && test x$build = x$host; then
22840	# Single tree build which includes binutils.
22841	gcc_cv_objdump=../binutils/objdump$build_exeext
22842elif test -x objdump$build_exeext; then
22843	gcc_cv_objdump=./objdump$build_exeext
22844elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22845        gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22846else
22847        # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22848set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22850$as_echo_n "checking for $ac_word... " >&6; }
22851if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22852  $as_echo_n "(cached) " >&6
22853else
22854  case $gcc_cv_objdump in
22855  [\\/]* | ?:[\\/]*)
22856  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22857  ;;
22858  *)
22859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22860for as_dir in $PATH
22861do
22862  IFS=$as_save_IFS
22863  test -z "$as_dir" && as_dir=.
22864    for ac_exec_ext in '' $ac_executable_extensions; do
22865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22866    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22868    break 2
22869  fi
22870done
22871  done
22872IFS=$as_save_IFS
22873
22874  ;;
22875esac
22876fi
22877gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22878if test -n "$gcc_cv_objdump"; then
22879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22880$as_echo "$gcc_cv_objdump" >&6; }
22881else
22882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22883$as_echo "no" >&6; }
22884fi
22885
22886
22887fi
22888fi
22889
22890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22891$as_echo_n "checking what objdump to use... " >&6; }
22892if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22893	# Single tree build which includes binutils.
22894	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22895$as_echo "newly built objdump" >&6; }
22896elif test x$gcc_cv_objdump = x; then
22897	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22898$as_echo "not found" >&6; }
22899else
22900	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22901$as_echo "$gcc_cv_objdump" >&6; }
22902fi
22903
22904# Figure out what readelf we will be using.
22905if ${gcc_cv_readelf+:} false; then :
22906
22907else
22908
22909if test -f $gcc_cv_binutils_srcdir/configure.ac \
22910     && test -f ../binutils/Makefile \
22911     && test x$build = x$host; then
22912	# Single tree build which includes binutils.
22913	gcc_cv_readelf=../binutils/readelf$build_exeext
22914elif test -x readelf$build_exeext; then
22915	gcc_cv_readelf=./readelf$build_exeext
22916elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22917        gcc_cv_readelf="$READELF_FOR_TARGET"
22918else
22919        # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22920set dummy $READELF_FOR_TARGET; ac_word=$2
22921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22922$as_echo_n "checking for $ac_word... " >&6; }
22923if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22924  $as_echo_n "(cached) " >&6
22925else
22926  case $gcc_cv_readelf in
22927  [\\/]* | ?:[\\/]*)
22928  ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22929  ;;
22930  *)
22931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22932for as_dir in $PATH
22933do
22934  IFS=$as_save_IFS
22935  test -z "$as_dir" && as_dir=.
22936    for ac_exec_ext in '' $ac_executable_extensions; do
22937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22938    ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22940    break 2
22941  fi
22942done
22943  done
22944IFS=$as_save_IFS
22945
22946  ;;
22947esac
22948fi
22949gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22950if test -n "$gcc_cv_readelf"; then
22951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22952$as_echo "$gcc_cv_readelf" >&6; }
22953else
22954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22955$as_echo "no" >&6; }
22956fi
22957
22958
22959fi
22960fi
22961
22962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22963$as_echo_n "checking what readelf to use... " >&6; }
22964if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22965	# Single tree build which includes binutils.
22966	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22967$as_echo "newly built readelf" >&6; }
22968elif test x$gcc_cv_readelf = x; then
22969	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22970$as_echo "not found" >&6; }
22971else
22972	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22973$as_echo "$gcc_cv_readelf" >&6; }
22974fi
22975
22976# Figure out what otool we will be using.
22977if ${gcc_cv_otool+:} false; then :
22978
22979else
22980
22981if test -x otool$build_exeext; then
22982	gcc_cv_otool=./otool$build_exeext
22983elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22984        gcc_cv_otool="$OTOOL_FOR_TARGET"
22985else
22986        # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22987set dummy $OTOOL_FOR_TARGET; ac_word=$2
22988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22989$as_echo_n "checking for $ac_word... " >&6; }
22990if ${ac_cv_path_gcc_cv_otool+:} false; then :
22991  $as_echo_n "(cached) " >&6
22992else
22993  case $gcc_cv_otool in
22994  [\\/]* | ?:[\\/]*)
22995  ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22996  ;;
22997  *)
22998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22999for as_dir in $PATH
23000do
23001  IFS=$as_save_IFS
23002  test -z "$as_dir" && as_dir=.
23003    for ac_exec_ext in '' $ac_executable_extensions; do
23004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23005    ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23007    break 2
23008  fi
23009done
23010  done
23011IFS=$as_save_IFS
23012
23013  ;;
23014esac
23015fi
23016gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23017if test -n "$gcc_cv_otool"; then
23018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23019$as_echo "$gcc_cv_otool" >&6; }
23020else
23021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23022$as_echo "no" >&6; }
23023fi
23024
23025
23026fi
23027fi
23028
23029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23030$as_echo_n "checking what otool to use... " >&6; }
23031if test x$gcc_cv_otool = x; then
23032	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23033$as_echo "not found" >&6; }
23034else
23035	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23036$as_echo "$gcc_cv_otool" >&6; }
23037fi
23038
23039# Figure out what assembler alignment features are present.
23040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23041$as_echo_n "checking assembler flags... " >&6; }
23042if ${gcc_cv_as_flags+:} false; then :
23043  $as_echo_n "(cached) " >&6
23044else
23045   case "$target" in
23046  i[34567]86-*-linux*)
23047        gcc_cv_as_flags=--32
23048    ;;
23049  x86_64-*-linux-gnux32)
23050        gcc_cv_as_flags=--x32
23051    ;;
23052  x86_64-*-linux*)
23053        gcc_cv_as_flags=--64
23054    ;;
23055  powerpc*-*-darwin*)
23056        gcc_cv_as_flags="-arch ppc"
23057    ;;
23058  *)
23059    gcc_cv_as_flags=" "
23060    ;;
23061  esac
23062fi
23063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23064$as_echo "$gcc_cv_as_flags" >&6; }
23065
23066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23067$as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23068if ${gcc_cv_as_balign_and_p2align+:} false; then :
23069  $as_echo_n "(cached) " >&6
23070else
23071  gcc_cv_as_balign_and_p2align=no
23072    if test $in_tree_gas = yes; then
23073    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23074  then gcc_cv_as_balign_and_p2align=yes
23075fi
23076  elif test x$gcc_cv_as != x; then
23077    $as_echo '.balign 4
23078.p2align 2' > conftest.s
23079    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23080  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23081  (eval $ac_try) 2>&5
23082  ac_status=$?
23083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23084  test $ac_status = 0; }; }
23085    then
23086	gcc_cv_as_balign_and_p2align=yes
23087    else
23088      echo "configure: failed program was" >&5
23089      cat conftest.s >&5
23090    fi
23091    rm -f conftest.o conftest.s
23092  fi
23093fi
23094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23095$as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23096if test $gcc_cv_as_balign_and_p2align = yes; then
23097
23098$as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23099
23100fi
23101
23102
23103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23104$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23105if ${gcc_cv_as_max_skip_p2align+:} false; then :
23106  $as_echo_n "(cached) " >&6
23107else
23108  gcc_cv_as_max_skip_p2align=no
23109    if test $in_tree_gas = yes; then
23110    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23111  then gcc_cv_as_max_skip_p2align=yes
23112fi
23113  elif test x$gcc_cv_as != x; then
23114    $as_echo '.p2align 4,,7' > conftest.s
23115    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23116  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23117  (eval $ac_try) 2>&5
23118  ac_status=$?
23119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23120  test $ac_status = 0; }; }
23121    then
23122	gcc_cv_as_max_skip_p2align=yes
23123    else
23124      echo "configure: failed program was" >&5
23125      cat conftest.s >&5
23126    fi
23127    rm -f conftest.o conftest.s
23128  fi
23129fi
23130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23131$as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23132if test $gcc_cv_as_max_skip_p2align = yes; then
23133
23134$as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23135
23136fi
23137
23138
23139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23140$as_echo_n "checking assembler for .literal16... " >&6; }
23141if ${gcc_cv_as_literal16+:} false; then :
23142  $as_echo_n "(cached) " >&6
23143else
23144  gcc_cv_as_literal16=no
23145    if test $in_tree_gas = yes; then
23146    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23147  then gcc_cv_as_literal16=yes
23148fi
23149  elif test x$gcc_cv_as != x; then
23150    $as_echo '.literal16' > conftest.s
23151    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23152  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23153  (eval $ac_try) 2>&5
23154  ac_status=$?
23155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23156  test $ac_status = 0; }; }
23157    then
23158	gcc_cv_as_literal16=yes
23159    else
23160      echo "configure: failed program was" >&5
23161      cat conftest.s >&5
23162    fi
23163    rm -f conftest.o conftest.s
23164  fi
23165fi
23166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23167$as_echo "$gcc_cv_as_literal16" >&6; }
23168if test $gcc_cv_as_literal16 = yes; then
23169
23170$as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23171
23172fi
23173
23174
23175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23176$as_echo_n "checking assembler for working .subsection -1... " >&6; }
23177if ${gcc_cv_as_subsection_m1+:} false; then :
23178  $as_echo_n "(cached) " >&6
23179else
23180  gcc_cv_as_subsection_m1=no
23181    if test $in_tree_gas = yes; then
23182    if test $in_tree_gas_is_elf = yes \
23183  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23184  then gcc_cv_as_subsection_m1=yes
23185fi
23186  elif test x$gcc_cv_as != x; then
23187    $as_echo 'conftest_label1: .word 0
23188.subsection -1
23189conftest_label2: .word 0
23190.previous' > conftest.s
23191    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23192  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23193  (eval $ac_try) 2>&5
23194  ac_status=$?
23195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23196  test $ac_status = 0; }; }
23197    then
23198	if test x$gcc_cv_nm != x; then
23199    $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23200    $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23201    if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23202    then :
23203    else gcc_cv_as_subsection_m1=yes
23204    fi
23205    rm -f conftest.nm1 conftest.nm2
23206  fi
23207    else
23208      echo "configure: failed program was" >&5
23209      cat conftest.s >&5
23210    fi
23211    rm -f conftest.o conftest.s
23212  fi
23213fi
23214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23215$as_echo "$gcc_cv_as_subsection_m1" >&6; }
23216if test $gcc_cv_as_subsection_m1 = yes; then
23217
23218$as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23219
23220fi
23221
23222
23223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23224$as_echo_n "checking assembler for .weak... " >&6; }
23225if ${gcc_cv_as_weak+:} false; then :
23226  $as_echo_n "(cached) " >&6
23227else
23228  gcc_cv_as_weak=no
23229    if test $in_tree_gas = yes; then
23230    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23231  then gcc_cv_as_weak=yes
23232fi
23233  elif test x$gcc_cv_as != x; then
23234    $as_echo '	.weak foobar' > conftest.s
23235    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23236  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23237  (eval $ac_try) 2>&5
23238  ac_status=$?
23239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23240  test $ac_status = 0; }; }
23241    then
23242	gcc_cv_as_weak=yes
23243    else
23244      echo "configure: failed program was" >&5
23245      cat conftest.s >&5
23246    fi
23247    rm -f conftest.o conftest.s
23248  fi
23249fi
23250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23251$as_echo "$gcc_cv_as_weak" >&6; }
23252if test $gcc_cv_as_weak = yes; then
23253
23254$as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23255
23256fi
23257
23258
23259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23260$as_echo_n "checking assembler for .weakref... " >&6; }
23261if ${gcc_cv_as_weakref+:} false; then :
23262  $as_echo_n "(cached) " >&6
23263else
23264  gcc_cv_as_weakref=no
23265    if test $in_tree_gas = yes; then
23266    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23267  then gcc_cv_as_weakref=yes
23268fi
23269  elif test x$gcc_cv_as != x; then
23270    $as_echo '	.weakref foobar, barfnot' > conftest.s
23271    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23272  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23273  (eval $ac_try) 2>&5
23274  ac_status=$?
23275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23276  test $ac_status = 0; }; }
23277    then
23278	gcc_cv_as_weakref=yes
23279    else
23280      echo "configure: failed program was" >&5
23281      cat conftest.s >&5
23282    fi
23283    rm -f conftest.o conftest.s
23284  fi
23285fi
23286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23287$as_echo "$gcc_cv_as_weakref" >&6; }
23288if test $gcc_cv_as_weakref = yes; then
23289
23290$as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23291
23292fi
23293
23294
23295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23296$as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23297if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23298  $as_echo_n "(cached) " >&6
23299else
23300  gcc_cv_as_nsubspa_comdat=no
23301    if test $in_tree_gas = yes; then
23302    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23303  then gcc_cv_as_nsubspa_comdat=yes
23304fi
23305  elif test x$gcc_cv_as != x; then
23306    $as_echo '	.SPACE $TEXT$
23307	.NSUBSPA $CODE$,COMDAT' > conftest.s
23308    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23309  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310  (eval $ac_try) 2>&5
23311  ac_status=$?
23312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313  test $ac_status = 0; }; }
23314    then
23315	gcc_cv_as_nsubspa_comdat=yes
23316    else
23317      echo "configure: failed program was" >&5
23318      cat conftest.s >&5
23319    fi
23320    rm -f conftest.o conftest.s
23321  fi
23322fi
23323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23324$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23325if test $gcc_cv_as_nsubspa_comdat = yes; then
23326
23327$as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23328
23329fi
23330
23331
23332# .hidden needs to be supported in both the assembler and the linker,
23333# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23334# This is irritatingly difficult to feature test for; we have to check the
23335# date string after the version number.  If we've got an in-tree
23336# ld, we don't know its patchlevel version, so we set the baseline at 2.13
23337# to be safe.
23338# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23339case "${target}" in
23340  *-*-aix*)
23341    conftest_s='	.globl foobar,hidden'
23342    ;;
23343  *)
23344    conftest_s='	.hidden foobar
23345foobar:'
23346    ;;
23347esac
23348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23349$as_echo_n "checking assembler for .hidden... " >&6; }
23350if ${gcc_cv_as_hidden+:} false; then :
23351  $as_echo_n "(cached) " >&6
23352else
23353  gcc_cv_as_hidden=no
23354    if test $in_tree_gas = yes; then
23355    if test $in_tree_gas_is_elf = yes \
23356  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23357  then gcc_cv_as_hidden=yes
23358fi
23359  elif test x$gcc_cv_as != x; then
23360    $as_echo "$conftest_s" > conftest.s
23361    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23362  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23363  (eval $ac_try) 2>&5
23364  ac_status=$?
23365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23366  test $ac_status = 0; }; }
23367    then
23368	gcc_cv_as_hidden=yes
23369    else
23370      echo "configure: failed program was" >&5
23371      cat conftest.s >&5
23372    fi
23373    rm -f conftest.o conftest.s
23374  fi
23375fi
23376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23377$as_echo "$gcc_cv_as_hidden" >&6; }
23378
23379
23380case "${target}" in
23381  *-*-darwin*)
23382    # Darwin as has some visibility support, though with a different syntax.
23383    gcc_cv_as_hidden=yes
23384    ;;
23385esac
23386
23387# gnu_indirect_function type is an extension proposed at
23388# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23389# selection of function implementation
23390# Check whether --enable-gnu-indirect-function was given.
23391if test "${enable_gnu_indirect_function+set}" = set; then :
23392  enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23393    yes | no) ;;
23394    *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23395Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23396  esac
23397else
23398  enable_gnu_indirect_function="$default_gnu_indirect_function"
23399fi
23400
23401
23402gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23403
23404cat >>confdefs.h <<_ACEOF
23405#define HAVE_GNU_INDIRECT_FUNCTION $gif
23406_ACEOF
23407
23408
23409
23410if test $in_tree_ld != yes ; then
23411  ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23412  if echo "$ld_ver" | grep GNU > /dev/null; then
23413    if test x"$ld_is_gold" = xyes; then
23414      # GNU gold --version looks like this:
23415      #
23416      # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23417      #
23418      # We extract the binutils version which is more familiar and specific
23419      # than the gold version.
23420      ld_vers=`echo $ld_ver | sed -n \
23421	  -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23422    else
23423      # GNU ld --version looks like this:
23424      #
23425      # GNU ld (GNU Binutils) 2.21.51.20110225
23426      ld_vers=`echo $ld_ver | sed -n \
23427	  -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23428    fi
23429    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'`
23430    ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23431    ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23432    ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23433  else
23434    case "${target}" in
23435      *-*-solaris2*)
23436	# Solaris 2 ld -V output looks like this for a regular version:
23437	#
23438	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23439	#
23440	# but test versions add stuff at the end:
23441	#
23442	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23443	#
23444	# ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23445	# numbers can be used in ld.so.1 feature checks even if a different
23446	# linker is configured.
23447	ld_ver=`$gcc_cv_ld -V 2>&1`
23448	if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23449	  ld_vers=`echo $ld_ver | sed -n \
23450	    -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23451	  ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23452	  ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23453	fi
23454	;;
23455    esac
23456  fi
23457fi
23458
23459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23460$as_echo_n "checking linker for .hidden support... " >&6; }
23461if ${gcc_cv_ld_hidden+:} false; then :
23462  $as_echo_n "(cached) " >&6
23463else
23464  if test $in_tree_ld = yes ; then
23465  gcc_cv_ld_hidden=no
23466  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 \
23467     && test $in_tree_ld_is_elf = yes; then
23468     gcc_cv_ld_hidden=yes
23469  fi
23470else
23471  gcc_cv_ld_hidden=yes
23472  if test x"$ld_is_gold" = xyes; then
23473    :
23474  elif echo "$ld_ver" | grep GNU > /dev/null; then
23475    case "${target}" in
23476      mmix-knuth-mmixware)
23477        # The linker emits by default mmo, not ELF, so "no" is appropriate.
23478	gcc_cv_ld_hidden=no
23479	;;
23480    esac
23481    if test 0"$ld_date" -lt 20020404; then
23482      if test -n "$ld_date"; then
23483	# If there was date string, but was earlier than 2002-04-04, fail
23484	gcc_cv_ld_hidden=no
23485      elif test -z "$ld_vers"; then
23486	# If there was no date string nor ld version number, something is wrong
23487	gcc_cv_ld_hidden=no
23488      else
23489	test -z "$ld_vers_patch" && ld_vers_patch=0
23490	if test "$ld_vers_major" -lt 2; then
23491	  gcc_cv_ld_hidden=no
23492	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23493	  gcc_cv_ld_hidden="no"
23494	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23495	  gcc_cv_ld_hidden=no
23496	fi
23497      fi
23498    fi
23499  else
23500    case "${target}" in
23501      *-*-aix[789]*)
23502        gcc_cv_ld_hidden=yes
23503        ;;
23504      *-*-darwin*)
23505	# Darwin ld has some visibility support.
23506	gcc_cv_ld_hidden=yes
23507        ;;
23508      hppa64*-*-hpux* | ia64*-*-hpux*)
23509	gcc_cv_ld_hidden=yes
23510	;;
23511      *-*-solaris2*)
23512	# Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23513	# .symbolic was only added in Solaris 9 12/02.
23514        gcc_cv_ld_hidden=yes
23515	;;
23516      *)
23517	gcc_cv_ld_hidden=no
23518	;;
23519    esac
23520  fi
23521fi
23522fi
23523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23524$as_echo "$gcc_cv_ld_hidden" >&6; }
23525libgcc_visibility=no
23526
23527
23528if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23529  libgcc_visibility=yes
23530
23531$as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23532
23533fi
23534
23535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23536$as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23537gcc_cv_ld_ro_rw_mix=unknown
23538if test $in_tree_ld = yes ; then
23539  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 \
23540     && test $in_tree_ld_is_elf = yes; then
23541    gcc_cv_ld_ro_rw_mix=read-write
23542  fi
23543elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23544  echo '.section myfoosect, "a"' > conftest1.s
23545  echo '.section myfoosect, "aw"' > conftest2.s
23546  echo '.byte 1' >> conftest2.s
23547  echo '.section myfoosect, "a"' > conftest3.s
23548  echo '.byte 0' >> conftest3.s
23549  if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23550     && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23551     && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23552     && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23553	conftest2.o conftest3.o > /dev/null 2>&1; then
23554    gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23555			 | sed -e '/myfoosect/!d' -e N`
23556    if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23557      if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23558	gcc_cv_ld_ro_rw_mix=read-only
23559      else
23560	gcc_cv_ld_ro_rw_mix=read-write
23561      fi
23562    fi
23563  fi
23564  rm -f conftest.* conftest[123].*
23565fi
23566if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23567
23568$as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23569
23570fi
23571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23572$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23573
23574# Check whether --enable-initfini-array was given.
23575if test "${enable_initfini_array+set}" = set; then :
23576  enableval=$enable_initfini_array;
23577else
23578
23579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23580$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23581if ${gcc_cv_initfini_array+:} false; then :
23582  $as_echo_n "(cached) " >&6
23583else
23584    if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23585    case "${target}" in
23586      ia64-*)
23587	if test "$cross_compiling" = yes; then :
23588  gcc_cv_initfini_array=no
23589else
23590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23591/* end confdefs.h.  */
23592
23593#ifndef __ELF__
23594#error Not an ELF OS
23595#endif
23596/* We turn on .preinit_array/.init_array/.fini_array support for ia64
23597   if it can be used.  */
23598static int x = -1;
23599int main (void) { return x; }
23600int foo (void) { x = 0; }
23601int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23602
23603_ACEOF
23604if ac_fn_cxx_try_run "$LINENO"; then :
23605  gcc_cv_initfini_array=yes
23606else
23607  gcc_cv_initfini_array=no
23608fi
23609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23610  conftest.$ac_objext conftest.beam conftest.$ac_ext
23611fi
23612;;
23613      *)
23614	gcc_cv_initfini_array=no
23615	if test $in_tree_ld = yes ; then
23616	  if test "$gcc_cv_gld_major_version" -eq 2 \
23617	     -a "$gcc_cv_gld_minor_version" -ge 22 \
23618	     -o "$gcc_cv_gld_major_version" -gt 2 \
23619	     && test $in_tree_ld_is_elf = yes; then
23620	    gcc_cv_initfini_array=yes
23621	  fi
23622	elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23623	  case $target:$gas in
23624	    *:yes)
23625	      sh_flags='"a"'
23626	      sh_type='%progbits'
23627	      ;;
23628	    i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23629	      sh_flags='"a"'
23630	      sh_type='@progbits'
23631	      ;;
23632	    sparc*-*-solaris2*:no)
23633	      sh_flags='#alloc'
23634	      sh_type='#progbits'
23635	      sh_quote='"'
23636	      ;;
23637	  esac
23638	  case "$target:$gnu_ld" in
23639	    *:yes)
23640	      cat > conftest.s <<EOF
23641.section .dtors,$sh_flags,$sh_type
23642.balign 4
23643.byte 'A', 'A', 'A', 'A'
23644.section .ctors,$sh_flags,$sh_type
23645.balign 4
23646.byte 'B', 'B', 'B', 'B'
23647.section .fini_array.65530,$sh_flags,$sh_type
23648.balign 4
23649.byte 'C', 'C', 'C', 'C'
23650.section .init_array.65530,$sh_flags,$sh_type
23651.balign 4
23652.byte 'D', 'D', 'D', 'D'
23653.section .dtors.64528,$sh_flags,$sh_type
23654.balign 4
23655.byte 'E', 'E', 'E', 'E'
23656.section .ctors.64528,$sh_flags,$sh_type
23657.balign 4
23658.byte 'F', 'F', 'F', 'F'
23659.section .fini_array.01005,$sh_flags,$sh_type
23660.balign 4
23661.byte 'G', 'G', 'G', 'G'
23662.section .init_array.01005,$sh_flags,$sh_type
23663.balign 4
23664.byte 'H', 'H', 'H', 'H'
23665.text
23666.globl _start
23667_start:
23668EOF
23669	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23670	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23671	         && $gcc_cv_objdump -s -j .init_array conftest \
23672		    | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23673	         && $gcc_cv_objdump -s -j .fini_array conftest \
23674		    | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23675	        gcc_cv_initfini_array=yes
23676	      fi
23677	      ;;
23678	    *-*-solaris2*:no)
23679	      # When Solaris ld added constructor priority support, it was
23680	      # decided to only handle .init_array.N/.fini_array.N since
23681	      # there was no need for backwards compatibility with
23682	      # .ctors.N/.dtors.N.  .ctors/.dtors remain as separate
23683	      # sections with correct execution order resp. to
23684	      # .init_array/.fini_array, while gld merges them into
23685	      # .init_array/.fini_array.
23686	      cat > conftest.s <<EOF
23687.section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23688.align 4
23689.byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23690.section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23691.align 4
23692.byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23693.section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23694.align 4
23695.byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23696.section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23697.align 4
23698.byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23699.text
23700.globl _start
23701_start:
23702EOF
23703	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23704	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23705	         && $gcc_cv_objdump -s -j .init_array conftest \
23706		    | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23707	         && $gcc_cv_objdump -s -j .fini_array conftest \
23708		    | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23709	        gcc_cv_initfini_array=yes
23710	      fi
23711	      ;;
23712	    esac
23713	  rm -f conftest conftest.*
23714	fi
23715	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23716/* end confdefs.h.  */
23717
23718#ifndef __ELF__
23719# error Not an ELF OS
23720#endif
23721#include <stdlib.h>
23722#if defined __GLIBC_PREREQ
23723# if __GLIBC_PREREQ (2, 4)
23724# else
23725#  error GLIBC 2.4 required
23726# endif
23727#else
23728# if defined __sun__ && defined __svr4__
23729   /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
23730# else
23731#  error The C library not known to support .init_array/.fini_array
23732# endif
23733#endif
23734
23735_ACEOF
23736if ac_fn_cxx_try_cpp "$LINENO"; then :
23737
23738else
23739  gcc_cv_initfini_array=no
23740fi
23741rm -f conftest.err conftest.i conftest.$ac_ext;;
23742    esac
23743  else
23744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23745$as_echo_n "checking cross compile... guessing... " >&6; }
23746    gcc_cv_initfini_array=no
23747  fi
23748fi
23749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23750$as_echo "$gcc_cv_initfini_array" >&6; }
23751  enable_initfini_array=$gcc_cv_initfini_array
23752
23753fi
23754
23755
23756cat >>confdefs.h <<_ACEOF
23757#define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23758_ACEOF
23759
23760
23761
23762# Check if we have .[us]leb128, and support symbol arithmetic with it.
23763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23764$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23765if ${gcc_cv_as_leb128+:} false; then :
23766  $as_echo_n "(cached) " >&6
23767else
23768  gcc_cv_as_leb128=no
23769    if test $in_tree_gas = yes; then
23770    if test $in_tree_gas_is_elf = yes \
23771  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23772  then gcc_cv_as_leb128=yes
23773fi
23774  elif test x$gcc_cv_as != x; then
23775    $as_echo '	.data
23776	.uleb128 L2 - L1
23777L1:
23778	.uleb128 1280
23779	.sleb128 -1010
23780L2:' > conftest.s
23781    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23782  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23783  (eval $ac_try) 2>&5
23784  ac_status=$?
23785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23786  test $ac_status = 0; }; }
23787    then
23788	# GAS versions before 2.11 do not support uleb128,
23789  # despite appearing to.
23790  # ??? There exists an elf-specific test that will crash
23791  # the assembler.  Perhaps it's better to figure out whether
23792  # arbitrary sections are supported and try the test.
23793  as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23794  if echo "$as_ver" | grep GNU > /dev/null; then
23795    as_vers=`echo $as_ver | sed -n \
23796	-e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23797    as_major=`expr "$as_vers" : '\([0-9]*\)'`
23798    as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23799    if test $as_major -eq 2 && test $as_minor -lt 11
23800    then :
23801    else gcc_cv_as_leb128=yes
23802    fi
23803  fi
23804    else
23805      echo "configure: failed program was" >&5
23806      cat conftest.s >&5
23807    fi
23808    rm -f conftest.o conftest.s
23809  fi
23810fi
23811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23812$as_echo "$gcc_cv_as_leb128" >&6; }
23813if test $gcc_cv_as_leb128 = yes; then
23814
23815$as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23816
23817fi
23818if test $gcc_cv_as_leb128 != yes; then
23819
23820$as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23821
23822fi
23823
23824# Determine if an .eh_frame section is read-only.
23825gcc_fn_eh_frame_ro () {
23826  $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23827    $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23828    sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23829}
23830
23831# Check if we have assembler support for unwind directives.
23832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23833$as_echo_n "checking assembler for cfi directives... " >&6; }
23834if ${gcc_cv_as_cfi_directive+:} false; then :
23835  $as_echo_n "(cached) " >&6
23836else
23837  gcc_cv_as_cfi_directive=no
23838  if test x$gcc_cv_as != x; then
23839    $as_echo '	.text
23840	.cfi_startproc
23841	.cfi_offset 0, 0
23842	.cfi_same_value 1
23843	.cfi_def_cfa 1, 2
23844	.cfi_escape 1, 2, 3, 4, 5
23845	.cfi_endproc' > conftest.s
23846    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23847  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23848  (eval $ac_try) 2>&5
23849  ac_status=$?
23850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23851  test $ac_status = 0; }; }
23852    then
23853	case "$target" in
23854  *-*-solaris*)
23855    # If the linker used on Solaris (like Sun ld) isn't capable of merging
23856    # read-only and read-write sections, we need to make sure that the
23857    # assembler used emits read-write .eh_frame sections.
23858    if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23859      gcc_cv_as_cfi_directive=yes
23860    elif test "x$gcc_cv_objdump" = x; then
23861      # No objdump, err on the side of caution.
23862      gcc_cv_as_cfi_directive=no
23863    else
23864      if test x$gas = xyes; then
23865	as_32_opt="--32"
23866	as_64_opt="--64"
23867      else
23868	as_32_opt="-m32"
23869	as_64_opt="-m64"
23870      fi
23871      case "$target" in
23872	sparc*-*-solaris2.*)
23873	  # On Solaris/SPARC, .eh_frame sections should always be read-write.
23874	  if gcc_fn_eh_frame_ro $as_32_opt \
23875	     || gcc_fn_eh_frame_ro $as_64_opt; then
23876	    gcc_cv_as_cfi_directive=no
23877	  else
23878	    gcc_cv_as_cfi_directive=yes
23879	  fi
23880	  ;;
23881	i?86-*-solaris2.* | x86_64-*-solaris2.*)
23882	  # On Solaris/x86, make sure that GCC and assembler agree on using
23883	  # read-only .eh_frame sections for 64-bit.
23884	  if gcc_fn_eh_frame_ro $as_32_opt; then
23885	    gcc_cv_as_cfi_directive=no
23886	  elif gcc_fn_eh_frame_ro $as_64_opt; then
23887	    gcc_cv_as_cfi_directive=yes
23888	  else
23889	    gcc_cv_as_cfi_directive=no
23890	  fi
23891	  ;;
23892      esac
23893    fi
23894    ;;
23895  *-*-*)
23896    gcc_cv_as_cfi_directive=yes
23897    ;;
23898esac
23899    else
23900      echo "configure: failed program was" >&5
23901      cat conftest.s >&5
23902    fi
23903    rm -f conftest.o conftest.s
23904  fi
23905fi
23906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23907$as_echo "$gcc_cv_as_cfi_directive" >&6; }
23908
23909
23910if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23912$as_echo_n "checking assembler for working cfi advance... " >&6; }
23913if ${gcc_cv_as_cfi_advance_working+:} false; then :
23914  $as_echo_n "(cached) " >&6
23915else
23916  gcc_cv_as_cfi_advance_working=no
23917  if test x$gcc_cv_as != x; then
23918    $as_echo '	.text
23919	.cfi_startproc
23920	.cfi_adjust_cfa_offset 64
23921	.skip 75040, 0
23922	.cfi_adjust_cfa_offset 128
23923	.cfi_endproc' > conftest.s
23924    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23925  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23926  (eval $ac_try) 2>&5
23927  ac_status=$?
23928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23929  test $ac_status = 0; }; }
23930    then
23931
23932if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23933    | grep 'DW_CFA_advance_loc[24]:[ 	][ 	]*75040[ 	]' >/dev/null; then
23934   gcc_cv_as_cfi_advance_working=yes
23935fi
23936
23937    else
23938      echo "configure: failed program was" >&5
23939      cat conftest.s >&5
23940    fi
23941    rm -f conftest.o conftest.s
23942  fi
23943fi
23944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23945$as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23946
23947
23948else
23949  # no objdump, err on the side of caution
23950  gcc_cv_as_cfi_advance_working=no
23951fi
23952
23953
23954cat >>confdefs.h <<_ACEOF
23955#define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23956       && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23957_ACEOF
23958
23959
23960
23961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23962$as_echo_n "checking assembler for cfi personality directive... " >&6; }
23963if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23964  $as_echo_n "(cached) " >&6
23965else
23966  gcc_cv_as_cfi_personality_directive=no
23967  if test x$gcc_cv_as != x; then
23968    $as_echo '	.text
23969	.cfi_startproc
23970	.cfi_personality 0, symbol
23971	.cfi_endproc' > conftest.s
23972    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23973  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23974  (eval $ac_try) 2>&5
23975  ac_status=$?
23976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23977  test $ac_status = 0; }; }
23978    then
23979	gcc_cv_as_cfi_personality_directive=yes
23980    else
23981      echo "configure: failed program was" >&5
23982      cat conftest.s >&5
23983    fi
23984    rm -f conftest.o conftest.s
23985  fi
23986fi
23987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23988$as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23989
23990
23991
23992cat >>confdefs.h <<_ACEOF
23993#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23994_ACEOF
23995
23996
23997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23998$as_echo_n "checking assembler for cfi sections directive... " >&6; }
23999if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24000  $as_echo_n "(cached) " >&6
24001else
24002  gcc_cv_as_cfi_sections_directive=no
24003  if test x$gcc_cv_as != x; then
24004    $as_echo '	.text
24005	.cfi_sections .debug_frame, .eh_frame
24006	.cfi_startproc
24007	.cfi_endproc' > conftest.s
24008    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24009  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24010  (eval $ac_try) 2>&5
24011  ac_status=$?
24012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24013  test $ac_status = 0; }; }
24014    then
24015	case $target_os in
24016  win32 | pe | cygwin* | mingw32*)
24017    # Need to check that we generated the correct relocation for the
24018    # .debug_frame section.  This was fixed for binutils 2.21.
24019    gcc_cv_as_cfi_sections_directive=no
24020    if test "x$gcc_cv_objdump" != x; then
24021     if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24022	grep secrel > /dev/null; then
24023      gcc_cv_as_cfi_sections_directive=yes
24024     fi
24025    fi
24026    ;;
24027  *)
24028    gcc_cv_as_cfi_sections_directive=yes
24029    ;;
24030esac
24031    else
24032      echo "configure: failed program was" >&5
24033      cat conftest.s >&5
24034    fi
24035    rm -f conftest.o conftest.s
24036  fi
24037fi
24038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24039$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24040
24041
24042
24043
24044cat >>confdefs.h <<_ACEOF
24045#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24046_ACEOF
24047
24048
24049# GAS versions up to and including 2.11.0 may mis-optimize
24050# .eh_frame data.
24051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24052$as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24053if ${gcc_cv_as_eh_frame+:} false; then :
24054  $as_echo_n "(cached) " >&6
24055else
24056  gcc_cv_as_eh_frame=no
24057    if test $in_tree_gas = yes; then
24058    if test $in_tree_gas_is_elf = yes \
24059  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24060  then gcc_cv_as_eh_frame=yes
24061fi
24062  elif test x$gcc_cv_as != x; then
24063    $as_echo '	.text
24064.LFB1:
24065	.4byte	0
24066.L1:
24067	.4byte	0
24068.LFE1:
24069	.section	.eh_frame,"aw",@progbits
24070__FRAME_BEGIN__:
24071	.4byte	.LECIE1-.LSCIE1
24072.LSCIE1:
24073	.4byte	0x0
24074	.byte	0x1
24075	.ascii "z\0"
24076	.byte	0x1
24077	.byte	0x78
24078	.byte	0x1a
24079	.byte	0x0
24080	.byte	0x4
24081	.4byte	1
24082	.p2align 1
24083.LECIE1:
24084.LSFDE1:
24085	.4byte	.LEFDE1-.LASFDE1
24086.LASFDE1:
24087	.4byte	.LASFDE1-__FRAME_BEGIN__
24088	.4byte	.LFB1
24089	.4byte	.LFE1-.LFB1
24090	.byte	0x4
24091	.4byte	.LFE1-.LFB1
24092	.byte	0x4
24093	.4byte	.L1-.LFB1
24094.LEFDE1:' > conftest.s
24095    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24096  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24097  (eval $ac_try) 2>&5
24098  ac_status=$?
24099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24100  test $ac_status = 0; }; }
24101    then
24102	  cat > conftest.lit <<EOF
24103 0000 10000000 00000000 017a0001 781a0004  .........z..x...
24104 0010 01000000 12000000 18000000 00000000  ................
24105 0020 08000000 04080000 0044               .........D      
24106EOF
24107cat > conftest.big <<EOF
24108 0000 00000010 00000000 017a0001 781a0004  .........z..x...
24109 0010 00000001 00000012 00000018 00000000  ................
24110 0020 00000008 04000000 0844               .........D      
24111EOF
24112  # If the assembler didn't choke, and we can objdump,
24113  # and we got the correct data, then succeed.
24114  # The text in the here-document typically retains its unix-style line
24115  # endings, while the output of objdump will use host line endings.
24116  # Therefore, use diff -b for the comparisons.
24117  if test x$gcc_cv_objdump != x \
24118  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24119     | tail -3 > conftest.got \
24120  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24121    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24122  then
24123    gcc_cv_as_eh_frame=yes
24124  elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24125  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24126  (eval $ac_try) 2>&5
24127  ac_status=$?
24128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24129  test $ac_status = 0; }; }; then
24130    gcc_cv_as_eh_frame=buggy
24131  else
24132    # Uh oh, what do we do now?
24133    gcc_cv_as_eh_frame=no
24134  fi
24135    else
24136      echo "configure: failed program was" >&5
24137      cat conftest.s >&5
24138    fi
24139    rm -f conftest.o conftest.s
24140  fi
24141fi
24142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24143$as_echo "$gcc_cv_as_eh_frame" >&6; }
24144
24145
24146
24147if test $gcc_cv_as_eh_frame = buggy; then
24148
24149$as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24150
24151fi
24152
24153# Test if the assembler supports the section flag 'e' or #exclude for
24154# specifying an excluded section.
24155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24156$as_echo_n "checking assembler for section exclude flag... " >&6; }
24157if ${gcc_cv_as_section_exclude_e+:} false; then :
24158  $as_echo_n "(cached) " >&6
24159else
24160  gcc_cv_as_section_exclude_e=no
24161    if test $in_tree_gas = yes; then
24162    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24163  then gcc_cv_as_section_exclude_e=yes
24164fi
24165  elif test x$gcc_cv_as != x; then
24166    $as_echo '.section foo1,"e"
24167  .byte 0,0,0,0' > conftest.s
24168    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24169  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24170  (eval $ac_try) 2>&5
24171  ac_status=$?
24172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24173  test $ac_status = 0; }; }
24174    then
24175	gcc_cv_as_section_exclude_e=yes
24176    else
24177      echo "configure: failed program was" >&5
24178      cat conftest.s >&5
24179    fi
24180    rm -f conftest.o conftest.s
24181  fi
24182fi
24183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24184$as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24185
24186
24187if test $gcc_cv_as_section_exclude_e = no; then
24188  case "${target}" in
24189    # Solaris as uses #exclude instead.
24190    *-*-solaris2*)
24191      case "${target}" in
24192	sparc*-*-solaris2*)
24193	  conftest_s='.section "foo1", #exclude'
24194	  ;;
24195	i?86-*-solaris2* | x86_64-*-solaris2*)
24196	  conftest_s='.section foo1, #exclude'
24197	  ;;
24198      esac
24199      ;;
24200    esac
24201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24202$as_echo_n "checking assembler for section exclude flag... " >&6; }
24203if ${gcc_cv_as_section_exclude_hash+:} false; then :
24204  $as_echo_n "(cached) " >&6
24205else
24206  gcc_cv_as_section_exclude_hash=no
24207  if test x$gcc_cv_as != x; then
24208    $as_echo "$conftest_s
24209     .byte 0,0,0,0" > conftest.s
24210    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24211  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24212  (eval $ac_try) 2>&5
24213  ac_status=$?
24214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24215  test $ac_status = 0; }; }
24216    then
24217	gcc_cv_as_section_exclude_hash=yes
24218    else
24219      echo "configure: failed program was" >&5
24220      cat conftest.s >&5
24221    fi
24222    rm -f conftest.o conftest.s
24223  fi
24224fi
24225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24226$as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24227
24228
24229fi
24230
24231cat >>confdefs.h <<_ACEOF
24232#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`
24233_ACEOF
24234
24235
24236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24237$as_echo_n "checking assembler for section merging support... " >&6; }
24238if ${gcc_cv_as_shf_merge+:} false; then :
24239  $as_echo_n "(cached) " >&6
24240else
24241  gcc_cv_as_shf_merge=no
24242    if test $in_tree_gas = yes; then
24243    if test $in_tree_gas_is_elf = yes \
24244  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24245  then gcc_cv_as_shf_merge=yes
24246fi
24247  elif test x$gcc_cv_as != x; then
24248    $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24249    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24250  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24251  (eval $ac_try) 2>&5
24252  ac_status=$?
24253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24254  test $ac_status = 0; }; }
24255    then
24256	gcc_cv_as_shf_merge=yes
24257    else
24258      echo "configure: failed program was" >&5
24259      cat conftest.s >&5
24260    fi
24261    rm -f conftest.o conftest.s
24262  fi
24263fi
24264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24265$as_echo "$gcc_cv_as_shf_merge" >&6; }
24266
24267
24268if test $gcc_cv_as_shf_merge = no; then
24269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24270$as_echo_n "checking assembler for section merging support... " >&6; }
24271if ${gcc_cv_as_shf_merge+:} false; then :
24272  $as_echo_n "(cached) " >&6
24273else
24274  gcc_cv_as_shf_merge=no
24275    if test $in_tree_gas = yes; then
24276    if test $in_tree_gas_is_elf = yes \
24277  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24278  then gcc_cv_as_shf_merge=yes
24279fi
24280  elif test x$gcc_cv_as != x; then
24281    $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24282    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24283  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24284  (eval $ac_try) 2>&5
24285  ac_status=$?
24286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24287  test $ac_status = 0; }; }
24288    then
24289	gcc_cv_as_shf_merge=yes
24290    else
24291      echo "configure: failed program was" >&5
24292      cat conftest.s >&5
24293    fi
24294    rm -f conftest.o conftest.s
24295  fi
24296fi
24297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24298$as_echo "$gcc_cv_as_shf_merge" >&6; }
24299
24300
24301fi
24302
24303cat >>confdefs.h <<_ACEOF
24304#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24305_ACEOF
24306
24307
24308gcc_cv_ld_aligned_shf_merge=yes
24309case "$target" in
24310  # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24311  # alignment > 1.
24312  sparc*-*-solaris2.11*)
24313    if test x"$gnu_ld" = xno \
24314       && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24315      gcc_cv_ld_aligned_shf_merge=no
24316    fi
24317    ;;
24318esac
24319
24320cat >>confdefs.h <<_ACEOF
24321#define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24322_ACEOF
24323
24324
24325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24326$as_echo_n "checking assembler for stabs directive... " >&6; }
24327if ${gcc_cv_as_stabs_directive+:} false; then :
24328  $as_echo_n "(cached) " >&6
24329else
24330  gcc_cv_as_stabs_directive=no
24331  if test x$gcc_cv_as != x; then
24332    $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24333    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24334  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24335  (eval $ac_try) 2>&5
24336  ac_status=$?
24337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24338  test $ac_status = 0; }; }
24339    then
24340	gcc_cv_as_stabs_directive=yes
24341    else
24342      echo "configure: failed program was" >&5
24343      cat conftest.s >&5
24344    fi
24345    rm -f conftest.o conftest.s
24346  fi
24347fi
24348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24349$as_echo "$gcc_cv_as_stabs_directive" >&6; }
24350if test $gcc_cv_as_stabs_directive = yes; then
24351
24352$as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24353
24354fi
24355
24356
24357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24358$as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24359if ${gcc_cv_as_comdat_group+:} false; then :
24360  $as_echo_n "(cached) " >&6
24361else
24362  gcc_cv_as_comdat_group=no
24363    if test $in_tree_gas = yes; then
24364    if test $in_tree_gas_is_elf = yes \
24365  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24366  then gcc_cv_as_comdat_group=yes
24367fi
24368  elif test x$gcc_cv_as != x; then
24369    $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24370    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24371  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24372  (eval $ac_try) 2>&5
24373  ac_status=$?
24374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24375  test $ac_status = 0; }; }
24376    then
24377	gcc_cv_as_comdat_group=yes
24378    else
24379      echo "configure: failed program was" >&5
24380      cat conftest.s >&5
24381    fi
24382    rm -f conftest.o conftest.s
24383  fi
24384fi
24385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24386$as_echo "$gcc_cv_as_comdat_group" >&6; }
24387
24388
24389if test $gcc_cv_as_comdat_group = yes; then
24390  gcc_cv_as_comdat_group_percent=no
24391  gcc_cv_as_comdat_group_group=no
24392else
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24394$as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24395if ${gcc_cv_as_comdat_group_percent+:} false; then :
24396  $as_echo_n "(cached) " >&6
24397else
24398  gcc_cv_as_comdat_group_percent=no
24399    if test $in_tree_gas = yes; then
24400    if test $in_tree_gas_is_elf = yes \
24401  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24402  then gcc_cv_as_comdat_group_percent=yes
24403fi
24404  elif test x$gcc_cv_as != x; then
24405    $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24406    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24407  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24408  (eval $ac_try) 2>&5
24409  ac_status=$?
24410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24411  test $ac_status = 0; }; }
24412    then
24413	gcc_cv_as_comdat_group_percent=yes
24414    else
24415      echo "configure: failed program was" >&5
24416      cat conftest.s >&5
24417    fi
24418    rm -f conftest.o conftest.s
24419  fi
24420fi
24421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24422$as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24423
24424
24425 if test $gcc_cv_as_comdat_group_percent = yes; then
24426   gcc_cv_as_comdat_group_group=no
24427 else
24428   case "${target}" in
24429     # Sun as uses a completely different syntax.
24430     *-*-solaris2*)
24431       case "${target}" in
24432         sparc*-*-solaris2*)
24433           conftest_s='
24434               .group foo,".text%foo",#comdat
24435               .section ".text%foo", #alloc,#execinstr,#progbits
24436               .globl foo
24437             foo:
24438	     '
24439           ;;
24440         i?86-*-solaris2* | x86_64-*-solaris2*)
24441	   conftest_s='
24442               .group foo,.text%foo,#comdat
24443               .section .text%foo, "ax", @progbits
24444               .globl  foo
24445             foo:
24446	     '
24447	   ;;
24448       esac
24449       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24450$as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24451if ${gcc_cv_as_comdat_group_group+:} false; then :
24452  $as_echo_n "(cached) " >&6
24453else
24454  gcc_cv_as_comdat_group_group=no
24455  if test x$gcc_cv_as != x; then
24456    $as_echo "$conftest_s" > conftest.s
24457    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24458  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24459  (eval $ac_try) 2>&5
24460  ac_status=$?
24461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24462  test $ac_status = 0; }; }
24463    then
24464	gcc_cv_as_comdat_group_group=yes
24465    else
24466      echo "configure: failed program was" >&5
24467      cat conftest.s >&5
24468    fi
24469    rm -f conftest.o conftest.s
24470  fi
24471fi
24472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24473$as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24474
24475
24476       ;;
24477   esac
24478   if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24479     gcc_cv_as_comdat_group_group=no
24480   fi
24481 fi
24482fi
24483if test x"$ld_is_gold" = xyes; then
24484  comdat_group=yes
24485elif test $in_tree_ld = yes ; then
24486  comdat_group=no
24487  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 \
24488     && test $in_tree_ld_is_elf = yes; then
24489     comdat_group=yes
24490  fi
24491elif echo "$ld_ver" | grep GNU > /dev/null; then
24492  comdat_group=yes
24493  if test 0"$ld_date" -lt 20050308; then
24494    if test -n "$ld_date"; then
24495      # If there was date string, but was earlier than 2005-03-08, fail
24496      comdat_group=no
24497    elif test "$ld_vers_major" -lt 2; then
24498      comdat_group=no
24499    elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24500      comdat_group=no
24501    fi
24502  fi
24503else
24504  case "${target}" in
24505    *-*-solaris2.1[1-9]*)
24506      comdat_group=no
24507      # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24508      # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24509      # version 1.688.
24510      #
24511      # If using Sun as for COMDAT group as emitted by GCC, one needs at
24512      # least ld version 1.2267.
24513      if test "$ld_vers_major" -gt 1; then
24514        comdat_group=yes
24515      elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24516	comdat_group=yes
24517      elif test "$ld_vers_minor" -ge 2267; then
24518	comdat_group=yes
24519      fi
24520      ;;
24521    *)
24522      # Assume linkers other than GNU ld don't support COMDAT group.
24523      comdat_group=no
24524      ;;
24525  esac
24526fi
24527# Allow overriding the automatic COMDAT group tests above.
24528# Check whether --enable-comdat was given.
24529if test "${enable_comdat+set}" = set; then :
24530  enableval=$enable_comdat; comdat_group="$enable_comdat"
24531fi
24532
24533if test $comdat_group = no; then
24534  gcc_cv_as_comdat_group=no
24535  gcc_cv_as_comdat_group_percent=no
24536  gcc_cv_as_comdat_group_group=no
24537fi
24538
24539cat >>confdefs.h <<_ACEOF
24540#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24541    || test $gcc_cv_as_comdat_group_percent = yes \
24542    || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24543_ACEOF
24544
24545
24546# Restrict this test to Solaris/x86: other targets define this statically.
24547case "${target}" in
24548  i?86-*-solaris2* | x86_64-*-solaris2*)
24549    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24550$as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24551    if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24552      hidden_linkonce=yes
24553    else
24554      case "${target}" in
24555	# Full support for hidden thunks in linkonce sections only appeared in
24556	# Solaris 11/OpenSolaris.
24557        *-*-solaris2.1[1-9]*)
24558	  hidden_linkonce=yes
24559	  ;;
24560	*)
24561	  hidden_linkonce=no
24562	  ;;
24563      esac
24564    fi
24565    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24566$as_echo "$hidden_linkonce" >&6; }
24567
24568cat >>confdefs.h <<_ACEOF
24569#define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24570_ACEOF
24571
24572  ;;
24573esac
24574
24575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24576$as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24577if ${gcc_cv_as_is_stmt+:} false; then :
24578  $as_echo_n "(cached) " >&6
24579else
24580  gcc_cv_as_is_stmt=no
24581    if test $in_tree_gas = yes; then
24582    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24583  then gcc_cv_as_is_stmt=yes
24584fi
24585  elif test x$gcc_cv_as != x; then
24586    $as_echo '	.text
24587	.file 1 "conf.c"
24588	.loc 1 1 0 is_stmt 1' > conftest.s
24589    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24590  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24591  (eval $ac_try) 2>&5
24592  ac_status=$?
24593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24594  test $ac_status = 0; }; }
24595    then
24596	gcc_cv_as_is_stmt=yes
24597    else
24598      echo "configure: failed program was" >&5
24599      cat conftest.s >&5
24600    fi
24601    rm -f conftest.o conftest.s
24602  fi
24603fi
24604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24605$as_echo "$gcc_cv_as_is_stmt" >&6; }
24606if test $gcc_cv_as_is_stmt = yes; then
24607
24608$as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24609
24610fi
24611
24612
24613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24614$as_echo_n "checking assembler for line table discriminator support... " >&6; }
24615if ${gcc_cv_as_discriminator+:} false; then :
24616  $as_echo_n "(cached) " >&6
24617else
24618  gcc_cv_as_discriminator=no
24619    if test $in_tree_gas = yes; then
24620    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24621  then gcc_cv_as_discriminator=yes
24622fi
24623  elif test x$gcc_cv_as != x; then
24624    $as_echo '	.text
24625	.file 1 "conf.c"
24626	.loc 1 1 0 discriminator 1' > conftest.s
24627    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24628  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24629  (eval $ac_try) 2>&5
24630  ac_status=$?
24631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24632  test $ac_status = 0; }; }
24633    then
24634	gcc_cv_as_discriminator=yes
24635    else
24636      echo "configure: failed program was" >&5
24637      cat conftest.s >&5
24638    fi
24639    rm -f conftest.o conftest.s
24640  fi
24641fi
24642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24643$as_echo "$gcc_cv_as_discriminator" >&6; }
24644if test $gcc_cv_as_discriminator = yes; then
24645
24646$as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24647
24648fi
24649
24650
24651# Catch the newlib flag of the same name so we can gate GCC features on it.
24652# Check whether --enable-newlib-nano-formatted-io was given.
24653if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24654  enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
24655  yes|no)
24656    ;;
24657  *)
24658    as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24659    ;;
24660esac
24661fi
24662
24663
24664# Thread-local storage - the check is heavily parameterized.
24665conftest_s=
24666tls_first_major=
24667tls_first_minor=
24668tls_as_opt=
24669case "$target" in
24670  alpha*-*-*)
24671    conftest_s='
24672	.section ".tdata","awT",@progbits
24673foo:	.long	25
24674	.text
24675	ldq	$27,__tls_get_addr($29)		!literal!1
24676	lda	$16,foo($29)			!tlsgd!1
24677	jsr	$26,($27),__tls_get_addr	!lituse_tlsgd!1
24678	ldq	$27,__tls_get_addr($29)		!literal!2
24679	lda	$16,foo($29)			!tlsldm!2
24680	jsr	$26,($27),__tls_get_addr	!lituse_tlsldm!2
24681	ldq	$1,foo($29)			!gotdtprel
24682	ldah	$2,foo($29)			!dtprelhi
24683	lda	$3,foo($2)			!dtprello
24684	lda	$4,foo($29)			!dtprel
24685	ldq	$1,foo($29)			!gottprel
24686	ldah	$2,foo($29)			!tprelhi
24687	lda	$3,foo($2)			!tprello
24688	lda	$4,foo($29)			!tprel'
24689	tls_first_major=2
24690	tls_first_minor=13
24691	tls_as_opt=--fatal-warnings
24692	;;
24693  arc*-*-*)
24694    conftest_s='
24695	add_s r0,r0, @foo@tpoff'
24696	tls_first_major=2
24697	tls_first_minor=23
24698	;;
24699  cris-*-*|crisv32-*-*)
24700    conftest_s='
24701	.section ".tdata","awT",@progbits
24702x:      .long   25
24703        .text
24704	move.d x:IE,$r10
24705	nop'
24706	tls_first_major=2
24707	tls_first_minor=20
24708	tls_as_opt=--fatal-warnings
24709	;;
24710  frv*-*-*)
24711    conftest_s='
24712	.section ".tdata","awT",@progbits
24713x:      .long   25
24714        .text
24715        call    #gettlsoff(x)'
24716	tls_first_major=2
24717	tls_first_minor=14
24718	;;
24719  hppa*-*-linux*)
24720    conftest_s='
24721t1:	.reg	%r20
24722t2:	.reg	%r21
24723gp:	.reg	%r19
24724	.section ".tdata","awT",@progbits
24725foo:	.long	25
24726	.text
24727	.align	4
24728	addil LT%foo-$tls_gdidx$,gp
24729	ldo RT%foo-$tls_gdidx$(%r1),%arg0
24730	b __tls_get_addr
24731	nop
24732	addil LT%foo-$tls_ldidx$,gp
24733	b __tls_get_addr
24734	ldo RT%foo-$tls_ldidx$(%r1),%arg0
24735	addil LR%foo-$tls_dtpoff$,%ret0
24736	ldo RR%foo-$tls_dtpoff$(%r1),%t1
24737	mfctl %cr27,%t1
24738	addil LT%foo-$tls_ieoff$,gp
24739	ldw RT%foo-$tls_ieoff$(%r1),%t2
24740	add %t1,%t2,%t3
24741	mfctl %cr27,%t1
24742	addil LR%foo-$tls_leoff$,%t1
24743	ldo RR%foo-$tls_leoff$(%r1),%t2'
24744	tls_first_major=2
24745	tls_first_minor=15
24746	tls_as_opt=--fatal-warnings
24747	;;
24748  arm*-*-*)
24749    conftest_s='
24750	.section ".tdata","awT",%progbits
24751foo:	.long	25
24752	.text
24753.word foo(gottpoff)
24754.word foo(tpoff)
24755.word foo(tlsgd)
24756.word foo(tlsldm)
24757.word foo(tlsldo)'
24758	tls_first_major=2
24759	tls_first_minor=17
24760	;;
24761  i[34567]86-*-* | x86_64-*-*)
24762    case "$target" in
24763      i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24764	on_solaris=yes
24765        ;;
24766      *)
24767	on_solaris=no
24768	;;
24769    esac
24770    if test x$on_solaris = xyes && test x$gas_flag = xno; then
24771      conftest_s='
24772	.section .tdata,"awt",@progbits'
24773      tls_first_major=0
24774      tls_first_minor=0
24775      tls_section_flag=t
24776
24777$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24778
24779    else
24780      conftest_s='
24781	.section ".tdata","awT",@progbits'
24782      tls_first_major=2
24783      tls_first_minor=14
24784      tls_section_flag=T
24785      tls_as_opt="--fatal-warnings"
24786    fi
24787    case "$target" in
24788      i[34567]86-*-*)
24789	if test x$on_solaris = xyes; then
24790	  case $gas_flag in
24791	    yes) tls_as_opt="$tls_as_opt --32" ;;
24792	  esac
24793	fi
24794	conftest_s="$conftest_s
24795foo:	.long	25
24796	.text
24797	movl	%gs:0, %eax
24798	leal	foo@tlsgd(,%ebx,1), %eax
24799	leal	foo@tlsldm(%ebx), %eax
24800	leal	foo@dtpoff(%eax), %edx
24801	movl	foo@gottpoff(%ebx), %eax
24802	subl	foo@gottpoff(%ebx), %eax
24803	addl	foo@gotntpoff(%ebx), %eax
24804	movl	foo@indntpoff, %eax
24805	movl	\$foo@tpoff, %eax
24806	subl	\$foo@tpoff, %eax
24807	leal	foo@ntpoff(%ecx), %eax"
24808	;;
24809      x86_64-*-*)
24810	if test x$on_solaris = xyes; then
24811	  case $gas_flag in
24812	    yes) tls_as_opt="$tls_as_opt --64" ;;
24813	    no)	 tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24814	  esac
24815	fi
24816	conftest_s="$conftest_s
24817foo:	.long	25
24818	.text
24819	movq	%fs:0, %rax
24820	leaq	foo@tlsgd(%rip), %rdi
24821	leaq	foo@tlsld(%rip), %rdi
24822	leaq	foo@dtpoff(%rax), %rdx
24823	movq	foo@gottpoff(%rip), %rax
24824	movq	\$foo@tpoff, %rax"
24825        ;;
24826    esac
24827    ;;
24828  ia64-*-*)
24829    conftest_s='
24830	.section ".tdata","awT",@progbits
24831foo:	data8	25
24832	.text
24833	addl	r16 = @ltoff(@dtpmod(foo#)), gp
24834	addl	r17 = @ltoff(@dtprel(foo#)), gp
24835	addl	r18 = @ltoff(@tprel(foo#)), gp
24836	addl	r19 = @dtprel(foo#), gp
24837	adds	r21 = @dtprel(foo#), r13
24838	movl	r23 = @dtprel(foo#)
24839	addl	r20 = @tprel(foo#), gp
24840	adds	r22 = @tprel(foo#), r13
24841	movl	r24 = @tprel(foo#)'
24842	tls_first_major=2
24843	tls_first_minor=13
24844	tls_as_opt=--fatal-warnings
24845	;;
24846  microblaze*-*-*)
24847    conftest_s='
24848	.section .tdata,"awT",@progbits
24849x:
24850	.word 2
24851	.text
24852	addik r5,r20,x@TLSGD
24853	addik r5,r20,x@TLSLDM'
24854	tls_first_major=2
24855	tls_first_minor=20
24856	tls_as_opt='--fatal-warnings'
24857	;;
24858  mips*-*-*)
24859    conftest_s='
24860	.section .tdata,"awT",@progbits
24861x:
24862	.word 2
24863	.text
24864	addiu $4, $28, %tlsgd(x)
24865	addiu $4, $28, %tlsldm(x)
24866	lui $4, %dtprel_hi(x)
24867	addiu $4, $4, %dtprel_lo(x)
24868	lw $4, %gottprel(x)($28)
24869	lui $4, %tprel_hi(x)
24870	addiu $4, $4, %tprel_lo(x)'
24871	tls_first_major=2
24872	tls_first_minor=16
24873	tls_as_opt='-32 --fatal-warnings'
24874	;;
24875  m68k-*-*)
24876    conftest_s='
24877	.section .tdata,"awT",@progbits
24878x:
24879	.word 2
24880	.text
24881foo:
24882	move.l x@TLSGD(%a5),%a0
24883	move.l x@TLSLDM(%a5),%a0
24884	move.l x@TLSLDO(%a5),%a0
24885	move.l x@TLSIE(%a5),%a0
24886	move.l x@TLSLE(%a5),%a0'
24887	tls_first_major=2
24888	tls_first_minor=19
24889	tls_as_opt='--fatal-warnings'
24890	;;
24891  nios2-*-*)
24892      conftest_s='
24893	.section ".tdata","awT",@progbits'
24894	tls_first_major=2
24895	tls_first_minor=23
24896	tls_as_opt="--fatal-warnings"
24897	;;
24898  aarch64*-*-*)
24899    conftest_s='
24900	.section ".tdata","awT",%progbits
24901foo:	.long	25
24902	.text
24903	adrp  x0, :tlsgd:x
24904	add   x0, x0, #:tlsgd_lo12:x
24905        bl    __tls_get_addr
24906	nop'
24907	tls_first_major=2
24908	tls_first_minor=20
24909	tls_as_opt='--fatal-warnings'
24910	;;
24911  or1k*-*-*)
24912    conftest_s='
24913	.section ".tdata","awT",@progbits
24914foo:	.long	25
24915	.text
24916	l.movhi	r3, tpoffha(foo)
24917	l.add	r3, r3, r10
24918	l.lwz	r4, tpofflo(foo)(r3)'
24919    tls_first_major=2
24920    tls_first_minor=30
24921    tls_as_opt=--fatal-warnings
24922    ;;
24923  powerpc-ibm-aix*)
24924    conftest_s='
24925	.extern __get_tpointer
24926	.toc
24927LC..1:
24928	.tc a[TC],a[TL]@le
24929	.csect .text[PR]
24930.tlstest:
24931	lwz 9,LC..1(2)
24932	bla __get_tpointer
24933	lwzx 3,9,3
24934	.globl a
24935	.csect a[TL],4
24936a:
24937	.space 4'
24938	tls_first_major=0
24939	tls_first_minor=0
24940	;;
24941  powerpc64*-*-*)
24942    conftest_s='
24943	.section ".tdata","awT",@progbits
24944	.align 3
24945ld0:	.space 8
24946ld1:	.space 8
24947x1:	.space 8
24948x2:	.space 8
24949x3:	.space 8
24950	.text
24951	addi 3,2,ld0@got@tlsgd
24952	bl .__tls_get_addr
24953	nop
24954	addi 3,2,ld1@toc
24955	bl .__tls_get_addr
24956	nop
24957	addi 3,2,x1@got@tlsld
24958	bl .__tls_get_addr
24959	nop
24960	addi 9,3,x1@dtprel
24961	bl .__tls_get_addr
24962	nop
24963	addis 9,3,x2@dtprel@ha
24964	addi 9,9,x2@dtprel@l
24965	bl .__tls_get_addr
24966	nop
24967	ld 9,x3@got@dtprel(2)
24968	add 9,9,3
24969	bl .__tls_get_addr
24970	nop'
24971	tls_first_major=2
24972	tls_first_minor=14
24973	tls_as_opt="-a64 --fatal-warnings"
24974	;;
24975  powerpc*-*-*)
24976    conftest_s='
24977	.section ".tdata","awT",@progbits
24978	.align 2
24979ld0:	.space 4
24980ld1:	.space 4
24981x1:	.space 4
24982x2:	.space 4
24983x3:	.space 4
24984	.text
24985	addi 3,31,ld0@got@tlsgd
24986	bl __tls_get_addr
24987	addi 3,31,x1@got@tlsld
24988	bl __tls_get_addr
24989	addi 9,3,x1@dtprel
24990	addis 9,3,x2@dtprel@ha
24991	addi 9,9,x2@dtprel@l
24992	lwz 9,x3@got@tprel(31)
24993	add 9,9,x@tls
24994	addi 9,2,x1@tprel
24995	addis 9,2,x2@tprel@ha
24996	addi 9,9,x2@tprel@l'
24997	tls_first_major=2
24998	tls_first_minor=14
24999	tls_as_opt="-a32 --fatal-warnings"
25000	;;
25001  riscv*-*-*)
25002    conftest_s='
25003	.section .tdata,"awT",@progbits
25004x:	.word 2
25005	.text
25006	la.tls.gd a0,x
25007        call __tls_get_addr'
25008	tls_first_major=2
25009	tls_first_minor=21
25010	tls_as_opt='--fatal-warnings'
25011	;;
25012  s390-*-*)
25013    conftest_s='
25014	.section ".tdata","awT",@progbits
25015foo:	.long	25
25016	.text
25017	.long	foo@TLSGD
25018	.long	foo@TLSLDM
25019	.long	foo@DTPOFF
25020	.long	foo@NTPOFF
25021	.long	foo@GOTNTPOFF
25022	.long	foo@INDNTPOFF
25023	l	%r1,foo@GOTNTPOFF(%r12)
25024	l	%r1,0(%r1):tls_load:foo
25025	bas	%r14,0(%r1,%r13):tls_gdcall:foo
25026	bas	%r14,0(%r1,%r13):tls_ldcall:foo'
25027	tls_first_major=2
25028	tls_first_minor=14
25029	tls_as_opt="-m31 --fatal-warnings"
25030	;;
25031  s390x-*-*)
25032    conftest_s='
25033	.section ".tdata","awT",@progbits
25034foo:	.long	25
25035	.text
25036	.quad	foo@TLSGD
25037	.quad	foo@TLSLDM
25038	.quad	foo@DTPOFF
25039	.quad	foo@NTPOFF
25040	.quad	foo@GOTNTPOFF
25041	lg	%r1,foo@GOTNTPOFF(%r12)
25042	larl	%r1,foo@INDNTPOFF
25043	brasl	%r14,__tls_get_offset@PLT:tls_gdcall:foo
25044	brasl	%r14,__tls_get_offset@PLT:tls_ldcall:foo'
25045	tls_first_major=2
25046	tls_first_minor=14
25047	tls_as_opt="-m64 -Aesame --fatal-warnings"
25048	;;
25049  sh-*-* | sh[123456789lbe]*-*-*)
25050    conftest_s='
25051	.section ".tdata","awT",@progbits
25052foo:	.long	25
25053	.text
25054	.long	foo@TLSGD
25055	.long	foo@TLSLDM
25056	.long	foo@DTPOFF
25057	.long	foo@GOTTPOFF
25058	.long	foo@TPOFF'
25059	tls_first_major=2
25060	tls_first_minor=13
25061	tls_as_opt=--fatal-warnings
25062	;;
25063  sparc*-*-*)
25064    case "$target" in
25065      sparc*-sun-solaris2.*)
25066	on_solaris=yes
25067	;;
25068      *)
25069	on_solaris=no
25070	;;
25071    esac
25072    if test x$on_solaris = xyes && test x$gas_flag = xno; then
25073      conftest_s='
25074	.section ".tdata",#alloc,#write,#tls'
25075	tls_first_major=0
25076	tls_first_minor=0
25077    else
25078      conftest_s='
25079	.section ".tdata","awT",@progbits'
25080	tls_first_major=2
25081	tls_first_minor=14
25082	tls_as_opt="-32 --fatal-warnings"
25083    fi
25084    conftest_s="$conftest_s
25085foo:	.long	25
25086	.text
25087	sethi	%tgd_hi22(foo), %o0
25088	add	%o0, %tgd_lo10(foo), %o1
25089	add	%l7, %o1, %o0, %tgd_add(foo)
25090	call	__tls_get_addr, %tgd_call(foo)
25091	sethi	%tldm_hi22(foo), %l1
25092	add	%l1, %tldm_lo10(foo), %l2
25093	add	%l7, %l2, %o0, %tldm_add(foo)
25094	call	__tls_get_addr, %tldm_call(foo)
25095	sethi	%tldo_hix22(foo), %l3
25096	xor	%l3, %tldo_lox10(foo), %l4
25097	add	%o0, %l4, %l5, %tldo_add(foo)
25098	sethi	%tie_hi22(foo), %o3
25099	add	%o3, %tie_lo10(foo), %o3
25100	ld	[%l7 + %o3], %o2, %tie_ld(foo)
25101	add	%g7, %o2, %o4, %tie_add(foo)
25102	sethi	%tle_hix22(foo), %l1
25103	xor	%l1, %tle_lox10(foo), %o5
25104	ld	[%g7 + %o5], %o1"
25105	;;
25106  tilepro*-*-*)
25107      conftest_s='
25108	.section ".tdata","awT",@progbits
25109foo:	.long	25
25110	.text
25111	addli	r0, zero, tls_gd(foo)
25112	auli	r0, zero, tls_gd_ha16(foo)
25113	addli	r0, r0, tls_gd_lo16(foo)
25114	jal	__tls_get_addr
25115	addli	r0, zero, tls_ie(foo)
25116	auli	r0, r0, tls_ie_ha16(foo)
25117	addli	r0, r0, tls_ie_lo16(foo)'
25118	tls_first_major=2
25119	tls_first_minor=22
25120	tls_as_opt="--fatal-warnings"
25121	;;
25122  tilegx*-*-*)
25123      conftest_s='
25124	.section ".tdata","awT",@progbits
25125foo:	.long	25
25126	.text
25127	shl16insli r0, zero, hw0_last_tls_gd(foo)
25128	shl16insli r0, zero, hw1_last_tls_gd(foo)
25129	shl16insli r0, r0,   hw0_tls_gd(foo)
25130	jal	   __tls_get_addr
25131	shl16insli r0, zero, hw1_last_tls_ie(foo)
25132	shl16insli r0, r0,   hw0_tls_ie(foo)'
25133	tls_first_major=2
25134	tls_first_minor=22
25135	tls_as_opt="--fatal-warnings"
25136	;;
25137  xtensa*-*-*)
25138    conftest_s='
25139	.section ".tdata","awT",@progbits
25140foo:	.long	25
25141	.text
25142	movi	a8, foo@TLSFUNC
25143	movi	a10, foo@TLSARG
25144	callx8.tls a8, foo@TLSCALL'
25145	tls_first_major=2
25146	tls_first_minor=19
25147	;;
25148esac
25149set_have_as_tls=no
25150if test "x$enable_tls" = xno ; then
25151  : # TLS explicitly disabled.
25152elif test "x$enable_tls" = xyes ; then
25153  set_have_as_tls=yes # TLS explicitly enabled.
25154elif test -z "$tls_first_major"; then
25155  : # If we don't have a check, assume no support.
25156else
25157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25158$as_echo_n "checking assembler for thread-local storage support... " >&6; }
25159if ${gcc_cv_as_tls+:} false; then :
25160  $as_echo_n "(cached) " >&6
25161else
25162  gcc_cv_as_tls=no
25163    if test $in_tree_gas = yes; then
25164    if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25165  then gcc_cv_as_tls=yes
25166fi
25167  elif test x$gcc_cv_as != x; then
25168    $as_echo "$conftest_s" > conftest.s
25169    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25170  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25171  (eval $ac_try) 2>&5
25172  ac_status=$?
25173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25174  test $ac_status = 0; }; }
25175    then
25176	gcc_cv_as_tls=yes
25177    else
25178      echo "configure: failed program was" >&5
25179      cat conftest.s >&5
25180    fi
25181    rm -f conftest.o conftest.s
25182  fi
25183fi
25184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25185$as_echo "$gcc_cv_as_tls" >&6; }
25186if test $gcc_cv_as_tls = yes; then
25187  set_have_as_tls=yes
25188fi
25189
25190fi
25191if test $set_have_as_tls = yes ; then
25192
25193$as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25194
25195fi
25196
25197# Target-specific assembler checks.
25198
25199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25200$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25201gcc_cv_ld_static_dynamic=no
25202gcc_cv_ld_static_option='-Bstatic'
25203gcc_cv_ld_dynamic_option='-Bdynamic'
25204if test $in_tree_ld = yes ; then
25205  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
25206    gcc_cv_ld_static_dynamic=yes
25207  fi
25208elif test x$gcc_cv_ld != x; then
25209  # Check if linker supports -Bstatic/-Bdynamic option
25210  if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25211     && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25212      gcc_cv_ld_static_dynamic=yes
25213  else
25214    case "$target" in
25215      # AIX ld uses -b flags
25216      *-*-aix4.[23]* | *-*-aix[5-9]*)
25217	gcc_cv_ld_static_dynamic=yes
25218	gcc_cv_ld_static_option="-bstatic"
25219	gcc_cv_ld_dynamic_option="-bdynamic"
25220	;;
25221      # HP-UX ld uses -a flags to select between shared and archive.
25222      *-*-hpux*)
25223	if test x"$gnu_ld" = xno; then
25224	  gcc_cv_ld_static_dynamic=yes
25225	  gcc_cv_ld_static_option="-aarchive_shared"
25226	  gcc_cv_ld_dynamic_option="-adefault"
25227	fi
25228	;;
25229      # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25230      *-*-solaris2*)
25231        gcc_cv_ld_static_dynamic=yes
25232        ;;
25233    esac
25234  fi
25235fi
25236if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25237
25238$as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25239
25240
25241cat >>confdefs.h <<_ACEOF
25242#define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25243_ACEOF
25244
25245
25246cat >>confdefs.h <<_ACEOF
25247#define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25248_ACEOF
25249
25250fi
25251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25252$as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25253
25254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25255$as_echo_n "checking linker --version-script option... " >&6; }
25256gcc_cv_ld_version_script=no
25257ld_version_script_option=''
25258if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25259  gcc_cv_ld_version_script=yes
25260  ld_version_script_option='--version-script'
25261elif test x$gcc_cv_ld != x; then
25262  case "$target" in
25263    # Solaris 2 ld always supports -M.  It also supports a subset of
25264    # --version-script since Solaris 11.4, but requires
25265    # -z gnu-version-script-compat to activate.
25266    *-*-solaris2*)
25267      gcc_cv_ld_version_script=yes
25268      ld_version_script_option='-M'
25269      ;;
25270  esac
25271fi
25272# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25274$as_echo "$gcc_cv_ld_version_script" >&6; }
25275
25276
25277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25278$as_echo_n "checking linker soname option... " >&6; }
25279gcc_cv_ld_soname=no
25280if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25281  gcc_cv_ld_soname=yes
25282  ld_soname_option='-soname'
25283elif test x$gcc_cv_ld != x; then
25284  case "$target" in
25285    *-*-darwin*)
25286      gcc_cv_ld_soname=yes
25287      ld_soname_option='-install_name'
25288      ;;
25289    # Solaris 2 ld always supports -h.  It also supports --soname for GNU
25290    # ld compatiblity since some Solaris 10 update.
25291    *-*-solaris2*)
25292      gcc_cv_ld_soname=yes
25293      ld_soname_option='-h'
25294      ;;
25295  esac
25296fi
25297# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25299$as_echo "$gcc_cv_ld_soname" >&6; }
25300
25301
25302if test x"$demangler_in_ld" = xyes; then
25303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25304$as_echo_n "checking linker --demangle support... " >&6; }
25305  gcc_cv_ld_demangle=no
25306  if test $in_tree_ld = yes; then
25307    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 \
25308      gcc_cv_ld_demangle=yes
25309    fi
25310  elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25311    # Check if the GNU linker supports --demangle option
25312    if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25313      gcc_cv_ld_demangle=yes
25314    fi
25315  fi
25316  if test x"$gcc_cv_ld_demangle" = xyes; then
25317
25318$as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25319
25320  fi
25321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25322$as_echo "$gcc_cv_ld_demangle" >&6; }
25323fi
25324
25325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25326$as_echo_n "checking linker plugin support... " >&6; }
25327gcc_cv_lto_plugin=0
25328if test -f liblto_plugin.la; then
25329  save_ld_ver="$ld_ver"
25330  save_ld_vers_major="$ld_vers_major"
25331  save_ld_vers_minor="$ld_vers_minor"
25332  save_ld_is_gold="$ld_is_gold"
25333
25334  ld_is_gold=no
25335
25336  if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25337    ld_ver="GNU ld"
25338    # FIXME: ld_is_gold?
25339    ld_vers_major="$gcc_cv_gld_major_version"
25340    ld_vers_minor="$gcc_cv_gld_minor_version"
25341  else
25342    # Determine plugin linker version.
25343    # FIXME: Partial duplicate from above, generalize.
25344    ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25345    if echo "$ld_ver" | grep GNU > /dev/null; then
25346      if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25347        ld_is_gold=yes
25348        ld_vers=`echo $ld_ver | sed -n \
25349    	    -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25350      else
25351        ld_vers=`echo $ld_ver | sed -n \
25352    	    -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25353      fi
25354      ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25355      ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25356    fi
25357  fi
25358
25359  # Determine plugin support.
25360  if echo "$ld_ver" | grep GNU > /dev/null; then
25361    # Require GNU ld or gold 2.21+ for plugin support by default.
25362    if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25363      gcc_cv_lto_plugin=2
25364    # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25365    elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25366      gcc_cv_lto_plugin=1
25367    fi
25368  fi
25369
25370  ld_ver="$save_ld_ver"
25371  ld_vers_major="$save_ld_vers_major"
25372  ld_vers_minor="$save_ld_vers_minor"
25373  ld_is_gold="$save_ld_is_gold"
25374fi
25375
25376cat >>confdefs.h <<_ACEOF
25377#define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25378_ACEOF
25379
25380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25381$as_echo "$gcc_cv_lto_plugin" >&6; }
25382
25383# Target OS-specific assembler checks.
25384
25385case "$target_os" in
25386  darwin*)
25387    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25388$as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25389if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25390  $as_echo_n "(cached) " >&6
25391else
25392  gcc_cv_as_mmacosx_version_min=no
25393  if test x$gcc_cv_as != x; then
25394    $as_echo '.text' > conftest.s
25395    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25396  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25397  (eval $ac_try) 2>&5
25398  ac_status=$?
25399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25400  test $ac_status = 0; }; }
25401    then
25402	gcc_cv_as_mmacosx_version_min=yes
25403    else
25404      echo "configure: failed program was" >&5
25405      cat conftest.s >&5
25406    fi
25407    rm -f conftest.o conftest.s
25408  fi
25409fi
25410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25411$as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25412if test $gcc_cv_as_mmacosx_version_min = yes; then
25413
25414$as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25415
25416fi
25417
25418    ;;
25419esac
25420
25421# Target CPU-specific assembler checks.
25422
25423case "$target" in
25424  aarch64*-*-*)
25425    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25426$as_echo_n "checking assembler for -mabi option... " >&6; }
25427if ${gcc_cv_as_aarch64_mabi+:} false; then :
25428  $as_echo_n "(cached) " >&6
25429else
25430  gcc_cv_as_aarch64_mabi=no
25431  if test x$gcc_cv_as != x; then
25432    $as_echo '.text' > conftest.s
25433    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25434  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25435  (eval $ac_try) 2>&5
25436  ac_status=$?
25437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25438  test $ac_status = 0; }; }
25439    then
25440	gcc_cv_as_aarch64_mabi=yes
25441    else
25442      echo "configure: failed program was" >&5
25443      cat conftest.s >&5
25444    fi
25445    rm -f conftest.o conftest.s
25446  fi
25447fi
25448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25449$as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25450
25451
25452    if test x$gcc_cv_as_aarch64_mabi = xyes; then
25453
25454$as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25455
25456    else
25457      if test x$with_abi = xilp32; then
25458        as_fn_error $? "Assembler does not support -mabi=ilp32.\
25459                     Upgrade the Assembler." "$LINENO" 5
25460      fi
25461      if test x"$with_multilib_list" = xdefault; then
25462        TM_MULTILIB_CONFIG=lp64
25463      else
25464        aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25465        for aarch64_multilib in ${aarch64_multilibs}; do
25466          case ${aarch64_multilib} in
25467            ilp32)
25468              as_fn_error $? "Assembler does not support -mabi=ilp32.\
25469                            Upgrade the Assembler." "$LINENO" 5
25470              ;;
25471            *)
25472              ;;
25473          esac
25474        done
25475      fi
25476    fi
25477    # Check if we have binutils support for relocations types needed by -fpic
25478    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25479$as_echo_n "checking assembler for -fpic relocs... " >&6; }
25480if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25481  $as_echo_n "(cached) " >&6
25482else
25483  gcc_cv_as_aarch64_picreloc=no
25484  if test x$gcc_cv_as != x; then
25485    $as_echo '
25486	.text
25487	ldr     x0, [x2, #:gotpage_lo15:globalsym]
25488    ' > conftest.s
25489    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25490  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25491  (eval $ac_try) 2>&5
25492  ac_status=$?
25493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25494  test $ac_status = 0; }; }
25495    then
25496	gcc_cv_as_aarch64_picreloc=yes
25497    else
25498      echo "configure: failed program was" >&5
25499      cat conftest.s >&5
25500    fi
25501    rm -f conftest.o conftest.s
25502  fi
25503fi
25504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25505$as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25506if test $gcc_cv_as_aarch64_picreloc = yes; then
25507
25508$as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25509
25510fi
25511
25512    # Enable Branch Target Identification Mechanism and Return Address
25513    # Signing by default.
25514    # Check whether --enable-standard-branch-protection was given.
25515if test "${enable_standard_branch_protection+set}" = set; then :
25516  enableval=$enable_standard_branch_protection;
25517        case $enableval in
25518          yes)
25519            tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25520            ;;
25521          no)
25522            ;;
25523          *)
25524            as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25525  Valid choices are 'yes' and 'no'." "$LINENO" 5
25526            ;;
25527        esac
25528
25529fi
25530
25531    # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25532    # Check whether --enable-fix-cortex-a53-835769 was given.
25533if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25534  enableval=$enable_fix_cortex_a53_835769;
25535        case $enableval in
25536          yes)
25537            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25538            ;;
25539          no)
25540            ;;
25541          *)
25542            as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25543  Valid choices are 'yes' and 'no'." "$LINENO" 5
25544            ;;
25545
25546        esac
25547
25548fi
25549
25550    # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25551    # Check whether --enable-fix-cortex-a53-843419 was given.
25552if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25553  enableval=$enable_fix_cortex_a53_843419;
25554        case $enableval in
25555          yes)
25556            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25557            ;;
25558          no)
25559            ;;
25560          *)
25561            as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25562  Valid choices are 'yes' and 'no'." "$LINENO" 5
25563            ;;
25564
25565        esac
25566
25567fi
25568
25569    ;;
25570
25571  # All TARGET_ABI_OSF targets.
25572  alpha*-*-linux* | alpha*-*-*bsd*)
25573    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25574$as_echo_n "checking assembler for explicit relocation support... " >&6; }
25575if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25576  $as_echo_n "(cached) " >&6
25577else
25578  gcc_cv_as_alpha_explicit_relocs=no
25579    if test $in_tree_gas = yes; then
25580    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25581  then gcc_cv_as_alpha_explicit_relocs=yes
25582fi
25583  elif test x$gcc_cv_as != x; then
25584    $as_echo '	.set nomacro
25585	.text
25586	extbl	$3, $2, $3	!lituse_bytoff!1
25587	ldq	$2, a($29)	!literal!1
25588	ldq	$4, b($29)	!literal!2
25589	ldq_u	$3, 0($2)	!lituse_base!1
25590	ldq	$27, f($29)	!literal!5
25591	jsr	$26, ($27), f	!lituse_jsr!5
25592	ldah	$29, 0($26)	!gpdisp!3
25593	lda	$0, c($29)	!gprel
25594	ldah	$1, d($29)	!gprelhigh
25595	lda	$1, d($1)	!gprellow
25596	lda	$29, 0($29)	!gpdisp!3' > conftest.s
25597    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25598  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25599  (eval $ac_try) 2>&5
25600  ac_status=$?
25601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25602  test $ac_status = 0; }; }
25603    then
25604	gcc_cv_as_alpha_explicit_relocs=yes
25605    else
25606      echo "configure: failed program was" >&5
25607      cat conftest.s >&5
25608    fi
25609    rm -f conftest.o conftest.s
25610  fi
25611fi
25612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25613$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25614if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25615
25616$as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25617
25618fi
25619
25620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25621$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25622if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25623  $as_echo_n "(cached) " >&6
25624else
25625  gcc_cv_as_alpha_jsrdirect_relocs=no
25626    if test $in_tree_gas = yes; then
25627    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25628  then gcc_cv_as_alpha_jsrdirect_relocs=yes
25629fi
25630  elif test x$gcc_cv_as != x; then
25631    $as_echo '	.set nomacro
25632	.text
25633	ldq	$27, a($29)	!literal!1
25634	jsr	$26, ($27), a	!lituse_jsrdirect!1' > conftest.s
25635    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25636  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25637  (eval $ac_try) 2>&5
25638  ac_status=$?
25639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25640  test $ac_status = 0; }; }
25641    then
25642	gcc_cv_as_alpha_jsrdirect_relocs=yes
25643    else
25644      echo "configure: failed program was" >&5
25645      cat conftest.s >&5
25646    fi
25647    rm -f conftest.o conftest.s
25648  fi
25649fi
25650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25651$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25652if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25653
25654$as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25655
25656fi
25657
25658    ;;
25659
25660  avr-*-*)
25661    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25662$as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25663if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25664  $as_echo_n "(cached) " >&6
25665else
25666  gcc_cv_as_avr_mlink_relax=no
25667  if test x$gcc_cv_as != x; then
25668    $as_echo '.text' > conftest.s
25669    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25670  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25671  (eval $ac_try) 2>&5
25672  ac_status=$?
25673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25674  test $ac_status = 0; }; }
25675    then
25676	gcc_cv_as_avr_mlink_relax=yes
25677    else
25678      echo "configure: failed program was" >&5
25679      cat conftest.s >&5
25680    fi
25681    rm -f conftest.o conftest.s
25682  fi
25683fi
25684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25685$as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25686if test $gcc_cv_as_avr_mlink_relax = yes; then
25687
25688$as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25689
25690fi
25691
25692
25693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25694$as_echo_n "checking assembler for -mrmw option... " >&6; }
25695if ${gcc_cv_as_avr_mrmw+:} false; then :
25696  $as_echo_n "(cached) " >&6
25697else
25698  gcc_cv_as_avr_mrmw=no
25699  if test x$gcc_cv_as != x; then
25700    $as_echo '.text' > conftest.s
25701    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25702  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25703  (eval $ac_try) 2>&5
25704  ac_status=$?
25705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25706  test $ac_status = 0; }; }
25707    then
25708	gcc_cv_as_avr_mrmw=yes
25709    else
25710      echo "configure: failed program was" >&5
25711      cat conftest.s >&5
25712    fi
25713    rm -f conftest.o conftest.s
25714  fi
25715fi
25716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25717$as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25718if test $gcc_cv_as_avr_mrmw = yes; then
25719
25720$as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25721
25722fi
25723
25724
25725    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25726$as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25727if ${gcc_cv_as_avr_mgccisr+:} false; then :
25728  $as_echo_n "(cached) " >&6
25729else
25730  gcc_cv_as_avr_mgccisr=no
25731  if test x$gcc_cv_as != x; then
25732    $as_echo '.text
25733      		    __gcc_isr 1
25734      		    __gcc_isr 2
25735      		    __gcc_isr 0,r24
25736      		   ' > conftest.s
25737    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25738  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25739  (eval $ac_try) 2>&5
25740  ac_status=$?
25741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25742  test $ac_status = 0; }; }
25743    then
25744	gcc_cv_as_avr_mgccisr=yes
25745    else
25746      echo "configure: failed program was" >&5
25747      cat conftest.s >&5
25748    fi
25749    rm -f conftest.o conftest.s
25750  fi
25751fi
25752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25753$as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25754if test $gcc_cv_as_avr_mgccisr = yes; then
25755
25756$as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25757
25758fi
25759
25760
25761    # Check how default linker description file implements .rodata for
25762    # avrxmega3 (PR21472).  avr-gcc assumes .rodata is *not* loaded to
25763    # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25765$as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25766    cat > conftest.s <<EOF
25767        .section .rodata,"a",@progbits
25768        .global xxvaryy
25769    ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25770    xxvaryy:
25771        .word 1
25772EOF
25773    rm -f conftest.nm
25774    { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25775  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25776  (eval $ac_try) 2>&5
25777  ac_status=$?
25778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25779  test $ac_status = 0; }; }
25780    { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25781  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25782  (eval $ac_try) 2>&5
25783  ac_status=$?
25784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25785  test $ac_status = 0; }; }
25786    { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25787  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25788  (eval $ac_try) 2>&5
25789  ac_status=$?
25790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25791  test $ac_status = 0; }; }
25792    if test -s conftest.nm
25793    then
25794	if grep ' R xxvaryy' conftest.nm > /dev/null; then
25795	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25796$as_echo "yes" >&6; }
25797
25798$as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25799
25800	else
25801	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25802$as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25803	    echo "$as_me: nm output was" >&5
25804	    cat conftest.nm >&5
25805	    avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25806	    { $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
25807$as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25808	fi
25809    else
25810	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25811$as_echo "test failed" >&6; }
25812	echo "$as_me: failed program was" >&5
25813	cat conftest.s >&5
25814	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25815$as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25816    fi
25817    rm -f conftest.s conftest.o conftest.elf conftest.nm
25818    ;;
25819
25820  cris-*-*)
25821    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25822$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25823if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25824  $as_echo_n "(cached) " >&6
25825else
25826  gcc_cv_as_cris_no_mul_bug=no
25827    if test $in_tree_gas = yes; then
25828    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25829  then gcc_cv_as_cris_no_mul_bug=yes
25830fi
25831  elif test x$gcc_cv_as != x; then
25832    $as_echo '.text' > conftest.s
25833    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25834  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835  (eval $ac_try) 2>&5
25836  ac_status=$?
25837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838  test $ac_status = 0; }; }
25839    then
25840	gcc_cv_as_cris_no_mul_bug=yes
25841    else
25842      echo "configure: failed program was" >&5
25843      cat conftest.s >&5
25844    fi
25845    rm -f conftest.o conftest.s
25846  fi
25847fi
25848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25849$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25850if test $gcc_cv_as_cris_no_mul_bug = yes; then
25851
25852$as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25853
25854fi
25855
25856    ;;
25857
25858  sparc*-*-*)
25859    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25860$as_echo_n "checking assembler for -relax option... " >&6; }
25861if ${gcc_cv_as_sparc_relax+:} false; then :
25862  $as_echo_n "(cached) " >&6
25863else
25864  gcc_cv_as_sparc_relax=no
25865  if test x$gcc_cv_as != x; then
25866    $as_echo '.text' > conftest.s
25867    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25868  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25869  (eval $ac_try) 2>&5
25870  ac_status=$?
25871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25872  test $ac_status = 0; }; }
25873    then
25874	gcc_cv_as_sparc_relax=yes
25875    else
25876      echo "configure: failed program was" >&5
25877      cat conftest.s >&5
25878    fi
25879    rm -f conftest.o conftest.s
25880  fi
25881fi
25882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25883$as_echo "$gcc_cv_as_sparc_relax" >&6; }
25884if test $gcc_cv_as_sparc_relax = yes; then
25885
25886$as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25887
25888fi
25889
25890
25891    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25892$as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25893if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25894  $as_echo_n "(cached) " >&6
25895else
25896  gcc_cv_as_sparc_gotdata_op=no
25897  if test x$gcc_cv_as != x; then
25898    $as_echo '.text
25899.align 4
25900foo:
25901	nop
25902bar:
25903	sethi %gdop_hix22(foo), %g1
25904	xor    %g1, %gdop_lox10(foo), %g1
25905	ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25906    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25907  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25908  (eval $ac_try) 2>&5
25909  ac_status=$?
25910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25911  test $ac_status = 0; }; }
25912    then
25913	if test x$gcc_cv_ld != x \
25914       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25915         if test x$gcc_cv_objdump != x; then
25916           if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25917              | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25918	       gcc_cv_as_sparc_gotdata_op=no
25919           else
25920	       gcc_cv_as_sparc_gotdata_op=yes
25921           fi
25922         fi
25923       fi
25924       rm -f conftest
25925    else
25926      echo "configure: failed program was" >&5
25927      cat conftest.s >&5
25928    fi
25929    rm -f conftest.o conftest.s
25930  fi
25931fi
25932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25933$as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25934if test $gcc_cv_as_sparc_gotdata_op = yes; then
25935
25936$as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25937
25938fi
25939
25940
25941    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25942$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25943if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25944  $as_echo_n "(cached) " >&6
25945else
25946  gcc_cv_as_sparc_ua_pcrel=no
25947  if test x$gcc_cv_as != x; then
25948    $as_echo '.text
25949foo:
25950	nop
25951.data
25952.align 4
25953.byte 0
25954.uaword %r_disp32(foo)' > conftest.s
25955    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25956  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25957  (eval $ac_try) 2>&5
25958  ac_status=$?
25959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25960  test $ac_status = 0; }; }
25961    then
25962	if test x$gcc_cv_ld != x \
25963       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25964	 gcc_cv_as_sparc_ua_pcrel=yes
25965       fi
25966       rm -f conftest
25967    else
25968      echo "configure: failed program was" >&5
25969      cat conftest.s >&5
25970    fi
25971    rm -f conftest.o conftest.s
25972  fi
25973fi
25974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25975$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25976if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25977
25978$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25979
25980
25981      { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25982$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25983if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25984  $as_echo_n "(cached) " >&6
25985else
25986  gcc_cv_as_sparc_ua_pcrel_hidden=no
25987  if test x$gcc_cv_as != x; then
25988    $as_echo '.data
25989.align 4
25990.byte 0x31
25991.uaword %r_disp32(foo)
25992.byte 0x32, 0x33, 0x34
25993.global foo
25994.hidden foo
25995foo:
25996.skip 4' > conftest.s
25997    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25998  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25999  (eval $ac_try) 2>&5
26000  ac_status=$?
26001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26002  test $ac_status = 0; }; }
26003    then
26004	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26005	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26006	 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26007	    | grep ' 31000000 07323334' > /dev/null 2>&1; then
26008	    if $gcc_cv_objdump -R conftest 2> /dev/null \
26009	       | grep 'DISP32' > /dev/null 2>&1; then
26010		:
26011	    else
26012		gcc_cv_as_sparc_ua_pcrel_hidden=yes
26013	    fi
26014	 fi
26015	 rm -f conftest
26016    else
26017      echo "configure: failed program was" >&5
26018      cat conftest.s >&5
26019    fi
26020    rm -f conftest.o conftest.s
26021  fi
26022fi
26023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26024$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26025if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26026
26027$as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26028
26029fi
26030
26031
26032fi
26033 # unaligned pcrel relocs
26034
26035    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26036$as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26037if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26038  $as_echo_n "(cached) " >&6
26039else
26040  gcc_cv_as_sparc_offsetable_lo10=no
26041  if test x$gcc_cv_as != x; then
26042    $as_echo '.text
26043	or %g1, %lo(ab) + 12, %g1
26044	or %g1, %lo(ab + 12), %g1' > conftest.s
26045    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26046  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26047  (eval $ac_try) 2>&5
26048  ac_status=$?
26049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26050  test $ac_status = 0; }; }
26051    then
26052	if test x$gcc_cv_objdump != x \
26053       && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26054          | grep ' 82106000 82106000' > /dev/null 2>&1; then
26055	 gcc_cv_as_sparc_offsetable_lo10=yes
26056       fi
26057    else
26058      echo "configure: failed program was" >&5
26059      cat conftest.s >&5
26060    fi
26061    rm -f conftest.o conftest.s
26062  fi
26063fi
26064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26065$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26066if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26067
26068$as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26069
26070fi
26071
26072
26073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26074$as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26075if ${gcc_cv_as_sparc_fmaf+:} false; then :
26076  $as_echo_n "(cached) " >&6
26077else
26078  gcc_cv_as_sparc_fmaf=no
26079  if test x$gcc_cv_as != x; then
26080    $as_echo '.text
26081       .register %g2, #scratch
26082       .register %g3, #scratch
26083       .align 4
26084       fmaddd %f0, %f2, %f4, %f6
26085       addxccc %g1, %g2, %g3
26086       fsrl32 %f2, %f4, %f8
26087       fnaddd %f10, %f12, %f14' > conftest.s
26088    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26089  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26090  (eval $ac_try) 2>&5
26091  ac_status=$?
26092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26093  test $ac_status = 0; }; }
26094    then
26095	gcc_cv_as_sparc_fmaf=yes
26096    else
26097      echo "configure: failed program was" >&5
26098      cat conftest.s >&5
26099    fi
26100    rm -f conftest.o conftest.s
26101  fi
26102fi
26103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26104$as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26105if test $gcc_cv_as_sparc_fmaf = yes; then
26106
26107$as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26108
26109fi
26110
26111
26112    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26113$as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26114if ${gcc_cv_as_sparc_sparc4+:} false; then :
26115  $as_echo_n "(cached) " >&6
26116else
26117  gcc_cv_as_sparc_sparc4=no
26118  if test x$gcc_cv_as != x; then
26119    $as_echo '.text
26120       .register %g2, #scratch
26121       .register %g3, #scratch
26122       .align 4
26123       cxbe %g2, %g3, 1f
261241:     cwbneg %g2, %g3, 1f
261251:     sha1
26126       md5
26127       aes_kexpand0 %f4, %f6, %f8
26128       des_round %f38, %f40, %f42, %f44
26129       camellia_f %f54, %f56, %f58, %f60
26130       kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26131    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26132  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26133  (eval $ac_try) 2>&5
26134  ac_status=$?
26135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26136  test $ac_status = 0; }; }
26137    then
26138	gcc_cv_as_sparc_sparc4=yes
26139    else
26140      echo "configure: failed program was" >&5
26141      cat conftest.s >&5
26142    fi
26143    rm -f conftest.o conftest.s
26144  fi
26145fi
26146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26147$as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26148if test $gcc_cv_as_sparc_sparc4 = yes; then
26149
26150$as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26151
26152fi
26153
26154
26155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26156$as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26157if ${gcc_cv_as_sparc_sparc5+:} false; then :
26158  $as_echo_n "(cached) " >&6
26159else
26160  gcc_cv_as_sparc_sparc5=no
26161  if test x$gcc_cv_as != x; then
26162    $as_echo '.text
26163       .register %g2, #scratch
26164       .register %g3, #scratch
26165       .align 4
26166       subxc %g1, %g2, %g3
26167       fpadd8 %f0, %f2, %f4' > conftest.s
26168    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26169  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26170  (eval $ac_try) 2>&5
26171  ac_status=$?
26172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26173  test $ac_status = 0; }; }
26174    then
26175	gcc_cv_as_sparc_sparc5=yes
26176    else
26177      echo "configure: failed program was" >&5
26178      cat conftest.s >&5
26179    fi
26180    rm -f conftest.o conftest.s
26181  fi
26182fi
26183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26184$as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26185if test $gcc_cv_as_sparc_sparc5 = yes; then
26186
26187$as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26188
26189fi
26190
26191
26192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26193$as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26194if ${gcc_cv_as_sparc_sparc6+:} false; then :
26195  $as_echo_n "(cached) " >&6
26196else
26197  gcc_cv_as_sparc_sparc6=no
26198  if test x$gcc_cv_as != x; then
26199    $as_echo '.text
26200       .register %g2, #scratch
26201       .register %g3, #scratch
26202       .align 4
26203       rd %entropy, %g1
26204       fpsll64x %f0, %f2, %f4' > conftest.s
26205    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26206  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26207  (eval $ac_try) 2>&5
26208  ac_status=$?
26209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26210  test $ac_status = 0; }; }
26211    then
26212	gcc_cv_as_sparc_sparc6=yes
26213    else
26214      echo "configure: failed program was" >&5
26215      cat conftest.s >&5
26216    fi
26217    rm -f conftest.o conftest.s
26218  fi
26219fi
26220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26221$as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26222if test $gcc_cv_as_sparc_sparc6 = yes; then
26223
26224$as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26225
26226fi
26227
26228
26229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26230$as_echo_n "checking assembler for LEON instructions... " >&6; }
26231if ${gcc_cv_as_sparc_leon+:} false; then :
26232  $as_echo_n "(cached) " >&6
26233else
26234  gcc_cv_as_sparc_leon=no
26235  if test x$gcc_cv_as != x; then
26236    $as_echo '.text
26237       .register %g2, #scratch
26238       .register %g3, #scratch
26239       .align 4
26240       smac %g2, %g3, %g1
26241       umac %g2, %g3, %g1
26242       casa [%g2] 0xb, %g3, %g1' > conftest.s
26243    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26244  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26245  (eval $ac_try) 2>&5
26246  ac_status=$?
26247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26248  test $ac_status = 0; }; }
26249    then
26250	gcc_cv_as_sparc_leon=yes
26251    else
26252      echo "configure: failed program was" >&5
26253      cat conftest.s >&5
26254    fi
26255    rm -f conftest.o conftest.s
26256  fi
26257fi
26258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26259$as_echo "$gcc_cv_as_sparc_leon" >&6; }
26260if test $gcc_cv_as_sparc_leon = yes; then
26261
26262$as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26263
26264fi
26265
26266    ;;
26267
26268  i[34567]86-*-* | x86_64-*-*)
26269    case $target_os in
26270      cygwin*)
26271	# Full C++ conformance when using a shared libstdc++-v3 requires some
26272	# support from the Cygwin DLL, which in more recent versions exports
26273	# wrappers to aid in interposing and redirecting operators new, delete,
26274	# etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
26275	# are configuring for a version of Cygwin that exports the wrappers.
26276	if test x$host = x$target && test x$host_cpu = xi686; then
26277	  ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26278if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26279  gcc_ac_cygwin_dll_wrappers=yes
26280else
26281  gcc_ac_cygwin_dll_wrappers=no
26282fi
26283
26284	else
26285	  # Can't check presence of libc functions during cross-compile, so
26286	  # we just have to assume we're building for an up-to-date target.
26287	  gcc_ac_cygwin_dll_wrappers=yes
26288	fi
26289
26290cat >>confdefs.h <<_ACEOF
26291#define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26292_ACEOF
26293
26294    esac
26295    case $target_os in
26296      cygwin* | pe | mingw32*)
26297	# Recent binutils allows the three-operand form of ".comm" on PE.  This
26298	# definition is used unconditionally to initialise the default state of
26299	# the target option variable that governs usage of the feature.
26300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26301$as_echo_n "checking assembler for .comm with alignment... " >&6; }
26302if ${gcc_cv_as_comm_has_align+:} false; then :
26303  $as_echo_n "(cached) " >&6
26304else
26305  gcc_cv_as_comm_has_align=no
26306    if test $in_tree_gas = yes; then
26307    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26308  then gcc_cv_as_comm_has_align=yes
26309fi
26310  elif test x$gcc_cv_as != x; then
26311    $as_echo '.comm foo,1,32' > 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_comm_has_align=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_comm_has_align" >&5
26328$as_echo "$gcc_cv_as_comm_has_align" >&6; }
26329
26330
26331
26332cat >>confdefs.h <<_ACEOF
26333#define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26334_ACEOF
26335
26336	# Used for DWARF 2 in PE
26337	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26338$as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26339if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26340  $as_echo_n "(cached) " >&6
26341else
26342  gcc_cv_as_ix86_pe_secrel32=no
26343    if test $in_tree_gas = yes; then
26344    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26345  then gcc_cv_as_ix86_pe_secrel32=yes
26346fi
26347  elif test x$gcc_cv_as != x; then
26348    $as_echo '.text
26349foo:	nop
26350.data
26351	.secrel32 foo' > conftest.s
26352    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26353  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26354  (eval $ac_try) 2>&5
26355  ac_status=$?
26356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26357  test $ac_status = 0; }; }
26358    then
26359	if test x$gcc_cv_ld != x \
26360	   && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26361	     gcc_cv_as_ix86_pe_secrel32=yes
26362	   fi
26363	   rm -f conftest
26364    else
26365      echo "configure: failed program was" >&5
26366      cat conftest.s >&5
26367    fi
26368    rm -f conftest.o conftest.s
26369  fi
26370fi
26371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26372$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26373if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26374
26375$as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26376
26377fi
26378
26379	# Test if the assembler supports the extended form of the .section
26380	# directive that specifies section alignment.  LTO support uses this,
26381	# but normally only after installation, so we warn but don't fail the
26382	# configure if LTO is enabled but the assembler does not support it.
26383	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26384$as_echo_n "checking assembler for .section with alignment... " >&6; }
26385if ${gcc_cv_as_section_has_align+:} false; then :
26386  $as_echo_n "(cached) " >&6
26387else
26388  gcc_cv_as_section_has_align=no
26389    if test $in_tree_gas = yes; then
26390    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26391  then gcc_cv_as_section_has_align=yes
26392fi
26393  elif test x$gcc_cv_as != x; then
26394    $as_echo '.section lto_test,"dr0"' > conftest.s
26395    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26396  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397  (eval $ac_try) 2>&5
26398  ac_status=$?
26399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400  test $ac_status = 0; }; }
26401    then
26402	gcc_cv_as_section_has_align=yes
26403    else
26404      echo "configure: failed program was" >&5
26405      cat conftest.s >&5
26406    fi
26407    rm -f conftest.o conftest.s
26408  fi
26409fi
26410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26411$as_echo "$gcc_cv_as_section_has_align" >&6; }
26412
26413
26414	if test x$gcc_cv_as_section_has_align != xyes; then
26415	  case ",$enable_languages," in
26416	    *,lto,*)
26417	      { $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
26418$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;}
26419	      ;;
26420	  esac
26421	fi
26422	;;
26423    esac
26424
26425    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26426$as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26427if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26428  $as_echo_n "(cached) " >&6
26429else
26430  gcc_cv_as_ix86_xbrace_comment=no
26431  if test x$gcc_cv_as != x; then
26432    $as_echo '.text' > conftest.s
26433    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26434  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26435  (eval $ac_try) 2>&5
26436  ac_status=$?
26437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26438  test $ac_status = 0; }; }
26439    then
26440	gcc_cv_as_ix86_xbrace_comment=yes
26441    else
26442      echo "configure: failed program was" >&5
26443      cat conftest.s >&5
26444    fi
26445    rm -f conftest.o conftest.s
26446  fi
26447fi
26448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26449$as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26450if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26451
26452$as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26453
26454fi
26455
26456
26457    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26458$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26459if ${gcc_cv_as_ix86_filds+:} false; then :
26460  $as_echo_n "(cached) " >&6
26461else
26462  gcc_cv_as_ix86_filds=no
26463  if test x$gcc_cv_as != x; then
26464    $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26465    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26466  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26467  (eval $ac_try) 2>&5
26468  ac_status=$?
26469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26470  test $ac_status = 0; }; }
26471    then
26472	gcc_cv_as_ix86_filds=yes
26473    else
26474      echo "configure: failed program was" >&5
26475      cat conftest.s >&5
26476    fi
26477    rm -f conftest.o conftest.s
26478  fi
26479fi
26480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26481$as_echo "$gcc_cv_as_ix86_filds" >&6; }
26482if test $gcc_cv_as_ix86_filds = yes; then
26483
26484$as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26485
26486fi
26487
26488
26489    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26490$as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26491if ${gcc_cv_as_ix86_fildq+:} false; then :
26492  $as_echo_n "(cached) " >&6
26493else
26494  gcc_cv_as_ix86_fildq=no
26495  if test x$gcc_cv_as != x; then
26496    $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26497    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26498  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26499  (eval $ac_try) 2>&5
26500  ac_status=$?
26501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26502  test $ac_status = 0; }; }
26503    then
26504	gcc_cv_as_ix86_fildq=yes
26505    else
26506      echo "configure: failed program was" >&5
26507      cat conftest.s >&5
26508    fi
26509    rm -f conftest.o conftest.s
26510  fi
26511fi
26512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26513$as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26514if test $gcc_cv_as_ix86_fildq = yes; then
26515
26516$as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26517
26518fi
26519
26520
26521    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26522$as_echo_n "checking assembler for cmov syntax... " >&6; }
26523if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26524  $as_echo_n "(cached) " >&6
26525else
26526  gcc_cv_as_ix86_cmov_sun_syntax=no
26527  if test x$gcc_cv_as != x; then
26528    $as_echo 'cmovl.l %edx, %eax' > conftest.s
26529    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26530  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26531  (eval $ac_try) 2>&5
26532  ac_status=$?
26533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26534  test $ac_status = 0; }; }
26535    then
26536	gcc_cv_as_ix86_cmov_sun_syntax=yes
26537    else
26538      echo "configure: failed program was" >&5
26539      cat conftest.s >&5
26540    fi
26541    rm -f conftest.o conftest.s
26542  fi
26543fi
26544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26545$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26546if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26547
26548$as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26549
26550fi
26551
26552
26553    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26554$as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26555if ${gcc_cv_as_ix86_ffreep+:} false; then :
26556  $as_echo_n "(cached) " >&6
26557else
26558  gcc_cv_as_ix86_ffreep=no
26559  if test x$gcc_cv_as != x; then
26560    $as_echo 'ffreep %st(1)' > conftest.s
26561    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26562  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26563  (eval $ac_try) 2>&5
26564  ac_status=$?
26565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26566  test $ac_status = 0; }; }
26567    then
26568	gcc_cv_as_ix86_ffreep=yes
26569    else
26570      echo "configure: failed program was" >&5
26571      cat conftest.s >&5
26572    fi
26573    rm -f conftest.o conftest.s
26574  fi
26575fi
26576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26577$as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26578if test $gcc_cv_as_ix86_ffreep = yes; then
26579
26580$as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26581
26582fi
26583
26584
26585    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26586$as_echo_n "checking assembler for .quad directive... " >&6; }
26587if ${gcc_cv_as_ix86_quad+:} false; then :
26588  $as_echo_n "(cached) " >&6
26589else
26590  gcc_cv_as_ix86_quad=no
26591  if test x$gcc_cv_as != x; then
26592    $as_echo '.quad 0' > conftest.s
26593    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26594  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26595  (eval $ac_try) 2>&5
26596  ac_status=$?
26597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26598  test $ac_status = 0; }; }
26599    then
26600	gcc_cv_as_ix86_quad=yes
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_quad" >&5
26609$as_echo "$gcc_cv_as_ix86_quad" >&6; }
26610if test $gcc_cv_as_ix86_quad = yes; then
26611
26612$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26613
26614fi
26615
26616
26617    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26618$as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26619if ${gcc_cv_as_ix86_sahf+:} false; then :
26620  $as_echo_n "(cached) " >&6
26621else
26622  gcc_cv_as_ix86_sahf=no
26623  if test x$gcc_cv_as != x; then
26624    $as_echo '.code64
26625       sahf' > conftest.s
26626    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26627  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26628  (eval $ac_try) 2>&5
26629  ac_status=$?
26630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26631  test $ac_status = 0; }; }
26632    then
26633	gcc_cv_as_ix86_sahf=yes
26634    else
26635      echo "configure: failed program was" >&5
26636      cat conftest.s >&5
26637    fi
26638    rm -f conftest.o conftest.s
26639  fi
26640fi
26641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26642$as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26643if test $gcc_cv_as_ix86_sahf = yes; then
26644
26645$as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26646
26647fi
26648
26649
26650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26651$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26652if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26653  $as_echo_n "(cached) " >&6
26654else
26655  gcc_cv_as_ix86_interunit_movq=no
26656  if test x$gcc_cv_as != x; then
26657    $as_echo '.code64
26658       movq %mm0, %rax
26659       movq %rax, %xmm0' > conftest.s
26660    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26661  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26662  (eval $ac_try) 2>&5
26663  ac_status=$?
26664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26665  test $ac_status = 0; }; }
26666    then
26667	gcc_cv_as_ix86_interunit_movq=yes
26668    else
26669      echo "configure: failed program was" >&5
26670      cat conftest.s >&5
26671    fi
26672    rm -f conftest.o conftest.s
26673  fi
26674fi
26675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26676$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26677
26678
26679
26680cat >>confdefs.h <<_ACEOF
26681#define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26682_ACEOF
26683
26684
26685    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26686$as_echo_n "checking assembler for hle prefixes... " >&6; }
26687if ${gcc_cv_as_ix86_hle+:} false; then :
26688  $as_echo_n "(cached) " >&6
26689else
26690  gcc_cv_as_ix86_hle=no
26691  if test x$gcc_cv_as != x; then
26692    $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26693    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26694  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26695  (eval $ac_try) 2>&5
26696  ac_status=$?
26697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26698  test $ac_status = 0; }; }
26699    then
26700	gcc_cv_as_ix86_hle=yes
26701    else
26702      echo "configure: failed program was" >&5
26703      cat conftest.s >&5
26704    fi
26705    rm -f conftest.o conftest.s
26706  fi
26707fi
26708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26709$as_echo "$gcc_cv_as_ix86_hle" >&6; }
26710if test $gcc_cv_as_ix86_hle = yes; then
26711
26712$as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26713
26714fi
26715
26716
26717    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26718$as_echo_n "checking assembler for swap suffix... " >&6; }
26719if ${gcc_cv_as_ix86_swap+:} false; then :
26720  $as_echo_n "(cached) " >&6
26721else
26722  gcc_cv_as_ix86_swap=no
26723  if test x$gcc_cv_as != x; then
26724    $as_echo 'movl.s %esp, %ebp' > conftest.s
26725    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26726  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26727  (eval $ac_try) 2>&5
26728  ac_status=$?
26729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26730  test $ac_status = 0; }; }
26731    then
26732	gcc_cv_as_ix86_swap=yes
26733    else
26734      echo "configure: failed program was" >&5
26735      cat conftest.s >&5
26736    fi
26737    rm -f conftest.o conftest.s
26738  fi
26739fi
26740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26741$as_echo "$gcc_cv_as_ix86_swap" >&6; }
26742if test $gcc_cv_as_ix86_swap = yes; then
26743
26744$as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26745
26746fi
26747
26748
26749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26750$as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26751if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26752  $as_echo_n "(cached) " >&6
26753else
26754  gcc_cv_as_ix86_diff_sect_delta=no
26755  if test x$gcc_cv_as != x; then
26756    $as_echo '.section .rodata
26757.L1:
26758        .long .L2-.L1
26759        .long .L3-.L1
26760        .text
26761.L3:    nop
26762.L2:    nop' > conftest.s
26763    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26764  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26765  (eval $ac_try) 2>&5
26766  ac_status=$?
26767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26768  test $ac_status = 0; }; }
26769    then
26770	gcc_cv_as_ix86_diff_sect_delta=yes
26771    else
26772      echo "configure: failed program was" >&5
26773      cat conftest.s >&5
26774    fi
26775    rm -f conftest.o conftest.s
26776  fi
26777fi
26778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26779$as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26780if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26781
26782$as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26783
26784fi
26785
26786
26787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26788$as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26789if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26790  $as_echo_n "(cached) " >&6
26791else
26792  gcc_cv_as_ix86_rep_lock_prefix=no
26793  if test x$gcc_cv_as != x; then
26794    $as_echo 'rep movsl
26795	 rep ret
26796	 rep nop
26797	 rep bsf %ecx, %eax
26798	 rep bsr %ecx, %eax
26799	 lock addl %edi, (%eax,%esi)
26800	 lock orl $0, (%esp)' > conftest.s
26801    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26802  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26803  (eval $ac_try) 2>&5
26804  ac_status=$?
26805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26806  test $ac_status = 0; }; }
26807    then
26808	gcc_cv_as_ix86_rep_lock_prefix=yes
26809    else
26810      echo "configure: failed program was" >&5
26811      cat conftest.s >&5
26812    fi
26813    rm -f conftest.o conftest.s
26814  fi
26815fi
26816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26817$as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26818if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26819
26820$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26821
26822fi
26823
26824
26825    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26826$as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26827if ${gcc_cv_as_ix86_ud2+:} false; then :
26828  $as_echo_n "(cached) " >&6
26829else
26830  gcc_cv_as_ix86_ud2=no
26831  if test x$gcc_cv_as != x; then
26832    $as_echo 'ud2' > conftest.s
26833    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26834  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26835  (eval $ac_try) 2>&5
26836  ac_status=$?
26837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26838  test $ac_status = 0; }; }
26839    then
26840	gcc_cv_as_ix86_ud2=yes
26841    else
26842      echo "configure: failed program was" >&5
26843      cat conftest.s >&5
26844    fi
26845    rm -f conftest.o conftest.s
26846  fi
26847fi
26848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26849$as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26850if test $gcc_cv_as_ix86_ud2 = yes; then
26851
26852$as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26853
26854fi
26855
26856
26857    # Enforce 32-bit output with gas and gld.
26858    if test x$gas = xyes; then
26859      as_ix86_gas_32_opt="--32"
26860    fi
26861    if echo "$ld_ver" | grep GNU > /dev/null; then
26862      if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26863        ld_ix86_gld_32_opt="-melf_i386_sol2"
26864      else
26865        ld_ix86_gld_32_opt="-melf_i386"
26866      fi
26867    fi
26868
26869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26870$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26871if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26872  $as_echo_n "(cached) " >&6
26873else
26874  gcc_cv_as_ix86_tlsgdplt=no
26875  if test x$gcc_cv_as != x; then
26876    $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
26877    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26878  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26879  (eval $ac_try) 2>&5
26880  ac_status=$?
26881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26882  test $ac_status = 0; }; }
26883    then
26884	if test x$gcc_cv_ld != x \
26885	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26886	   gcc_cv_as_ix86_tlsgdplt=yes
26887	 fi
26888	 rm -f conftest
26889    else
26890      echo "configure: failed program was" >&5
26891      cat conftest.s >&5
26892    fi
26893    rm -f conftest.o conftest.s
26894  fi
26895fi
26896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26897$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26898if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26899
26900$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26901
26902fi
26903
26904
26905    conftest_s='
26906	.section .tdata,"aw'$tls_section_flag'",@progbits
26907tls_ld:
26908	.section .text,"ax",@progbits
26909	 call    tls_ld@tlsldmplt'
26910
26911    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26912$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26913if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26914  $as_echo_n "(cached) " >&6
26915else
26916  gcc_cv_as_ix86_tlsldmplt=no
26917  if test x$gcc_cv_as != x; then
26918    $as_echo "$conftest_s" > conftest.s
26919    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26920  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26921  (eval $ac_try) 2>&5
26922  ac_status=$?
26923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26924  test $ac_status = 0; }; }
26925    then
26926	if test x$gcc_cv_ld != x \
26927	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26928	   gcc_cv_as_ix86_tlsldmplt=yes
26929	 fi
26930	 rm -f conftest
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_ix86_tlsldmplt" >&5
26939$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26940
26941
26942
26943cat >>confdefs.h <<_ACEOF
26944#define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26945_ACEOF
26946
26947
26948    conftest_s='
26949	.section .text,"ax",@progbits
26950        .globl  _start
26951        .type   _start, @function
26952_start:
26953	leal	value@tlsldm(%ebx), %eax
26954	call	___tls_get_addr@plt
26955
26956        .section .tdata,"aw'$tls_section_flag'",@progbits
26957        .type	value, @object
26958value:'
26959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26960$as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26961if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26962  $as_echo_n "(cached) " >&6
26963else
26964  gcc_cv_as_ix86_tlsldm=no
26965  if test x$gcc_cv_as != x; then
26966    $as_echo "$conftest_s" > conftest.s
26967    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26968  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26969  (eval $ac_try) 2>&5
26970  ac_status=$?
26971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26972  test $ac_status = 0; }; }
26973    then
26974	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26975	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26976	   if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26977	      || dis conftest 2>/dev/null | grep nop > /dev/null; then
26978	     gcc_cv_as_ix86_tlsldm=yes
26979	   fi
26980	 fi
26981	 rm -f conftest
26982    else
26983      echo "configure: failed program was" >&5
26984      cat conftest.s >&5
26985    fi
26986    rm -f conftest.o conftest.s
26987  fi
26988fi
26989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26990$as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26991
26992
26993
26994cat >>confdefs.h <<_ACEOF
26995#define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26996_ACEOF
26997
26998
26999    conftest_s='
27000	.data
27001bar:
27002	.byte 1
27003	.text
27004	.global _start
27005_start:
27006	 cmpl $0, bar@GOT
27007	 jmp *_start@GOT'
27008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27009$as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27010if ${gcc_cv_as_ix86_got32x+:} false; then :
27011  $as_echo_n "(cached) " >&6
27012else
27013  gcc_cv_as_ix86_got32x=no
27014  if test x$gcc_cv_as != x; then
27015    $as_echo "$conftest_s" > conftest.s
27016    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27017  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27018  (eval $ac_try) 2>&5
27019  ac_status=$?
27020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27021  test $ac_status = 0; }; }
27022    then
27023	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27024	    && test x$gcc_cv_readelf != x \
27025	    && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27026	       | grep R_386_GOT32X > /dev/null 2>&1 \
27027	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27028	   if $gcc_cv_objdump -dw conftest 2>&1 \
27029	      | grep 0xffffff > /dev/null 2>&1; then
27030	     gcc_cv_as_ix86_got32x=no
27031	   else
27032	     gcc_cv_as_ix86_got32x=yes
27033	   fi
27034	 fi
27035	 rm -f conftest
27036    else
27037      echo "configure: failed program was" >&5
27038      cat conftest.s >&5
27039    fi
27040    rm -f conftest.o conftest.s
27041  fi
27042fi
27043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27044$as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27045
27046
27047
27048cat >>confdefs.h <<_ACEOF
27049#define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27050_ACEOF
27051
27052
27053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27054$as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27055if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27056  $as_echo_n "(cached) " >&6
27057else
27058  gcc_cv_as_ix86_gotoff_in_data=no
27059    if test $in_tree_gas = yes; then
27060    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27061  then gcc_cv_as_ix86_gotoff_in_data=yes
27062fi
27063  elif test x$gcc_cv_as != x; then
27064    $as_echo '	.text
27065.L0:
27066	nop
27067	.data
27068	.long .L0@GOTOFF' > conftest.s
27069    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27070  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27071  (eval $ac_try) 2>&5
27072  ac_status=$?
27073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27074  test $ac_status = 0; }; }
27075    then
27076	gcc_cv_as_ix86_gotoff_in_data=yes
27077    else
27078      echo "configure: failed program was" >&5
27079      cat conftest.s >&5
27080    fi
27081    rm -f conftest.o conftest.s
27082  fi
27083fi
27084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27085$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27086
27087
27088
27089cat >>confdefs.h <<_ACEOF
27090#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27091_ACEOF
27092
27093
27094    conftest_s='
27095	.section .text,"ax",@progbits
27096	.globl  _start
27097	.type   _start, @function
27098_start:
27099	leal	ld@tlsldm(%ecx), %eax
27100	call	*___tls_get_addr@GOT(%ecx)
27101	leal	gd@tlsgd(%ecx), %eax
27102	call	*___tls_get_addr@GOT(%ecx)
27103
27104	.section .tdata,"aw'$tls_section_flag'",@progbits
27105	.type	ld, @object
27106ld:
27107	.byte 0
27108	.globl  gd
27109	.type	gd, @object
27110gd:
27111	.byte 0'
27112    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27113$as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27114if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27115  $as_echo_n "(cached) " >&6
27116else
27117  gcc_cv_as_ix86_tls_get_addr_via_got=no
27118  if test x$gcc_cv_as != x; then
27119    $as_echo "$conftest_s" > conftest.s
27120    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27121  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27122  (eval $ac_try) 2>&5
27123  ac_status=$?
27124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27125  test $ac_status = 0; }; }
27126    then
27127	if test x$gcc_cv_ld != x \
27128	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27129	   gcc_cv_as_ix86_tls_get_addr_via_got=yes
27130	 fi
27131	 rm -f conftest
27132    else
27133      echo "configure: failed program was" >&5
27134      cat conftest.s >&5
27135    fi
27136    rm -f conftest.o conftest.s
27137  fi
27138fi
27139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27140$as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27141
27142
27143
27144cat >>confdefs.h <<_ACEOF
27145#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`
27146_ACEOF
27147
27148    ;;
27149
27150  ia64*-*-*)
27151    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27152$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27153if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27154  $as_echo_n "(cached) " >&6
27155else
27156  gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27157    if test $in_tree_gas = yes; then
27158    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27159  then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27160fi
27161  elif test x$gcc_cv_as != x; then
27162    $as_echo '	.text
27163	addl r15 = @ltoffx(x#), gp
27164	;;
27165	ld8.mov r16 = [r15], x#
27166' > conftest.s
27167    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27168  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27169  (eval $ac_try) 2>&5
27170  ac_status=$?
27171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27172  test $ac_status = 0; }; }
27173    then
27174	gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27175    else
27176      echo "configure: failed program was" >&5
27177      cat conftest.s >&5
27178    fi
27179    rm -f conftest.o conftest.s
27180  fi
27181fi
27182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27183$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27184if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27185
27186$as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27187
27188fi
27189
27190
27191    ;;
27192
27193  powerpc*-*-*)
27194
27195    case $target in
27196      *-*-darwin*)
27197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27198$as_echo_n "checking assembler for .machine directive support... " >&6; }
27199if ${gcc_cv_as_machine_directive+:} false; then :
27200  $as_echo_n "(cached) " >&6
27201else
27202  gcc_cv_as_machine_directive=no
27203  if test x$gcc_cv_as != x; then
27204    $as_echo '	.machine ppc7400' > conftest.s
27205    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27206  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27207  (eval $ac_try) 2>&5
27208  ac_status=$?
27209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27210  test $ac_status = 0; }; }
27211    then
27212	gcc_cv_as_machine_directive=yes
27213    else
27214      echo "configure: failed program was" >&5
27215      cat conftest.s >&5
27216    fi
27217    rm -f conftest.o conftest.s
27218  fi
27219fi
27220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27221$as_echo "$gcc_cv_as_machine_directive" >&6; }
27222
27223
27224	if test x$gcc_cv_as_machine_directive != xyes; then
27225	  echo "*** This target requires an assembler supporting \".machine\"" >&2
27226	  echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27227	  test x$build = x$target && exit 1
27228	fi
27229        ;;
27230    esac
27231
27232    case $target in
27233      *-*-aix*) conftest_s='	.machine "pwr5"
27234	.csect .text[PR]
27235	mfcr 3,128';;
27236      *-*-darwin*) conftest_s='	.text
27237	mfcr r3,128';;
27238      *) conftest_s='	.machine power4
27239	.text
27240	mfcr 3,128';;
27241    esac
27242
27243    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27244$as_echo_n "checking assembler for mfcr field support... " >&6; }
27245if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27246  $as_echo_n "(cached) " >&6
27247else
27248  gcc_cv_as_powerpc_mfcrf=no
27249    if test $in_tree_gas = yes; then
27250    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27251  then gcc_cv_as_powerpc_mfcrf=yes
27252fi
27253  elif test x$gcc_cv_as != x; then
27254    $as_echo "$conftest_s" > conftest.s
27255    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27256  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27257  (eval $ac_try) 2>&5
27258  ac_status=$?
27259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27260  test $ac_status = 0; }; }
27261    then
27262	gcc_cv_as_powerpc_mfcrf=yes
27263    else
27264      echo "configure: failed program was" >&5
27265      cat conftest.s >&5
27266    fi
27267    rm -f conftest.o conftest.s
27268  fi
27269fi
27270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27271$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27272if test $gcc_cv_as_powerpc_mfcrf = yes; then
27273
27274$as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27275
27276fi
27277
27278
27279    case $target in
27280      *-*-aix*) conftest_s='	.csect .text[PR]
27281LCF..0:
27282	addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27283      *-*-darwin*)
27284	conftest_s='	.text
27285LCF0:
27286	addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27287      *) conftest_s='	.text
27288.LCF0:
27289	addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27290    esac
27291
27292    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27293$as_echo_n "checking assembler for rel16 relocs... " >&6; }
27294if ${gcc_cv_as_powerpc_rel16+:} false; then :
27295  $as_echo_n "(cached) " >&6
27296else
27297  gcc_cv_as_powerpc_rel16=no
27298    if test $in_tree_gas = yes; then
27299    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27300  then gcc_cv_as_powerpc_rel16=yes
27301fi
27302  elif test x$gcc_cv_as != x; then
27303    $as_echo "$conftest_s" > conftest.s
27304    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27305  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27306  (eval $ac_try) 2>&5
27307  ac_status=$?
27308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27309  test $ac_status = 0; }; }
27310    then
27311	gcc_cv_as_powerpc_rel16=yes
27312    else
27313      echo "configure: failed program was" >&5
27314      cat conftest.s >&5
27315    fi
27316    rm -f conftest.o conftest.s
27317  fi
27318fi
27319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27320$as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27321if test $gcc_cv_as_powerpc_rel16 = yes; then
27322
27323$as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27324
27325fi
27326
27327
27328    case $target in
27329      *-*-aix*) conftest_s='	.machine "pwr7"
27330	.csect .text[PR]
27331	lxvd2x 1,2,3';;
27332      *) conftest_s='	.machine power7
27333	.text
27334	lxvd2x 1,2,3';;
27335    esac
27336
27337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27338$as_echo_n "checking assembler for vector-scalar support... " >&6; }
27339if ${gcc_cv_as_powerpc_vsx+:} false; then :
27340  $as_echo_n "(cached) " >&6
27341else
27342  gcc_cv_as_powerpc_vsx=no
27343    if test $in_tree_gas = yes; then
27344    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27345  then gcc_cv_as_powerpc_vsx=yes
27346fi
27347  elif test x$gcc_cv_as != x; then
27348    $as_echo "$conftest_s" > conftest.s
27349    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27350  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27351  (eval $ac_try) 2>&5
27352  ac_status=$?
27353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27354  test $ac_status = 0; }; }
27355    then
27356	gcc_cv_as_powerpc_vsx=yes
27357    else
27358      echo "configure: failed program was" >&5
27359      cat conftest.s >&5
27360    fi
27361    rm -f conftest.o conftest.s
27362  fi
27363fi
27364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27365$as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27366if test $gcc_cv_as_powerpc_vsx = yes; then
27367
27368$as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27369
27370fi
27371
27372
27373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27374$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27375if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27376  $as_echo_n "(cached) " >&6
27377else
27378  gcc_cv_as_powerpc_gnu_attribute=no
27379    if test $in_tree_gas = yes; then
27380    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27381  then gcc_cv_as_powerpc_gnu_attribute=yes
27382fi
27383  elif test x$gcc_cv_as != x; then
27384    $as_echo '.gnu_attribute 4,1' > conftest.s
27385    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27386  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27387  (eval $ac_try) 2>&5
27388  ac_status=$?
27389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27390  test $ac_status = 0; }; }
27391    then
27392	gcc_cv_as_powerpc_gnu_attribute=yes
27393    else
27394      echo "configure: failed program was" >&5
27395      cat conftest.s >&5
27396    fi
27397    rm -f conftest.o conftest.s
27398  fi
27399fi
27400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27401$as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27402if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27403
27404$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27405
27406fi
27407
27408
27409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27410$as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27411if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27412  $as_echo_n "(cached) " >&6
27413else
27414  gcc_cv_as_powerpc_entry_markers=no
27415    if test $in_tree_gas = yes; then
27416    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27417  then gcc_cv_as_powerpc_entry_markers=yes
27418fi
27419  elif test x$gcc_cv_as != x; then
27420    $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27421    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27422  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27423  (eval $ac_try) 2>&5
27424  ac_status=$?
27425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27426  test $ac_status = 0; }; }
27427    then
27428	gcc_cv_as_powerpc_entry_markers=yes
27429    else
27430      echo "configure: failed program was" >&5
27431      cat conftest.s >&5
27432    fi
27433    rm -f conftest.o conftest.s
27434  fi
27435fi
27436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27437$as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27438if test $gcc_cv_as_powerpc_entry_markers = yes; then
27439
27440$as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27441
27442fi
27443
27444
27445    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27446$as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27447if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27448  $as_echo_n "(cached) " >&6
27449else
27450  gcc_cv_as_powerpc_pltseq_markers=no
27451    if test $in_tree_gas = yes; then
27452    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27453  then gcc_cv_as_powerpc_pltseq_markers=yes
27454fi
27455  elif test x$gcc_cv_as != x; then
27456    $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27457    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27458  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27459  (eval $ac_try) 2>&5
27460  ac_status=$?
27461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27462  test $ac_status = 0; }; }
27463    then
27464	gcc_cv_as_powerpc_pltseq_markers=yes
27465    else
27466      echo "configure: failed program was" >&5
27467      cat conftest.s >&5
27468    fi
27469    rm -f conftest.o conftest.s
27470  fi
27471fi
27472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27473$as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27474if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27475
27476$as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27477
27478fi
27479
27480
27481    case $target in
27482      *-*-aix*)
27483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27484$as_echo_n "checking assembler for AIX .ref support... " >&6; }
27485if ${gcc_cv_as_aix_ref+:} false; then :
27486  $as_echo_n "(cached) " >&6
27487else
27488  gcc_cv_as_aix_ref=no
27489    if test $in_tree_gas = yes; then
27490    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27491  then gcc_cv_as_aix_ref=yes
27492fi
27493  elif test x$gcc_cv_as != x; then
27494    $as_echo '	.csect stuff[rw]
27495	     stuff:
27496		.long 1
27497		.extern sym
27498		.ref sym
27499	  ' > conftest.s
27500    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27501  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27502  (eval $ac_try) 2>&5
27503  ac_status=$?
27504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27505  test $ac_status = 0; }; }
27506    then
27507	gcc_cv_as_aix_ref=yes
27508    else
27509      echo "configure: failed program was" >&5
27510      cat conftest.s >&5
27511    fi
27512    rm -f conftest.o conftest.s
27513  fi
27514fi
27515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27516$as_echo "$gcc_cv_as_aix_ref" >&6; }
27517if test $gcc_cv_as_aix_ref = yes; then
27518
27519$as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27520
27521fi
27522
27523
27524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27525$as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27526if ${gcc_cv_as_aix_dwloc+:} false; then :
27527  $as_echo_n "(cached) " >&6
27528else
27529  gcc_cv_as_aix_dwloc=no
27530    if test $in_tree_gas = yes; then
27531    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27532  then gcc_cv_as_aix_dwloc=yes
27533fi
27534  elif test x$gcc_cv_as != x; then
27535    $as_echo '	.dwsect 0xA0000
27536	Lframe..0:
27537		.vbyte 4,Lframe..0
27538	  ' > conftest.s
27539    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27540  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27541  (eval $ac_try) 2>&5
27542  ac_status=$?
27543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27544  test $ac_status = 0; }; }
27545    then
27546	gcc_cv_as_aix_dwloc=yes
27547    else
27548      echo "configure: failed program was" >&5
27549      cat conftest.s >&5
27550    fi
27551    rm -f conftest.o conftest.s
27552  fi
27553fi
27554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27555$as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27556if test $gcc_cv_as_aix_dwloc = yes; then
27557
27558$as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27559
27560fi
27561
27562	;;
27563    esac
27564    ;;
27565
27566  mips*-*-*)
27567    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27568$as_echo_n "checking assembler for explicit relocation support... " >&6; }
27569if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27570  $as_echo_n "(cached) " >&6
27571else
27572  gcc_cv_as_mips_explicit_relocs=no
27573    if test $in_tree_gas = yes; then
27574    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27575  then gcc_cv_as_mips_explicit_relocs=yes
27576fi
27577  elif test x$gcc_cv_as != x; then
27578    $as_echo '	lw $4,%gp_rel(foo)($4)' > conftest.s
27579    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27580  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27581  (eval $ac_try) 2>&5
27582  ac_status=$?
27583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27584  test $ac_status = 0; }; }
27585    then
27586	gcc_cv_as_mips_explicit_relocs=yes
27587    else
27588      echo "configure: failed program was" >&5
27589      cat conftest.s >&5
27590    fi
27591    rm -f conftest.o conftest.s
27592  fi
27593fi
27594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27595$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27596if test $gcc_cv_as_mips_explicit_relocs = yes; then
27597  if test x$target_cpu_default = x
27598       then target_cpu_default=MASK_EXPLICIT_RELOCS
27599       else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27600       fi
27601fi
27602
27603
27604    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27605$as_echo_n "checking assembler for -mno-shared support... " >&6; }
27606if ${gcc_cv_as_mips_no_shared+:} false; then :
27607  $as_echo_n "(cached) " >&6
27608else
27609  gcc_cv_as_mips_no_shared=no
27610    if test $in_tree_gas = yes; then
27611    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27612  then gcc_cv_as_mips_no_shared=yes
27613fi
27614  elif test x$gcc_cv_as != x; then
27615    $as_echo 'nop' > conftest.s
27616    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27617  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27618  (eval $ac_try) 2>&5
27619  ac_status=$?
27620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27621  test $ac_status = 0; }; }
27622    then
27623	gcc_cv_as_mips_no_shared=yes
27624    else
27625      echo "configure: failed program was" >&5
27626      cat conftest.s >&5
27627    fi
27628    rm -f conftest.o conftest.s
27629  fi
27630fi
27631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27632$as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27633if test $gcc_cv_as_mips_no_shared = yes; then
27634
27635$as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27636
27637fi
27638
27639
27640    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27641$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27642if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27643  $as_echo_n "(cached) " >&6
27644else
27645  gcc_cv_as_mips_gnu_attribute=no
27646    if test $in_tree_gas = yes; then
27647    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27648  then gcc_cv_as_mips_gnu_attribute=yes
27649fi
27650  elif test x$gcc_cv_as != x; then
27651    $as_echo '.gnu_attribute 4,1' > conftest.s
27652    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27653  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27654  (eval $ac_try) 2>&5
27655  ac_status=$?
27656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27657  test $ac_status = 0; }; }
27658    then
27659	gcc_cv_as_mips_gnu_attribute=yes
27660    else
27661      echo "configure: failed program was" >&5
27662      cat conftest.s >&5
27663    fi
27664    rm -f conftest.o conftest.s
27665  fi
27666fi
27667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27668$as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27669if test $gcc_cv_as_mips_gnu_attribute = yes; then
27670
27671$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27672
27673fi
27674
27675
27676    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27677$as_echo_n "checking assembler for .module support... " >&6; }
27678if ${gcc_cv_as_mips_dot_module+:} false; then :
27679  $as_echo_n "(cached) " >&6
27680else
27681  gcc_cv_as_mips_dot_module=no
27682  if test x$gcc_cv_as != x; then
27683    $as_echo '.module mips2
27684       .module fp=xx' > conftest.s
27685    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27686  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27687  (eval $ac_try) 2>&5
27688  ac_status=$?
27689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27690  test $ac_status = 0; }; }
27691    then
27692	gcc_cv_as_mips_dot_module=yes
27693    else
27694      echo "configure: failed program was" >&5
27695      cat conftest.s >&5
27696    fi
27697    rm -f conftest.o conftest.s
27698  fi
27699fi
27700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27701$as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27702if test $gcc_cv_as_mips_dot_module = yes; then
27703
27704$as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27705
27706fi
27707
27708    if test x$gcc_cv_as_mips_dot_module = xno \
27709       && test x$with_fp_32 != x; then
27710      as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27711    fi
27712
27713    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27714$as_echo_n "checking assembler for .micromips support... " >&6; }
27715if ${gcc_cv_as_micromips_support+:} false; then :
27716  $as_echo_n "(cached) " >&6
27717else
27718  gcc_cv_as_micromips_support=no
27719  if test x$gcc_cv_as != x; then
27720    $as_echo '.set micromips' > conftest.s
27721    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27722  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27723  (eval $ac_try) 2>&5
27724  ac_status=$?
27725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27726  test $ac_status = 0; }; }
27727    then
27728	gcc_cv_as_micromips_support=yes
27729    else
27730      echo "configure: failed program was" >&5
27731      cat conftest.s >&5
27732    fi
27733    rm -f conftest.o conftest.s
27734  fi
27735fi
27736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27737$as_echo "$gcc_cv_as_micromips_support" >&6; }
27738if test $gcc_cv_as_micromips_support = yes; then
27739
27740$as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27741
27742fi
27743
27744
27745    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27746$as_echo_n "checking assembler for .dtprelword support... " >&6; }
27747if ${gcc_cv_as_mips_dtprelword+:} false; then :
27748  $as_echo_n "(cached) " >&6
27749else
27750  gcc_cv_as_mips_dtprelword=no
27751    if test $in_tree_gas = yes; then
27752    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27753  then gcc_cv_as_mips_dtprelword=yes
27754fi
27755  elif test x$gcc_cv_as != x; then
27756    $as_echo '.section .tdata,"awT",@progbits
27757x:
27758	.word 2
27759	.text
27760	.dtprelword x+0x8000' > conftest.s
27761    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27762  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27763  (eval $ac_try) 2>&5
27764  ac_status=$?
27765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27766  test $ac_status = 0; }; }
27767    then
27768	gcc_cv_as_mips_dtprelword=yes
27769    else
27770      echo "configure: failed program was" >&5
27771      cat conftest.s >&5
27772    fi
27773    rm -f conftest.o conftest.s
27774  fi
27775fi
27776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27777$as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27778if test $gcc_cv_as_mips_dtprelword = yes; then
27779
27780$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27781
27782fi
27783
27784
27785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27786$as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27787if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27788  $as_echo_n "(cached) " >&6
27789else
27790  gcc_cv_as_mips_dspr1_mult=no
27791  if test x$gcc_cv_as != x; then
27792    $as_echo '	.set	mips32r2
27793	.set	nodspr2
27794	.set	dsp
27795	madd	$ac3,$4,$5
27796	maddu	$ac3,$4,$5
27797	msub	$ac3,$4,$5
27798	msubu	$ac3,$4,$5
27799	mult	$ac3,$4,$5
27800	multu	$ac3,$4,$5' > conftest.s
27801    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27802  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27803  (eval $ac_try) 2>&5
27804  ac_status=$?
27805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27806  test $ac_status = 0; }; }
27807    then
27808	gcc_cv_as_mips_dspr1_mult=yes
27809    else
27810      echo "configure: failed program was" >&5
27811      cat conftest.s >&5
27812    fi
27813    rm -f conftest.o conftest.s
27814  fi
27815fi
27816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27817$as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27818if test $gcc_cv_as_mips_dspr1_mult = yes; then
27819
27820$as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27821
27822fi
27823
27824
27825    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27826$as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27827    gcc_cv_as_ld_jalr_reloc=no
27828    if test $gcc_cv_as_mips_explicit_relocs = yes; then
27829      if test $in_tree_ld = yes ; then
27830        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 \
27831           && test $in_tree_ld_is_elf = yes; then
27832          gcc_cv_as_ld_jalr_reloc=yes
27833        fi
27834      elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27835        echo '	.ent x' > conftest.s
27836        echo 'x:	lw $2,%got_disp(y)($3)' >> conftest.s
27837        echo '	lw $25,%call16(y)($28)' >> conftest.s
27838        echo '	.reloc	1f,R_MIPS_JALR,y' >> conftest.s
27839        echo '1:	jalr $25' >> conftest.s
27840        echo '	.reloc	1f,R_MIPS_JALR,x' >> conftest.s
27841        echo '1:	jalr $25' >> conftest.s
27842        echo '	.end x' >> conftest.s
27843        if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27844           && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27845	  if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27846	     && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27847            gcc_cv_as_ld_jalr_reloc=yes
27848	  fi
27849        fi
27850        rm -f conftest.*
27851      fi
27852    fi
27853    if test $gcc_cv_as_ld_jalr_reloc = yes; then
27854      if test x$target_cpu_default = x; then
27855        target_cpu_default=MASK_RELAX_PIC_CALLS
27856      else
27857        target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27858      fi
27859    fi
27860    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27861$as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27862
27863    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27864$as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27865if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27866  $as_echo_n "(cached) " >&6
27867else
27868  gcc_cv_ld_mips_personality_relaxation=no
27869       if test $in_tree_ld = yes ; then
27870	 if test "$gcc_cv_gld_major_version" -eq 2 \
27871		 -a "$gcc_cv_gld_minor_version" -ge 21 \
27872		 -o "$gcc_cv_gld_major_version" -gt 2; then
27873	   gcc_cv_ld_mips_personality_relaxation=yes
27874	 fi
27875       elif test x$gcc_cv_as != x \
27876       	    	 -a x$gcc_cv_ld != x \
27877		 -a x$gcc_cv_readelf != x ; then
27878	 cat > conftest.s <<EOF
27879	.cfi_startproc
27880	.cfi_personality 0x80,indirect_ptr
27881	.ent test
27882test:
27883	nop
27884	.end test
27885	.cfi_endproc
27886
27887	.section .data,"aw",@progbits
27888indirect_ptr:
27889	.dc.a personality
27890EOF
27891	 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27892	    && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27893	   if $gcc_cv_readelf -d conftest 2>&1 \
27894	      | grep TEXTREL > /dev/null 2>&1; then
27895	     :
27896	   elif $gcc_cv_readelf --relocs conftest 2>&1 \
27897	        | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27898	     :
27899	   else
27900	     gcc_cv_ld_mips_personality_relaxation=yes
27901	   fi
27902	 fi
27903       fi
27904       rm -f conftest.s conftest.o conftest
27905fi
27906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27907$as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27908    if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27909
27910$as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27911
27912    fi
27913
27914    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27915$as_echo_n "checking assembler for -mnan= support... " >&6; }
27916if ${gcc_cv_as_mips_nan+:} false; then :
27917  $as_echo_n "(cached) " >&6
27918else
27919  gcc_cv_as_mips_nan=no
27920  if test x$gcc_cv_as != x; then
27921    $as_echo '' > conftest.s
27922    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27923  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27924  (eval $ac_try) 2>&5
27925  ac_status=$?
27926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27927  test $ac_status = 0; }; }
27928    then
27929	gcc_cv_as_mips_nan=yes
27930    else
27931      echo "configure: failed program was" >&5
27932      cat conftest.s >&5
27933    fi
27934    rm -f conftest.o conftest.s
27935  fi
27936fi
27937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27938$as_echo "$gcc_cv_as_mips_nan" >&6; }
27939if test $gcc_cv_as_mips_nan = yes; then
27940
27941$as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27942
27943fi
27944
27945    if test x$gcc_cv_as_mips_nan = xno \
27946       && test x$with_nan != x; then
27947      as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27948    fi
27949    ;;
27950    msp430-*-*)
27951    # Earlier GAS versions generically support .gnu_attribute, but the
27952    # msp430 assembler will not do anything with it.
27953    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27954$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27955if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
27956  $as_echo_n "(cached) " >&6
27957else
27958  gcc_cv_as_msp430_gnu_attribute=no
27959    if test $in_tree_gas = yes; then
27960    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27961  then gcc_cv_as_msp430_gnu_attribute=yes
27962fi
27963  elif test x$gcc_cv_as != x; then
27964    $as_echo '.gnu_attribute 4,1' > conftest.s
27965    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27966  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27967  (eval $ac_try) 2>&5
27968  ac_status=$?
27969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27970  test $ac_status = 0; }; }
27971    then
27972	gcc_cv_as_msp430_gnu_attribute=yes
27973    else
27974      echo "configure: failed program was" >&5
27975      cat conftest.s >&5
27976    fi
27977    rm -f conftest.o conftest.s
27978  fi
27979fi
27980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27981$as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27982if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27983
27984$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27985
27986fi
27987
27988    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27989$as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27990if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
27991  $as_echo_n "(cached) " >&6
27992else
27993  gcc_cv_as_msp430_mspabi_attribute=no
27994    if test $in_tree_gas = yes; then
27995    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27996  then gcc_cv_as_msp430_mspabi_attribute=yes
27997fi
27998  elif test x$gcc_cv_as != x; then
27999    $as_echo '.mspabi_attribute 4,1' > conftest.s
28000    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28001  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28002  (eval $ac_try) 2>&5
28003  ac_status=$?
28004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28005  test $ac_status = 0; }; }
28006    then
28007	gcc_cv_as_msp430_mspabi_attribute=yes
28008    else
28009      echo "configure: failed program was" >&5
28010      cat conftest.s >&5
28011    fi
28012    rm -f conftest.o conftest.s
28013  fi
28014fi
28015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28016$as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28017if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28018
28019$as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28020
28021fi
28022
28023    if test x$enable_newlib_nano_formatted_io = xyes; then
28024
28025$as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28026
28027      fi
28028    ;;
28029    nios2-*-*)
28030    # Versions 2.33 and earlier lacked support for the %gotoff relocation
28031    # syntax that is documented in the ABI specification.
28032    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28033$as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28034if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28035  $as_echo_n "(cached) " >&6
28036else
28037  gcc_cv_as_nios2_gotoff_relocation=no
28038  if test x$gcc_cv_as != x; then
28039    $as_echo '	.extern foo
28040	.data
28041	.long %gotoff(foo)' > conftest.s
28042    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28043  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28044  (eval $ac_try) 2>&5
28045  ac_status=$?
28046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28047  test $ac_status = 0; }; }
28048    then
28049	gcc_cv_as_nios2_gotoff_relocation=yes
28050    else
28051      echo "configure: failed program was" >&5
28052      cat conftest.s >&5
28053    fi
28054    rm -f conftest.o conftest.s
28055  fi
28056fi
28057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28058$as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28059if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28060
28061$as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28062
28063fi
28064
28065    ;;
28066    riscv*-*-*)
28067    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28068$as_echo_n "checking assembler for .attribute support... " >&6; }
28069if ${gcc_cv_as_riscv_attribute+:} false; then :
28070  $as_echo_n "(cached) " >&6
28071else
28072  gcc_cv_as_riscv_attribute=no
28073    if test $in_tree_gas = yes; then
28074    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28075  then gcc_cv_as_riscv_attribute=yes
28076fi
28077  elif test x$gcc_cv_as != x; then
28078    $as_echo '.attribute stack_align,4' > conftest.s
28079    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28080  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28081  (eval $ac_try) 2>&5
28082  ac_status=$?
28083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28084  test $ac_status = 0; }; }
28085    then
28086	gcc_cv_as_riscv_attribute=yes
28087    else
28088      echo "configure: failed program was" >&5
28089      cat conftest.s >&5
28090    fi
28091    rm -f conftest.o conftest.s
28092  fi
28093fi
28094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28095$as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28096if test $gcc_cv_as_riscv_attribute = yes; then
28097
28098$as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28099
28100fi
28101
28102    ;;
28103    s390*-*-*)
28104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28105$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28106if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28107  $as_echo_n "(cached) " >&6
28108else
28109  gcc_cv_as_s390_gnu_attribute=no
28110    if test $in_tree_gas = yes; then
28111    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28112  then gcc_cv_as_s390_gnu_attribute=yes
28113fi
28114  elif test x$gcc_cv_as != x; then
28115    $as_echo '.gnu_attribute 8,1' > conftest.s
28116    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28117  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28118  (eval $ac_try) 2>&5
28119  ac_status=$?
28120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28121  test $ac_status = 0; }; }
28122    then
28123	gcc_cv_as_s390_gnu_attribute=yes
28124    else
28125      echo "configure: failed program was" >&5
28126      cat conftest.s >&5
28127    fi
28128    rm -f conftest.o conftest.s
28129  fi
28130fi
28131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28132$as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28133if test $gcc_cv_as_s390_gnu_attribute = yes; then
28134
28135$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28136
28137fi
28138
28139    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28140$as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28141if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28142  $as_echo_n "(cached) " >&6
28143else
28144  gcc_cv_as_s390_machine_machinemode=no
28145    if test $in_tree_gas = yes; then
28146    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28147  then gcc_cv_as_s390_machine_machinemode=yes
28148fi
28149  elif test x$gcc_cv_as != x; then
28150    $as_echo '	.machinemode push
28151	.machinemode pop
28152	.machine push
28153	.machine pop' > conftest.s
28154    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28155  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28156  (eval $ac_try) 2>&5
28157  ac_status=$?
28158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28159  test $ac_status = 0; }; }
28160    then
28161	gcc_cv_as_s390_machine_machinemode=yes
28162    else
28163      echo "configure: failed program was" >&5
28164      cat conftest.s >&5
28165    fi
28166    rm -f conftest.o conftest.s
28167  fi
28168fi
28169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28170$as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28171if test $gcc_cv_as_s390_machine_machinemode = yes; then
28172
28173$as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28174
28175fi
28176
28177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28178$as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28179if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28180  $as_echo_n "(cached) " >&6
28181else
28182  gcc_cv_as_s390_architecture_modifiers=no
28183    if test $in_tree_gas = yes; then
28184    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28185  then gcc_cv_as_s390_architecture_modifiers=yes
28186fi
28187  elif test x$gcc_cv_as != x; then
28188    $as_echo '	.machine z13+vx ' > conftest.s
28189    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28190  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28191  (eval $ac_try) 2>&5
28192  ac_status=$?
28193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28194  test $ac_status = 0; }; }
28195    then
28196	gcc_cv_as_s390_architecture_modifiers=yes
28197    else
28198      echo "configure: failed program was" >&5
28199      cat conftest.s >&5
28200    fi
28201    rm -f conftest.o conftest.s
28202  fi
28203fi
28204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28205$as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28206if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28207
28208$as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28209
28210fi
28211
28212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28213$as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28214if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28215  $as_echo_n "(cached) " >&6
28216else
28217  gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28218    if test $in_tree_gas = yes; then
28219    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28220  then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28221fi
28222  elif test x$gcc_cv_as != x; then
28223    $as_echo '	vl %v24,0(%r15),3 ' > conftest.s
28224    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28225  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28226  (eval $ac_try) 2>&5
28227  ac_status=$?
28228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28229  test $ac_status = 0; }; }
28230    then
28231	gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28232    else
28233      echo "configure: failed program was" >&5
28234      cat conftest.s >&5
28235    fi
28236    rm -f conftest.o conftest.s
28237  fi
28238fi
28239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28240$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28241if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28242
28243$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28244
28245fi
28246
28247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28248$as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28249if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
28250  $as_echo_n "(cached) " >&6
28251else
28252  gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
28253  if test x$gcc_cv_as != x; then
28254    $as_echo '	vl %v24,0(%r15),3 ' > conftest.s
28255    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28256  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28257  (eval $ac_try) 2>&5
28258  ac_status=$?
28259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28260  test $ac_status = 0; }; }
28261    then
28262	gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
28263    else
28264      echo "configure: failed program was" >&5
28265      cat conftest.s >&5
28266    fi
28267    rm -f conftest.o conftest.s
28268  fi
28269fi
28270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28271$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28272if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28273
28274$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28275
28276fi
28277
28278
28279    ;;
28280esac
28281
28282# Mips and HP-UX need the GNU assembler.
28283# Linux on IA64 might be able to use the Intel assembler.
28284
28285case "$target" in
28286  mips*-*-* | *-*-hpux* )
28287    if test x$gas_flag = xyes \
28288       || test x"$host" != x"$build" \
28289       || test ! -x "$gcc_cv_as" \
28290       || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28291      :
28292    else
28293      echo "*** This configuration requires the GNU assembler" >&2
28294      exit 1
28295    fi
28296    ;;
28297esac
28298
28299# ??? Not all targets support dwarf2 debug_line, even within a version
28300# of gas.  Moreover, we need to emit a valid instruction to trigger any
28301# info to the output file.  So, as supported targets are added to gas 2.11,
28302# add some instruction here to (also) show we expect this might work.
28303# ??? Once 2.11 is released, probably need to add first known working
28304# version to the per-target configury.
28305case "$cpu_type" in
28306  aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28307  | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28308  | tilegx | tilepro | visium | xstormy16 | xtensa)
28309    insn="nop"
28310    ;;
28311  ia64 | s390)
28312    insn="nop 0"
28313    ;;
28314  mmix)
28315    insn="swym 0"
28316    ;;
28317esac
28318if test x"$insn" != x; then
28319 conftest_s="\
28320	.file 1 \"conftest.s\"
28321	.loc 1 3 0
28322	$insn"
28323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28324$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28325if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28326  $as_echo_n "(cached) " >&6
28327else
28328  gcc_cv_as_dwarf2_debug_line=no
28329    if test $in_tree_gas = yes; then
28330    if test $in_tree_gas_is_elf = yes \
28331  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28332  then gcc_cv_as_dwarf2_debug_line=yes
28333fi
28334  elif test x$gcc_cv_as != x; then
28335    $as_echo "$conftest_s" > conftest.s
28336    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28337  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28338  (eval $ac_try) 2>&5
28339  ac_status=$?
28340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28341  test $ac_status = 0; }; }
28342    then
28343	if test x$gcc_cv_objdump != x \
28344   && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28345      | grep debug_line > /dev/null 2>&1; then
28346     gcc_cv_as_dwarf2_debug_line=yes
28347   elif test x$gcc_cv_otool != x \
28348   && $gcc_cv_otool -l conftest.o 2> /dev/null \
28349      | grep debug_line > /dev/null 2>&1; then
28350     gcc_cv_as_dwarf2_debug_line=yes
28351   fi
28352    else
28353      echo "configure: failed program was" >&5
28354      cat conftest.s >&5
28355    fi
28356    rm -f conftest.o conftest.s
28357  fi
28358fi
28359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28360$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28361
28362
28363
28364# The .debug_line file table must be in the exact order that
28365# we specified the files, since these indices are also used
28366# by DW_AT_decl_file.  Approximate this test by testing if
28367# the assembler bitches if the same index is assigned twice.
28368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28369$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28370if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28371  $as_echo_n "(cached) " >&6
28372else
28373  gcc_cv_as_dwarf2_file_buggy=no
28374  if test x$gcc_cv_as != x; then
28375    $as_echo '	.file 1 "foo.s"
28376	.file 1 "bar.s"' > conftest.s
28377    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28378  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28379  (eval $ac_try) 2>&5
28380  ac_status=$?
28381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28382  test $ac_status = 0; }; }
28383    then
28384	gcc_cv_as_dwarf2_file_buggy=yes
28385    else
28386      echo "configure: failed program was" >&5
28387      cat conftest.s >&5
28388    fi
28389    rm -f conftest.o conftest.s
28390  fi
28391fi
28392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28393$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28394
28395
28396
28397 if test $gcc_cv_as_dwarf2_debug_line = yes \
28398 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28399
28400$as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28401
28402
28403    if test $gcc_cv_as_leb128 = yes; then
28404	conftest_s="\
28405	.file 1 \"conftest.s\"
28406	.loc 1 3 0 view .LVU1
28407	$insn
28408	.data
28409	.uleb128 .LVU1
28410	.uleb128 .LVU1
28411"
28412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28413$as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28414if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28415  $as_echo_n "(cached) " >&6
28416else
28417  gcc_cv_as_dwarf2_debug_view=no
28418    if test $in_tree_gas = yes; then
28419    if test $in_tree_gas_is_elf = yes \
28420  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28421  then gcc_cv_as_dwarf2_debug_view=yes
28422fi
28423  elif test x$gcc_cv_as != x; then
28424    $as_echo "$conftest_s" > conftest.s
28425    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28426  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28427  (eval $ac_try) 2>&5
28428  ac_status=$?
28429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28430  test $ac_status = 0; }; }
28431    then
28432	gcc_cv_as_dwarf2_debug_view=yes
28433    else
28434      echo "configure: failed program was" >&5
28435      cat conftest.s >&5
28436    fi
28437    rm -f conftest.o conftest.s
28438  fi
28439fi
28440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28441$as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28442if test $gcc_cv_as_dwarf2_debug_view = yes; then
28443
28444$as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28445
28446fi
28447
28448    fi
28449 fi
28450
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28452$as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28453if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28454  $as_echo_n "(cached) " >&6
28455else
28456  gcc_cv_as_gdwarf2_flag=no
28457    if test $in_tree_gas = yes; then
28458    if test $in_tree_gas_is_elf = yes \
28459  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28460  then gcc_cv_as_gdwarf2_flag=yes
28461fi
28462  elif test x$gcc_cv_as != x; then
28463    $as_echo "$insn" > conftest.s
28464    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28465  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28466  (eval $ac_try) 2>&5
28467  ac_status=$?
28468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28469  test $ac_status = 0; }; }
28470    then
28471	gcc_cv_as_gdwarf2_flag=yes
28472    else
28473      echo "configure: failed program was" >&5
28474      cat conftest.s >&5
28475    fi
28476    rm -f conftest.o conftest.s
28477  fi
28478fi
28479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28480$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28481if test $gcc_cv_as_gdwarf2_flag = yes; then
28482
28483$as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28484
28485fi
28486
28487
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28489$as_echo_n "checking assembler for --gstabs option... " >&6; }
28490if ${gcc_cv_as_gstabs_flag+:} false; then :
28491  $as_echo_n "(cached) " >&6
28492else
28493  gcc_cv_as_gstabs_flag=no
28494    if test $in_tree_gas = yes; then
28495    if test $in_tree_gas_is_elf = yes \
28496  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28497  then gcc_cv_as_gstabs_flag=yes
28498fi
28499  elif test x$gcc_cv_as != x; then
28500    $as_echo "$insn" > conftest.s
28501    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28502  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28503  (eval $ac_try) 2>&5
28504  ac_status=$?
28505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28506  test $ac_status = 0; }; }
28507    then
28508	gcc_cv_as_gstabs_flag=yes
28509    else
28510      echo "configure: failed program was" >&5
28511      cat conftest.s >&5
28512    fi
28513    rm -f conftest.o conftest.s
28514  fi
28515fi
28516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28517$as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28518if test $gcc_cv_as_gstabs_flag = yes; then
28519
28520$as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28521
28522fi
28523
28524
28525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28526$as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28527if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28528  $as_echo_n "(cached) " >&6
28529else
28530  gcc_cv_as_debug_prefix_map_flag=no
28531    if test $in_tree_gas = yes; then
28532    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28533  then gcc_cv_as_debug_prefix_map_flag=yes
28534fi
28535  elif test x$gcc_cv_as != x; then
28536    $as_echo "$insn" > conftest.s
28537    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28538  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28539  (eval $ac_try) 2>&5
28540  ac_status=$?
28541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28542  test $ac_status = 0; }; }
28543    then
28544	gcc_cv_as_debug_prefix_map_flag=yes
28545    else
28546      echo "configure: failed program was" >&5
28547      cat conftest.s >&5
28548    fi
28549    rm -f conftest.o conftest.s
28550  fi
28551fi
28552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28553$as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28554if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28555
28556$as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28557
28558fi
28559
28560fi
28561
28562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28563$as_echo_n "checking assembler for compressed debug sections... " >&6; }
28564if ${gcc_cv_as_compress_debug+:} false; then :
28565  $as_echo_n "(cached) " >&6
28566else
28567  gcc_cv_as_compress_debug=no
28568  if test x$gcc_cv_as != x; then
28569    $as_echo '' > conftest.s
28570    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28571  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28572  (eval $ac_try) 2>&5
28573  ac_status=$?
28574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28575  test $ac_status = 0; }; }
28576    then
28577	# gas compiled without zlib cannot compress debug sections and warns
28578   # about it, but still exits successfully.  So check for this, too.
28579   if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28580   then
28581     gcc_cv_as_compress_debug=0
28582   # Since binutils 2.26, gas supports --compress-debug-sections=type,
28583   # defaulting to the ELF gABI format.
28584   elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28585   then
28586     gcc_cv_as_compress_debug=2
28587     gcc_cv_as_compress_debug_option="--compress-debug-sections"
28588     gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28589   # Before binutils 2.26, gas only supported --compress-debug-options and
28590   # emitted the traditional GNU format.
28591   elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28592   then
28593     gcc_cv_as_compress_debug=1
28594     gcc_cv_as_compress_debug_option="--compress-debug-sections"
28595     gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28596   else
28597     gcc_cv_as_compress_debug=0
28598   fi
28599    else
28600      echo "configure: failed program was" >&5
28601      cat conftest.s >&5
28602    fi
28603    rm -f conftest.o conftest.s
28604  fi
28605fi
28606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28607$as_echo "$gcc_cv_as_compress_debug" >&6; }
28608
28609
28610
28611cat >>confdefs.h <<_ACEOF
28612#define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28613_ACEOF
28614
28615
28616cat >>confdefs.h <<_ACEOF
28617#define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28618_ACEOF
28619
28620
28621cat >>confdefs.h <<_ACEOF
28622#define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28623_ACEOF
28624
28625
28626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28627$as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28628if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28629  $as_echo_n "(cached) " >&6
28630else
28631  gcc_cv_as_lcomm_with_alignment=no
28632  if test x$gcc_cv_as != x; then
28633    $as_echo '.lcomm bar,4,16' > conftest.s
28634    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28635  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28636  (eval $ac_try) 2>&5
28637  ac_status=$?
28638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28639  test $ac_status = 0; }; }
28640    then
28641	gcc_cv_as_lcomm_with_alignment=yes
28642    else
28643      echo "configure: failed program was" >&5
28644      cat conftest.s >&5
28645    fi
28646    rm -f conftest.o conftest.s
28647  fi
28648fi
28649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28650$as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28651if test $gcc_cv_as_lcomm_with_alignment = yes; then
28652
28653$as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28654
28655fi
28656
28657
28658if test x$with_sysroot = x && test x$host = x$target \
28659   && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28660   && test "$prefix" != "NONE"; then
28661
28662cat >>confdefs.h <<_ACEOF
28663#define PREFIX_INCLUDE_DIR "$prefix/include"
28664_ACEOF
28665
28666fi
28667
28668# Determine the version of glibc, if any, used on the target.
28669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28670$as_echo_n "checking for target glibc version... " >&6; }
28671
28672# Check whether --with-glibc-version was given.
28673if test "${with_glibc_version+set}" = set; then :
28674  withval=$with_glibc_version;
28675if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28676  glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28677  glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28678else
28679  as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28680fi
28681else
28682
28683glibc_version_major=0
28684glibc_version_minor=0
28685if test -f $target_header_dir/features.h \
28686  && glibc_version_major_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC__[ 	]+[0-9]' $target_header_dir/features.h` \
28687  && glibc_version_minor_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC_MINOR__[ 	]+[0-9]' $target_header_dir/features.h`; then
28688  glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ 	]*//'`
28689  glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ 	]*//'`
28690fi
28691fi
28692
28693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28694$as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28695
28696cat >>confdefs.h <<_ACEOF
28697#define TARGET_GLIBC_MAJOR $glibc_version_major
28698_ACEOF
28699
28700
28701cat >>confdefs.h <<_ACEOF
28702#define TARGET_GLIBC_MINOR $glibc_version_minor
28703_ACEOF
28704
28705
28706# Check whether --enable-gnu-unique-object was given.
28707if test "${enable_gnu_unique_object+set}" = set; then :
28708  enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28709    yes | no) ;;
28710    *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28711Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28712  esac
28713else
28714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28715$as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28716if ${gcc_cv_as_gnu_unique_object+:} false; then :
28717  $as_echo_n "(cached) " >&6
28718else
28719  gcc_cv_as_gnu_unique_object=no
28720    if test $in_tree_gas = yes; then
28721    if test $in_tree_gas_is_elf = yes \
28722  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28723  then gcc_cv_as_gnu_unique_object=yes
28724fi
28725  elif test x$gcc_cv_as != x; then
28726    $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28727    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28728  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28729  (eval $ac_try) 2>&5
28730  ac_status=$?
28731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28732  test $ac_status = 0; }; }
28733    then
28734	gcc_cv_as_gnu_unique_object=yes
28735    else
28736      echo "configure: failed program was" >&5
28737      cat conftest.s >&5
28738    fi
28739    rm -f conftest.o conftest.s
28740  fi
28741fi
28742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28743$as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28744if test $gcc_cv_as_gnu_unique_object = yes; then
28745  # We need to unquote above to to use the definition from config.gcc.
28746# Also check for ld.so support, i.e. glibc 2.11 or higher.
28747
28748if test $glibc_version_major -gt 2 \
28749  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28750  enable_gnu_unique_object=yes
28751fi
28752
28753fi
28754
28755fi
28756
28757if test x$enable_gnu_unique_object = xyes; then
28758
28759$as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28760
28761fi
28762
28763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28764$as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28765if ${gcc_cv_as_line_zero+:} false; then :
28766  $as_echo_n "(cached) " >&6
28767else
28768  gcc_cv_as_line_zero=no
28769  if test $in_tree_gas = yes; then
28770    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28771  then gcc_cv_as_line_zero=yes
28772fi
28773  elif test "x$gcc_cv_as" != x; then
28774    { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28775    if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28776  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28777  (eval $ac_try) 2>&5
28778  ac_status=$?
28779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28780  test $ac_status = 0; }; } &&
28781       test "x`cat conftest.out`" = x
28782    then
28783      gcc_cv_as_line_zero=yes
28784    else
28785      echo "configure: failed program was" >&5
28786      cat conftest.s >&5
28787      echo "configure: error output was" >&5
28788      cat conftest.out >&5
28789    fi
28790    rm -f conftest.o conftest.s conftest.out
28791  fi
28792fi
28793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28794$as_echo "$gcc_cv_as_line_zero" >&6; }
28795if test "x$gcc_cv_as_line_zero" = xyes; then
28796
28797$as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28798
28799fi
28800
28801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28802$as_echo_n "checking support for thin archives... " >&6; }
28803thin_archive_support=no
28804echo 'int main (void) { return 0; }' > conftest.c
28805if ($AR --version | sed 1q | grep "GNU ar" \
28806    && $CC $CFLAGS -c conftest.c \
28807    && $AR rcT conftest.a conftest.o \
28808    && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28809  thin_archive_support=yes
28810fi
28811rm -f conftest.c conftest.o conftest.a conftest
28812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28813$as_echo "$thin_archive_support" >&6; }
28814
28815
28816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28817$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28818gcc_cv_ld_eh_frame_hdr=no
28819if test $in_tree_ld = yes ; then
28820  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 \
28821     && test $in_tree_ld_is_elf = yes; then
28822    gcc_cv_ld_eh_frame_hdr=yes
28823  fi
28824elif test x$gcc_cv_ld != x; then
28825  if echo "$ld_ver" | grep GNU > /dev/null; then
28826    # Check if linker supports --eh-frame-hdr option
28827    if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28828      gcc_cv_ld_eh_frame_hdr=yes
28829    fi
28830  else
28831    case "$target" in
28832      *-*-solaris2*)
28833        # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28834        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28835          gcc_cv_ld_eh_frame_hdr=yes
28836        fi
28837        ;;
28838    esac
28839  fi
28840fi
28841
28842if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28843
28844$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28845
28846fi
28847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28848$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28849
28850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28851$as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28852gcc_cv_ld_eh_frame_ciev3=no
28853if test $in_tree_ld = yes ; then
28854  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 \
28855     && test $in_tree_ld_is_elf = yes; then
28856    gcc_cv_ld_eh_frame_ciev3=yes
28857  fi
28858elif test x$gcc_cv_ld != x; then
28859  if echo "$ld_ver" | grep GNU > /dev/null; then
28860    gcc_cv_ld_eh_frame_ciev3=yes
28861    if test 0"$ld_date" -lt 20040513; then
28862      if test -n "$ld_date"; then
28863	# If there was date string, but was earlier than 2004-05-13, fail
28864	gcc_cv_ld_eh_frame_ciev3=no
28865      elif test "$ld_vers_major" -lt 2; then
28866	gcc_cv_ld_eh_frame_ciev3=no
28867      elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28868	gcc_cv_ld_eh_frame_ciev3=no
28869      fi
28870    fi
28871  else
28872    case "$target" in
28873      *-*-solaris2*)
28874        # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28875        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28876          gcc_cv_ld_eh_frame_ciev3=yes
28877        fi
28878        ;;
28879    esac
28880  fi
28881fi
28882
28883cat >>confdefs.h <<_ACEOF
28884#define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28885_ACEOF
28886
28887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28888$as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28889
28890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28891$as_echo_n "checking linker position independent executable support... " >&6; }
28892gcc_cv_ld_pie=no
28893if test $in_tree_ld = yes ; then
28894  case "$target" in
28895    # Full PIE support on Solaris was only introduced in gld 2.26.
28896    *-*-solaris2*)  gcc_gld_pie_min_version=26 ;;
28897    *) 		    gcc_gld_pie_min_version=15 ;;
28898  esac
28899  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 \
28900     && test $in_tree_ld_is_elf = yes; then
28901    gcc_cv_ld_pie=yes
28902  fi
28903elif test x$gcc_cv_ld != x; then
28904  # Check if linker supports -pie option
28905  if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28906    gcc_cv_ld_pie=yes
28907    case "$target" in
28908      *-*-solaris2*)
28909	if echo "$ld_ver" | grep GNU > /dev/null \
28910	  && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28911	  gcc_cv_ld_pie=no
28912	fi
28913	;;
28914    esac
28915  else
28916    case "$target" in
28917      *-*-solaris2.1[1-9]*)
28918	# Solaris 11.3 added PIE support.
28919	if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28920	  gcc_cv_ld_pie=yes
28921	fi
28922	;;
28923    esac
28924  fi
28925fi
28926if test x"$gcc_cv_ld_pie" = xyes; then
28927
28928$as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28929
28930fi
28931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28932$as_echo "$gcc_cv_ld_pie" >&6; }
28933
28934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28935$as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28936gcc_cv_ld_pie_copyreloc=no
28937if test $gcc_cv_ld_pie = yes ; then
28938  if test $in_tree_ld = yes ; then
28939    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
28940      gcc_cv_ld_pie_copyreloc=yes
28941    fi
28942  elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28943    # Check if linker supports -pie option with copy reloc
28944    case "$target" in
28945    i?86-*-linux* | x86_64-*-linux*)
28946      cat > conftest1.s <<EOF
28947	.globl	a_glob
28948	.data
28949	.type	a_glob, @object
28950	.size	a_glob, 4
28951a_glob:
28952	.long	2
28953EOF
28954      cat > conftest2.s <<EOF
28955	.text
28956	.globl	main
28957	.type	main, @function
28958main:
28959	movl	%eax, a_glob(%rip)
28960	.size	main, .-main
28961	.globl	ptr
28962	.section	.data.rel,"aw",@progbits
28963	.type	ptr, @object
28964ptr:
28965	.quad	a_glob
28966EOF
28967      if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28968         && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28969         && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28970         && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28971        gcc_cv_ld_pie_copyreloc=yes
28972      fi
28973      rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28974      ;;
28975    esac
28976  fi
28977fi
28978
28979cat >>confdefs.h <<_ACEOF
28980#define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28981_ACEOF
28982
28983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28984$as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28985
28986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28987$as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28988gcc_cv_ld_eh_gc_sections=no
28989if test $in_tree_ld = yes ; then
28990  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 \
28991     && test $in_tree_ld_is_elf = yes; then
28992    gcc_cv_ld_eh_gc_sections=yes
28993  fi
28994elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28995  cat > conftest.s <<EOF
28996	.section	.text
28997.globl _start
28998        .type _start, @function
28999_start:
29000	.long foo
29001	.size _start, .-_start
29002	.section	.text.foo,"ax",@progbits
29003	.type foo, @function
29004foo:
29005	.long 0
29006	.size foo, .-foo
29007	.section	.gcc_except_table.foo,"a",@progbits
29008.L0:
29009	.long 0
29010	.section	.eh_frame,"a",@progbits
29011	.long .L0
29012EOF
29013  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29014    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29015	 | grep "gc-sections option ignored" > /dev/null; then
29016      gcc_cv_ld_eh_gc_sections=no
29017    elif $gcc_cv_objdump -h conftest 2> /dev/null \
29018         | grep gcc_except_table > /dev/null; then
29019      gcc_cv_ld_eh_gc_sections=yes
29020      # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
29021      if test x$gcc_cv_as_comdat_group != xyes; then
29022	gcc_cv_ld_eh_gc_sections=no
29023	cat > conftest.s <<EOF
29024	.section	.text
29025.globl _start
29026        .type _start, @function
29027_start:
29028	.long foo
29029	.size _start, .-_start
29030	.section	.gnu.linkonce.t.foo,"ax",@progbits
29031	.type foo, @function
29032foo:
29033	.long 0
29034	.size foo, .-foo
29035	.section	.gcc_except_table.foo,"a",@progbits
29036.L0:
29037	.long 0
29038	.section	.eh_frame,"a",@progbits
29039	.long .L0
29040EOF
29041	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29042	  if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29043	       | grep "gc-sections option ignored" > /dev/null; then
29044	    gcc_cv_ld_eh_gc_sections=no
29045	  elif $gcc_cv_objdump -h conftest 2> /dev/null \
29046	       | grep gcc_except_table > /dev/null; then
29047	    gcc_cv_ld_eh_gc_sections=yes
29048	  fi
29049	fi
29050      fi
29051    fi
29052  fi
29053  rm -f conftest.s conftest.o conftest
29054fi
29055case "$target" in
29056  hppa*-*-linux*)
29057    # ??? This apparently exposes a binutils bug with PC-relative relocations.
29058    gcc_cv_ld_eh_gc_sections=no
29059    ;;
29060esac
29061if test x$gcc_cv_ld_eh_gc_sections = xyes; then
29062
29063$as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
29064
29065fi
29066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
29067$as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
29068
29069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
29070$as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
29071gcc_cv_ld_eh_gc_sections_bug=no
29072if test $in_tree_ld = yes ; then
29073  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 \
29074     && test $in_tree_ld_is_elf = yes; then
29075    gcc_cv_ld_eh_gc_sections_bug=yes
29076  fi
29077elif 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
29078  gcc_cv_ld_eh_gc_sections_bug=yes
29079  cat > conftest.s <<EOF
29080	.section	.text
29081.globl _start
29082	.type _start, @function
29083_start:
29084	.long foo
29085	.size _start, .-_start
29086	.section	.text.startup.foo,"ax",@progbits
29087	.type foo, @function
29088foo:
29089	.long 0
29090	.size foo, .-foo
29091	.section	.gcc_except_table.foo,"a",@progbits
29092.L0:
29093	.long 0
29094	.section	.eh_frame,"a",@progbits
29095	.long .L0
29096EOF
29097  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29098    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29099	 | grep "gc-sections option ignored" > /dev/null; then
29100      :
29101    elif $gcc_cv_objdump -h conftest 2> /dev/null \
29102	 | grep gcc_except_table > /dev/null; then
29103      gcc_cv_ld_eh_gc_sections_bug=no
29104    fi
29105  fi
29106  rm -f conftest.s conftest.o conftest
29107fi
29108if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
29109
29110$as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
29111
29112fi
29113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
29114$as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
29115
29116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
29117$as_echo_n "checking linker for compressed debug sections... " >&6; }
29118# gold/gld support compressed debug sections since binutils 2.19/2.21
29119# In binutils 2.26, gld gained support for the ELF gABI format.
29120if test $in_tree_ld = yes ; then
29121  gcc_cv_ld_compress_debug=0
29122  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 \
29123     && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29124    gcc_cv_ld_compress_debug=2
29125    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29126  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 \
29127     && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
29128    gcc_cv_ld_compress_debug=3
29129    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29130  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 \
29131     && test $in_tree_ld_is_elf = yes; then
29132    gcc_cv_ld_compress_debug=1
29133  fi
29134elif echo "$ld_ver" | grep GNU > /dev/null; then
29135  if test "$ld_vers_major" -lt 2 \
29136     || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29137    gcc_cv_ld_compress_debug=0
29138  elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29139    gcc_cv_ld_compress_debug=1
29140  else
29141    gcc_cv_ld_compress_debug=3
29142    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29143  fi
29144  if test $ld_is_gold = yes; then
29145    gcc_cv_ld_compress_debug=2
29146    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29147  fi
29148else
29149  case "${target}" in
29150    *-*-solaris2*)
29151      # Introduced in Solaris 11.2.
29152      if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
29153        gcc_cv_ld_compress_debug=3
29154        gcc_cv_ld_compress_debug_option="-z compress-sections"
29155      else
29156        gcc_cv_ld_compress_debug=0
29157      fi
29158      ;;
29159    *)
29160      # Assume linkers other than GNU ld don't support compessed debug
29161      # sections.
29162      gcc_cv_ld_compress_debug=0
29163      ;;
29164  esac
29165fi
29166
29167cat >>confdefs.h <<_ACEOF
29168#define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29169_ACEOF
29170
29171
29172cat >>confdefs.h <<_ACEOF
29173#define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29174_ACEOF
29175
29176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29177$as_echo "$gcc_cv_ld_compress_debug" >&6; }
29178
29179if test x"$ld64_flag" = x"yes"; then
29180
29181  # Set defaults for possibly untestable items.
29182  gcc_cv_ld64_export_dynamic=0
29183
29184  if test "$build" = "$host"; then
29185    darwin_try_test=1
29186  else
29187    darwin_try_test=0
29188  fi
29189
29190  # On Darwin, because of FAT library support, it is often possible to execute
29191  # exes from compatible archs even when the host differs from the build system.
29192  case "$build","$host" in
29193    x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
29194	darwin_try_test=1;;
29195    *) ;;
29196  esac
29197
29198  # If the configurer specified a minimum ld64 version to be supported, then use
29199  # that to determine feature support.
29200  if test x"${gcc_cv_ld64_version}" != x; then
29201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29202$as_echo_n "checking ld64 specified version... " >&6; }
29203    gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29205$as_echo "$gcc_cv_ld64_major" >&6; }
29206   if test "$gcc_cv_ld64_major" -ge 236; then
29207      gcc_cv_ld64_export_dynamic=1
29208    fi
29209  elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29210    # If the version was not specified, try to find it.
29211    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29212$as_echo_n "checking linker version... " >&6; }
29213    if test x"${gcc_cv_ld64_version}" = x; then
29214      gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29215    fi
29216    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29217$as_echo "$gcc_cv_ld64_version" >&6; }
29218
29219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29220$as_echo_n "checking linker for -export_dynamic support... " >&6; }
29221    gcc_cv_ld64_export_dynamic=1
29222    if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
29223      gcc_cv_ld64_export_dynamic=0
29224    fi
29225    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29226$as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29227  fi
29228
29229  if test x"${gcc_cv_ld64_version}" != x; then
29230
29231cat >>confdefs.h <<_ACEOF
29232#define LD64_VERSION "${gcc_cv_ld64_version}"
29233_ACEOF
29234
29235  fi
29236
29237
29238cat >>confdefs.h <<_ACEOF
29239#define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29240_ACEOF
29241
29242fi
29243
29244# --------
29245# UNSORTED
29246# --------
29247
29248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29249$as_echo_n "checking linker --as-needed support... " >&6; }
29250if ${gcc_cv_ld_as_needed+:} false; then :
29251  $as_echo_n "(cached) " >&6
29252else
29253  gcc_cv_ld_as_needed=no
29254gcc_cv_ld_as_needed_option='--as-needed'
29255gcc_cv_ld_no_as_needed_option='--no-as-needed'
29256if test $in_tree_ld = yes ; then
29257  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 \
29258     && test $in_tree_ld_is_elf = yes; then
29259    gcc_cv_ld_as_needed=yes
29260    if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29261      gcc_cv_ld_as_needed_option='--push-state --as-needed'
29262      gcc_cv_ld_no_as_needed_option='--pop-state'
29263    fi
29264  fi
29265elif test x$gcc_cv_ld != x; then
29266  # Check if linker supports --as-needed and --no-as-needed options
29267  if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
29268    gcc_cv_ld_as_needed=yes
29269    if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
29270       && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
29271       && echo "$ld_ver" | grep GNU > /dev/null \
29272       && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29273      # Use these options only when both ld.bfd and ld.gold support
29274      # --push-state/--pop-state, which unfortunately wasn't added
29275      # at the same time.
29276      gcc_cv_ld_as_needed_option='--push-state --as-needed'
29277      gcc_cv_ld_no_as_needed_option='--pop-state'
29278    fi
29279  fi
29280  case "$target:$gnu_ld" in
29281    *-*-solaris2*:no)
29282      # Solaris 2 ld always supports -z ignore/-z record.  Prefer the native
29283      # forms.
29284      gcc_cv_ld_as_needed=yes
29285      gcc_cv_ld_as_needed_option="-z ignore"
29286      gcc_cv_ld_no_as_needed_option="-z record"
29287      ;;
29288  esac
29289fi
29290# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29291# dl_iterate_phdr, i.e. since Solaris 11.
29292case "$target" in
29293  *-*-solaris2.1[1-9]*)
29294    case "$target" in
29295    i?86-*-* | x86_64-*-*)
29296      if echo "$ld_ver" | grep GNU > /dev/null; then
29297        # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29298        gcc_cv_ld_as_needed=no
29299      fi
29300      ;;
29301    esac
29302    ;;
29303  *-*-solaris2*)
29304    gcc_cv_ld_as_needed=no
29305    ;;
29306esac
29307
29308fi
29309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29310$as_echo "$gcc_cv_ld_as_needed" >&6; }
29311if test x"$gcc_cv_ld_as_needed" = xyes; then
29312
29313$as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29314
29315
29316cat >>confdefs.h <<_ACEOF
29317#define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29318_ACEOF
29319
29320
29321cat >>confdefs.h <<_ACEOF
29322#define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29323_ACEOF
29324
29325fi
29326
29327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29328$as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29329saved_LDFLAGS="$LDFLAGS"
29330for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
29331  LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29333/* end confdefs.h.  */
29334int main(void) {return 0;}
29335_ACEOF
29336if ac_fn_cxx_try_link "$LINENO"; then :
29337  gcc_cv_ld_clearcap=yes; break
29338else
29339  gcc_cv_ld_clearcap=no
29340fi
29341rm -f core conftest.err conftest.$ac_objext \
29342    conftest$ac_exeext conftest.$ac_ext
29343done
29344LDFLAGS="$saved_LDFLAGS"
29345if test "x$gcc_cv_ld_clearcap" = xyes; then
29346
29347$as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29348
29349  ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29350
29351fi
29352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29353$as_echo "$gcc_cv_ld_clearcap" >&6; }
29354
29355case "$target" in
29356  powerpc*-*-*)
29357    case "$target" in
29358      *le-*-linux*)
29359	emul_name="-melf32lppc"
29360	;;
29361      *)
29362	emul_name="-melf32ppc"
29363	;;
29364    esac
29365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29366$as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29367if ${gcc_cv_ld_ppc_attr+:} false; then :
29368  $as_echo_n "(cached) " >&6
29369else
29370  gcc_cv_ld_ppc_attr=no
29371    if test x"$ld_is_gold" = xyes; then
29372      gcc_cv_ld_ppc_attr=yes
29373    elif test $in_tree_ld = yes ; then
29374      if test "$gcc_cv_gld_major_version" -eq 2 \
29375		-a "$gcc_cv_gld_minor_version" -ge 28 \
29376		-o "$gcc_cv_gld_major_version" -gt 2; then
29377        gcc_cv_ld_ppc_attr=yes
29378      fi
29379    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29380      # check that merging the long double .gnu_attribute doesn't warn
29381      cat > conftest1.s <<EOF
29382	.gnu_attribute 4,1
29383EOF
29384      cat > conftest2.s <<EOF
29385	.gnu_attribute 4,9
29386EOF
29387      if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29388         && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29389         && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29390	 && test ! -s conftest.err; then
29391        gcc_cv_ld_ppc_attr=yes
29392      fi
29393      rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29394    fi
29395
29396fi
29397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29398$as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29399    if test x$gcc_cv_ld_ppc_attr = xyes; then
29400
29401$as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29402
29403    fi
29404    ;;
29405esac
29406
29407case "$target:$tm_file" in
29408  powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29409  case "$target" in
29410     *le-*-linux*)
29411     emul_name="-melf64lppc"
29412      ;;
29413     *-*-linux*)
29414     emul_name="-melf64ppc"
29415      ;;
29416     *le-*-freebsd*)
29417     emul_name="-melf64lppc_fbsd"
29418      ;;
29419     *-*-freebsd*)
29420     emul_name="-melf64ppc_fbsd"
29421      ;;
29422  esac
29423    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29424$as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29425if ${gcc_cv_ld_no_dot_syms+:} false; then :
29426  $as_echo_n "(cached) " >&6
29427else
29428  gcc_cv_ld_no_dot_syms=no
29429    if test x"$ld_is_gold" = xyes; then
29430      gcc_cv_ld_no_dot_syms=yes
29431    elif test $in_tree_ld = yes ; then
29432      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
29433        gcc_cv_ld_no_dot_syms=yes
29434      fi
29435    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29436      cat > conftest1.s <<EOF
29437	.text
29438	bl .foo
29439EOF
29440      cat > conftest2.s <<EOF
29441	.section ".opd","aw"
29442	.align 3
29443	.globl foo
29444	.type foo,@function
29445foo:
29446	.quad .LEfoo,.TOC.@tocbase,0
29447	.text
29448.LEfoo:
29449	blr
29450	.size foo,.-.LEfoo
29451EOF
29452      if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29453         && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29454         && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29455        gcc_cv_ld_no_dot_syms=yes
29456      fi
29457      rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29458    fi
29459
29460fi
29461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29462$as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29463    if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29464
29465$as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29466
29467    fi
29468
29469    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29470$as_echo_n "checking linker large toc support... " >&6; }
29471if ${gcc_cv_ld_large_toc+:} false; then :
29472  $as_echo_n "(cached) " >&6
29473else
29474  gcc_cv_ld_large_toc=no
29475    if test x"$ld_is_gold" = xyes; then
29476      gcc_cv_ld_large_toc=yes
29477    elif test $in_tree_ld = yes ; then
29478      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
29479        gcc_cv_ld_large_toc=yes
29480      fi
29481    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29482      cat > conftest.s <<EOF
29483	.section ".tbss","awT",@nobits
29484	.align 3
29485ie0:	.space 8
29486	.global _start
29487	.text
29488_start:
29489	addis 9,13,ie0@got@tprel@ha
29490	ld 9,ie0@got@tprel@l(9)
29491EOF
29492      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29493         && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29494        gcc_cv_ld_large_toc=yes
29495      fi
29496      rm -f conftest conftest.o conftest.s
29497    fi
29498
29499fi
29500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29501$as_echo "$gcc_cv_ld_large_toc" >&6; }
29502    if test x"$gcc_cv_ld_large_toc" = xyes; then
29503
29504$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29505
29506    fi
29507
29508    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29509$as_echo_n "checking linker toc pointer alignment... " >&6; }
29510if ${gcc_cv_ld_toc_align+:} false; then :
29511  $as_echo_n "(cached) " >&6
29512else
29513  if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29514      cat > conftest.s <<EOF
29515	.global _start
29516	.text
29517_start:
29518	addis 9,2,x@got@ha
29519	.section .data.rel.ro,"aw",@progbits
29520	.p2align 16
29521	.space 32768
29522x:	.quad .TOC.
29523EOF
29524      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29525         && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29526        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)) }'`
29527      fi
29528      rm -f conftest conftest.o conftest.s
29529    fi
29530
29531fi
29532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29533$as_echo "$gcc_cv_ld_toc_align" >&6; }
29534    if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29535
29536cat >>confdefs.h <<_ACEOF
29537#define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29538_ACEOF
29539
29540    fi
29541    ;;
29542esac
29543
29544case "$target" in
29545  *-*-aix*)
29546    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29547$as_echo_n "checking linker large toc support... " >&6; }
29548if ${gcc_cv_ld_large_toc+:} false; then :
29549  $as_echo_n "(cached) " >&6
29550else
29551  gcc_cv_ld_large_toc=no
29552    if test x$gcc_cv_as != x ; then
29553      cat > conftest.s <<EOF
29554	.toc
29555LC..1:
29556	.tc a[TC],a[RW]
29557	.extern a[RW]
29558	.csect .text[PR]
29559.largetoctest:
29560	addis 9,LC..1@u(2)
29561	ld 3,LC..1@l(9)
29562EOF
29563      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29564        gcc_cv_ld_large_toc=yes
29565      fi
29566      rm -f conftest conftest.o conftest.s
29567    fi
29568
29569fi
29570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29571$as_echo "$gcc_cv_ld_large_toc" >&6; }
29572    if test x"$gcc_cv_ld_large_toc" = xyes; then
29573
29574$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29575
29576    fi
29577    ;;
29578esac
29579
29580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29581$as_echo_n "checking linker --build-id support... " >&6; }
29582if ${gcc_cv_ld_buildid+:} false; then :
29583  $as_echo_n "(cached) " >&6
29584else
29585  gcc_cv_ld_buildid=no
29586  if test $in_tree_ld = yes ; then
29587    if test "$gcc_cv_gld_major_version" -eq 2 -a \
29588       "$gcc_cv_gld_minor_version" -ge 18 -o \
29589       "$gcc_cv_gld_major_version" -gt 2 \
29590       && test $in_tree_ld_is_elf = yes; then
29591      gcc_cv_ld_buildid=yes
29592    fi
29593  elif test x$gcc_cv_ld != x; then
29594    if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29595      gcc_cv_ld_buildid=yes
29596    fi
29597  fi
29598fi
29599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29600$as_echo "$gcc_cv_ld_buildid" >&6; }
29601if test x"$gcc_cv_ld_buildid" = xyes; then
29602
29603$as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29604
29605fi
29606
29607# Check whether --enable-linker-build-id was given.
29608if test "${enable_linker_build_id+set}" = set; then :
29609  enableval=$enable_linker_build_id;
29610else
29611  enable_linker_build_id=no
29612fi
29613
29614
29615if test x"$enable_linker_build_id" = xyes; then
29616  if test x"$gcc_cv_ld_buildid" = xyes; then
29617
29618$as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29619
29620  else
29621    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29622$as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29623  fi
29624fi
29625
29626# In binutils 2.21, GNU ld gained support for new emulations fully
29627# supporting the Solaris 2 ABI.  Detect their presence in the linker used.
29628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29629$as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29630if ${gcc_cv_ld_sol2_emulation+:} false; then :
29631  $as_echo_n "(cached) " >&6
29632else
29633  gcc_cv_ld_sol2_emulation=no
29634  if test $in_tree_ld = yes ; then
29635    if test "$gcc_cv_gld_major_version" -eq 2 -a \
29636       "$gcc_cv_gld_minor_version" -ge 21 -o \
29637       "$gcc_cv_gld_major_version" -gt 2 \
29638       && test $in_tree_ld_is_elf = yes; then
29639      gcc_cv_ld_sol2_emulation=yes
29640    fi
29641  elif test x$gcc_cv_ld != x; then
29642    if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29643       grep _sol2 > /dev/null; then
29644      gcc_cv_ld_sol2_emulation=yes
29645    fi
29646  fi
29647fi
29648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29649$as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29650if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29651
29652$as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29653
29654fi
29655
29656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29657$as_echo_n "checking linker --sysroot support... " >&6; }
29658if ${gcc_cv_ld_sysroot+:} false; then :
29659  $as_echo_n "(cached) " >&6
29660else
29661  gcc_cv_ld_sysroot=no
29662  if test $in_tree_ld = yes ; then
29663      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
29664        gcc_cv_ld_sysroot=yes
29665      fi
29666  elif test x$gcc_cv_ld != x; then
29667    if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29668      gcc_cv_ld_sysroot=yes
29669    fi
29670  fi
29671fi
29672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29673$as_echo "$gcc_cv_ld_sysroot" >&6; }
29674if test x"$gcc_cv_ld_sysroot" = xyes; then
29675
29676$as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29677
29678fi
29679
29680case $target in
29681*-*-solaris2*)
29682  # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29684$as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29685if ${gcc_cv_solaris_crts+:} false; then :
29686  $as_echo_n "(cached) " >&6
29687else
29688  gcc_cv_solaris_crts=no
29689     if test x$host != x$target; then
29690       if test "x$with_sysroot" = xyes; then
29691         target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29692       else
29693         target_sysroot="${with_sysroot}"
29694       fi
29695     fi
29696     target_libdir="$target_sysroot/usr/lib"
29697     # At the time they were added, gcrt1.o became a symlink for backwards
29698     # compatibility on x86, while crt1.o was added on sparc, so check for that.
29699     case $target in
29700       i?86-*-solaris2* | x86_64-*-solaris2*)
29701         if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29702	 ;;
29703       sparc*-*-solaris2*)
29704         if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29705	 ;;
29706     esac
29707fi
29708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29709$as_echo "$gcc_cv_solaris_crts" >&6; }
29710  ;;
29711esac
29712if test x$gcc_cv_solaris_crts = xyes; then
29713
29714$as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29715
29716fi
29717
29718# Check whether --enable-libssp was given.
29719if test "${enable_libssp+set}" = set; then :
29720  enableval=$enable_libssp; case "${enableval}" in
29721  yes|no)
29722    ;;
29723  *)
29724    as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29725    ;;
29726esac
29727fi
29728
29729
29730# Test for stack protector support in target C library.
29731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29732$as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29733if ${gcc_cv_libc_provides_ssp+:} false; then :
29734  $as_echo_n "(cached) " >&6
29735else
29736  gcc_cv_libc_provides_ssp=no
29737  if test "x$enable_libssp" = "xno"; then
29738    gcc_cv_libc_provides_ssp=yes
29739  elif test "x$enable_libssp" = "xyes"; then
29740    gcc_cv_libc_provides_ssp=no
29741  else
29742    case "$target" in
29743       *-*-musl*)
29744	 # All versions of musl provide stack protector
29745	 gcc_cv_libc_provides_ssp=yes;;
29746       *-*-linux* | *-*-kfreebsd*-gnu)
29747      # glibc 2.4 and later provides __stack_chk_fail and
29748      # either __stack_chk_guard, or TLS access to stack guard canary.
29749
29750if test $glibc_version_major -gt 2 \
29751  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29752  gcc_cv_libc_provides_ssp=yes
29753else
29754
29755      if test -f $target_header_dir/features.h \
29756	 && $EGREP '^[ 	]*#[ 	]*define[ 	]+__GNU_LIBRARY__[ 	]+([1-9][0-9]|[6-9])' \
29757	    $target_header_dir/features.h > /dev/null; then
29758	if $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC__[ 	]+1' \
29759	     $target_header_dir/features.h > /dev/null && \
29760	     test -f $target_header_dir/bits/uClibc_config.h && \
29761	     $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC_HAS_SSP__[ 	]+1' \
29762	     $target_header_dir/bits/uClibc_config.h > /dev/null; then
29763	  gcc_cv_libc_provides_ssp=yes
29764	fi
29765      # all versions of Bionic support stack protector
29766      elif test -f $target_header_dir/sys/cdefs.h \
29767        && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
29768           $target_header_dir/sys/cdefs.h > /dev/null; then
29769         gcc_cv_libc_provides_ssp=yes
29770      fi
29771fi
29772	;;
29773       *-*-gnu*)
29774	 # Avoid complicated tests (see
29775	 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29776	 # simply assert that glibc does provide this, which is true for all
29777	 # realistically usable GNU/Hurd configurations.
29778	 # All supported versions of musl provide it as well
29779	 gcc_cv_libc_provides_ssp=yes;;
29780       *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd*)
29781	 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29782if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29783  gcc_cv_libc_provides_ssp=yes
29784else
29785  echo "no __stack_chk_fail on this target"
29786fi
29787
29788        ;;
29789       *) gcc_cv_libc_provides_ssp=no ;;
29790    esac
29791  fi
29792fi
29793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29794$as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29795
29796if test x$gcc_cv_libc_provides_ssp = xyes; then
29797
29798$as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29799
29800fi
29801
29802# Check whether --enable-default-ssp was given.
29803# Check whether --enable-default-ssp was given.
29804if test "${enable_default_ssp+set}" = set; then :
29805  enableval=$enable_default_ssp;
29806if test x$gcc_cv_libc_provides_ssp = xyes; then
29807  case "$target" in
29808    ia64*-*-*) enable_default_ssp=no ;;
29809    *) enable_default_ssp=$enableval ;;
29810  esac
29811else
29812  enable_default_ssp=no
29813fi
29814else
29815  enable_default_ssp=no
29816fi
29817
29818if test x$enable_default_ssp = xyes ; then
29819
29820$as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29821
29822fi
29823
29824
29825# Test for <sys/sdt.h> on the target.
29826
29827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29828$as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29829have_sys_sdt_h=no
29830if test -f $target_header_dir/sys/sdt.h; then
29831  have_sys_sdt_h=yes
29832
29833$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29834
29835fi
29836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29837$as_echo "$have_sys_sdt_h" >&6; }
29838
29839# Check if TFmode long double should be used by default or not.
29840# Some glibc targets used DFmode long double, but with glibc 2.4
29841# and later they can use TFmode.
29842case "$target" in
29843  powerpc*-*-linux* | \
29844  sparc*-*-linux* | \
29845  s390*-*-linux* | \
29846  alpha*-*-linux*)
29847
29848# Check whether --with-long-double-128 was given.
29849if test "${with_long_double_128+set}" = set; then :
29850  withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29851else
29852
29853      case "$target" in
29854	s390*-*-linux-musl*)
29855	  gcc_cv_target_ldbl128=yes
29856	  ;;
29857	powerpc*-*-linux-musl*)
29858	  gcc_cv_target_ldbl128=no
29859	  ;;
29860	*)
29861
29862if test $glibc_version_major -gt 2 \
29863  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29864  gcc_cv_target_ldbl128=yes
29865else
29866
29867      gcc_cv_target_ldbl128=no
29868      grep '^[ 	]*#[ 	]*define[ 	][ 	]*__LONG_DOUBLE_MATH_OPTIONAL' \
29869        $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29870      && gcc_cv_target_ldbl128=yes
29871
29872fi
29873
29874	  ;;
29875      esac
29876
29877fi
29878
29879    ;;
29880esac
29881if test x$gcc_cv_target_ldbl128 = xyes; then
29882
29883$as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29884
29885fi
29886
29887# Check if TFmode long double target should use the IBM extended double or IEEE
29888# 128-bit floating point formats if long doubles are 128-bits long.  The long
29889# double type can only be switched on powerpc64 bit Linux systems where VSX is
29890# supported.  Other PowerPC systems do not build the IEEE 128-bit emulator in
29891# libgcc.
29892
29893# Check whether --with-long-double-format was given.
29894if test "${with_long_double_format+set}" = set; then :
29895  withval=$with_long_double_format;
29896case "$target:$with_long_double_format" in
29897  powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29898    :
29899    ;;
29900  powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29901    # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29902    case "$with_cpu" in
29903      power7 | power8 | power9 | power1*)
29904	:
29905	;;
29906      *)
29907	as_fn_error $? "Configuration option --with-long-double-format is only \
29908supported if the default cpu is power7 or newer" "$LINENO" 5
29909	with_long_double_format=""
29910	;;
29911      esac
29912      ;;
29913  xpowerpc64*-*-linux*:*)
29914    as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29915    with_long_double_format=""
29916    ;;
29917  *)
29918    as_fn_error $? "Configure option --with-long-double-format is only supported \
29919on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29920    with_long_double_format=""
29921    ;;
29922esac
29923fi
29924
29925
29926# Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29927# values in the TCB.  Currently, only GLIBC 2.23 and later support this.
29928gcc_cv_libc_provides_hwcap_in_tcb=no
29929case "$target" in
29930  powerpc*-*-linux*)
29931
29932if test $glibc_version_major -gt 2 \
29933  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29934  gcc_cv_libc_provides_hwcap_in_tcb=yes
29935fi
29936    ;;
29937esac
29938if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29939
29940$as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29941
29942fi
29943
29944# Check if the target LIBC handles PT_GNU_STACK.
29945gcc_cv_libc_gnustack=unknown
29946case "$target" in
29947  mips*-*-linux*)
29948
29949if test $glibc_version_major -gt 2 \
29950  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
29951  gcc_cv_libc_gnustack=yes
29952fi
29953    ;;
29954esac
29955if test x$gcc_cv_libc_gnustack = xyes; then
29956
29957$as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
29958
29959fi
29960
29961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29962$as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29963gcc_cv_target_dl_iterate_phdr=unknown
29964case "$target" in
29965  *-*-solaris2*)
29966    # <link.h> needs both a dl_iterate_phdr declaration and support for
29967    # compilation with largefile support.
29968    if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29969      && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29970      gcc_cv_target_dl_iterate_phdr=yes
29971    else
29972      gcc_cv_target_dl_iterate_phdr=no
29973    fi
29974    ;;
29975  *-*-dragonfly* | *-*-freebsd*)
29976    if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29977      gcc_cv_target_dl_iterate_phdr=yes
29978    else
29979      gcc_cv_target_dl_iterate_phdr=no
29980    fi
29981    ;;
29982  *-linux-musl*)
29983    gcc_cv_target_dl_iterate_phdr=yes
29984    ;;
29985esac
29986
29987if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29988
29989$as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29990
29991fi
29992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29993$as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29994
29995# We no longer support different GC mechanisms.  Emit an error if
29996# the user configures with --with-gc.
29997
29998# Check whether --with-gc was given.
29999if test "${with_gc+set}" = set; then :
30000  withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
30001fi
30002
30003
30004# Libraries to use on the host.  This will normally be set by the top
30005# level Makefile.  Here we simply capture the value for our Makefile.
30006if test -z "${HOST_LIBS+set}"; then
30007  HOST_LIBS=
30008fi
30009
30010
30011# Use the system's zlib library.
30012
30013  # Use the system's zlib library.
30014  zlibdir="-L\$(top_builddir)/../zlib"
30015  zlibinc="-I\$(top_srcdir)/../zlib"
30016
30017# Check whether --with-system-zlib was given.
30018if test "${with_system_zlib+set}" = set; then :
30019  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
30020    zlibdir=
30021    zlibinc=
30022  fi
30023
30024fi
30025
30026
30027
30028
30029
30030
30031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
30032$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
30033    # Check whether --enable-maintainer-mode was given.
30034if test "${enable_maintainer_mode+set}" = set; then :
30035  enableval=$enable_maintainer_mode; maintainer_mode=$enableval
30036else
30037  maintainer_mode=no
30038fi
30039
30040
30041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
30042$as_echo "$maintainer_mode" >&6; }
30043
30044if test "$maintainer_mode" = "yes"; then
30045  MAINT=''
30046else
30047  MAINT='#'
30048fi
30049
30050
30051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
30052$as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
30053  # Check whether --enable-link-mutex was given.
30054if test "${enable_link_mutex+set}" = set; then :
30055  enableval=$enable_link_mutex; do_link_mutex=$enableval
30056else
30057  do_link_mutex=no
30058fi
30059
30060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
30061$as_echo "$do_link_mutex" >&6; }
30062
30063if test "$do_link_mutex" = "yes"; then
30064   DO_LINK_MUTEX=true
30065else
30066   DO_LINK_MUTEX=false
30067fi
30068
30069
30070# --------------
30071# Language hooks
30072# --------------
30073
30074# Make empty files to contain the specs and options for each language.
30075# Then add #include lines to for a compiler that has specs and/or options.
30076
30077subdirs=
30078lang_opt_files=
30079lang_specs_files=
30080lang_tree_files=
30081# These (without "all_") are set in each config-lang.in.
30082# `language' must be a single word so is spelled singularly.
30083all_languages=
30084all_compilers=
30085all_outputs='Makefile'
30086# List of language configure and makefile fragments.
30087all_lang_configurefrags=
30088all_lang_makefrags=
30089# Additional files for gengtype
30090all_gtfiles="$target_gtfiles"
30091
30092# These are the languages that are set in --enable-languages,
30093# and are available in the GCC tree.
30094all_selected_languages=
30095
30096# Add the language fragments.
30097# Languages are added via two mechanisms.  Some information must be
30098# recorded in makefile variables, these are defined in config-lang.in.
30099# We accumulate them and plug them into the main Makefile.
30100# The other mechanism is a set of hooks for each of the main targets
30101# like `clean', `install', etc.
30102
30103language_hooks="Make-hooks"
30104
30105for lang in ${srcdir}/*/config-lang.in
30106do
30107	test "$lang" = "${srcdir}/*/config-lang.in" && continue
30108
30109        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
30110        if test "x$lang_alias" = x
30111        then
30112              echo "$lang doesn't set \$language." 1>&2
30113              exit 1
30114        fi
30115        subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
30116        subdirs="$subdirs $subdir"
30117
30118	# $gcc_subdir is where the gcc integration files are to be found
30119	# for a language, both for internal compiler purposes (compiler
30120	# sources implementing front-end to GCC tree converters), and for
30121	# build infrastructure purposes (Make-lang.in, etc.)
30122	#
30123	# This will be <subdir> (relative to $srcdir) if a line like
30124	# gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30125	# is found in <langdir>/config-lang.in, and will remain <langdir>
30126	# otherwise.
30127	#
30128	# Except for the language alias (fetched above), the regular
30129	# "config-lang.in" contents are always retrieved from $gcc_subdir,
30130	# so a <langdir>/config-lang.in setting gcc_subdir typically sets
30131	# only this and the language alias.
30132
30133        gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
30134        if [ "$gcc_subdir" = "" ]; then
30135           gcc_subdir="$subdir"
30136        fi
30137
30138        case ",$enable_languages," in
30139        *,$lang_alias,*)
30140            all_selected_languages="$all_selected_languages $lang_alias"
30141            if test -f $srcdir/$gcc_subdir/lang-specs.h; then
30142                lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30143	    fi
30144	    ;;
30145        esac
30146
30147	language=
30148	boot_language=
30149	compilers=
30150	outputs=
30151	gtfiles=
30152	subdir_requires=
30153	. ${srcdir}/$gcc_subdir/config-lang.in
30154	if test "x$language" = x
30155	then
30156		echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30157		exit 1
30158	fi
30159
30160	ok=:
30161        case ",$enable_languages," in
30162        	*,$lang_alias,*) ;;
30163		*)
30164			for i in $subdir_requires; do
30165				test -f "${srcdir}/$i/config-lang.in" && continue
30166				ok=false
30167				break
30168			done
30169		;;
30170	esac
30171	$ok || continue
30172
30173	all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30174	all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30175	if test -f $srcdir/$gcc_subdir/lang.opt; then
30176	    lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30177	    all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30178	fi
30179	if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
30180	    lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30181	fi
30182	all_languages="$all_languages $language"
30183	all_compilers="$all_compilers $compilers"
30184	all_outputs="$all_outputs $outputs"
30185	all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
30186        case ",$enable_languages," in
30187        	*,lto,*)
30188
30189$as_echo "#define ENABLE_LTO 1" >>confdefs.h
30190
30191		    enable_lto=yes
30192
30193		    ;;
30194		*) ;;
30195	esac
30196done
30197
30198check_languages=
30199for language in $all_selected_languages
30200do
30201	check_languages="$check_languages check-$language"
30202done
30203
30204selftest_languages=
30205for language in $all_selected_languages
30206do
30207	selftest_languages="$selftest_languages selftest-$language"
30208done
30209
30210# We link each language in with a set of hooks, reached indirectly via
30211# lang.${target}.  Only do so for selected languages.
30212
30213rm -f Make-hooks
30214touch Make-hooks
30215target_list="all.cross start.encap rest.encap tags \
30216	install-common install-man install-info install-pdf install-html dvi \
30217	pdf html uninstall info man srcextra srcman srcinfo \
30218	mostlyclean clean distclean maintainer-clean install-plugin"
30219
30220for t in $target_list
30221do
30222	x=
30223	for lang in $all_selected_languages
30224	do
30225		x="$x $lang.$t"
30226	done
30227	echo "lang.$t: $x" >> Make-hooks
30228done
30229
30230# --------
30231# Option include files
30232# --------
30233
30234${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
30235option_includes="option-includes.mk"
30236
30237
30238# --------
30239# UNSORTED
30240# --------
30241
30242# Create .gdbinit.
30243
30244echo "dir ." > .gdbinit
30245echo "dir ${srcdir}" >> .gdbinit
30246if test x$gdb_needs_out_file_path = xyes
30247then
30248	echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30249fi
30250if test "x$subdirs" != x; then
30251	for s in $subdirs
30252	do
30253		echo "dir ${srcdir}/$s" >> .gdbinit
30254	done
30255fi
30256echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30257echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30258
30259# Put a breakpoint on __asan_report_error to help with debugging buffer
30260# overflow.
30261case "$CFLAGS" in
30262*-fsanitize=address*)
30263  echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30264  ;;
30265esac
30266
30267gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30268
30269
30270
30271# Find a directory in which to install a shared libgcc.
30272
30273# Check whether --enable-version-specific-runtime-libs was given.
30274if test "${enable_version_specific_runtime_libs+set}" = set; then :
30275  enableval=$enable_version_specific_runtime_libs;
30276fi
30277
30278
30279# Substitute configuration variables
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332
30333
30334
30335
30336
30337
30338
30339
30340
30341
30342
30343
30344
30345
30346
30347# Echo link setup.
30348if test x${build} = x${host} ; then
30349  if test x${host} = x${target} ; then
30350    echo "Links are now set up to build a native compiler for ${target}." 1>&2
30351  else
30352    echo "Links are now set up to build a cross-compiler" 1>&2
30353    echo " from ${host} to ${target}." 1>&2
30354  fi
30355else
30356  if test x${host} = x${target} ; then
30357    echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30358    echo " for ${target}." 1>&2
30359  else
30360    echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30361    echo " from ${host} to ${target}." 1>&2
30362  fi
30363fi
30364
30365
30366
30367
30368
30369
30370if test "x${ISLLIBS}" != "x" ; then
30371
30372$as_echo "#define HAVE_isl 1" >>confdefs.h
30373
30374fi
30375
30376# Check for plugin support
30377   # Check whether --enable-plugin was given.
30378if test "${enable_plugin+set}" = set; then :
30379  enableval=$enable_plugin; enable_plugin=$enableval
30380else
30381  enable_plugin=yes; default_plugin=yes
30382fi
30383
30384
30385   pluginlibs=
30386   plugin_check=yes
30387
30388   case "${host}" in
30389     *-*-mingw*)
30390       # Since plugin support under MinGW is not as straightforward as on
30391       # other platforms (e.g., we have to link import library, etc), we
30392       # only enable it if explicitly requested.
30393       if test x"$default_plugin" = x"yes"; then
30394         enable_plugin=no
30395       elif test x"$enable_plugin" = x"yes"; then
30396         # Use make's target variable to derive import library name.
30397         pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30398	 plugin_check=no
30399       fi
30400     ;;
30401     *-*-darwin*)
30402       if test x$build = x$host; then
30403	 export_sym_check="nm${exeext} -g"
30404       elif test x$host = x$target; then
30405	 export_sym_check="$gcc_cv_nm -g"
30406       else
30407	 export_sym_check=
30408       fi
30409     ;;
30410     *)
30411       if test x$build = x$host; then
30412	 export_sym_check="objdump${exeext} -T"
30413       elif test x$host = x$target; then
30414	 export_sym_check="$gcc_cv_objdump -T"
30415       else
30416	 export_sym_check=
30417       fi
30418     ;;
30419   esac
30420
30421   if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30422
30423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30424$as_echo_n "checking for exported symbols... " >&6; }
30425     if test "x$export_sym_check" != x; then
30426       echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30427       ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30428       if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30429	 : # No need to use a flag
30430	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30431$as_echo "yes" >&6; }
30432       else
30433	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30434$as_echo "yes" >&6; }
30435	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30436$as_echo_n "checking for -rdynamic... " >&6; }
30437	 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30438	 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30439	   plugin_rdynamic=yes
30440	   pluginlibs="-rdynamic"
30441	 else
30442	   plugin_rdynamic=no
30443	   enable_plugin=no
30444	 fi
30445	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30446$as_echo "$plugin_rdynamic" >&6; }
30447       fi
30448     else
30449       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30450$as_echo "unable to check" >&6; }
30451     fi
30452
30453     # Check -ldl
30454     saved_LIBS="$LIBS"
30455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30456$as_echo_n "checking for library containing dlopen... " >&6; }
30457if ${ac_cv_search_dlopen+:} false; then :
30458  $as_echo_n "(cached) " >&6
30459else
30460  ac_func_search_save_LIBS=$LIBS
30461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30462/* end confdefs.h.  */
30463
30464/* Override any GCC internal prototype to avoid an error.
30465   Use char because int might match the return type of a GCC
30466   builtin and then its argument prototype would still apply.  */
30467#ifdef __cplusplus
30468extern "C"
30469#endif
30470char dlopen ();
30471int
30472main ()
30473{
30474return dlopen ();
30475  ;
30476  return 0;
30477}
30478_ACEOF
30479for ac_lib in '' dl; do
30480  if test -z "$ac_lib"; then
30481    ac_res="none required"
30482  else
30483    ac_res=-l$ac_lib
30484    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30485  fi
30486  if ac_fn_cxx_try_link "$LINENO"; then :
30487  ac_cv_search_dlopen=$ac_res
30488fi
30489rm -f core conftest.err conftest.$ac_objext \
30490    conftest$ac_exeext
30491  if ${ac_cv_search_dlopen+:} false; then :
30492  break
30493fi
30494done
30495if ${ac_cv_search_dlopen+:} false; then :
30496
30497else
30498  ac_cv_search_dlopen=no
30499fi
30500rm conftest.$ac_ext
30501LIBS=$ac_func_search_save_LIBS
30502fi
30503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30504$as_echo "$ac_cv_search_dlopen" >&6; }
30505ac_res=$ac_cv_search_dlopen
30506if test "$ac_res" != no; then :
30507  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30508
30509fi
30510
30511     if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30512       pluginlibs="$pluginlibs -ldl"
30513     fi
30514     LIBS="$saved_LIBS"
30515
30516     # Check that we can build shared objects with -fPIC -shared
30517     saved_LDFLAGS="$LDFLAGS"
30518     saved_CFLAGS="$CFLAGS"
30519     case "${host}" in
30520       *-*-darwin*)
30521	 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30522	 CFLAGS="$CFLAGS -fPIC"
30523	 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30524       ;;
30525       *)
30526	 CFLAGS="$CFLAGS -fPIC"
30527	 LDFLAGS="$LDFLAGS -fPIC -shared"
30528       ;;
30529     esac
30530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30531$as_echo_n "checking for -fPIC -shared... " >&6; }
30532     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30533/* end confdefs.h.  */
30534extern int X;
30535int
30536main ()
30537{
30538return X == 0;
30539  ;
30540  return 0;
30541}
30542_ACEOF
30543if ac_fn_cxx_try_link "$LINENO"; then :
30544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30545$as_echo "yes" >&6; }; have_pic_shared=yes
30546else
30547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30548$as_echo "no" >&6; }; have_pic_shared=no
30549fi
30550rm -f core conftest.err conftest.$ac_objext \
30551    conftest$ac_exeext conftest.$ac_ext
30552     if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30553       pluginlibs=
30554       enable_plugin=no
30555     fi
30556     LDFLAGS="$saved_LDFLAGS"
30557     CFLAGS="$saved_CFLAGS"
30558
30559     # If plugin support had been requested but not available, fail.
30560     if test x"$enable_plugin" = x"no" ; then
30561       if test x"$default_plugin" != x"yes"; then
30562	 as_fn_error $? "
30563   Building GCC with plugin support requires a host that supports
30564   -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30565       fi
30566     fi
30567   fi
30568
30569
30570
30571if test x"$enable_plugin" = x"yes"; then
30572
30573$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30574
30575fi
30576
30577
30578# Enable --enable-host-shared
30579# Check whether --enable-host-shared was given.
30580if test "${enable_host_shared+set}" = set; then :
30581  enableval=$enable_host_shared; PICFLAG=-fPIC
30582else
30583  PICFLAG=
30584fi
30585
30586
30587
30588
30589
30590# Check whether --enable-libquadmath-support was given.
30591if test "${enable_libquadmath_support+set}" = set; then :
30592  enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30593else
30594  ENABLE_LIBQUADMATH_SUPPORT=yes
30595fi
30596
30597if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30598
30599$as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30600
30601fi
30602
30603
30604# Specify what hash style to use by default.
30605
30606# Check whether --with-linker-hash-style was given.
30607if test "${with_linker_hash_style+set}" = set; then :
30608  withval=$with_linker_hash_style; case x"$withval" in
30609   xsysv)
30610     LINKER_HASH_STYLE=sysv
30611     ;;
30612   xgnu)
30613     LINKER_HASH_STYLE=gnu
30614     ;;
30615   xboth)
30616     LINKER_HASH_STYLE=both
30617     ;;
30618   *)
30619     as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30620     ;;
30621 esac
30622else
30623  LINKER_HASH_STYLE=''
30624fi
30625
30626if test x"${LINKER_HASH_STYLE}" != x; then
30627
30628cat >>confdefs.h <<_ACEOF
30629#define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30630_ACEOF
30631
30632fi
30633
30634# Specify what should be the default of -fdiagnostics-color option.
30635
30636# Check whether --with-diagnostics-color was given.
30637if test "${with_diagnostics_color+set}" = set; then :
30638  withval=$with_diagnostics_color; case x"$withval" in
30639   xnever)
30640     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30641     ;;
30642   xauto)
30643     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30644     ;;
30645   xauto-if-env)
30646     DIAGNOSTICS_COLOR_DEFAULT=-1
30647     ;;
30648   xalways)
30649     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30650     ;;
30651   *)
30652     as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30653     ;;
30654 esac
30655else
30656  DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30657fi
30658
30659
30660cat >>confdefs.h <<_ACEOF
30661#define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30662_ACEOF
30663
30664
30665# Specify what should be the default of -fdiagnostics-urls option.
30666
30667# Check whether --with-diagnostics-urls was given.
30668if test "${with_diagnostics_urls+set}" = set; then :
30669  withval=$with_diagnostics_urls; case x"$withval" in
30670   xnever)
30671     DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
30672     ;;
30673   xauto)
30674     DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
30675     ;;
30676   xauto-if-env)
30677     DIAGNOSTICS_URLS_DEFAULT=-1
30678     ;;
30679   xalways)
30680     DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
30681     ;;
30682   *)
30683     as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
30684     ;;
30685 esac
30686else
30687  DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
30688fi
30689
30690
30691cat >>confdefs.h <<_ACEOF
30692#define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
30693_ACEOF
30694
30695
30696# Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30697# of jit/jit-playback.c.
30698gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30699echo "gcc_driver_version: ${gcc_driver_version}"
30700cat > gcc-driver-name.h <<EOF
30701#define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30702EOF
30703
30704# Check whether --enable-default-pie was given.
30705# Check whether --enable-default-pie was given.
30706if test "${enable_default_pie+set}" = set; then :
30707  enableval=$enable_default_pie; enable_default_pie=$enableval
30708else
30709  enable_default_pie=no
30710fi
30711
30712if test x$enable_default_pie = xyes ; then
30713
30714$as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30715
30716fi
30717
30718
30719# Check if -fno-PIE works.
30720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30721$as_echo_n "checking for -fno-PIE option... " >&6; }
30722if ${gcc_cv_c_no_fpie+:} false; then :
30723  $as_echo_n "(cached) " >&6
30724else
30725  saved_CXXFLAGS="$CXXFLAGS"
30726   CXXFLAGS="$CXXFLAGS -fno-PIE"
30727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30728/* end confdefs.h.  */
30729int main(void) {return 0;}
30730_ACEOF
30731if ac_fn_cxx_try_compile "$LINENO"; then :
30732  gcc_cv_c_no_fpie=yes
30733else
30734  gcc_cv_c_no_fpie=no
30735fi
30736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30737   CXXFLAGS="$saved_CXXFLAGS"
30738fi
30739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30740$as_echo "$gcc_cv_c_no_fpie" >&6; }
30741if test "$gcc_cv_c_no_fpie" = "yes"; then
30742  NO_PIE_CFLAGS="-fno-PIE"
30743fi
30744
30745
30746# Check if -no-pie works.
30747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30748$as_echo_n "checking for -no-pie option... " >&6; }
30749if ${gcc_cv_no_pie+:} false; then :
30750  $as_echo_n "(cached) " >&6
30751else
30752  saved_LDFLAGS="$LDFLAGS"
30753   LDFLAGS="$LDFLAGS -no-pie"
30754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30755/* end confdefs.h.  */
30756int main(void) {return 0;}
30757_ACEOF
30758if ac_fn_cxx_try_link "$LINENO"; then :
30759  gcc_cv_no_pie=yes
30760else
30761  gcc_cv_no_pie=no
30762fi
30763rm -f core conftest.err conftest.$ac_objext \
30764    conftest$ac_exeext conftest.$ac_ext
30765   LDFLAGS="$saved_LDFLAGS"
30766fi
30767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30768$as_echo "$gcc_cv_no_pie" >&6; }
30769if test "$gcc_cv_no_pie" = "yes"; then
30770  NO_PIE_FLAG="-no-pie"
30771fi
30772
30773
30774# Check linker supports '-z bndplt'
30775ld_bndplt_support=no
30776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30777$as_echo_n "checking linker -z bndplt option... " >&6; }
30778if test x"$ld_is_gold" = xno; then
30779  if test $in_tree_ld = yes ; then
30780    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
30781      ld_bndplt_support=yes
30782    fi
30783  elif test x$gcc_cv_ld != x; then
30784    # Check if linker supports -a bndplt option
30785    if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30786      ld_bndplt_support=yes
30787    fi
30788  fi
30789fi
30790if test x"$ld_bndplt_support" = xyes; then
30791
30792$as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30793
30794fi
30795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30796$as_echo "$ld_bndplt_support" >&6; }
30797
30798# Check linker supports '--push-state'/'--pop-state'
30799ld_pushpopstate_support=no
30800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30801$as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30802if test x"$ld_is_gold" = xno; then
30803  if test $in_tree_ld = yes ; then
30804    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
30805      ld_pushpopstate_support=yes
30806    fi
30807  elif test x$gcc_cv_ld != x; then
30808    # Check if linker supports --push-state/--pop-state options
30809    if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30810      ld_pushpopstate_support=yes
30811    fi
30812  fi
30813fi
30814if test x"$ld_pushpopstate_support" = xyes; then
30815
30816$as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30817
30818fi
30819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30820$as_echo "$ld_pushpopstate_support" >&6; }
30821
30822# Configure the subdirectories
30823# AC_CONFIG_SUBDIRS($subdirs)
30824
30825# Create the Makefile
30826# and configure language subdirectories
30827ac_config_files="$ac_config_files $all_outputs"
30828
30829
30830ac_config_commands="$ac_config_commands default"
30831
30832cat >confcache <<\_ACEOF
30833# This file is a shell script that caches the results of configure
30834# tests run on this system so they can be shared between configure
30835# scripts and configure runs, see configure's option --config-cache.
30836# It is not useful on other systems.  If it contains results you don't
30837# want to keep, you may remove or edit it.
30838#
30839# config.status only pays attention to the cache file if you give it
30840# the --recheck option to rerun configure.
30841#
30842# `ac_cv_env_foo' variables (set or unset) will be overridden when
30843# loading this file, other *unset* `ac_cv_foo' will be assigned the
30844# following values.
30845
30846_ACEOF
30847
30848# The following way of writing the cache mishandles newlines in values,
30849# but we know of no workaround that is simple, portable, and efficient.
30850# So, we kill variables containing newlines.
30851# Ultrix sh set writes to stderr and can't be redirected directly,
30852# and sets the high bit in the cache file unless we assign to the vars.
30853(
30854  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30855    eval ac_val=\$$ac_var
30856    case $ac_val in #(
30857    *${as_nl}*)
30858      case $ac_var in #(
30859      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30860$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30861      esac
30862      case $ac_var in #(
30863      _ | IFS | as_nl) ;; #(
30864      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30865      *) { eval $ac_var=; unset $ac_var;} ;;
30866      esac ;;
30867    esac
30868  done
30869
30870  (set) 2>&1 |
30871    case $as_nl`(ac_space=' '; set) 2>&1` in #(
30872    *${as_nl}ac_space=\ *)
30873      # `set' does not quote correctly, so add quotes: double-quote
30874      # substitution turns \\\\ into \\, and sed turns \\ into \.
30875      sed -n \
30876	"s/'/'\\\\''/g;
30877	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30878      ;; #(
30879    *)
30880      # `set' quotes correctly as required by POSIX, so do not add quotes.
30881      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30882      ;;
30883    esac |
30884    sort
30885) |
30886  sed '
30887     /^ac_cv_env_/b end
30888     t clear
30889     :clear
30890     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30891     t end
30892     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30893     :end' >>confcache
30894if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30895  if test -w "$cache_file"; then
30896    if test "x$cache_file" != "x/dev/null"; then
30897      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30898$as_echo "$as_me: updating cache $cache_file" >&6;}
30899      if test ! -f "$cache_file" || test -h "$cache_file"; then
30900	cat confcache >"$cache_file"
30901      else
30902        case $cache_file in #(
30903        */* | ?:*)
30904	  mv -f confcache "$cache_file"$$ &&
30905	  mv -f "$cache_file"$$ "$cache_file" ;; #(
30906        *)
30907	  mv -f confcache "$cache_file" ;;
30908	esac
30909      fi
30910    fi
30911  else
30912    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30913$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30914  fi
30915fi
30916rm -f confcache
30917
30918test "x$prefix" = xNONE && prefix=$ac_default_prefix
30919# Let make expand exec_prefix.
30920test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30921
30922DEFS=-DHAVE_CONFIG_H
30923
30924ac_libobjs=
30925ac_ltlibobjs=
30926U=
30927for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30928  # 1. Remove the extension, and $U if already installed.
30929  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30930  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30931  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30932  #    will be set to the directory where LIBOBJS objects are built.
30933  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30934  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30935done
30936LIBOBJS=$ac_libobjs
30937
30938LTLIBOBJS=$ac_ltlibobjs
30939
30940
30941
30942
30943: "${CONFIG_STATUS=./config.status}"
30944ac_write_fail=0
30945ac_clean_files_save=$ac_clean_files
30946ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30947{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30948$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30949as_write_fail=0
30950cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30951#! $SHELL
30952# Generated by $as_me.
30953# Run this file to recreate the current configuration.
30954# Compiler output produced by configure, useful for debugging
30955# configure, is in config.log if it exists.
30956
30957debug=false
30958ac_cs_recheck=false
30959ac_cs_silent=false
30960
30961SHELL=\${CONFIG_SHELL-$SHELL}
30962export SHELL
30963_ASEOF
30964cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30965## -------------------- ##
30966## M4sh Initialization. ##
30967## -------------------- ##
30968
30969# Be more Bourne compatible
30970DUALCASE=1; export DUALCASE # for MKS sh
30971if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30972  emulate sh
30973  NULLCMD=:
30974  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30975  # is contrary to our usage.  Disable this feature.
30976  alias -g '${1+"$@"}'='"$@"'
30977  setopt NO_GLOB_SUBST
30978else
30979  case `(set -o) 2>/dev/null` in #(
30980  *posix*) :
30981    set -o posix ;; #(
30982  *) :
30983     ;;
30984esac
30985fi
30986
30987
30988as_nl='
30989'
30990export as_nl
30991# Printing a long string crashes Solaris 7 /usr/bin/printf.
30992as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30993as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30994as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30995# Prefer a ksh shell builtin over an external printf program on Solaris,
30996# but without wasting forks for bash or zsh.
30997if test -z "$BASH_VERSION$ZSH_VERSION" \
30998    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30999  as_echo='print -r --'
31000  as_echo_n='print -rn --'
31001elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31002  as_echo='printf %s\n'
31003  as_echo_n='printf %s'
31004else
31005  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31006    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31007    as_echo_n='/usr/ucb/echo -n'
31008  else
31009    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31010    as_echo_n_body='eval
31011      arg=$1;
31012      case $arg in #(
31013      *"$as_nl"*)
31014	expr "X$arg" : "X\\(.*\\)$as_nl";
31015	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31016      esac;
31017      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31018    '
31019    export as_echo_n_body
31020    as_echo_n='sh -c $as_echo_n_body as_echo'
31021  fi
31022  export as_echo_body
31023  as_echo='sh -c $as_echo_body as_echo'
31024fi
31025
31026# The user is always right.
31027if test "${PATH_SEPARATOR+set}" != set; then
31028  PATH_SEPARATOR=:
31029  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31030    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31031      PATH_SEPARATOR=';'
31032  }
31033fi
31034
31035
31036# IFS
31037# We need space, tab and new line, in precisely that order.  Quoting is
31038# there to prevent editors from complaining about space-tab.
31039# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31040# splitting by setting IFS to empty value.)
31041IFS=" ""	$as_nl"
31042
31043# Find who we are.  Look in the path if we contain no directory separator.
31044as_myself=
31045case $0 in #((
31046  *[\\/]* ) as_myself=$0 ;;
31047  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31048for as_dir in $PATH
31049do
31050  IFS=$as_save_IFS
31051  test -z "$as_dir" && as_dir=.
31052    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31053  done
31054IFS=$as_save_IFS
31055
31056     ;;
31057esac
31058# We did not find ourselves, most probably we were run as `sh COMMAND'
31059# in which case we are not to be found in the path.
31060if test "x$as_myself" = x; then
31061  as_myself=$0
31062fi
31063if test ! -f "$as_myself"; then
31064  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31065  exit 1
31066fi
31067
31068# Unset variables that we do not need and which cause bugs (e.g. in
31069# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31070# suppresses any "Segmentation fault" message there.  '((' could
31071# trigger a bug in pdksh 5.2.14.
31072for as_var in BASH_ENV ENV MAIL MAILPATH
31073do eval test x\${$as_var+set} = xset \
31074  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31075done
31076PS1='$ '
31077PS2='> '
31078PS4='+ '
31079
31080# NLS nuisances.
31081LC_ALL=C
31082export LC_ALL
31083LANGUAGE=C
31084export LANGUAGE
31085
31086# CDPATH.
31087(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31088
31089
31090# as_fn_error STATUS ERROR [LINENO LOG_FD]
31091# ----------------------------------------
31092# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31093# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31094# script with STATUS, using 1 if that was 0.
31095as_fn_error ()
31096{
31097  as_status=$1; test $as_status -eq 0 && as_status=1
31098  if test "$4"; then
31099    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31100    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31101  fi
31102  $as_echo "$as_me: error: $2" >&2
31103  as_fn_exit $as_status
31104} # as_fn_error
31105
31106
31107# as_fn_set_status STATUS
31108# -----------------------
31109# Set $? to STATUS, without forking.
31110as_fn_set_status ()
31111{
31112  return $1
31113} # as_fn_set_status
31114
31115# as_fn_exit STATUS
31116# -----------------
31117# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31118as_fn_exit ()
31119{
31120  set +e
31121  as_fn_set_status $1
31122  exit $1
31123} # as_fn_exit
31124
31125# as_fn_unset VAR
31126# ---------------
31127# Portably unset VAR.
31128as_fn_unset ()
31129{
31130  { eval $1=; unset $1;}
31131}
31132as_unset=as_fn_unset
31133# as_fn_append VAR VALUE
31134# ----------------------
31135# Append the text in VALUE to the end of the definition contained in VAR. Take
31136# advantage of any shell optimizations that allow amortized linear growth over
31137# repeated appends, instead of the typical quadratic growth present in naive
31138# implementations.
31139if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31140  eval 'as_fn_append ()
31141  {
31142    eval $1+=\$2
31143  }'
31144else
31145  as_fn_append ()
31146  {
31147    eval $1=\$$1\$2
31148  }
31149fi # as_fn_append
31150
31151# as_fn_arith ARG...
31152# ------------------
31153# Perform arithmetic evaluation on the ARGs, and store the result in the
31154# global $as_val. Take advantage of shells that can avoid forks. The arguments
31155# must be portable across $(()) and expr.
31156if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31157  eval 'as_fn_arith ()
31158  {
31159    as_val=$(( $* ))
31160  }'
31161else
31162  as_fn_arith ()
31163  {
31164    as_val=`expr "$@" || test $? -eq 1`
31165  }
31166fi # as_fn_arith
31167
31168
31169if expr a : '\(a\)' >/dev/null 2>&1 &&
31170   test "X`expr 00001 : '.*\(...\)'`" = X001; then
31171  as_expr=expr
31172else
31173  as_expr=false
31174fi
31175
31176if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31177  as_basename=basename
31178else
31179  as_basename=false
31180fi
31181
31182if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31183  as_dirname=dirname
31184else
31185  as_dirname=false
31186fi
31187
31188as_me=`$as_basename -- "$0" ||
31189$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31190	 X"$0" : 'X\(//\)$' \| \
31191	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31192$as_echo X/"$0" |
31193    sed '/^.*\/\([^/][^/]*\)\/*$/{
31194	    s//\1/
31195	    q
31196	  }
31197	  /^X\/\(\/\/\)$/{
31198	    s//\1/
31199	    q
31200	  }
31201	  /^X\/\(\/\).*/{
31202	    s//\1/
31203	    q
31204	  }
31205	  s/.*/./; q'`
31206
31207# Avoid depending upon Character Ranges.
31208as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31209as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31210as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31211as_cr_digits='0123456789'
31212as_cr_alnum=$as_cr_Letters$as_cr_digits
31213
31214ECHO_C= ECHO_N= ECHO_T=
31215case `echo -n x` in #(((((
31216-n*)
31217  case `echo 'xy\c'` in
31218  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
31219  xy)  ECHO_C='\c';;
31220  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31221       ECHO_T='	';;
31222  esac;;
31223*)
31224  ECHO_N='-n';;
31225esac
31226
31227rm -f conf$$ conf$$.exe conf$$.file
31228if test -d conf$$.dir; then
31229  rm -f conf$$.dir/conf$$.file
31230else
31231  rm -f conf$$.dir
31232  mkdir conf$$.dir 2>/dev/null
31233fi
31234if (echo >conf$$.file) 2>/dev/null; then
31235  if ln -s conf$$.file conf$$ 2>/dev/null; then
31236    as_ln_s='ln -s'
31237    # ... but there are two gotchas:
31238    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31239    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31240    # In both cases, we have to default to `cp -pR'.
31241    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31242      as_ln_s='cp -pR'
31243  elif ln conf$$.file conf$$ 2>/dev/null; then
31244    as_ln_s=ln
31245  else
31246    as_ln_s='cp -pR'
31247  fi
31248else
31249  as_ln_s='cp -pR'
31250fi
31251rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31252rmdir conf$$.dir 2>/dev/null
31253
31254
31255# as_fn_mkdir_p
31256# -------------
31257# Create "$as_dir" as a directory, including parents if necessary.
31258as_fn_mkdir_p ()
31259{
31260
31261  case $as_dir in #(
31262  -*) as_dir=./$as_dir;;
31263  esac
31264  test -d "$as_dir" || eval $as_mkdir_p || {
31265    as_dirs=
31266    while :; do
31267      case $as_dir in #(
31268      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31269      *) as_qdir=$as_dir;;
31270      esac
31271      as_dirs="'$as_qdir' $as_dirs"
31272      as_dir=`$as_dirname -- "$as_dir" ||
31273$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31274	 X"$as_dir" : 'X\(//\)[^/]' \| \
31275	 X"$as_dir" : 'X\(//\)$' \| \
31276	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31277$as_echo X"$as_dir" |
31278    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31279	    s//\1/
31280	    q
31281	  }
31282	  /^X\(\/\/\)[^/].*/{
31283	    s//\1/
31284	    q
31285	  }
31286	  /^X\(\/\/\)$/{
31287	    s//\1/
31288	    q
31289	  }
31290	  /^X\(\/\).*/{
31291	    s//\1/
31292	    q
31293	  }
31294	  s/.*/./; q'`
31295      test -d "$as_dir" && break
31296    done
31297    test -z "$as_dirs" || eval "mkdir $as_dirs"
31298  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31299
31300
31301} # as_fn_mkdir_p
31302if mkdir -p . 2>/dev/null; then
31303  as_mkdir_p='mkdir -p "$as_dir"'
31304else
31305  test -d ./-p && rmdir ./-p
31306  as_mkdir_p=false
31307fi
31308
31309
31310# as_fn_executable_p FILE
31311# -----------------------
31312# Test if FILE is an executable regular file.
31313as_fn_executable_p ()
31314{
31315  test -f "$1" && test -x "$1"
31316} # as_fn_executable_p
31317as_test_x='test -x'
31318as_executable_p=as_fn_executable_p
31319
31320# Sed expression to map a string onto a valid CPP name.
31321as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31322
31323# Sed expression to map a string onto a valid variable name.
31324as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31325
31326
31327exec 6>&1
31328## ----------------------------------- ##
31329## Main body of $CONFIG_STATUS script. ##
31330## ----------------------------------- ##
31331_ASEOF
31332test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31333
31334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31335# Save the log message, to keep $0 and so on meaningful, and to
31336# report actual input values of CONFIG_FILES etc. instead of their
31337# values after options handling.
31338ac_log="
31339This file was extended by $as_me, which was
31340generated by GNU Autoconf 2.69.  Invocation command line was
31341
31342  CONFIG_FILES    = $CONFIG_FILES
31343  CONFIG_HEADERS  = $CONFIG_HEADERS
31344  CONFIG_LINKS    = $CONFIG_LINKS
31345  CONFIG_COMMANDS = $CONFIG_COMMANDS
31346  $ $0 $@
31347
31348on `(hostname || uname -n) 2>/dev/null | sed 1q`
31349"
31350
31351_ACEOF
31352
31353case $ac_config_files in *"
31354"*) set x $ac_config_files; shift; ac_config_files=$*;;
31355esac
31356
31357case $ac_config_headers in *"
31358"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31359esac
31360
31361
31362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31363# Files that config.status was made for.
31364config_files="$ac_config_files"
31365config_headers="$ac_config_headers"
31366config_links="$ac_config_links"
31367config_commands="$ac_config_commands"
31368
31369_ACEOF
31370
31371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31372ac_cs_usage="\
31373\`$as_me' instantiates files and other configuration actions
31374from templates according to the current configuration.  Unless the files
31375and actions are specified as TAGs, all are instantiated by default.
31376
31377Usage: $0 [OPTION]... [TAG]...
31378
31379  -h, --help       print this help, then exit
31380  -V, --version    print version number and configuration settings, then exit
31381      --config     print configuration, then exit
31382  -q, --quiet, --silent
31383                   do not print progress messages
31384  -d, --debug      don't remove temporary files
31385      --recheck    update $as_me by reconfiguring in the same conditions
31386      --file=FILE[:TEMPLATE]
31387                   instantiate the configuration file FILE
31388      --header=FILE[:TEMPLATE]
31389                   instantiate the configuration header FILE
31390
31391Configuration files:
31392$config_files
31393
31394Configuration headers:
31395$config_headers
31396
31397Configuration links:
31398$config_links
31399
31400Configuration commands:
31401$config_commands
31402
31403Report bugs to the package provider."
31404
31405_ACEOF
31406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31407ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31408ac_cs_version="\\
31409config.status
31410configured by $0, generated by GNU Autoconf 2.69,
31411  with options \\"\$ac_cs_config\\"
31412
31413Copyright (C) 2012 Free Software Foundation, Inc.
31414This config.status script is free software; the Free Software Foundation
31415gives unlimited permission to copy, distribute and modify it."
31416
31417ac_pwd='$ac_pwd'
31418srcdir='$srcdir'
31419AWK='$AWK'
31420test -n "\$AWK" || AWK=awk
31421_ACEOF
31422
31423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31424# The default lists apply if the user does not specify any file.
31425ac_need_defaults=:
31426while test $# != 0
31427do
31428  case $1 in
31429  --*=?*)
31430    ac_option=`expr "X$1" : 'X\([^=]*\)='`
31431    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31432    ac_shift=:
31433    ;;
31434  --*=)
31435    ac_option=`expr "X$1" : 'X\([^=]*\)='`
31436    ac_optarg=
31437    ac_shift=:
31438    ;;
31439  *)
31440    ac_option=$1
31441    ac_optarg=$2
31442    ac_shift=shift
31443    ;;
31444  esac
31445
31446  case $ac_option in
31447  # Handling of the options.
31448  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31449    ac_cs_recheck=: ;;
31450  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31451    $as_echo "$ac_cs_version"; exit ;;
31452  --config | --confi | --conf | --con | --co | --c )
31453    $as_echo "$ac_cs_config"; exit ;;
31454  --debug | --debu | --deb | --de | --d | -d )
31455    debug=: ;;
31456  --file | --fil | --fi | --f )
31457    $ac_shift
31458    case $ac_optarg in
31459    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31460    '') as_fn_error $? "missing file argument" ;;
31461    esac
31462    as_fn_append CONFIG_FILES " '$ac_optarg'"
31463    ac_need_defaults=false;;
31464  --header | --heade | --head | --hea )
31465    $ac_shift
31466    case $ac_optarg in
31467    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31468    esac
31469    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31470    ac_need_defaults=false;;
31471  --he | --h)
31472    # Conflict between --help and --header
31473    as_fn_error $? "ambiguous option: \`$1'
31474Try \`$0 --help' for more information.";;
31475  --help | --hel | -h )
31476    $as_echo "$ac_cs_usage"; exit ;;
31477  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31478  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31479    ac_cs_silent=: ;;
31480
31481  # This is an error.
31482  -*) as_fn_error $? "unrecognized option: \`$1'
31483Try \`$0 --help' for more information." ;;
31484
31485  *) as_fn_append ac_config_targets " $1"
31486     ac_need_defaults=false ;;
31487
31488  esac
31489  shift
31490done
31491
31492ac_configure_extra_args=
31493
31494if $ac_cs_silent; then
31495  exec 6>/dev/null
31496  ac_configure_extra_args="$ac_configure_extra_args --silent"
31497fi
31498
31499_ACEOF
31500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31501if \$ac_cs_recheck; then
31502  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31503  shift
31504  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31505  CONFIG_SHELL='$SHELL'
31506  export CONFIG_SHELL
31507  exec "\$@"
31508fi
31509
31510_ACEOF
31511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31512exec 5>>config.log
31513{
31514  echo
31515  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31516## Running $as_me. ##
31517_ASBOX
31518  $as_echo "$ac_log"
31519} >&5
31520
31521_ACEOF
31522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31523#
31524# INIT-COMMANDS
31525#
31526ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31527subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31528subdirs='$subdirs'
31529
31530_ACEOF
31531
31532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31533
31534# Handling of arguments.
31535for ac_config_target in $ac_config_targets
31536do
31537  case $ac_config_target in
31538    "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
31539    "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31540    "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
31541    "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
31542    "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31543    "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
31544    "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31545    "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
31546    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31547
31548  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31549  esac
31550done
31551
31552
31553# If the user did not use the arguments to specify the items to instantiate,
31554# then the envvar interface is used.  Set only those that are not.
31555# We use the long form for the default assignment because of an extremely
31556# bizarre bug on SunOS 4.1.3.
31557if $ac_need_defaults; then
31558  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31559  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31560  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31561  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31562fi
31563
31564# Have a temporary directory for convenience.  Make it in the build tree
31565# simply because there is no reason against having it here, and in addition,
31566# creating and moving files from /tmp can sometimes cause problems.
31567# Hook for its removal unless debugging.
31568# Note that there is a small window in which the directory will not be cleaned:
31569# after its creation but before its name has been assigned to `$tmp'.
31570$debug ||
31571{
31572  tmp= ac_tmp=
31573  trap 'exit_status=$?
31574  : "${ac_tmp:=$tmp}"
31575  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31576' 0
31577  trap 'as_fn_exit 1' 1 2 13 15
31578}
31579# Create a (secure) tmp directory for tmp files.
31580
31581{
31582  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31583  test -d "$tmp"
31584}  ||
31585{
31586  tmp=./conf$$-$RANDOM
31587  (umask 077 && mkdir "$tmp")
31588} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31589ac_tmp=$tmp
31590
31591# Set up the scripts for CONFIG_FILES section.
31592# No need to generate them if there are no CONFIG_FILES.
31593# This happens for instance with `./config.status config.h'.
31594if test -n "$CONFIG_FILES"; then
31595
31596if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31597  ac_cs_awk_getline=:
31598  ac_cs_awk_pipe_init=
31599  ac_cs_awk_read_file='
31600      while ((getline aline < (F[key])) > 0)
31601	print(aline)
31602      close(F[key])'
31603  ac_cs_awk_pipe_fini=
31604else
31605  ac_cs_awk_getline=false
31606  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31607  ac_cs_awk_read_file='
31608      print "|#_!!_#|"
31609      print "cat " F[key] " &&"
31610      '$ac_cs_awk_pipe_init
31611  # The final `:' finishes the AND list.
31612  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31613fi
31614ac_cr=`echo X | tr X '\015'`
31615# On cygwin, bash can eat \r inside `` if the user requested igncr.
31616# But we know of no other shell where ac_cr would be empty at this
31617# point, so we can use a bashism as a fallback.
31618if test "x$ac_cr" = x; then
31619  eval ac_cr=\$\'\\r\'
31620fi
31621ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31622if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31623  ac_cs_awk_cr='\\r'
31624else
31625  ac_cs_awk_cr=$ac_cr
31626fi
31627
31628echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31629_ACEOF
31630
31631# Create commands to substitute file output variables.
31632{
31633  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31634  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31635  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31636  echo "_ACAWK" &&
31637  echo "_ACEOF"
31638} >conf$$files.sh &&
31639. ./conf$$files.sh ||
31640  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31641rm -f conf$$files.sh
31642
31643{
31644  echo "cat >conf$$subs.awk <<_ACEOF" &&
31645  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31646  echo "_ACEOF"
31647} >conf$$subs.sh ||
31648  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31649ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31650ac_delim='%!_!# '
31651for ac_last_try in false false false false false :; do
31652  . ./conf$$subs.sh ||
31653    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31654
31655  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31656  if test $ac_delim_n = $ac_delim_num; then
31657    break
31658  elif $ac_last_try; then
31659    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31660  else
31661    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31662  fi
31663done
31664rm -f conf$$subs.sh
31665
31666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31667cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31668_ACEOF
31669sed -n '
31670h
31671s/^/S["/; s/!.*/"]=/
31672p
31673g
31674s/^[^!]*!//
31675:repl
31676t repl
31677s/'"$ac_delim"'$//
31678t delim
31679:nl
31680h
31681s/\(.\{148\}\)..*/\1/
31682t more1
31683s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31684p
31685n
31686b repl
31687:more1
31688s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31689p
31690g
31691s/.\{148\}//
31692t nl
31693:delim
31694h
31695s/\(.\{148\}\)..*/\1/
31696t more2
31697s/["\\]/\\&/g; s/^/"/; s/$/"/
31698p
31699b
31700:more2
31701s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31702p
31703g
31704s/.\{148\}//
31705t delim
31706' <conf$$subs.awk | sed '
31707/^[^""]/{
31708  N
31709  s/\n//
31710}
31711' >>$CONFIG_STATUS || ac_write_fail=1
31712rm -f conf$$subs.awk
31713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31714_ACAWK
31715cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31716  for (key in S) S_is_set[key] = 1
31717  FS = ""
31718  \$ac_cs_awk_pipe_init
31719}
31720{
31721  line = $ 0
31722  nfields = split(line, field, "@")
31723  substed = 0
31724  len = length(field[1])
31725  for (i = 2; i < nfields; i++) {
31726    key = field[i]
31727    keylen = length(key)
31728    if (S_is_set[key]) {
31729      value = S[key]
31730      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31731      len += length(value) + length(field[++i])
31732      substed = 1
31733    } else
31734      len += 1 + keylen
31735  }
31736  if (nfields == 3 && !substed) {
31737    key = field[2]
31738    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
31739      \$ac_cs_awk_read_file
31740      next
31741    }
31742  }
31743  print line
31744}
31745\$ac_cs_awk_pipe_fini
31746_ACAWK
31747_ACEOF
31748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31749if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31750  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31751else
31752  cat
31753fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31754  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31755_ACEOF
31756
31757# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31758# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31759# trailing colons and then remove the whole line if VPATH becomes empty
31760# (actually we leave an empty line to preserve line numbers).
31761if test "x$srcdir" = x.; then
31762  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
31763h
31764s///
31765s/^/:/
31766s/[	 ]*$/:/
31767s/:\$(srcdir):/:/g
31768s/:\${srcdir}:/:/g
31769s/:@srcdir@:/:/g
31770s/^:*//
31771s/:*$//
31772x
31773s/\(=[	 ]*\).*/\1/
31774G
31775s/\n//
31776s/^[^=]*=[	 ]*$//
31777}'
31778fi
31779
31780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31781fi # test -n "$CONFIG_FILES"
31782
31783# Set up the scripts for CONFIG_HEADERS section.
31784# No need to generate them if there are no CONFIG_HEADERS.
31785# This happens for instance with `./config.status Makefile'.
31786if test -n "$CONFIG_HEADERS"; then
31787cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31788BEGIN {
31789_ACEOF
31790
31791# Transform confdefs.h into an awk script `defines.awk', embedded as
31792# here-document in config.status, that substitutes the proper values into
31793# config.h.in to produce config.h.
31794
31795# Create a delimiter string that does not exist in confdefs.h, to ease
31796# handling of long lines.
31797ac_delim='%!_!# '
31798for ac_last_try in false false :; do
31799  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31800  if test -z "$ac_tt"; then
31801    break
31802  elif $ac_last_try; then
31803    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31804  else
31805    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31806  fi
31807done
31808
31809# For the awk script, D is an array of macro values keyed by name,
31810# likewise P contains macro parameters if any.  Preserve backslash
31811# newline sequences.
31812
31813ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31814sed -n '
31815s/.\{148\}/&'"$ac_delim"'/g
31816t rset
31817:rset
31818s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
31819t def
31820d
31821:def
31822s/\\$//
31823t bsnl
31824s/["\\]/\\&/g
31825s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31826D["\1"]=" \3"/p
31827s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
31828d
31829:bsnl
31830s/["\\]/\\&/g
31831s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31832D["\1"]=" \3\\\\\\n"\\/p
31833t cont
31834s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31835t cont
31836d
31837:cont
31838n
31839s/.\{148\}/&'"$ac_delim"'/g
31840t clear
31841:clear
31842s/\\$//
31843t bsnlc
31844s/["\\]/\\&/g; s/^/"/; s/$/"/p
31845d
31846:bsnlc
31847s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31848b cont
31849' <confdefs.h | sed '
31850s/'"$ac_delim"'/"\\\
31851"/g' >>$CONFIG_STATUS || ac_write_fail=1
31852
31853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31854  for (key in D) D_is_set[key] = 1
31855  FS = ""
31856}
31857/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31858  line = \$ 0
31859  split(line, arg, " ")
31860  if (arg[1] == "#") {
31861    defundef = arg[2]
31862    mac1 = arg[3]
31863  } else {
31864    defundef = substr(arg[1], 2)
31865    mac1 = arg[2]
31866  }
31867  split(mac1, mac2, "(") #)
31868  macro = mac2[1]
31869  prefix = substr(line, 1, index(line, defundef) - 1)
31870  if (D_is_set[macro]) {
31871    # Preserve the white space surrounding the "#".
31872    print prefix "define", macro P[macro] D[macro]
31873    next
31874  } else {
31875    # Replace #undef with comments.  This is necessary, for example,
31876    # in the case of _POSIX_SOURCE, which is predefined and required
31877    # on some systems where configure will not decide to define it.
31878    if (defundef == "undef") {
31879      print "/*", prefix defundef, macro, "*/"
31880      next
31881    }
31882  }
31883}
31884{ print }
31885_ACAWK
31886_ACEOF
31887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31888  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31889fi # test -n "$CONFIG_HEADERS"
31890
31891
31892eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
31893shift
31894for ac_tag
31895do
31896  case $ac_tag in
31897  :[FHLC]) ac_mode=$ac_tag; continue;;
31898  esac
31899  case $ac_mode$ac_tag in
31900  :[FHL]*:*);;
31901  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31902  :[FH]-) ac_tag=-:-;;
31903  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31904  esac
31905  ac_save_IFS=$IFS
31906  IFS=:
31907  set x $ac_tag
31908  IFS=$ac_save_IFS
31909  shift
31910  ac_file=$1
31911  shift
31912
31913  case $ac_mode in
31914  :L) ac_source=$1;;
31915  :[FH])
31916    ac_file_inputs=
31917    for ac_f
31918    do
31919      case $ac_f in
31920      -) ac_f="$ac_tmp/stdin";;
31921      *) # Look for the file first in the build tree, then in the source tree
31922	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
31923	 # because $ac_f cannot contain `:'.
31924	 test -f "$ac_f" ||
31925	   case $ac_f in
31926	   [\\/$]*) false;;
31927	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31928	   esac ||
31929	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31930      esac
31931      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31932      as_fn_append ac_file_inputs " '$ac_f'"
31933    done
31934
31935    # Let's still pretend it is `configure' which instantiates (i.e., don't
31936    # use $as_me), people would be surprised to read:
31937    #    /* config.h.  Generated by config.status.  */
31938    configure_input='Generated from '`
31939	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31940	`' by configure.'
31941    if test x"$ac_file" != x-; then
31942      configure_input="$ac_file.  $configure_input"
31943      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31944$as_echo "$as_me: creating $ac_file" >&6;}
31945    fi
31946    # Neutralize special characters interpreted by sed in replacement strings.
31947    case $configure_input in #(
31948    *\&* | *\|* | *\\* )
31949       ac_sed_conf_input=`$as_echo "$configure_input" |
31950       sed 's/[\\\\&|]/\\\\&/g'`;; #(
31951    *) ac_sed_conf_input=$configure_input;;
31952    esac
31953
31954    case $ac_tag in
31955    *:-:* | *:-) cat >"$ac_tmp/stdin" \
31956      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31957    esac
31958    ;;
31959  esac
31960
31961  ac_dir=`$as_dirname -- "$ac_file" ||
31962$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31963	 X"$ac_file" : 'X\(//\)[^/]' \| \
31964	 X"$ac_file" : 'X\(//\)$' \| \
31965	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31966$as_echo X"$ac_file" |
31967    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31968	    s//\1/
31969	    q
31970	  }
31971	  /^X\(\/\/\)[^/].*/{
31972	    s//\1/
31973	    q
31974	  }
31975	  /^X\(\/\/\)$/{
31976	    s//\1/
31977	    q
31978	  }
31979	  /^X\(\/\).*/{
31980	    s//\1/
31981	    q
31982	  }
31983	  s/.*/./; q'`
31984  as_dir="$ac_dir"; as_fn_mkdir_p
31985  ac_builddir=.
31986
31987case "$ac_dir" in
31988.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31989*)
31990  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31991  # A ".." for each directory in $ac_dir_suffix.
31992  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31993  case $ac_top_builddir_sub in
31994  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31995  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31996  esac ;;
31997esac
31998ac_abs_top_builddir=$ac_pwd
31999ac_abs_builddir=$ac_pwd$ac_dir_suffix
32000# for backward compatibility:
32001ac_top_builddir=$ac_top_build_prefix
32002
32003case $srcdir in
32004  .)  # We are building in place.
32005    ac_srcdir=.
32006    ac_top_srcdir=$ac_top_builddir_sub
32007    ac_abs_top_srcdir=$ac_pwd ;;
32008  [\\/]* | ?:[\\/]* )  # Absolute name.
32009    ac_srcdir=$srcdir$ac_dir_suffix;
32010    ac_top_srcdir=$srcdir
32011    ac_abs_top_srcdir=$srcdir ;;
32012  *) # Relative name.
32013    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32014    ac_top_srcdir=$ac_top_build_prefix$srcdir
32015    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32016esac
32017ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32018
32019
32020  case $ac_mode in
32021  :F)
32022  #
32023  # CONFIG_FILE
32024  #
32025
32026_ACEOF
32027
32028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32029# If the template does not know about datarootdir, expand it.
32030# FIXME: This hack should be removed a few years after 2.60.
32031ac_datarootdir_hack=; ac_datarootdir_seen=
32032ac_sed_dataroot='
32033/datarootdir/ {
32034  p
32035  q
32036}
32037/@datadir@/p
32038/@docdir@/p
32039/@infodir@/p
32040/@localedir@/p
32041/@mandir@/p'
32042case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32043*datarootdir*) ac_datarootdir_seen=yes;;
32044*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32045  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32046$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32047_ACEOF
32048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32049  ac_datarootdir_hack='
32050  s&@datadir@&$datadir&g
32051  s&@docdir@&$docdir&g
32052  s&@infodir@&$infodir&g
32053  s&@localedir@&$localedir&g
32054  s&@mandir@&$mandir&g
32055  s&\\\${datarootdir}&$datarootdir&g' ;;
32056esac
32057_ACEOF
32058
32059# Neutralize VPATH when `$srcdir' = `.'.
32060# Shell code in configure.ac might set extrasub.
32061# FIXME: do we really want to maintain this feature?
32062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32063ac_sed_extra="$ac_vpsub
32064$extrasub
32065_ACEOF
32066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32067:t
32068/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32069s|@configure_input@|$ac_sed_conf_input|;t t
32070s&@top_builddir@&$ac_top_builddir_sub&;t t
32071s&@top_build_prefix@&$ac_top_build_prefix&;t t
32072s&@srcdir@&$ac_srcdir&;t t
32073s&@abs_srcdir@&$ac_abs_srcdir&;t t
32074s&@top_srcdir@&$ac_top_srcdir&;t t
32075s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32076s&@builddir@&$ac_builddir&;t t
32077s&@abs_builddir@&$ac_abs_builddir&;t t
32078s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32079$ac_datarootdir_hack
32080"
32081eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32082if $ac_cs_awk_getline; then
32083  $AWK -f "$ac_tmp/subs.awk"
32084else
32085  $AWK -f "$ac_tmp/subs.awk" | $SHELL
32086fi \
32087  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32088
32089test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32090  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32091  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
32092      "$ac_tmp/out"`; test -z "$ac_out"; } &&
32093  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32094which seems to be undefined.  Please make sure it is defined" >&5
32095$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32096which seems to be undefined.  Please make sure it is defined" >&2;}
32097
32098  rm -f "$ac_tmp/stdin"
32099  case $ac_file in
32100  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32101  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32102  esac \
32103  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32104 ;;
32105  :H)
32106  #
32107  # CONFIG_HEADER
32108  #
32109  if test x"$ac_file" != x-; then
32110    {
32111      $as_echo "/* $configure_input  */" \
32112      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32113    } >"$ac_tmp/config.h" \
32114      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32115    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32116      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32117$as_echo "$as_me: $ac_file is unchanged" >&6;}
32118    else
32119      rm -f "$ac_file"
32120      mv "$ac_tmp/config.h" "$ac_file" \
32121	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
32122    fi
32123  else
32124    $as_echo "/* $configure_input  */" \
32125      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32126      || as_fn_error $? "could not create -" "$LINENO" 5
32127  fi
32128 ;;
32129  :L)
32130  #
32131  # CONFIG_LINK
32132  #
32133
32134  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32135    :
32136  else
32137    # Prefer the file from the source tree if names are identical.
32138    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32139      ac_source=$srcdir/$ac_source
32140    fi
32141
32142    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32143$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32144
32145    if test ! -r "$ac_source"; then
32146      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32147    fi
32148    rm -f "$ac_file"
32149
32150    # Try a relative symlink, then a hard link, then a copy.
32151    case $ac_source in
32152    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32153	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32154    esac
32155    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32156      ln "$ac_source" "$ac_file" 2>/dev/null ||
32157      cp -p "$ac_source" "$ac_file" ||
32158      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32159  fi
32160 ;;
32161  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32162$as_echo "$as_me: executing $ac_file commands" >&6;}
32163 ;;
32164  esac
32165
32166
32167  case $ac_file$ac_mode in
32168    "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32169    "gccdepdir":C)
32170  ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32171  for lang in $subdirs c-family common analyzer
32172  do
32173      ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32174  done ;;
32175    "as":F) chmod +x as ;;
32176    "collect-ld":F) chmod +x collect-ld ;;
32177    "nm":F) chmod +x nm ;;
32178    "default":C)
32179case ${CONFIG_HEADERS} in
32180  *auto-host.h:config.in*)
32181  echo > cstamp-h ;;
32182esac
32183# Make sure all the subdirs exist.
32184for d in $subdirs doc build common c-family
32185do
32186    test -d $d || mkdir $d
32187done
32188 ;;
32189
32190  esac
32191done # for ac_tag
32192
32193
32194as_fn_exit 0
32195_ACEOF
32196ac_clean_files=$ac_clean_files_save
32197
32198test $ac_write_fail = 0 ||
32199  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32200
32201
32202# configure is writing to config.log, and then calls config.status.
32203# config.status does its own redirection, appending to config.log.
32204# Unfortunately, on DOS this fails, as config.log is still kept open
32205# by configure, so config.status won't be able to write to it; its
32206# output is simply discarded.  So we exec the FD to /dev/null,
32207# effectively closing config.log, so it can be properly (re)opened and
32208# appended to by config.status.  When coming back to configure, we
32209# need to make the FD available again.
32210if test "$no_create" != yes; then
32211  ac_cs_success=:
32212  ac_config_status_args=
32213  test "$silent" = yes &&
32214    ac_config_status_args="$ac_config_status_args --quiet"
32215  exec 5>/dev/null
32216  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32217  exec 5>>config.log
32218  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32219  # would make configure fail if this is the last instruction.
32220  $ac_cs_success || as_fn_exit 1
32221fi
32222if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32223  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32224$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32225fi
32226
32227
32228