Home | History | Annotate | Line # | Download | only in gcc
      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
     16 DUALCASE=1; export DUALCASE # for MKS sh
     17 if 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
     24 else
     25   case `(set -o) 2>/dev/null` in #(
     26   *posix*) :
     27     set -o posix ;; #(
     28   *) :
     29      ;;
     30 esac
     31 fi
     32 
     33 
     34 as_nl='
     35 '
     36 export as_nl
     37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     40 as_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.
     43 if 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 --'
     47 elif (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'
     50 else
     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'
     70 fi
     71 
     72 # The user is always right.
     73 if 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   }
     79 fi
     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.)
     87 IFS=" ""	$as_nl"
     88 
     89 # Find who we are.  Look in the path if we contain no directory separator.
     90 as_myself=
     91 case $0 in #((
     92   *[\\/]* ) as_myself=$0 ;;
     93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     94 for as_dir in $PATH
     95 do
     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
    100 IFS=$as_save_IFS
    101 
    102      ;;
    103 esac
    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.
    106 if test "x$as_myself" = x; then
    107   as_myself=$0
    108 fi
    109 if test ! -f "$as_myself"; then
    110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    111   exit 1
    112 fi
    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.
    118 for as_var in BASH_ENV ENV MAIL MAILPATH
    119 do eval test x\${$as_var+set} = xset \
    120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    121 done
    122 PS1='$ '
    123 PS2='> '
    124 PS4='+ '
    125 
    126 # NLS nuisances.
    127 LC_ALL=C
    128 export LC_ALL
    129 LANGUAGE=C
    130 export 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.
    143 BASH_ENV=/dev/null
    144 ENV=/dev/null
    145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    146 case $- in # ((((
    147   *v*x* | *x*v* ) as_opts=-vx ;;
    148   *v* ) as_opts=-v ;;
    149   *x* ) as_opts=-x ;;
    150   * ) as_opts= ;;
    151 esac
    152 exec $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
    156 as_fn_exit 255
    157   fi
    158   # We don't want this to propagate to other subprocesses.
    159           { _as_can_reexec=; unset _as_can_reexec;}
    160 if 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
    168 else
    169   case \`(set -o) 2>/dev/null\` in #(
    170   *posix*) :
    171     set -o posix ;; #(
    172   *) :
    173      ;;
    174 esac
    175 fi
    176 "
    177   as_required="as_fn_return () { (exit \$1); }
    178 as_fn_success () { as_fn_return 0; }
    179 as_fn_failure () { as_fn_return 1; }
    180 as_fn_ret_success () { return 0; }
    181 as_fn_ret_failure () { return 1; }
    182 
    183 exitcode=0
    184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    189 
    190 else
    191   exitcode=1; echo positional parameters were not saved.
    192 fi
    193 test x\$exitcode = x0 || exit 1
    194 test -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
    199 test \$(( 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
    210 else
    211   as_have_required=no
    212 fi
    213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    214 
    215 else
    216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    217 as_found=false
    218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    219 do
    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
    233 fi
    234 fi
    235 	   done;;
    236        esac
    237   as_found=false
    238 done
    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
    242 fi; }
    243 IFS=$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.
    252 BASH_ENV=/dev/null
    253 ENV=/dev/null
    254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    255 case $- in # ((((
    256   *v*x* | *x*v* ) as_opts=-vx ;;
    257   *v* ) as_opts=-v ;;
    258   *x* ) as_opts=-x ;;
    259   * ) as_opts= ;;
    260 esac
    261 exec $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
    265 exit 255
    266 fi
    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 (at] 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
    281 fi
    282 fi
    283 fi
    284 SHELL=${CONFIG_SHELL-/bin/sh}
    285 export SHELL
    286 # Unset more variables known to interfere with behavior of common tools.
    287 CLICOLOR_FORCE= GREP_OPTIONS=
    288 unset CLICOLOR_FORCE GREP_OPTIONS
    289 
    290 ## --------------------- ##
    291 ## M4sh Shell Functions. ##
    292 ## --------------------- ##
    293 # as_fn_unset VAR
    294 # ---------------
    295 # Portably unset VAR.
    296 as_fn_unset ()
    297 {
    298   { eval $1=; unset $1;}
    299 }
    300 as_unset=as_fn_unset
    301 
    302 # as_fn_set_status STATUS
    303 # -----------------------
    304 # Set $? to STATUS, without forking.
    305 as_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.
    313 as_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.
    323 as_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.
    371 as_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.
    381 if (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   }'
    386 else
    387   as_fn_append ()
    388   {
    389     eval $1=\$$1\$2
    390   }
    391 fi # 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.
    398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    399   eval 'as_fn_arith ()
    400   {
    401     as_val=$(( $* ))
    402   }'
    403 else
    404   as_fn_arith ()
    405   {
    406     as_val=`expr "$@" || test $? -eq 1`
    407   }
    408 fi # 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.
    416 as_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 
    427 if expr a : '\(a\)' >/dev/null 2>&1 &&
    428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    429   as_expr=expr
    430 else
    431   as_expr=false
    432 fi
    433 
    434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    435   as_basename=basename
    436 else
    437   as_basename=false
    438 fi
    439 
    440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    441   as_dirname=dirname
    442 else
    443   as_dirname=false
    444 fi
    445 
    446 as_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.
    466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    469 as_cr_digits='0123456789'
    470 as_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 
    508 ECHO_C= ECHO_N= ECHO_T=
    509 case `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';;
    519 esac
    520 
    521 rm -f conf$$ conf$$.exe conf$$.file
    522 if test -d conf$$.dir; then
    523   rm -f conf$$.dir/conf$$.file
    524 else
    525   rm -f conf$$.dir
    526   mkdir conf$$.dir 2>/dev/null
    527 fi
    528 if (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
    542 else
    543   as_ln_s='cp -pR'
    544 fi
    545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    546 rmdir conf$$.dir 2>/dev/null
    547 
    548 if mkdir -p . 2>/dev/null; then
    549   as_mkdir_p='mkdir -p "$as_dir"'
    550 else
    551   test -d ./-p && rmdir ./-p
    552   as_mkdir_p=false
    553 fi
    554 
    555 as_test_x='test -x'
    556 as_executable_p=as_fn_executable_p
    557 
    558 # Sed expression to map a string onto a valid CPP name.
    559 as_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.
    562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    563 
    564 SHELL=${CONFIG_SHELL-/bin/sh}
    565 
    566 
    567 test -n "$DJDIR" || exec 7<&0 </dev/null
    568 exec 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.
    573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    574 
    575 #
    576 # Initializations.
    577 #
    578 ac_default_prefix=/usr/local
    579 ac_clean_files=
    580 ac_config_libobj_dir=.
    581 LIBOBJS=
    582 cross_compiling=no
    583 subdirs=
    584 MFLAGS=
    585 MAKEFLAGS=
    586 
    587 # Identity of this package.
    588 PACKAGE_NAME=
    589 PACKAGE_TARNAME=
    590 PACKAGE_VERSION=
    591 PACKAGE_STRING=
    592 PACKAGE_BUGREPORT=
    593 PACKAGE_URL=
    594 
    595 ac_unique_file="tree.cc"
    596 # Factoring default headers for most tests.
    597 ac_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 
    632 ac_subst_vars='LTLIBOBJS
    633 LIBOBJS
    634 CET_HOST_FLAGS
    635 NO_PIE_FLAG
    636 NO_PIE_CFLAGS
    637 enable_default_pie
    638 PICFLAG
    639 enable_host_shared
    640 enable_plugin
    641 pluginlibs
    642 ISLINC
    643 ISLLIBS
    644 GMPINC
    645 GMPLIBS
    646 target_cpu_default
    647 d_target_objs
    648 fortran_target_objs
    649 cxx_target_objs
    650 c_target_objs
    651 use_gcc_stdint
    652 xm_defines
    653 xm_include_list
    654 xm_file_list
    655 tm_d_include_list
    656 tm_d_file_list
    657 tm_p_include_list
    658 tm_p_file_list
    659 tm_defines
    660 tm_include_list
    661 tm_file_list
    662 common_out_object_file
    663 common_out_file
    664 out_object_file
    665 out_file
    666 objc_boehm_gc
    667 md_file
    668 local_prefix
    669 lang_tree_files
    670 lang_specs_files
    671 lang_opt_files
    672 install
    673 out_host_hook_obj
    674 host_xm_defines
    675 host_xm_include_list
    676 host_xm_file_list
    677 host_exeext
    678 gcc_gxx_libcxx_include_dir_add_sysroot
    679 gcc_gxx_libcxx_include_dir
    680 gcc_gxx_include_dir_add_sysroot
    681 gcc_gxx_include_dir
    682 gcc_config_arguments
    683 float_h_file
    684 extra_programs
    685 extra_objs
    686 extra_headers_list
    687 user_headers_inc_next_post
    688 user_headers_inc_next_pre
    689 extra_gcc_objs
    690 TM_MULTILIB_EXCEPTIONS_CONFIG
    691 TM_MULTILIB_CONFIG
    692 TM_ENDIAN_CONFIG
    693 tmake_file
    694 xmake_file
    695 cpp_install_dir
    696 selftest_languages
    697 check_languages
    698 build_file_translate
    699 build_xm_defines
    700 build_xm_include_list
    701 build_xm_file_list
    702 build_install_headers_dir
    703 build_exeext
    704 all_selected_languages
    705 all_languages
    706 all_lang_makefrags
    707 all_lang_configurefrags
    708 all_gtfiles
    709 all_compilers
    710 srcdir
    711 subdirs
    712 dollar
    713 gcc_tooldir
    714 enable_lto
    715 DO_LINK_SERIALIZATION
    716 DO_LINK_MUTEX
    717 CSCOPE
    718 ETAGS
    719 CTAGS
    720 MAINT
    721 zlibinc
    722 zlibdir
    723 HOST_LIBS
    724 enable_default_ssp
    725 thin_archive_support
    726 ld_soname_option
    727 ld_version_script_option
    728 libgcc_visibility
    729 ORIGINAL_DSYMUTIL_FOR_TARGET
    730 gcc_cv_dsymutil
    731 gcc_cv_otool
    732 gcc_cv_readelf
    733 gcc_cv_objdump
    734 ORIGINAL_NM_FOR_TARGET
    735 gcc_cv_nm
    736 ORIGINAL_LD_GOLD_FOR_TARGET
    737 ORIGINAL_LD_BFD_FOR_TARGET
    738 ORIGINAL_LD_FOR_TARGET
    739 ORIGINAL_PLUGIN_LD_FOR_TARGET
    740 gcc_cv_ld
    741 ORIGINAL_AS_FOR_TARGET
    742 gcc_cv_as
    743 enable_fast_install
    744 objdir
    745 OTOOL64
    746 OTOOL
    747 LIPO
    748 NMEDIT
    749 DSYMUTIL
    750 STRIP
    751 OBJDUMP
    752 ac_ct_DUMPBIN
    753 DUMPBIN
    754 LD
    755 FGREP
    756 SED
    757 LIBTOOL
    758 collect2
    759 STMP_FIXINC
    760 BUILD_LDFLAGS
    761 BUILD_CXXFLAGS
    762 BUILD_CFLAGS
    763 CXX_FOR_BUILD
    764 CC_FOR_BUILD
    765 inhibit_libc
    766 BUILD_SYSTEM_HEADER_DIR
    767 SYSTEM_HEADER_DIR
    768 ALL
    769 CROSS
    770 CATOBJEXT
    771 GENCAT
    772 INSTOBJEXT
    773 DATADIRNAME
    774 CATALOGS
    775 POSUB
    776 GMSGFMT
    777 XGETTEXT
    778 INCINTL
    779 LIBINTL_DEP
    780 LIBINTL
    781 USE_NLS
    782 get_gcc_base_ver
    783 HAVE_AUTO_BUILD
    784 extra_opt_files
    785 extra_modes_file
    786 NATIVE_SYSTEM_HEADER_DIR
    787 objext
    788 manext
    789 LIBICONV_DEP
    790 LTLIBICONV
    791 LIBICONV
    792 ZSTD_LDFLAGS
    793 ZSTD_CPPFLAGS
    794 ZSTD_LIB
    795 ZSTD_INCLUDE
    796 DL_LIB
    797 LDEXP_LIB
    798 NETLIBS
    799 EXTRA_GCC_LIBS
    800 GNAT_LIBEXC
    801 COLLECT2_LIBS
    802 CXXDEPMODE
    803 DEPDIR
    804 am__leading_dot
    805 doc_build_sys
    806 AR
    807 NM
    808 BISON
    809 FLEX
    810 GENERATED_MANPAGES
    811 BUILD_INFO
    812 MAKEINFO
    813 have_mktemp_command
    814 make_compare_target
    815 INSTALL_DATA
    816 INSTALL_PROGRAM
    817 INSTALL
    818 ranlib_flags
    819 RANLIB
    820 LN
    821 LN_S
    822 AWK
    823 SET_MAKE
    824 omp_device_property_deps
    825 omp_device_properties
    826 accel_dir_suffix
    827 real_target_noncanonical
    828 enable_as_accelerator
    829 gnat_install_lib
    830 REPORT_BUGS_TEXI
    831 REPORT_BUGS_TO
    832 PKGVERSION
    833 CONFIGURE_SPECS
    834 enable_gcov
    835 enable_shared
    836 enable_fixed_point
    837 enable_decimal_float
    838 with_float
    839 with_cpu
    840 enable_multiarch
    841 enable_multilib
    842 coverage_flags
    843 valgrind_command
    844 valgrind_path_defines
    845 valgrind_path
    846 TREECHECKING
    847 nocommon_flag
    848 noexception_flags
    849 warn_cxxflags
    850 warn_cflags
    851 c_strict_warn
    852 strict_warn
    853 c_loose_warn
    854 loose_warn
    855 aliasing_flags
    856 CPP
    857 EGREP
    858 GREP
    859 CXXCPP
    860 PICFLAG_FOR_TARGET
    861 GDCFLAGS
    862 GDC
    863 GNATMAKE
    864 GNATBIND
    865 ac_ct_CXX
    866 CXXFLAGS
    867 CXX
    868 OBJEXT
    869 EXEEXT
    870 ac_ct_CC
    871 CPPFLAGS
    872 LDFLAGS
    873 CFLAGS
    874 CC
    875 GENINSRC
    876 CROSS_SYSTEM_HEADER_DIR
    877 TARGET_SYSTEM_ROOT_DEFINE
    878 TARGET_SYSTEM_ROOT
    879 SYSROOT_CFLAGS_FOR_TARGET
    880 target_subdir
    881 host_subdir
    882 build_subdir
    883 build_libsubdir
    884 target_noncanonical
    885 host_noncanonical
    886 target_os
    887 target_vendor
    888 target_cpu
    889 target
    890 host_os
    891 host_vendor
    892 host_cpu
    893 host
    894 build_os
    895 build_vendor
    896 build_cpu
    897 build
    898 target_alias
    899 host_alias
    900 build_alias
    901 LIBS
    902 ECHO_T
    903 ECHO_N
    904 ECHO_C
    905 DEFS
    906 mandir
    907 localedir
    908 libdir
    909 psdir
    910 pdfdir
    911 dvidir
    912 htmldir
    913 infodir
    914 docdir
    915 oldincludedir
    916 includedir
    917 localstatedir
    918 sharedstatedir
    919 sysconfdir
    920 datadir
    921 datarootdir
    922 libexecdir
    923 sbindir
    924 bindir
    925 program_transform_name
    926 prefix
    927 exec_prefix
    928 PACKAGE_URL
    929 PACKAGE_BUGREPORT
    930 PACKAGE_STRING
    931 PACKAGE_VERSION
    932 PACKAGE_TARNAME
    933 PACKAGE_NAME
    934 PATH_SEPARATOR
    935 SHELL'
    936 ac_subst_files='option_includes
    937 language_hooks'
    938 ac_user_opts='
    939 enable_option_checking
    940 with_build_libsubdir
    941 with_local_prefix
    942 with_native_system_header_dir
    943 with_build_sysroot
    944 with_sysroot
    945 with_gxx_include_dir
    946 with_gxx_libcxx_include_dir
    947 with_cpp_install_dir
    948 enable_generated_files_in_srcdir
    949 with_gnu_ld
    950 with_ld
    951 with_demangler_in_ld
    952 with_dsymutil
    953 with_gnu_as
    954 with_as
    955 enable_largefile
    956 enable_build_format_warnings
    957 enable_werror_always
    958 enable_checking
    959 enable_coverage
    960 enable_gather_detailed_mem_stats
    961 enable_valgrind_annotations
    962 enable_multilib
    963 enable_multiarch
    964 with_stack_clash_protection_guard_size
    965 enable___cxa_atexit
    966 enable_decimal_float
    967 enable_fixed_point
    968 enable_threads
    969 enable_tls
    970 enable_vtable_verify
    971 enable_analyzer
    972 enable_objc_gc
    973 with_dwarf2
    974 enable_shared
    975 enable_gcov
    976 with_specs
    977 with_pkgversion
    978 with_bugurl
    979 with_documentation_root_url
    980 with_changes_root_url
    981 enable_languages
    982 with_multilib_list
    983 with_multilib_generator
    984 with_zstd
    985 with_zstd_include
    986 with_zstd_lib
    987 enable_rpath
    988 with_libiconv_prefix
    989 with_libiconv_type
    990 enable_sjlj_exceptions
    991 with_gcc_major_version_only
    992 enable_secureplt
    993 enable_mingw_wildcard
    994 enable_large_address_aware
    995 enable_leading_mingw64_underscores
    996 enable_cld
    997 enable_frame_pointer
    998 enable_win32_registry
    999 enable_static
   1000 with_pic
   1001 enable_fast_install
   1002 enable_libtool_lock
   1003 enable_ld
   1004 enable_gold
   1005 with_plugin_ld
   1006 enable_gnu_indirect_function
   1007 enable_initfini_array
   1008 enable_comdat
   1009 enable_newlib_nano_formatted_io
   1010 enable_standard_branch_protection
   1011 enable_fix_cortex_a53_835769
   1012 enable_fix_cortex_a53_843419
   1013 with_glibc_version
   1014 enable_gnu_unique_object
   1015 enable_linker_build_id
   1016 enable_libssp
   1017 enable_default_ssp
   1018 with_long_double_128
   1019 with_long_double_format
   1020 with_gc
   1021 with_system_zlib
   1022 enable_maintainer_mode
   1023 enable_link_mutex
   1024 enable_link_serialization
   1025 enable_version_specific_runtime_libs
   1026 enable_plugin
   1027 enable_host_shared
   1028 enable_libquadmath_support
   1029 with_linker_hash_style
   1030 with_diagnostics_color
   1031 with_diagnostics_urls
   1032 enable_default_pie
   1033 enable_cet
   1034 enable_s390_excess_float_precision
   1035 '
   1036       ac_precious_vars='build_alias
   1037 host_alias
   1038 target_alias
   1039 CC
   1040 CFLAGS
   1041 LDFLAGS
   1042 LIBS
   1043 CPPFLAGS
   1044 CXX
   1045 CXXFLAGS
   1046 CCC
   1047 CXXCPP
   1048 CPP
   1049 GMPLIBS
   1050 GMPINC
   1051 ISLLIBS
   1052 ISLINC'
   1053 
   1054 
   1055 # Initialize some variables set by options.
   1056 ac_init_help=
   1057 ac_init_version=false
   1058 ac_unrecognized_opts=
   1059 ac_unrecognized_sep=
   1060 # The variables have the same names as the options, with
   1061 # dashes changed to underlines.
   1062 cache_file=/dev/null
   1063 exec_prefix=NONE
   1064 no_create=
   1065 no_recursion=
   1066 prefix=NONE
   1067 program_prefix=NONE
   1068 program_suffix=NONE
   1069 program_transform_name=s,x,x,
   1070 silent=
   1071 site=
   1072 srcdir=
   1073 verbose=
   1074 x_includes=NONE
   1075 x_libraries=NONE
   1076 
   1077 # Installation directory options.
   1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
   1079 # and all the variables that are supposed to be based on exec_prefix
   1080 # by default will actually change.
   1081 # Use braces instead of parens because sh, perl, etc. also accept them.
   1082 # (The list follows the same order as the GNU Coding Standards.)
   1083 bindir='${exec_prefix}/bin'
   1084 sbindir='${exec_prefix}/sbin'
   1085 libexecdir='${exec_prefix}/libexec'
   1086 datarootdir='${prefix}/share'
   1087 datadir='${datarootdir}'
   1088 sysconfdir='${prefix}/etc'
   1089 sharedstatedir='${prefix}/com'
   1090 localstatedir='${prefix}/var'
   1091 includedir='${prefix}/include'
   1092 oldincludedir='/usr/include'
   1093 docdir='${datarootdir}/doc/${PACKAGE}'
   1094 infodir='${datarootdir}/info'
   1095 htmldir='${docdir}'
   1096 dvidir='${docdir}'
   1097 pdfdir='${docdir}'
   1098 psdir='${docdir}'
   1099 libdir='${exec_prefix}/lib'
   1100 localedir='${datarootdir}/locale'
   1101 mandir='${datarootdir}/man'
   1102 
   1103 ac_prev=
   1104 ac_dashdash=
   1105 for ac_option
   1106 do
   1107   # If the previous option needs an argument, assign it.
   1108   if test -n "$ac_prev"; then
   1109     eval $ac_prev=\$ac_option
   1110     ac_prev=
   1111     continue
   1112   fi
   1113 
   1114   case $ac_option in
   1115   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1116   *=)   ac_optarg= ;;
   1117   *)    ac_optarg=yes ;;
   1118   esac
   1119 
   1120   # Accept the important Cygnus configure options, so we can diagnose typos.
   1121 
   1122   case $ac_dashdash$ac_option in
   1123   --)
   1124     ac_dashdash=yes ;;
   1125 
   1126   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1127     ac_prev=bindir ;;
   1128   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1129     bindir=$ac_optarg ;;
   1130 
   1131   -build | --build | --buil | --bui | --bu)
   1132     ac_prev=build_alias ;;
   1133   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1134     build_alias=$ac_optarg ;;
   1135 
   1136   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1137   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1138     ac_prev=cache_file ;;
   1139   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1140   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1141     cache_file=$ac_optarg ;;
   1142 
   1143   --config-cache | -C)
   1144     cache_file=config.cache ;;
   1145 
   1146   -datadir | --datadir | --datadi | --datad)
   1147     ac_prev=datadir ;;
   1148   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1149     datadir=$ac_optarg ;;
   1150 
   1151   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1152   | --dataroo | --dataro | --datar)
   1153     ac_prev=datarootdir ;;
   1154   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1155   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1156     datarootdir=$ac_optarg ;;
   1157 
   1158   -disable-* | --disable-*)
   1159     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1160     # Reject names that are not valid shell variable names.
   1161     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1162       as_fn_error $? "invalid feature name: $ac_useropt"
   1163     ac_useropt_orig=$ac_useropt
   1164     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1165     case $ac_user_opts in
   1166       *"
   1167 "enable_$ac_useropt"
   1168 "*) ;;
   1169       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1170 	 ac_unrecognized_sep=', ';;
   1171     esac
   1172     eval enable_$ac_useropt=no ;;
   1173 
   1174   -docdir | --docdir | --docdi | --doc | --do)
   1175     ac_prev=docdir ;;
   1176   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1177     docdir=$ac_optarg ;;
   1178 
   1179   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1180     ac_prev=dvidir ;;
   1181   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1182     dvidir=$ac_optarg ;;
   1183 
   1184   -enable-* | --enable-*)
   1185     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1186     # Reject names that are not valid shell variable names.
   1187     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1188       as_fn_error $? "invalid feature name: $ac_useropt"
   1189     ac_useropt_orig=$ac_useropt
   1190     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1191     case $ac_user_opts in
   1192       *"
   1193 "enable_$ac_useropt"
   1194 "*) ;;
   1195       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1196 	 ac_unrecognized_sep=', ';;
   1197     esac
   1198     eval enable_$ac_useropt=\$ac_optarg ;;
   1199 
   1200   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1201   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1202   | --exec | --exe | --ex)
   1203     ac_prev=exec_prefix ;;
   1204   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1205   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1206   | --exec=* | --exe=* | --ex=*)
   1207     exec_prefix=$ac_optarg ;;
   1208 
   1209   -gas | --gas | --ga | --g)
   1210     # Obsolete; use --with-gas.
   1211     with_gas=yes ;;
   1212 
   1213   -help | --help | --hel | --he | -h)
   1214     ac_init_help=long ;;
   1215   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1216     ac_init_help=recursive ;;
   1217   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1218     ac_init_help=short ;;
   1219 
   1220   -host | --host | --hos | --ho)
   1221     ac_prev=host_alias ;;
   1222   -host=* | --host=* | --hos=* | --ho=*)
   1223     host_alias=$ac_optarg ;;
   1224 
   1225   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1226     ac_prev=htmldir ;;
   1227   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1228   | --ht=*)
   1229     htmldir=$ac_optarg ;;
   1230 
   1231   -includedir | --includedir | --includedi | --included | --include \
   1232   | --includ | --inclu | --incl | --inc)
   1233     ac_prev=includedir ;;
   1234   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1235   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1236     includedir=$ac_optarg ;;
   1237 
   1238   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1239     ac_prev=infodir ;;
   1240   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1241     infodir=$ac_optarg ;;
   1242 
   1243   -libdir | --libdir | --libdi | --libd)
   1244     ac_prev=libdir ;;
   1245   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1246     libdir=$ac_optarg ;;
   1247 
   1248   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1249   | --libexe | --libex | --libe)
   1250     ac_prev=libexecdir ;;
   1251   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1252   | --libexe=* | --libex=* | --libe=*)
   1253     libexecdir=$ac_optarg ;;
   1254 
   1255   -localedir | --localedir | --localedi | --localed | --locale)
   1256     ac_prev=localedir ;;
   1257   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1258     localedir=$ac_optarg ;;
   1259 
   1260   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1261   | --localstate | --localstat | --localsta | --localst | --locals)
   1262     ac_prev=localstatedir ;;
   1263   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1264   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1265     localstatedir=$ac_optarg ;;
   1266 
   1267   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1268     ac_prev=mandir ;;
   1269   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1270     mandir=$ac_optarg ;;
   1271 
   1272   -nfp | --nfp | --nf)
   1273     # Obsolete; use --without-fp.
   1274     with_fp=no ;;
   1275 
   1276   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1277   | --no-cr | --no-c | -n)
   1278     no_create=yes ;;
   1279 
   1280   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1281   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1282     no_recursion=yes ;;
   1283 
   1284   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1285   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1286   | --oldin | --oldi | --old | --ol | --o)
   1287     ac_prev=oldincludedir ;;
   1288   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1289   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1290   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1291     oldincludedir=$ac_optarg ;;
   1292 
   1293   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1294     ac_prev=prefix ;;
   1295   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1296     prefix=$ac_optarg ;;
   1297 
   1298   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1299   | --program-pre | --program-pr | --program-p)
   1300     ac_prev=program_prefix ;;
   1301   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1302   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1303     program_prefix=$ac_optarg ;;
   1304 
   1305   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1306   | --program-suf | --program-su | --program-s)
   1307     ac_prev=program_suffix ;;
   1308   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1309   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1310     program_suffix=$ac_optarg ;;
   1311 
   1312   -program-transform-name | --program-transform-name \
   1313   | --program-transform-nam | --program-transform-na \
   1314   | --program-transform-n | --program-transform- \
   1315   | --program-transform | --program-transfor \
   1316   | --program-transfo | --program-transf \
   1317   | --program-trans | --program-tran \
   1318   | --progr-tra | --program-tr | --program-t)
   1319     ac_prev=program_transform_name ;;
   1320   -program-transform-name=* | --program-transform-name=* \
   1321   | --program-transform-nam=* | --program-transform-na=* \
   1322   | --program-transform-n=* | --program-transform-=* \
   1323   | --program-transform=* | --program-transfor=* \
   1324   | --program-transfo=* | --program-transf=* \
   1325   | --program-trans=* | --program-tran=* \
   1326   | --progr-tra=* | --program-tr=* | --program-t=*)
   1327     program_transform_name=$ac_optarg ;;
   1328 
   1329   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1330     ac_prev=pdfdir ;;
   1331   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1332     pdfdir=$ac_optarg ;;
   1333 
   1334   -psdir | --psdir | --psdi | --psd | --ps)
   1335     ac_prev=psdir ;;
   1336   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1337     psdir=$ac_optarg ;;
   1338 
   1339   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1340   | -silent | --silent | --silen | --sile | --sil)
   1341     silent=yes ;;
   1342 
   1343   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1344     ac_prev=sbindir ;;
   1345   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1346   | --sbi=* | --sb=*)
   1347     sbindir=$ac_optarg ;;
   1348 
   1349   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1350   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1351   | --sharedst | --shareds | --shared | --share | --shar \
   1352   | --sha | --sh)
   1353     ac_prev=sharedstatedir ;;
   1354   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1355   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1356   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1357   | --sha=* | --sh=*)
   1358     sharedstatedir=$ac_optarg ;;
   1359 
   1360   -site | --site | --sit)
   1361     ac_prev=site ;;
   1362   -site=* | --site=* | --sit=*)
   1363     site=$ac_optarg ;;
   1364 
   1365   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1366     ac_prev=srcdir ;;
   1367   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1368     srcdir=$ac_optarg ;;
   1369 
   1370   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1371   | --syscon | --sysco | --sysc | --sys | --sy)
   1372     ac_prev=sysconfdir ;;
   1373   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1374   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1375     sysconfdir=$ac_optarg ;;
   1376 
   1377   -target | --target | --targe | --targ | --tar | --ta | --t)
   1378     ac_prev=target_alias ;;
   1379   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1380     target_alias=$ac_optarg ;;
   1381 
   1382   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1383     verbose=yes ;;
   1384 
   1385   -version | --version | --versio | --versi | --vers | -V)
   1386     ac_init_version=: ;;
   1387 
   1388   -with-* | --with-*)
   1389     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1390     # Reject names that are not valid shell variable names.
   1391     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1392       as_fn_error $? "invalid package name: $ac_useropt"
   1393     ac_useropt_orig=$ac_useropt
   1394     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1395     case $ac_user_opts in
   1396       *"
   1397 "with_$ac_useropt"
   1398 "*) ;;
   1399       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1400 	 ac_unrecognized_sep=', ';;
   1401     esac
   1402     eval with_$ac_useropt=\$ac_optarg ;;
   1403 
   1404   -without-* | --without-*)
   1405     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1406     # Reject names that are not valid shell variable names.
   1407     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1408       as_fn_error $? "invalid package name: $ac_useropt"
   1409     ac_useropt_orig=$ac_useropt
   1410     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1411     case $ac_user_opts in
   1412       *"
   1413 "with_$ac_useropt"
   1414 "*) ;;
   1415       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1416 	 ac_unrecognized_sep=', ';;
   1417     esac
   1418     eval with_$ac_useropt=no ;;
   1419 
   1420   --x)
   1421     # Obsolete; use --with-x.
   1422     with_x=yes ;;
   1423 
   1424   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1425   | --x-incl | --x-inc | --x-in | --x-i)
   1426     ac_prev=x_includes ;;
   1427   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1428   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1429     x_includes=$ac_optarg ;;
   1430 
   1431   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1432   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1433     ac_prev=x_libraries ;;
   1434   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1435   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1436     x_libraries=$ac_optarg ;;
   1437 
   1438   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1439 Try \`$0 --help' for more information"
   1440     ;;
   1441 
   1442   *=*)
   1443     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1444     # Reject names that are not valid shell variable names.
   1445     case $ac_envvar in #(
   1446       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1447       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1448     esac
   1449     eval $ac_envvar=\$ac_optarg
   1450     export $ac_envvar ;;
   1451 
   1452   *)
   1453     # FIXME: should be removed in autoconf 3.0.
   1454     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1455     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1456       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1457     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1458     ;;
   1459 
   1460   esac
   1461 done
   1462 
   1463 if test -n "$ac_prev"; then
   1464   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1465   as_fn_error $? "missing argument to $ac_option"
   1466 fi
   1467 
   1468 if test -n "$ac_unrecognized_opts"; then
   1469   case $enable_option_checking in
   1470     no) ;;
   1471     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1472     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1473   esac
   1474 fi
   1475 
   1476 # Check all directory arguments for consistency.
   1477 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1478 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1479 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1480 		libdir localedir mandir
   1481 do
   1482   eval ac_val=\$$ac_var
   1483   # Remove trailing slashes.
   1484   case $ac_val in
   1485     */ )
   1486       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1487       eval $ac_var=\$ac_val;;
   1488   esac
   1489   # Be sure to have absolute directory names.
   1490   case $ac_val in
   1491     [\\/$]* | ?:[\\/]* )  continue;;
   1492     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1493   esac
   1494   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1495 done
   1496 
   1497 # There might be people who depend on the old broken behavior: `$host'
   1498 # used to hold the argument of --host etc.
   1499 # FIXME: To remove some day.
   1500 build=$build_alias
   1501 host=$host_alias
   1502 target=$target_alias
   1503 
   1504 # FIXME: To remove some day.
   1505 if test "x$host_alias" != x; then
   1506   if test "x$build_alias" = x; then
   1507     cross_compiling=maybe
   1508   elif test "x$build_alias" != "x$host_alias"; then
   1509     cross_compiling=yes
   1510   fi
   1511 fi
   1512 
   1513 ac_tool_prefix=
   1514 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1515 
   1516 test "$silent" = yes && exec 6>/dev/null
   1517 
   1518 
   1519 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1520 ac_ls_di=`ls -di .` &&
   1521 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1522   as_fn_error $? "working directory cannot be determined"
   1523 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1524   as_fn_error $? "pwd does not report name of working directory"
   1525 
   1526 
   1527 # Find the source files, if location was not specified.
   1528 if test -z "$srcdir"; then
   1529   ac_srcdir_defaulted=yes
   1530   # Try the directory containing this script, then the parent directory.
   1531   ac_confdir=`$as_dirname -- "$as_myself" ||
   1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1533 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1534 	 X"$as_myself" : 'X\(//\)$' \| \
   1535 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1536 $as_echo X"$as_myself" |
   1537     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1538 	    s//\1/
   1539 	    q
   1540 	  }
   1541 	  /^X\(\/\/\)[^/].*/{
   1542 	    s//\1/
   1543 	    q
   1544 	  }
   1545 	  /^X\(\/\/\)$/{
   1546 	    s//\1/
   1547 	    q
   1548 	  }
   1549 	  /^X\(\/\).*/{
   1550 	    s//\1/
   1551 	    q
   1552 	  }
   1553 	  s/.*/./; q'`
   1554   srcdir=$ac_confdir
   1555   if test ! -r "$srcdir/$ac_unique_file"; then
   1556     srcdir=..
   1557   fi
   1558 else
   1559   ac_srcdir_defaulted=no
   1560 fi
   1561 if test ! -r "$srcdir/$ac_unique_file"; then
   1562   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1563   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1564 fi
   1565 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1566 ac_abs_confdir=`(
   1567 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1568 	pwd)`
   1569 # When building in place, set srcdir=.
   1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1571   srcdir=.
   1572 fi
   1573 # Remove unnecessary trailing slashes from srcdir.
   1574 # Double slashes in file names in object file debugging info
   1575 # mess up M-x gdb in Emacs.
   1576 case $srcdir in
   1577 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1578 esac
   1579 for ac_var in $ac_precious_vars; do
   1580   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1581   eval ac_env_${ac_var}_value=\$${ac_var}
   1582   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1583   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1584 done
   1585 
   1586 #
   1587 # Report the --help message.
   1588 #
   1589 if test "$ac_init_help" = "long"; then
   1590   # Omit some internal or obsolete options to make the list less imposing.
   1591   # This message is too long to be a string in the A/UX 3.1 sh.
   1592   cat <<_ACEOF
   1593 \`configure' configures this package to adapt to many kinds of systems.
   1594 
   1595 Usage: $0 [OPTION]... [VAR=VALUE]...
   1596 
   1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1598 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1599 
   1600 Defaults for the options are specified in brackets.
   1601 
   1602 Configuration:
   1603   -h, --help              display this help and exit
   1604       --help=short        display options specific to this package
   1605       --help=recursive    display the short help of all the included packages
   1606   -V, --version           display version information and exit
   1607   -q, --quiet, --silent   do not print \`checking ...' messages
   1608       --cache-file=FILE   cache test results in FILE [disabled]
   1609   -C, --config-cache      alias for \`--cache-file=config.cache'
   1610   -n, --no-create         do not create output files
   1611       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1612 
   1613 Installation directories:
   1614   --prefix=PREFIX         install architecture-independent files in PREFIX
   1615                           [$ac_default_prefix]
   1616   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1617                           [PREFIX]
   1618 
   1619 By default, \`make install' will install all the files in
   1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1622 for instance \`--prefix=\$HOME'.
   1623 
   1624 For better control, use the options below.
   1625 
   1626 Fine tuning of the installation directories:
   1627   --bindir=DIR            user executables [EPREFIX/bin]
   1628   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1629   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1630   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1631   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1632   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1633   --libdir=DIR            object code libraries [EPREFIX/lib]
   1634   --includedir=DIR        C header files [PREFIX/include]
   1635   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1636   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1637   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1638   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1639   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1640   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1641   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1642   --htmldir=DIR           html documentation [DOCDIR]
   1643   --dvidir=DIR            dvi documentation [DOCDIR]
   1644   --pdfdir=DIR            pdf documentation [DOCDIR]
   1645   --psdir=DIR             ps documentation [DOCDIR]
   1646 _ACEOF
   1647 
   1648   cat <<\_ACEOF
   1649 
   1650 Program names:
   1651   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1652   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1653   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1654 
   1655 System types:
   1656   --build=BUILD     configure for building on BUILD [guessed]
   1657   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1658   --target=TARGET   configure for building compilers for TARGET [HOST]
   1659 _ACEOF
   1660 fi
   1661 
   1662 if test -n "$ac_init_help"; then
   1663 
   1664   cat <<\_ACEOF
   1665 
   1666 Optional Features:
   1667   --disable-option-checking  ignore unrecognized --enable/--with options
   1668   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1669   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1670   --enable-generated-files-in-srcdir
   1671                           put copies of generated files in source dir intended
   1672                           for creating source tarballs for users without
   1673                           texinfo bison or flex
   1674   --disable-largefile     omit support for large files
   1675   --disable-build-format-warnings
   1676                           don't use -Wformat while building GCC
   1677   --enable-werror-always  enable -Werror despite compiler version
   1678   --enable-checking[=LIST]
   1679                           enable expensive run-time checks. With LIST, enable
   1680                           only specific categories of checks. Categories are:
   1681                           yes,no,all,none,release. Flags are:
   1682                           assert,df,extra,fold,gc,gcac,gimple,misc,
   1683                           rtlflag,rtl,runtime,tree,valgrind,types
   1684   --enable-coverage[=LEVEL]
   1685                           enable compiler's code coverage collection. Use to
   1686                           measure compiler performance and locate unused parts
   1687                           of the compiler. With LEVEL, specify optimization.
   1688                           Values are opt, noopt, default is noopt
   1689   --enable-gather-detailed-mem-stats
   1690                           enable detailed memory allocation stats gathering
   1691   --enable-valgrind-annotations
   1692                           enable valgrind runtime interaction
   1693   --enable-multilib       enable library support for multiple ABIs
   1694   --enable-multiarch      enable support for multiarch paths
   1695   --enable-__cxa_atexit   enable __cxa_atexit for C++
   1696   --enable-decimal-float={no,yes,bid,dpd}
   1697 			enable decimal float extension to C.  Selecting 'bid'
   1698 			or 'dpd' choses which decimal floating point format
   1699 			to use
   1700   --enable-fixed-point    enable fixed-point arithmetic extension to C
   1701   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
   1702                           package
   1703   --enable-tls            enable or disable generation of tls code overriding
   1704                           the assembler check for tls support
   1705   --enable-vtable-verify  enable vtable verification feature
   1706   --disable-analyzer      disable -fanalyzer static analyzer
   1707   --enable-objc-gc        enable the use of Boehm's garbage collector with the
   1708                           GNU Objective-C runtime
   1709   --disable-shared        don't provide a shared libgcc
   1710   --disable-gcov          don't provide libgcov and related host tools
   1711   --enable-languages=LIST specify which front-ends to build
   1712   --disable-rpath         do not hardcode runtime library paths
   1713   --enable-sjlj-exceptions
   1714                           arrange to use setjmp/longjmp exception handling
   1715   --enable-secureplt      enable -msecure-plt by default for PowerPC
   1716   --enable-mingw-wildcard Set whether to expand wildcard on command-line.
   1717                           Default to platform configuration
   1718   --enable-large-address-aware
   1719                           Link mingw executables with --large-address-aware
   1720   --enable-leading-mingw64-underscores
   1721                           enable leading underscores on 64 bit mingw targets
   1722   --enable-cld            enable -mcld by default for 32bit x86
   1723   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for x86
   1724   --disable-win32-registry
   1725                           disable lookup of installation paths in the Registry
   1726                           on Windows hosts
   1727   --enable-win32-registry enable registry lookup (default)
   1728   --enable-win32-registry=KEY
   1729                           use KEY instead of GCC version as the last portion
   1730                           of the registry key
   1731   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1732   --enable-static[=PKGS]  build static libraries [default=yes]
   1733   --enable-fast-install[=PKGS]
   1734                           optimize for fast installation [default=yes]
   1735   --disable-libtool-lock  avoid locking (might break parallel builds)
   1736   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
   1737   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
   1738   --enable-gnu-indirect-function
   1739                           enable the use of the @gnu_indirect_function to
   1740                           glibc systems
   1741   --enable-initfini-array	use .init_array/.fini_array sections
   1742   --enable-comdat         enable COMDAT group support
   1743   --enable-newlib-nano-formatted-io
   1744                           Use nano version formatted IO
   1745 
   1746   --enable-standard-branch-protection
   1747                           enable Branch Target Identification Mechanism and
   1748                           Return Address Signing by default for AArch64
   1749   --disable-standard-branch-protection
   1750                           disable Branch Target Identification Mechanism and
   1751                           Return Address Signing by default for AArch64
   1752 
   1753 
   1754   --enable-fix-cortex-a53-835769
   1755                           enable workaround for AArch64 Cortex-A53 erratum
   1756                           835769 by default
   1757   --disable-fix-cortex-a53-835769
   1758                           disable workaround for AArch64 Cortex-A53 erratum
   1759                           835769 by default
   1760 
   1761 
   1762   --enable-fix-cortex-a53-843419
   1763                           enable workaround for AArch64 Cortex-A53 erratum
   1764                           843419 by default
   1765   --disable-fix-cortex-a53-843419
   1766                           disable workaround for AArch64 Cortex-A53 erratum
   1767                           843419 by default
   1768 
   1769   --enable-gnu-unique-object
   1770                           enable the use of the @gnu_unique_object ELF
   1771                           extension on glibc systems
   1772   --enable-linker-build-id
   1773                           compiler will always pass --build-id to linker
   1774   --enable-libssp         enable linking against libssp
   1775   --enable-default-ssp    enable Stack Smashing Protection as default
   1776   --enable-maintainer-mode
   1777                           enable make rules and dependencies not useful (and
   1778                           sometimes confusing) to the casual installer
   1779   --enable-link-mutex     avoid linking multiple front-ends at once to avoid
   1780                           thrashing on the build machine
   1781   --enable-link-serialization
   1782                           avoid linking multiple GCC front-ends at once using
   1783                           make dependencies to avoid thrashing on the build
   1784                           machine
   1785   --enable-version-specific-runtime-libs
   1786                           specify that runtime libraries should be installed
   1787                           in a compiler-specific directory
   1788   --enable-plugin         enable plugin support
   1789   --enable-host-shared    build host code as shared libraries
   1790   --disable-libquadmath-support
   1791                           disable libquadmath support for Fortran
   1792   --enable-default-pie    enable Position Independent Executable as default
   1793   --enable-cet            enable Intel CET in host libraries [default=auto]
   1794   --enable-s390-excess-float-precision
   1795                           on s390 targets, evaluate float with double
   1796                           precision when in standards-conforming mode
   1797 
   1798 Optional Packages:
   1799   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1800   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1801   --with-build-libsubdir=DIR  Directory where to find libraries for build system
   1802   --with-local-prefix=DIR specifies directory to put local include
   1803   --with-native-system-header-dir=dir
   1804                           use dir as the directory to look for standard
   1805                           system header files in.  Defaults to /usr/include.
   1806   --with-build-sysroot=sysroot
   1807                           use sysroot as the system root during the build
   1808   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
   1809   --with-gxx-include-dir=DIR
   1810                           specifies directory to put g++ header files
   1811   --with-gxx-libcxx-include-dir=DIR
   1812                           specifies directory to find libc++ header files
   1813   --with-cpp-install-dir=DIR
   1814                           install the user visible C preprocessor in DIR
   1815                           (relative to PREFIX) as well as PREFIX/bin
   1816   --with-gnu-ld           arrange to work with GNU ld
   1817   --with-ld               arrange to use the specified ld (full pathname)
   1818   --with-demangler-in-ld  try to use demangler in GNU ld
   1819   --with-dsymutil         arrange to use the specified dsymutil (full
   1820                           pathname)
   1821   --with-gnu-as           arrange to work with GNU as
   1822   --with-as               arrange to use the specified as (full pathname)
   1823   --with-stack-clash-protection-guard-size=size
   1824                           Set the default stack clash protection guard size
   1825                           for specific targets as a power of two in bytes.
   1826   --with-dwarf2           force the default debug format to be DWARF 2
   1827   --with-specs=SPECS      add SPECS to driver command-line processing
   1828   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
   1829   --with-bugurl=URL       Direct users to URL to report a bug
   1830   --with-documentation-root-url=URL
   1831                           Root for documentation URLs
   1832   --with-changes-root-url=URL
   1833                           Root for GCC changes URLs
   1834   --with-multilib-list    select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
   1835                           SH and x86-64 only)
   1836   --with-multilib-generator
   1837                           Multi-libs configuration string (RISC-V only)
   1838   --with-zstd=PATH        specify prefix directory for installed zstd library.
   1839                           Equivalent to --with-zstd-include=PATH/include plus
   1840                           --with-zstd-lib=PATH/lib
   1841   --with-zstd-include=PATH
   1842                           specify directory for installed zstd include files
   1843   --with-zstd-lib=PATH    specify directory for the installed zstd library
   1844   --with-gnu-ld           assume the C compiler uses GNU ld default=no
   1845   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
   1846   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
   1847   --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
   1848   --with-gcc-major-version-only
   1849                           use only GCC major number in filesystem paths
   1850   --with-pic              try to use only PIC/non-PIC objects [default=use
   1851                           both]
   1852   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1853   --with-plugin-ld=[ARG]  specify the plugin linker
   1854   --with-glibc-version=M.N
   1855                           assume GCC used with glibc version M.N or later
   1856   --with-long-double-128  use 128-bit long double by default
   1857   --with-long-double-format={ieee,ibm}
   1858 		  Specify whether PowerPC long double uses IEEE or IBM format
   1859 
   1860   --with-gc={page,zone}   this option is not supported anymore. It used to
   1861                           choose the garbage collection mechanism to use with
   1862                           the compiler
   1863   --with-system-zlib      use installed libz
   1864   --with-linker-hash-style={sysv,gnu,both}
   1865                           specify the linker hash style
   1866   --with-diagnostics-color={never,auto,auto-if-env,always}
   1867                           specify the default of -fdiagnostics-color option
   1868                           auto-if-env stands for -fdiagnostics-color=auto if
   1869                           GCC_COLOR environment variable is present and
   1870                           -fdiagnostics-color=never otherwise
   1871   --with-diagnostics-urls={never,auto,auto-if-env,always}
   1872                           specify the default of -fdiagnostics-urls option
   1873                           auto-if-env stands for -fdiagnostics-urls=auto if
   1874                           GCC_URLS or TERM_URLS environment variable is
   1875                           present and -fdiagnostics-urls=never otherwise
   1876 
   1877 Some influential environment variables:
   1878   CC          C compiler command
   1879   CFLAGS      C compiler flags
   1880   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1881               nonstandard directory <lib dir>
   1882   LIBS        libraries to pass to the linker, e.g. -l<library>
   1883   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1884               you have headers in a nonstandard directory <include dir>
   1885   CXX         C++ compiler command
   1886   CXXFLAGS    C++ compiler flags
   1887   CXXCPP      C++ preprocessor
   1888   CPP         C preprocessor
   1889   GMPLIBS     How to link GMP
   1890   GMPINC      How to find GMP include files
   1891   ISLLIBS     How to link isl
   1892   ISLINC      How to find isl include files
   1893 
   1894 Use these variables to override the choices made by `configure' or to help
   1895 it to find libraries and programs with nonstandard names/locations.
   1896 
   1897 Report bugs to the package provider.
   1898 _ACEOF
   1899 ac_status=$?
   1900 fi
   1901 
   1902 if test "$ac_init_help" = "recursive"; then
   1903   # If there are subdirs, report their specific --help.
   1904   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1905     test -d "$ac_dir" ||
   1906       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1907       continue
   1908     ac_builddir=.
   1909 
   1910 case "$ac_dir" in
   1911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1912 *)
   1913   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1914   # A ".." for each directory in $ac_dir_suffix.
   1915   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1916   case $ac_top_builddir_sub in
   1917   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1918   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1919   esac ;;
   1920 esac
   1921 ac_abs_top_builddir=$ac_pwd
   1922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1923 # for backward compatibility:
   1924 ac_top_builddir=$ac_top_build_prefix
   1925 
   1926 case $srcdir in
   1927   .)  # We are building in place.
   1928     ac_srcdir=.
   1929     ac_top_srcdir=$ac_top_builddir_sub
   1930     ac_abs_top_srcdir=$ac_pwd ;;
   1931   [\\/]* | ?:[\\/]* )  # Absolute name.
   1932     ac_srcdir=$srcdir$ac_dir_suffix;
   1933     ac_top_srcdir=$srcdir
   1934     ac_abs_top_srcdir=$srcdir ;;
   1935   *) # Relative name.
   1936     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1937     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1938     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1939 esac
   1940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1941 
   1942     cd "$ac_dir" || { ac_status=$?; continue; }
   1943     # Check for guested configure.
   1944     if test -f "$ac_srcdir/configure.gnu"; then
   1945       echo &&
   1946       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1947     elif test -f "$ac_srcdir/configure"; then
   1948       echo &&
   1949       $SHELL "$ac_srcdir/configure" --help=recursive
   1950     else
   1951       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1952     fi || ac_status=$?
   1953     cd "$ac_pwd" || { ac_status=$?; break; }
   1954   done
   1955 fi
   1956 
   1957 test -n "$ac_init_help" && exit $ac_status
   1958 if $ac_init_version; then
   1959   cat <<\_ACEOF
   1960 configure
   1961 generated by GNU Autoconf 2.69
   1962 
   1963 Copyright (C) 2012 Free Software Foundation, Inc.
   1964 This configure script is free software; the Free Software Foundation
   1965 gives unlimited permission to copy, distribute and modify it.
   1966 _ACEOF
   1967   exit
   1968 fi
   1969 
   1970 ## ------------------------ ##
   1971 ## Autoconf initialization. ##
   1972 ## ------------------------ ##
   1973 
   1974 # ac_fn_c_try_compile LINENO
   1975 # --------------------------
   1976 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1977 ac_fn_c_try_compile ()
   1978 {
   1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1980   rm -f conftest.$ac_objext
   1981   if { { ac_try="$ac_compile"
   1982 case "(($ac_try" in
   1983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1984   *) ac_try_echo=$ac_try;;
   1985 esac
   1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1987 $as_echo "$ac_try_echo"; } >&5
   1988   (eval "$ac_compile") 2>conftest.err
   1989   ac_status=$?
   1990   if test -s conftest.err; then
   1991     grep -v '^ *+' conftest.err >conftest.er1
   1992     cat conftest.er1 >&5
   1993     mv -f conftest.er1 conftest.err
   1994   fi
   1995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1996   test $ac_status = 0; } && {
   1997 	 test -z "$ac_c_werror_flag" ||
   1998 	 test ! -s conftest.err
   1999        } && test -s conftest.$ac_objext; then :
   2000   ac_retval=0
   2001 else
   2002   $as_echo "$as_me: failed program was:" >&5
   2003 sed 's/^/| /' conftest.$ac_ext >&5
   2004 
   2005 	ac_retval=1
   2006 fi
   2007   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2008   as_fn_set_status $ac_retval
   2009 
   2010 } # ac_fn_c_try_compile
   2011 
   2012 # ac_fn_cxx_try_compile LINENO
   2013 # ----------------------------
   2014 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   2015 ac_fn_cxx_try_compile ()
   2016 {
   2017   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2018   rm -f conftest.$ac_objext
   2019   if { { ac_try="$ac_compile"
   2020 case "(($ac_try" in
   2021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2022   *) ac_try_echo=$ac_try;;
   2023 esac
   2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2025 $as_echo "$ac_try_echo"; } >&5
   2026   (eval "$ac_compile") 2>conftest.err
   2027   ac_status=$?
   2028   if test -s conftest.err; then
   2029     grep -v '^ *+' conftest.err >conftest.er1
   2030     cat conftest.er1 >&5
   2031     mv -f conftest.er1 conftest.err
   2032   fi
   2033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2034   test $ac_status = 0; } && {
   2035 	 test -z "$ac_cxx_werror_flag" ||
   2036 	 test ! -s conftest.err
   2037        } && test -s conftest.$ac_objext; then :
   2038   ac_retval=0
   2039 else
   2040   $as_echo "$as_me: failed program was:" >&5
   2041 sed 's/^/| /' conftest.$ac_ext >&5
   2042 
   2043 	ac_retval=1
   2044 fi
   2045   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2046   as_fn_set_status $ac_retval
   2047 
   2048 } # ac_fn_cxx_try_compile
   2049 
   2050 # ac_fn_cxx_try_cpp LINENO
   2051 # ------------------------
   2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   2053 ac_fn_cxx_try_cpp ()
   2054 {
   2055   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2056   if { { ac_try="$ac_cpp conftest.$ac_ext"
   2057 case "(($ac_try" in
   2058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2059   *) ac_try_echo=$ac_try;;
   2060 esac
   2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2062 $as_echo "$ac_try_echo"; } >&5
   2063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   2064   ac_status=$?
   2065   if test -s conftest.err; then
   2066     grep -v '^ *+' conftest.err >conftest.er1
   2067     cat conftest.er1 >&5
   2068     mv -f conftest.er1 conftest.err
   2069   fi
   2070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2071   test $ac_status = 0; } > conftest.i && {
   2072 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
   2073 	 test ! -s conftest.err
   2074        }; then :
   2075   ac_retval=0
   2076 else
   2077   $as_echo "$as_me: failed program was:" >&5
   2078 sed 's/^/| /' conftest.$ac_ext >&5
   2079 
   2080     ac_retval=1
   2081 fi
   2082   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2083   as_fn_set_status $ac_retval
   2084 
   2085 } # ac_fn_cxx_try_cpp
   2086 
   2087 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
   2088 # ---------------------------------------------------------
   2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   2090 # the include files in INCLUDES and setting the cache variable VAR
   2091 # accordingly.
   2092 ac_fn_cxx_check_header_mongrel ()
   2093 {
   2094   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2095   if eval \${$3+:} false; then :
   2096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2097 $as_echo_n "checking for $2... " >&6; }
   2098 if eval \${$3+:} false; then :
   2099   $as_echo_n "(cached) " >&6
   2100 fi
   2101 eval ac_res=\$$3
   2102 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2103 $as_echo "$ac_res" >&6; }
   2104 else
   2105   # Is the header compilable?
   2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   2107 $as_echo_n "checking $2 usability... " >&6; }
   2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2109 /* end confdefs.h.  */
   2110 $4
   2111 #include <$2>
   2112 _ACEOF
   2113 if ac_fn_cxx_try_compile "$LINENO"; then :
   2114   ac_header_compiler=yes
   2115 else
   2116   ac_header_compiler=no
   2117 fi
   2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   2120 $as_echo "$ac_header_compiler" >&6; }
   2121 
   2122 # Is the header present?
   2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   2124 $as_echo_n "checking $2 presence... " >&6; }
   2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2126 /* end confdefs.h.  */
   2127 #include <$2>
   2128 _ACEOF
   2129 if ac_fn_cxx_try_cpp "$LINENO"; then :
   2130   ac_header_preproc=yes
   2131 else
   2132   ac_header_preproc=no
   2133 fi
   2134 rm -f conftest.err conftest.i conftest.$ac_ext
   2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   2136 $as_echo "$ac_header_preproc" >&6; }
   2137 
   2138 # So?  What about this header?
   2139 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
   2140   yes:no: )
   2141     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   2143     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   2145     ;;
   2146   no:yes:* )
   2147     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   2149     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   2150 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   2151     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   2153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   2154 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   2155     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   2157     ;;
   2158 esac
   2159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2160 $as_echo_n "checking for $2... " >&6; }
   2161 if eval \${$3+:} false; then :
   2162   $as_echo_n "(cached) " >&6
   2163 else
   2164   eval "$3=\$ac_header_compiler"
   2165 fi
   2166 eval ac_res=\$$3
   2167 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2168 $as_echo "$ac_res" >&6; }
   2169 fi
   2170   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2171 
   2172 } # ac_fn_cxx_check_header_mongrel
   2173 
   2174 # ac_fn_cxx_try_run LINENO
   2175 # ------------------------
   2176 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   2177 # that executables *can* be run.
   2178 ac_fn_cxx_try_run ()
   2179 {
   2180   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2181   if { { ac_try="$ac_link"
   2182 case "(($ac_try" in
   2183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2184   *) ac_try_echo=$ac_try;;
   2185 esac
   2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2187 $as_echo "$ac_try_echo"; } >&5
   2188   (eval "$ac_link") 2>&5
   2189   ac_status=$?
   2190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2191   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   2192   { { case "(($ac_try" in
   2193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2194   *) ac_try_echo=$ac_try;;
   2195 esac
   2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2197 $as_echo "$ac_try_echo"; } >&5
   2198   (eval "$ac_try") 2>&5
   2199   ac_status=$?
   2200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2201   test $ac_status = 0; }; }; then :
   2202   ac_retval=0
   2203 else
   2204   $as_echo "$as_me: program exited with status $ac_status" >&5
   2205        $as_echo "$as_me: failed program was:" >&5
   2206 sed 's/^/| /' conftest.$ac_ext >&5
   2207 
   2208        ac_retval=$ac_status
   2209 fi
   2210   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2211   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2212   as_fn_set_status $ac_retval
   2213 
   2214 } # ac_fn_cxx_try_run
   2215 
   2216 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
   2217 # ---------------------------------------------------------
   2218 # Tests whether HEADER exists and can be compiled using the include files in
   2219 # INCLUDES, setting the cache variable VAR accordingly.
   2220 ac_fn_cxx_check_header_compile ()
   2221 {
   2222   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2224 $as_echo_n "checking for $2... " >&6; }
   2225 if eval \${$3+:} false; then :
   2226   $as_echo_n "(cached) " >&6
   2227 else
   2228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2229 /* end confdefs.h.  */
   2230 $4
   2231 #include <$2>
   2232 _ACEOF
   2233 if ac_fn_cxx_try_compile "$LINENO"; then :
   2234   eval "$3=yes"
   2235 else
   2236   eval "$3=no"
   2237 fi
   2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2239 fi
   2240 eval ac_res=\$$3
   2241 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2242 $as_echo "$ac_res" >&6; }
   2243   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2244 
   2245 } # ac_fn_cxx_check_header_compile
   2246 
   2247 # ac_fn_c_try_cpp LINENO
   2248 # ----------------------
   2249 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   2250 ac_fn_c_try_cpp ()
   2251 {
   2252   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2253   if { { ac_try="$ac_cpp conftest.$ac_ext"
   2254 case "(($ac_try" in
   2255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2256   *) ac_try_echo=$ac_try;;
   2257 esac
   2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2259 $as_echo "$ac_try_echo"; } >&5
   2260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   2261   ac_status=$?
   2262   if test -s conftest.err; then
   2263     grep -v '^ *+' conftest.err >conftest.er1
   2264     cat conftest.er1 >&5
   2265     mv -f conftest.er1 conftest.err
   2266   fi
   2267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2268   test $ac_status = 0; } > conftest.i && {
   2269 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   2270 	 test ! -s conftest.err
   2271        }; then :
   2272   ac_retval=0
   2273 else
   2274   $as_echo "$as_me: failed program was:" >&5
   2275 sed 's/^/| /' conftest.$ac_ext >&5
   2276 
   2277     ac_retval=1
   2278 fi
   2279   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2280   as_fn_set_status $ac_retval
   2281 
   2282 } # ac_fn_c_try_cpp
   2283 
   2284 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
   2285 # ----------------------------------------------
   2286 # Tries to find the compile-time value of EXPR in a program that includes
   2287 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2288 # computed
   2289 ac_fn_cxx_compute_int ()
   2290 {
   2291   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2292   if test "$cross_compiling" = yes; then
   2293     # Depending upon the size, compute the lo and hi bounds.
   2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2295 /* end confdefs.h.  */
   2296 $4
   2297 int
   2298 main ()
   2299 {
   2300 static int test_array [1 - 2 * !(($2) >= 0)];
   2301 test_array [0] = 0;
   2302 return test_array [0];
   2303 
   2304   ;
   2305   return 0;
   2306 }
   2307 _ACEOF
   2308 if ac_fn_cxx_try_compile "$LINENO"; then :
   2309   ac_lo=0 ac_mid=0
   2310   while :; do
   2311     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2312 /* end confdefs.h.  */
   2313 $4
   2314 int
   2315 main ()
   2316 {
   2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2318 test_array [0] = 0;
   2319 return test_array [0];
   2320 
   2321   ;
   2322   return 0;
   2323 }
   2324 _ACEOF
   2325 if ac_fn_cxx_try_compile "$LINENO"; then :
   2326   ac_hi=$ac_mid; break
   2327 else
   2328   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2329 			if test $ac_lo -le $ac_mid; then
   2330 			  ac_lo= ac_hi=
   2331 			  break
   2332 			fi
   2333 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2334 fi
   2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2336   done
   2337 else
   2338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2339 /* end confdefs.h.  */
   2340 $4
   2341 int
   2342 main ()
   2343 {
   2344 static int test_array [1 - 2 * !(($2) < 0)];
   2345 test_array [0] = 0;
   2346 return test_array [0];
   2347 
   2348   ;
   2349   return 0;
   2350 }
   2351 _ACEOF
   2352 if ac_fn_cxx_try_compile "$LINENO"; then :
   2353   ac_hi=-1 ac_mid=-1
   2354   while :; do
   2355     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2356 /* end confdefs.h.  */
   2357 $4
   2358 int
   2359 main ()
   2360 {
   2361 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2362 test_array [0] = 0;
   2363 return test_array [0];
   2364 
   2365   ;
   2366   return 0;
   2367 }
   2368 _ACEOF
   2369 if ac_fn_cxx_try_compile "$LINENO"; then :
   2370   ac_lo=$ac_mid; break
   2371 else
   2372   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2373 			if test $ac_mid -le $ac_hi; then
   2374 			  ac_lo= ac_hi=
   2375 			  break
   2376 			fi
   2377 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2378 fi
   2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2380   done
   2381 else
   2382   ac_lo= ac_hi=
   2383 fi
   2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2385 fi
   2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2387 # Binary search between lo and hi bounds.
   2388 while test "x$ac_lo" != "x$ac_hi"; do
   2389   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2391 /* end confdefs.h.  */
   2392 $4
   2393 int
   2394 main ()
   2395 {
   2396 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2397 test_array [0] = 0;
   2398 return test_array [0];
   2399 
   2400   ;
   2401   return 0;
   2402 }
   2403 _ACEOF
   2404 if ac_fn_cxx_try_compile "$LINENO"; then :
   2405   ac_hi=$ac_mid
   2406 else
   2407   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2408 fi
   2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2410 done
   2411 case $ac_lo in #((
   2412 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2413 '') ac_retval=1 ;;
   2414 esac
   2415   else
   2416     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2417 /* end confdefs.h.  */
   2418 $4
   2419 static long int longval () { return $2; }
   2420 static unsigned long int ulongval () { return $2; }
   2421 #include <stdio.h>
   2422 #include <stdlib.h>
   2423 int
   2424 main ()
   2425 {
   2426 
   2427   FILE *f = fopen ("conftest.val", "w");
   2428   if (! f)
   2429     return 1;
   2430   if (($2) < 0)
   2431     {
   2432       long int i = longval ();
   2433       if (i != ($2))
   2434 	return 1;
   2435       fprintf (f, "%ld", i);
   2436     }
   2437   else
   2438     {
   2439       unsigned long int i = ulongval ();
   2440       if (i != ($2))
   2441 	return 1;
   2442       fprintf (f, "%lu", i);
   2443     }
   2444   /* Do not output a trailing newline, as this causes \r\n confusion
   2445      on some platforms.  */
   2446   return ferror (f) || fclose (f) != 0;
   2447 
   2448   ;
   2449   return 0;
   2450 }
   2451 _ACEOF
   2452 if ac_fn_cxx_try_run "$LINENO"; then :
   2453   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2454 else
   2455   ac_retval=1
   2456 fi
   2457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2458   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2459 rm -f conftest.val
   2460 
   2461   fi
   2462   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2463   as_fn_set_status $ac_retval
   2464 
   2465 } # ac_fn_cxx_compute_int
   2466 
   2467 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
   2468 # ---------------------------------------------
   2469 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2470 # variable VAR accordingly.
   2471 ac_fn_cxx_check_type ()
   2472 {
   2473   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2475 $as_echo_n "checking for $2... " >&6; }
   2476 if eval \${$3+:} false; then :
   2477   $as_echo_n "(cached) " >&6
   2478 else
   2479   eval "$3=no"
   2480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2481 /* end confdefs.h.  */
   2482 $4
   2483 int
   2484 main ()
   2485 {
   2486 if (sizeof ($2))
   2487 	 return 0;
   2488   ;
   2489   return 0;
   2490 }
   2491 _ACEOF
   2492 if ac_fn_cxx_try_compile "$LINENO"; then :
   2493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2494 /* end confdefs.h.  */
   2495 $4
   2496 int
   2497 main ()
   2498 {
   2499 if (sizeof (($2)))
   2500 	    return 0;
   2501   ;
   2502   return 0;
   2503 }
   2504 _ACEOF
   2505 if ac_fn_cxx_try_compile "$LINENO"; then :
   2506 
   2507 else
   2508   eval "$3=yes"
   2509 fi
   2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2511 fi
   2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2513 fi
   2514 eval ac_res=\$$3
   2515 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2516 $as_echo "$ac_res" >&6; }
   2517   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2518 
   2519 } # ac_fn_cxx_check_type
   2520 
   2521 # ac_fn_c_find_intX_t LINENO BITS VAR
   2522 # -----------------------------------
   2523 # Finds a signed integer type with width BITS, setting cache variable VAR
   2524 # accordingly.
   2525 ac_fn_c_find_intX_t ()
   2526 {
   2527   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
   2529 $as_echo_n "checking for int$2_t... " >&6; }
   2530 if eval \${$3+:} false; then :
   2531   $as_echo_n "(cached) " >&6
   2532 else
   2533   eval "$3=no"
   2534      # Order is important - never check a type that is potentially smaller
   2535      # than half of the expected target width.
   2536      for ac_type in int$2_t 'int' 'long int' \
   2537 	 'long long int' 'short int' 'signed char'; do
   2538        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2539 /* end confdefs.h.  */
   2540 $ac_includes_default
   2541 	     enum { N = $2 / 2 - 1 };
   2542 int
   2543 main ()
   2544 {
   2545 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
   2546 test_array [0] = 0;
   2547 return test_array [0];
   2548 
   2549   ;
   2550   return 0;
   2551 }
   2552 _ACEOF
   2553 if ac_fn_cxx_try_compile "$LINENO"; then :
   2554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2555 /* end confdefs.h.  */
   2556 $ac_includes_default
   2557 	        enum { N = $2 / 2 - 1 };
   2558 int
   2559 main ()
   2560 {
   2561 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
   2562 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
   2563 test_array [0] = 0;
   2564 return test_array [0];
   2565 
   2566   ;
   2567   return 0;
   2568 }
   2569 _ACEOF
   2570 if ac_fn_cxx_try_compile "$LINENO"; then :
   2571 
   2572 else
   2573   case $ac_type in #(
   2574   int$2_t) :
   2575     eval "$3=yes" ;; #(
   2576   *) :
   2577     eval "$3=\$ac_type" ;;
   2578 esac
   2579 fi
   2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2581 fi
   2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2583        if eval test \"x\$"$3"\" = x"no"; then :
   2584 
   2585 else
   2586   break
   2587 fi
   2588      done
   2589 fi
   2590 eval ac_res=\$$3
   2591 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2592 $as_echo "$ac_res" >&6; }
   2593   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2594 
   2595 } # ac_fn_c_find_intX_t
   2596 
   2597 # ac_fn_cxx_try_link LINENO
   2598 # -------------------------
   2599 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2600 ac_fn_cxx_try_link ()
   2601 {
   2602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2603   rm -f conftest.$ac_objext conftest$ac_exeext
   2604   if { { ac_try="$ac_link"
   2605 case "(($ac_try" in
   2606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2607   *) ac_try_echo=$ac_try;;
   2608 esac
   2609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2610 $as_echo "$ac_try_echo"; } >&5
   2611   (eval "$ac_link") 2>conftest.err
   2612   ac_status=$?
   2613   if test -s conftest.err; then
   2614     grep -v '^ *+' conftest.err >conftest.er1
   2615     cat conftest.er1 >&5
   2616     mv -f conftest.er1 conftest.err
   2617   fi
   2618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2619   test $ac_status = 0; } && {
   2620 	 test -z "$ac_cxx_werror_flag" ||
   2621 	 test ! -s conftest.err
   2622        } && test -s conftest$ac_exeext && {
   2623 	 test "$cross_compiling" = yes ||
   2624 	 test -x conftest$ac_exeext
   2625        }; then :
   2626   ac_retval=0
   2627 else
   2628   $as_echo "$as_me: failed program was:" >&5
   2629 sed 's/^/| /' conftest.$ac_ext >&5
   2630 
   2631 	ac_retval=1
   2632 fi
   2633   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2634   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2635   # interfere with the next link command; also delete a directory that is
   2636   # left behind by Apple's compiler.  We do this before executing the actions.
   2637   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2638   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2639   as_fn_set_status $ac_retval
   2640 
   2641 } # ac_fn_cxx_try_link
   2642 
   2643 # ac_fn_c_find_uintX_t LINENO BITS VAR
   2644 # ------------------------------------
   2645 # Finds an unsigned integer type with width BITS, setting cache variable VAR
   2646 # accordingly.
   2647 ac_fn_c_find_uintX_t ()
   2648 {
   2649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
   2651 $as_echo_n "checking for uint$2_t... " >&6; }
   2652 if eval \${$3+:} false; then :
   2653   $as_echo_n "(cached) " >&6
   2654 else
   2655   eval "$3=no"
   2656      # Order is important - never check a type that is potentially smaller
   2657      # than half of the expected target width.
   2658      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
   2659 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
   2660        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2661 /* end confdefs.h.  */
   2662 $ac_includes_default
   2663 int
   2664 main ()
   2665 {
   2666 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
   2667 test_array [0] = 0;
   2668 return test_array [0];
   2669 
   2670   ;
   2671   return 0;
   2672 }
   2673 _ACEOF
   2674 if ac_fn_cxx_try_compile "$LINENO"; then :
   2675   case $ac_type in #(
   2676   uint$2_t) :
   2677     eval "$3=yes" ;; #(
   2678   *) :
   2679     eval "$3=\$ac_type" ;;
   2680 esac
   2681 fi
   2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2683        if eval test \"x\$"$3"\" = x"no"; then :
   2684 
   2685 else
   2686   break
   2687 fi
   2688      done
   2689 fi
   2690 eval ac_res=\$$3
   2691 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2692 $as_echo "$ac_res" >&6; }
   2693   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2694 
   2695 } # ac_fn_c_find_uintX_t
   2696 
   2697 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
   2698 # ------------------------------------------------
   2699 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
   2700 ac_fn_cxx_check_header_preproc ()
   2701 {
   2702   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2704 $as_echo_n "checking for $2... " >&6; }
   2705 if eval \${$3+:} false; then :
   2706   $as_echo_n "(cached) " >&6
   2707 else
   2708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2709 /* end confdefs.h.  */
   2710 #include <$2>
   2711 _ACEOF
   2712 if ac_fn_cxx_try_cpp "$LINENO"; then :
   2713   eval "$3=yes"
   2714 else
   2715   eval "$3=no"
   2716 fi
   2717 rm -f conftest.err conftest.i conftest.$ac_ext
   2718 fi
   2719 eval ac_res=\$$3
   2720 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2721 $as_echo "$ac_res" >&6; }
   2722   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2723 
   2724 } # ac_fn_cxx_check_header_preproc
   2725 
   2726 # ac_fn_cxx_check_func LINENO FUNC VAR
   2727 # ------------------------------------
   2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2729 ac_fn_cxx_check_func ()
   2730 {
   2731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2733 $as_echo_n "checking for $2... " >&6; }
   2734 if eval \${$3+:} false; then :
   2735   $as_echo_n "(cached) " >&6
   2736 else
   2737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2738 /* end confdefs.h.  */
   2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2741 #define $2 innocuous_$2
   2742 
   2743 /* System header to define __stub macros and hopefully few prototypes,
   2744     which can conflict with char $2 (); below.
   2745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2746     <limits.h> exists even on freestanding compilers.  */
   2747 
   2748 #ifdef __STDC__
   2749 # include <limits.h>
   2750 #else
   2751 # include <assert.h>
   2752 #endif
   2753 
   2754 #undef $2
   2755 
   2756 /* Override any GCC internal prototype to avoid an error.
   2757    Use char because int might match the return type of a GCC
   2758    builtin and then its argument prototype would still apply.  */
   2759 #ifdef __cplusplus
   2760 extern "C"
   2761 #endif
   2762 char $2 ();
   2763 /* The GNU C library defines this for functions which it implements
   2764     to always fail with ENOSYS.  Some functions are actually named
   2765     something starting with __ and the normal name is an alias.  */
   2766 #if defined __stub_$2 || defined __stub___$2
   2767 choke me
   2768 #endif
   2769 
   2770 int
   2771 main ()
   2772 {
   2773 return $2 ();
   2774   ;
   2775   return 0;
   2776 }
   2777 _ACEOF
   2778 if ac_fn_cxx_try_link "$LINENO"; then :
   2779   eval "$3=yes"
   2780 else
   2781   eval "$3=no"
   2782 fi
   2783 rm -f core conftest.err conftest.$ac_objext \
   2784     conftest$ac_exeext conftest.$ac_ext
   2785 fi
   2786 eval ac_res=\$$3
   2787 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2788 $as_echo "$ac_res" >&6; }
   2789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2790 
   2791 } # ac_fn_cxx_check_func
   2792 
   2793 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
   2794 # -----------------------------------------------
   2795 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   2796 # accordingly.
   2797 ac_fn_cxx_check_decl ()
   2798 {
   2799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2800   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2801   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2803 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   2804 if eval \${$3+:} false; then :
   2805   $as_echo_n "(cached) " >&6
   2806 else
   2807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2808 /* end confdefs.h.  */
   2809 $4
   2810 int
   2811 main ()
   2812 {
   2813 #ifndef $as_decl_name
   2814 #ifdef __cplusplus
   2815   (void) $as_decl_use;
   2816 #else
   2817   (void) $as_decl_name;
   2818 #endif
   2819 #endif
   2820 
   2821   ;
   2822   return 0;
   2823 }
   2824 _ACEOF
   2825 if ac_fn_cxx_try_compile "$LINENO"; then :
   2826   eval "$3=yes"
   2827 else
   2828   eval "$3=no"
   2829 fi
   2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2831 fi
   2832 eval ac_res=\$$3
   2833 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2834 $as_echo "$ac_res" >&6; }
   2835   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2836 
   2837 } # ac_fn_cxx_check_decl
   2838 
   2839 # ac_fn_c_try_link LINENO
   2840 # -----------------------
   2841 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2842 ac_fn_c_try_link ()
   2843 {
   2844   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2845   rm -f conftest.$ac_objext conftest$ac_exeext
   2846   if { { ac_try="$ac_link"
   2847 case "(($ac_try" in
   2848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2849   *) ac_try_echo=$ac_try;;
   2850 esac
   2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2852 $as_echo "$ac_try_echo"; } >&5
   2853   (eval "$ac_link") 2>conftest.err
   2854   ac_status=$?
   2855   if test -s conftest.err; then
   2856     grep -v '^ *+' conftest.err >conftest.er1
   2857     cat conftest.er1 >&5
   2858     mv -f conftest.er1 conftest.err
   2859   fi
   2860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2861   test $ac_status = 0; } && {
   2862 	 test -z "$ac_c_werror_flag" ||
   2863 	 test ! -s conftest.err
   2864        } && test -s conftest$ac_exeext && {
   2865 	 test "$cross_compiling" = yes ||
   2866 	 test -x conftest$ac_exeext
   2867        }; then :
   2868   ac_retval=0
   2869 else
   2870   $as_echo "$as_me: failed program was:" >&5
   2871 sed 's/^/| /' conftest.$ac_ext >&5
   2872 
   2873 	ac_retval=1
   2874 fi
   2875   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2876   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2877   # interfere with the next link command; also delete a directory that is
   2878   # left behind by Apple's compiler.  We do this before executing the actions.
   2879   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2880   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2881   as_fn_set_status $ac_retval
   2882 
   2883 } # ac_fn_c_try_link
   2884 
   2885 # ac_fn_c_check_header_preproc LINENO HEADER VAR
   2886 # ----------------------------------------------
   2887 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
   2888 ac_fn_c_check_header_preproc ()
   2889 {
   2890   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2892 $as_echo_n "checking for $2... " >&6; }
   2893 if eval \${$3+:} false; then :
   2894   $as_echo_n "(cached) " >&6
   2895 else
   2896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2897 /* end confdefs.h.  */
   2898 #include <$2>
   2899 _ACEOF
   2900 if ac_fn_c_try_cpp "$LINENO"; then :
   2901   eval "$3=yes"
   2902 else
   2903   eval "$3=no"
   2904 fi
   2905 rm -f conftest.err conftest.i conftest.$ac_ext
   2906 fi
   2907 eval ac_res=\$$3
   2908 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2909 $as_echo "$ac_res" >&6; }
   2910   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2911 
   2912 } # ac_fn_c_check_header_preproc
   2913 
   2914 # ac_fn_c_check_func LINENO FUNC VAR
   2915 # ----------------------------------
   2916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2917 ac_fn_c_check_func ()
   2918 {
   2919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2921 $as_echo_n "checking for $2... " >&6; }
   2922 if eval \${$3+:} false; then :
   2923   $as_echo_n "(cached) " >&6
   2924 else
   2925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2926 /* end confdefs.h.  */
   2927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2929 #define $2 innocuous_$2
   2930 
   2931 /* System header to define __stub macros and hopefully few prototypes,
   2932     which can conflict with char $2 (); below.
   2933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2934     <limits.h> exists even on freestanding compilers.  */
   2935 
   2936 #ifdef __STDC__
   2937 # include <limits.h>
   2938 #else
   2939 # include <assert.h>
   2940 #endif
   2941 
   2942 #undef $2
   2943 
   2944 /* Override any GCC internal prototype to avoid an error.
   2945    Use char because int might match the return type of a GCC
   2946    builtin and then its argument prototype would still apply.  */
   2947 #ifdef __cplusplus
   2948 extern "C"
   2949 #endif
   2950 char $2 ();
   2951 /* The GNU C library defines this for functions which it implements
   2952     to always fail with ENOSYS.  Some functions are actually named
   2953     something starting with __ and the normal name is an alias.  */
   2954 #if defined __stub_$2 || defined __stub___$2
   2955 choke me
   2956 #endif
   2957 
   2958 int
   2959 main ()
   2960 {
   2961 return $2 ();
   2962   ;
   2963   return 0;
   2964 }
   2965 _ACEOF
   2966 if ac_fn_c_try_link "$LINENO"; then :
   2967   eval "$3=yes"
   2968 else
   2969   eval "$3=no"
   2970 fi
   2971 rm -f core conftest.err conftest.$ac_objext \
   2972     conftest$ac_exeext conftest.$ac_ext
   2973 fi
   2974 eval ac_res=\$$3
   2975 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2976 $as_echo "$ac_res" >&6; }
   2977   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2978 
   2979 } # ac_fn_c_check_func
   2980 cat >config.log <<_ACEOF
   2981 This file contains any messages produced by compilers while
   2982 running configure, to aid debugging if configure makes a mistake.
   2983 
   2984 It was created by $as_me, which was
   2985 generated by GNU Autoconf 2.69.  Invocation command line was
   2986 
   2987   $ $0 $@
   2988 
   2989 _ACEOF
   2990 exec 5>>config.log
   2991 {
   2992 cat <<_ASUNAME
   2993 ## --------- ##
   2994 ## Platform. ##
   2995 ## --------- ##
   2996 
   2997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   3000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   3001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   3002 
   3003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   3004 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   3005 
   3006 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   3007 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   3008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   3009 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   3010 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   3011 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   3012 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   3013 
   3014 _ASUNAME
   3015 
   3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3017 for as_dir in $PATH
   3018 do
   3019   IFS=$as_save_IFS
   3020   test -z "$as_dir" && as_dir=.
   3021     $as_echo "PATH: $as_dir"
   3022   done
   3023 IFS=$as_save_IFS
   3024 
   3025 } >&5
   3026 
   3027 cat >&5 <<_ACEOF
   3028 
   3029 
   3030 ## ----------- ##
   3031 ## Core tests. ##
   3032 ## ----------- ##
   3033 
   3034 _ACEOF
   3035 
   3036 
   3037 # Keep a trace of the command line.
   3038 # Strip out --no-create and --no-recursion so they do not pile up.
   3039 # Strip out --silent because we don't want to record it for future runs.
   3040 # Also quote any args containing shell meta-characters.
   3041 # Make two passes to allow for proper duplicate-argument suppression.
   3042 ac_configure_args=
   3043 ac_configure_args0=
   3044 ac_configure_args1=
   3045 ac_must_keep_next=false
   3046 for ac_pass in 1 2
   3047 do
   3048   for ac_arg
   3049   do
   3050     case $ac_arg in
   3051     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   3052     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   3053     | -silent | --silent | --silen | --sile | --sil)
   3054       continue ;;
   3055     *\'*)
   3056       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   3057     esac
   3058     case $ac_pass in
   3059     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   3060     2)
   3061       as_fn_append ac_configure_args1 " '$ac_arg'"
   3062       if test $ac_must_keep_next = true; then
   3063 	ac_must_keep_next=false # Got value, back to normal.
   3064       else
   3065 	case $ac_arg in
   3066 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   3067 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   3068 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   3069 	  | -with-* | --with-* | -without-* | --without-* | --x)
   3070 	    case "$ac_configure_args0 " in
   3071 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   3072 	    esac
   3073 	    ;;
   3074 	  -* ) ac_must_keep_next=true ;;
   3075 	esac
   3076       fi
   3077       as_fn_append ac_configure_args " '$ac_arg'"
   3078       ;;
   3079     esac
   3080   done
   3081 done
   3082 { ac_configure_args0=; unset ac_configure_args0;}
   3083 { ac_configure_args1=; unset ac_configure_args1;}
   3084 
   3085 # When interrupted or exit'd, cleanup temporary files, and complete
   3086 # config.log.  We remove comments because anyway the quotes in there
   3087 # would cause problems or look ugly.
   3088 # WARNING: Use '\'' to represent an apostrophe within the trap.
   3089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   3090 trap 'exit_status=$?
   3091   # Save into config.log some information that might help in debugging.
   3092   {
   3093     echo
   3094 
   3095     $as_echo "## ---------------- ##
   3096 ## Cache variables. ##
   3097 ## ---------------- ##"
   3098     echo
   3099     # The following way of writing the cache mishandles newlines in values,
   3100 (
   3101   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   3102     eval ac_val=\$$ac_var
   3103     case $ac_val in #(
   3104     *${as_nl}*)
   3105       case $ac_var in #(
   3106       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   3107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   3108       esac
   3109       case $ac_var in #(
   3110       _ | IFS | as_nl) ;; #(
   3111       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   3112       *) { eval $ac_var=; unset $ac_var;} ;;
   3113       esac ;;
   3114     esac
   3115   done
   3116   (set) 2>&1 |
   3117     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   3118     *${as_nl}ac_space=\ *)
   3119       sed -n \
   3120 	"s/'\''/'\''\\\\'\'''\''/g;
   3121 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   3122       ;; #(
   3123     *)
   3124       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   3125       ;;
   3126     esac |
   3127     sort
   3128 )
   3129     echo
   3130 
   3131     $as_echo "## ----------------- ##
   3132 ## Output variables. ##
   3133 ## ----------------- ##"
   3134     echo
   3135     for ac_var in $ac_subst_vars
   3136     do
   3137       eval ac_val=\$$ac_var
   3138       case $ac_val in
   3139       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   3140       esac
   3141       $as_echo "$ac_var='\''$ac_val'\''"
   3142     done | sort
   3143     echo
   3144 
   3145     if test -n "$ac_subst_files"; then
   3146       $as_echo "## ------------------- ##
   3147 ## File substitutions. ##
   3148 ## ------------------- ##"
   3149       echo
   3150       for ac_var in $ac_subst_files
   3151       do
   3152 	eval ac_val=\$$ac_var
   3153 	case $ac_val in
   3154 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   3155 	esac
   3156 	$as_echo "$ac_var='\''$ac_val'\''"
   3157       done | sort
   3158       echo
   3159     fi
   3160 
   3161     if test -s confdefs.h; then
   3162       $as_echo "## ----------- ##
   3163 ## confdefs.h. ##
   3164 ## ----------- ##"
   3165       echo
   3166       cat confdefs.h
   3167       echo
   3168     fi
   3169     test "$ac_signal" != 0 &&
   3170       $as_echo "$as_me: caught signal $ac_signal"
   3171     $as_echo "$as_me: exit $exit_status"
   3172   } >&5
   3173   rm -f core *.core core.conftest.* &&
   3174     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   3175     exit $exit_status
   3176 ' 0
   3177 for ac_signal in 1 2 13 15; do
   3178   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   3179 done
   3180 ac_signal=0
   3181 
   3182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   3183 rm -f -r conftest* confdefs.h
   3184 
   3185 $as_echo "/* confdefs.h */" > confdefs.h
   3186 
   3187 # Predefined preprocessor variables.
   3188 
   3189 cat >>confdefs.h <<_ACEOF
   3190 #define PACKAGE_NAME "$PACKAGE_NAME"
   3191 _ACEOF
   3192 
   3193 cat >>confdefs.h <<_ACEOF
   3194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   3195 _ACEOF
   3196 
   3197 cat >>confdefs.h <<_ACEOF
   3198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   3199 _ACEOF
   3200 
   3201 cat >>confdefs.h <<_ACEOF
   3202 #define PACKAGE_STRING "$PACKAGE_STRING"
   3203 _ACEOF
   3204 
   3205 cat >>confdefs.h <<_ACEOF
   3206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   3207 _ACEOF
   3208 
   3209 cat >>confdefs.h <<_ACEOF
   3210 #define PACKAGE_URL "$PACKAGE_URL"
   3211 _ACEOF
   3212 
   3213 
   3214 # Let the site file select an alternate cache file if it wants to.
   3215 # Prefer an explicitly selected file to automatically selected ones.
   3216 ac_site_file1=NONE
   3217 ac_site_file2=NONE
   3218 if test -n "$CONFIG_SITE"; then
   3219   # We do not want a PATH search for config.site.
   3220   case $CONFIG_SITE in #((
   3221     -*)  ac_site_file1=./$CONFIG_SITE;;
   3222     */*) ac_site_file1=$CONFIG_SITE;;
   3223     *)   ac_site_file1=./$CONFIG_SITE;;
   3224   esac
   3225 elif test "x$prefix" != xNONE; then
   3226   ac_site_file1=$prefix/share/config.site
   3227   ac_site_file2=$prefix/etc/config.site
   3228 else
   3229   ac_site_file1=$ac_default_prefix/share/config.site
   3230   ac_site_file2=$ac_default_prefix/etc/config.site
   3231 fi
   3232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   3233 do
   3234   test "x$ac_site_file" = xNONE && continue
   3235   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   3236     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   3237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   3238     sed 's/^/| /' "$ac_site_file" >&5
   3239     . "$ac_site_file" \
   3240       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3242 as_fn_error $? "failed to load site script $ac_site_file
   3243 See \`config.log' for more details" "$LINENO" 5; }
   3244   fi
   3245 done
   3246 
   3247 if test -r "$cache_file"; then
   3248   # Some versions of bash will fail to source /dev/null (special files
   3249   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   3250   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   3251     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   3252 $as_echo "$as_me: loading cache $cache_file" >&6;}
   3253     case $cache_file in
   3254       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   3255       *)                      . "./$cache_file";;
   3256     esac
   3257   fi
   3258 else
   3259   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   3260 $as_echo "$as_me: creating cache $cache_file" >&6;}
   3261   >$cache_file
   3262 fi
   3263 
   3264 # Check that the precious variables saved in the cache have kept the same
   3265 # value.
   3266 ac_cache_corrupted=false
   3267 for ac_var in $ac_precious_vars; do
   3268   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   3269   eval ac_new_set=\$ac_env_${ac_var}_set
   3270   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   3271   eval ac_new_val=\$ac_env_${ac_var}_value
   3272   case $ac_old_set,$ac_new_set in
   3273     set,)
   3274       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   3275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   3276       ac_cache_corrupted=: ;;
   3277     ,set)
   3278       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   3279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   3280       ac_cache_corrupted=: ;;
   3281     ,);;
   3282     *)
   3283       if test "x$ac_old_val" != "x$ac_new_val"; then
   3284 	# differences in whitespace do not lead to failure.
   3285 	ac_old_val_w=`echo x $ac_old_val`
   3286 	ac_new_val_w=`echo x $ac_new_val`
   3287 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   3288 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   3289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   3290 	  ac_cache_corrupted=:
   3291 	else
   3292 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   3293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   3294 	  eval $ac_var=\$ac_old_val
   3295 	fi
   3296 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   3297 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   3298 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   3299 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   3300       fi;;
   3301   esac
   3302   # Pass precious variables to config.status.
   3303   if test "$ac_new_set" = set; then
   3304     case $ac_new_val in
   3305     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   3306     *) ac_arg=$ac_var=$ac_new_val ;;
   3307     esac
   3308     case " $ac_configure_args " in
   3309       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   3310       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   3311     esac
   3312   fi
   3313 done
   3314 if $ac_cache_corrupted; then
   3315   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3317   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   3318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   3319   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   3320 fi
   3321 ## -------------------- ##
   3322 ## Main body of script. ##
   3323 ## -------------------- ##
   3324 
   3325 ac_ext=c
   3326 ac_cpp='$CPP $CPPFLAGS'
   3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3330 
   3331 
   3332 
   3333 
   3334 
   3335 
   3336 ac_config_headers="$ac_config_headers auto-host.h:config.in"
   3337 
   3338 
   3339 gcc_version=`cat $srcdir/BASE-VER`
   3340 
   3341 # Determine the host, build, and target systems
   3342 ac_aux_dir=
   3343 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   3344   if test -f "$ac_dir/install-sh"; then
   3345     ac_aux_dir=$ac_dir
   3346     ac_install_sh="$SHELL $ac_aux_dir/install-sh -c"
   3347     break
   3348   elif test -f "$ac_dir/install.sh"; then
   3349     ac_aux_dir=$ac_dir
   3350     ac_install_sh="$SHELL $ac_aux_dir/install.sh -c"
   3351     break
   3352   elif test -f "$ac_dir/shtool"; then
   3353     ac_aux_dir=$ac_dir
   3354     ac_install_sh="$SHELL $ac_aux_dir/shtool install -c"
   3355     break
   3356   fi
   3357 done
   3358 if test -z "$ac_aux_dir"; then
   3359   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   3360 fi
   3361 
   3362 # These three variables are undocumented and unsupported,
   3363 # and are intended to be withdrawn in a future Autoconf release.
   3364 # They can cause serious problems if a builder's source tree is in a directory
   3365 # whose full name contains unusual characters.
   3366 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   3367 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   3368 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   3369 
   3370 
   3371 # Make sure we can run config.sub.
   3372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   3373   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   3374 
   3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   3376 $as_echo_n "checking build system type... " >&6; }
   3377 if ${ac_cv_build+:} false; then :
   3378   $as_echo_n "(cached) " >&6
   3379 else
   3380   ac_build_alias=$build_alias
   3381 test "x$ac_build_alias" = x &&
   3382   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   3383 test "x$ac_build_alias" = x &&
   3384   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   3385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   3386   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   3387 
   3388 fi
   3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   3390 $as_echo "$ac_cv_build" >&6; }
   3391 case $ac_cv_build in
   3392 *-*-*) ;;
   3393 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   3394 esac
   3395 build=$ac_cv_build
   3396 ac_save_IFS=$IFS; IFS='-'
   3397 set x $ac_cv_build
   3398 shift
   3399 build_cpu=$1
   3400 build_vendor=$2
   3401 shift; shift
   3402 # Remember, the first character of IFS is used to create $*,
   3403 # except with old shells:
   3404 build_os=$*
   3405 IFS=$ac_save_IFS
   3406 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   3407 
   3408 
   3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   3410 $as_echo_n "checking host system type... " >&6; }
   3411 if ${ac_cv_host+:} false; then :
   3412   $as_echo_n "(cached) " >&6
   3413 else
   3414   if test "x$host_alias" = x; then
   3415   ac_cv_host=$ac_cv_build
   3416 else
   3417   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   3418     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   3419 fi
   3420 
   3421 fi
   3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   3423 $as_echo "$ac_cv_host" >&6; }
   3424 case $ac_cv_host in
   3425 *-*-*) ;;
   3426 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   3427 esac
   3428 host=$ac_cv_host
   3429 ac_save_IFS=$IFS; IFS='-'
   3430 set x $ac_cv_host
   3431 shift
   3432 host_cpu=$1
   3433 host_vendor=$2
   3434 shift; shift
   3435 # Remember, the first character of IFS is used to create $*,
   3436 # except with old shells:
   3437 host_os=$*
   3438 IFS=$ac_save_IFS
   3439 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   3440 
   3441 
   3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   3443 $as_echo_n "checking target system type... " >&6; }
   3444 if ${ac_cv_target+:} false; then :
   3445   $as_echo_n "(cached) " >&6
   3446 else
   3447   if test "x$target_alias" = x; then
   3448   ac_cv_target=$ac_cv_host
   3449 else
   3450   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   3451     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   3452 fi
   3453 
   3454 fi
   3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   3456 $as_echo "$ac_cv_target" >&6; }
   3457 case $ac_cv_target in
   3458 *-*-*) ;;
   3459 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   3460 esac
   3461 target=$ac_cv_target
   3462 ac_save_IFS=$IFS; IFS='-'
   3463 set x $ac_cv_target
   3464 shift
   3465 target_cpu=$1
   3466 target_vendor=$2
   3467 shift; shift
   3468 # Remember, the first character of IFS is used to create $*,
   3469 # except with old shells:
   3470 target_os=$*
   3471 IFS=$ac_save_IFS
   3472 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   3473 
   3474 
   3475 # The aliases save the names the user supplied, while $host etc.
   3476 # will get canonicalized.
   3477 test -n "$target_alias" &&
   3478   test "$program_prefix$program_suffix$program_transform_name" = \
   3479     NONENONEs,x,x, &&
   3480   program_prefix=${target_alias}-
   3481 
   3482 # Determine the noncanonical host name, for Ada.
   3483  case ${build_alias} in
   3484   "") build_noncanonical=${build} ;;
   3485   *) build_noncanonical=${build_alias} ;;
   3486 esac
   3487 
   3488  case ${host_alias} in
   3489   "") host_noncanonical=${build_noncanonical} ;;
   3490   *) host_noncanonical=${host_alias} ;;
   3491 esac
   3492 
   3493 
   3494 
   3495 
   3496 # Determine the noncanonical target name, for directory use.
   3497  case ${target_alias} in
   3498   "") target_noncanonical=${host_noncanonical} ;;
   3499   *) target_noncanonical=${target_alias} ;;
   3500 esac
   3501 
   3502 
   3503 
   3504 
   3505 # Used for constructing correct paths for offload compilers.
   3506 real_target_noncanonical=${target_noncanonical}
   3507 accel_dir_suffix=
   3508 
   3509 # Determine the target- and build-specific subdirectories
   3510 
   3511 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
   3512 # have matching libraries, they should use host libraries: Makefile.tpl
   3513 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
   3514 # However, they still use the build modules, because the corresponding
   3515 # host modules (e.g. bison) are only built for the host when bootstrap
   3516 # finishes. So:
   3517 # - build_subdir is where we find build modules, and never changes.
   3518 # - build_libsubdir is where we find build libraries, and can be overridden.
   3519 
   3520 # Prefix 'build-' so this never conflicts with target_subdir.
   3521 build_subdir="build-${build_noncanonical}"
   3522 
   3523 # Check whether --with-build-libsubdir was given.
   3524 if test "${with_build_libsubdir+set}" = set; then :
   3525   withval=$with_build_libsubdir; build_libsubdir="$withval"
   3526 else
   3527   build_libsubdir="$build_subdir"
   3528 fi
   3529 
   3530 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
   3531 if ( test $srcdir = . && test -d gcc ) \
   3532    || test -d $srcdir/../host-${host_noncanonical}; then
   3533   host_subdir="host-${host_noncanonical}"
   3534 else
   3535   host_subdir=.
   3536 fi
   3537 # No prefix.
   3538 target_subdir=${target_noncanonical}
   3539 
   3540 
   3541 # Set program_transform_name
   3542 test "$program_prefix" != NONE &&
   3543   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   3544 # Use a double $ so make ignores it.
   3545 test "$program_suffix" != NONE &&
   3546   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   3547 # Double any \ or $.
   3548 # By default was `s,x,x', remove it if useless.
   3549 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   3550 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   3551 
   3552 
   3553 # Check for bogus environment variables.
   3554 # Test if LIBRARY_PATH contains the notation for the current directory
   3555 # since this would lead to problems installing/building glibc.
   3556 # LIBRARY_PATH contains the current directory if one of the following
   3557 # is true:
   3558 # - one of the terminals (":" and ";") is the first or last sign
   3559 # - two terminals occur directly after each other
   3560 # - the path contains an element with a dot in it
   3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
   3562 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
   3563 case ${LIBRARY_PATH} in
   3564   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
   3565     library_path_setting="contains current directory"
   3566     ;;
   3567   *)
   3568     library_path_setting="ok"
   3569     ;;
   3570 esac
   3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
   3572 $as_echo "$library_path_setting" >&6; }
   3573 if test "$library_path_setting" != "ok"; then
   3574 as_fn_error $? "
   3575 *** LIBRARY_PATH shouldn't contain the current directory when
   3576 *** building gcc. Please change the environment variable
   3577 *** and run configure again." "$LINENO" 5
   3578 fi
   3579 
   3580 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
   3581 # since this would lead to problems installing/building glibc.
   3582 # GCC_EXEC_PREFIX contains the current directory if one of the following
   3583 # is true:
   3584 # - one of the terminals (":" and ";") is the first or last sign
   3585 # - two terminals occur directly after each other
   3586 # - the path contains an element with a dot in it
   3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
   3588 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
   3589 case ${GCC_EXEC_PREFIX} in
   3590   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
   3591     gcc_exec_prefix_setting="contains current directory"
   3592     ;;
   3593   *)
   3594     gcc_exec_prefix_setting="ok"
   3595     ;;
   3596 esac
   3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
   3598 $as_echo "$gcc_exec_prefix_setting" >&6; }
   3599 if test "$gcc_exec_prefix_setting" != "ok"; then
   3600 as_fn_error $? "
   3601 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
   3602 *** building gcc. Please change the environment variable
   3603 *** and run configure again." "$LINENO" 5
   3604 fi
   3605 
   3606 # -----------
   3607 # Directories
   3608 # -----------
   3609 
   3610 # Specify the local prefix
   3611 local_prefix=
   3612 
   3613 # Check whether --with-local-prefix was given.
   3614 if test "${with_local_prefix+set}" = set; then :
   3615   withval=$with_local_prefix; case "${withval}" in
   3616 yes)	as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
   3617 no)	;;
   3618 *)	local_prefix=$with_local_prefix ;;
   3619 esac
   3620 fi
   3621 
   3622 
   3623 # Default local prefix if it is empty
   3624 if test x$local_prefix = x; then
   3625 	local_prefix=/usr/local
   3626 fi
   3627 
   3628 
   3629 # Check whether --with-native-system-header-dir was given.
   3630 if test "${with_native_system_header_dir+set}" = set; then :
   3631   withval=$with_native_system_header_dir;
   3632  case ${with_native_system_header_dir} in
   3633  yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
   3634  /* | [A-Za-z]:[\\/]*) ;;
   3635  *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
   3636  esac
   3637  configured_native_system_header_dir="${withval}"
   3638 
   3639 else
   3640   configured_native_system_header_dir=
   3641 fi
   3642 
   3643 
   3644 
   3645 # Check whether --with-build-sysroot was given.
   3646 if test "${with_build_sysroot+set}" = set; then :
   3647   withval=$with_build_sysroot; if test x"$withval" != x ; then
   3648      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
   3649    fi
   3650 else
   3651   SYSROOT_CFLAGS_FOR_TARGET=
   3652 fi
   3653 
   3654 
   3655 
   3656 if test "x$prefix" = xNONE; then
   3657  test_prefix=/usr/local
   3658 else
   3659  test_prefix=$prefix
   3660 fi
   3661 if test "x$exec_prefix" = xNONE; then
   3662  test_exec_prefix=$test_prefix
   3663 else
   3664  test_exec_prefix=$exec_prefix
   3665 fi
   3666 
   3667 
   3668 # Check whether --with-sysroot was given.
   3669 if test "${with_sysroot+set}" = set; then :
   3670   withval=$with_sysroot;
   3671  case ${with_sysroot} in
   3672  /) ;;
   3673  */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
   3674  esac
   3675  case ${with_sysroot} in
   3676  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
   3677  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
   3678  esac
   3679 
   3680  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
   3681  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
   3682 
   3683  case ${TARGET_SYSTEM_ROOT} in
   3684  "${test_prefix}"|"${test_prefix}/"*|\
   3685  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
   3686  '${prefix}'|'${prefix}/'*|\
   3687  '${exec_prefix}'|'${exec_prefix}/'*)
   3688    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
   3689    TARGET_SYSTEM_ROOT_DEFINE="$t"
   3690    ;;
   3691  esac
   3692 
   3693 else
   3694 
   3695  TARGET_SYSTEM_ROOT=
   3696  TARGET_SYSTEM_ROOT_DEFINE=
   3697  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
   3698 
   3699 fi
   3700 
   3701 
   3702 
   3703 
   3704 
   3705 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
   3706 # passed in by the toplevel make and thus we'd get different behavior
   3707 # depending on where we built the sources.
   3708 gcc_gxx_include_dir=
   3709 # Specify the g++ header file directory
   3710 
   3711 # Check whether --with-gxx-include-dir was given.
   3712 if test "${with_gxx_include_dir+set}" = set; then :
   3713   withval=$with_gxx_include_dir; case "${withval}" in
   3714 yes)	as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
   3715 no)	;;
   3716 *)	gcc_gxx_include_dir=$with_gxx_include_dir ;;
   3717 esac
   3718 fi
   3719 
   3720 
   3721 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
   3722 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
   3723 # relative to the sysroot.
   3724 gcc_gxx_include_dir_add_sysroot=0
   3725 
   3726 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
   3727 if test x${gcc_gxx_include_dir} = x; then
   3728   if test x${enable_version_specific_runtime_libs} = xyes; then
   3729     gcc_gxx_include_dir='${libsubdir}/include/c++'
   3730   else
   3731     libstdcxx_incdir='include/c++/$(version)'
   3732     if test x$host != x$target; then
   3733        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
   3734     fi
   3735     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
   3736   fi
   3737 elif test "${with_sysroot+set}" = set; then
   3738   gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
   3739   if test "${gcc_gxx_without_sysroot}"; then
   3740     gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
   3741     gcc_gxx_include_dir_add_sysroot=1
   3742   fi
   3743 fi
   3744 
   3745 # Configuration for an alternate set of C++ headers.
   3746 gcc_gxx_libcxx_include_dir=
   3747 # Specify the alternate g++ header file directory
   3748 
   3749 # Check whether --with-gxx-libcxx-include-dir was given.
   3750 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
   3751   withval=$with_gxx_libcxx_include_dir; case "${withval}" in
   3752 yes)	as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
   3753 *)	gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
   3754 esac
   3755 fi
   3756 
   3757 
   3758 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
   3759 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
   3760 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
   3761 #based on the platform (to be available on platform versions where it is the
   3762 # default for the system tools). We also use a default path within the compiler
   3763 #install tree.
   3764 #Otherwise, we use the path provided and enable the stdlib option.
   3765 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
   3766 # check to see if the latter starts with the former and, upon success, compute
   3767 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
   3768 gcc_gxx_libcxx_include_dir_add_sysroot=0
   3769 gcc_enable_stdlib_opt=0
   3770 if test x${gcc_gxx_libcxx_include_dir} != x; then
   3771   if test x${gcc_gxx_libcxx_include_dir} = xno; then
   3772     #set defaults for the dir, but the option is disabled anyway.
   3773     gcc_gxx_libcxx_include_dir=
   3774   else
   3775     gcc_enable_stdlib_opt=1
   3776   fi
   3777 else
   3778   case $target in
   3779     *-darwin1[1-9]* | *-darwin2*)
   3780        #Default this on for Darwin versions which default to libcxx,
   3781        #and embed the path in the compiler install so that we get a
   3782        # self-contained toolchain.
   3783        gcc_enable_stdlib_opt=1
   3784        ;;
   3785     *) ;;
   3786   esac
   3787 fi
   3788 
   3789 cat >>confdefs.h <<_ACEOF
   3790 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
   3791 _ACEOF
   3792 
   3793 
   3794 # Sysroot behaviour as for gxx-include-dir
   3795 if test x${gcc_gxx_libcxx_include_dir} = x; then
   3796   # default path,embedded in the compiler tree.
   3797   libcxx_incdir='include/c++/v1'
   3798   if test x${enable_version_specific_runtime_libs} = xyes; then
   3799     gcc_gxx_libcxx_include_dir='${libsubdir}/$libcxx_incdir'
   3800   else
   3801     if test x$host != x$target; then
   3802        libcxx_incdir="$target_alias/$libcxx_incdir"
   3803     fi
   3804     gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
   3805   fi
   3806 elif test "${with_sysroot+set}" = set; then
   3807   gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
   3808   if test "${gcc_gxx_libcxx_without_sysroot}"; then
   3809     gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
   3810     gcc_gxx_libcxx_include_dir_add_sysroot=1
   3811   fi
   3812 fi
   3813 
   3814 
   3815 # Check whether --with-cpp_install_dir was given.
   3816 if test "${with_cpp_install_dir+set}" = set; then :
   3817   withval=$with_cpp_install_dir; if test x$withval = xyes; then
   3818   as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
   3819 elif test x$withval != xno; then
   3820   cpp_install_dir=$withval
   3821 fi
   3822 fi
   3823 
   3824 
   3825 # We would like to our source tree to be readonly.  However when releases or
   3826 # pre-releases are generated, the flex/bison generated files as well as the
   3827 # various formats of manuals need to be included along with the rest of the
   3828 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
   3829 # just that.
   3830 
   3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
   3832 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
   3833     # Check whether --enable-generated-files-in-srcdir was given.
   3834 if test "${enable_generated_files_in_srcdir+set}" = set; then :
   3835   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
   3836 else
   3837   generated_files_in_srcdir=no
   3838 fi
   3839 
   3840 
   3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
   3842 $as_echo "$generated_files_in_srcdir" >&6; }
   3843 
   3844 if test "$generated_files_in_srcdir" = "yes"; then
   3845   GENINSRC=''
   3846 else
   3847   GENINSRC='#'
   3848 fi
   3849 
   3850 
   3851 # -------------------
   3852 # Find default linker
   3853 # -------------------
   3854 
   3855 # With GNU ld
   3856 
   3857 # Check whether --with-gnu-ld was given.
   3858 if test "${with_gnu_ld+set}" = set; then :
   3859   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
   3860 else
   3861   gnu_ld_flag=no
   3862 fi
   3863 
   3864 
   3865 case $target in
   3866     *darwin*)
   3867 	ld64_flag=yes # Darwin can only use a ld64-compatible linker.
   3868 	dsymutil_flag=yes # Darwin uses dsymutil to link debug.
   3869 	;;
   3870     *)
   3871 	ld64_flag=no
   3872 	dsymutil_flag=no
   3873 	;;
   3874 esac
   3875 
   3876 # With pre-defined ld
   3877 
   3878 # Check whether --with-ld was given.
   3879 if test "${with_ld+set}" = set; then :
   3880   withval=$with_ld; DEFAULT_LINKER="$with_ld"
   3881 fi
   3882 
   3883 if test x"${DEFAULT_LINKER+set}" = x"set"; then
   3884   if test ! -x "$DEFAULT_LINKER"; then
   3885     as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
   3886   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
   3887     gnu_ld_flag=yes
   3888   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep 'PROJECT:ld\(64\)*-' > /dev/null; then
   3889     ld64_flag=yes
   3890   fi
   3891 
   3892 cat >>confdefs.h <<_ACEOF
   3893 #define DEFAULT_LINKER "$DEFAULT_LINKER"
   3894 _ACEOF
   3895 
   3896 fi
   3897 
   3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
   3899 $as_echo_n "checking whether a default linker was specified... " >&6; }
   3900 if test x"${DEFAULT_LINKER+set}" = x"set"; then
   3901   if test x"$gnu_ld_flag" = x"no"; then
   3902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
   3903 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
   3904   else
   3905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
   3906 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
   3907   fi
   3908 else
   3909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3910 $as_echo "no" >&6; }
   3911 fi
   3912 
   3913 # With demangler in GNU ld
   3914 
   3915 # Check whether --with-demangler-in-ld was given.
   3916 if test "${with_demangler_in_ld+set}" = set; then :
   3917   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
   3918 else
   3919   demangler_in_ld=yes
   3920 fi
   3921 
   3922 
   3923 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
   3924 
   3925 # Check whether --with-dsymutil was given.
   3926 if test "${with_dsymutil+set}" = set; then :
   3927   withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
   3928 fi
   3929 
   3930 
   3931 dsymutil_vers=
   3932 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
   3933   if test ! -x "$DEFAULT_DSYMUTIL"; then
   3934     as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
   3935   else
   3936     if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
   3937       dsymutil_flag=yes
   3938     fi
   3939   fi
   3940 
   3941 cat >>confdefs.h <<_ACEOF
   3942 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
   3943 _ACEOF
   3944 
   3945 fi
   3946 
   3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
   3948 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
   3949 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
   3950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
   3951 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
   3952 else
   3953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3954 $as_echo "no" >&6; }
   3955 fi
   3956 
   3957 # ----------------------
   3958 # Find default assembler
   3959 # ----------------------
   3960 
   3961 # With GNU as
   3962 
   3963 # Check whether --with-gnu-as was given.
   3964 if test "${with_gnu_as+set}" = set; then :
   3965   withval=$with_gnu_as; gas_flag="$with_gnu_as"
   3966 else
   3967   gas_flag=no
   3968 fi
   3969 
   3970 
   3971 
   3972 # Check whether --with-as was given.
   3973 if test "${with_as+set}" = set; then :
   3974   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
   3975 fi
   3976 
   3977 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
   3978   if test ! -x "$DEFAULT_ASSEMBLER"; then
   3979     as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
   3980   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
   3981     gas_flag=yes
   3982   fi
   3983 
   3984 cat >>confdefs.h <<_ACEOF
   3985 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
   3986 _ACEOF
   3987 
   3988 fi
   3989 
   3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
   3991 $as_echo_n "checking whether a default assembler was specified... " >&6; }
   3992 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
   3993   if test x"$gas_flag" = x"no"; then
   3994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
   3995 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
   3996   else
   3997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
   3998 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
   3999   fi
   4000 else
   4001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4002 $as_echo "no" >&6; }
   4003 fi
   4004 
   4005 # ---------------
   4006 # Find C compiler
   4007 # ---------------
   4008 
   4009 # If a non-executable a.out is present (e.g. created by GNU as above even if
   4010 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
   4011 # file, even when creating an executable, so an execution test fails.
   4012 # Remove possible default executable files to avoid this.
   4013 #
   4014 # FIXME: This really belongs into AC_PROG_CC and can be removed once
   4015 # Autoconf includes it.
   4016 rm -f a.out a.exe b.out
   4017 
   4018 # Find the native compiler
   4019 ac_ext=c
   4020 ac_cpp='$CPP $CPPFLAGS'
   4021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4024 if test -n "$ac_tool_prefix"; then
   4025   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   4026 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4028 $as_echo_n "checking for $ac_word... " >&6; }
   4029 if ${ac_cv_prog_CC+:} false; then :
   4030   $as_echo_n "(cached) " >&6
   4031 else
   4032   if test -n "$CC"; then
   4033   ac_cv_prog_CC="$CC" # Let the user override the test.
   4034 else
   4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4036 for as_dir in $PATH
   4037 do
   4038   IFS=$as_save_IFS
   4039   test -z "$as_dir" && as_dir=.
   4040     for ac_exec_ext in '' $ac_executable_extensions; do
   4041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4042     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   4043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4044     break 2
   4045   fi
   4046 done
   4047   done
   4048 IFS=$as_save_IFS
   4049 
   4050 fi
   4051 fi
   4052 CC=$ac_cv_prog_CC
   4053 if test -n "$CC"; then
   4054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4055 $as_echo "$CC" >&6; }
   4056 else
   4057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4058 $as_echo "no" >&6; }
   4059 fi
   4060 
   4061 
   4062 fi
   4063 if test -z "$ac_cv_prog_CC"; then
   4064   ac_ct_CC=$CC
   4065   # Extract the first word of "gcc", so it can be a program name with args.
   4066 set dummy gcc; ac_word=$2
   4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4068 $as_echo_n "checking for $ac_word... " >&6; }
   4069 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   4070   $as_echo_n "(cached) " >&6
   4071 else
   4072   if test -n "$ac_ct_CC"; then
   4073   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4074 else
   4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4076 for as_dir in $PATH
   4077 do
   4078   IFS=$as_save_IFS
   4079   test -z "$as_dir" && as_dir=.
   4080     for ac_exec_ext in '' $ac_executable_extensions; do
   4081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4082     ac_cv_prog_ac_ct_CC="gcc"
   4083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4084     break 2
   4085   fi
   4086 done
   4087   done
   4088 IFS=$as_save_IFS
   4089 
   4090 fi
   4091 fi
   4092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4093 if test -n "$ac_ct_CC"; then
   4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4095 $as_echo "$ac_ct_CC" >&6; }
   4096 else
   4097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4098 $as_echo "no" >&6; }
   4099 fi
   4100 
   4101   if test "x$ac_ct_CC" = x; then
   4102     CC=""
   4103   else
   4104     case $cross_compiling:$ac_tool_warned in
   4105 yes:)
   4106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4108 ac_tool_warned=yes ;;
   4109 esac
   4110     CC=$ac_ct_CC
   4111   fi
   4112 else
   4113   CC="$ac_cv_prog_CC"
   4114 fi
   4115 
   4116 if test -z "$CC"; then
   4117           if test -n "$ac_tool_prefix"; then
   4118     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   4119 set dummy ${ac_tool_prefix}cc; ac_word=$2
   4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4121 $as_echo_n "checking for $ac_word... " >&6; }
   4122 if ${ac_cv_prog_CC+:} false; then :
   4123   $as_echo_n "(cached) " >&6
   4124 else
   4125   if test -n "$CC"; then
   4126   ac_cv_prog_CC="$CC" # Let the user override the test.
   4127 else
   4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4129 for as_dir in $PATH
   4130 do
   4131   IFS=$as_save_IFS
   4132   test -z "$as_dir" && as_dir=.
   4133     for ac_exec_ext in '' $ac_executable_extensions; do
   4134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4135     ac_cv_prog_CC="${ac_tool_prefix}cc"
   4136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4137     break 2
   4138   fi
   4139 done
   4140   done
   4141 IFS=$as_save_IFS
   4142 
   4143 fi
   4144 fi
   4145 CC=$ac_cv_prog_CC
   4146 if test -n "$CC"; then
   4147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4148 $as_echo "$CC" >&6; }
   4149 else
   4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4151 $as_echo "no" >&6; }
   4152 fi
   4153 
   4154 
   4155   fi
   4156 fi
   4157 if test -z "$CC"; then
   4158   # Extract the first word of "cc", so it can be a program name with args.
   4159 set dummy cc; ac_word=$2
   4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4161 $as_echo_n "checking for $ac_word... " >&6; }
   4162 if ${ac_cv_prog_CC+:} false; then :
   4163   $as_echo_n "(cached) " >&6
   4164 else
   4165   if test -n "$CC"; then
   4166   ac_cv_prog_CC="$CC" # Let the user override the test.
   4167 else
   4168   ac_prog_rejected=no
   4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4170 for as_dir in $PATH
   4171 do
   4172   IFS=$as_save_IFS
   4173   test -z "$as_dir" && as_dir=.
   4174     for ac_exec_ext in '' $ac_executable_extensions; do
   4175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4176     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   4177        ac_prog_rejected=yes
   4178        continue
   4179      fi
   4180     ac_cv_prog_CC="cc"
   4181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4182     break 2
   4183   fi
   4184 done
   4185   done
   4186 IFS=$as_save_IFS
   4187 
   4188 if test $ac_prog_rejected = yes; then
   4189   # We found a bogon in the path, so make sure we never use it.
   4190   set dummy $ac_cv_prog_CC
   4191   shift
   4192   if test $# != 0; then
   4193     # We chose a different compiler from the bogus one.
   4194     # However, it has the same basename, so the bogon will be chosen
   4195     # first if we set CC to just the basename; use the full file name.
   4196     shift
   4197     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   4198   fi
   4199 fi
   4200 fi
   4201 fi
   4202 CC=$ac_cv_prog_CC
   4203 if test -n "$CC"; then
   4204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4205 $as_echo "$CC" >&6; }
   4206 else
   4207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4208 $as_echo "no" >&6; }
   4209 fi
   4210 
   4211 
   4212 fi
   4213 if test -z "$CC"; then
   4214   if test -n "$ac_tool_prefix"; then
   4215   for ac_prog in cl.exe
   4216   do
   4217     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4220 $as_echo_n "checking for $ac_word... " >&6; }
   4221 if ${ac_cv_prog_CC+:} false; then :
   4222   $as_echo_n "(cached) " >&6
   4223 else
   4224   if test -n "$CC"; then
   4225   ac_cv_prog_CC="$CC" # Let the user override the test.
   4226 else
   4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4228 for as_dir in $PATH
   4229 do
   4230   IFS=$as_save_IFS
   4231   test -z "$as_dir" && as_dir=.
   4232     for ac_exec_ext in '' $ac_executable_extensions; do
   4233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4234     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   4235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4236     break 2
   4237   fi
   4238 done
   4239   done
   4240 IFS=$as_save_IFS
   4241 
   4242 fi
   4243 fi
   4244 CC=$ac_cv_prog_CC
   4245 if test -n "$CC"; then
   4246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4247 $as_echo "$CC" >&6; }
   4248 else
   4249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4250 $as_echo "no" >&6; }
   4251 fi
   4252 
   4253 
   4254     test -n "$CC" && break
   4255   done
   4256 fi
   4257 if test -z "$CC"; then
   4258   ac_ct_CC=$CC
   4259   for ac_prog in cl.exe
   4260 do
   4261   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4262 set dummy $ac_prog; ac_word=$2
   4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4264 $as_echo_n "checking for $ac_word... " >&6; }
   4265 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   4266   $as_echo_n "(cached) " >&6
   4267 else
   4268   if test -n "$ac_ct_CC"; then
   4269   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4270 else
   4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4272 for as_dir in $PATH
   4273 do
   4274   IFS=$as_save_IFS
   4275   test -z "$as_dir" && as_dir=.
   4276     for ac_exec_ext in '' $ac_executable_extensions; do
   4277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4278     ac_cv_prog_ac_ct_CC="$ac_prog"
   4279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4280     break 2
   4281   fi
   4282 done
   4283   done
   4284 IFS=$as_save_IFS
   4285 
   4286 fi
   4287 fi
   4288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4289 if test -n "$ac_ct_CC"; then
   4290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4291 $as_echo "$ac_ct_CC" >&6; }
   4292 else
   4293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4294 $as_echo "no" >&6; }
   4295 fi
   4296 
   4297 
   4298   test -n "$ac_ct_CC" && break
   4299 done
   4300 
   4301   if test "x$ac_ct_CC" = x; then
   4302     CC=""
   4303   else
   4304     case $cross_compiling:$ac_tool_warned in
   4305 yes:)
   4306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4308 ac_tool_warned=yes ;;
   4309 esac
   4310     CC=$ac_ct_CC
   4311   fi
   4312 fi
   4313 
   4314 fi
   4315 
   4316 
   4317 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4319 as_fn_error $? "no acceptable C compiler found in \$PATH
   4320 See \`config.log' for more details" "$LINENO" 5; }
   4321 
   4322 # Provide some information about the compiler.
   4323 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   4324 set X $ac_compile
   4325 ac_compiler=$2
   4326 for ac_option in --version -v -V -qversion; do
   4327   { { ac_try="$ac_compiler $ac_option >&5"
   4328 case "(($ac_try" in
   4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4330   *) ac_try_echo=$ac_try;;
   4331 esac
   4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4333 $as_echo "$ac_try_echo"; } >&5
   4334   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   4335   ac_status=$?
   4336   if test -s conftest.err; then
   4337     sed '10a\
   4338 ... rest of stderr output deleted ...
   4339          10q' conftest.err >conftest.er1
   4340     cat conftest.er1 >&5
   4341   fi
   4342   rm -f conftest.er1 conftest.err
   4343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4344   test $ac_status = 0; }
   4345 done
   4346 
   4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4348 /* end confdefs.h.  */
   4349 
   4350 int
   4351 main ()
   4352 {
   4353 
   4354   ;
   4355   return 0;
   4356 }
   4357 _ACEOF
   4358 ac_clean_files_save=$ac_clean_files
   4359 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   4360 # Try to create an executable without -o first, disregard a.out.
   4361 # It will help us diagnose broken compilers, and finding out an intuition
   4362 # of exeext.
   4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   4364 $as_echo_n "checking whether the C compiler works... " >&6; }
   4365 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   4366 
   4367 # The possible output files:
   4368 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   4369 
   4370 ac_rmfiles=
   4371 for ac_file in $ac_files
   4372 do
   4373   case $ac_file in
   4374     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4375     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   4376   esac
   4377 done
   4378 rm -f $ac_rmfiles
   4379 
   4380 if { { ac_try="$ac_link_default"
   4381 case "(($ac_try" in
   4382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4383   *) ac_try_echo=$ac_try;;
   4384 esac
   4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4386 $as_echo "$ac_try_echo"; } >&5
   4387   (eval "$ac_link_default") 2>&5
   4388   ac_status=$?
   4389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4390   test $ac_status = 0; }; then :
   4391   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   4392 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   4393 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   4394 # so that the user can short-circuit this test for compilers unknown to
   4395 # Autoconf.
   4396 for ac_file in $ac_files ''
   4397 do
   4398   test -f "$ac_file" || continue
   4399   case $ac_file in
   4400     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   4401 	;;
   4402     [ab].out )
   4403 	# We found the default executable, but exeext='' is most
   4404 	# certainly right.
   4405 	break;;
   4406     *.* )
   4407 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   4408 	then :; else
   4409 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4410 	fi
   4411 	# We set ac_cv_exeext here because the later test for it is not
   4412 	# safe: cross compilers may not add the suffix if given an `-o'
   4413 	# argument, so we may need to know it at that point already.
   4414 	# Even if this section looks crufty: it has the advantage of
   4415 	# actually working.
   4416 	break;;
   4417     * )
   4418 	break;;
   4419   esac
   4420 done
   4421 test "$ac_cv_exeext" = no && ac_cv_exeext=
   4422 
   4423 else
   4424   ac_file=''
   4425 fi
   4426 if test -z "$ac_file"; then :
   4427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4428 $as_echo "no" >&6; }
   4429 $as_echo "$as_me: failed program was:" >&5
   4430 sed 's/^/| /' conftest.$ac_ext >&5
   4431 
   4432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4434 as_fn_error 77 "C compiler cannot create executables
   4435 See \`config.log' for more details" "$LINENO" 5; }
   4436 else
   4437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4438 $as_echo "yes" >&6; }
   4439 fi
   4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   4441 $as_echo_n "checking for C compiler default output file name... " >&6; }
   4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   4443 $as_echo "$ac_file" >&6; }
   4444 ac_exeext=$ac_cv_exeext
   4445 
   4446 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   4447 ac_clean_files=$ac_clean_files_save
   4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   4449 $as_echo_n "checking for suffix of executables... " >&6; }
   4450 if { { ac_try="$ac_link"
   4451 case "(($ac_try" in
   4452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4453   *) ac_try_echo=$ac_try;;
   4454 esac
   4455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4456 $as_echo "$ac_try_echo"; } >&5
   4457   (eval "$ac_link") 2>&5
   4458   ac_status=$?
   4459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4460   test $ac_status = 0; }; then :
   4461   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   4462 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   4463 # work properly (i.e., refer to `conftest.exe'), while it won't with
   4464 # `rm'.
   4465 for ac_file in conftest.exe conftest conftest.*; do
   4466   test -f "$ac_file" || continue
   4467   case $ac_file in
   4468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4469     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4470 	  break;;
   4471     * ) break;;
   4472   esac
   4473 done
   4474 else
   4475   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4477 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   4478 See \`config.log' for more details" "$LINENO" 5; }
   4479 fi
   4480 rm -f conftest conftest$ac_cv_exeext
   4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   4482 $as_echo "$ac_cv_exeext" >&6; }
   4483 
   4484 rm -f conftest.$ac_ext
   4485 EXEEXT=$ac_cv_exeext
   4486 ac_exeext=$EXEEXT
   4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4488 /* end confdefs.h.  */
   4489 #include <stdio.h>
   4490 int
   4491 main ()
   4492 {
   4493 FILE *f = fopen ("conftest.out", "w");
   4494  return ferror (f) || fclose (f) != 0;
   4495 
   4496   ;
   4497   return 0;
   4498 }
   4499 _ACEOF
   4500 ac_clean_files="$ac_clean_files conftest.out"
   4501 # Check that the compiler produces executables we can run.  If not, either
   4502 # the compiler is broken, or we cross compile.
   4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   4504 $as_echo_n "checking whether we are cross compiling... " >&6; }
   4505 if test "$cross_compiling" != yes; then
   4506   { { ac_try="$ac_link"
   4507 case "(($ac_try" in
   4508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4509   *) ac_try_echo=$ac_try;;
   4510 esac
   4511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4512 $as_echo "$ac_try_echo"; } >&5
   4513   (eval "$ac_link") 2>&5
   4514   ac_status=$?
   4515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4516   test $ac_status = 0; }
   4517   if { ac_try='./conftest$ac_cv_exeext'
   4518   { { case "(($ac_try" in
   4519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4520   *) ac_try_echo=$ac_try;;
   4521 esac
   4522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4523 $as_echo "$ac_try_echo"; } >&5
   4524   (eval "$ac_try") 2>&5
   4525   ac_status=$?
   4526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4527   test $ac_status = 0; }; }; then
   4528     cross_compiling=no
   4529   else
   4530     if test "$cross_compiling" = maybe; then
   4531 	cross_compiling=yes
   4532     else
   4533 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4535 as_fn_error $? "cannot run C compiled programs.
   4536 If you meant to cross compile, use \`--host'.
   4537 See \`config.log' for more details" "$LINENO" 5; }
   4538     fi
   4539   fi
   4540 fi
   4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   4542 $as_echo "$cross_compiling" >&6; }
   4543 
   4544 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   4545 ac_clean_files=$ac_clean_files_save
   4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   4547 $as_echo_n "checking for suffix of object files... " >&6; }
   4548 if ${ac_cv_objext+:} false; then :
   4549   $as_echo_n "(cached) " >&6
   4550 else
   4551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4552 /* end confdefs.h.  */
   4553 
   4554 int
   4555 main ()
   4556 {
   4557 
   4558   ;
   4559   return 0;
   4560 }
   4561 _ACEOF
   4562 rm -f conftest.o conftest.obj
   4563 if { { ac_try="$ac_compile"
   4564 case "(($ac_try" in
   4565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4566   *) ac_try_echo=$ac_try;;
   4567 esac
   4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4569 $as_echo "$ac_try_echo"; } >&5
   4570   (eval "$ac_compile") 2>&5
   4571   ac_status=$?
   4572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4573   test $ac_status = 0; }; then :
   4574   for ac_file in conftest.o conftest.obj conftest.*; do
   4575   test -f "$ac_file" || continue;
   4576   case $ac_file in
   4577     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   4578     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   4579        break;;
   4580   esac
   4581 done
   4582 else
   4583   $as_echo "$as_me: failed program was:" >&5
   4584 sed 's/^/| /' conftest.$ac_ext >&5
   4585 
   4586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4588 as_fn_error $? "cannot compute suffix of object files: cannot compile
   4589 See \`config.log' for more details" "$LINENO" 5; }
   4590 fi
   4591 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   4592 fi
   4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   4594 $as_echo "$ac_cv_objext" >&6; }
   4595 OBJEXT=$ac_cv_objext
   4596 ac_objext=$OBJEXT
   4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   4598 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   4599 if ${ac_cv_c_compiler_gnu+:} false; then :
   4600   $as_echo_n "(cached) " >&6
   4601 else
   4602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4603 /* end confdefs.h.  */
   4604 
   4605 int
   4606 main ()
   4607 {
   4608 #ifndef __GNUC__
   4609        choke me
   4610 #endif
   4611 
   4612   ;
   4613   return 0;
   4614 }
   4615 _ACEOF
   4616 if ac_fn_c_try_compile "$LINENO"; then :
   4617   ac_compiler_gnu=yes
   4618 else
   4619   ac_compiler_gnu=no
   4620 fi
   4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4622 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   4623 
   4624 fi
   4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   4626 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   4627 if test $ac_compiler_gnu = yes; then
   4628   GCC=yes
   4629 else
   4630   GCC=
   4631 fi
   4632 ac_test_CFLAGS=${CFLAGS+set}
   4633 ac_save_CFLAGS=$CFLAGS
   4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   4635 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   4636 if ${ac_cv_prog_cc_g+:} false; then :
   4637   $as_echo_n "(cached) " >&6
   4638 else
   4639   ac_save_c_werror_flag=$ac_c_werror_flag
   4640    ac_c_werror_flag=yes
   4641    ac_cv_prog_cc_g=no
   4642    CFLAGS="-g"
   4643    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4644 /* end confdefs.h.  */
   4645 
   4646 int
   4647 main ()
   4648 {
   4649 
   4650   ;
   4651   return 0;
   4652 }
   4653 _ACEOF
   4654 if ac_fn_c_try_compile "$LINENO"; then :
   4655   ac_cv_prog_cc_g=yes
   4656 else
   4657   CFLAGS=""
   4658       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4659 /* end confdefs.h.  */
   4660 
   4661 int
   4662 main ()
   4663 {
   4664 
   4665   ;
   4666   return 0;
   4667 }
   4668 _ACEOF
   4669 if ac_fn_c_try_compile "$LINENO"; then :
   4670 
   4671 else
   4672   ac_c_werror_flag=$ac_save_c_werror_flag
   4673 	 CFLAGS="-g"
   4674 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4675 /* end confdefs.h.  */
   4676 
   4677 int
   4678 main ()
   4679 {
   4680 
   4681   ;
   4682   return 0;
   4683 }
   4684 _ACEOF
   4685 if ac_fn_c_try_compile "$LINENO"; then :
   4686   ac_cv_prog_cc_g=yes
   4687 fi
   4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4689 fi
   4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4691 fi
   4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4693    ac_c_werror_flag=$ac_save_c_werror_flag
   4694 fi
   4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   4696 $as_echo "$ac_cv_prog_cc_g" >&6; }
   4697 if test "$ac_test_CFLAGS" = set; then
   4698   CFLAGS=$ac_save_CFLAGS
   4699 elif test $ac_cv_prog_cc_g = yes; then
   4700   if test "$GCC" = yes; then
   4701     CFLAGS="-g -O2"
   4702   else
   4703     CFLAGS="-g"
   4704   fi
   4705 else
   4706   if test "$GCC" = yes; then
   4707     CFLAGS="-O2"
   4708   else
   4709     CFLAGS=
   4710   fi
   4711 fi
   4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   4713 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   4714 if ${ac_cv_prog_cc_c89+:} false; then :
   4715   $as_echo_n "(cached) " >&6
   4716 else
   4717   ac_cv_prog_cc_c89=no
   4718 ac_save_CC=$CC
   4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4720 /* end confdefs.h.  */
   4721 #include <stdarg.h>
   4722 #include <stdio.h>
   4723 struct stat;
   4724 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4725 struct buf { int x; };
   4726 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4727 static char *e (p, i)
   4728      char **p;
   4729      int i;
   4730 {
   4731   return p[i];
   4732 }
   4733 static char *f (char * (*g) (char **, int), char **p, ...)
   4734 {
   4735   char *s;
   4736   va_list v;
   4737   va_start (v,p);
   4738   s = g (p, va_arg (v,int));
   4739   va_end (v);
   4740   return s;
   4741 }
   4742 
   4743 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   4744    function prototypes and stuff, but not '\xHH' hex character constants.
   4745    These don't provoke an error unfortunately, instead are silently treated
   4746    as 'x'.  The following induces an error, until -std is added to get
   4747    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   4748    array size at least.  It's necessary to write '\x00'==0 to get something
   4749    that's true only with -std.  */
   4750 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   4751 
   4752 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   4753    inside strings and character constants.  */
   4754 #define FOO(x) 'x'
   4755 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   4756 
   4757 int test (int i, double x);
   4758 struct s1 {int (*f) (int a);};
   4759 struct s2 {int (*f) (double a);};
   4760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4761 int argc;
   4762 char **argv;
   4763 int
   4764 main ()
   4765 {
   4766 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4767   ;
   4768   return 0;
   4769 }
   4770 _ACEOF
   4771 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   4772 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4773 do
   4774   CC="$ac_save_CC $ac_arg"
   4775   if ac_fn_c_try_compile "$LINENO"; then :
   4776   ac_cv_prog_cc_c89=$ac_arg
   4777 fi
   4778 rm -f core conftest.err conftest.$ac_objext
   4779   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4780 done
   4781 rm -f conftest.$ac_ext
   4782 CC=$ac_save_CC
   4783 
   4784 fi
   4785 # AC_CACHE_VAL
   4786 case "x$ac_cv_prog_cc_c89" in
   4787   x)
   4788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4789 $as_echo "none needed" >&6; } ;;
   4790   xno)
   4791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4792 $as_echo "unsupported" >&6; } ;;
   4793   *)
   4794     CC="$CC $ac_cv_prog_cc_c89"
   4795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4796 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   4797 esac
   4798 if test "x$ac_cv_prog_cc_c89" != xno; then :
   4799 
   4800 fi
   4801 
   4802 ac_ext=c
   4803 ac_cpp='$CPP $CPPFLAGS'
   4804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4807 
   4808 ac_ext=cpp
   4809 ac_cpp='$CXXCPP $CPPFLAGS'
   4810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   4813 if test -z "$CXX"; then
   4814   if test -n "$CCC"; then
   4815     CXX=$CCC
   4816   else
   4817     if test -n "$ac_tool_prefix"; then
   4818   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   4819   do
   4820     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4823 $as_echo_n "checking for $ac_word... " >&6; }
   4824 if ${ac_cv_prog_CXX+:} false; then :
   4825   $as_echo_n "(cached) " >&6
   4826 else
   4827   if test -n "$CXX"; then
   4828   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   4829 else
   4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4831 for as_dir in $PATH
   4832 do
   4833   IFS=$as_save_IFS
   4834   test -z "$as_dir" && as_dir=.
   4835     for ac_exec_ext in '' $ac_executable_extensions; do
   4836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4837     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   4838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4839     break 2
   4840   fi
   4841 done
   4842   done
   4843 IFS=$as_save_IFS
   4844 
   4845 fi
   4846 fi
   4847 CXX=$ac_cv_prog_CXX
   4848 if test -n "$CXX"; then
   4849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   4850 $as_echo "$CXX" >&6; }
   4851 else
   4852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4853 $as_echo "no" >&6; }
   4854 fi
   4855 
   4856 
   4857     test -n "$CXX" && break
   4858   done
   4859 fi
   4860 if test -z "$CXX"; then
   4861   ac_ct_CXX=$CXX
   4862   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   4863 do
   4864   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4865 set dummy $ac_prog; ac_word=$2
   4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4867 $as_echo_n "checking for $ac_word... " >&6; }
   4868 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
   4869   $as_echo_n "(cached) " >&6
   4870 else
   4871   if test -n "$ac_ct_CXX"; then
   4872   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   4873 else
   4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4875 for as_dir in $PATH
   4876 do
   4877   IFS=$as_save_IFS
   4878   test -z "$as_dir" && as_dir=.
   4879     for ac_exec_ext in '' $ac_executable_extensions; do
   4880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4881     ac_cv_prog_ac_ct_CXX="$ac_prog"
   4882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4883     break 2
   4884   fi
   4885 done
   4886   done
   4887 IFS=$as_save_IFS
   4888 
   4889 fi
   4890 fi
   4891 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   4892 if test -n "$ac_ct_CXX"; then
   4893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   4894 $as_echo "$ac_ct_CXX" >&6; }
   4895 else
   4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4897 $as_echo "no" >&6; }
   4898 fi
   4899 
   4900 
   4901   test -n "$ac_ct_CXX" && break
   4902 done
   4903 
   4904   if test "x$ac_ct_CXX" = x; then
   4905     CXX="g++"
   4906   else
   4907     case $cross_compiling:$ac_tool_warned in
   4908 yes:)
   4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4911 ac_tool_warned=yes ;;
   4912 esac
   4913     CXX=$ac_ct_CXX
   4914   fi
   4915 fi
   4916 
   4917   fi
   4918 fi
   4919 # Provide some information about the compiler.
   4920 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   4921 set X $ac_compile
   4922 ac_compiler=$2
   4923 for ac_option in --version -v -V -qversion; do
   4924   { { ac_try="$ac_compiler $ac_option >&5"
   4925 case "(($ac_try" in
   4926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4927   *) ac_try_echo=$ac_try;;
   4928 esac
   4929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4930 $as_echo "$ac_try_echo"; } >&5
   4931   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   4932   ac_status=$?
   4933   if test -s conftest.err; then
   4934     sed '10a\
   4935 ... rest of stderr output deleted ...
   4936          10q' conftest.err >conftest.er1
   4937     cat conftest.er1 >&5
   4938   fi
   4939   rm -f conftest.er1 conftest.err
   4940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4941   test $ac_status = 0; }
   4942 done
   4943 
   4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   4945 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   4946 if ${ac_cv_cxx_compiler_gnu+:} false; then :
   4947   $as_echo_n "(cached) " >&6
   4948 else
   4949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4950 /* end confdefs.h.  */
   4951 
   4952 int
   4953 main ()
   4954 {
   4955 #ifndef __GNUC__
   4956        choke me
   4957 #endif
   4958 
   4959   ;
   4960   return 0;
   4961 }
   4962 _ACEOF
   4963 if ac_fn_cxx_try_compile "$LINENO"; then :
   4964   ac_compiler_gnu=yes
   4965 else
   4966   ac_compiler_gnu=no
   4967 fi
   4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4969 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   4970 
   4971 fi
   4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   4973 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   4974 if test $ac_compiler_gnu = yes; then
   4975   GXX=yes
   4976 else
   4977   GXX=
   4978 fi
   4979 ac_test_CXXFLAGS=${CXXFLAGS+set}
   4980 ac_save_CXXFLAGS=$CXXFLAGS
   4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   4982 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   4983 if ${ac_cv_prog_cxx_g+:} false; then :
   4984   $as_echo_n "(cached) " >&6
   4985 else
   4986   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   4987    ac_cxx_werror_flag=yes
   4988    ac_cv_prog_cxx_g=no
   4989    CXXFLAGS="-g"
   4990    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4991 /* end confdefs.h.  */
   4992 
   4993 int
   4994 main ()
   4995 {
   4996 
   4997   ;
   4998   return 0;
   4999 }
   5000 _ACEOF
   5001 if ac_fn_cxx_try_compile "$LINENO"; then :
   5002   ac_cv_prog_cxx_g=yes
   5003 else
   5004   CXXFLAGS=""
   5005       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5006 /* end confdefs.h.  */
   5007 
   5008 int
   5009 main ()
   5010 {
   5011 
   5012   ;
   5013   return 0;
   5014 }
   5015 _ACEOF
   5016 if ac_fn_cxx_try_compile "$LINENO"; then :
   5017 
   5018 else
   5019   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   5020 	 CXXFLAGS="-g"
   5021 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5022 /* end confdefs.h.  */
   5023 
   5024 int
   5025 main ()
   5026 {
   5027 
   5028   ;
   5029   return 0;
   5030 }
   5031 _ACEOF
   5032 if ac_fn_cxx_try_compile "$LINENO"; then :
   5033   ac_cv_prog_cxx_g=yes
   5034 fi
   5035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5036 fi
   5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5038 fi
   5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5040    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   5041 fi
   5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   5043 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   5044 if test "$ac_test_CXXFLAGS" = set; then
   5045   CXXFLAGS=$ac_save_CXXFLAGS
   5046 elif test $ac_cv_prog_cxx_g = yes; then
   5047   if test "$GXX" = yes; then
   5048     CXXFLAGS="-g -O2"
   5049   else
   5050     CXXFLAGS="-g"
   5051   fi
   5052 else
   5053   if test "$GXX" = yes; then
   5054     CXXFLAGS="-O2"
   5055   else
   5056     CXXFLAGS=
   5057   fi
   5058 fi
   5059 ac_ext=c
   5060 ac_cpp='$CPP $CPPFLAGS'
   5061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5064 
   5065 
   5066 
   5067 
   5068 if test -n "$ac_tool_prefix"; then
   5069   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
   5070 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
   5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5072 $as_echo_n "checking for $ac_word... " >&6; }
   5073 if ${ac_cv_prog_GNATBIND+:} false; then :
   5074   $as_echo_n "(cached) " >&6
   5075 else
   5076   if test -n "$GNATBIND"; then
   5077   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
   5078 else
   5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5080 for as_dir in $PATH
   5081 do
   5082   IFS=$as_save_IFS
   5083   test -z "$as_dir" && as_dir=.
   5084     for ac_exec_ext in '' $ac_executable_extensions; do
   5085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5086     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
   5087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5088     break 2
   5089   fi
   5090 done
   5091   done
   5092 IFS=$as_save_IFS
   5093 
   5094 fi
   5095 fi
   5096 GNATBIND=$ac_cv_prog_GNATBIND
   5097 if test -n "$GNATBIND"; then
   5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
   5099 $as_echo "$GNATBIND" >&6; }
   5100 else
   5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5102 $as_echo "no" >&6; }
   5103 fi
   5104 
   5105 
   5106 fi
   5107 if test -z "$ac_cv_prog_GNATBIND"; then
   5108   ac_ct_GNATBIND=$GNATBIND
   5109   # Extract the first word of "gnatbind", so it can be a program name with args.
   5110 set dummy gnatbind; ac_word=$2
   5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5112 $as_echo_n "checking for $ac_word... " >&6; }
   5113 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
   5114   $as_echo_n "(cached) " >&6
   5115 else
   5116   if test -n "$ac_ct_GNATBIND"; then
   5117   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
   5118 else
   5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5120 for as_dir in $PATH
   5121 do
   5122   IFS=$as_save_IFS
   5123   test -z "$as_dir" && as_dir=.
   5124     for ac_exec_ext in '' $ac_executable_extensions; do
   5125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5126     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
   5127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5128     break 2
   5129   fi
   5130 done
   5131   done
   5132 IFS=$as_save_IFS
   5133 
   5134 fi
   5135 fi
   5136 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
   5137 if test -n "$ac_ct_GNATBIND"; then
   5138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
   5139 $as_echo "$ac_ct_GNATBIND" >&6; }
   5140 else
   5141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5142 $as_echo "no" >&6; }
   5143 fi
   5144 
   5145   if test "x$ac_ct_GNATBIND" = x; then
   5146     GNATBIND="no"
   5147   else
   5148     case $cross_compiling:$ac_tool_warned in
   5149 yes:)
   5150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5152 ac_tool_warned=yes ;;
   5153 esac
   5154     GNATBIND=$ac_ct_GNATBIND
   5155   fi
   5156 else
   5157   GNATBIND="$ac_cv_prog_GNATBIND"
   5158 fi
   5159 
   5160 if test -n "$ac_tool_prefix"; then
   5161   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
   5162 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
   5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5164 $as_echo_n "checking for $ac_word... " >&6; }
   5165 if ${ac_cv_prog_GNATMAKE+:} false; then :
   5166   $as_echo_n "(cached) " >&6
   5167 else
   5168   if test -n "$GNATMAKE"; then
   5169   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
   5170 else
   5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5172 for as_dir in $PATH
   5173 do
   5174   IFS=$as_save_IFS
   5175   test -z "$as_dir" && as_dir=.
   5176     for ac_exec_ext in '' $ac_executable_extensions; do
   5177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5178     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
   5179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5180     break 2
   5181   fi
   5182 done
   5183   done
   5184 IFS=$as_save_IFS
   5185 
   5186 fi
   5187 fi
   5188 GNATMAKE=$ac_cv_prog_GNATMAKE
   5189 if test -n "$GNATMAKE"; then
   5190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
   5191 $as_echo "$GNATMAKE" >&6; }
   5192 else
   5193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5194 $as_echo "no" >&6; }
   5195 fi
   5196 
   5197 
   5198 fi
   5199 if test -z "$ac_cv_prog_GNATMAKE"; then
   5200   ac_ct_GNATMAKE=$GNATMAKE
   5201   # Extract the first word of "gnatmake", so it can be a program name with args.
   5202 set dummy gnatmake; ac_word=$2
   5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5204 $as_echo_n "checking for $ac_word... " >&6; }
   5205 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
   5206   $as_echo_n "(cached) " >&6
   5207 else
   5208   if test -n "$ac_ct_GNATMAKE"; then
   5209   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
   5210 else
   5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5212 for as_dir in $PATH
   5213 do
   5214   IFS=$as_save_IFS
   5215   test -z "$as_dir" && as_dir=.
   5216     for ac_exec_ext in '' $ac_executable_extensions; do
   5217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5218     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
   5219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5220     break 2
   5221   fi
   5222 done
   5223   done
   5224 IFS=$as_save_IFS
   5225 
   5226 fi
   5227 fi
   5228 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
   5229 if test -n "$ac_ct_GNATMAKE"; then
   5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
   5231 $as_echo "$ac_ct_GNATMAKE" >&6; }
   5232 else
   5233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5234 $as_echo "no" >&6; }
   5235 fi
   5236 
   5237   if test "x$ac_ct_GNATMAKE" = x; then
   5238     GNATMAKE="no"
   5239   else
   5240     case $cross_compiling:$ac_tool_warned in
   5241 yes:)
   5242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5244 ac_tool_warned=yes ;;
   5245 esac
   5246     GNATMAKE=$ac_ct_GNATMAKE
   5247   fi
   5248 else
   5249   GNATMAKE="$ac_cv_prog_GNATMAKE"
   5250 fi
   5251 
   5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
   5253 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
   5254 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
   5255   $as_echo_n "(cached) " >&6
   5256 else
   5257   cat >conftest.adb <<EOF
   5258 procedure conftest is begin null; end conftest;
   5259 EOF
   5260 acx_cv_cc_gcc_supports_ada=no
   5261 # There is a bug in old released versions of GCC which causes the
   5262 # driver to exit successfully when the appropriate language module
   5263 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
   5264 # Therefore we must check for the error message as well as an
   5265 # unsuccessful exit.
   5266 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
   5267 # given a .adb file, but produce no object file.  So we must check
   5268 # if an object file was really produced to guard against this.
   5269 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
   5270 if test x"$errors" = x && test -f conftest.$ac_objext; then
   5271   acx_cv_cc_gcc_supports_ada=yes
   5272 fi
   5273 rm -f conftest.*
   5274 fi
   5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
   5276 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
   5277 
   5278 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
   5279   have_gnat=yes
   5280 else
   5281   have_gnat=no
   5282 fi
   5283 
   5284 
   5285 
   5286 if test -n "$ac_tool_prefix"; then
   5287   # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
   5288 set dummy ${ac_tool_prefix}gdc; ac_word=$2
   5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5290 $as_echo_n "checking for $ac_word... " >&6; }
   5291 if ${ac_cv_prog_GDC+:} false; then :
   5292   $as_echo_n "(cached) " >&6
   5293 else
   5294   if test -n "$GDC"; then
   5295   ac_cv_prog_GDC="$GDC" # Let the user override the test.
   5296 else
   5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5298 for as_dir in $PATH
   5299 do
   5300   IFS=$as_save_IFS
   5301   test -z "$as_dir" && as_dir=.
   5302     for ac_exec_ext in '' $ac_executable_extensions; do
   5303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5304     ac_cv_prog_GDC="${ac_tool_prefix}gdc"
   5305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5306     break 2
   5307   fi
   5308 done
   5309   done
   5310 IFS=$as_save_IFS
   5311 
   5312 fi
   5313 fi
   5314 GDC=$ac_cv_prog_GDC
   5315 if test -n "$GDC"; then
   5316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
   5317 $as_echo "$GDC" >&6; }
   5318 else
   5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5320 $as_echo "no" >&6; }
   5321 fi
   5322 
   5323 
   5324 fi
   5325 if test -z "$ac_cv_prog_GDC"; then
   5326   ac_ct_GDC=$GDC
   5327   # Extract the first word of "gdc", so it can be a program name with args.
   5328 set dummy gdc; ac_word=$2
   5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5330 $as_echo_n "checking for $ac_word... " >&6; }
   5331 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
   5332   $as_echo_n "(cached) " >&6
   5333 else
   5334   if test -n "$ac_ct_GDC"; then
   5335   ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
   5336 else
   5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5338 for as_dir in $PATH
   5339 do
   5340   IFS=$as_save_IFS
   5341   test -z "$as_dir" && as_dir=.
   5342     for ac_exec_ext in '' $ac_executable_extensions; do
   5343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5344     ac_cv_prog_ac_ct_GDC="gdc"
   5345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5346     break 2
   5347   fi
   5348 done
   5349   done
   5350 IFS=$as_save_IFS
   5351 
   5352 fi
   5353 fi
   5354 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
   5355 if test -n "$ac_ct_GDC"; then
   5356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
   5357 $as_echo "$ac_ct_GDC" >&6; }
   5358 else
   5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5360 $as_echo "no" >&6; }
   5361 fi
   5362 
   5363   if test "x$ac_ct_GDC" = x; then
   5364     GDC="no"
   5365   else
   5366     case $cross_compiling:$ac_tool_warned in
   5367 yes:)
   5368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5370 ac_tool_warned=yes ;;
   5371 esac
   5372     GDC=$ac_ct_GDC
   5373   fi
   5374 else
   5375   GDC="$ac_cv_prog_GDC"
   5376 fi
   5377 
   5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
   5379 $as_echo_n "checking whether the D compiler works... " >&6; }
   5380 if ${acx_cv_d_compiler_works+:} false; then :
   5381   $as_echo_n "(cached) " >&6
   5382 else
   5383   cat >conftest.d <<EOF
   5384 module conftest; int main() { return 0; }
   5385 EOF
   5386 acx_cv_d_compiler_works=no
   5387 if test "x$GDC" != xno; then
   5388   errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
   5389   if test x"$errors" = x && test -f conftest.$ac_objext; then
   5390     acx_cv_d_compiler_works=yes
   5391   fi
   5392   rm -f conftest.*
   5393 fi
   5394 fi
   5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
   5396 $as_echo "$acx_cv_d_compiler_works" >&6; }
   5397 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
   5398   have_gdc=yes
   5399 else
   5400   have_gdc=no
   5401 fi
   5402 
   5403 
   5404 # Do configure tests with the C++ compiler, since that's what we build with.
   5405 ac_ext=cpp
   5406 ac_cpp='$CXXCPP $CPPFLAGS'
   5407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5410 
   5411 
   5412 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
   5413 # optimizations to be activated explicitly by the toplevel.
   5414 case "$CC" in
   5415   */prev-gcc/xgcc*) ;;
   5416   *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" `
   5417      CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" ` ;;
   5418 esac
   5419 
   5420 
   5421 
   5422 
   5423 # Determine PICFLAG for target gnatlib.
   5424 
   5425 
   5426 
   5427 
   5428 case "${target}" in
   5429     # PIC is the default on some targets or must not be used.
   5430     *-*-darwin*)
   5431 	# For darwin, common symbols are not allowed in MH_DYLIB files
   5432 	case "${CFLAGS}" in
   5433 	  # If we are using a compiler supporting mdynamic-no-pic
   5434 	  # and the option has been tested as safe to add, then cancel
   5435 	  # it here, since the code generated is incompatible with shared
   5436 	  # libs.
   5437 	  *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
   5438 	  *) PICFLAG_FOR_TARGET=-fno-common ;;
   5439 	esac
   5440 	;;
   5441     alpha*-dec-osf5*)
   5442 	# PIC is the default.
   5443 	;;
   5444     hppa*64*-*-hpux*)
   5445 	# PIC is the default for 64-bit PA HP-UX.
   5446 	;;
   5447     i[34567]86-*-cygwin* | x86_64-*-cygwin*)
   5448 	;;
   5449     i[34567]86-*-mingw* | x86_64-*-mingw*)
   5450 	;;
   5451     i[34567]86-*-interix[3-9]*)
   5452 	# Interix 3.x gcc -fpic/-fPIC options generate broken code.
   5453 	# Instead, we relocate shared libraries at runtime.
   5454 	;;
   5455     i[34567]86-*-nto-qnx*)
   5456 	# QNX uses GNU C++, but need to define -shared option too, otherwise
   5457 	# it will coredump.
   5458 	PICFLAG_FOR_TARGET='-fPIC -shared'
   5459 	;;
   5460     i[34567]86-pc-msdosdjgpp*)
   5461 	# DJGPP does not support shared libraries at all.
   5462 	;;
   5463     ia64*-*-hpux*)
   5464 	# On IA64 HP-UX, PIC is the default but the pic flag
   5465 	# sets the default TLS model and affects inlining.
   5466 	PICFLAG_FOR_TARGET=-fPIC
   5467 	;;
   5468     loongarch*-*-*)
   5469 	PICFLAG_FOR_TARGET=-fpic
   5470 	;;
   5471     mips-sgi-irix6*)
   5472 	# PIC is the default.
   5473 	;;
   5474     rs6000-ibm-aix* | powerpc-ibm-aix*)
   5475 	# All AIX code is PIC.
   5476 	;;
   5477 
   5478     # Some targets support both -fPIC and -fpic, but prefer the latter.
   5479     # FIXME: Why?
   5480     i[34567]86-*-* | x86_64-*-*)
   5481 	PICFLAG_FOR_TARGET=-fpic
   5482 	;;
   5483     # FIXME: Override -fPIC default in libgcc only?
   5484     sh-*-linux* | sh[2346lbe]*-*-linux*)
   5485 	PICFLAG_FOR_TARGET=-fpic
   5486 	;;
   5487     # FIXME: Simplify to sh*-*-netbsd*?
   5488     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
   5489       sh64-*-netbsd* | sh64l*-*-netbsd*)
   5490 	PICFLAG_FOR_TARGET=-fpic
   5491 	;;
   5492     # Default to -fPIC unless specified otherwise.
   5493     *)
   5494 	PICFLAG_FOR_TARGET=-fPIC
   5495 	;;
   5496 esac
   5497 
   5498 # If the user explicitly uses -fpic/-fPIC, keep that.
   5499 case "${CFLAGS_FOR_TARGET}" in
   5500     *-fpic*)
   5501 	PICFLAG_FOR_TARGET=-fpic
   5502 	;;
   5503     *-fPIC*)
   5504 	PICFLAG_FOR_TARGET=-fPIC
   5505 	;;
   5506 esac
   5507 
   5508 
   5509 
   5510 # -------------------------
   5511 # Check C compiler features
   5512 # -------------------------
   5513 
   5514 
   5515 ac_ext=cpp
   5516 ac_cpp='$CXXCPP $CPPFLAGS'
   5517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
   5521 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
   5522 if test -z "$CXXCPP"; then
   5523   if ${ac_cv_prog_CXXCPP+:} false; then :
   5524   $as_echo_n "(cached) " >&6
   5525 else
   5526       # Double quotes because CXXCPP needs to be expanded
   5527     for CXXCPP in "$CXX -E" "/lib/cpp"
   5528     do
   5529       ac_preproc_ok=false
   5530 for ac_cxx_preproc_warn_flag in '' yes
   5531 do
   5532   # Use a header file that comes with gcc, so configuring glibc
   5533   # with a fresh cross-compiler works.
   5534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5535   # <limits.h> exists even on freestanding compilers.
   5536   # On the NeXT, cc -E runs the code through the compiler's parser,
   5537   # not just through cpp. "Syntax error" is here to catch this case.
   5538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5539 /* end confdefs.h.  */
   5540 #ifdef __STDC__
   5541 # include <limits.h>
   5542 #else
   5543 # include <assert.h>
   5544 #endif
   5545 		     Syntax error
   5546 _ACEOF
   5547 if ac_fn_cxx_try_cpp "$LINENO"; then :
   5548 
   5549 else
   5550   # Broken: fails on valid input.
   5551 continue
   5552 fi
   5553 rm -f conftest.err conftest.i conftest.$ac_ext
   5554 
   5555   # OK, works on sane cases.  Now check whether nonexistent headers
   5556   # can be detected and how.
   5557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5558 /* end confdefs.h.  */
   5559 #include <ac_nonexistent.h>
   5560 _ACEOF
   5561 if ac_fn_cxx_try_cpp "$LINENO"; then :
   5562   # Broken: success on invalid input.
   5563 continue
   5564 else
   5565   # Passes both tests.
   5566 ac_preproc_ok=:
   5567 break
   5568 fi
   5569 rm -f conftest.err conftest.i conftest.$ac_ext
   5570 
   5571 done
   5572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5573 rm -f conftest.i conftest.err conftest.$ac_ext
   5574 if $ac_preproc_ok; then :
   5575   break
   5576 fi
   5577 
   5578     done
   5579     ac_cv_prog_CXXCPP=$CXXCPP
   5580 
   5581 fi
   5582   CXXCPP=$ac_cv_prog_CXXCPP
   5583 else
   5584   ac_cv_prog_CXXCPP=$CXXCPP
   5585 fi
   5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
   5587 $as_echo "$CXXCPP" >&6; }
   5588 ac_preproc_ok=false
   5589 for ac_cxx_preproc_warn_flag in '' yes
   5590 do
   5591   # Use a header file that comes with gcc, so configuring glibc
   5592   # with a fresh cross-compiler works.
   5593   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5594   # <limits.h> exists even on freestanding compilers.
   5595   # On the NeXT, cc -E runs the code through the compiler's parser,
   5596   # not just through cpp. "Syntax error" is here to catch this case.
   5597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5598 /* end confdefs.h.  */
   5599 #ifdef __STDC__
   5600 # include <limits.h>
   5601 #else
   5602 # include <assert.h>
   5603 #endif
   5604 		     Syntax error
   5605 _ACEOF
   5606 if ac_fn_cxx_try_cpp "$LINENO"; then :
   5607 
   5608 else
   5609   # Broken: fails on valid input.
   5610 continue
   5611 fi
   5612 rm -f conftest.err conftest.i conftest.$ac_ext
   5613 
   5614   # OK, works on sane cases.  Now check whether nonexistent headers
   5615   # can be detected and how.
   5616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5617 /* end confdefs.h.  */
   5618 #include <ac_nonexistent.h>
   5619 _ACEOF
   5620 if ac_fn_cxx_try_cpp "$LINENO"; then :
   5621   # Broken: success on invalid input.
   5622 continue
   5623 else
   5624   # Passes both tests.
   5625 ac_preproc_ok=:
   5626 break
   5627 fi
   5628 rm -f conftest.err conftest.i conftest.$ac_ext
   5629 
   5630 done
   5631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5632 rm -f conftest.i conftest.err conftest.$ac_ext
   5633 if $ac_preproc_ok; then :
   5634 
   5635 else
   5636   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5638 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
   5639 See \`config.log' for more details" "$LINENO" 5; }
   5640 fi
   5641 
   5642 ac_ext=cpp
   5643 ac_cpp='$CXXCPP $CPPFLAGS'
   5644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5647 
   5648 
   5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   5650 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   5651 if ${ac_cv_path_GREP+:} false; then :
   5652   $as_echo_n "(cached) " >&6
   5653 else
   5654   if test -z "$GREP"; then
   5655   ac_path_GREP_found=false
   5656   # Loop through the user's path and test for each of PROGNAME-LIST
   5657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5659 do
   5660   IFS=$as_save_IFS
   5661   test -z "$as_dir" && as_dir=.
   5662     for ac_prog in grep ggrep; do
   5663     for ac_exec_ext in '' $ac_executable_extensions; do
   5664       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   5665       as_fn_executable_p "$ac_path_GREP" || continue
   5666 # Check for GNU ac_path_GREP and select it if it is found.
   5667   # Check for GNU $ac_path_GREP
   5668 case `"$ac_path_GREP" --version 2>&1` in
   5669 *GNU*)
   5670   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   5671 *)
   5672   ac_count=0
   5673   $as_echo_n 0123456789 >"conftest.in"
   5674   while :
   5675   do
   5676     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5677     mv "conftest.tmp" "conftest.in"
   5678     cp "conftest.in" "conftest.nl"
   5679     $as_echo 'GREP' >> "conftest.nl"
   5680     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5681     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5682     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5683     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   5684       # Best one so far, save it but keep looking for a better one
   5685       ac_cv_path_GREP="$ac_path_GREP"
   5686       ac_path_GREP_max=$ac_count
   5687     fi
   5688     # 10*(2^10) chars as input seems more than enough
   5689     test $ac_count -gt 10 && break
   5690   done
   5691   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5692 esac
   5693 
   5694       $ac_path_GREP_found && break 3
   5695     done
   5696   done
   5697   done
   5698 IFS=$as_save_IFS
   5699   if test -z "$ac_cv_path_GREP"; then
   5700     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5701   fi
   5702 else
   5703   ac_cv_path_GREP=$GREP
   5704 fi
   5705 
   5706 fi
   5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   5708 $as_echo "$ac_cv_path_GREP" >&6; }
   5709  GREP="$ac_cv_path_GREP"
   5710 
   5711 
   5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   5713 $as_echo_n "checking for egrep... " >&6; }
   5714 if ${ac_cv_path_EGREP+:} false; then :
   5715   $as_echo_n "(cached) " >&6
   5716 else
   5717   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   5718    then ac_cv_path_EGREP="$GREP -E"
   5719    else
   5720      if test -z "$EGREP"; then
   5721   ac_path_EGREP_found=false
   5722   # Loop through the user's path and test for each of PROGNAME-LIST
   5723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5724 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5725 do
   5726   IFS=$as_save_IFS
   5727   test -z "$as_dir" && as_dir=.
   5728     for ac_prog in egrep; do
   5729     for ac_exec_ext in '' $ac_executable_extensions; do
   5730       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   5731       as_fn_executable_p "$ac_path_EGREP" || continue
   5732 # Check for GNU ac_path_EGREP and select it if it is found.
   5733   # Check for GNU $ac_path_EGREP
   5734 case `"$ac_path_EGREP" --version 2>&1` in
   5735 *GNU*)
   5736   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   5737 *)
   5738   ac_count=0
   5739   $as_echo_n 0123456789 >"conftest.in"
   5740   while :
   5741   do
   5742     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5743     mv "conftest.tmp" "conftest.in"
   5744     cp "conftest.in" "conftest.nl"
   5745     $as_echo 'EGREP' >> "conftest.nl"
   5746     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5747     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5748     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5749     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   5750       # Best one so far, save it but keep looking for a better one
   5751       ac_cv_path_EGREP="$ac_path_EGREP"
   5752       ac_path_EGREP_max=$ac_count
   5753     fi
   5754     # 10*(2^10) chars as input seems more than enough
   5755     test $ac_count -gt 10 && break
   5756   done
   5757   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5758 esac
   5759 
   5760       $ac_path_EGREP_found && break 3
   5761     done
   5762   done
   5763   done
   5764 IFS=$as_save_IFS
   5765   if test -z "$ac_cv_path_EGREP"; then
   5766     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5767   fi
   5768 else
   5769   ac_cv_path_EGREP=$EGREP
   5770 fi
   5771 
   5772    fi
   5773 fi
   5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   5775 $as_echo "$ac_cv_path_EGREP" >&6; }
   5776  EGREP="$ac_cv_path_EGREP"
   5777 
   5778 
   5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   5780 $as_echo_n "checking for ANSI C header files... " >&6; }
   5781 if ${ac_cv_header_stdc+:} false; then :
   5782   $as_echo_n "(cached) " >&6
   5783 else
   5784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5785 /* end confdefs.h.  */
   5786 #include <stdlib.h>
   5787 #include <stdarg.h>
   5788 #include <string.h>
   5789 #include <float.h>
   5790 
   5791 int
   5792 main ()
   5793 {
   5794 
   5795   ;
   5796   return 0;
   5797 }
   5798 _ACEOF
   5799 if ac_fn_cxx_try_compile "$LINENO"; then :
   5800   ac_cv_header_stdc=yes
   5801 else
   5802   ac_cv_header_stdc=no
   5803 fi
   5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5805 
   5806 if test $ac_cv_header_stdc = yes; then
   5807   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   5808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5809 /* end confdefs.h.  */
   5810 #include <string.h>
   5811 
   5812 _ACEOF
   5813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5814   $EGREP "memchr" >/dev/null 2>&1; then :
   5815 
   5816 else
   5817   ac_cv_header_stdc=no
   5818 fi
   5819 rm -f conftest*
   5820 
   5821 fi
   5822 
   5823 if test $ac_cv_header_stdc = yes; then
   5824   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   5825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5826 /* end confdefs.h.  */
   5827 #include <stdlib.h>
   5828 
   5829 _ACEOF
   5830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5831   $EGREP "free" >/dev/null 2>&1; then :
   5832 
   5833 else
   5834   ac_cv_header_stdc=no
   5835 fi
   5836 rm -f conftest*
   5837 
   5838 fi
   5839 
   5840 if test $ac_cv_header_stdc = yes; then
   5841   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   5842   if test "$cross_compiling" = yes; then :
   5843   :
   5844 else
   5845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5846 /* end confdefs.h.  */
   5847 #include <ctype.h>
   5848 #include <stdlib.h>
   5849 #if ((' ' & 0x0FF) == 0x020)
   5850 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   5851 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   5852 #else
   5853 # define ISLOWER(c) \
   5854 		   (('a' <= (c) && (c) <= 'i') \
   5855 		     || ('j' <= (c) && (c) <= 'r') \
   5856 		     || ('s' <= (c) && (c) <= 'z'))
   5857 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   5858 #endif
   5859 
   5860 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   5861 int
   5862 main ()
   5863 {
   5864   int i;
   5865   for (i = 0; i < 256; i++)
   5866     if (XOR (islower (i), ISLOWER (i))
   5867 	|| toupper (i) != TOUPPER (i))
   5868       return 2;
   5869   return 0;
   5870 }
   5871 _ACEOF
   5872 if ac_fn_cxx_try_run "$LINENO"; then :
   5873 
   5874 else
   5875   ac_cv_header_stdc=no
   5876 fi
   5877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5878   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5879 fi
   5880 
   5881 fi
   5882 fi
   5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   5884 $as_echo "$ac_cv_header_stdc" >&6; }
   5885 if test $ac_cv_header_stdc = yes; then
   5886 
   5887 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   5888 
   5889 fi
   5890 
   5891 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   5892 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   5893 		  inttypes.h stdint.h unistd.h
   5894 do :
   5895   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5896 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   5897 "
   5898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   5899   cat >>confdefs.h <<_ACEOF
   5900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5901 _ACEOF
   5902 
   5903 fi
   5904 
   5905 done
   5906 
   5907 
   5908 
   5909   ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   5910 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   5911   MINIX=yes
   5912 else
   5913   MINIX=
   5914 fi
   5915 
   5916 
   5917   if test "$MINIX" = yes; then
   5918 
   5919 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   5920 
   5921 
   5922 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   5923 
   5924 
   5925 $as_echo "#define _MINIX 1" >>confdefs.h
   5926 
   5927   fi
   5928 
   5929 
   5930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   5931 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   5932 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   5933   $as_echo_n "(cached) " >&6
   5934 else
   5935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5936 /* end confdefs.h.  */
   5937 
   5938 #         define __EXTENSIONS__ 1
   5939           $ac_includes_default
   5940 int
   5941 main ()
   5942 {
   5943 
   5944   ;
   5945   return 0;
   5946 }
   5947 _ACEOF
   5948 if ac_fn_cxx_try_compile "$LINENO"; then :
   5949   ac_cv_safe_to_define___extensions__=yes
   5950 else
   5951   ac_cv_safe_to_define___extensions__=no
   5952 fi
   5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5954 fi
   5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   5956 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   5957   test $ac_cv_safe_to_define___extensions__ = yes &&
   5958     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   5959 
   5960   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   5961 
   5962   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   5963 
   5964   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   5965 
   5966   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   5967 
   5968 
   5969 
   5970 ac_ext=c
   5971 ac_cpp='$CPP $CPPFLAGS'
   5972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   5976 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   5977 # On Suns, sometimes $CPP names a directory.
   5978 if test -n "$CPP" && test -d "$CPP"; then
   5979   CPP=
   5980 fi
   5981 if test -z "$CPP"; then
   5982   if ${ac_cv_prog_CPP+:} false; then :
   5983   $as_echo_n "(cached) " >&6
   5984 else
   5985       # Double quotes because CPP needs to be expanded
   5986     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   5987     do
   5988       ac_preproc_ok=false
   5989 for ac_c_preproc_warn_flag in '' yes
   5990 do
   5991   # Use a header file that comes with gcc, so configuring glibc
   5992   # with a fresh cross-compiler works.
   5993   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5994   # <limits.h> exists even on freestanding compilers.
   5995   # On the NeXT, cc -E runs the code through the compiler's parser,
   5996   # not just through cpp. "Syntax error" is here to catch this case.
   5997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5998 /* end confdefs.h.  */
   5999 #ifdef __STDC__
   6000 # include <limits.h>
   6001 #else
   6002 # include <assert.h>
   6003 #endif
   6004 		     Syntax error
   6005 _ACEOF
   6006 if ac_fn_c_try_cpp "$LINENO"; then :
   6007 
   6008 else
   6009   # Broken: fails on valid input.
   6010 continue
   6011 fi
   6012 rm -f conftest.err conftest.i conftest.$ac_ext
   6013 
   6014   # OK, works on sane cases.  Now check whether nonexistent headers
   6015   # can be detected and how.
   6016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6017 /* end confdefs.h.  */
   6018 #include <ac_nonexistent.h>
   6019 _ACEOF
   6020 if ac_fn_c_try_cpp "$LINENO"; then :
   6021   # Broken: success on invalid input.
   6022 continue
   6023 else
   6024   # Passes both tests.
   6025 ac_preproc_ok=:
   6026 break
   6027 fi
   6028 rm -f conftest.err conftest.i conftest.$ac_ext
   6029 
   6030 done
   6031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   6032 rm -f conftest.i conftest.err conftest.$ac_ext
   6033 if $ac_preproc_ok; then :
   6034   break
   6035 fi
   6036 
   6037     done
   6038     ac_cv_prog_CPP=$CPP
   6039 
   6040 fi
   6041   CPP=$ac_cv_prog_CPP
   6042 else
   6043   ac_cv_prog_CPP=$CPP
   6044 fi
   6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   6046 $as_echo "$CPP" >&6; }
   6047 ac_preproc_ok=false
   6048 for ac_c_preproc_warn_flag in '' yes
   6049 do
   6050   # Use a header file that comes with gcc, so configuring glibc
   6051   # with a fresh cross-compiler works.
   6052   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   6053   # <limits.h> exists even on freestanding compilers.
   6054   # On the NeXT, cc -E runs the code through the compiler's parser,
   6055   # not just through cpp. "Syntax error" is here to catch this case.
   6056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6057 /* end confdefs.h.  */
   6058 #ifdef __STDC__
   6059 # include <limits.h>
   6060 #else
   6061 # include <assert.h>
   6062 #endif
   6063 		     Syntax error
   6064 _ACEOF
   6065 if ac_fn_c_try_cpp "$LINENO"; then :
   6066 
   6067 else
   6068   # Broken: fails on valid input.
   6069 continue
   6070 fi
   6071 rm -f conftest.err conftest.i conftest.$ac_ext
   6072 
   6073   # OK, works on sane cases.  Now check whether nonexistent headers
   6074   # can be detected and how.
   6075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6076 /* end confdefs.h.  */
   6077 #include <ac_nonexistent.h>
   6078 _ACEOF
   6079 if ac_fn_c_try_cpp "$LINENO"; then :
   6080   # Broken: success on invalid input.
   6081 continue
   6082 else
   6083   # Passes both tests.
   6084 ac_preproc_ok=:
   6085 break
   6086 fi
   6087 rm -f conftest.err conftest.i conftest.$ac_ext
   6088 
   6089 done
   6090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   6091 rm -f conftest.i conftest.err conftest.$ac_ext
   6092 if $ac_preproc_ok; then :
   6093 
   6094 else
   6095   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6097 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   6098 See \`config.log' for more details" "$LINENO" 5; }
   6099 fi
   6100 
   6101 ac_ext=cpp
   6102 ac_cpp='$CXXCPP $CPPFLAGS'
   6103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6106 
   6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   6108 $as_echo_n "checking for inline... " >&6; }
   6109 if ${ac_cv_c_inline+:} false; then :
   6110   $as_echo_n "(cached) " >&6
   6111 else
   6112   ac_cv_c_inline=no
   6113 for ac_kw in inline __inline__ __inline; do
   6114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6115 /* end confdefs.h.  */
   6116 #ifndef __cplusplus
   6117 typedef int foo_t;
   6118 static $ac_kw foo_t static_foo () {return 0; }
   6119 $ac_kw foo_t foo () {return 0; }
   6120 #endif
   6121 
   6122 _ACEOF
   6123 if ac_fn_cxx_try_compile "$LINENO"; then :
   6124   ac_cv_c_inline=$ac_kw
   6125 fi
   6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6127   test "$ac_cv_c_inline" != no && break
   6128 done
   6129 
   6130 fi
   6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   6132 $as_echo "$ac_cv_c_inline" >&6; }
   6133 
   6134 case $ac_cv_c_inline in
   6135   inline | yes) ;;
   6136   *)
   6137     case $ac_cv_c_inline in
   6138       no) ac_val=;;
   6139       *) ac_val=$ac_cv_c_inline;;
   6140     esac
   6141     cat >>confdefs.h <<_ACEOF
   6142 #ifndef __cplusplus
   6143 #define inline $ac_val
   6144 #endif
   6145 _ACEOF
   6146     ;;
   6147 esac
   6148 
   6149 
   6150 # Check whether --enable-largefile was given.
   6151 if test "${enable_largefile+set}" = set; then :
   6152   enableval=$enable_largefile;
   6153 fi
   6154 
   6155 if test "$enable_largefile" != no; then
   6156 
   6157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   6158 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   6159 if ${ac_cv_sys_largefile_CC+:} false; then :
   6160   $as_echo_n "(cached) " >&6
   6161 else
   6162   ac_cv_sys_largefile_CC=no
   6163      if test "$GCC" != yes; then
   6164        ac_save_CC=$CC
   6165        while :; do
   6166 	 # IRIX 6.2 and later do not support large files by default,
   6167 	 # so use the C compiler's -n32 option if that helps.
   6168 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6169 /* end confdefs.h.  */
   6170 #include <sys/types.h>
   6171  /* Check that off_t can represent 2**63 - 1 correctly.
   6172     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   6173     since some C++ compilers masquerading as C compilers
   6174     incorrectly reject 9223372036854775807.  */
   6175 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   6176   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   6177 		       && LARGE_OFF_T % 2147483647 == 1)
   6178 		      ? 1 : -1];
   6179 int
   6180 main ()
   6181 {
   6182 
   6183   ;
   6184   return 0;
   6185 }
   6186 _ACEOF
   6187 	 if ac_fn_cxx_try_compile "$LINENO"; then :
   6188   break
   6189 fi
   6190 rm -f core conftest.err conftest.$ac_objext
   6191 	 CC="$CC -n32"
   6192 	 if ac_fn_cxx_try_compile "$LINENO"; then :
   6193   ac_cv_sys_largefile_CC=' -n32'; break
   6194 fi
   6195 rm -f core conftest.err conftest.$ac_objext
   6196 	 break
   6197        done
   6198        CC=$ac_save_CC
   6199        rm -f conftest.$ac_ext
   6200     fi
   6201 fi
   6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   6203 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   6204   if test "$ac_cv_sys_largefile_CC" != no; then
   6205     CC=$CC$ac_cv_sys_largefile_CC
   6206   fi
   6207 
   6208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   6209 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   6210 if ${ac_cv_sys_file_offset_bits+:} false; then :
   6211   $as_echo_n "(cached) " >&6
   6212 else
   6213   while :; do
   6214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6215 /* end confdefs.h.  */
   6216 #include <sys/types.h>
   6217  /* Check that off_t can represent 2**63 - 1 correctly.
   6218     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   6219     since some C++ compilers masquerading as C compilers
   6220     incorrectly reject 9223372036854775807.  */
   6221 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   6222   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   6223 		       && LARGE_OFF_T % 2147483647 == 1)
   6224 		      ? 1 : -1];
   6225 int
   6226 main ()
   6227 {
   6228 
   6229   ;
   6230   return 0;
   6231 }
   6232 _ACEOF
   6233 if ac_fn_cxx_try_compile "$LINENO"; then :
   6234   ac_cv_sys_file_offset_bits=no; break
   6235 fi
   6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6238 /* end confdefs.h.  */
   6239 #define _FILE_OFFSET_BITS 64
   6240 #include <sys/types.h>
   6241  /* Check that off_t can represent 2**63 - 1 correctly.
   6242     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   6243     since some C++ compilers masquerading as C compilers
   6244     incorrectly reject 9223372036854775807.  */
   6245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   6246   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   6247 		       && LARGE_OFF_T % 2147483647 == 1)
   6248 		      ? 1 : -1];
   6249 int
   6250 main ()
   6251 {
   6252 
   6253   ;
   6254   return 0;
   6255 }
   6256 _ACEOF
   6257 if ac_fn_cxx_try_compile "$LINENO"; then :
   6258   ac_cv_sys_file_offset_bits=64; break
   6259 fi
   6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6261   ac_cv_sys_file_offset_bits=unknown
   6262   break
   6263 done
   6264 fi
   6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   6266 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   6267 case $ac_cv_sys_file_offset_bits in #(
   6268   no | unknown) ;;
   6269   *)
   6270 cat >>confdefs.h <<_ACEOF
   6271 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   6272 _ACEOF
   6273 ;;
   6274 esac
   6275 rm -rf conftest*
   6276   if test $ac_cv_sys_file_offset_bits = unknown; then
   6277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   6278 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   6279 if ${ac_cv_sys_large_files+:} false; then :
   6280   $as_echo_n "(cached) " >&6
   6281 else
   6282   while :; do
   6283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6284 /* end confdefs.h.  */
   6285 #include <sys/types.h>
   6286  /* Check that off_t can represent 2**63 - 1 correctly.
   6287     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   6288     since some C++ compilers masquerading as C compilers
   6289     incorrectly reject 9223372036854775807.  */
   6290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   6291   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   6292 		       && LARGE_OFF_T % 2147483647 == 1)
   6293 		      ? 1 : -1];
   6294 int
   6295 main ()
   6296 {
   6297 
   6298   ;
   6299   return 0;
   6300 }
   6301 _ACEOF
   6302 if ac_fn_cxx_try_compile "$LINENO"; then :
   6303   ac_cv_sys_large_files=no; break
   6304 fi
   6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6307 /* end confdefs.h.  */
   6308 #define _LARGE_FILES 1
   6309 #include <sys/types.h>
   6310  /* Check that off_t can represent 2**63 - 1 correctly.
   6311     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   6312     since some C++ compilers masquerading as C compilers
   6313     incorrectly reject 9223372036854775807.  */
   6314 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   6315   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   6316 		       && LARGE_OFF_T % 2147483647 == 1)
   6317 		      ? 1 : -1];
   6318 int
   6319 main ()
   6320 {
   6321 
   6322   ;
   6323   return 0;
   6324 }
   6325 _ACEOF
   6326 if ac_fn_cxx_try_compile "$LINENO"; then :
   6327   ac_cv_sys_large_files=1; break
   6328 fi
   6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6330   ac_cv_sys_large_files=unknown
   6331   break
   6332 done
   6333 fi
   6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   6335 $as_echo "$ac_cv_sys_large_files" >&6; }
   6336 case $ac_cv_sys_large_files in #(
   6337   no | unknown) ;;
   6338   *)
   6339 cat >>confdefs.h <<_ACEOF
   6340 #define _LARGE_FILES $ac_cv_sys_large_files
   6341 _ACEOF
   6342 ;;
   6343 esac
   6344 rm -rf conftest*
   6345   fi
   6346 
   6347 
   6348 fi
   6349 
   6350 # The cast to long int works around a bug in the HP C Compiler
   6351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6353 # This bug is HP SR number 8606223364.
   6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
   6355 $as_echo_n "checking size of ino_t... " >&6; }
   6356 if ${ac_cv_sizeof_ino_t+:} false; then :
   6357   $as_echo_n "(cached) " >&6
   6358 else
   6359   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t"        "$ac_includes_default"; then :
   6360 
   6361 else
   6362   if test "$ac_cv_type_ino_t" = yes; then
   6363      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6365 as_fn_error 77 "cannot compute sizeof (ino_t)
   6366 See \`config.log' for more details" "$LINENO" 5; }
   6367    else
   6368      ac_cv_sizeof_ino_t=0
   6369    fi
   6370 fi
   6371 
   6372 fi
   6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
   6374 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
   6375 
   6376 
   6377 
   6378 cat >>confdefs.h <<_ACEOF
   6379 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
   6380 _ACEOF
   6381 
   6382 
   6383 # The cast to long int works around a bug in the HP C Compiler
   6384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6386 # This bug is HP SR number 8606223364.
   6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
   6388 $as_echo_n "checking size of dev_t... " >&6; }
   6389 if ${ac_cv_sizeof_dev_t+:} false; then :
   6390   $as_echo_n "(cached) " >&6
   6391 else
   6392   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t"        "$ac_includes_default"; then :
   6393 
   6394 else
   6395   if test "$ac_cv_type_dev_t" = yes; then
   6396      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6398 as_fn_error 77 "cannot compute sizeof (dev_t)
   6399 See \`config.log' for more details" "$LINENO" 5; }
   6400    else
   6401      ac_cv_sizeof_dev_t=0
   6402    fi
   6403 fi
   6404 
   6405 fi
   6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
   6407 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
   6408 
   6409 
   6410 
   6411 cat >>confdefs.h <<_ACEOF
   6412 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
   6413 _ACEOF
   6414 
   6415 
   6416 
   6417 # Select the right stat being able to handle 64bit inodes, if needed.
   6418 if test "$enable_largefile" != no; then
   6419   case "$host, $build" in
   6420     *-*-aix*,*|*,*-*-aix*)
   6421       if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
   6422 
   6423 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
   6424 
   6425       fi;;
   6426   esac
   6427 fi
   6428 
   6429 
   6430 # sizeof(char) is 1 by definition.
   6431 # The cast to long int works around a bug in the HP C Compiler
   6432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6434 # This bug is HP SR number 8606223364.
   6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
   6436 $as_echo_n "checking size of void *... " >&6; }
   6437 if ${ac_cv_sizeof_void_p+:} false; then :
   6438   $as_echo_n "(cached) " >&6
   6439 else
   6440   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
   6441 
   6442 else
   6443   if test "$ac_cv_type_void_p" = yes; then
   6444      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6446 as_fn_error 77 "cannot compute sizeof (void *)
   6447 See \`config.log' for more details" "$LINENO" 5; }
   6448    else
   6449      ac_cv_sizeof_void_p=0
   6450    fi
   6451 fi
   6452 
   6453 fi
   6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
   6455 $as_echo "$ac_cv_sizeof_void_p" >&6; }
   6456 
   6457 
   6458 
   6459 cat >>confdefs.h <<_ACEOF
   6460 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
   6461 _ACEOF
   6462 
   6463 
   6464 # The cast to long int works around a bug in the HP C Compiler
   6465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6467 # This bug is HP SR number 8606223364.
   6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
   6469 $as_echo_n "checking size of short... " >&6; }
   6470 if ${ac_cv_sizeof_short+:} false; then :
   6471   $as_echo_n "(cached) " >&6
   6472 else
   6473   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
   6474 
   6475 else
   6476   if test "$ac_cv_type_short" = yes; then
   6477      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6479 as_fn_error 77 "cannot compute sizeof (short)
   6480 See \`config.log' for more details" "$LINENO" 5; }
   6481    else
   6482      ac_cv_sizeof_short=0
   6483    fi
   6484 fi
   6485 
   6486 fi
   6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
   6488 $as_echo "$ac_cv_sizeof_short" >&6; }
   6489 
   6490 
   6491 
   6492 cat >>confdefs.h <<_ACEOF
   6493 #define SIZEOF_SHORT $ac_cv_sizeof_short
   6494 _ACEOF
   6495 
   6496 
   6497 # The cast to long int works around a bug in the HP C Compiler
   6498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6500 # This bug is HP SR number 8606223364.
   6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
   6502 $as_echo_n "checking size of int... " >&6; }
   6503 if ${ac_cv_sizeof_int+:} false; then :
   6504   $as_echo_n "(cached) " >&6
   6505 else
   6506   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
   6507 
   6508 else
   6509   if test "$ac_cv_type_int" = yes; then
   6510      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6512 as_fn_error 77 "cannot compute sizeof (int)
   6513 See \`config.log' for more details" "$LINENO" 5; }
   6514    else
   6515      ac_cv_sizeof_int=0
   6516    fi
   6517 fi
   6518 
   6519 fi
   6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
   6521 $as_echo "$ac_cv_sizeof_int" >&6; }
   6522 
   6523 
   6524 
   6525 cat >>confdefs.h <<_ACEOF
   6526 #define SIZEOF_INT $ac_cv_sizeof_int
   6527 _ACEOF
   6528 
   6529 
   6530 # The cast to long int works around a bug in the HP C Compiler
   6531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6533 # This bug is HP SR number 8606223364.
   6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   6535 $as_echo_n "checking size of long... " >&6; }
   6536 if ${ac_cv_sizeof_long+:} false; then :
   6537   $as_echo_n "(cached) " >&6
   6538 else
   6539   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   6540 
   6541 else
   6542   if test "$ac_cv_type_long" = yes; then
   6543      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6545 as_fn_error 77 "cannot compute sizeof (long)
   6546 See \`config.log' for more details" "$LINENO" 5; }
   6547    else
   6548      ac_cv_sizeof_long=0
   6549    fi
   6550 fi
   6551 
   6552 fi
   6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   6554 $as_echo "$ac_cv_sizeof_long" >&6; }
   6555 
   6556 
   6557 
   6558 cat >>confdefs.h <<_ACEOF
   6559 #define SIZEOF_LONG $ac_cv_sizeof_long
   6560 _ACEOF
   6561 
   6562 
   6563 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
   6564 if test "x$ac_cv_type_long_long" = xyes; then :
   6565 
   6566 cat >>confdefs.h <<_ACEOF
   6567 #define HAVE_LONG_LONG 1
   6568 _ACEOF
   6569 
   6570 # The cast to long int works around a bug in the HP C Compiler
   6571 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6572 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6573 # This bug is HP SR number 8606223364.
   6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   6575 $as_echo_n "checking size of long long... " >&6; }
   6576 if ${ac_cv_sizeof_long_long+:} false; then :
   6577   $as_echo_n "(cached) " >&6
   6578 else
   6579   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   6580 
   6581 else
   6582   if test "$ac_cv_type_long_long" = yes; then
   6583      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6585 as_fn_error 77 "cannot compute sizeof (long long)
   6586 See \`config.log' for more details" "$LINENO" 5; }
   6587    else
   6588      ac_cv_sizeof_long_long=0
   6589    fi
   6590 fi
   6591 
   6592 fi
   6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   6594 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   6595 
   6596 
   6597 
   6598 cat >>confdefs.h <<_ACEOF
   6599 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   6600 _ACEOF
   6601 
   6602 
   6603 fi
   6604 
   6605 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
   6606 case $ac_cv_c_int8_t in #(
   6607   no|yes) ;; #(
   6608   *)
   6609 
   6610 cat >>confdefs.h <<_ACEOF
   6611 #define int8_t $ac_cv_c_int8_t
   6612 _ACEOF
   6613 ;;
   6614 esac
   6615 
   6616 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
   6617 case $ac_cv_c_int16_t in #(
   6618   no|yes) ;; #(
   6619   *)
   6620 
   6621 cat >>confdefs.h <<_ACEOF
   6622 #define int16_t $ac_cv_c_int16_t
   6623 _ACEOF
   6624 ;;
   6625 esac
   6626 
   6627 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
   6628 case $ac_cv_c_int32_t in #(
   6629   no|yes) ;; #(
   6630   *)
   6631 
   6632 cat >>confdefs.h <<_ACEOF
   6633 #define int32_t $ac_cv_c_int32_t
   6634 _ACEOF
   6635 ;;
   6636 esac
   6637 
   6638 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
   6639 case $ac_cv_c_int64_t in #(
   6640   no|yes) ;; #(
   6641   *)
   6642 
   6643 cat >>confdefs.h <<_ACEOF
   6644 #define int64_t $ac_cv_c_int64_t
   6645 _ACEOF
   6646 ;;
   6647 esac
   6648 
   6649 
   6650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
   6651 $as_echo_n "checking for unsigned long long int... " >&6; }
   6652 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
   6653   $as_echo_n "(cached) " >&6
   6654 else
   6655   ac_cv_type_unsigned_long_long_int=yes
   6656      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
   6657        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6658 /* end confdefs.h.  */
   6659 
   6660   /* For now, do not test the preprocessor; as of 2007 there are too many
   6661 	 implementations with broken preprocessors.  Perhaps this can
   6662 	 be revisited in 2012.  In the meantime, code should not expect
   6663 	 #if to work with literals wider than 32 bits.  */
   6664       /* Test literals.  */
   6665       long long int ll = 9223372036854775807ll;
   6666       long long int nll = -9223372036854775807LL;
   6667       unsigned long long int ull = 18446744073709551615ULL;
   6668       /* Test constant expressions.   */
   6669       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
   6670 		     ? 1 : -1)];
   6671       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
   6672 		     ? 1 : -1)];
   6673       int i = 63;
   6674 int
   6675 main ()
   6676 {
   6677 /* Test availability of runtime routines for shift and division.  */
   6678       long long int llmax = 9223372036854775807ll;
   6679       unsigned long long int ullmax = 18446744073709551615ull;
   6680       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
   6681 	      | (llmax / ll) | (llmax % ll)
   6682 	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
   6683 	      | (ullmax / ull) | (ullmax % ull));
   6684   ;
   6685   return 0;
   6686 }
   6687 
   6688 _ACEOF
   6689 if ac_fn_cxx_try_link "$LINENO"; then :
   6690 
   6691 else
   6692   ac_cv_type_unsigned_long_long_int=no
   6693 fi
   6694 rm -f core conftest.err conftest.$ac_objext \
   6695     conftest$ac_exeext conftest.$ac_ext
   6696      fi
   6697 fi
   6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
   6699 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
   6700   if test $ac_cv_type_unsigned_long_long_int = yes; then
   6701 
   6702 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
   6703 
   6704   fi
   6705 
   6706 
   6707 
   6708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
   6709 $as_echo_n "checking for long long int... " >&6; }
   6710 if ${ac_cv_type_long_long_int+:} false; then :
   6711   $as_echo_n "(cached) " >&6
   6712 else
   6713   ac_cv_type_long_long_int=yes
   6714       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
   6715 	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
   6716 	if test $ac_cv_type_long_long_int = yes; then
   6717 	  	  	  	  if test "$cross_compiling" = yes; then :
   6718   :
   6719 else
   6720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6721 /* end confdefs.h.  */
   6722 #include <limits.h>
   6723 		 #ifndef LLONG_MAX
   6724 		 # define HALF \
   6725 			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
   6726 		 # define LLONG_MAX (HALF - 1 + HALF)
   6727 		 #endif
   6728 int
   6729 main ()
   6730 {
   6731 long long int n = 1;
   6732 		 int i;
   6733 		 for (i = 0; ; i++)
   6734 		   {
   6735 		     long long int m = n << i;
   6736 		     if (m >> i != n)
   6737 		       return 1;
   6738 		     if (LLONG_MAX / 2 < m)
   6739 		       break;
   6740 		   }
   6741 		 return 0;
   6742   ;
   6743   return 0;
   6744 }
   6745 _ACEOF
   6746 if ac_fn_cxx_try_run "$LINENO"; then :
   6747 
   6748 else
   6749   ac_cv_type_long_long_int=no
   6750 fi
   6751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6752   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6753 fi
   6754 
   6755 	fi
   6756       fi
   6757 fi
   6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
   6759 $as_echo "$ac_cv_type_long_long_int" >&6; }
   6760   if test $ac_cv_type_long_long_int = yes; then
   6761 
   6762 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
   6763 
   6764   fi
   6765 
   6766 
   6767 
   6768   ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
   6769 if test "x$ac_cv_type_intmax_t" = xyes; then :
   6770 
   6771 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
   6772 
   6773 else
   6774   test $ac_cv_type_long_long_int = yes \
   6775        && ac_type='long long int' \
   6776        || ac_type='long int'
   6777 
   6778 cat >>confdefs.h <<_ACEOF
   6779 #define intmax_t $ac_type
   6780 _ACEOF
   6781 
   6782 fi
   6783 
   6784 
   6785 
   6786   ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
   6787 if test "x$ac_cv_type_intptr_t" = xyes; then :
   6788 
   6789 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
   6790 
   6791 else
   6792   for ac_type in 'int' 'long int' 'long long int'; do
   6793        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6794 /* end confdefs.h.  */
   6795 $ac_includes_default
   6796 int
   6797 main ()
   6798 {
   6799 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   6800 test_array [0] = 0;
   6801 return test_array [0];
   6802 
   6803   ;
   6804   return 0;
   6805 }
   6806 _ACEOF
   6807 if ac_fn_cxx_try_compile "$LINENO"; then :
   6808 
   6809 cat >>confdefs.h <<_ACEOF
   6810 #define intptr_t $ac_type
   6811 _ACEOF
   6812 
   6813 	  ac_type=
   6814 fi
   6815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6816        test -z "$ac_type" && break
   6817      done
   6818 fi
   6819 
   6820 
   6821 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
   6822 case $ac_cv_c_uint8_t in #(
   6823   no|yes) ;; #(
   6824   *)
   6825 
   6826 $as_echo "#define _UINT8_T 1" >>confdefs.h
   6827 
   6828 
   6829 cat >>confdefs.h <<_ACEOF
   6830 #define uint8_t $ac_cv_c_uint8_t
   6831 _ACEOF
   6832 ;;
   6833   esac
   6834 
   6835 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
   6836 case $ac_cv_c_uint16_t in #(
   6837   no|yes) ;; #(
   6838   *)
   6839 
   6840 
   6841 cat >>confdefs.h <<_ACEOF
   6842 #define uint16_t $ac_cv_c_uint16_t
   6843 _ACEOF
   6844 ;;
   6845   esac
   6846 
   6847 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
   6848 case $ac_cv_c_uint32_t in #(
   6849   no|yes) ;; #(
   6850   *)
   6851 
   6852 $as_echo "#define _UINT32_T 1" >>confdefs.h
   6853 
   6854 
   6855 cat >>confdefs.h <<_ACEOF
   6856 #define uint32_t $ac_cv_c_uint32_t
   6857 _ACEOF
   6858 ;;
   6859   esac
   6860 
   6861 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
   6862 case $ac_cv_c_uint64_t in #(
   6863   no|yes) ;; #(
   6864   *)
   6865 
   6866 $as_echo "#define _UINT64_T 1" >>confdefs.h
   6867 
   6868 
   6869 cat >>confdefs.h <<_ACEOF
   6870 #define uint64_t $ac_cv_c_uint64_t
   6871 _ACEOF
   6872 ;;
   6873   esac
   6874 
   6875 
   6876 
   6877   ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
   6878 if test "x$ac_cv_type_uintmax_t" = xyes; then :
   6879 
   6880 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
   6881 
   6882 else
   6883   test $ac_cv_type_unsigned_long_long_int = yes \
   6884        && ac_type='unsigned long long int' \
   6885        || ac_type='unsigned long int'
   6886 
   6887 cat >>confdefs.h <<_ACEOF
   6888 #define uintmax_t $ac_type
   6889 _ACEOF
   6890 
   6891 fi
   6892 
   6893 
   6894 
   6895   ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   6896 if test "x$ac_cv_type_uintptr_t" = xyes; then :
   6897 
   6898 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
   6899 
   6900 else
   6901   for ac_type in 'unsigned int' 'unsigned long int' \
   6902 	'unsigned long long int'; do
   6903        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6904 /* end confdefs.h.  */
   6905 $ac_includes_default
   6906 int
   6907 main ()
   6908 {
   6909 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   6910 test_array [0] = 0;
   6911 return test_array [0];
   6912 
   6913   ;
   6914   return 0;
   6915 }
   6916 _ACEOF
   6917 if ac_fn_cxx_try_compile "$LINENO"; then :
   6918 
   6919 cat >>confdefs.h <<_ACEOF
   6920 #define uintptr_t $ac_type
   6921 _ACEOF
   6922 
   6923 	  ac_type=
   6924 fi
   6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6926        test -z "$ac_type" && break
   6927      done
   6928 fi
   6929 
   6930 
   6931 
   6932 
   6933 
   6934 
   6935 
   6936 
   6937 
   6938 
   6939 
   6940 
   6941 
   6942 
   6943 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
   6944   as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
   6945 fi
   6946 
   6947 # check what underlying integer type int64_t uses
   6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
   6949 $as_echo_n "checking for int64_t underlying type... " >&6; }
   6950 if ${ac_cv_int64_t_type+:} false; then :
   6951   $as_echo_n "(cached) " >&6
   6952 else
   6953 
   6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6955 /* end confdefs.h.  */
   6956 
   6957 #ifdef HAVE_STDINT_H
   6958 #include <stdint.h>
   6959 #endif
   6960 template <typename T> struct X { };
   6961 template <>
   6962 struct X<long> { typedef long t; };
   6963 
   6964 int
   6965 main ()
   6966 {
   6967 X<int64_t>::t x;
   6968   ;
   6969   return 0;
   6970 }
   6971 _ACEOF
   6972 if ac_fn_cxx_try_compile "$LINENO"; then :
   6973   ac_cv_int64_t_type=long
   6974 else
   6975   ac_cv_int64_t_type="long long"
   6976 fi
   6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6978 fi
   6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
   6980 $as_echo "$ac_cv_int64_t_type" >&6; }
   6981 if test "$ac_cv_int64_t_type" = "long"; then
   6982 
   6983 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
   6984 
   6985 else
   6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6987 /* end confdefs.h.  */
   6988 
   6989 #ifdef HAVE_STDINT_H
   6990 #include <stdint.h>
   6991 #endif
   6992 template <typename T> struct X { };
   6993 template <>
   6994 struct X<long long> { typedef long long t; };
   6995 
   6996 int
   6997 main ()
   6998 {
   6999 X<int64_t>::t x;
   7000   ;
   7001   return 0;
   7002 }
   7003 _ACEOF
   7004 if ac_fn_cxx_try_compile "$LINENO"; then :
   7005 
   7006 else
   7007   as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
   7008 fi
   7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7010 fi
   7011 
   7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
   7013 $as_echo_n "checking for std::swap in <utility>... " >&6; }
   7014 if ${ac_cv_std_swap_in_utility+:} false; then :
   7015   $as_echo_n "(cached) " >&6
   7016 else
   7017 
   7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7019 /* end confdefs.h.  */
   7020 
   7021 #include <utility>
   7022 
   7023 int
   7024 main ()
   7025 {
   7026 int a, b; std::swap(a,b);
   7027   ;
   7028   return 0;
   7029 }
   7030 _ACEOF
   7031 if ac_fn_cxx_try_compile "$LINENO"; then :
   7032   ac_cv_std_swap_in_utility=yes
   7033 else
   7034   ac_cv_std_swap_in_utility=no
   7035 fi
   7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7037 fi
   7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
   7039 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
   7040 if test $ac_cv_std_swap_in_utility = yes; then
   7041 
   7042 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
   7043 
   7044 fi
   7045 
   7046 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
   7047 # If the host compiler is affected by the bug, and we build with optimization
   7048 # enabled (which happens e.g. when cross-compiling), the pool allocator may
   7049 # get miscompiled.  Use -fno-strict-aliasing to work around this problem.
   7050 # Since there is no reliable feature check for the presence of this bug,
   7051 # we simply use a GCC version number check.  (This should never trigger for
   7052 # stages 2 or 3 of a native bootstrap.)
   7053 aliasing_flags=
   7054 if test "$GCC" = yes; then
   7055   saved_CXXFLAGS="$CXXFLAGS"
   7056 
   7057   # The following test compilation will succeed if and only if $CXX accepts
   7058   # -fno-strict-aliasing *and* is older than GCC 4.3.
   7059   CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
   7060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
   7061 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
   7062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7063 /* end confdefs.h.  */
   7064 
   7065 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
   7066 #error compiler not affected by placement new aliasing bug
   7067 #endif
   7068 
   7069 _ACEOF
   7070 if ac_fn_cxx_try_compile "$LINENO"; then :
   7071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7072 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
   7073 else
   7074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7075 $as_echo "no" >&6; }
   7076 fi
   7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7078 
   7079   CXXFLAGS="$saved_CXXFLAGS"
   7080 fi
   7081 
   7082 
   7083 
   7084 
   7085 # ---------------------
   7086 # Warnings and checking
   7087 # ---------------------
   7088 
   7089 # Check $CC warning features (if it's GCC).
   7090 # We want to use -pedantic, but we don't want warnings about
   7091 # * 'long long'
   7092 # * variadic macros
   7093 # * overlong strings
   7094 # * C++11 narrowing conversions in { }
   7095 # So, we only use -pedantic if we can disable those warnings.
   7096 
   7097 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
   7098 # Check whether --enable-build-format-warnings was given.
   7099 if test "${enable_build_format_warnings+set}" = set; then :
   7100   enableval=$enable_build_format_warnings;
   7101 else
   7102   enable_build_format_warnings=yes
   7103 fi
   7104 
   7105 if test $enable_build_format_warnings = no; then :
   7106   wf_opt=-Wno-format
   7107 else
   7108   wf_opt=
   7109 fi
   7110 ac_ext=cpp
   7111 ac_cpp='$CXXCPP $CPPFLAGS'
   7112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7115 
   7116 loose_warn=
   7117 save_CXXFLAGS="$CXXFLAGS"
   7118 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
   7119   # Do the check with the no- prefix removed since gcc silently
   7120   # accepts any -Wno-* option on purpose
   7121   case $real_option in
   7122     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
   7123     *) option=$real_option ;;
   7124   esac
   7125   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
   7126 
   7127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
   7128 $as_echo_n "checking whether $CXX supports $option... " >&6; }
   7129 if eval \${$as_acx_Woption+:} false; then :
   7130   $as_echo_n "(cached) " >&6
   7131 else
   7132   CXXFLAGS="$option"
   7133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7134 /* end confdefs.h.  */
   7135 
   7136 int
   7137 main ()
   7138 {
   7139 
   7140   ;
   7141   return 0;
   7142 }
   7143 _ACEOF
   7144 if ac_fn_cxx_try_compile "$LINENO"; then :
   7145   eval "$as_acx_Woption=yes"
   7146 else
   7147   eval "$as_acx_Woption=no"
   7148 fi
   7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7150 
   7151 fi
   7152 eval ac_res=\$$as_acx_Woption
   7153 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7154 $as_echo "$ac_res" >&6; }
   7155   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
   7156   loose_warn="$loose_warn${loose_warn:+ }$real_option"
   7157 fi
   7158   done
   7159 CXXFLAGS="$save_CXXFLAGS"
   7160 ac_ext=cpp
   7161 ac_cpp='$CXXCPP $CPPFLAGS'
   7162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7165 
   7166 
   7167 
   7168 ac_ext=c
   7169 ac_cpp='$CPP $CPPFLAGS'
   7170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7173 
   7174 c_loose_warn=
   7175 save_CFLAGS="$CFLAGS"
   7176 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
   7177   # Do the check with the no- prefix removed since gcc silently
   7178   # accepts any -Wno-* option on purpose
   7179   case $real_option in
   7180     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
   7181     *) option=$real_option ;;
   7182   esac
   7183   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
   7184 
   7185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
   7186 $as_echo_n "checking whether $CC supports $option... " >&6; }
   7187 if eval \${$as_acx_Woption+:} false; then :
   7188   $as_echo_n "(cached) " >&6
   7189 else
   7190   CFLAGS="$option"
   7191     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7192 /* end confdefs.h.  */
   7193 
   7194 int
   7195 main ()
   7196 {
   7197 
   7198   ;
   7199   return 0;
   7200 }
   7201 _ACEOF
   7202 if ac_fn_c_try_compile "$LINENO"; then :
   7203   eval "$as_acx_Woption=yes"
   7204 else
   7205   eval "$as_acx_Woption=no"
   7206 fi
   7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7208 
   7209 fi
   7210 eval ac_res=\$$as_acx_Woption
   7211 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7212 $as_echo "$ac_res" >&6; }
   7213   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
   7214   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
   7215 fi
   7216   done
   7217 CFLAGS="$save_CFLAGS"
   7218 ac_ext=cpp
   7219 ac_cpp='$CXXCPP $CPPFLAGS'
   7220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7223 
   7224 
   7225 ac_ext=cpp
   7226 ac_cpp='$CXXCPP $CPPFLAGS'
   7227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7230 
   7231 strict_warn=
   7232 save_CXXFLAGS="$CXXFLAGS"
   7233 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
   7234   # Do the check with the no- prefix removed since gcc silently
   7235   # accepts any -Wno-* option on purpose
   7236   case $real_option in
   7237     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
   7238     *) option=$real_option ;;
   7239   esac
   7240   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
   7241 
   7242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
   7243 $as_echo_n "checking whether $CXX supports $option... " >&6; }
   7244 if eval \${$as_acx_Woption+:} false; then :
   7245   $as_echo_n "(cached) " >&6
   7246 else
   7247   CXXFLAGS="$option"
   7248     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7249 /* end confdefs.h.  */
   7250 
   7251 int
   7252 main ()
   7253 {
   7254 
   7255   ;
   7256   return 0;
   7257 }
   7258 _ACEOF
   7259 if ac_fn_cxx_try_compile "$LINENO"; then :
   7260   eval "$as_acx_Woption=yes"
   7261 else
   7262   eval "$as_acx_Woption=no"
   7263 fi
   7264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7265 
   7266 fi
   7267 eval ac_res=\$$as_acx_Woption
   7268 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7269 $as_echo "$ac_res" >&6; }
   7270   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
   7271   strict_warn="$strict_warn${strict_warn:+ }$real_option"
   7272 fi
   7273   done
   7274 CXXFLAGS="$save_CXXFLAGS"
   7275 ac_ext=cpp
   7276 ac_cpp='$CXXCPP $CPPFLAGS'
   7277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7280 
   7281 
   7282 ac_ext=c
   7283 ac_cpp='$CPP $CPPFLAGS'
   7284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7287 
   7288 c_strict_warn=
   7289 save_CFLAGS="$CFLAGS"
   7290 for real_option in -Wold-style-definition -Wc++-compat; do
   7291   # Do the check with the no- prefix removed since gcc silently
   7292   # accepts any -Wno-* option on purpose
   7293   case $real_option in
   7294     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
   7295     *) option=$real_option ;;
   7296   esac
   7297   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
   7298 
   7299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
   7300 $as_echo_n "checking whether $CC supports $option... " >&6; }
   7301 if eval \${$as_acx_Woption+:} false; then :
   7302   $as_echo_n "(cached) " >&6
   7303 else
   7304   CFLAGS="$option"
   7305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7306 /* end confdefs.h.  */
   7307 
   7308 int
   7309 main ()
   7310 {
   7311 
   7312   ;
   7313   return 0;
   7314 }
   7315 _ACEOF
   7316 if ac_fn_c_try_compile "$LINENO"; then :
   7317   eval "$as_acx_Woption=yes"
   7318 else
   7319   eval "$as_acx_Woption=no"
   7320 fi
   7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7322 
   7323 fi
   7324 eval ac_res=\$$as_acx_Woption
   7325 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7326 $as_echo "$ac_res" >&6; }
   7327   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
   7328   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
   7329 fi
   7330   done
   7331 CFLAGS="$save_CFLAGS"
   7332 ac_ext=cpp
   7333 ac_cpp='$CXXCPP $CPPFLAGS'
   7334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7337 
   7338 
   7339 ac_ext=cpp
   7340 ac_cpp='$CXXCPP $CPPFLAGS'
   7341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7344 
   7345 # Do the check with the no- prefix removed from the warning options
   7346 # since gcc silently accepts any -Wno-* option on purpose
   7347 if test "$GXX" = yes; then :
   7348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
   7349 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
   7350 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
   7351   $as_echo_n "(cached) " >&6
   7352 else
   7353   save_CXXFLAGS="$CXXFLAGS"
   7354 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
   7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7356 /* end confdefs.h.  */
   7357 
   7358 int
   7359 main ()
   7360 {
   7361 
   7362   ;
   7363   return 0;
   7364 }
   7365 _ACEOF
   7366 if ac_fn_cxx_try_compile "$LINENO"; then :
   7367   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
   7368 else
   7369   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
   7370 fi
   7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7372 CXXFLAGS="$save_CXXFLAGS"
   7373 fi
   7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
   7375 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
   7376 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
   7377   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
   7378 fi
   7379 
   7380 fi
   7381 ac_ext=cpp
   7382 ac_cpp='$CXXCPP $CPPFLAGS'
   7383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7386 
   7387 
   7388 ac_ext=cpp
   7389 ac_cpp='$CXXCPP $CPPFLAGS'
   7390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7393 
   7394 # Check whether --enable-werror-always was given.
   7395 if test "${enable_werror_always+set}" = set; then :
   7396   enableval=$enable_werror_always;
   7397 else
   7398   enable_werror_always=no
   7399 fi
   7400 
   7401 if test $enable_werror_always = yes; then :
   7402   strict_warn="$strict_warn${strict_warn:+ }-Werror"
   7403 fi
   7404 
   7405 ac_ext=cpp
   7406 ac_cpp='$CXXCPP $CPPFLAGS'
   7407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7410 
   7411 
   7412 
   7413 # The above macros do nothing if the compiler is not GCC.  However, the
   7414 # Makefile has more goo to add other flags, so these variables are used
   7415 # to enable warnings only for GCC.
   7416 warn_cflags=
   7417 warn_cxxflags=
   7418 if test "x$GCC" = "xyes"; then
   7419   warn_cflags='$(GCC_WARN_CFLAGS)'
   7420   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
   7421 fi
   7422 
   7423 
   7424 
   7425 # Disable exceptions and RTTI if building with g++
   7426 ac_ext=c
   7427 ac_cpp='$CPP $CPPFLAGS'
   7428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7431 
   7432 noexception_flags=
   7433 save_CFLAGS="$CFLAGS"
   7434 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
   7435   # Do the check with the no- prefix removed since gcc silently
   7436   # accepts any -Wno-* option on purpose
   7437   case $real_option in
   7438     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
   7439     *) option=$real_option ;;
   7440   esac
   7441   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
   7442 
   7443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
   7444 $as_echo_n "checking whether $CC supports $option... " >&6; }
   7445 if eval \${$as_acx_Woption+:} false; then :
   7446   $as_echo_n "(cached) " >&6
   7447 else
   7448   CFLAGS="$option"
   7449     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7450 /* end confdefs.h.  */
   7451 
   7452 int
   7453 main ()
   7454 {
   7455 
   7456   ;
   7457   return 0;
   7458 }
   7459 _ACEOF
   7460 if ac_fn_c_try_compile "$LINENO"; then :
   7461   eval "$as_acx_Woption=yes"
   7462 else
   7463   eval "$as_acx_Woption=no"
   7464 fi
   7465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7466 
   7467 fi
   7468 eval ac_res=\$$as_acx_Woption
   7469 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7470 $as_echo "$ac_res" >&6; }
   7471   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
   7472   noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
   7473 fi
   7474   done
   7475 CFLAGS="$save_CFLAGS"
   7476 ac_ext=cpp
   7477 ac_cpp='$CXXCPP $CPPFLAGS'
   7478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7481 
   7482 
   7483 
   7484 # Enable expensive internal checks
   7485 is_release=
   7486 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
   7487   is_release=yes
   7488 fi
   7489 
   7490 # Check whether --enable-checking was given.
   7491 if test "${enable_checking+set}" = set; then :
   7492   enableval=$enable_checking; ac_checking_flags="${enableval}"
   7493 else
   7494 
   7495 # Determine the default checks.
   7496 if test x$is_release = x ; then
   7497   ac_checking_flags=yes,extra
   7498 else
   7499   ac_checking_flags=release
   7500 fi
   7501 fi
   7502 
   7503 IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
   7504 for check in release $ac_checking_flags
   7505 do
   7506 	case $check in
   7507 	# these set all the flags to specific states
   7508 	yes)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
   7509 			ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
   7510 			ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
   7511 			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
   7512 			ac_tree_checking=1 ; ac_valgrind_checking= ;
   7513 			ac_types_checking=1 ;;
   7514 	no|none)	ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
   7515 			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
   7516 			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
   7517 			ac_rtlflag_checking= ; ac_runtime_checking= ;
   7518 			ac_tree_checking= ; ac_valgrind_checking= ;
   7519 			ac_types_checking= ;;
   7520 	all)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
   7521 			ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
   7522 			ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
   7523 			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
   7524 			ac_tree_checking=1 ; ac_valgrind_checking= ;
   7525 			ac_types_checking=1 ;;
   7526 	release)	ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
   7527 			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
   7528 			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
   7529 			ac_rtlflag_checking= ; ac_runtime_checking=1 ;
   7530 			ac_tree_checking= ; ac_valgrind_checking= ;
   7531 			ac_types_checking= ;;
   7532 	# these enable particular checks
   7533 	assert) 	ac_assert_checking=1 ;;
   7534 	df)		ac_df_checking=1 ;;
   7535 	extra)		ac_extra_checking=1 ;;
   7536 	fold)		ac_fold_checking=1 ;;
   7537 	gc)		ac_gc_checking=1 ;;
   7538 	gcac)		ac_gc_always_collect=1 ;;
   7539 	gimple)		ac_gimple_checking=1 ;;
   7540 	misc)		ac_checking=1 ;;
   7541 	rtl)		ac_rtl_checking=1 ;;
   7542 	rtlflag)	ac_rtlflag_checking=1 ;;
   7543 	runtime)	ac_runtime_checking=1 ;;
   7544 	tree)		ac_tree_checking=1 ;;
   7545 	types)		ac_types_checking=1 ;;
   7546 	valgrind)	ac_valgrind_checking=1 ;;
   7547 	*)	as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
   7548 	esac
   7549 done
   7550 IFS="$ac_save_IFS"
   7551 
   7552 nocommon_flag=""
   7553 if test x$ac_checking != x ; then
   7554 
   7555 $as_echo "#define CHECKING_P 1" >>confdefs.h
   7556 
   7557   nocommon_flag=-fno-common
   7558 else
   7559   $as_echo "#define CHECKING_P 0" >>confdefs.h
   7560 
   7561 fi
   7562 
   7563 if test x$ac_extra_checking != x ; then
   7564 
   7565 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
   7566 
   7567 else
   7568   $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
   7569 
   7570 fi
   7571 if test x$ac_df_checking != x ; then
   7572 
   7573 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
   7574 
   7575 fi
   7576 if test x$ac_assert_checking != x ; then
   7577 
   7578 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
   7579 
   7580 fi
   7581 if test x$ac_gimple_checking != x ; then
   7582 
   7583 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
   7584 
   7585 fi
   7586 
   7587 if test x$ac_runtime_checking != x ; then
   7588 
   7589 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
   7590 
   7591 fi
   7592 if test x$ac_tree_checking != x ; then
   7593 
   7594 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
   7595 
   7596   TREECHECKING=yes
   7597 fi
   7598 if test x$ac_types_checking != x ; then
   7599 
   7600 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
   7601 
   7602 fi
   7603 
   7604 if test x$ac_rtl_checking != x ; then
   7605 
   7606 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
   7607 
   7608 fi
   7609 if test x$ac_rtlflag_checking != x ; then
   7610 
   7611 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
   7612 
   7613 fi
   7614 if test x$ac_gc_checking != x ; then
   7615 
   7616 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
   7617 
   7618 fi
   7619 if test x$ac_gc_always_collect != x ; then
   7620 
   7621 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
   7622 
   7623 fi
   7624 if test x$ac_fold_checking != x ; then
   7625 
   7626 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
   7627 
   7628 fi
   7629 valgrind_path_defines=
   7630 valgrind_command=
   7631 
   7632 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
   7633 if test "x$ac_cv_header_valgrind_h" = xyes; then :
   7634   have_valgrind_h=yes
   7635 else
   7636   have_valgrind_h=no
   7637 fi
   7638 
   7639 
   7640 
   7641 # It is certainly possible that there's valgrind but no valgrind.h.
   7642 # GCC relies on making annotations so we must have both.
   7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
   7644 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
   7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7646 /* end confdefs.h.  */
   7647 #include <valgrind/memcheck.h>
   7648 #ifndef VALGRIND_DISCARD
   7649 #error VALGRIND_DISCARD not defined
   7650 #endif
   7651 _ACEOF
   7652 if ac_fn_cxx_try_cpp "$LINENO"; then :
   7653   gcc_cv_header_valgrind_memcheck_h=yes
   7654 else
   7655   gcc_cv_header_valgrind_memcheck_h=no
   7656 fi
   7657 rm -f conftest.err conftest.i conftest.$ac_ext
   7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
   7659 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
   7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
   7661 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
   7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7663 /* end confdefs.h.  */
   7664 #include <memcheck.h>
   7665 #ifndef VALGRIND_DISCARD
   7666 #error VALGRIND_DISCARD not defined
   7667 #endif
   7668 _ACEOF
   7669 if ac_fn_cxx_try_cpp "$LINENO"; then :
   7670   gcc_cv_header_memcheck_h=yes
   7671 else
   7672   gcc_cv_header_memcheck_h=no
   7673 fi
   7674 rm -f conftest.err conftest.i conftest.$ac_ext
   7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
   7676 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
   7677 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
   7678 
   7679 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
   7680 
   7681 fi
   7682 if test $gcc_cv_header_memcheck_h = yes; then
   7683 
   7684 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
   7685 
   7686 fi
   7687 
   7688 if test x$ac_valgrind_checking != x ; then
   7689 
   7690 # Prepare PATH_SEPARATOR.
   7691 # The user is always right.
   7692 if test "${PATH_SEPARATOR+set}" != set; then
   7693   echo "#! /bin/sh" >conf$$.sh
   7694   echo  "exit 0"   >>conf$$.sh
   7695   chmod +x conf$$.sh
   7696   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   7697     PATH_SEPARATOR=';'
   7698   else
   7699     PATH_SEPARATOR=:
   7700   fi
   7701   rm -f conf$$.sh
   7702 fi
   7703 
   7704 # Find out how to test for executable files. Don't use a zero-byte file,
   7705 # as systems may use methods other than mode bits to determine executability.
   7706 cat >conf$$.file <<_ASEOF
   7707 #! /bin/sh
   7708 exit 0
   7709 _ASEOF
   7710 chmod +x conf$$.file
   7711 if test -x conf$$.file >/dev/null 2>&1; then
   7712   ac_executable_p="test -x"
   7713 else
   7714   ac_executable_p="test -f"
   7715 fi
   7716 rm -f conf$$.file
   7717 
   7718 # Extract the first word of "valgrind", so it can be a program name with args.
   7719 set dummy valgrind; ac_word=$2
   7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7721 $as_echo_n "checking for $ac_word... " >&6; }
   7722 if ${ac_cv_path_valgrind_path+:} false; then :
   7723   $as_echo_n "(cached) " >&6
   7724 else
   7725   case "$valgrind_path" in
   7726   [\\/]* | ?:[\\/]*)
   7727     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
   7728     ;;
   7729   *)
   7730     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
   7731     for ac_dir in $PATH; do
   7732       IFS="$ac_save_IFS"
   7733       test -z "$ac_dir" && ac_dir=.
   7734       for ac_exec_ext in '' $ac_executable_extensions; do
   7735         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
   7736           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
   7737             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
   7738             break 2
   7739           fi
   7740         fi
   7741       done
   7742     done
   7743     IFS="$ac_save_IFS"
   7744     ;;
   7745 esac
   7746 fi
   7747 valgrind_path="$ac_cv_path_valgrind_path"
   7748 if test -n "$valgrind_path"; then
   7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
   7750 $as_echo "$valgrind_path" >&6; }
   7751 else
   7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7753 $as_echo "no" >&6; }
   7754 fi
   7755 
   7756   if test "x$valgrind_path" = "x" \
   7757     || (test $have_valgrind_h = no \
   7758 	&& test $gcc_cv_header_memcheck_h = no \
   7759 	&& test $gcc_cv_header_valgrind_memcheck_h = no); then
   7760 	as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
   7761   fi
   7762   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
   7763   valgrind_command="$valgrind_path -q"
   7764 
   7765 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
   7766 
   7767 fi
   7768 
   7769 
   7770 
   7771 # Enable code coverage collection
   7772 # Check whether --enable-coverage was given.
   7773 if test "${enable_coverage+set}" = set; then :
   7774   enableval=$enable_coverage; case "${enableval}" in
   7775   yes|noopt)
   7776     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
   7777     ;;
   7778   opt)
   7779     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
   7780     ;;
   7781   no)
   7782     # a.k.a. --disable-coverage
   7783     coverage_flags=""
   7784     ;;
   7785   *)
   7786     as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
   7787     ;;
   7788 esac
   7789 else
   7790   coverage_flags=""
   7791 fi
   7792 
   7793 
   7794 
   7795 # Check whether --enable-gather-detailed-mem-stats was given.
   7796 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
   7797   enableval=$enable_gather_detailed_mem_stats;
   7798 else
   7799   enable_gather_detailed_mem_stats=no
   7800 fi
   7801 
   7802 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
   7803 
   7804 cat >>confdefs.h <<_ACEOF
   7805 #define GATHER_STATISTICS $gather_stats
   7806 _ACEOF
   7807 
   7808 
   7809 # Check whether --enable-valgrind-annotations was given.
   7810 if test "${enable_valgrind_annotations+set}" = set; then :
   7811   enableval=$enable_valgrind_annotations;
   7812 else
   7813   enable_valgrind_annotations=no
   7814 fi
   7815 
   7816 if test x$enable_valgrind_annotations != xno \
   7817     || test x$ac_valgrind_checking != x; then
   7818   if (test $have_valgrind_h = no \
   7819       && test $gcc_cv_header_memcheck_h = no \
   7820       && test $gcc_cv_header_valgrind_memcheck_h = no); then
   7821     as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
   7822   fi
   7823 
   7824 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
   7825 
   7826 fi
   7827 
   7828 # -------------------------------
   7829 # Miscenalleous configure options
   7830 # -------------------------------
   7831 
   7832 # Determine whether or not multilibs are enabled.
   7833 # Check whether --enable-multilib was given.
   7834 if test "${enable_multilib+set}" = set; then :
   7835   enableval=$enable_multilib;
   7836 else
   7837   enable_multilib=yes
   7838 fi
   7839 
   7840 
   7841 
   7842 # Determine whether or not multiarch is enabled.
   7843 # Check whether --enable-multiarch was given.
   7844 if test "${enable_multiarch+set}" = set; then :
   7845   enableval=$enable_multiarch; case "${enableval}" in
   7846 yes|no|auto) enable_multiarch=$enableval;;
   7847 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
   7848 esac
   7849 else
   7850   enable_multiarch=auto
   7851 fi
   7852 
   7853 if test x${enable_multiarch} = xauto; then
   7854   if test x${with_native_system_header_dir} != x; then
   7855     ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
   7856     enable_multiarch=no
   7857   fi
   7858   if test x$host != x$target && test "x$with_sysroot" = x; then
   7859     ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
   7860     enable_multiarch=no
   7861   fi
   7862 fi
   7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
   7864 $as_echo_n "checking for multiarch configuration... " >&6; }
   7865 
   7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
   7867 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
   7868 
   7869 # needed for setting the multiarch name for soft-float/hard-float ABIs
   7870 
   7871 
   7872 
   7873 # default stack clash protection guard size as power of twos in bytes.
   7874 # Please keep these in sync with params.def.
   7875 stk_clash_min=12
   7876 stk_clash_max=30
   7877 
   7878 # Keep the default value when the option is not used to 0, this allows us to
   7879 # distinguish between the cases where the user specifially set a value via
   7880 # configure and when the normal default value is used.
   7881 
   7882 # Check whether --with-stack-clash-protection-guard-size was given.
   7883 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
   7884   withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
   7885 else
   7886   DEFAULT_STK_CLASH_GUARD_SIZE=0
   7887 fi
   7888 
   7889 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
   7890      && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
   7891 	 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
   7892   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
   7893 fi
   7894 
   7895 
   7896 cat >>confdefs.h <<_ACEOF
   7897 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
   7898 _ACEOF
   7899 
   7900 
   7901 # Enable __cxa_atexit for C++.
   7902 # Check whether --enable-__cxa_atexit was given.
   7903 if test "${enable___cxa_atexit+set}" = set; then :
   7904   enableval=$enable___cxa_atexit;
   7905 fi
   7906 
   7907 
   7908 # Enable C extension for decimal float if target supports it.
   7909 
   7910 # Check whether --enable-decimal-float was given.
   7911 if test "${enable_decimal_float+set}" = set; then :
   7912   enableval=$enable_decimal_float;
   7913   case $enable_decimal_float in
   7914     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
   7915     *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
   7916 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
   7917   esac
   7918 
   7919 else
   7920 
   7921   case $target in
   7922     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
   7923     i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
   7924     i?86*-*-mingw* | x86_64*-*-mingw* | \
   7925     i?86*-*-cygwin* | x86_64*-*-cygwin*)
   7926       enable_decimal_float=yes
   7927       ;;
   7928     *)
   7929       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
   7930 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
   7931       enable_decimal_float=no
   7932       ;;
   7933   esac
   7934 
   7935 fi
   7936 
   7937 
   7938 # x86's use BID format instead of DPD
   7939 case x$enable_decimal_float in
   7940   xyes)
   7941     case $target in
   7942       i?86*-*-* | x86_64*-*-*)
   7943 	enable_decimal_float=bid
   7944 	;;
   7945       *)
   7946 	enable_decimal_float=dpd
   7947 	;;
   7948     esac
   7949     default_decimal_float=$enable_decimal_float
   7950     ;;
   7951   xno)
   7952     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
   7953     # dependency on libdecnumber.
   7954     default_decimal_float=dpd
   7955     ;;
   7956 esac
   7957 
   7958 
   7959 
   7960 
   7961 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
   7962 
   7963 cat >>confdefs.h <<_ACEOF
   7964 #define ENABLE_DECIMAL_FLOAT $dfp
   7965 _ACEOF
   7966 
   7967 
   7968 # Use default_decimal_float for dependency.
   7969 enable_decimal_float=$default_decimal_float
   7970 
   7971 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
   7972 
   7973 cat >>confdefs.h <<_ACEOF
   7974 #define ENABLE_DECIMAL_BID_FORMAT $bid
   7975 _ACEOF
   7976 
   7977 
   7978 # Enable C extension for fixed-point arithmetic.
   7979 # Check whether --enable-fixed-point was given.
   7980 if test "${enable_fixed_point+set}" = set; then :
   7981   enableval=$enable_fixed_point;
   7982 else
   7983 
   7984   case $target in
   7985     arm*)
   7986       enable_fixed_point=yes
   7987       ;;
   7988 
   7989     mips*-*-*)
   7990       enable_fixed_point=yes
   7991       ;;
   7992     loongarch*-*-*)
   7993       enable_fixed_point=yes
   7994       ;;
   7995     *)
   7996       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
   7997 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
   7998       enable_fixed_point=no
   7999       ;;
   8000   esac
   8001 
   8002 fi
   8003 
   8004 
   8005 
   8006 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
   8007 
   8008 cat >>confdefs.h <<_ACEOF
   8009 #define ENABLE_FIXED_POINT $fixedpoint
   8010 _ACEOF
   8011 
   8012 
   8013 # Enable threads
   8014 # Pass with no value to take the default
   8015 # Pass with a value to specify a thread package
   8016 # Check whether --enable-threads was given.
   8017 if test "${enable_threads+set}" = set; then :
   8018   enableval=$enable_threads;
   8019 else
   8020   enable_threads=''
   8021 fi
   8022 
   8023 
   8024 # Check whether --enable-tls was given.
   8025 if test "${enable_tls+set}" = set; then :
   8026   enableval=$enable_tls;
   8027   case $enable_tls in
   8028     yes | no) ;;
   8029     *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
   8030 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
   8031   esac
   8032 
   8033 else
   8034   enable_tls=''
   8035 fi
   8036 
   8037 
   8038 # Check whether --enable-vtable-verify was given.
   8039 if test "${enable_vtable_verify+set}" = set; then :
   8040   enableval=$enable_vtable_verify;
   8041 else
   8042   enable_vtable_verify=no
   8043 fi
   8044 
   8045 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
   8046 
   8047 cat >>confdefs.h <<_ACEOF
   8048 #define ENABLE_VTABLE_VERIFY $vtable_verify
   8049 _ACEOF
   8050 
   8051 
   8052 # Check whether --enable-analyzer was given.
   8053 if test "${enable_analyzer+set}" = set; then :
   8054   enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
   8055 	analyzer=0
   8056 else
   8057 	analyzer=1
   8058 fi
   8059 else
   8060   analyzer=1
   8061 fi
   8062 
   8063 
   8064 cat >>confdefs.h <<_ACEOF
   8065 #define ENABLE_ANALYZER $analyzer
   8066 _ACEOF
   8067 
   8068 
   8069 # Check whether --enable-objc-gc was given.
   8070 if test "${enable_objc_gc+set}" = set; then :
   8071   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
   8072 	objc_boehm_gc=''
   8073 else
   8074 	objc_boehm_gc=1
   8075 fi
   8076 else
   8077   objc_boehm_gc=''
   8078 fi
   8079 
   8080 
   8081 
   8082 # Check whether --with-dwarf2 was given.
   8083 if test "${with_dwarf2+set}" = set; then :
   8084   withval=$with_dwarf2; dwarf2="$with_dwarf2"
   8085 else
   8086   dwarf2=no
   8087 fi
   8088 
   8089 
   8090 # Check whether --enable-shared was given.
   8091 if test "${enable_shared+set}" = set; then :
   8092   enableval=$enable_shared;
   8093   case $enable_shared in
   8094   yes | no) ;;
   8095   *)
   8096     enable_shared=no
   8097     IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
   8098     for pkg in $enableval; do
   8099       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
   8100         enable_shared=yes
   8101       fi
   8102     done
   8103     IFS="$ac_save_ifs"
   8104     ;;
   8105   esac
   8106 
   8107 else
   8108   enable_shared=yes
   8109 fi
   8110 
   8111 
   8112 
   8113 # Check whether --enable-gcov was given.
   8114 if test "${enable_gcov+set}" = set; then :
   8115   enableval=$enable_gcov;
   8116 else
   8117   case $target in
   8118        bpf-*-*)
   8119          enable_gcov=no
   8120        ;;
   8121        *)
   8122          enable_gcov=yes
   8123        ;;
   8124      esac
   8125 fi
   8126 
   8127 
   8128 
   8129 
   8130 
   8131 # Check whether --with-specs was given.
   8132 if test "${with_specs+set}" = set; then :
   8133   withval=$with_specs; CONFIGURE_SPECS=$withval
   8134 else
   8135   CONFIGURE_SPECS=
   8136 
   8137 fi
   8138 
   8139 
   8140 
   8141 
   8142 
   8143 # Check whether --with-pkgversion was given.
   8144 if test "${with_pkgversion+set}" = set; then :
   8145   withval=$with_pkgversion; case "$withval" in
   8146       yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
   8147       no)  PKGVERSION= ;;
   8148       *)   PKGVERSION="($withval) " ;;
   8149      esac
   8150 else
   8151   PKGVERSION="(GCC) "
   8152 
   8153 fi
   8154 
   8155 
   8156 
   8157 
   8158 
   8159 # Check whether --with-bugurl was given.
   8160 if test "${with_bugurl+set}" = set; then :
   8161   withval=$with_bugurl; case "$withval" in
   8162       yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
   8163       no)  BUGURL=
   8164 	   ;;
   8165       *)   BUGURL="$withval"
   8166 	   ;;
   8167      esac
   8168 else
   8169   BUGURL="https://gcc.gnu.org/bugs/"
   8170 
   8171 fi
   8172 
   8173   case ${BUGURL} in
   8174   "")
   8175     REPORT_BUGS_TO=
   8176     REPORT_BUGS_TEXI=
   8177     ;;
   8178   *)
   8179     REPORT_BUGS_TO="<$BUGURL>"
   8180     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
   8181     ;;
   8182   esac;
   8183 
   8184 
   8185 
   8186 
   8187 # Allow overriding the default URL for documentation
   8188 
   8189 # Check whether --with-documentation-root-url was given.
   8190 if test "${with_documentation_root_url+set}" = set; then :
   8191   withval=$with_documentation_root_url; case "$withval" in
   8192       yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
   8193       no)  as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
   8194       */)  DOCUMENTATION_ROOT_URL="$withval" ;;
   8195       *)   as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
   8196      esac
   8197 else
   8198   DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
   8199 
   8200 fi
   8201 
   8202 
   8203 cat >>confdefs.h <<_ACEOF
   8204 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
   8205 _ACEOF
   8206 
   8207 
   8208 # Allow overriding the default URL for GCC changes
   8209 
   8210 # Check whether --with-changes-root-url was given.
   8211 if test "${with_changes_root_url+set}" = set; then :
   8212   withval=$with_changes_root_url; case "$withval" in
   8213       yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
   8214       no)  as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
   8215       */)  CHANGES_ROOT_URL="$withval" ;;
   8216       *)   as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
   8217      esac
   8218 else
   8219   CHANGES_ROOT_URL="https://gcc.gnu.org/"
   8220 
   8221 fi
   8222 
   8223 
   8224 cat >>confdefs.h <<_ACEOF
   8225 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
   8226 _ACEOF
   8227 
   8228 
   8229 # Sanity check enable_languages in case someone does not run the toplevel
   8230 # configure # script.
   8231 # Check whether --enable-languages was given.
   8232 if test "${enable_languages+set}" = set; then :
   8233   enableval=$enable_languages; case ,${enable_languages}, in
   8234        ,,|,yes,)
   8235 		# go safe -- we cannot be much sure without the toplevel
   8236 		# configure's
   8237 		# analysis of which target libs are present and usable
   8238 		enable_languages=c
   8239 		;;
   8240 	 *,all,*)
   8241 		as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
   8242 		;;
   8243 	*,c,*)
   8244 		;;
   8245         *)
   8246 		enable_languages=c,${enable_languages}
   8247 		;;
   8248 esac
   8249 else
   8250   enable_languages=c
   8251 fi
   8252 
   8253 
   8254 # If top-level libada has been disabled, then wire in install-gnatlib
   8255 # invocation with `make install', so that one can build and install
   8256 # the library manually with `make -C gcc all gnatlib gnattools install'.
   8257 if test x"$enable_libada" = xno; then
   8258   gnat_install_lib=gnat-install-lib
   8259 else
   8260   gnat_install_lib=
   8261 fi
   8262 
   8263 
   8264 if test x"$enable_as_accelerator_for" != x; then
   8265 
   8266 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
   8267 
   8268   enable_as_accelerator=yes
   8269   case "${target}" in
   8270     *-intelmicemul-*)
   8271       # In this case we expect offload compiler to be built as native, so we
   8272       # need to rename the driver to avoid clashes with host's drivers.
   8273       program_transform_name="s&^&${target}-&" ;;
   8274   esac
   8275   sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
   8276   program_transform_name=`echo $program_transform_name | sed $sedscript`
   8277   accel_dir_suffix=/accel/${target_noncanonical}
   8278   real_target_noncanonical=${enable_as_accelerator_for}
   8279 fi
   8280 
   8281 
   8282 
   8283 
   8284 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
   8285   tgt=`echo $tgt | sed 's/=.*//'`
   8286 
   8287   enable_offloading=1
   8288   case "$tgt" in
   8289     *-intelmic-* | *-intelmicemul-*)
   8290   	omp_device_property=omp-device-properties-i386
   8291   	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
   8292   	;;
   8293     amdgcn*)
   8294   	omp_device_property=omp-device-properties-gcn
   8295   	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
   8296   	;;
   8297     nvptx*)
   8298   	omp_device_property=omp-device-properties-nvptx
   8299   	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
   8300   	;;
   8301     *)
   8302   	as_fn_error $? "unknown offload target specified" "$LINENO" 5
   8303   	;;
   8304   esac
   8305   omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
   8306   omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
   8307 
   8308   if test x"$offload_targets" = x; then
   8309     offload_targets=$tgt
   8310   else
   8311     offload_targets="$offload_targets,$tgt"
   8312   fi
   8313 done
   8314 
   8315 
   8316 
   8317 
   8318 cat >>confdefs.h <<_ACEOF
   8319 #define OFFLOAD_TARGETS "$offload_targets"
   8320 _ACEOF
   8321 
   8322 if test x"$enable_offloading" != x; then
   8323 
   8324 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
   8325 
   8326 else
   8327 
   8328 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
   8329 
   8330 fi
   8331 
   8332 if test "x$enable_offload_defaulted" = xyes; then
   8333 
   8334 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
   8335 
   8336 fi
   8337 
   8338 
   8339 # Check whether --with-multilib-list was given.
   8340 if test "${with_multilib_list+set}" = set; then :
   8341   withval=$with_multilib_list; :
   8342 else
   8343   with_multilib_list=default
   8344 fi
   8345 
   8346 
   8347 
   8348 # Check whether --with-multilib-generator was given.
   8349 if test "${with_multilib_generator+set}" = set; then :
   8350   withval=$with_multilib_generator; :
   8351 else
   8352   with_multilib_generator=default
   8353 fi
   8354 
   8355 
   8356 # -------------------------
   8357 # Checks for other programs
   8358 # -------------------------
   8359 
   8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   8361 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   8362 set x ${MAKE-make}
   8363 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   8364 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   8365   $as_echo_n "(cached) " >&6
   8366 else
   8367   cat >conftest.make <<\_ACEOF
   8368 SHELL = /bin/sh
   8369 all:
   8370 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   8371 _ACEOF
   8372 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   8373 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   8374   *@@@%%%=?*=@@@%%%*)
   8375     eval ac_cv_prog_make_${ac_make}_set=yes;;
   8376   *)
   8377     eval ac_cv_prog_make_${ac_make}_set=no;;
   8378 esac
   8379 rm -f conftest.make
   8380 fi
   8381 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   8382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8383 $as_echo "yes" >&6; }
   8384   SET_MAKE=
   8385 else
   8386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8387 $as_echo "no" >&6; }
   8388   SET_MAKE="MAKE=${MAKE-make}"
   8389 fi
   8390 
   8391 
   8392 # Find some useful tools
   8393 for ac_prog in gawk mawk nawk awk
   8394 do
   8395   # Extract the first word of "$ac_prog", so it can be a program name with args.
   8396 set dummy $ac_prog; ac_word=$2
   8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8398 $as_echo_n "checking for $ac_word... " >&6; }
   8399 if ${ac_cv_prog_AWK+:} false; then :
   8400   $as_echo_n "(cached) " >&6
   8401 else
   8402   if test -n "$AWK"; then
   8403   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   8404 else
   8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8406 for as_dir in $PATH
   8407 do
   8408   IFS=$as_save_IFS
   8409   test -z "$as_dir" && as_dir=.
   8410     for ac_exec_ext in '' $ac_executable_extensions; do
   8411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8412     ac_cv_prog_AWK="$ac_prog"
   8413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8414     break 2
   8415   fi
   8416 done
   8417   done
   8418 IFS=$as_save_IFS
   8419 
   8420 fi
   8421 fi
   8422 AWK=$ac_cv_prog_AWK
   8423 if test -n "$AWK"; then
   8424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   8425 $as_echo "$AWK" >&6; }
   8426 else
   8427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8428 $as_echo "no" >&6; }
   8429 fi
   8430 
   8431 
   8432   test -n "$AWK" && break
   8433 done
   8434 
   8435 # We need awk to create options.cc and options.h.
   8436 # Bail out if it's missing.
   8437 case ${AWK} in
   8438   "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
   8439 esac
   8440 
   8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   8442 $as_echo_n "checking whether ln -s works... " >&6; }
   8443 if ${gcc_cv_prog_LN_S+:} false; then :
   8444   $as_echo_n "(cached) " >&6
   8445 else
   8446   rm -f conftestdata_t
   8447 echo >conftestdata_f
   8448 if ln -s conftestdata_f conftestdata_t 2>/dev/null
   8449 then
   8450   gcc_cv_prog_LN_S="ln -s"
   8451 else
   8452   if ln conftestdata_f conftestdata_t 2>/dev/null
   8453   then
   8454     gcc_cv_prog_LN_S=ln
   8455   else
   8456     if cp -p conftestdata_f conftestdata_t 2>/dev/null
   8457     then
   8458       gcc_cv_prog_LN_S="cp -p"
   8459     else
   8460       gcc_cv_prog_LN_S=cp
   8461     fi
   8462   fi
   8463 fi
   8464 rm -f conftestdata_f conftestdata_t
   8465 
   8466 fi
   8467 LN_S="$gcc_cv_prog_LN_S"
   8468 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
   8469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8470 $as_echo "yes" >&6; }
   8471 else
   8472   if test "$gcc_cv_prog_LN_S" = "ln"; then
   8473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
   8474 $as_echo "no, using ln" >&6; }
   8475   else
   8476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
   8477 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
   8478   fi
   8479 fi
   8480 
   8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
   8482 $as_echo_n "checking whether ln works... " >&6; }
   8483 if ${acx_cv_prog_LN+:} false; then :
   8484   $as_echo_n "(cached) " >&6
   8485 else
   8486   rm -f conftestdata_t
   8487 echo >conftestdata_f
   8488 if ln conftestdata_f conftestdata_t 2>/dev/null
   8489 then
   8490   acx_cv_prog_LN=ln
   8491 else
   8492   acx_cv_prog_LN=no
   8493 fi
   8494 rm -f conftestdata_f conftestdata_t
   8495 
   8496 fi
   8497 if test $acx_cv_prog_LN = no; then
   8498   LN="$LN_S"
   8499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
   8500 $as_echo "no, using $LN" >&6; }
   8501 else
   8502   LN="$acx_cv_prog_LN"
   8503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8504 $as_echo "yes" >&6; }
   8505 fi
   8506 
   8507 if test -n "$ac_tool_prefix"; then
   8508   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   8509 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8511 $as_echo_n "checking for $ac_word... " >&6; }
   8512 if ${ac_cv_prog_RANLIB+:} false; then :
   8513   $as_echo_n "(cached) " >&6
   8514 else
   8515   if test -n "$RANLIB"; then
   8516   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   8517 else
   8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8519 for as_dir in $PATH
   8520 do
   8521   IFS=$as_save_IFS
   8522   test -z "$as_dir" && as_dir=.
   8523     for ac_exec_ext in '' $ac_executable_extensions; do
   8524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8525     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   8526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8527     break 2
   8528   fi
   8529 done
   8530   done
   8531 IFS=$as_save_IFS
   8532 
   8533 fi
   8534 fi
   8535 RANLIB=$ac_cv_prog_RANLIB
   8536 if test -n "$RANLIB"; then
   8537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   8538 $as_echo "$RANLIB" >&6; }
   8539 else
   8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8541 $as_echo "no" >&6; }
   8542 fi
   8543 
   8544 
   8545 fi
   8546 if test -z "$ac_cv_prog_RANLIB"; then
   8547   ac_ct_RANLIB=$RANLIB
   8548   # Extract the first word of "ranlib", so it can be a program name with args.
   8549 set dummy ranlib; ac_word=$2
   8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8551 $as_echo_n "checking for $ac_word... " >&6; }
   8552 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   8553   $as_echo_n "(cached) " >&6
   8554 else
   8555   if test -n "$ac_ct_RANLIB"; then
   8556   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   8557 else
   8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8559 for as_dir in $PATH
   8560 do
   8561   IFS=$as_save_IFS
   8562   test -z "$as_dir" && as_dir=.
   8563     for ac_exec_ext in '' $ac_executable_extensions; do
   8564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8565     ac_cv_prog_ac_ct_RANLIB="ranlib"
   8566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8567     break 2
   8568   fi
   8569 done
   8570   done
   8571 IFS=$as_save_IFS
   8572 
   8573 fi
   8574 fi
   8575 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   8576 if test -n "$ac_ct_RANLIB"; then
   8577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   8578 $as_echo "$ac_ct_RANLIB" >&6; }
   8579 else
   8580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8581 $as_echo "no" >&6; }
   8582 fi
   8583 
   8584   if test "x$ac_ct_RANLIB" = x; then
   8585     RANLIB=":"
   8586   else
   8587     case $cross_compiling:$ac_tool_warned in
   8588 yes:)
   8589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8591 ac_tool_warned=yes ;;
   8592 esac
   8593     RANLIB=$ac_ct_RANLIB
   8594   fi
   8595 else
   8596   RANLIB="$ac_cv_prog_RANLIB"
   8597 fi
   8598 
   8599 ranlib_flags=""
   8600 
   8601 
   8602 # Find a good install program.  We prefer a C program (faster),
   8603 # so one script is as good as another.  But avoid the broken or
   8604 # incompatible versions:
   8605 # SysV /etc/install, /usr/sbin/install
   8606 # SunOS /usr/etc/install
   8607 # IRIX /sbin/install
   8608 # AIX /bin/install
   8609 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   8610 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   8611 # ./install, which can be erroneously created by make from ./install.sh.
   8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
   8613 $as_echo_n "checking for a BSD compatible install... " >&6; }
   8614 if test -z "$INSTALL"; then
   8615 if ${ac_cv_path_install+:} false; then :
   8616   $as_echo_n "(cached) " >&6
   8617 else
   8618     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
   8619   for ac_dir in $PATH; do
   8620     # Account for people who put trailing slashes in PATH elements.
   8621     case "$ac_dir/" in
   8622     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
   8623     *)
   8624       # OSF1 and SCO ODT 3.0 have their own names for install.
   8625       for ac_prog in ginstall scoinst install; do
   8626         if test -f $ac_dir/$ac_prog; then
   8627 	  if test $ac_prog = install &&
   8628             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
   8629 	    # AIX install.  It has an incompatible calling convention.
   8630 	    # OSF/1 installbsd also uses dspmsg, but is usable.
   8631 	    :
   8632 	  else
   8633 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
   8634 	    break 2
   8635 	  fi
   8636 	fi
   8637       done
   8638       ;;
   8639     esac
   8640   done
   8641   IFS="$ac_save_IFS"
   8642 
   8643 fi
   8644   if test "${ac_cv_path_install+set}" = set; then
   8645     INSTALL="$ac_cv_path_install"
   8646   else
   8647     # As a last resort, use the slow shell script.  We don't cache a
   8648     # path for INSTALL within a source directory, because that will
   8649     # break other packages using the cache if that directory is
   8650     # removed, or if the path is relative.
   8651     INSTALL="$ac_install_sh"
   8652   fi
   8653 fi
   8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   8655 $as_echo "$INSTALL" >&6; }
   8656 
   8657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   8658 # It thinks the first close brace ends the variable substitution.
   8659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   8660 
   8661 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   8662 
   8663 
   8664 # See if cmp has --ignore-initial.
   8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
   8666 $as_echo_n "checking for cmp's capabilities... " >&6; }
   8667 if ${gcc_cv_prog_cmp_skip+:} false; then :
   8668   $as_echo_n "(cached) " >&6
   8669 else
   8670    echo abfoo >t1
   8671   echo cdfoo >t2
   8672   gcc_cv_prog_cmp_skip=slowcompare
   8673   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
   8674     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
   8675       :
   8676     else
   8677       gcc_cv_prog_cmp_skip=gnucompare
   8678     fi
   8679   fi
   8680   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
   8681     if cmp t1 t2 2 2 > /dev/null 2>&1; then
   8682       if cmp t1 t2 1 1 > /dev/null 2>&1; then
   8683         :
   8684       else
   8685         gcc_cv_prog_cmp_skip=fastcompare
   8686       fi
   8687     fi
   8688   fi
   8689   rm t1 t2
   8690 
   8691 fi
   8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
   8693 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
   8694 make_compare_target=$gcc_cv_prog_cmp_skip
   8695 
   8696 
   8697 
   8698 # See if we have the mktemp command.
   8699 # Extract the first word of "mktemp", so it can be a program name with args.
   8700 set dummy mktemp; ac_word=$2
   8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8702 $as_echo_n "checking for $ac_word... " >&6; }
   8703 if ${ac_cv_prog_have_mktemp_command+:} false; then :
   8704   $as_echo_n "(cached) " >&6
   8705 else
   8706   if test -n "$have_mktemp_command"; then
   8707   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
   8708 else
   8709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8710 for as_dir in $PATH
   8711 do
   8712   IFS=$as_save_IFS
   8713   test -z "$as_dir" && as_dir=.
   8714     for ac_exec_ext in '' $ac_executable_extensions; do
   8715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8716     ac_cv_prog_have_mktemp_command="yes"
   8717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8718     break 2
   8719   fi
   8720 done
   8721   done
   8722 IFS=$as_save_IFS
   8723 
   8724   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
   8725 fi
   8726 fi
   8727 have_mktemp_command=$ac_cv_prog_have_mktemp_command
   8728 if test -n "$have_mktemp_command"; then
   8729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
   8730 $as_echo "$have_mktemp_command" >&6; }
   8731 else
   8732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8733 $as_echo "no" >&6; }
   8734 fi
   8735 
   8736 
   8737 
   8738 # See if makeinfo has been installed and is modern enough
   8739 # that we can use it.
   8740 
   8741   # Extract the first word of "makeinfo", so it can be a program name with args.
   8742 set dummy makeinfo; ac_word=$2
   8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8744 $as_echo_n "checking for $ac_word... " >&6; }
   8745 if ${ac_cv_prog_MAKEINFO+:} false; then :
   8746   $as_echo_n "(cached) " >&6
   8747 else
   8748   if test -n "$MAKEINFO"; then
   8749   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
   8750 else
   8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8752 for as_dir in $PATH
   8753 do
   8754   IFS=$as_save_IFS
   8755   test -z "$as_dir" && as_dir=.
   8756     for ac_exec_ext in '' $ac_executable_extensions; do
   8757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8758     ac_cv_prog_MAKEINFO="makeinfo"
   8759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8760     break 2
   8761   fi
   8762 done
   8763   done
   8764 IFS=$as_save_IFS
   8765 
   8766 fi
   8767 fi
   8768 MAKEINFO=$ac_cv_prog_MAKEINFO
   8769 if test -n "$MAKEINFO"; then
   8770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
   8771 $as_echo "$MAKEINFO" >&6; }
   8772 else
   8773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8774 $as_echo "no" >&6; }
   8775 fi
   8776 
   8777 
   8778   if test -n "$MAKEINFO"; then
   8779     # Found it, now check the version.
   8780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
   8781 $as_echo_n "checking for modern makeinfo... " >&6; }
   8782 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
   8783   $as_echo_n "(cached) " >&6
   8784 else
   8785   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
   8786                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
   8787 
   8788                     case $ac_prog_version in
   8789                       '')  gcc_cv_prog_makeinfo_modern=no;;
   8790                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
   8791                       *)   gcc_cv_prog_makeinfo_modern=no;;
   8792                     esac
   8793 
   8794 fi
   8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
   8796 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
   8797   else
   8798     gcc_cv_prog_makeinfo_modern=no
   8799   fi
   8800   if test $gcc_cv_prog_makeinfo_modern = no; then
   8801     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
   8802   fi
   8803 
   8804 if test $gcc_cv_prog_makeinfo_modern = no; then
   8805   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
   8806 *** Makeinfo is missing or too old.
   8807 *** Info documentation will not be built." >&5
   8808 $as_echo "$as_me: WARNING:
   8809 *** Makeinfo is missing or too old.
   8810 *** Info documentation will not be built." >&2;}
   8811   BUILD_INFO=
   8812 else
   8813   BUILD_INFO=info
   8814 fi
   8815 
   8816 
   8817 # Is pod2man recent enough to regenerate manpages?
   8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
   8819 $as_echo_n "checking for recent Pod::Man... " >&6; }
   8820 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
   8821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8822 $as_echo "yes" >&6; }
   8823   GENERATED_MANPAGES=generated-manpages
   8824 else
   8825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8826 $as_echo "no" >&6; }
   8827   GENERATED_MANPAGES=
   8828 fi
   8829 
   8830 
   8831 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
   8832 
   8833 # How about lex?
   8834 for ac_prog in flex
   8835 do
   8836   # Extract the first word of "$ac_prog", so it can be a program name with args.
   8837 set dummy $ac_prog; ac_word=$2
   8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8839 $as_echo_n "checking for $ac_word... " >&6; }
   8840 if ${ac_cv_prog_FLEX+:} false; then :
   8841   $as_echo_n "(cached) " >&6
   8842 else
   8843   if test -n "$FLEX"; then
   8844   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
   8845 else
   8846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8847 for as_dir in $PATH
   8848 do
   8849   IFS=$as_save_IFS
   8850   test -z "$as_dir" && as_dir=.
   8851     for ac_exec_ext in '' $ac_executable_extensions; do
   8852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8853     ac_cv_prog_FLEX="$ac_prog"
   8854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8855     break 2
   8856   fi
   8857 done
   8858   done
   8859 IFS=$as_save_IFS
   8860 
   8861 fi
   8862 fi
   8863 FLEX=$ac_cv_prog_FLEX
   8864 if test -n "$FLEX"; then
   8865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
   8866 $as_echo "$FLEX" >&6; }
   8867 else
   8868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8869 $as_echo "no" >&6; }
   8870 fi
   8871 
   8872 
   8873   test -n "$FLEX" && break
   8874 done
   8875 test -n "$FLEX" || FLEX="$MISSING flex"
   8876 
   8877 
   8878 # Bison?
   8879 for ac_prog in bison
   8880 do
   8881   # Extract the first word of "$ac_prog", so it can be a program name with args.
   8882 set dummy $ac_prog; ac_word=$2
   8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8884 $as_echo_n "checking for $ac_word... " >&6; }
   8885 if ${ac_cv_prog_BISON+:} false; then :
   8886   $as_echo_n "(cached) " >&6
   8887 else
   8888   if test -n "$BISON"; then
   8889   ac_cv_prog_BISON="$BISON" # Let the user override the test.
   8890 else
   8891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8892 for as_dir in $PATH
   8893 do
   8894   IFS=$as_save_IFS
   8895   test -z "$as_dir" && as_dir=.
   8896     for ac_exec_ext in '' $ac_executable_extensions; do
   8897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8898     ac_cv_prog_BISON="$ac_prog"
   8899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8900     break 2
   8901   fi
   8902 done
   8903   done
   8904 IFS=$as_save_IFS
   8905 
   8906 fi
   8907 fi
   8908 BISON=$ac_cv_prog_BISON
   8909 if test -n "$BISON"; then
   8910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
   8911 $as_echo "$BISON" >&6; }
   8912 else
   8913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8914 $as_echo "no" >&6; }
   8915 fi
   8916 
   8917 
   8918   test -n "$BISON" && break
   8919 done
   8920 test -n "$BISON" || BISON="$MISSING bison"
   8921 
   8922 
   8923 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
   8924 # check for build == host before using them.
   8925 
   8926 # NM
   8927 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
   8928   && test -d ../binutils ; then
   8929   NM='${objdir}/../binutils/nm-new'
   8930 else
   8931   # Extract the first word of "nm", so it can be a program name with args.
   8932 set dummy nm; ac_word=$2
   8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8934 $as_echo_n "checking for $ac_word... " >&6; }
   8935 if ${ac_cv_prog_NM+:} false; then :
   8936   $as_echo_n "(cached) " >&6
   8937 else
   8938   if test -n "$NM"; then
   8939   ac_cv_prog_NM="$NM" # Let the user override the test.
   8940 else
   8941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8942 for as_dir in $PATH
   8943 do
   8944   IFS=$as_save_IFS
   8945   test -z "$as_dir" && as_dir=.
   8946     for ac_exec_ext in '' $ac_executable_extensions; do
   8947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8948     ac_cv_prog_NM="nm"
   8949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8950     break 2
   8951   fi
   8952 done
   8953   done
   8954 IFS=$as_save_IFS
   8955 
   8956   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
   8957 fi
   8958 fi
   8959 NM=$ac_cv_prog_NM
   8960 if test -n "$NM"; then
   8961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
   8962 $as_echo "$NM" >&6; }
   8963 else
   8964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8965 $as_echo "no" >&6; }
   8966 fi
   8967 
   8968 
   8969 fi
   8970 
   8971 # AR
   8972 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
   8973   && test -d ../binutils ; then
   8974   AR='${objdir}/../binutils/ar'
   8975 else
   8976   # Extract the first word of "ar", so it can be a program name with args.
   8977 set dummy ar; ac_word=$2
   8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8979 $as_echo_n "checking for $ac_word... " >&6; }
   8980 if ${ac_cv_prog_AR+:} false; then :
   8981   $as_echo_n "(cached) " >&6
   8982 else
   8983   if test -n "$AR"; then
   8984   ac_cv_prog_AR="$AR" # Let the user override the test.
   8985 else
   8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8987 for as_dir in $PATH
   8988 do
   8989   IFS=$as_save_IFS
   8990   test -z "$as_dir" && as_dir=.
   8991     for ac_exec_ext in '' $ac_executable_extensions; do
   8992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8993     ac_cv_prog_AR="ar"
   8994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8995     break 2
   8996   fi
   8997 done
   8998   done
   8999 IFS=$as_save_IFS
   9000 
   9001   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
   9002 fi
   9003 fi
   9004 AR=$ac_cv_prog_AR
   9005 if test -n "$AR"; then
   9006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   9007 $as_echo "$AR" >&6; }
   9008 else
   9009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9010 $as_echo "no" >&6; }
   9011 fi
   9012 
   9013 
   9014 fi
   9015 
   9016 # The jit documentation looks better if built with sphinx, but can be
   9017 # built with texinfo if sphinx is not available.
   9018 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
   9019 # Extract the first word of "sphinx-build", so it can be a program name with args.
   9020 set dummy sphinx-build; ac_word=$2
   9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9022 $as_echo_n "checking for $ac_word... " >&6; }
   9023 if ${ac_cv_prog_doc_build_sys+:} false; then :
   9024   $as_echo_n "(cached) " >&6
   9025 else
   9026   if test -n "$doc_build_sys"; then
   9027   ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
   9028 else
   9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9030 for as_dir in $PATH
   9031 do
   9032   IFS=$as_save_IFS
   9033   test -z "$as_dir" && as_dir=.
   9034     for ac_exec_ext in '' $ac_executable_extensions; do
   9035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9036     ac_cv_prog_doc_build_sys="sphinx"
   9037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9038     break 2
   9039   fi
   9040 done
   9041   done
   9042 IFS=$as_save_IFS
   9043 
   9044   test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
   9045 fi
   9046 fi
   9047 doc_build_sys=$ac_cv_prog_doc_build_sys
   9048 if test -n "$doc_build_sys"; then
   9049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
   9050 $as_echo "$doc_build_sys" >&6; }
   9051 else
   9052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9053 $as_echo "no" >&6; }
   9054 fi
   9055 
   9056 
   9057 
   9058 # --------------------
   9059 # Checks for C headers
   9060 # --------------------
   9061 
   9062 # Need to reject headers which give warnings, so that the -Werror bootstrap
   9063 # works later. *sigh*  This needs to come before all header checks.
   9064 
   9065 ac_c_preproc_warn_flag=yes
   9066 
   9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   9068 $as_echo_n "checking for ANSI C header files... " >&6; }
   9069 if ${ac_cv_header_stdc+:} false; then :
   9070   $as_echo_n "(cached) " >&6
   9071 else
   9072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9073 /* end confdefs.h.  */
   9074 #include <stdlib.h>
   9075 #include <stdarg.h>
   9076 #include <string.h>
   9077 #include <float.h>
   9078 
   9079 int
   9080 main ()
   9081 {
   9082 
   9083   ;
   9084   return 0;
   9085 }
   9086 _ACEOF
   9087 if ac_fn_cxx_try_compile "$LINENO"; then :
   9088   ac_cv_header_stdc=yes
   9089 else
   9090   ac_cv_header_stdc=no
   9091 fi
   9092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9093 
   9094 if test $ac_cv_header_stdc = yes; then
   9095   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   9096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9097 /* end confdefs.h.  */
   9098 #include <string.h>
   9099 
   9100 _ACEOF
   9101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9102   $EGREP "memchr" >/dev/null 2>&1; then :
   9103 
   9104 else
   9105   ac_cv_header_stdc=no
   9106 fi
   9107 rm -f conftest*
   9108 
   9109 fi
   9110 
   9111 if test $ac_cv_header_stdc = yes; then
   9112   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   9113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9114 /* end confdefs.h.  */
   9115 #include <stdlib.h>
   9116 
   9117 _ACEOF
   9118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9119   $EGREP "free" >/dev/null 2>&1; then :
   9120 
   9121 else
   9122   ac_cv_header_stdc=no
   9123 fi
   9124 rm -f conftest*
   9125 
   9126 fi
   9127 
   9128 if test $ac_cv_header_stdc = yes; then
   9129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   9130   if test "$cross_compiling" = yes; then :
   9131   :
   9132 else
   9133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9134 /* end confdefs.h.  */
   9135 #include <ctype.h>
   9136 #include <stdlib.h>
   9137 #if ((' ' & 0x0FF) == 0x020)
   9138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   9139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   9140 #else
   9141 # define ISLOWER(c) \
   9142 		   (('a' <= (c) && (c) <= 'i') \
   9143 		     || ('j' <= (c) && (c) <= 'r') \
   9144 		     || ('s' <= (c) && (c) <= 'z'))
   9145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   9146 #endif
   9147 
   9148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   9149 int
   9150 main ()
   9151 {
   9152   int i;
   9153   for (i = 0; i < 256; i++)
   9154     if (XOR (islower (i), ISLOWER (i))
   9155 	|| toupper (i) != TOUPPER (i))
   9156       return 2;
   9157   return 0;
   9158 }
   9159 _ACEOF
   9160 if ac_fn_cxx_try_run "$LINENO"; then :
   9161 
   9162 else
   9163   ac_cv_header_stdc=no
   9164 fi
   9165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9166   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9167 fi
   9168 
   9169 fi
   9170 fi
   9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   9172 $as_echo "$ac_cv_header_stdc" >&6; }
   9173 if test $ac_cv_header_stdc = yes; then
   9174 
   9175 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   9176 
   9177 fi
   9178 
   9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   9180 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   9181 if ${ac_cv_header_time+:} false; then :
   9182   $as_echo_n "(cached) " >&6
   9183 else
   9184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9185 /* end confdefs.h.  */
   9186 #include <sys/types.h>
   9187 #include <sys/time.h>
   9188 #include <time.h>
   9189 
   9190 int
   9191 main ()
   9192 {
   9193 if ((struct tm *) 0)
   9194 return 0;
   9195   ;
   9196   return 0;
   9197 }
   9198 _ACEOF
   9199 if ac_fn_cxx_try_compile "$LINENO"; then :
   9200   ac_cv_header_time=yes
   9201 else
   9202   ac_cv_header_time=no
   9203 fi
   9204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9205 fi
   9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   9207 $as_echo "$ac_cv_header_time" >&6; }
   9208 if test $ac_cv_header_time = yes; then
   9209 
   9210 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   9211 
   9212 fi
   9213 
   9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
   9215 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
   9216 if ${gcc_cv_header_string+:} false; then :
   9217   $as_echo_n "(cached) " >&6
   9218 else
   9219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9220 /* end confdefs.h.  */
   9221 #include <string.h>
   9222 #include <strings.h>
   9223 int
   9224 main ()
   9225 {
   9226 
   9227   ;
   9228   return 0;
   9229 }
   9230 _ACEOF
   9231 if ac_fn_cxx_try_compile "$LINENO"; then :
   9232   gcc_cv_header_string=yes
   9233 else
   9234   gcc_cv_header_string=no
   9235 fi
   9236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9237 fi
   9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
   9239 $as_echo "$gcc_cv_header_string" >&6; }
   9240 if test $gcc_cv_header_string = yes; then
   9241 
   9242 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
   9243 
   9244 fi
   9245 
   9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
   9247 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
   9248 if ${ac_cv_header_sys_wait_h+:} false; then :
   9249   $as_echo_n "(cached) " >&6
   9250 else
   9251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9252 /* end confdefs.h.  */
   9253 #include <sys/types.h>
   9254 #include <sys/wait.h>
   9255 #ifndef WEXITSTATUS
   9256 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
   9257 #endif
   9258 #ifndef WIFEXITED
   9259 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   9260 #endif
   9261 
   9262 int
   9263 main ()
   9264 {
   9265   int s;
   9266   wait (&s);
   9267   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   9268   ;
   9269   return 0;
   9270 }
   9271 _ACEOF
   9272 if ac_fn_cxx_try_compile "$LINENO"; then :
   9273   ac_cv_header_sys_wait_h=yes
   9274 else
   9275   ac_cv_header_sys_wait_h=no
   9276 fi
   9277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9278 fi
   9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
   9280 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
   9281 if test $ac_cv_header_sys_wait_h = yes; then
   9282 
   9283 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
   9284 
   9285 fi
   9286 
   9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
   9288 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
   9289 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
   9290   $as_echo_n "(cached) " >&6
   9291 else
   9292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9293 /* end confdefs.h.  */
   9294 #include <sys/types.h>
   9295 #include <termios.h>
   9296 #ifdef TIOCGWINSZ
   9297   yes
   9298 #endif
   9299 
   9300 _ACEOF
   9301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9302   $EGREP "yes" >/dev/null 2>&1; then :
   9303   ac_cv_sys_tiocgwinsz_in_termios_h=yes
   9304 else
   9305   ac_cv_sys_tiocgwinsz_in_termios_h=no
   9306 fi
   9307 rm -f conftest*
   9308 
   9309 fi
   9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
   9311 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
   9312 
   9313 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
   9314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
   9315 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
   9316 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
   9317   $as_echo_n "(cached) " >&6
   9318 else
   9319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9320 /* end confdefs.h.  */
   9321 #include <sys/types.h>
   9322 #include <sys/ioctl.h>
   9323 #ifdef TIOCGWINSZ
   9324   yes
   9325 #endif
   9326 
   9327 _ACEOF
   9328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9329   $EGREP "yes" >/dev/null 2>&1; then :
   9330   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
   9331 else
   9332   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
   9333 fi
   9334 rm -f conftest*
   9335 
   9336 fi
   9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
   9338 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
   9339 
   9340   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
   9341 
   9342 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
   9343 
   9344   fi
   9345 fi
   9346 
   9347 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
   9348 		 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
   9349 		 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
   9350 		 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
   9351 do :
   9352   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   9353 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
   9354 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   9355   cat >>confdefs.h <<_ACEOF
   9356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   9357 _ACEOF
   9358 
   9359 fi
   9360 done
   9361 
   9362 
   9363 # Check for thread headers.
   9364 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
   9365 if test "x$ac_cv_header_thread_h" = xyes; then :
   9366   have_thread_h=yes
   9367 else
   9368   have_thread_h=
   9369 fi
   9370 
   9371 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
   9372 if test "x$ac_cv_header_pthread_h" = xyes; then :
   9373   have_pthread_h=yes
   9374 else
   9375   have_pthread_h=
   9376 fi
   9377 
   9378 
   9379 # These tests can't be done till we know if we have limits.h.
   9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
   9381 $as_echo_n "checking for CHAR_BIT... " >&6; }
   9382 if ${gcc_cv_decl_char_bit+:} false; then :
   9383   $as_echo_n "(cached) " >&6
   9384 else
   9385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9386 /* end confdefs.h.  */
   9387 #ifdef HAVE_LIMITS_H
   9388 #include <limits.h>
   9389 #endif
   9390 #ifdef CHAR_BIT
   9391 found
   9392 #endif
   9393 _ACEOF
   9394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9395   $EGREP "found" >/dev/null 2>&1; then :
   9396   gcc_cv_decl_char_bit=yes
   9397 else
   9398   gcc_cv_decl_char_bit=no
   9399 fi
   9400 rm -f conftest*
   9401 
   9402 
   9403 fi
   9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
   9405 $as_echo "$gcc_cv_decl_char_bit" >&6; }
   9406 if test $gcc_cv_decl_char_bit = no; then
   9407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
   9408 $as_echo_n "checking number of bits in a byte... " >&6; }
   9409 if ${gcc_cv_c_nbby+:} false; then :
   9410   $as_echo_n "(cached) " >&6
   9411 else
   9412   i=8
   9413  gcc_cv_c_nbby=
   9414  while test $i -lt 65; do
   9415    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9416 /* end confdefs.h.  */
   9417 
   9418 int
   9419 main ()
   9420 {
   9421 switch(0) {
   9422   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
   9423   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
   9424   ; }
   9425   ;
   9426   return 0;
   9427 }
   9428 _ACEOF
   9429 if ac_fn_cxx_try_compile "$LINENO"; then :
   9430   gcc_cv_c_nbby=$i; break
   9431 fi
   9432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9433    i=`expr $i + 1`
   9434  done
   9435  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
   9436 
   9437 fi
   9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
   9439 $as_echo "$gcc_cv_c_nbby" >&6; }
   9440 if test $gcc_cv_c_nbby = failed; then
   9441   as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
   9442 else
   9443 
   9444 cat >>confdefs.h <<_ACEOF
   9445 #define CHAR_BIT $gcc_cv_c_nbby
   9446 _ACEOF
   9447 
   9448 fi
   9449 fi
   9450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   9451 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   9452 if ${ac_cv_c_bigendian+:} false; then :
   9453   $as_echo_n "(cached) " >&6
   9454 else
   9455   ac_cv_c_bigendian=unknown
   9456     # See if we're dealing with a universal compiler.
   9457     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9458 /* end confdefs.h.  */
   9459 #ifndef __APPLE_CC__
   9460 	       not a universal capable compiler
   9461 	     #endif
   9462 	     typedef int dummy;
   9463 
   9464 _ACEOF
   9465 if ac_fn_cxx_try_compile "$LINENO"; then :
   9466 
   9467 	# Check for potential -arch flags.  It is not universal unless
   9468 	# there are at least two -arch flags with different values.
   9469 	ac_arch=
   9470 	ac_prev=
   9471 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   9472 	 if test -n "$ac_prev"; then
   9473 	   case $ac_word in
   9474 	     i?86 | x86_64 | ppc | ppc64)
   9475 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   9476 		 ac_arch=$ac_word
   9477 	       else
   9478 		 ac_cv_c_bigendian=universal
   9479 		 break
   9480 	       fi
   9481 	       ;;
   9482 	   esac
   9483 	   ac_prev=
   9484 	 elif test "x$ac_word" = "x-arch"; then
   9485 	   ac_prev=arch
   9486 	 fi
   9487        done
   9488 fi
   9489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9490     if test $ac_cv_c_bigendian = unknown; then
   9491       # See if sys/param.h defines the BYTE_ORDER macro.
   9492       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9493 /* end confdefs.h.  */
   9494 #include <sys/types.h>
   9495 	     #include <sys/param.h>
   9496 
   9497 int
   9498 main ()
   9499 {
   9500 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   9501 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   9502 		     && LITTLE_ENDIAN)
   9503 	      bogus endian macros
   9504 	     #endif
   9505 
   9506   ;
   9507   return 0;
   9508 }
   9509 _ACEOF
   9510 if ac_fn_cxx_try_compile "$LINENO"; then :
   9511   # It does; now see whether it defined to BIG_ENDIAN or not.
   9512 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9513 /* end confdefs.h.  */
   9514 #include <sys/types.h>
   9515 		#include <sys/param.h>
   9516 
   9517 int
   9518 main ()
   9519 {
   9520 #if BYTE_ORDER != BIG_ENDIAN
   9521 		 not big endian
   9522 		#endif
   9523 
   9524   ;
   9525   return 0;
   9526 }
   9527 _ACEOF
   9528 if ac_fn_cxx_try_compile "$LINENO"; then :
   9529   ac_cv_c_bigendian=yes
   9530 else
   9531   ac_cv_c_bigendian=no
   9532 fi
   9533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9534 fi
   9535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9536     fi
   9537     if test $ac_cv_c_bigendian = unknown; then
   9538       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   9539       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9540 /* end confdefs.h.  */
   9541 #include <limits.h>
   9542 
   9543 int
   9544 main ()
   9545 {
   9546 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   9547 	      bogus endian macros
   9548 	     #endif
   9549 
   9550   ;
   9551   return 0;
   9552 }
   9553 _ACEOF
   9554 if ac_fn_cxx_try_compile "$LINENO"; then :
   9555   # It does; now see whether it defined to _BIG_ENDIAN or not.
   9556 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9557 /* end confdefs.h.  */
   9558 #include <limits.h>
   9559 
   9560 int
   9561 main ()
   9562 {
   9563 #ifndef _BIG_ENDIAN
   9564 		 not big endian
   9565 		#endif
   9566 
   9567   ;
   9568   return 0;
   9569 }
   9570 _ACEOF
   9571 if ac_fn_cxx_try_compile "$LINENO"; then :
   9572   ac_cv_c_bigendian=yes
   9573 else
   9574   ac_cv_c_bigendian=no
   9575 fi
   9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9577 fi
   9578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9579     fi
   9580     if test $ac_cv_c_bigendian = unknown; then
   9581       # Compile a test program.
   9582       if test "$cross_compiling" = yes; then :
   9583   # Try to guess by grepping values from an object file.
   9584 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9585 /* end confdefs.h.  */
   9586 short int ascii_mm[] =
   9587 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   9588 		short int ascii_ii[] =
   9589 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   9590 		int use_ascii (int i) {
   9591 		  return ascii_mm[i] + ascii_ii[i];
   9592 		}
   9593 		short int ebcdic_ii[] =
   9594 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   9595 		short int ebcdic_mm[] =
   9596 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   9597 		int use_ebcdic (int i) {
   9598 		  return ebcdic_mm[i] + ebcdic_ii[i];
   9599 		}
   9600 		extern int foo;
   9601 
   9602 int
   9603 main ()
   9604 {
   9605 return use_ascii (foo) == use_ebcdic (foo);
   9606   ;
   9607   return 0;
   9608 }
   9609 _ACEOF
   9610 if ac_fn_cxx_try_compile "$LINENO"; then :
   9611   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   9612 	      ac_cv_c_bigendian=yes
   9613 	    fi
   9614 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   9615 	      if test "$ac_cv_c_bigendian" = unknown; then
   9616 		ac_cv_c_bigendian=no
   9617 	      else
   9618 		# finding both strings is unlikely to happen, but who knows?
   9619 		ac_cv_c_bigendian=unknown
   9620 	      fi
   9621 	    fi
   9622 fi
   9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9624 else
   9625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9626 /* end confdefs.h.  */
   9627 $ac_includes_default
   9628 int
   9629 main ()
   9630 {
   9631 
   9632 	     /* Are we little or big endian?  From Harbison&Steele.  */
   9633 	     union
   9634 	     {
   9635 	       long int l;
   9636 	       char c[sizeof (long int)];
   9637 	     } u;
   9638 	     u.l = 1;
   9639 	     return u.c[sizeof (long int) - 1] == 1;
   9640 
   9641   ;
   9642   return 0;
   9643 }
   9644 _ACEOF
   9645 if ac_fn_cxx_try_run "$LINENO"; then :
   9646   ac_cv_c_bigendian=no
   9647 else
   9648   ac_cv_c_bigendian=yes
   9649 fi
   9650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9651   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9652 fi
   9653 
   9654     fi
   9655 fi
   9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   9657 $as_echo "$ac_cv_c_bigendian" >&6; }
   9658  case $ac_cv_c_bigendian in #(
   9659    yes)
   9660      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   9661 ;; #(
   9662    no)
   9663       ;; #(
   9664    universal)
   9665 
   9666 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   9667 
   9668      ;; #(
   9669    *)
   9670      as_fn_error $? "unknown endianness
   9671  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   9672  esac
   9673 
   9674 
   9675 # ----------------------
   9676 # Checks for C++ headers
   9677 # ----------------------
   9678 
   9679 ac_ext=cpp
   9680 ac_cpp='$CXXCPP $CPPFLAGS'
   9681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
   9685 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
   9686 if test -z "$CXXCPP"; then
   9687   if ${ac_cv_prog_CXXCPP+:} false; then :
   9688   $as_echo_n "(cached) " >&6
   9689 else
   9690       # Double quotes because CXXCPP needs to be expanded
   9691     for CXXCPP in "$CXX -E" "/lib/cpp"
   9692     do
   9693       ac_preproc_ok=false
   9694 for ac_cxx_preproc_warn_flag in '' yes
   9695 do
   9696   # Use a header file that comes with gcc, so configuring glibc
   9697   # with a fresh cross-compiler works.
   9698   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9699   # <limits.h> exists even on freestanding compilers.
   9700   # On the NeXT, cc -E runs the code through the compiler's parser,
   9701   # not just through cpp. "Syntax error" is here to catch this case.
   9702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9703 /* end confdefs.h.  */
   9704 #ifdef __STDC__
   9705 # include <limits.h>
   9706 #else
   9707 # include <assert.h>
   9708 #endif
   9709 		     Syntax error
   9710 _ACEOF
   9711 if ac_fn_cxx_try_cpp "$LINENO"; then :
   9712 
   9713 else
   9714   # Broken: fails on valid input.
   9715 continue
   9716 fi
   9717 rm -f conftest.err conftest.i conftest.$ac_ext
   9718 
   9719   # OK, works on sane cases.  Now check whether nonexistent headers
   9720   # can be detected and how.
   9721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9722 /* end confdefs.h.  */
   9723 #include <ac_nonexistent.h>
   9724 _ACEOF
   9725 if ac_fn_cxx_try_cpp "$LINENO"; then :
   9726   # Broken: success on invalid input.
   9727 continue
   9728 else
   9729   # Passes both tests.
   9730 ac_preproc_ok=:
   9731 break
   9732 fi
   9733 rm -f conftest.err conftest.i conftest.$ac_ext
   9734 
   9735 done
   9736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   9737 rm -f conftest.i conftest.err conftest.$ac_ext
   9738 if $ac_preproc_ok; then :
   9739   break
   9740 fi
   9741 
   9742     done
   9743     ac_cv_prog_CXXCPP=$CXXCPP
   9744 
   9745 fi
   9746   CXXCPP=$ac_cv_prog_CXXCPP
   9747 else
   9748   ac_cv_prog_CXXCPP=$CXXCPP
   9749 fi
   9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
   9751 $as_echo "$CXXCPP" >&6; }
   9752 ac_preproc_ok=false
   9753 for ac_cxx_preproc_warn_flag in '' yes
   9754 do
   9755   # Use a header file that comes with gcc, so configuring glibc
   9756   # with a fresh cross-compiler works.
   9757   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9758   # <limits.h> exists even on freestanding compilers.
   9759   # On the NeXT, cc -E runs the code through the compiler's parser,
   9760   # not just through cpp. "Syntax error" is here to catch this case.
   9761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9762 /* end confdefs.h.  */
   9763 #ifdef __STDC__
   9764 # include <limits.h>
   9765 #else
   9766 # include <assert.h>
   9767 #endif
   9768 		     Syntax error
   9769 _ACEOF
   9770 if ac_fn_cxx_try_cpp "$LINENO"; then :
   9771 
   9772 else
   9773   # Broken: fails on valid input.
   9774 continue
   9775 fi
   9776 rm -f conftest.err conftest.i conftest.$ac_ext
   9777 
   9778   # OK, works on sane cases.  Now check whether nonexistent headers
   9779   # can be detected and how.
   9780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9781 /* end confdefs.h.  */
   9782 #include <ac_nonexistent.h>
   9783 _ACEOF
   9784 if ac_fn_cxx_try_cpp "$LINENO"; then :
   9785   # Broken: success on invalid input.
   9786 continue
   9787 else
   9788   # Passes both tests.
   9789 ac_preproc_ok=:
   9790 break
   9791 fi
   9792 rm -f conftest.err conftest.i conftest.$ac_ext
   9793 
   9794 done
   9795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   9796 rm -f conftest.i conftest.err conftest.$ac_ext
   9797 if $ac_preproc_ok; then :
   9798 
   9799 else
   9800   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
   9803 See \`config.log' for more details" >&5
   9804 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
   9805 See \`config.log' for more details" >&2;}; }
   9806 fi
   9807 
   9808 ac_ext=cpp
   9809 ac_cpp='$CXXCPP $CPPFLAGS'
   9810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9813 
   9814 
   9815 for ac_header in unordered_map
   9816 do :
   9817   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
   9818 if test "x$ac_cv_header_unordered_map" = xyes; then :
   9819   cat >>confdefs.h <<_ACEOF
   9820 #define HAVE_UNORDERED_MAP 1
   9821 _ACEOF
   9822 
   9823 fi
   9824 done
   9825 
   9826 for ac_header in tr1/unordered_map
   9827 do :
   9828   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
   9829 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
   9830   cat >>confdefs.h <<_ACEOF
   9831 #define HAVE_TR1_UNORDERED_MAP 1
   9832 _ACEOF
   9833 
   9834 fi
   9835 done
   9836 
   9837 for ac_header in ext/hash_map
   9838 do :
   9839   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
   9840 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
   9841   cat >>confdefs.h <<_ACEOF
   9842 #define HAVE_EXT_HASH_MAP 1
   9843 _ACEOF
   9844 
   9845 fi
   9846 done
   9847 
   9848 
   9849 # --------
   9850 # Dependency checking.
   9851 # --------
   9852 
   9853 rm -rf .tst 2>/dev/null
   9854 mkdir .tst 2>/dev/null
   9855 if test -d .tst; then
   9856   am__leading_dot=.
   9857 else
   9858   am__leading_dot=_
   9859 fi
   9860 rmdir .tst 2>/dev/null
   9861 
   9862 DEPDIR="${am__leading_dot}deps"
   9863 
   9864 ac_config_commands="$ac_config_commands depdir"
   9865 
   9866 
   9867 ac_config_commands="$ac_config_commands gccdepdir"
   9868 
   9869 
   9870 depcc="$CXX"  am_compiler_list=
   9871 
   9872 am_depcomp=$ac_aux_dir/depcomp
   9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   9874 $as_echo_n "checking dependency style of $depcc... " >&6; }
   9875 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
   9876   $as_echo_n "(cached) " >&6
   9877 else
   9878   if test -f "$am_depcomp"; then
   9879   # We make a subdir and do the tests there.  Otherwise we can end up
   9880   # making bogus files that we don't know about and never remove.  For
   9881   # instance it was reported that on HP-UX the gcc test will end up
   9882   # making a dummy file named `D' -- because `-MD' means `put the output
   9883   # in D'.
   9884   mkdir conftest.dir
   9885   # Copy depcomp to subdir because otherwise we won't find it if we're
   9886   # using a relative directory.
   9887   cp "$am_depcomp" conftest.dir
   9888   cd conftest.dir
   9889   # We will build objects and dependencies in a subdirectory because
   9890   # it helps to detect inapplicable dependency modes.  For instance
   9891   # both Tru64's cc and ICC support -MD to output dependencies as a
   9892   # side effect of compilation, but ICC will put the dependencies in
   9893   # the current directory while Tru64 will put them in the object
   9894   # directory.
   9895   mkdir sub
   9896 
   9897   am_cv_CXX_dependencies_compiler_type=none
   9898   if test "$am_compiler_list" = ""; then
   9899      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   9900   fi
   9901   for depmode in $am_compiler_list; do
   9902     if test $depmode = none; then break; fi
   9903 
   9904     $as_echo "$as_me:$LINENO: trying $depmode" >&5
   9905     # Setup a source with many dependencies, because some compilers
   9906     # like to wrap large dependency lists on column 80 (with \), and
   9907     # we should not choose a depcomp mode which is confused by this.
   9908     #
   9909     # We need to recreate these files for each test, as the compiler may
   9910     # overwrite some of them when testing with obscure command lines.
   9911     # This happens at least with the AIX C compiler.
   9912     : > sub/conftest.c
   9913     for i in 1 2 3 4 5 6; do
   9914       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   9915       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   9916       # Solaris 8's {/usr,}/bin/sh.
   9917       touch sub/conftst$i.h
   9918     done
   9919     echo "include sub/conftest.Po" > confmf
   9920 
   9921     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   9922     # mode.  It turns out that the SunPro C++ compiler does not properly
   9923     # handle `-M -o', and we need to detect this.
   9924     depcmd="depmode=$depmode \
   9925        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
   9926        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   9927        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
   9928     echo "| $depcmd" | sed -e 's/  */ /g' >&5
   9929     if env $depcmd > conftest.err 2>&1 &&
   9930        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
   9931        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
   9932        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
   9933       # icc doesn't choke on unknown options, it will just issue warnings
   9934       # or remarks (even with -Werror).  So we grep stderr for any message
   9935       # that says an option was ignored or not supported.
   9936       # When given -MP, icc 7.0 and 7.1 complain thusly:
   9937       #   icc: Command line warning: ignoring option '-M'; no argument required
   9938       # The diagnosis changed in icc 8.0:
   9939       #   icc: Command line remark: option '-MP' not supported
   9940       if (grep 'ignoring option' conftest.err ||
   9941           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   9942         am_cv_CXX_dependencies_compiler_type=$depmode
   9943 	$as_echo "$as_me:$LINENO: success" >&5
   9944         break
   9945       fi
   9946     fi
   9947     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
   9948     sed -e 's/^/| /' < conftest.err >&5
   9949   done
   9950 
   9951   cd ..
   9952   rm -rf conftest.dir
   9953 else
   9954   am_cv_CXX_dependencies_compiler_type=none
   9955 fi
   9956 
   9957 fi
   9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
   9959 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
   9960 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
   9961 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
   9962 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
   9963 
   9964 fi
   9965 
   9966 
   9967 # --------
   9968 # UNSORTED
   9969 # --------
   9970 
   9971 
   9972 # These libraries may be used by collect2.
   9973 # We may need a special search path to get them linked.
   9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
   9975 $as_echo_n "checking for collect2 libraries... " >&6; }
   9976 if ${gcc_cv_collect2_libs+:} false; then :
   9977   $as_echo_n "(cached) " >&6
   9978 else
   9979   save_LIBS="$LIBS"
   9980 for libs in '' -lld -lmld \
   9981 		'-L/usr/lib/cmplrs/cc2.11 -lmld' \
   9982 		'-L/usr/lib/cmplrs/cc3.11 -lmld'
   9983 do
   9984 	LIBS="$libs"
   9985 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9986 /* end confdefs.h.  */
   9987 
   9988 /* Override any GCC internal prototype to avoid an error.
   9989    Use char because int might match the return type of a GCC
   9990    builtin and then its argument prototype would still apply.  */
   9991 #ifdef __cplusplus
   9992 extern "C"
   9993 #endif
   9994 char ldopen ();
   9995 int
   9996 main ()
   9997 {
   9998 return ldopen ();
   9999   ;
   10000   return 0;
   10001 }
   10002 _ACEOF
   10003 if ac_fn_cxx_try_link "$LINENO"; then :
   10004   gcc_cv_collect2_libs="$libs"; break
   10005 fi
   10006 rm -f core conftest.err conftest.$ac_objext \
   10007     conftest$ac_exeext conftest.$ac_ext
   10008 done
   10009 LIBS="$save_LIBS"
   10010 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
   10011 fi
   10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
   10013 $as_echo "$gcc_cv_collect2_libs" >&6; }
   10014 case $gcc_cv_collect2_libs in
   10015 	"none required")	;;
   10016 	*)	COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
   10017 esac
   10018 
   10019 
   10020 # When building Ada code on Alpha, we need exc_resume which is usually in
   10021 # -lexc.  So test for it.
   10022 save_LIBS="$LIBS"
   10023 LIBS=
   10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
   10025 $as_echo_n "checking for library containing exc_resume... " >&6; }
   10026 if ${ac_cv_search_exc_resume+:} false; then :
   10027   $as_echo_n "(cached) " >&6
   10028 else
   10029   ac_func_search_save_LIBS=$LIBS
   10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10031 /* end confdefs.h.  */
   10032 
   10033 /* Override any GCC internal prototype to avoid an error.
   10034    Use char because int might match the return type of a GCC
   10035    builtin and then its argument prototype would still apply.  */
   10036 #ifdef __cplusplus
   10037 extern "C"
   10038 #endif
   10039 char exc_resume ();
   10040 int
   10041 main ()
   10042 {
   10043 return exc_resume ();
   10044   ;
   10045   return 0;
   10046 }
   10047 _ACEOF
   10048 for ac_lib in '' exc; do
   10049   if test -z "$ac_lib"; then
   10050     ac_res="none required"
   10051   else
   10052     ac_res=-l$ac_lib
   10053     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   10054   fi
   10055   if ac_fn_cxx_try_link "$LINENO"; then :
   10056   ac_cv_search_exc_resume=$ac_res
   10057 fi
   10058 rm -f core conftest.err conftest.$ac_objext \
   10059     conftest$ac_exeext
   10060   if ${ac_cv_search_exc_resume+:} false; then :
   10061   break
   10062 fi
   10063 done
   10064 if ${ac_cv_search_exc_resume+:} false; then :
   10065 
   10066 else
   10067   ac_cv_search_exc_resume=no
   10068 fi
   10069 rm conftest.$ac_ext
   10070 LIBS=$ac_func_search_save_LIBS
   10071 fi
   10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
   10073 $as_echo "$ac_cv_search_exc_resume" >&6; }
   10074 ac_res=$ac_cv_search_exc_resume
   10075 if test "$ac_res" != no; then :
   10076   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   10077 
   10078 fi
   10079 
   10080 GNAT_LIBEXC="$LIBS"
   10081 LIBS="$save_LIBS"
   10082 
   10083 
   10084 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
   10085 save_LIBS="$LIBS"
   10086 LIBS=
   10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
   10088 $as_echo_n "checking for library containing kstat_open... " >&6; }
   10089 if ${ac_cv_search_kstat_open+:} false; then :
   10090   $as_echo_n "(cached) " >&6
   10091 else
   10092   ac_func_search_save_LIBS=$LIBS
   10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10094 /* end confdefs.h.  */
   10095 
   10096 /* Override any GCC internal prototype to avoid an error.
   10097    Use char because int might match the return type of a GCC
   10098    builtin and then its argument prototype would still apply.  */
   10099 #ifdef __cplusplus
   10100 extern "C"
   10101 #endif
   10102 char kstat_open ();
   10103 int
   10104 main ()
   10105 {
   10106 return kstat_open ();
   10107   ;
   10108   return 0;
   10109 }
   10110 _ACEOF
   10111 for ac_lib in '' kstat; do
   10112   if test -z "$ac_lib"; then
   10113     ac_res="none required"
   10114   else
   10115     ac_res=-l$ac_lib
   10116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   10117   fi
   10118   if ac_fn_cxx_try_link "$LINENO"; then :
   10119   ac_cv_search_kstat_open=$ac_res
   10120 fi
   10121 rm -f core conftest.err conftest.$ac_objext \
   10122     conftest$ac_exeext
   10123   if ${ac_cv_search_kstat_open+:} false; then :
   10124   break
   10125 fi
   10126 done
   10127 if ${ac_cv_search_kstat_open+:} false; then :
   10128 
   10129 else
   10130   ac_cv_search_kstat_open=no
   10131 fi
   10132 rm conftest.$ac_ext
   10133 LIBS=$ac_func_search_save_LIBS
   10134 fi
   10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
   10136 $as_echo "$ac_cv_search_kstat_open" >&6; }
   10137 ac_res=$ac_cv_search_kstat_open
   10138 if test "$ac_res" != no; then :
   10139   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   10140 
   10141 fi
   10142 
   10143 EXTRA_GCC_LIBS="$LIBS"
   10144 LIBS="$save_LIBS"
   10145 
   10146 
   10147 # Solaris needs libsocket and libnsl for socket functions before 11.4.
   10148 # C++ needs those for libcody.
   10149 save_LIBS="$LIBS"
   10150 LIBS=
   10151 
   10152 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
   10153 $as_echo_n "checking for library containing gethostbyname... " >&6; }
   10154 if ${ac_cv_search_gethostbyname+:} false; then :
   10155   $as_echo_n "(cached) " >&6
   10156 else
   10157   ac_func_search_save_LIBS=$LIBS
   10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10159 /* end confdefs.h.  */
   10160 
   10161 /* Override any GCC internal prototype to avoid an error.
   10162    Use char because int might match the return type of a GCC
   10163    builtin and then its argument prototype would still apply.  */
   10164 #ifdef __cplusplus
   10165 extern "C"
   10166 #endif
   10167 char gethostbyname ();
   10168 int
   10169 main ()
   10170 {
   10171 return gethostbyname ();
   10172   ;
   10173   return 0;
   10174 }
   10175 _ACEOF
   10176 for ac_lib in '' nsl; do
   10177   if test -z "$ac_lib"; then
   10178     ac_res="none required"
   10179   else
   10180     ac_res=-l$ac_lib
   10181     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   10182   fi
   10183   if ac_fn_cxx_try_link "$LINENO"; then :
   10184   ac_cv_search_gethostbyname=$ac_res
   10185 fi
   10186 rm -f core conftest.err conftest.$ac_objext \
   10187     conftest$ac_exeext
   10188   if ${ac_cv_search_gethostbyname+:} false; then :
   10189   break
   10190 fi
   10191 done
   10192 if ${ac_cv_search_gethostbyname+:} false; then :
   10193 
   10194 else
   10195   ac_cv_search_gethostbyname=no
   10196 fi
   10197 rm conftest.$ac_ext
   10198 LIBS=$ac_func_search_save_LIBS
   10199 fi
   10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
   10201 $as_echo "$ac_cv_search_gethostbyname" >&6; }
   10202 ac_res=$ac_cv_search_gethostbyname
   10203 if test "$ac_res" != no; then :
   10204   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   10205 
   10206 fi
   10207 
   10208 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
   10209 $as_echo_n "checking for library containing socket... " >&6; }
   10210 if ${ac_cv_search_socket+:} false; then :
   10211   $as_echo_n "(cached) " >&6
   10212 else
   10213   ac_func_search_save_LIBS=$LIBS
   10214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10215 /* end confdefs.h.  */
   10216 
   10217 /* Override any GCC internal prototype to avoid an error.
   10218    Use char because int might match the return type of a GCC
   10219    builtin and then its argument prototype would still apply.  */
   10220 #ifdef __cplusplus
   10221 extern "C"
   10222 #endif
   10223 char socket ();
   10224 int
   10225 main ()
   10226 {
   10227 return socket ();
   10228   ;
   10229   return 0;
   10230 }
   10231 _ACEOF
   10232 for ac_lib in '' socket; do
   10233   if test -z "$ac_lib"; then
   10234     ac_res="none required"
   10235   else
   10236     ac_res=-l$ac_lib
   10237     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   10238   fi
   10239   if ac_fn_cxx_try_link "$LINENO"; then :
   10240   ac_cv_search_socket=$ac_res
   10241 fi
   10242 rm -f core conftest.err conftest.$ac_objext \
   10243     conftest$ac_exeext
   10244   if ${ac_cv_search_socket+:} false; then :
   10245   break
   10246 fi
   10247 done
   10248 if ${ac_cv_search_socket+:} false; then :
   10249 
   10250 else
   10251   ac_cv_search_socket=no
   10252 fi
   10253 rm conftest.$ac_ext
   10254 LIBS=$ac_func_search_save_LIBS
   10255 fi
   10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
   10257 $as_echo "$ac_cv_search_socket" >&6; }
   10258 ac_res=$ac_cv_search_socket
   10259 if test "$ac_res" != no; then :
   10260   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   10261 
   10262 else
   10263 
   10264 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   10265 $as_echo_n "checking for socket in -lsocket... " >&6; }
   10266 if ${ac_cv_lib_socket_socket+:} false; then :
   10267   $as_echo_n "(cached) " >&6
   10268 else
   10269   ac_check_lib_save_LIBS=$LIBS
   10270 LIBS="-lsocket -lnsl $LIBS"
   10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10272 /* end confdefs.h.  */
   10273 
   10274 /* Override any GCC internal prototype to avoid an error.
   10275    Use char because int might match the return type of a GCC
   10276    builtin and then its argument prototype would still apply.  */
   10277 #ifdef __cplusplus
   10278 extern "C"
   10279 #endif
   10280 char socket ();
   10281 int
   10282 main ()
   10283 {
   10284 return socket ();
   10285   ;
   10286   return 0;
   10287 }
   10288 _ACEOF
   10289 if ac_fn_cxx_try_link "$LINENO"; then :
   10290   ac_cv_lib_socket_socket=yes
   10291 else
   10292   ac_cv_lib_socket_socket=no
   10293 fi
   10294 rm -f core conftest.err conftest.$ac_objext \
   10295     conftest$ac_exeext conftest.$ac_ext
   10296 LIBS=$ac_check_lib_save_LIBS
   10297 fi
   10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   10299 $as_echo "$ac_cv_lib_socket_socket" >&6; }
   10300 if test "x$ac_cv_lib_socket_socket" = xyes; then :
   10301   LIBS="-lsocket -lnsl $LIBS"
   10302 fi
   10303 
   10304 fi
   10305 
   10306 
   10307 NETLIBS="$LIBS"
   10308 LIBS="$save_LIBS"
   10309 
   10310 
   10311 # Some systems put ldexp and frexp in libm instead of libc; assume
   10312 # they're both in the same place.  jcf-dump needs them.
   10313 save_LIBS="$LIBS"
   10314 LIBS=
   10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
   10316 $as_echo_n "checking for library containing ldexp... " >&6; }
   10317 if ${ac_cv_search_ldexp+:} false; then :
   10318   $as_echo_n "(cached) " >&6
   10319 else
   10320   ac_func_search_save_LIBS=$LIBS
   10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10322 /* end confdefs.h.  */
   10323 
   10324 /* Override any GCC internal prototype to avoid an error.
   10325    Use char because int might match the return type of a GCC
   10326    builtin and then its argument prototype would still apply.  */
   10327 #ifdef __cplusplus
   10328 extern "C"
   10329 #endif
   10330 char ldexp ();
   10331 int
   10332 main ()
   10333 {
   10334 return ldexp ();
   10335   ;
   10336   return 0;
   10337 }
   10338 _ACEOF
   10339 for ac_lib in '' m; do
   10340   if test -z "$ac_lib"; then
   10341     ac_res="none required"
   10342   else
   10343     ac_res=-l$ac_lib
   10344     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   10345   fi
   10346   if ac_fn_cxx_try_link "$LINENO"; then :
   10347   ac_cv_search_ldexp=$ac_res
   10348 fi
   10349 rm -f core conftest.err conftest.$ac_objext \
   10350     conftest$ac_exeext
   10351   if ${ac_cv_search_ldexp+:} false; then :
   10352   break
   10353 fi
   10354 done
   10355 if ${ac_cv_search_ldexp+:} false; then :
   10356 
   10357 else
   10358   ac_cv_search_ldexp=no
   10359 fi
   10360 rm conftest.$ac_ext
   10361 LIBS=$ac_func_search_save_LIBS
   10362 fi
   10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
   10364 $as_echo "$ac_cv_search_ldexp" >&6; }
   10365 ac_res=$ac_cv_search_ldexp
   10366 if test "$ac_res" != no; then :
   10367   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   10368 
   10369 fi
   10370 
   10371 LDEXP_LIB="$LIBS"
   10372 LIBS="$save_LIBS"
   10373 
   10374 
   10375 # Some systems need dlopen
   10376 save_LIBS="$LIBS"
   10377 LIBS=
   10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   10379 $as_echo_n "checking for library containing dlopen... " >&6; }
   10380 if ${ac_cv_search_dlopen+:} false; then :
   10381   $as_echo_n "(cached) " >&6
   10382 else
   10383   ac_func_search_save_LIBS=$LIBS
   10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10385 /* end confdefs.h.  */
   10386 
   10387 /* Override any GCC internal prototype to avoid an error.
   10388    Use char because int might match the return type of a GCC
   10389    builtin and then its argument prototype would still apply.  */
   10390 #ifdef __cplusplus
   10391 extern "C"
   10392 #endif
   10393 char dlopen ();
   10394 int
   10395 main ()
   10396 {
   10397 return dlopen ();
   10398   ;
   10399   return 0;
   10400 }
   10401 _ACEOF
   10402 for ac_lib in '' dl; do
   10403   if test -z "$ac_lib"; then
   10404     ac_res="none required"
   10405   else
   10406     ac_res=-l$ac_lib
   10407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   10408   fi
   10409   if ac_fn_cxx_try_link "$LINENO"; then :
   10410   ac_cv_search_dlopen=$ac_res
   10411 fi
   10412 rm -f core conftest.err conftest.$ac_objext \
   10413     conftest$ac_exeext
   10414   if ${ac_cv_search_dlopen+:} false; then :
   10415   break
   10416 fi
   10417 done
   10418 if ${ac_cv_search_dlopen+:} false; then :
   10419 
   10420 else
   10421   ac_cv_search_dlopen=no
   10422 fi
   10423 rm conftest.$ac_ext
   10424 LIBS=$ac_func_search_save_LIBS
   10425 fi
   10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   10427 $as_echo "$ac_cv_search_dlopen" >&6; }
   10428 ac_res=$ac_cv_search_dlopen
   10429 if test "$ac_res" != no; then :
   10430   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   10431 
   10432 fi
   10433 
   10434 DL_LIB="$LIBS"
   10435 LIBS="$save_LIBS"
   10436 
   10437 
   10438 # Use <inttypes.h> only if it exists,
   10439 # doesn't clash with <sys/types.h>, declares intmax_t and defines
   10440 # PRId64
   10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
   10442 $as_echo_n "checking for inttypes.h... " >&6; }
   10443 if ${gcc_cv_header_inttypes_h+:} false; then :
   10444   $as_echo_n "(cached) " >&6
   10445 else
   10446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10447 /* end confdefs.h.  */
   10448 #define __STDC_FORMAT_MACROS
   10449 #include <sys/types.h>
   10450 #include <inttypes.h>
   10451 int
   10452 main ()
   10453 {
   10454 intmax_t i = -1;
   10455 #ifndef PRId64
   10456 choke me
   10457 #endif
   10458   ;
   10459   return 0;
   10460 }
   10461 _ACEOF
   10462 if ac_fn_cxx_try_compile "$LINENO"; then :
   10463   gcc_cv_header_inttypes_h=yes
   10464 else
   10465   gcc_cv_header_inttypes_h=no
   10466 fi
   10467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10468 fi
   10469 
   10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
   10471 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
   10472 if test $gcc_cv_header_inttypes_h = yes; then
   10473 
   10474 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
   10475 
   10476 fi
   10477 
   10478 # Look for the ZSTD package.
   10479 ZSTD_INCLUDE=
   10480 ZSTD_LIB=
   10481 
   10482 
   10483 ZSTD_CPPFLAGS=
   10484 ZSTD_LDFLAGS=
   10485 
   10486 
   10487 
   10488 # Check whether --with-zstd was given.
   10489 if test "${with_zstd+set}" = set; then :
   10490   withval=$with_zstd;
   10491 fi
   10492 
   10493 
   10494 # Check whether --with-zstd-include was given.
   10495 if test "${with_zstd_include+set}" = set; then :
   10496   withval=$with_zstd_include;
   10497 fi
   10498 
   10499 
   10500 # Check whether --with-zstd-lib was given.
   10501 if test "${with_zstd_lib+set}" = set; then :
   10502   withval=$with_zstd_lib;
   10503 fi
   10504 
   10505 case "x$with_zstd" in
   10506   x) ;;
   10507   xno)
   10508     ZSTD_INCLUDE=
   10509     ZSTD_LIB=
   10510     ;;
   10511   *) ZSTD_INCLUDE=$with_zstd/include
   10512      ZSTD_LIB=$with_zstd/lib
   10513      ;;
   10514 esac
   10515 
   10516 if test "x$with_zstd" != xno; then
   10517 if test "x$with_zstd_include" != x; then
   10518   ZSTD_INCLUDE=$with_zstd_include
   10519 fi
   10520 if test "x$with_zstd_lib" != x; then
   10521   ZSTD_LIB=$with_zstd_lib
   10522 fi
   10523 if test "x$ZSTD_INCLUDE" != x \
   10524    && test "x$ZSTD_INCLUDE" != xno; then
   10525   ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
   10526 fi
   10527 if test "x$ZSTD_LIB" != x \
   10528    && test "x$ZSTD_LIB" != xno; then
   10529   ZSTD_LDFLAGS=-L$ZSTD_LIB
   10530 fi
   10531 
   10532 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
   10533 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
   10534 
   10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
   10536 $as_echo_n "checking for zstd.h... " >&6; }
   10537 if ${gcc_cv_header_zstd_h+:} false; then :
   10538   $as_echo_n "(cached) " >&6
   10539 else
   10540   # We require version 1.3.0 or later.  This is the first version that has
   10541 # ZSTD_getFrameContentSize.
   10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10543 /* end confdefs.h.  */
   10544 #include <zstd.h>
   10545 #if ZSTD_VERSION_NUMBER < 10300
   10546 #error "need zstd 1.3.0 or better"
   10547 #endif
   10548 int
   10549 main ()
   10550 {
   10551 
   10552   ;
   10553   return 0;
   10554 }
   10555 _ACEOF
   10556 if ac_fn_cxx_try_compile "$LINENO"; then :
   10557   gcc_cv_header_zstd_h=yes
   10558 else
   10559   gcc_cv_header_zstd_h=no
   10560 fi
   10561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10562 fi
   10563 
   10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
   10565 $as_echo "$gcc_cv_header_zstd_h" >&6; }
   10566 if test $gcc_cv_header_zstd_h = yes; then
   10567 
   10568 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
   10569 
   10570 elif test "x$with_zstd" != x; then
   10571     as_fn_error $? "Unable to find zstd.h.  See config.log for details." "$LINENO" 5
   10572 fi
   10573 
   10574 # LTO can use zstd compression algorithm
   10575 save_LIBS="$LIBS"
   10576 LIBS=
   10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
   10578 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
   10579 if ${ac_cv_search_ZSTD_compress+:} false; then :
   10580   $as_echo_n "(cached) " >&6
   10581 else
   10582   ac_func_search_save_LIBS=$LIBS
   10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10584 /* end confdefs.h.  */
   10585 
   10586 /* Override any GCC internal prototype to avoid an error.
   10587    Use char because int might match the return type of a GCC
   10588    builtin and then its argument prototype would still apply.  */
   10589 #ifdef __cplusplus
   10590 extern "C"
   10591 #endif
   10592 char ZSTD_compress ();
   10593 int
   10594 main ()
   10595 {
   10596 return ZSTD_compress ();
   10597   ;
   10598   return 0;
   10599 }
   10600 _ACEOF
   10601 for ac_lib in '' zstd; do
   10602   if test -z "$ac_lib"; then
   10603     ac_res="none required"
   10604   else
   10605     ac_res=-l$ac_lib
   10606     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   10607   fi
   10608   if ac_fn_cxx_try_link "$LINENO"; then :
   10609   ac_cv_search_ZSTD_compress=$ac_res
   10610 fi
   10611 rm -f core conftest.err conftest.$ac_objext \
   10612     conftest$ac_exeext
   10613   if ${ac_cv_search_ZSTD_compress+:} false; then :
   10614   break
   10615 fi
   10616 done
   10617 if ${ac_cv_search_ZSTD_compress+:} false; then :
   10618 
   10619 else
   10620   ac_cv_search_ZSTD_compress=no
   10621 fi
   10622 rm conftest.$ac_ext
   10623 LIBS=$ac_func_search_save_LIBS
   10624 fi
   10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
   10626 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
   10627 ac_res=$ac_cv_search_ZSTD_compress
   10628 if test "$ac_res" != no; then :
   10629   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   10630 
   10631 fi
   10632 
   10633 ZSTD_LIB="$LIBS"
   10634 LIBS="$save_LIBS"
   10635 
   10636 fi
   10637 
   10638 
   10639 
   10640 for ac_func in times clock kill getrlimit setrlimit atoq \
   10641 	popen sysconf strsignal getrusage nl_langinfo \
   10642 	gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
   10643 	clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked madvise mallinfo mallinfo2 fstatat
   10644 do :
   10645   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10646 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
   10647 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   10648   cat >>confdefs.h <<_ACEOF
   10649 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10650 _ACEOF
   10651 
   10652 fi
   10653 done
   10654 
   10655 
   10656 if test x$ac_cv_func_mbstowcs = xyes; then
   10657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
   10658 $as_echo_n "checking whether mbstowcs works... " >&6; }
   10659 if ${gcc_cv_func_mbstowcs_works+:} false; then :
   10660   $as_echo_n "(cached) " >&6
   10661 else
   10662       if test "$cross_compiling" = yes; then :
   10663   gcc_cv_func_mbstowcs_works=yes
   10664 else
   10665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10666 /* end confdefs.h.  */
   10667 #include <stdlib.h>
   10668 int main()
   10669 {
   10670   mbstowcs(0, "", 0);
   10671   return 0;
   10672 }
   10673 _ACEOF
   10674 if ac_fn_cxx_try_run "$LINENO"; then :
   10675   gcc_cv_func_mbstowcs_works=yes
   10676 else
   10677   gcc_cv_func_mbstowcs_works=no
   10678 fi
   10679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10680   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10681 fi
   10682 
   10683 fi
   10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
   10685 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
   10686   if test x$gcc_cv_func_mbstowcs_works = xyes; then
   10687 
   10688 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
   10689 
   10690   fi
   10691 fi
   10692 
   10693 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   10694 if test "x$ac_cv_type_ssize_t" = xyes; then :
   10695 
   10696 else
   10697 
   10698 cat >>confdefs.h <<_ACEOF
   10699 #define ssize_t int
   10700 _ACEOF
   10701 
   10702 fi
   10703 
   10704 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
   10705 if test "x$ac_cv_type_caddr_t" = xyes; then :
   10706 
   10707 else
   10708 
   10709 cat >>confdefs.h <<_ACEOF
   10710 #define caddr_t char *
   10711 _ACEOF
   10712 
   10713 fi
   10714 
   10715 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
   10716 "
   10717 if test "x$ac_cv_type_sighander_t" = xyes; then :
   10718 
   10719 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
   10720 
   10721 fi
   10722 
   10723 
   10724 
   10725 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
   10726 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
   10727   gcc_header_sys_mman_h=yes
   10728 else
   10729   gcc_header_sys_mman_h=no
   10730 fi
   10731 
   10732 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   10733 if test "x$ac_cv_func_mmap" = xyes; then :
   10734   gcc_func_mmap=yes
   10735 else
   10736   gcc_func_mmap=no
   10737 fi
   10738 
   10739 if test "$gcc_header_sys_mman_h" != yes \
   10740  || test "$gcc_func_mmap" != yes; then
   10741    gcc_cv_func_mmap_file=no
   10742    gcc_cv_func_mmap_dev_zero=no
   10743    gcc_cv_func_mmap_anon=no
   10744 else
   10745    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
   10746 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
   10747 if ${gcc_cv_func_mmap_file+:} false; then :
   10748   $as_echo_n "(cached) " >&6
   10749 else
   10750   # Add a system to this blacklist if
   10751    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
   10752    # memory area containing the same data that you'd get if you applied
   10753    # read() to the same fd.  The only system known to have a problem here
   10754    # is VMS, where text files have record structure.
   10755    case "$host_os" in
   10756      *vms* | ultrix*)
   10757         gcc_cv_func_mmap_file=no ;;
   10758      *)
   10759         gcc_cv_func_mmap_file=yes;;
   10760    esac
   10761 fi
   10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
   10763 $as_echo "$gcc_cv_func_mmap_file" >&6; }
   10764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
   10765 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
   10766 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
   10767   $as_echo_n "(cached) " >&6
   10768 else
   10769   # Add a system to this blacklist if it has mmap() but /dev/zero
   10770    # does not exist, or if mmapping /dev/zero does not give anonymous
   10771    # zeroed pages with both the following properties:
   10772    # 1. If you map N consecutive pages in with one call, and then
   10773    #    unmap any subset of those pages, the pages that were not
   10774    #    explicitly unmapped remain accessible.
   10775    # 2. If you map two adjacent blocks of memory and then unmap them
   10776    #    both at once, they must both go away.
   10777    # Systems known to be in this category are Windows (all variants),
   10778    # VMS, and Darwin.
   10779    case "$host_os" in
   10780      *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
   10781         gcc_cv_func_mmap_dev_zero=no ;;
   10782      *)
   10783         gcc_cv_func_mmap_dev_zero=yes;;
   10784    esac
   10785 fi
   10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
   10787 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
   10788 
   10789    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
   10790    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
   10791 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
   10792 if ${gcc_cv_decl_map_anon+:} false; then :
   10793   $as_echo_n "(cached) " >&6
   10794 else
   10795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10796 /* end confdefs.h.  */
   10797 #include <sys/types.h>
   10798 #include <sys/mman.h>
   10799 #include <unistd.h>
   10800 
   10801 #ifndef MAP_ANONYMOUS
   10802 #define MAP_ANONYMOUS MAP_ANON
   10803 #endif
   10804 
   10805 int
   10806 main ()
   10807 {
   10808 int n = MAP_ANONYMOUS;
   10809   ;
   10810   return 0;
   10811 }
   10812 _ACEOF
   10813 if ac_fn_cxx_try_compile "$LINENO"; then :
   10814   gcc_cv_decl_map_anon=yes
   10815 else
   10816   gcc_cv_decl_map_anon=no
   10817 fi
   10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10819 fi
   10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
   10821 $as_echo "$gcc_cv_decl_map_anon" >&6; }
   10822 
   10823    if test $gcc_cv_decl_map_anon = no; then
   10824      gcc_cv_func_mmap_anon=no
   10825    else
   10826      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
   10827 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
   10828 if ${gcc_cv_func_mmap_anon+:} false; then :
   10829   $as_echo_n "(cached) " >&6
   10830 else
   10831   # Add a system to this blacklist if it has mmap() and MAP_ANON or
   10832    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
   10833    # doesn't give anonymous zeroed pages with the same properties listed
   10834    # above for use of /dev/zero.
   10835    # Systems known to be in this category are Windows, VMS, and SCO Unix.
   10836    case "$host_os" in
   10837      *vms* | cygwin* | pe | mingw* | sco* | udk* )
   10838         gcc_cv_func_mmap_anon=no ;;
   10839      *)
   10840         gcc_cv_func_mmap_anon=yes;;
   10841    esac
   10842 fi
   10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
   10844 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
   10845    fi
   10846 fi
   10847 
   10848 if test $gcc_cv_func_mmap_file = yes; then
   10849 
   10850 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
   10851 
   10852 fi
   10853 if test $gcc_cv_func_mmap_dev_zero = yes; then
   10854 
   10855 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
   10856 
   10857 fi
   10858 if test $gcc_cv_func_mmap_anon = yes; then
   10859 
   10860 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
   10861 
   10862 fi
   10863 
   10864 
   10865 case "${host}" in
   10866 *-*-*vms*)
   10867   # Under VMS, vfork works very differently than on Unix. The standard test
   10868   # won't work, and it isn't easily adaptable. It makes more sense to
   10869   # just force it.
   10870   ac_cv_func_vfork_works=yes
   10871   ;;
   10872 esac
   10873 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   10874 if test "x$ac_cv_type_pid_t" = xyes; then :
   10875 
   10876 else
   10877 
   10878 cat >>confdefs.h <<_ACEOF
   10879 #define pid_t int
   10880 _ACEOF
   10881 
   10882 fi
   10883 
   10884 for ac_header in vfork.h
   10885 do :
   10886   ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
   10887 if test "x$ac_cv_header_vfork_h" = xyes; then :
   10888   cat >>confdefs.h <<_ACEOF
   10889 #define HAVE_VFORK_H 1
   10890 _ACEOF
   10891 
   10892 fi
   10893 done
   10894 
   10895 for ac_func in fork vfork
   10896 do :
   10897   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10898 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
   10899 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   10900   cat >>confdefs.h <<_ACEOF
   10901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10902 _ACEOF
   10903 
   10904 fi
   10905 done
   10906 
   10907 if test "x$ac_cv_func_fork" = xyes; then
   10908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   10909 $as_echo_n "checking for working fork... " >&6; }
   10910 if ${ac_cv_func_fork_works+:} false; then :
   10911   $as_echo_n "(cached) " >&6
   10912 else
   10913   if test "$cross_compiling" = yes; then :
   10914   ac_cv_func_fork_works=cross
   10915 else
   10916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10917 /* end confdefs.h.  */
   10918 $ac_includes_default
   10919 int
   10920 main ()
   10921 {
   10922 
   10923 	  /* By Ruediger Kuhlmann. */
   10924 	  return fork () < 0;
   10925 
   10926   ;
   10927   return 0;
   10928 }
   10929 _ACEOF
   10930 if ac_fn_cxx_try_run "$LINENO"; then :
   10931   ac_cv_func_fork_works=yes
   10932 else
   10933   ac_cv_func_fork_works=no
   10934 fi
   10935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10936   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10937 fi
   10938 
   10939 fi
   10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   10941 $as_echo "$ac_cv_func_fork_works" >&6; }
   10942 
   10943 else
   10944   ac_cv_func_fork_works=$ac_cv_func_fork
   10945 fi
   10946 if test "x$ac_cv_func_fork_works" = xcross; then
   10947   case $host in
   10948     *-*-amigaos* | *-*-msdosdjgpp*)
   10949       # Override, as these systems have only a dummy fork() stub
   10950       ac_cv_func_fork_works=no
   10951       ;;
   10952     *)
   10953       ac_cv_func_fork_works=yes
   10954       ;;
   10955   esac
   10956   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   10957 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   10958 fi
   10959 ac_cv_func_vfork_works=$ac_cv_func_vfork
   10960 if test "x$ac_cv_func_vfork" = xyes; then
   10961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   10962 $as_echo_n "checking for working vfork... " >&6; }
   10963 if ${ac_cv_func_vfork_works+:} false; then :
   10964   $as_echo_n "(cached) " >&6
   10965 else
   10966   if test "$cross_compiling" = yes; then :
   10967   ac_cv_func_vfork_works=cross
   10968 else
   10969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10970 /* end confdefs.h.  */
   10971 /* Thanks to Paul Eggert for this test.  */
   10972 $ac_includes_default
   10973 #include <sys/wait.h>
   10974 #ifdef HAVE_VFORK_H
   10975 # include <vfork.h>
   10976 #endif
   10977 /* On some sparc systems, changes by the child to local and incoming
   10978    argument registers are propagated back to the parent.  The compiler
   10979    is told about this with #include <vfork.h>, but some compilers
   10980    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   10981    static variable whose address is put into a register that is
   10982    clobbered by the vfork.  */
   10983 static void
   10984 #ifdef __cplusplus
   10985 sparc_address_test (int arg)
   10986 # else
   10987 sparc_address_test (arg) int arg;
   10988 #endif
   10989 {
   10990   static pid_t child;
   10991   if (!child) {
   10992     child = vfork ();
   10993     if (child < 0) {
   10994       perror ("vfork");
   10995       _exit(2);
   10996     }
   10997     if (!child) {
   10998       arg = getpid();
   10999       write(-1, "", 0);
   11000       _exit (arg);
   11001     }
   11002   }
   11003 }
   11004 
   11005 int
   11006 main ()
   11007 {
   11008   pid_t parent = getpid ();
   11009   pid_t child;
   11010 
   11011   sparc_address_test (0);
   11012 
   11013   child = vfork ();
   11014 
   11015   if (child == 0) {
   11016     /* Here is another test for sparc vfork register problems.  This
   11017        test uses lots of local variables, at least as many local
   11018        variables as main has allocated so far including compiler
   11019        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   11020        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   11021        reuse the register of parent for one of the local variables,
   11022        since it will think that parent can't possibly be used any more
   11023        in this routine.  Assigning to the local variable will thus
   11024        munge parent in the parent process.  */
   11025     pid_t
   11026       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   11027       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   11028     /* Convince the compiler that p..p7 are live; otherwise, it might
   11029        use the same hardware register for all 8 local variables.  */
   11030     if (p != p1 || p != p2 || p != p3 || p != p4
   11031 	|| p != p5 || p != p6 || p != p7)
   11032       _exit(1);
   11033 
   11034     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   11035        from child file descriptors.  If the child closes a descriptor
   11036        before it execs or exits, this munges the parent's descriptor
   11037        as well.  Test for this by closing stdout in the child.  */
   11038     _exit(close(fileno(stdout)) != 0);
   11039   } else {
   11040     int status;
   11041     struct stat st;
   11042 
   11043     while (wait(&status) != child)
   11044       ;
   11045     return (
   11046 	 /* Was there some problem with vforking?  */
   11047 	 child < 0
   11048 
   11049 	 /* Did the child fail?  (This shouldn't happen.)  */
   11050 	 || status
   11051 
   11052 	 /* Did the vfork/compiler bug occur?  */
   11053 	 || parent != getpid()
   11054 
   11055 	 /* Did the file descriptor bug occur?  */
   11056 	 || fstat(fileno(stdout), &st) != 0
   11057 	 );
   11058   }
   11059 }
   11060 _ACEOF
   11061 if ac_fn_cxx_try_run "$LINENO"; then :
   11062   ac_cv_func_vfork_works=yes
   11063 else
   11064   ac_cv_func_vfork_works=no
   11065 fi
   11066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11067   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11068 fi
   11069 
   11070 fi
   11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   11072 $as_echo "$ac_cv_func_vfork_works" >&6; }
   11073 
   11074 fi;
   11075 if test "x$ac_cv_func_fork_works" = xcross; then
   11076   ac_cv_func_vfork_works=$ac_cv_func_vfork
   11077   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   11078 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   11079 fi
   11080 
   11081 if test "x$ac_cv_func_vfork_works" = xyes; then
   11082 
   11083 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   11084 
   11085 else
   11086 
   11087 $as_echo "#define vfork fork" >>confdefs.h
   11088 
   11089 fi
   11090 if test "x$ac_cv_func_fork_works" = xyes; then
   11091 
   11092 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
   11093 
   11094 fi
   11095 
   11096 
   11097 
   11098       if test "X$prefix" = "XNONE"; then
   11099     acl_final_prefix="$ac_default_prefix"
   11100   else
   11101     acl_final_prefix="$prefix"
   11102   fi
   11103   if test "X$exec_prefix" = "XNONE"; then
   11104     acl_final_exec_prefix='${prefix}'
   11105   else
   11106     acl_final_exec_prefix="$exec_prefix"
   11107   fi
   11108   acl_save_prefix="$prefix"
   11109   prefix="$acl_final_prefix"
   11110   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
   11111   prefix="$acl_save_prefix"
   11112 
   11113 
   11114 # Check whether --with-gnu-ld was given.
   11115 if test "${with_gnu_ld+set}" = set; then :
   11116   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   11117 else
   11118   with_gnu_ld=no
   11119 fi
   11120 
   11121 # Prepare PATH_SEPARATOR.
   11122 # The user is always right.
   11123 if test "${PATH_SEPARATOR+set}" != set; then
   11124   echo "#! /bin/sh" >conf$$.sh
   11125   echo  "exit 0"   >>conf$$.sh
   11126   chmod +x conf$$.sh
   11127   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   11128     PATH_SEPARATOR=';'
   11129   else
   11130     PATH_SEPARATOR=:
   11131   fi
   11132   rm -f conf$$.sh
   11133 fi
   11134 ac_prog=ld
   11135 if test "$GCC" = yes; then
   11136   # Check if gcc -print-prog-name=ld gives a path.
   11137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
   11138 $as_echo_n "checking for ld used by GCC... " >&6; }
   11139   case $host in
   11140   *-*-mingw*)
   11141     # gcc leaves a trailing carriage return which upsets mingw
   11142     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   11143   *)
   11144     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   11145   esac
   11146   case $ac_prog in
   11147     # Accept absolute paths.
   11148     [\\/]* | [A-Za-z]:[\\/]*)
   11149       re_direlt='/[^/][^/]*/\.\./'
   11150       # Canonicalize the path of ld
   11151       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
   11152       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   11153 	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
   11154       done
   11155       test -z "$LD" && LD="$ac_prog"
   11156       ;;
   11157   "")
   11158     # If it fails, then pretend we aren't using GCC.
   11159     ac_prog=ld
   11160     ;;
   11161   *)
   11162     # If it is relative, then search for the first ld in PATH.
   11163     with_gnu_ld=unknown
   11164     ;;
   11165   esac
   11166 elif test "$with_gnu_ld" = yes; then
   11167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   11168 $as_echo_n "checking for GNU ld... " >&6; }
   11169 else
   11170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   11171 $as_echo_n "checking for non-GNU ld... " >&6; }
   11172 fi
   11173 if ${acl_cv_path_LD+:} false; then :
   11174   $as_echo_n "(cached) " >&6
   11175 else
   11176   if test -z "$LD"; then
   11177   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
   11178   for ac_dir in $PATH; do
   11179     test -z "$ac_dir" && ac_dir=.
   11180     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   11181       acl_cv_path_LD="$ac_dir/$ac_prog"
   11182       # Check to see if the program is GNU ld.  I'd rather use --version,
   11183       # but apparently some GNU ld's only accept -v.
   11184       # Break only if it was the GNU/non-GNU ld that we prefer.
   11185       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
   11186 	test "$with_gnu_ld" != no && break
   11187       else
   11188 	test "$with_gnu_ld" != yes && break
   11189       fi
   11190     fi
   11191   done
   11192   IFS="$ac_save_ifs"
   11193 else
   11194   acl_cv_path_LD="$LD" # Let the user override the test with a path.
   11195 fi
   11196 fi
   11197 
   11198 LD="$acl_cv_path_LD"
   11199 if test -n "$LD"; then
   11200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   11201 $as_echo "$LD" >&6; }
   11202 else
   11203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11204 $as_echo "no" >&6; }
   11205 fi
   11206 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   11208 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   11209 if ${acl_cv_prog_gnu_ld+:} false; then :
   11210   $as_echo_n "(cached) " >&6
   11211 else
   11212   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   11213 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
   11214   acl_cv_prog_gnu_ld=yes
   11215 else
   11216   acl_cv_prog_gnu_ld=no
   11217 fi
   11218 fi
   11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
   11220 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
   11221 with_gnu_ld=$acl_cv_prog_gnu_ld
   11222 
   11223 
   11224 
   11225                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
   11226 $as_echo_n "checking for shared library run path origin... " >&6; }
   11227 if ${acl_cv_rpath+:} false; then :
   11228   $as_echo_n "(cached) " >&6
   11229 else
   11230 
   11231     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
   11232     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
   11233     . ./conftest.sh
   11234     rm -f ./conftest.sh
   11235     acl_cv_rpath=done
   11236 
   11237 fi
   11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
   11239 $as_echo "$acl_cv_rpath" >&6; }
   11240   wl="$acl_cv_wl"
   11241   libext="$acl_cv_libext"
   11242   shlibext="$acl_cv_shlibext"
   11243   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
   11244   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
   11245   hardcode_direct="$acl_cv_hardcode_direct"
   11246   hardcode_minus_L="$acl_cv_hardcode_minus_L"
   11247     # Check whether --enable-rpath was given.
   11248 if test "${enable_rpath+set}" = set; then :
   11249   enableval=$enable_rpath; :
   11250 else
   11251   enable_rpath=yes
   11252 fi
   11253 
   11254 
   11255 
   11256 
   11257 
   11258 
   11259 
   11260 
   11261     use_additional=yes
   11262 
   11263   acl_save_prefix="$prefix"
   11264   prefix="$acl_final_prefix"
   11265   acl_save_exec_prefix="$exec_prefix"
   11266   exec_prefix="$acl_final_exec_prefix"
   11267 
   11268     eval additional_includedir=\"$includedir\"
   11269     eval additional_libdir=\"$libdir\"
   11270 
   11271   exec_prefix="$acl_save_exec_prefix"
   11272   prefix="$acl_save_prefix"
   11273 
   11274 
   11275 # Check whether --with-libiconv-prefix was given.
   11276 if test "${with_libiconv_prefix+set}" = set; then :
   11277   withval=$with_libiconv_prefix;
   11278     if test "X$withval" = "Xno"; then
   11279       use_additional=no
   11280     else
   11281       if test "X$withval" = "X"; then
   11282 
   11283   acl_save_prefix="$prefix"
   11284   prefix="$acl_final_prefix"
   11285   acl_save_exec_prefix="$exec_prefix"
   11286   exec_prefix="$acl_final_exec_prefix"
   11287 
   11288           eval additional_includedir=\"$includedir\"
   11289           eval additional_libdir=\"$libdir\"
   11290 
   11291   exec_prefix="$acl_save_exec_prefix"
   11292   prefix="$acl_save_prefix"
   11293 
   11294       else
   11295         additional_includedir="$withval/include"
   11296         additional_libdir="$withval/lib"
   11297       fi
   11298     fi
   11299 
   11300 fi
   11301 
   11302 
   11303 # Check whether --with-libiconv-type was given.
   11304 if test "${with_libiconv_type+set}" = set; then :
   11305   withval=$with_libiconv_type;  with_libiconv_type=$withval
   11306 else
   11307    with_libiconv_type=auto
   11308 fi
   11309 
   11310   lib_type=`eval echo \$with_libiconv_type`
   11311 
   11312       LIBICONV=
   11313   LTLIBICONV=
   11314   INCICONV=
   11315   rpathdirs=
   11316   ltrpathdirs=
   11317   names_already_handled=
   11318   names_next_round='iconv '
   11319   while test -n "$names_next_round"; do
   11320     names_this_round="$names_next_round"
   11321     names_next_round=
   11322     for name in $names_this_round; do
   11323       already_handled=
   11324       for n in $names_already_handled; do
   11325         if test "$n" = "$name"; then
   11326           already_handled=yes
   11327           break
   11328         fi
   11329       done
   11330       if test -z "$already_handled"; then
   11331         names_already_handled="$names_already_handled $name"
   11332                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   11333         eval value=\"\$HAVE_LIB$uppername\"
   11334         if test -n "$value"; then
   11335           if test "$value" = yes; then
   11336             eval value=\"\$LIB$uppername\"
   11337             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
   11338             eval value=\"\$LTLIB$uppername\"
   11339             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
   11340           else
   11341                                     :
   11342           fi
   11343         else
   11344                               found_dir=
   11345           found_la=
   11346           found_so=
   11347           found_a=
   11348           if test $use_additional = yes; then
   11349             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   11350               found_dir="$additional_libdir"
   11351               found_so="$additional_libdir/lib$name.$shlibext"
   11352               if test -f "$additional_libdir/lib$name.la"; then
   11353                 found_la="$additional_libdir/lib$name.la"
   11354               fi
   11355             elif test x$lib_type != xshared; then
   11356               if test -f "$additional_libdir/lib$name.$libext"; then
   11357                 found_dir="$additional_libdir"
   11358                 found_a="$additional_libdir/lib$name.$libext"
   11359                 if test -f "$additional_libdir/lib$name.la"; then
   11360                   found_la="$additional_libdir/lib$name.la"
   11361                 fi
   11362               fi
   11363             fi
   11364           fi
   11365           if test "X$found_dir" = "X"; then
   11366             for x in $LDFLAGS $LTLIBICONV; do
   11367 
   11368   acl_save_prefix="$prefix"
   11369   prefix="$acl_final_prefix"
   11370   acl_save_exec_prefix="$exec_prefix"
   11371   exec_prefix="$acl_final_exec_prefix"
   11372   eval x=\"$x\"
   11373   exec_prefix="$acl_save_exec_prefix"
   11374   prefix="$acl_save_prefix"
   11375 
   11376               case "$x" in
   11377                 -L*)
   11378                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   11379                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   11380                     found_dir="$dir"
   11381                     found_so="$dir/lib$name.$shlibext"
   11382                     if test -f "$dir/lib$name.la"; then
   11383                       found_la="$dir/lib$name.la"
   11384                     fi
   11385                   elif test x$lib_type != xshared; then
   11386                     if test -f "$dir/lib$name.$libext"; then
   11387                       found_dir="$dir"
   11388                       found_a="$dir/lib$name.$libext"
   11389                       if test -f "$dir/lib$name.la"; then
   11390                         found_la="$dir/lib$name.la"
   11391                       fi
   11392                     fi
   11393                   fi
   11394                   ;;
   11395               esac
   11396               if test "X$found_dir" != "X"; then
   11397                 break
   11398               fi
   11399             done
   11400           fi
   11401           if test "X$found_dir" != "X"; then
   11402                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
   11403             if test "X$found_so" != "X"; then
   11404                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   11405                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   11406               else
   11407                                                                                 haveit=
   11408                 for x in $ltrpathdirs; do
   11409                   if test "X$x" = "X$found_dir"; then
   11410                     haveit=yes
   11411                     break
   11412                   fi
   11413                 done
   11414                 if test -z "$haveit"; then
   11415                   ltrpathdirs="$ltrpathdirs $found_dir"
   11416                 fi
   11417                                 if test "$hardcode_direct" = yes; then
   11418                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   11419                 else
   11420                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   11421                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   11422                                                             haveit=
   11423                     for x in $rpathdirs; do
   11424                       if test "X$x" = "X$found_dir"; then
   11425                         haveit=yes
   11426                         break
   11427                       fi
   11428                     done
   11429                     if test -z "$haveit"; then
   11430                       rpathdirs="$rpathdirs $found_dir"
   11431                     fi
   11432                   else
   11433                                                                                 haveit=
   11434                     for x in $LDFLAGS $LIBICONV; do
   11435 
   11436   acl_save_prefix="$prefix"
   11437   prefix="$acl_final_prefix"
   11438   acl_save_exec_prefix="$exec_prefix"
   11439   exec_prefix="$acl_final_exec_prefix"
   11440   eval x=\"$x\"
   11441   exec_prefix="$acl_save_exec_prefix"
   11442   prefix="$acl_save_prefix"
   11443 
   11444                       if test "X$x" = "X-L$found_dir"; then
   11445                         haveit=yes
   11446                         break
   11447                       fi
   11448                     done
   11449                     if test -z "$haveit"; then
   11450                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
   11451                     fi
   11452                     if test "$hardcode_minus_L" != no; then
   11453                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   11454                     else
   11455                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   11456                     fi
   11457                   fi
   11458                 fi
   11459               fi
   11460             else
   11461               if test "X$found_a" != "X"; then
   11462                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
   11463               else
   11464                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
   11465               fi
   11466             fi
   11467                         additional_includedir=
   11468             case "$found_dir" in
   11469               */lib | */lib/)
   11470                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   11471                 additional_includedir="$basedir/include"
   11472                 ;;
   11473             esac
   11474             if test "X$additional_includedir" != "X"; then
   11475                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   11476                 haveit=
   11477                 if test "X$additional_includedir" = "X/usr/local/include"; then
   11478                   if test -n "$GCC"; then
   11479                     case $host_os in
   11480                       linux*) haveit=yes;;
   11481                     esac
   11482                   fi
   11483                 fi
   11484                 if test -z "$haveit"; then
   11485                   for x in $CPPFLAGS $INCICONV; do
   11486 
   11487   acl_save_prefix="$prefix"
   11488   prefix="$acl_final_prefix"
   11489   acl_save_exec_prefix="$exec_prefix"
   11490   exec_prefix="$acl_final_exec_prefix"
   11491   eval x=\"$x\"
   11492   exec_prefix="$acl_save_exec_prefix"
   11493   prefix="$acl_save_prefix"
   11494 
   11495                     if test "X$x" = "X-I$additional_includedir"; then
   11496                       haveit=yes
   11497                       break
   11498                     fi
   11499                   done
   11500                   if test -z "$haveit"; then
   11501                     if test -d "$additional_includedir"; then
   11502                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
   11503                     fi
   11504                   fi
   11505                 fi
   11506               fi
   11507             fi
   11508                         if test -n "$found_la"; then
   11509                                                         save_libdir="$libdir"
   11510               case "$found_la" in
   11511                 */* | *\\*) . "$found_la" ;;
   11512                 *) . "./$found_la" ;;
   11513               esac
   11514               libdir="$save_libdir"
   11515                             for dep in $dependency_libs; do
   11516                 case "$dep" in
   11517                   -L*)
   11518                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   11519                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   11520                       haveit=
   11521                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   11522                         if test -n "$GCC"; then
   11523                           case $host_os in
   11524                             linux*) haveit=yes;;
   11525                           esac
   11526                         fi
   11527                       fi
   11528                       if test -z "$haveit"; then
   11529                         haveit=
   11530                         for x in $LDFLAGS $LIBICONV; do
   11531 
   11532   acl_save_prefix="$prefix"
   11533   prefix="$acl_final_prefix"
   11534   acl_save_exec_prefix="$exec_prefix"
   11535   exec_prefix="$acl_final_exec_prefix"
   11536   eval x=\"$x\"
   11537   exec_prefix="$acl_save_exec_prefix"
   11538   prefix="$acl_save_prefix"
   11539 
   11540                           if test "X$x" = "X-L$additional_libdir"; then
   11541                             haveit=yes
   11542                             break
   11543                           fi
   11544                         done
   11545                         if test -z "$haveit"; then
   11546                           if test -d "$additional_libdir"; then
   11547                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
   11548                           fi
   11549                         fi
   11550                         haveit=
   11551                         for x in $LDFLAGS $LTLIBICONV; do
   11552 
   11553   acl_save_prefix="$prefix"
   11554   prefix="$acl_final_prefix"
   11555   acl_save_exec_prefix="$exec_prefix"
   11556   exec_prefix="$acl_final_exec_prefix"
   11557   eval x=\"$x\"
   11558   exec_prefix="$acl_save_exec_prefix"
   11559   prefix="$acl_save_prefix"
   11560 
   11561                           if test "X$x" = "X-L$additional_libdir"; then
   11562                             haveit=yes
   11563                             break
   11564                           fi
   11565                         done
   11566                         if test -z "$haveit"; then
   11567                           if test -d "$additional_libdir"; then
   11568                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
   11569                           fi
   11570                         fi
   11571                       fi
   11572                     fi
   11573                     ;;
   11574                   -R*)
   11575                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   11576                     if test "$enable_rpath" != no; then
   11577                                                                   haveit=
   11578                       for x in $rpathdirs; do
   11579                         if test "X$x" = "X$dir"; then
   11580                           haveit=yes
   11581                           break
   11582                         fi
   11583                       done
   11584                       if test -z "$haveit"; then
   11585                         rpathdirs="$rpathdirs $dir"
   11586                       fi
   11587                                                                   haveit=
   11588                       for x in $ltrpathdirs; do
   11589                         if test "X$x" = "X$dir"; then
   11590                           haveit=yes
   11591                           break
   11592                         fi
   11593                       done
   11594                       if test -z "$haveit"; then
   11595                         ltrpathdirs="$ltrpathdirs $dir"
   11596                       fi
   11597                     fi
   11598                     ;;
   11599                   -l*)
   11600                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   11601                     ;;
   11602                   *.la)
   11603                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   11604                     ;;
   11605                   *)
   11606                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
   11607                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
   11608                     ;;
   11609                 esac
   11610               done
   11611             fi
   11612           else
   11613                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
   11614               LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   11615               LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
   11616             else
   11617               LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
   11618               LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
   11619             fi
   11620           fi
   11621         fi
   11622       fi
   11623     done
   11624   done
   11625   if test "X$rpathdirs" != "X"; then
   11626     if test -n "$hardcode_libdir_separator"; then
   11627                         alldirs=
   11628       for found_dir in $rpathdirs; do
   11629         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   11630       done
   11631             acl_save_libdir="$libdir"
   11632       libdir="$alldirs"
   11633       eval flag=\"$hardcode_libdir_flag_spec\"
   11634       libdir="$acl_save_libdir"
   11635       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   11636     else
   11637             for found_dir in $rpathdirs; do
   11638         acl_save_libdir="$libdir"
   11639         libdir="$found_dir"
   11640         eval flag=\"$hardcode_libdir_flag_spec\"
   11641         libdir="$acl_save_libdir"
   11642         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   11643       done
   11644     fi
   11645   fi
   11646   if test "X$ltrpathdirs" != "X"; then
   11647             for found_dir in $ltrpathdirs; do
   11648       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
   11649     done
   11650   fi
   11651 
   11652 
   11653 
   11654 
   11655 
   11656 
   11657 
   11658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
   11659 $as_echo_n "checking for iconv... " >&6; }
   11660 if ${am_cv_func_iconv+:} false; then :
   11661   $as_echo_n "(cached) " >&6
   11662 else
   11663 
   11664     am_cv_func_iconv="no, consider installing GNU libiconv"
   11665     am_cv_lib_iconv=no
   11666                     am_save_CPPFLAGS="$CPPFLAGS"
   11667     CPPFLAGS="$CPPFLAGS $INCICONV"
   11668     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11669 /* end confdefs.h.  */
   11670 #include <stdlib.h>
   11671 #include <iconv.h>
   11672 int
   11673 main ()
   11674 {
   11675 iconv_t cd = iconv_open("","");
   11676        iconv(cd,NULL,NULL,NULL,NULL);
   11677        iconv_close(cd);
   11678   ;
   11679   return 0;
   11680 }
   11681 _ACEOF
   11682 if ac_fn_cxx_try_link "$LINENO"; then :
   11683   am_cv_func_iconv=yes
   11684 fi
   11685 rm -f core conftest.err conftest.$ac_objext \
   11686     conftest$ac_exeext conftest.$ac_ext
   11687     CPPFLAGS="$am_save_CPPFLAGS"
   11688 
   11689     if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
   11690       for _libs in .libs _libs; do
   11691         am_save_CPPFLAGS="$CPPFLAGS"
   11692         am_save_LIBS="$LIBS"
   11693         CPPFLAGS="$CPPFLAGS -I../libiconv/include"
   11694         LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
   11695         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11696 /* end confdefs.h.  */
   11697 #include <stdlib.h>
   11698 #include <iconv.h>
   11699 int
   11700 main ()
   11701 {
   11702 iconv_t cd = iconv_open("","");
   11703            iconv(cd,NULL,NULL,NULL,NULL);
   11704            iconv_close(cd);
   11705   ;
   11706   return 0;
   11707 }
   11708 _ACEOF
   11709 if ac_fn_cxx_try_link "$LINENO"; then :
   11710   INCICONV="-I../libiconv/include"
   11711           LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
   11712           LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
   11713           am_cv_lib_iconv=yes
   11714           am_cv_func_iconv=yes
   11715 fi
   11716 rm -f core conftest.err conftest.$ac_objext \
   11717     conftest$ac_exeext conftest.$ac_ext
   11718         CPPFLAGS="$am_save_CPPFLAGS"
   11719         LIBS="$am_save_LIBS"
   11720         if test "$am_cv_func_iconv" = "yes"; then
   11721           break
   11722         fi
   11723       done
   11724     fi
   11725 
   11726     if test "$am_cv_func_iconv" != yes; then
   11727       am_save_CPPFLAGS="$CPPFLAGS"
   11728       am_save_LIBS="$LIBS"
   11729       CPPFLAGS="$CPPFLAGS $INCICONV"
   11730       LIBS="$LIBS $LIBICONV"
   11731       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11732 /* end confdefs.h.  */
   11733 #include <stdlib.h>
   11734 #include <iconv.h>
   11735 int
   11736 main ()
   11737 {
   11738 iconv_t cd = iconv_open("","");
   11739          iconv(cd,NULL,NULL,NULL,NULL);
   11740          iconv_close(cd);
   11741   ;
   11742   return 0;
   11743 }
   11744 _ACEOF
   11745 if ac_fn_cxx_try_link "$LINENO"; then :
   11746   am_cv_lib_iconv=yes
   11747         am_cv_func_iconv=yes
   11748 fi
   11749 rm -f core conftest.err conftest.$ac_objext \
   11750     conftest$ac_exeext conftest.$ac_ext
   11751       CPPFLAGS="$am_save_CPPFLAGS"
   11752       LIBS="$am_save_LIBS"
   11753     fi
   11754 
   11755 fi
   11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
   11757 $as_echo "$am_cv_func_iconv" >&6; }
   11758   if test "$am_cv_func_iconv" = yes; then
   11759 
   11760 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
   11761 
   11762   fi
   11763   if test "$am_cv_lib_iconv" = yes; then
   11764 
   11765   for element in $INCICONV; do
   11766     haveit=
   11767     for x in $CPPFLAGS; do
   11768 
   11769   acl_save_prefix="$prefix"
   11770   prefix="$acl_final_prefix"
   11771   acl_save_exec_prefix="$exec_prefix"
   11772   exec_prefix="$acl_final_exec_prefix"
   11773   eval x=\"$x\"
   11774   exec_prefix="$acl_save_exec_prefix"
   11775   prefix="$acl_save_prefix"
   11776 
   11777       if test "X$x" = "X$element"; then
   11778         haveit=yes
   11779         break
   11780       fi
   11781     done
   11782     if test -z "$haveit"; then
   11783       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   11784     fi
   11785   done
   11786 
   11787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
   11788 $as_echo_n "checking how to link with libiconv... " >&6; }
   11789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
   11790 $as_echo "$LIBICONV" >&6; }
   11791   else
   11792     LIBICONV=
   11793     LTLIBICONV=
   11794   fi
   11795 
   11796 
   11797 
   11798   if test "$am_cv_func_iconv" = yes; then
   11799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
   11800 $as_echo_n "checking for iconv declaration... " >&6; }
   11801     if ${am_cv_proto_iconv+:} false; then :
   11802   $as_echo_n "(cached) " >&6
   11803 else
   11804 
   11805       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11806 /* end confdefs.h.  */
   11807 
   11808 #include <stdlib.h>
   11809 #include <iconv.h>
   11810 extern
   11811 #ifdef __cplusplus
   11812 "C"
   11813 #endif
   11814 #if defined(__STDC__) || defined(__cplusplus)
   11815 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
   11816 #else
   11817 size_t iconv();
   11818 #endif
   11819 
   11820 int
   11821 main ()
   11822 {
   11823 
   11824   ;
   11825   return 0;
   11826 }
   11827 _ACEOF
   11828 if ac_fn_cxx_try_compile "$LINENO"; then :
   11829   am_cv_proto_iconv_arg1=""
   11830 else
   11831   am_cv_proto_iconv_arg1="const"
   11832 fi
   11833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11834       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);"
   11835 fi
   11836 
   11837     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
   11838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
   11839          }$am_cv_proto_iconv" >&5
   11840 $as_echo "${ac_t:-
   11841          }$am_cv_proto_iconv" >&6; }
   11842 
   11843 cat >>confdefs.h <<_ACEOF
   11844 #define ICONV_CONST $am_cv_proto_iconv_arg1
   11845 _ACEOF
   11846 
   11847   fi
   11848 
   11849 
   11850 # Until we have in-tree GNU iconv:
   11851 LIBICONV_DEP=
   11852 if test -f "$LTLIBICONV"; then
   11853   LIBICONV_DEP=$LTLIBICONV
   11854 fi
   11855 
   11856 
   11857 
   11858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
   11859 $as_echo_n "checking for LC_MESSAGES... " >&6; }
   11860 if ${am_cv_val_LC_MESSAGES+:} false; then :
   11861   $as_echo_n "(cached) " >&6
   11862 else
   11863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11864 /* end confdefs.h.  */
   11865 #include <locale.h>
   11866 int
   11867 main ()
   11868 {
   11869 return LC_MESSAGES
   11870   ;
   11871   return 0;
   11872 }
   11873 _ACEOF
   11874 if ac_fn_cxx_try_link "$LINENO"; then :
   11875   am_cv_val_LC_MESSAGES=yes
   11876 else
   11877   am_cv_val_LC_MESSAGES=no
   11878 fi
   11879 rm -f core conftest.err conftest.$ac_objext \
   11880     conftest$ac_exeext conftest.$ac_ext
   11881 fi
   11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
   11883 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
   11884   if test $am_cv_val_LC_MESSAGES = yes; then
   11885 
   11886 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
   11887 
   11888   fi
   11889 
   11890 
   11891 
   11892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   11893 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   11894 if ${am_cv_langinfo_codeset+:} false; then :
   11895   $as_echo_n "(cached) " >&6
   11896 else
   11897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11898 /* end confdefs.h.  */
   11899 #include <langinfo.h>
   11900 int
   11901 main ()
   11902 {
   11903 char* cs = nl_langinfo(CODESET);
   11904   ;
   11905   return 0;
   11906 }
   11907 _ACEOF
   11908 if ac_fn_cxx_try_link "$LINENO"; then :
   11909   am_cv_langinfo_codeset=yes
   11910 else
   11911   am_cv_langinfo_codeset=no
   11912 fi
   11913 rm -f core conftest.err conftest.$ac_objext \
   11914     conftest$ac_exeext conftest.$ac_ext
   11915 
   11916 fi
   11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   11918 $as_echo "$am_cv_langinfo_codeset" >&6; }
   11919   if test $am_cv_langinfo_codeset = yes; then
   11920 
   11921 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   11922 
   11923   fi
   11924 
   11925 
   11926 # We will need to find libiberty.h and ansidecl.h
   11927 saved_CFLAGS="$CFLAGS"
   11928 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
   11929 saved_CXXFLAGS="$CXXFLAGS"
   11930 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
   11931 
   11932 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
   11933 # normal autoconf function for these.  But force definition of
   11934 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
   11935 # basename handling in libiberty.h.
   11936 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
   11937 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
   11938 #undef HAVE_DECL_BASENAME
   11939 #define HAVE_DECL_BASENAME 1
   11940 #include \"ansidecl.h\"
   11941 #include \"system.h\"
   11942 "
   11943 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
   11944   ac_have_decl=1
   11945 else
   11946   ac_have_decl=0
   11947 fi
   11948 
   11949 cat >>confdefs.h <<_ACEOF
   11950 #define HAVE_DECL_BASENAME $ac_have_decl
   11951 _ACEOF
   11952 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
   11953 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
   11954 #undef HAVE_DECL_BASENAME
   11955 #define HAVE_DECL_BASENAME 1
   11956 #include \"ansidecl.h\"
   11957 #include \"system.h\"
   11958 "
   11959 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
   11960   ac_have_decl=1
   11961 else
   11962   ac_have_decl=0
   11963 fi
   11964 
   11965 cat >>confdefs.h <<_ACEOF
   11966 #define HAVE_DECL_STRSTR $ac_have_decl
   11967 _ACEOF
   11968 
   11969 
   11970 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
   11971 	madvise stpcpy strnlen strsignal strverscmp \
   11972 	strtol strtoul strtoll strtoull setenv unsetenv \
   11973 	errno snprintf vsnprintf vasprintf malloc realloc calloc \
   11974 	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
   11975 do
   11976   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
   11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
   11978 $as_echo_n "checking whether $ac_func is declared... " >&6; }
   11979 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
   11980   $as_echo_n "(cached) " >&6
   11981 else
   11982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11983 /* end confdefs.h.  */
   11984 #undef $ac_tr_decl
   11985 #define $ac_tr_decl 1
   11986 
   11987 #include "ansidecl.h"
   11988 #include "system.h"
   11989 
   11990 int
   11991 main ()
   11992 {
   11993 #ifndef $ac_func
   11994 char *(*pfn) = (char *(*)) $ac_func ;
   11995 #endif
   11996   ;
   11997   return 0;
   11998 }
   11999 _ACEOF
   12000 if ac_fn_cxx_try_compile "$LINENO"; then :
   12001   eval "gcc_cv_have_decl_$ac_func=yes"
   12002 else
   12003   eval "gcc_cv_have_decl_$ac_func=no"
   12004 fi
   12005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12006 fi
   12007 
   12008 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
   12009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12010 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
   12011 #define $ac_tr_decl 1
   12012 _ACEOF
   12013 
   12014 else
   12015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12016 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
   12017 #define $ac_tr_decl 0
   12018 _ACEOF
   12019 
   12020 fi
   12021 
   12022 done
   12023 
   12024 
   12025 for ac_func in getrlimit setrlimit getrusage
   12026 do
   12027   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
   12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
   12029 $as_echo_n "checking whether $ac_func is declared... " >&6; }
   12030 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
   12031   $as_echo_n "(cached) " >&6
   12032 else
   12033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12034 /* end confdefs.h.  */
   12035 #undef $ac_tr_decl
   12036 #define $ac_tr_decl 1
   12037 
   12038 #include "ansidecl.h"
   12039 #include "system.h"
   12040 #ifdef HAVE_SYS_RESOURCE_H
   12041 #include <sys/resource.h>
   12042 #endif
   12043 
   12044 
   12045 int
   12046 main ()
   12047 {
   12048 #ifndef $ac_func
   12049 char *(*pfn) = (char *(*)) $ac_func ;
   12050 #endif
   12051   ;
   12052   return 0;
   12053 }
   12054 _ACEOF
   12055 if ac_fn_cxx_try_compile "$LINENO"; then :
   12056   eval "gcc_cv_have_decl_$ac_func=yes"
   12057 else
   12058   eval "gcc_cv_have_decl_$ac_func=no"
   12059 fi
   12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12061 fi
   12062 
   12063 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
   12064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12065 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
   12066 #define $ac_tr_decl 1
   12067 _ACEOF
   12068 
   12069 else
   12070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12071 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
   12072 #define $ac_tr_decl 0
   12073 _ACEOF
   12074 
   12075 fi
   12076 
   12077 done
   12078 
   12079 
   12080 for ac_func in mallinfo mallinfo2
   12081 do
   12082   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
   12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
   12084 $as_echo_n "checking whether $ac_func is declared... " >&6; }
   12085 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
   12086   $as_echo_n "(cached) " >&6
   12087 else
   12088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12089 /* end confdefs.h.  */
   12090 #undef $ac_tr_decl
   12091 #define $ac_tr_decl 1
   12092 
   12093 #include "ansidecl.h"
   12094 #include "system.h"
   12095 #ifdef HAVE_MALLOC_H
   12096 #include <malloc.h>
   12097 #endif
   12098 
   12099 
   12100 int
   12101 main ()
   12102 {
   12103 #ifndef $ac_func
   12104 char *(*pfn) = (char *(*)) $ac_func ;
   12105 #endif
   12106   ;
   12107   return 0;
   12108 }
   12109 _ACEOF
   12110 if ac_fn_cxx_try_compile "$LINENO"; then :
   12111   eval "gcc_cv_have_decl_$ac_func=yes"
   12112 else
   12113   eval "gcc_cv_have_decl_$ac_func=no"
   12114 fi
   12115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12116 fi
   12117 
   12118 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
   12119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12120 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
   12121 #define $ac_tr_decl 1
   12122 _ACEOF
   12123 
   12124 else
   12125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12126 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
   12127 #define $ac_tr_decl 0
   12128 _ACEOF
   12129 
   12130 fi
   12131 
   12132 done
   12133 
   12134 
   12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12136 /* end confdefs.h.  */
   12137 
   12138 #include "ansidecl.h"
   12139 #include "system.h"
   12140 #ifdef HAVE_SYS_RESOURCE_H
   12141 #include <sys/resource.h>
   12142 #endif
   12143 
   12144 int
   12145 main ()
   12146 {
   12147 rlim_t l = 0;
   12148   ;
   12149   return 0;
   12150 }
   12151 _ACEOF
   12152 if ac_fn_cxx_try_compile "$LINENO"; then :
   12153 
   12154 else
   12155 
   12156 $as_echo "#define rlim_t long" >>confdefs.h
   12157 
   12158 fi
   12159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12160 
   12161 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
   12162 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
   12163 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
   12164 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
   12165 for ac_func in ldgetname
   12166 do
   12167   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
   12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
   12169 $as_echo_n "checking whether $ac_func is declared... " >&6; }
   12170 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
   12171   $as_echo_n "(cached) " >&6
   12172 else
   12173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12174 /* end confdefs.h.  */
   12175 #undef $ac_tr_decl
   12176 #define $ac_tr_decl 1
   12177 
   12178 #include "ansidecl.h"
   12179 #include "system.h"
   12180 #ifdef HAVE_LDFCN_H
   12181 #undef FREAD
   12182 #undef FWRITE
   12183 #include <ldfcn.h>
   12184 #endif
   12185 
   12186 
   12187 int
   12188 main ()
   12189 {
   12190 #ifndef $ac_func
   12191 char *(*pfn) = (char *(*)) $ac_func ;
   12192 #endif
   12193   ;
   12194   return 0;
   12195 }
   12196 _ACEOF
   12197 if ac_fn_cxx_try_compile "$LINENO"; then :
   12198   eval "gcc_cv_have_decl_$ac_func=yes"
   12199 else
   12200   eval "gcc_cv_have_decl_$ac_func=no"
   12201 fi
   12202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12203 fi
   12204 
   12205 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
   12206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12207 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
   12208 #define $ac_tr_decl 1
   12209 _ACEOF
   12210 
   12211 else
   12212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12213 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
   12214 #define $ac_tr_decl 0
   12215 _ACEOF
   12216 
   12217 fi
   12218 
   12219 done
   12220 
   12221 
   12222 for ac_func in times
   12223 do
   12224   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
   12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
   12226 $as_echo_n "checking whether $ac_func is declared... " >&6; }
   12227 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
   12228   $as_echo_n "(cached) " >&6
   12229 else
   12230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12231 /* end confdefs.h.  */
   12232 #undef $ac_tr_decl
   12233 #define $ac_tr_decl 1
   12234 
   12235 #include "ansidecl.h"
   12236 #include "system.h"
   12237 #ifdef HAVE_SYS_TIMES_H
   12238 #include <sys/times.h>
   12239 #endif
   12240 
   12241 
   12242 int
   12243 main ()
   12244 {
   12245 #ifndef $ac_func
   12246 char *(*pfn) = (char *(*)) $ac_func ;
   12247 #endif
   12248   ;
   12249   return 0;
   12250 }
   12251 _ACEOF
   12252 if ac_fn_cxx_try_compile "$LINENO"; then :
   12253   eval "gcc_cv_have_decl_$ac_func=yes"
   12254 else
   12255   eval "gcc_cv_have_decl_$ac_func=no"
   12256 fi
   12257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12258 fi
   12259 
   12260 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
   12261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12262 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
   12263 #define $ac_tr_decl 1
   12264 _ACEOF
   12265 
   12266 else
   12267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12268 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
   12269 #define $ac_tr_decl 0
   12270 _ACEOF
   12271 
   12272 fi
   12273 
   12274 done
   12275 
   12276 
   12277 for ac_func in sigaltstack
   12278 do
   12279   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
   12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
   12281 $as_echo_n "checking whether $ac_func is declared... " >&6; }
   12282 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
   12283   $as_echo_n "(cached) " >&6
   12284 else
   12285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12286 /* end confdefs.h.  */
   12287 #undef $ac_tr_decl
   12288 #define $ac_tr_decl 1
   12289 
   12290 #include "ansidecl.h"
   12291 #include "system.h"
   12292 #include <signal.h>
   12293 
   12294 
   12295 int
   12296 main ()
   12297 {
   12298 #ifndef $ac_func
   12299 char *(*pfn) = (char *(*)) $ac_func ;
   12300 #endif
   12301   ;
   12302   return 0;
   12303 }
   12304 _ACEOF
   12305 if ac_fn_cxx_try_compile "$LINENO"; then :
   12306   eval "gcc_cv_have_decl_$ac_func=yes"
   12307 else
   12308   eval "gcc_cv_have_decl_$ac_func=no"
   12309 fi
   12310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12311 fi
   12312 
   12313 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
   12314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12315 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
   12316 #define $ac_tr_decl 1
   12317 _ACEOF
   12318 
   12319 else
   12320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12321 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
   12322 #define $ac_tr_decl 0
   12323 _ACEOF
   12324 
   12325 fi
   12326 
   12327 done
   12328 
   12329 
   12330 # More time-related stuff.
   12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
   12332 $as_echo_n "checking for struct tms... " >&6; }
   12333 if ${ac_cv_struct_tms+:} false; then :
   12334   $as_echo_n "(cached) " >&6
   12335 else
   12336 
   12337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12338 /* end confdefs.h.  */
   12339 
   12340 #include "ansidecl.h"
   12341 #include "system.h"
   12342 #ifdef HAVE_SYS_TIMES_H
   12343 #include <sys/times.h>
   12344 #endif
   12345 
   12346 int
   12347 main ()
   12348 {
   12349 struct tms tms;
   12350   ;
   12351   return 0;
   12352 }
   12353 _ACEOF
   12354 if ac_fn_cxx_try_compile "$LINENO"; then :
   12355   ac_cv_struct_tms=yes
   12356 else
   12357   ac_cv_struct_tms=no
   12358 fi
   12359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12360 fi
   12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
   12362 $as_echo "$ac_cv_struct_tms" >&6; }
   12363 if test $ac_cv_struct_tms = yes; then
   12364 
   12365 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
   12366 
   12367 fi
   12368 
   12369 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
   12370 # revisit after autoconf 2.50.
   12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
   12372 $as_echo_n "checking for clock_t... " >&6; }
   12373 if ${gcc_cv_type_clock_t+:} false; then :
   12374   $as_echo_n "(cached) " >&6
   12375 else
   12376 
   12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12378 /* end confdefs.h.  */
   12379 
   12380 #include "ansidecl.h"
   12381 #include "system.h"
   12382 
   12383 int
   12384 main ()
   12385 {
   12386 clock_t x;
   12387   ;
   12388   return 0;
   12389 }
   12390 _ACEOF
   12391 if ac_fn_cxx_try_compile "$LINENO"; then :
   12392   gcc_cv_type_clock_t=yes
   12393 else
   12394   gcc_cv_type_clock_t=no
   12395 fi
   12396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12397 fi
   12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
   12399 $as_echo "$gcc_cv_type_clock_t" >&6; }
   12400 if test $gcc_cv_type_clock_t = yes; then
   12401 
   12402 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
   12403 
   12404 fi
   12405 
   12406 # Check if F_SETLKW is supported by fcntl.
   12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
   12408 $as_echo_n "checking for F_SETLKW... " >&6; }
   12409 if ${ac_cv_f_setlkw+:} false; then :
   12410   $as_echo_n "(cached) " >&6
   12411 else
   12412 
   12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12414 /* end confdefs.h.  */
   12415 
   12416 #include <fcntl.h>
   12417 int
   12418 main ()
   12419 {
   12420 
   12421 struct flock fl;
   12422 fl.l_whence = 0;
   12423 fl.l_start = 0;
   12424 fl.l_len = 0;
   12425 fl.l_pid = 0;
   12426 return fcntl (1, F_SETLKW, &fl);
   12427   ;
   12428   return 0;
   12429 }
   12430 _ACEOF
   12431 if ac_fn_cxx_try_compile "$LINENO"; then :
   12432   ac_cv_f_setlkw=yes
   12433 else
   12434   ac_cv_f_setlkw=no
   12435 fi
   12436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12437 fi
   12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
   12439 $as_echo "$ac_cv_f_setlkw" >&6; }
   12440 if test $ac_cv_f_setlkw = yes; then
   12441 
   12442 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
   12443 
   12444 fi
   12445 
   12446 # Check if O_CLOEXEC is defined by fcntl
   12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
   12448 $as_echo_n "checking for O_CLOEXEC... " >&6; }
   12449 if ${ac_cv_o_cloexec+:} false; then :
   12450   $as_echo_n "(cached) " >&6
   12451 else
   12452 
   12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12454 /* end confdefs.h.  */
   12455 
   12456 #include <fcntl.h>
   12457 int
   12458 main ()
   12459 {
   12460 
   12461 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
   12462   ;
   12463   return 0;
   12464 }
   12465 _ACEOF
   12466 if ac_fn_cxx_try_compile "$LINENO"; then :
   12467   ac_cv_o_cloexec=yes
   12468 else
   12469   ac_cv_o_cloexec=no
   12470 fi
   12471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12472 fi
   12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
   12474 $as_echo "$ac_cv_o_cloexec" >&6; }
   12475 if test $ac_cv_o_cloexec = yes; then
   12476 
   12477 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
   12478 
   12479 fi
   12480 
   12481 # Check if personality and ADDR_NO_RANDOMIZE are declared
   12482 # in sys/personality.h
   12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for personality ADDR_NO_RANDOMIZE" >&5
   12484 $as_echo_n "checking for personality ADDR_NO_RANDOMIZE... " >&6; }
   12485 if ${ac_cv_personality_addr_no_randomize+:} false; then :
   12486   $as_echo_n "(cached) " >&6
   12487 else
   12488 
   12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12490 /* end confdefs.h.  */
   12491 
   12492 #include <sys/personality.h>
   12493 int
   12494 main ()
   12495 {
   12496 
   12497 personality (personality (0xffffffffU) | ADDR_NO_RANDOMIZE);
   12498   ;
   12499   return 0;
   12500 }
   12501 _ACEOF
   12502 if ac_fn_cxx_try_compile "$LINENO"; then :
   12503   ac_cv_personality_addr_no_randomize=yes
   12504 else
   12505   ac_cv_personality_addr_no_randomize=no
   12506 fi
   12507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12508 fi
   12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_personality_addr_no_randomize" >&5
   12510 $as_echo "$ac_cv_personality_addr_no_randomize" >&6; }
   12511 if test $ac_cv_personality_addr_no_randomize = yes; then
   12512 
   12513 $as_echo "#define HOST_HAS_PERSONALITY_ADDR_NO_RANDOMIZE 1" >>confdefs.h
   12514 
   12515 fi
   12516 
   12517 
   12518 # C++ Modules would like some networking features to provide the mapping
   12519 # server.  You can still use modules without them though.
   12520 # The following network-related checks could probably do with some
   12521 # Windows and other non-linux defenses and checking.
   12522 
   12523 # Local socket connectivity wants AF_UNIX networking
   12524 # Check for AF_UNIX networking
   12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
   12526 $as_echo_n "checking for AF_UNIX... " >&6; }
   12527 if ${ac_cv_af_unix+:} false; then :
   12528   $as_echo_n "(cached) " >&6
   12529 else
   12530 
   12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12532 /* end confdefs.h.  */
   12533 
   12534 #include <sys/types.h>
   12535 #include <sys/socket.h>
   12536 #include <sys/un.h>
   12537 #include <netinet/in.h>
   12538 int
   12539 main ()
   12540 {
   12541 
   12542 sockaddr_un un;
   12543 un.sun_family = AF_UNSPEC;
   12544 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
   12545 connect (fd, (sockaddr *)&un, sizeof (un));
   12546   ;
   12547   return 0;
   12548 }
   12549 _ACEOF
   12550 if ac_fn_cxx_try_compile "$LINENO"; then :
   12551   ac_cv_af_unix=yes
   12552 else
   12553   ac_cv_af_unix=no
   12554 fi
   12555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12556 fi
   12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
   12558 $as_echo "$ac_cv_af_unix" >&6; }
   12559 if test $ac_cv_af_unix = yes; then
   12560 
   12561 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
   12562 
   12563 fi
   12564 
   12565 # Remote socket connectivity wants AF_INET6 networking
   12566 # Check for AF_INET6 networking
   12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
   12568 $as_echo_n "checking for AF_INET6... " >&6; }
   12569 if ${ac_cv_af_inet6+:} false; then :
   12570   $as_echo_n "(cached) " >&6
   12571 else
   12572 
   12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12574 /* end confdefs.h.  */
   12575 
   12576 #include <sys/types.h>
   12577 #include <sys/socket.h>
   12578 #include <netinet/in.h>
   12579 #include <netdb.h>
   12580 int
   12581 main ()
   12582 {
   12583 
   12584 sockaddr_in6 in6;
   12585 in6.sin6_family = AF_UNSPEC;
   12586 struct addrinfo *addrs = 0;
   12587 struct addrinfo hints;
   12588 hints.ai_flags = 0;
   12589 hints.ai_family = AF_INET6;
   12590 hints.ai_socktype = SOCK_STREAM;
   12591 hints.ai_protocol = 0;
   12592 hints.ai_canonname = 0;
   12593 hints.ai_addr = 0;
   12594 hints.ai_next = 0;
   12595 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
   12596 const char *str = gai_strerror (e);
   12597 freeaddrinfo (addrs);
   12598 int fd = socket (AF_INET6, SOCK_STREAM, 0);
   12599 connect (fd, (sockaddr *)&in6, sizeof (in6));
   12600   ;
   12601   return 0;
   12602 }
   12603 _ACEOF
   12604 if ac_fn_cxx_try_compile "$LINENO"; then :
   12605   ac_cv_af_inet6=yes
   12606 else
   12607   ac_cv_af_inet6=no
   12608 fi
   12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12610 fi
   12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
   12612 $as_echo "$ac_cv_af_inet6" >&6; }
   12613 if test $ac_cv_af_inet6 = yes; then
   12614 
   12615 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
   12616 
   12617 fi
   12618 
   12619 # Check if _LK_LOCK is supported by _locking
   12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
   12621 $as_echo_n "checking for _LK_LOCK... " >&6; }
   12622 if ${ac_cv_lk_lock+:} false; then :
   12623   $as_echo_n "(cached) " >&6
   12624 else
   12625 
   12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12627 /* end confdefs.h.  */
   12628 
   12629 #include <io.h>
   12630 #include <sys/locking.h>
   12631 int
   12632 main ()
   12633 {
   12634 
   12635   int fd;
   12636   return _locking (fd, _LK_LOCK, 0);
   12637   ;
   12638   return 0;
   12639 }
   12640 _ACEOF
   12641 if ac_fn_cxx_try_compile "$LINENO"; then :
   12642   ac_cv_lk_lock=yes
   12643 else
   12644   ac_cv_lk_lock=no
   12645 fi
   12646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12647 fi
   12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
   12649 $as_echo "$ac_cv_lk_lock" >&6; }
   12650 if test $ac_cv_lk_lock = yes; then
   12651 
   12652 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
   12653 
   12654 fi
   12655 
   12656 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
   12657 CFLAGS="$saved_CFLAGS"
   12658 CXXFLAGS="$saved_CXXFLAGS"
   12659 
   12660 # mkdir takes a single argument on some systems.
   12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
   12662 $as_echo_n "checking if mkdir takes one argument... " >&6; }
   12663 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
   12664   $as_echo_n "(cached) " >&6
   12665 else
   12666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12667 /* end confdefs.h.  */
   12668 
   12669 #include <sys/types.h>
   12670 #ifdef HAVE_SYS_STAT_H
   12671 # include <sys/stat.h>
   12672 #endif
   12673 #ifdef HAVE_UNISTD_H
   12674 # include <unistd.h>
   12675 #endif
   12676 #ifdef HAVE_DIRECT_H
   12677 # include <direct.h>
   12678 #endif
   12679 int
   12680 main ()
   12681 {
   12682 mkdir ("foo", 0);
   12683   ;
   12684   return 0;
   12685 }
   12686 _ACEOF
   12687 if ac_fn_cxx_try_compile "$LINENO"; then :
   12688   gcc_cv_mkdir_takes_one_arg=no
   12689 else
   12690   gcc_cv_mkdir_takes_one_arg=yes
   12691 fi
   12692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12693 fi
   12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
   12695 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
   12696 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
   12697 
   12698 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
   12699 
   12700 fi
   12701 
   12702 
   12703 # File extensions
   12704 manext='.1'
   12705 objext='.o'
   12706 
   12707 
   12708 
   12709 # With Setjmp/Longjmp based exception handling.
   12710 # Check whether --enable-sjlj-exceptions was given.
   12711 if test "${enable_sjlj_exceptions+set}" = set; then :
   12712   enableval=$enable_sjlj_exceptions; case $target in
   12713   *-*-hpux10*)
   12714     if test $enableval != yes; then
   12715       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
   12716 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
   12717       enableval=yes
   12718     fi
   12719     ;;
   12720 esac
   12721 force_sjlj_exceptions=yes
   12722 else
   12723   case $target in
   12724   *-*-hpux10*)
   12725     force_sjlj_exceptions=yes
   12726     enableval=yes
   12727     ;;
   12728   lm32*-*-*)
   12729      force_sjlj_exceptions=yes
   12730      enableval=yes
   12731      ;;
   12732   *)
   12733     force_sjlj_exceptions=no
   12734     ;;
   12735 esac
   12736 fi
   12737 
   12738 if test $force_sjlj_exceptions = yes; then
   12739   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
   12740 
   12741 cat >>confdefs.h <<_ACEOF
   12742 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
   12743 _ACEOF
   12744 
   12745 fi
   12746 
   12747 # --------------------------------------------------------
   12748 # Build, host, and target specific configuration fragments
   12749 # --------------------------------------------------------
   12750 
   12751 # Collect build-machine-specific information.
   12752 . ${srcdir}/config.build || exit 1
   12753 
   12754 # Collect host-machine-specific information.
   12755 . ${srcdir}/config.host || exit 1
   12756 
   12757 target_gtfiles=
   12758 
   12759 # Collect target-machine-specific information.
   12760 . ${srcdir}/config.gcc || exit 1
   12761 
   12762 extra_objs="${host_extra_objs} ${extra_objs}"
   12763 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
   12764 
   12765 # Default the target-machine variables that were not explicitly set.
   12766 if test x"$tm_file" = x
   12767 then tm_file=$cpu_type/$cpu_type.h; fi
   12768 
   12769 if test x"$extra_headers" = x
   12770 then extra_headers=; fi
   12771 
   12772 if test x$md_file = x
   12773 then md_file=$cpu_type/$cpu_type.md; fi
   12774 
   12775 if test x$out_file = x
   12776 then out_file=$cpu_type/$cpu_type.cc; fi
   12777 
   12778 if test x"$tmake_file" = x
   12779 then tmake_file=$cpu_type/t-$cpu_type
   12780 fi
   12781 
   12782 # Support --enable-initfini-array.
   12783 if test x$enable_initfini_array != xno; then
   12784   tm_file="${tm_file} initfini-array.h"
   12785 fi
   12786 
   12787 if test x"$dwarf2" = xyes
   12788 then tm_file="$tm_file tm-dwarf2.h"
   12789 fi
   12790 
   12791 # Say what files are being used for the output code and MD file.
   12792 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
   12793 echo "Using \`$srcdir/config/$md_file' as machine description file."
   12794 
   12795 # If any of the xm_file variables contain nonexistent files, warn
   12796 # about them and drop them.
   12797 
   12798 bx=
   12799 for x in $build_xm_file; do
   12800   if    test -f $srcdir/config/$x
   12801   then      bx="$bx $x"
   12802   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
   12803 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
   12804   fi
   12805 done
   12806 build_xm_file="$bx"
   12807 
   12808 hx=
   12809 for x in $host_xm_file; do
   12810   if    test -f $srcdir/config/$x
   12811   then      hx="$hx $x"
   12812   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
   12813 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
   12814   fi
   12815 done
   12816 host_xm_file="$hx"
   12817 
   12818 tx=
   12819 for x in $xm_file; do
   12820   if    test -f $srcdir/config/$x
   12821   then      tx="$tx $x"
   12822   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
   12823 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
   12824   fi
   12825 done
   12826 xm_file="$tx"
   12827 
   12828 count=a
   12829 for f in $tm_file; do
   12830 	count=${count}x
   12831 done
   12832 if test $count = ax; then
   12833 	echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
   12834 else
   12835 	echo "Using the following target machine macro files:"
   12836 	for f in $tm_file; do
   12837 		echo "	$srcdir/config/$f"
   12838 	done
   12839 fi
   12840 
   12841 if test x$use_long_long_for_widest_fast_int = xyes; then
   12842 
   12843 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
   12844 
   12845 fi
   12846 
   12847 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
   12848 
   12849 cat >>confdefs.h <<_ACEOF
   12850 #define HAVE_GNU_LD $gnu_ld_bool
   12851 _ACEOF
   12852 
   12853 
   12854 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
   12855 
   12856 cat >>confdefs.h <<_ACEOF
   12857 #define HAVE_GNU_AS $gnu_as_bool
   12858 _ACEOF
   12859 
   12860 
   12861 count=a
   12862 for f in $host_xm_file; do
   12863 	count=${count}x
   12864 done
   12865 if test $count = a; then
   12866 	:
   12867 elif test $count = ax; then
   12868 	echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
   12869 else
   12870 	echo "Using the following host machine macro files:"
   12871 	for f in $host_xm_file; do
   12872 		echo "	$srcdir/config/$f"
   12873 	done
   12874 fi
   12875 echo "Using ${out_host_hook_obj} for host machine hooks."
   12876 
   12877 if test "$host_xm_file" != "$build_xm_file"; then
   12878 	count=a
   12879 	for f in $build_xm_file; do
   12880 		count=${count}x
   12881 	done
   12882 	if test $count = a; then
   12883 		:
   12884 	elif test $count = ax; then
   12885 		echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
   12886 	else
   12887 		echo "Using the following build machine macro files:"
   12888 		for f in $build_xm_file; do
   12889 			echo "	$srcdir/config/$f"
   12890 		done
   12891 	fi
   12892 fi
   12893 
   12894 if test -n "$configured_native_system_header_dir"; then
   12895   native_system_header_dir=$configured_native_system_header_dir
   12896 fi
   12897 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
   12898 
   12899 
   12900 case ${host} in
   12901   powerpc*-*-darwin*)
   12902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
   12903 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
   12904 if ${gcc_cv_mcontext_underscores+:} false; then :
   12905   $as_echo_n "(cached) " >&6
   12906 else
   12907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12908 /* end confdefs.h.  */
   12909 
   12910 #include <sys/cdefs.h>
   12911 #include <sys/signal.h>
   12912 #include <ucontext.h>
   12913 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
   12914 
   12915 _ACEOF
   12916 if ac_fn_cxx_try_compile "$LINENO"; then :
   12917   gcc_cv_mcontext_underscores=no
   12918 else
   12919   gcc_cv_mcontext_underscores=yes
   12920 fi
   12921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12922 fi
   12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
   12924 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
   12925       if test $gcc_cv_mcontext_underscores = yes; then
   12926 
   12927 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
   12928 
   12929       fi
   12930     ;;
   12931 esac
   12932 
   12933 # ---------
   12934 # Threading
   12935 # ---------
   12936 
   12937 # Check if a valid thread package
   12938 case ${enable_threads} in
   12939   "" | no)
   12940     # No threads
   12941     target_thread_file='single'
   12942     ;;
   12943   yes)
   12944     # default
   12945     target_thread_file='single'
   12946     ;;
   12947   aix | dce | lynx | mipssde | posix | rtems | \
   12948   single | tpf | vxworks | win32)
   12949     target_thread_file=${enable_threads}
   12950     ;;
   12951   *)
   12952     echo "${enable_threads} is an unknown thread package" 1>&2
   12953     exit 1
   12954     ;;
   12955 esac
   12956 
   12957 if test x${thread_file} = x; then
   12958   # No thread file set by target-specific clauses in config.gcc,
   12959   # so use file chosen by default logic above
   12960   thread_file=${target_thread_file}
   12961 fi
   12962 
   12963 # --------
   12964 # UNSORTED
   12965 # --------
   12966 
   12967 use_cxa_atexit=no
   12968 if test x$enable___cxa_atexit = xyes || \
   12969    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
   12970   if test x$host = x$target; then
   12971     case $host in
   12972       # mingw32 doesn't have __cxa_atexit but uses atexit registration
   12973       # keyed to flag_use_cxa_atexit
   12974       *-*-mingw32*)
   12975 	use_cxa_atexit=yes
   12976 	;;
   12977       powerpc-ibm-aix*)
   12978 	use_cxa_atexit=yes
   12979 	;;
   12980       *)
   12981 	ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
   12982 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
   12983   use_cxa_atexit=yes
   12984 else
   12985   echo "__cxa_atexit can't be enabled on this target"
   12986 fi
   12987 
   12988 	;;
   12989     esac
   12990   else
   12991     # We can't check for __cxa_atexit when building a cross, so assume
   12992     # it is available
   12993     use_cxa_atexit=yes
   12994   fi
   12995   if test x$use_cxa_atexit = xyes; then
   12996 
   12997 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
   12998 
   12999   fi
   13000 fi
   13001 
   13002 # Look for a file containing extra machine modes.
   13003 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
   13004   extra_modes_file='$(srcdir)'/config/${extra_modes}
   13005 
   13006 
   13007 cat >>confdefs.h <<_ACEOF
   13008 #define EXTRA_MODES_FILE "config/$extra_modes"
   13009 _ACEOF
   13010 
   13011 fi
   13012 
   13013 # Convert extra_options into a form suitable for Makefile use.
   13014 extra_opt_files=
   13015 all_opt_files=
   13016 for f in $extra_options; do
   13017   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
   13018   all_opt_files="$all_opt_files $srcdir/config/$f"
   13019 done
   13020 
   13021 
   13022 # auto-host.h is the file containing items generated by autoconf and is
   13023 # the first file included by config.h.
   13024 # If host=build, it is correct to have bconfig include auto-host.h
   13025 # as well.  If host!=build, we are in error and need to do more
   13026 # work to find out the build config parameters.
   13027 if test x$host = x$build
   13028 then
   13029 	build_auto=auto-host.h
   13030 	HAVE_AUTO_BUILD='# '
   13031 else
   13032 	# We create a subdir, then run autoconf in the subdir.
   13033 	# To prevent recursion we set host and build for the new
   13034 	# invocation of configure to the build for this invocation
   13035 	# of configure.
   13036 	tempdir=build.$$
   13037 	rm -rf $tempdir
   13038 	mkdir $tempdir
   13039 	cd $tempdir
   13040 	case ${srcdir} in
   13041 	/* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
   13042 	*) realsrcdir=../${srcdir};;
   13043 	esac
   13044 	# Clearing GMPINC is necessary to prevent host headers being
   13045 	# used by the build compiler.  Defining GENERATOR_FILE stops
   13046 	# system.h from including gmp.h.
   13047 	CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
   13048 	CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
   13049 	LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
   13050 	GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
   13051 	${realsrcdir}/configure \
   13052 		--enable-languages=${enable_languages-all} \
   13053 		${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
   13054 		${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
   13055 		--target=$target_alias --host=$build_alias \
   13056 		--build=$build_alias || exit # retaining $tempdir
   13057 
   13058 	# We just finished tests for the build machine, so rename
   13059 	# the file auto-build.h in the gcc directory.
   13060 	mv auto-host.h ../auto-build.h
   13061 	cd ..
   13062 	rm -rf $tempdir
   13063 	build_auto=auto-build.h
   13064 	HAVE_AUTO_BUILD=
   13065 fi
   13066 
   13067 
   13068 
   13069 tm_file="${tm_file} defaults.h"
   13070 tm_p_file="${tm_p_file} tm-preds.h"
   13071 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
   13072 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
   13073 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
   13074 # put this back in temporarily.
   13075 xm_file="auto-host.h ansidecl.h ${xm_file}"
   13076 
   13077 # --------
   13078 # UNSORTED
   13079 # --------
   13080 
   13081 # Compile in configure arguments.
   13082 if test -f configargs.h ; then
   13083 	# Being re-configured.
   13084 	gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
   13085 	gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
   13086 	if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
   13087 		gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
   13088 	fi
   13089 else
   13090 	gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
   13091 fi
   13092 
   13093 # Double all backslashes and backslash all quotes to turn
   13094 # gcc_config_arguments into a C string.
   13095 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
   13096 $gcc_config_arguments
   13097 EOF
   13098 gcc_config_arguments_str=`cat conftest.out`
   13099 rm -f conftest.out
   13100 
   13101 cat > configargs.h <<EOF
   13102 /* Generated automatically. */
   13103 static const char configuration_arguments[] = "$gcc_config_arguments_str";
   13104 static const char thread_model[] = "$thread_file";
   13105 
   13106 static const struct {
   13107   const char *name, *value;
   13108 } configure_default_options[] = $configure_default_options;
   13109 EOF
   13110 
   13111 gcc_BASEVER=`cat $srcdir/BASE-VER`
   13112 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
   13113 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
   13114 if test -f $srcdir/REVISION ; then
   13115 	gcc_REVISION=`cat $srcdir/REVISION`
   13116 else
   13117         gcc_REVISION=""
   13118 fi
   13119 cat > plugin-version.h <<EOF
   13120 #include "configargs.h"
   13121 
   13122 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
   13123 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
   13124 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
   13125 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
   13126 
   13127 static char basever[] = "$gcc_BASEVER";
   13128 static char datestamp[] = "$gcc_DATESTAMP";
   13129 static char devphase[] = "$gcc_DEVPHASE";
   13130 static char revision[] = "$gcc_REVISION";
   13131 
   13132 /* FIXME plugins: We should make the version information more precise.
   13133    One way to do is to add a checksum. */
   13134 
   13135 static struct plugin_gcc_version gcc_version = {basever, datestamp,
   13136 						devphase, revision,
   13137 						configuration_arguments};
   13138 EOF
   13139 
   13140 # Determine what GCC version number to use in filesystem paths.
   13141 
   13142   get_gcc_base_ver="cat"
   13143 
   13144 # Check whether --with-gcc-major-version-only was given.
   13145 if test "${with_gcc_major_version_only+set}" = set; then :
   13146   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
   13147         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
   13148       fi
   13149 
   13150 fi
   13151 
   13152 
   13153 
   13154 
   13155 # Internationalization
   13156 # If we haven't got the data from the intl directory,
   13157 # assume NLS is disabled.
   13158 USE_NLS=no
   13159 LIBINTL=
   13160 LIBINTL_DEP=
   13161 INCINTL=
   13162 XGETTEXT=
   13163 GMSGFMT=
   13164 POSUB=
   13165 
   13166 if test -f  ../intl/config.intl; then
   13167   .  ../intl/config.intl
   13168 fi
   13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
   13170 $as_echo_n "checking whether NLS is requested... " >&6; }
   13171 if test x"$USE_NLS" != xyes; then
   13172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13173 $as_echo "no" >&6; }
   13174 else
   13175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13176 $as_echo "yes" >&6; }
   13177 
   13178 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
   13179 
   13180 
   13181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
   13182 $as_echo_n "checking for catalogs to be installed... " >&6; }
   13183   # Look for .po and .gmo files in the source directory.
   13184   CATALOGS=
   13185   XLINGUAS=
   13186   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
   13187     # If there aren't any .gmo files the shell will give us the
   13188     # literal string "../path/to/srcdir/po/*.gmo" which has to be
   13189     # weeded out.
   13190     case "$cat" in *\**)
   13191       continue;;
   13192     esac
   13193     # The quadruple backslash is collapsed to a double backslash
   13194     # by the backticks, then collapsed again by the double quotes,
   13195     # leaving us with one backslash in the sed expression (right
   13196     # before the dot that mustn't act as a wildcard).
   13197     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
   13198     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
   13199     # The user is allowed to set LINGUAS to a list of languages to
   13200     # install catalogs for.  If it's empty that means "all of them."
   13201     if test "x$LINGUAS" = x; then
   13202       CATALOGS="$CATALOGS $cat"
   13203       XLINGUAS="$XLINGUAS $lang"
   13204     else
   13205       case "$LINGUAS" in *$lang*)
   13206         CATALOGS="$CATALOGS $cat"
   13207         XLINGUAS="$XLINGUAS $lang"
   13208         ;;
   13209       esac
   13210     fi
   13211   done
   13212   LINGUAS="$XLINGUAS"
   13213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
   13214 $as_echo "$LINGUAS" >&6; }
   13215 
   13216 
   13217     DATADIRNAME=share
   13218 
   13219   INSTOBJEXT=.mo
   13220 
   13221   GENCAT=gencat
   13222 
   13223   CATOBJEXT=.gmo
   13224 
   13225 fi
   13226 
   13227 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
   13228 # -liconv on the link line twice.
   13229 case "$LIBINTL" in *$LIBICONV*)
   13230 	LIBICONV= ;;
   13231 esac
   13232 
   13233 # Check whether --enable-secureplt was given.
   13234 if test "${enable_secureplt+set}" = set; then :
   13235   enableval=$enable_secureplt;
   13236 fi
   13237 
   13238 
   13239 # Check whether --enable-mingw-wildcard was given.
   13240 if test "${enable_mingw_wildcard+set}" = set; then :
   13241   enableval=$enable_mingw_wildcard;
   13242 else
   13243   enable_mingw_wildcard=platform
   13244 fi
   13245 
   13246 if test x"$enable_mingw_wildcard" != xplatform ; then :
   13247 
   13248 cat >>confdefs.h <<_ACEOF
   13249 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
   13250 _ACEOF
   13251 
   13252 fi
   13253 
   13254 # Check whether --enable-large-address-aware was given.
   13255 if test "${enable_large_address_aware+set}" = set; then :
   13256   enableval=$enable_large_address_aware;
   13257 fi
   13258 
   13259 if test x"$enable_large_address_aware" = xyes; then :
   13260 
   13261 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
   13262 
   13263 fi
   13264 
   13265 # Check whether --enable-leading-mingw64-underscores was given.
   13266 if test "${enable_leading_mingw64_underscores+set}" = set; then :
   13267   enableval=$enable_leading_mingw64_underscores;
   13268 fi
   13269 
   13270 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
   13271 
   13272 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
   13273 
   13274 fi
   13275 
   13276 # Check whether --enable-cld was given.
   13277 if test "${enable_cld+set}" = set; then :
   13278   enableval=$enable_cld;
   13279 else
   13280   enable_cld=no
   13281 fi
   13282 
   13283 
   13284 # Check whether --enable-frame-pointer was given.
   13285 if test "${enable_frame_pointer+set}" = set; then :
   13286   enableval=$enable_frame_pointer;
   13287 else
   13288 
   13289 case $target_os in
   13290 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
   13291   # Enable -fomit-frame-pointer by default for these systems with DWARF2.
   13292   enable_frame_pointer=no
   13293   ;;
   13294 *)
   13295   enable_frame_pointer=yes
   13296   ;;
   13297 esac
   13298 
   13299 fi
   13300 
   13301 
   13302 case $target in
   13303 i[34567]86-*-* | x86_64-*-*)
   13304 	if test "x$enable_cld" = xyes; then
   13305 		tm_defines="${tm_defines} USE_IX86_CLD=1"
   13306 	fi
   13307 	if test "x$enable_frame_pointer" = xyes; then
   13308 		tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
   13309 	fi
   13310 	;;
   13311 esac
   13312 
   13313 # Windows32 Registry support for specifying GCC installation paths.
   13314 # Check whether --enable-win32-registry was given.
   13315 if test "${enable_win32_registry+set}" = set; then :
   13316   enableval=$enable_win32_registry;
   13317 fi
   13318 
   13319 
   13320 case $host_os in
   13321   win32 | pe | cygwin* | mingw32*)
   13322     if test "x$enable_win32_registry" != xno; then
   13323       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
   13324 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
   13325 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
   13326   $as_echo_n "(cached) " >&6
   13327 else
   13328   ac_func_search_save_LIBS=$LIBS
   13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13330 /* end confdefs.h.  */
   13331 
   13332 /* Override any GCC internal prototype to avoid an error.
   13333    Use char because int might match the return type of a GCC
   13334    builtin and then its argument prototype would still apply.  */
   13335 #ifdef __cplusplus
   13336 extern "C"
   13337 #endif
   13338 char RegOpenKeyExA ();
   13339 int
   13340 main ()
   13341 {
   13342 return RegOpenKeyExA ();
   13343   ;
   13344   return 0;
   13345 }
   13346 _ACEOF
   13347 for ac_lib in '' advapi32; do
   13348   if test -z "$ac_lib"; then
   13349     ac_res="none required"
   13350   else
   13351     ac_res=-l$ac_lib
   13352     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13353   fi
   13354   if ac_fn_cxx_try_link "$LINENO"; then :
   13355   ac_cv_search_RegOpenKeyExA=$ac_res
   13356 fi
   13357 rm -f core conftest.err conftest.$ac_objext \
   13358     conftest$ac_exeext
   13359   if ${ac_cv_search_RegOpenKeyExA+:} false; then :
   13360   break
   13361 fi
   13362 done
   13363 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
   13364 
   13365 else
   13366   ac_cv_search_RegOpenKeyExA=no
   13367 fi
   13368 rm conftest.$ac_ext
   13369 LIBS=$ac_func_search_save_LIBS
   13370 fi
   13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
   13372 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
   13373 ac_res=$ac_cv_search_RegOpenKeyExA
   13374 if test "$ac_res" != no; then :
   13375   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13376 
   13377 else
   13378   enable_win32_registry=no
   13379 fi
   13380 
   13381     fi
   13382 
   13383     if test "x$enable_win32_registry" != xno; then
   13384 
   13385 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
   13386 
   13387 
   13388       if test "x$enable_win32_registry" != xyes \
   13389          && test "x$enable_win32_registry" != x; then
   13390 
   13391 cat >>confdefs.h <<_ACEOF
   13392 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
   13393 _ACEOF
   13394 
   13395       fi
   13396     fi
   13397   ;;
   13398 esac
   13399 
   13400 # Get an absolute path to the GCC top-level source directory
   13401 holddir=`${PWDCMD-pwd}`
   13402 cd $srcdir
   13403 topdir=`${PWDCMD-pwd}`
   13404 cd $holddir
   13405 
   13406 # Conditionalize the makefile for this host machine.
   13407 xmake_file=
   13408 for f in ${host_xmake_file}
   13409 do
   13410 	if test -f ${srcdir}/config/$f
   13411 	then
   13412 		xmake_file="${xmake_file} \$(srcdir)/config/$f"
   13413 	fi
   13414 done
   13415 
   13416 # Conditionalize the makefile for this target machine.
   13417 tmake_file_=
   13418 for f in ${tmake_file}
   13419 do
   13420 	if test -f ${srcdir}/config/$f
   13421 	then
   13422 		tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
   13423 	fi
   13424 done
   13425 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
   13426 
   13427 out_object_file=`basename $out_file .cc`.o
   13428 common_out_object_file=`basename $common_out_file .cc`.o
   13429 
   13430 tm_file_list="options.h"
   13431 tm_include_list="options.h insn-constants.h"
   13432 for f in $tm_file; do
   13433   case $f in
   13434     ./* )
   13435        f=`echo $f | sed 's/^..//'`
   13436        tm_file_list="${tm_file_list} $f"
   13437        tm_include_list="${tm_include_list} $f"
   13438        ;;
   13439     defaults.h )
   13440        tm_file_list="${tm_file_list} \$(srcdir)/$f"
   13441        tm_include_list="${tm_include_list} $f"
   13442        ;;
   13443     * )
   13444        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
   13445        tm_include_list="${tm_include_list} config/$f"
   13446        ;;
   13447   esac
   13448 done
   13449 
   13450 tm_p_file_list=
   13451 tm_p_include_list=
   13452 for f in $tm_p_file; do
   13453   case $f in
   13454     tm-preds.h )
   13455        tm_p_file_list="${tm_p_file_list} $f"
   13456        tm_p_include_list="${tm_p_include_list} $f"
   13457        ;;
   13458     * )
   13459        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
   13460        tm_p_include_list="${tm_p_include_list} config/$f"
   13461   esac
   13462 done
   13463 
   13464 tm_d_file_list=
   13465 tm_d_include_list=
   13466 for f in $tm_d_file; do
   13467   case $f in
   13468     * )
   13469        tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
   13470        tm_d_include_list="${tm_d_include_list} config/$f"
   13471        ;;
   13472   esac
   13473 done
   13474 
   13475 xm_file_list=
   13476 xm_include_list=
   13477 for f in $xm_file; do
   13478   case $f in
   13479     ansidecl.h )
   13480        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
   13481        xm_include_list="${xm_include_list} $f"
   13482        ;;
   13483     auto-host.h )
   13484        xm_file_list="${xm_file_list} $f"
   13485        xm_include_list="${xm_include_list} $f"
   13486        ;;
   13487     * )
   13488        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
   13489        xm_include_list="${xm_include_list} config/$f"
   13490        ;;
   13491   esac
   13492 done
   13493 
   13494 host_xm_file_list=
   13495 host_xm_include_list=
   13496 for f in $host_xm_file; do
   13497   case $f in
   13498     ansidecl.h )
   13499        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
   13500        host_xm_include_list="${host_xm_include_list} $f"
   13501        ;;
   13502     auto-host.h )
   13503        host_xm_file_list="${host_xm_file_list} $f"
   13504        host_xm_include_list="${host_xm_include_list} $f"
   13505        ;;
   13506     * )
   13507        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
   13508        host_xm_include_list="${host_xm_include_list} config/$f"
   13509        ;;
   13510   esac
   13511 done
   13512 
   13513 build_xm_file_list=
   13514 for f in $build_xm_file; do
   13515   case $f in
   13516     ansidecl.h )
   13517        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
   13518        build_xm_include_list="${build_xm_include_list} $f"
   13519        ;;
   13520     auto-build.h | auto-host.h )
   13521        build_xm_file_list="${build_xm_file_list} $f"
   13522        build_xm_include_list="${build_xm_include_list} $f"
   13523        ;;
   13524     * )
   13525        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
   13526        build_xm_include_list="${build_xm_include_list} config/$f"
   13527        ;;
   13528   esac
   13529 done
   13530 
   13531 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
   13532 # cross-compiler which does not use the native headers and libraries.
   13533 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
   13534 CROSS=
   13535 ALL=all.internal
   13536 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
   13537 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
   13538 
   13539 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
   13540    test x$build != x$host || test "x$with_build_sysroot" != x; then
   13541   if test "x$with_build_sysroot" != x; then
   13542     BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
   13543   else
   13544     BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
   13545   fi
   13546 
   13547   if test x$host != x$target
   13548   then
   13549     CROSS="-DCROSS_DIRECTORY_STRUCTURE"
   13550     ALL=all.cross
   13551     SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
   13552   elif test "x$TARGET_SYSTEM_ROOT" != x; then
   13553     SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
   13554   fi
   13555 
   13556   if test "x$with_build_sysroot" != "x"; then
   13557     target_header_dir="${with_build_sysroot}${native_system_header_dir}"
   13558   elif test "x$with_sysroot" = x; then
   13559     target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
   13560   elif test "x$with_sysroot" = xyes; then
   13561     target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
   13562   else
   13563     target_header_dir="${with_sysroot}${native_system_header_dir}"
   13564   fi
   13565 else
   13566   target_header_dir=${native_system_header_dir}
   13567 fi
   13568 
   13569 # If this is a cross-compiler that does not
   13570 # have its own set of headers then define
   13571 # inhibit_libc
   13572 
   13573 # If this is using newlib, without having the headers available now,
   13574 # then define inhibit_libc in LIBGCC2_CFLAGS.
   13575 # This prevents libgcc2 from containing any code which requires libc
   13576 # support.
   13577 : ${inhibit_libc=false}
   13578 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
   13579        test x$with_newlib = xyes ; } &&
   13580      { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
   13581        inhibit_libc=true
   13582 fi
   13583 
   13584 
   13585 # When building gcc with a cross-compiler, we need to adjust things so
   13586 # that the generator programs are still built with the native compiler.
   13587 # Also, we cannot run fixincludes.
   13588 
   13589 # These are the normal (build=host) settings:
   13590 CC_FOR_BUILD='$(CC)'
   13591 CXX_FOR_BUILD='$(CXX)'
   13592 BUILD_CFLAGS='$(ALL_CFLAGS)'
   13593 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
   13594 BUILD_LDFLAGS='$(LDFLAGS)'
   13595 STMP_FIXINC=stmp-fixinc
   13596 
   13597 # And these apply if build != host, or we are generating coverage data
   13598 if test x$build != x$host || test "x$coverage_flags" != x
   13599 then
   13600     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
   13601     BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
   13602     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
   13603 fi
   13604 
   13605 # Expand extra_headers to include complete path.
   13606 # This substitutes for lots of t-* files.
   13607 extra_headers_list=
   13608 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
   13609 for file in ${extra_headers} ; do
   13610   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
   13611 done
   13612 
   13613 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
   13614 if test x"$use_gcc_tgmath" = xyes
   13615 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
   13616 fi
   13617 
   13618 # Define collect2 in Makefile.
   13619 case $host_can_use_collect2 in
   13620   no) collect2= ;;
   13621   *) collect2='collect2$(exeext)' ;;
   13622 esac
   13623 
   13624 
   13625 # Add a definition of USE_COLLECT2 if system wants one.
   13626 case $use_collect2 in
   13627   no) use_collect2= ;;
   13628   "") ;;
   13629   *)
   13630     host_xm_defines="${host_xm_defines} USE_COLLECT2"
   13631     xm_defines="${xm_defines} USE_COLLECT2"
   13632     case $host_can_use_collect2 in
   13633       no)
   13634         as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
   13635         ;;
   13636     esac
   13637     ;;
   13638 esac
   13639 
   13640 
   13641 cat >>confdefs.h <<_ACEOF
   13642 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
   13643 _ACEOF
   13644 
   13645 
   13646 # ---------------------------
   13647 # Assembler & linker features
   13648 # ---------------------------
   13649 
   13650 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
   13651 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
   13652 # However when ld-new is first executed from the build tree, libtool will
   13653 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
   13654 # to the build tree.  While doing this we need to use the previous-stage
   13655 # linker, or we have an infinite loop.  The presence of a shell script as
   13656 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
   13657 # the gcc/collect-ld script.  So we need to know how libtool works, or
   13658 # exec-tool will fail.
   13659 
   13660 
   13661 case `pwd` in
   13662   *\ * | *\	*)
   13663     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   13664 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   13665 esac
   13666 
   13667 
   13668 
   13669 macro_version='2.2.7a'
   13670 macro_revision='1.3134'
   13671 
   13672 
   13673 
   13674 
   13675 
   13676 
   13677 
   13678 
   13679 
   13680 
   13681 
   13682 
   13683 
   13684 ltmain="$ac_aux_dir/ltmain.sh"
   13685 
   13686 # Backslashify metacharacters that are still active within
   13687 # double-quoted strings.
   13688 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   13689 
   13690 # Same as above, but do not quote variable references.
   13691 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   13692 
   13693 # Sed substitution to delay expansion of an escaped shell variable in a
   13694 # double_quote_subst'ed string.
   13695 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   13696 
   13697 # Sed substitution to delay expansion of an escaped single quote.
   13698 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   13699 
   13700 # Sed substitution to avoid accidental globbing in evaled expressions
   13701 no_glob_subst='s/\*/\\\*/g'
   13702 
   13703 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   13704 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   13705 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   13706 
   13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   13708 $as_echo_n "checking how to print strings... " >&6; }
   13709 # Test print first, because it will be a builtin if present.
   13710 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
   13711    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   13712   ECHO='print -r --'
   13713 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   13714   ECHO='printf %s\n'
   13715 else
   13716   # Use this function as a fallback that always works.
   13717   func_fallback_echo ()
   13718   {
   13719     eval 'cat <<_LTECHO_EOF
   13720 $1
   13721 _LTECHO_EOF'
   13722   }
   13723   ECHO='func_fallback_echo'
   13724 fi
   13725 
   13726 # func_echo_all arg...
   13727 # Invoke $ECHO with all args, space-separated.
   13728 func_echo_all ()
   13729 {
   13730     $ECHO ""
   13731 }
   13732 
   13733 case "$ECHO" in
   13734   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   13735 $as_echo "printf" >&6; } ;;
   13736   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   13737 $as_echo "print -r" >&6; } ;;
   13738   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   13739 $as_echo "cat" >&6; } ;;
   13740 esac
   13741 
   13742 
   13743 
   13744 
   13745 
   13746 
   13747 
   13748 
   13749 
   13750 
   13751 
   13752 
   13753 
   13754 
   13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   13756 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   13757 if ${ac_cv_path_SED+:} false; then :
   13758   $as_echo_n "(cached) " >&6
   13759 else
   13760             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   13761      for ac_i in 1 2 3 4 5 6 7; do
   13762        ac_script="$ac_script$as_nl$ac_script"
   13763      done
   13764      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   13765      { ac_script=; unset ac_script;}
   13766      if test -z "$SED"; then
   13767   ac_path_SED_found=false
   13768   # Loop through the user's path and test for each of PROGNAME-LIST
   13769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13770 for as_dir in $PATH
   13771 do
   13772   IFS=$as_save_IFS
   13773   test -z "$as_dir" && as_dir=.
   13774     for ac_prog in sed gsed; do
   13775     for ac_exec_ext in '' $ac_executable_extensions; do
   13776       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   13777       as_fn_executable_p "$ac_path_SED" || continue
   13778 # Check for GNU ac_path_SED and select it if it is found.
   13779   # Check for GNU $ac_path_SED
   13780 case `"$ac_path_SED" --version 2>&1` in
   13781 *GNU*)
   13782   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   13783 *)
   13784   ac_count=0
   13785   $as_echo_n 0123456789 >"conftest.in"
   13786   while :
   13787   do
   13788     cat "conftest.in" "conftest.in" >"conftest.tmp"
   13789     mv "conftest.tmp" "conftest.in"
   13790     cp "conftest.in" "conftest.nl"
   13791     $as_echo '' >> "conftest.nl"
   13792     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   13793     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   13794     as_fn_arith $ac_count + 1 && ac_count=$as_val
   13795     if test $ac_count -gt ${ac_path_SED_max-0}; then
   13796       # Best one so far, save it but keep looking for a better one
   13797       ac_cv_path_SED="$ac_path_SED"
   13798       ac_path_SED_max=$ac_count
   13799     fi
   13800     # 10*(2^10) chars as input seems more than enough
   13801     test $ac_count -gt 10 && break
   13802   done
   13803   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   13804 esac
   13805 
   13806       $ac_path_SED_found && break 3
   13807     done
   13808   done
   13809   done
   13810 IFS=$as_save_IFS
   13811   if test -z "$ac_cv_path_SED"; then
   13812     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   13813   fi
   13814 else
   13815   ac_cv_path_SED=$SED
   13816 fi
   13817 
   13818 fi
   13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   13820 $as_echo "$ac_cv_path_SED" >&6; }
   13821  SED="$ac_cv_path_SED"
   13822   rm -f conftest.sed
   13823 
   13824 test -z "$SED" && SED=sed
   13825 Xsed="$SED -e 1s/^X//"
   13826 
   13827 
   13828 
   13829 
   13830 
   13831 
   13832 
   13833 
   13834 
   13835 
   13836 
   13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   13838 $as_echo_n "checking for fgrep... " >&6; }
   13839 if ${ac_cv_path_FGREP+:} false; then :
   13840   $as_echo_n "(cached) " >&6
   13841 else
   13842   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   13843    then ac_cv_path_FGREP="$GREP -F"
   13844    else
   13845      if test -z "$FGREP"; then
   13846   ac_path_FGREP_found=false
   13847   # Loop through the user's path and test for each of PROGNAME-LIST
   13848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   13850 do
   13851   IFS=$as_save_IFS
   13852   test -z "$as_dir" && as_dir=.
   13853     for ac_prog in fgrep; do
   13854     for ac_exec_ext in '' $ac_executable_extensions; do
   13855       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   13856       as_fn_executable_p "$ac_path_FGREP" || continue
   13857 # Check for GNU ac_path_FGREP and select it if it is found.
   13858   # Check for GNU $ac_path_FGREP
   13859 case `"$ac_path_FGREP" --version 2>&1` in
   13860 *GNU*)
   13861   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   13862 *)
   13863   ac_count=0
   13864   $as_echo_n 0123456789 >"conftest.in"
   13865   while :
   13866   do
   13867     cat "conftest.in" "conftest.in" >"conftest.tmp"
   13868     mv "conftest.tmp" "conftest.in"
   13869     cp "conftest.in" "conftest.nl"
   13870     $as_echo 'FGREP' >> "conftest.nl"
   13871     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   13872     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   13873     as_fn_arith $ac_count + 1 && ac_count=$as_val
   13874     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   13875       # Best one so far, save it but keep looking for a better one
   13876       ac_cv_path_FGREP="$ac_path_FGREP"
   13877       ac_path_FGREP_max=$ac_count
   13878     fi
   13879     # 10*(2^10) chars as input seems more than enough
   13880     test $ac_count -gt 10 && break
   13881   done
   13882   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   13883 esac
   13884 
   13885       $ac_path_FGREP_found && break 3
   13886     done
   13887   done
   13888   done
   13889 IFS=$as_save_IFS
   13890   if test -z "$ac_cv_path_FGREP"; then
   13891     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   13892   fi
   13893 else
   13894   ac_cv_path_FGREP=$FGREP
   13895 fi
   13896 
   13897    fi
   13898 fi
   13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   13900 $as_echo "$ac_cv_path_FGREP" >&6; }
   13901  FGREP="$ac_cv_path_FGREP"
   13902 
   13903 
   13904 test -z "$GREP" && GREP=grep
   13905 
   13906 
   13907 
   13908 
   13909 
   13910 
   13911 
   13912 
   13913 
   13914 
   13915 
   13916 
   13917 
   13918 
   13919 
   13920 
   13921 
   13922 
   13923 
   13924 # Check whether --with-gnu-ld was given.
   13925 if test "${with_gnu_ld+set}" = set; then :
   13926   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   13927 else
   13928   with_gnu_ld=no
   13929 fi
   13930 
   13931 ac_prog=ld
   13932 if test "$GCC" = yes; then
   13933   # Check if gcc -print-prog-name=ld gives a path.
   13934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   13935 $as_echo_n "checking for ld used by $CC... " >&6; }
   13936   case $host in
   13937   *-*-mingw*)
   13938     # gcc leaves a trailing carriage return which upsets mingw
   13939     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   13940   *)
   13941     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   13942   esac
   13943   case $ac_prog in
   13944     # Accept absolute paths.
   13945     [\\/]* | ?:[\\/]*)
   13946       re_direlt='/[^/][^/]*/\.\./'
   13947       # Canonicalize the pathname of ld
   13948       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   13949       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   13950 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   13951       done
   13952       test -z "$LD" && LD="$ac_prog"
   13953       ;;
   13954   "")
   13955     # If it fails, then pretend we aren't using GCC.
   13956     ac_prog=ld
   13957     ;;
   13958   *)
   13959     # If it is relative, then search for the first ld in PATH.
   13960     with_gnu_ld=unknown
   13961     ;;
   13962   esac
   13963 elif test "$with_gnu_ld" = yes; then
   13964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   13965 $as_echo_n "checking for GNU ld... " >&6; }
   13966 else
   13967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   13968 $as_echo_n "checking for non-GNU ld... " >&6; }
   13969 fi
   13970 if ${lt_cv_path_LD+:} false; then :
   13971   $as_echo_n "(cached) " >&6
   13972 else
   13973   if test -z "$LD"; then
   13974   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   13975   for ac_dir in $PATH; do
   13976     IFS="$lt_save_ifs"
   13977     test -z "$ac_dir" && ac_dir=.
   13978     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   13979       lt_cv_path_LD="$ac_dir/$ac_prog"
   13980       # Check to see if the program is GNU ld.  I'd rather use --version,
   13981       # but apparently some variants of GNU ld only accept -v.
   13982       # Break only if it was the GNU/non-GNU ld that we prefer.
   13983       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   13984       *GNU* | *'with BFD'*)
   13985 	test "$with_gnu_ld" != no && break
   13986 	;;
   13987       *)
   13988 	test "$with_gnu_ld" != yes && break
   13989 	;;
   13990       esac
   13991     fi
   13992   done
   13993   IFS="$lt_save_ifs"
   13994 else
   13995   lt_cv_path_LD="$LD" # Let the user override the test with a path.
   13996 fi
   13997 fi
   13998 
   13999 LD="$lt_cv_path_LD"
   14000 if test -n "$LD"; then
   14001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   14002 $as_echo "$LD" >&6; }
   14003 else
   14004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14005 $as_echo "no" >&6; }
   14006 fi
   14007 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   14009 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   14010 if ${lt_cv_prog_gnu_ld+:} false; then :
   14011   $as_echo_n "(cached) " >&6
   14012 else
   14013   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   14014 case `$LD -v 2>&1 </dev/null` in
   14015 *GNU* | *'with BFD'*)
   14016   lt_cv_prog_gnu_ld=yes
   14017   ;;
   14018 *)
   14019   lt_cv_prog_gnu_ld=no
   14020   ;;
   14021 esac
   14022 fi
   14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   14024 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   14025 with_gnu_ld=$lt_cv_prog_gnu_ld
   14026 
   14027 
   14028 
   14029 
   14030 
   14031 
   14032 
   14033 
   14034 
   14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   14036 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   14037 if ${lt_cv_path_NM+:} false; then :
   14038   $as_echo_n "(cached) " >&6
   14039 else
   14040   if test -n "$NM"; then
   14041   # Let the user override the test.
   14042   lt_cv_path_NM="$NM"
   14043 else
   14044   lt_nm_to_check="${ac_tool_prefix}nm"
   14045   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   14046     lt_nm_to_check="$lt_nm_to_check nm"
   14047   fi
   14048   for lt_tmp_nm in $lt_nm_to_check; do
   14049     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   14050     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   14051       IFS="$lt_save_ifs"
   14052       test -z "$ac_dir" && ac_dir=.
   14053       tmp_nm="$ac_dir/$lt_tmp_nm"
   14054       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   14055 	# Check to see if the nm accepts a BSD-compat flag.
   14056 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
   14057 	#   nm: unknown option "B" ignored
   14058 	# Tru64's nm complains that /dev/null is an invalid object file
   14059 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   14060 	*/dev/null* | *'Invalid file or object type'*)
   14061 	  lt_cv_path_NM="$tmp_nm -B"
   14062 	  break
   14063 	  ;;
   14064 	*)
   14065 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   14066 	  */dev/null*)
   14067 	    lt_cv_path_NM="$tmp_nm -p"
   14068 	    break
   14069 	    ;;
   14070 	  *)
   14071 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   14072 	    continue # so that we can try to find one that supports BSD flags
   14073 	    ;;
   14074 	  esac
   14075 	  ;;
   14076 	esac
   14077       fi
   14078     done
   14079     IFS="$lt_save_ifs"
   14080   done
   14081   : ${lt_cv_path_NM=no}
   14082 fi
   14083 fi
   14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   14085 $as_echo "$lt_cv_path_NM" >&6; }
   14086 if test "$lt_cv_path_NM" != "no"; then
   14087   NM="$lt_cv_path_NM"
   14088 else
   14089   # Didn't find any BSD compatible name lister, look for dumpbin.
   14090   if test -n "$DUMPBIN"; then :
   14091     # Let the user override the test.
   14092   else
   14093     if test -n "$ac_tool_prefix"; then
   14094   for ac_prog in dumpbin "link -dump"
   14095   do
   14096     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   14097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14099 $as_echo_n "checking for $ac_word... " >&6; }
   14100 if ${ac_cv_prog_DUMPBIN+:} false; then :
   14101   $as_echo_n "(cached) " >&6
   14102 else
   14103   if test -n "$DUMPBIN"; then
   14104   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   14105 else
   14106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14107 for as_dir in $PATH
   14108 do
   14109   IFS=$as_save_IFS
   14110   test -z "$as_dir" && as_dir=.
   14111     for ac_exec_ext in '' $ac_executable_extensions; do
   14112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14113     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   14114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14115     break 2
   14116   fi
   14117 done
   14118   done
   14119 IFS=$as_save_IFS
   14120 
   14121 fi
   14122 fi
   14123 DUMPBIN=$ac_cv_prog_DUMPBIN
   14124 if test -n "$DUMPBIN"; then
   14125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   14126 $as_echo "$DUMPBIN" >&6; }
   14127 else
   14128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14129 $as_echo "no" >&6; }
   14130 fi
   14131 
   14132 
   14133     test -n "$DUMPBIN" && break
   14134   done
   14135 fi
   14136 if test -z "$DUMPBIN"; then
   14137   ac_ct_DUMPBIN=$DUMPBIN
   14138   for ac_prog in dumpbin "link -dump"
   14139 do
   14140   # Extract the first word of "$ac_prog", so it can be a program name with args.
   14141 set dummy $ac_prog; ac_word=$2
   14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14143 $as_echo_n "checking for $ac_word... " >&6; }
   14144 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   14145   $as_echo_n "(cached) " >&6
   14146 else
   14147   if test -n "$ac_ct_DUMPBIN"; then
   14148   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   14149 else
   14150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14151 for as_dir in $PATH
   14152 do
   14153   IFS=$as_save_IFS
   14154   test -z "$as_dir" && as_dir=.
   14155     for ac_exec_ext in '' $ac_executable_extensions; do
   14156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14157     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   14158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14159     break 2
   14160   fi
   14161 done
   14162   done
   14163 IFS=$as_save_IFS
   14164 
   14165 fi
   14166 fi
   14167 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   14168 if test -n "$ac_ct_DUMPBIN"; then
   14169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   14170 $as_echo "$ac_ct_DUMPBIN" >&6; }
   14171 else
   14172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14173 $as_echo "no" >&6; }
   14174 fi
   14175 
   14176 
   14177   test -n "$ac_ct_DUMPBIN" && break
   14178 done
   14179 
   14180   if test "x$ac_ct_DUMPBIN" = x; then
   14181     DUMPBIN=":"
   14182   else
   14183     case $cross_compiling:$ac_tool_warned in
   14184 yes:)
   14185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14187 ac_tool_warned=yes ;;
   14188 esac
   14189     DUMPBIN=$ac_ct_DUMPBIN
   14190   fi
   14191 fi
   14192 
   14193     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
   14194     *COFF*)
   14195       DUMPBIN="$DUMPBIN -symbols"
   14196       ;;
   14197     *)
   14198       DUMPBIN=:
   14199       ;;
   14200     esac
   14201   fi
   14202 
   14203   if test "$DUMPBIN" != ":"; then
   14204     NM="$DUMPBIN"
   14205   fi
   14206 fi
   14207 test -z "$NM" && NM=nm
   14208 
   14209 
   14210 
   14211 
   14212 
   14213 
   14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   14215 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   14216 if ${lt_cv_nm_interface+:} false; then :
   14217   $as_echo_n "(cached) " >&6
   14218 else
   14219   lt_cv_nm_interface="BSD nm"
   14220   echo "int some_variable = 0;" > conftest.$ac_ext
   14221   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   14222   (eval "$ac_compile" 2>conftest.err)
   14223   cat conftest.err >&5
   14224   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   14225   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   14226   cat conftest.err >&5
   14227   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   14228   cat conftest.out >&5
   14229   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   14230     lt_cv_nm_interface="MS dumpbin"
   14231   fi
   14232   rm -f conftest*
   14233 fi
   14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   14235 $as_echo "$lt_cv_nm_interface" >&6; }
   14236 
   14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   14238 $as_echo_n "checking whether ln -s works... " >&6; }
   14239 LN_S=$as_ln_s
   14240 if test "$LN_S" = "ln -s"; then
   14241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14242 $as_echo "yes" >&6; }
   14243 else
   14244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   14245 $as_echo "no, using $LN_S" >&6; }
   14246 fi
   14247 
   14248 # find the maximum length of command line arguments
   14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   14250 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   14251 if ${lt_cv_sys_max_cmd_len+:} false; then :
   14252   $as_echo_n "(cached) " >&6
   14253 else
   14254     i=0
   14255   teststring="ABCD"
   14256 
   14257   case $build_os in
   14258   msdosdjgpp*)
   14259     # On DJGPP, this test can blow up pretty badly due to problems in libc
   14260     # (any single argument exceeding 2000 bytes causes a buffer overrun
   14261     # during glob expansion).  Even if it were fixed, the result of this
   14262     # check would be larger than it should be.
   14263     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   14264     ;;
   14265 
   14266   gnu*)
   14267     # Under GNU Hurd, this test is not required because there is
   14268     # no limit to the length of command line arguments.
   14269     # Libtool will interpret -1 as no limit whatsoever
   14270     lt_cv_sys_max_cmd_len=-1;
   14271     ;;
   14272 
   14273   cygwin* | mingw* | cegcc*)
   14274     # On Win9x/ME, this test blows up -- it succeeds, but takes
   14275     # about 5 minutes as the teststring grows exponentially.
   14276     # Worse, since 9x/ME are not pre-emptively multitasking,
   14277     # you end up with a "frozen" computer, even though with patience
   14278     # the test eventually succeeds (with a max line length of 256k).
   14279     # Instead, let's just punt: use the minimum linelength reported by
   14280     # all of the supported platforms: 8192 (on NT/2K/XP).
   14281     lt_cv_sys_max_cmd_len=8192;
   14282     ;;
   14283 
   14284   mint*)
   14285     # On MiNT this can take a long time and run out of memory.
   14286     lt_cv_sys_max_cmd_len=8192;
   14287     ;;
   14288 
   14289   amigaos*)
   14290     # On AmigaOS with pdksh, this test takes hours, literally.
   14291     # So we just punt and use a minimum line length of 8192.
   14292     lt_cv_sys_max_cmd_len=8192;
   14293     ;;
   14294 
   14295   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
   14296     # This has been around since 386BSD, at least.  Likely further.
   14297     if test -x /sbin/sysctl; then
   14298       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   14299     elif test -x /usr/sbin/sysctl; then
   14300       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   14301     else
   14302       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   14303     fi
   14304     # And add a safety zone
   14305     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   14306     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   14307     ;;
   14308 
   14309   interix*)
   14310     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   14311     lt_cv_sys_max_cmd_len=196608
   14312     ;;
   14313 
   14314   osf*)
   14315     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   14316     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   14317     # nice to cause kernel panics so lets avoid the loop below.
   14318     # First set a reasonable default.
   14319     lt_cv_sys_max_cmd_len=16384
   14320     #
   14321     if test -x /sbin/sysconfig; then
   14322       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   14323         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   14324       esac
   14325     fi
   14326     ;;
   14327   sco3.2v5*)
   14328     lt_cv_sys_max_cmd_len=102400
   14329     ;;
   14330   sysv5* | sco5v6* | sysv4.2uw2*)
   14331     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   14332     if test -n "$kargmax"; then
   14333       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   14334     else
   14335       lt_cv_sys_max_cmd_len=32768
   14336     fi
   14337     ;;
   14338   *)
   14339     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   14340     if test -n "$lt_cv_sys_max_cmd_len"; then
   14341       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   14342       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   14343     else
   14344       # Make teststring a little bigger before we do anything with it.
   14345       # a 1K string should be a reasonable start.
   14346       for i in 1 2 3 4 5 6 7 8 ; do
   14347         teststring=$teststring$teststring
   14348       done
   14349       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   14350       # If test is not a shell built-in, we'll probably end up computing a
   14351       # maximum length that is only half of the actual maximum length, but
   14352       # we can't tell.
   14353       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
   14354 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   14355 	      test $i != 17 # 1/2 MB should be enough
   14356       do
   14357         i=`expr $i + 1`
   14358         teststring=$teststring$teststring
   14359       done
   14360       # Only check the string length outside the loop.
   14361       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   14362       teststring=
   14363       # Add a significant safety factor because C++ compilers can tack on
   14364       # massive amounts of additional arguments before passing them to the
   14365       # linker.  It appears as though 1/2 is a usable value.
   14366       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   14367     fi
   14368     ;;
   14369   esac
   14370 
   14371 fi
   14372 
   14373 if test -n $lt_cv_sys_max_cmd_len ; then
   14374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   14375 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   14376 else
   14377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   14378 $as_echo "none" >&6; }
   14379 fi
   14380 max_cmd_len=$lt_cv_sys_max_cmd_len
   14381 
   14382 
   14383 
   14384 
   14385 
   14386 
   14387 : ${CP="cp -f"}
   14388 : ${MV="mv -f"}
   14389 : ${RM="rm -f"}
   14390 
   14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
   14392 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
   14393 # Try some XSI features
   14394 xsi_shell=no
   14395 ( _lt_dummy="a/b/c"
   14396   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
   14397       = c,a/b,, \
   14398     && eval 'test $(( 1 + 1 )) -eq 2 \
   14399     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
   14400   && xsi_shell=yes
   14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
   14402 $as_echo "$xsi_shell" >&6; }
   14403 
   14404 
   14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
   14406 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
   14407 lt_shell_append=no
   14408 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
   14409     >/dev/null 2>&1 \
   14410   && lt_shell_append=yes
   14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
   14412 $as_echo "$lt_shell_append" >&6; }
   14413 
   14414 
   14415 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   14416   lt_unset=unset
   14417 else
   14418   lt_unset=false
   14419 fi
   14420 
   14421 
   14422 
   14423 
   14424 
   14425 # test EBCDIC or ASCII
   14426 case `echo X|tr X '\101'` in
   14427  A) # ASCII based system
   14428     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   14429   lt_SP2NL='tr \040 \012'
   14430   lt_NL2SP='tr \015\012 \040\040'
   14431   ;;
   14432  *) # EBCDIC based system
   14433   lt_SP2NL='tr \100 \n'
   14434   lt_NL2SP='tr \r\n \100\100'
   14435   ;;
   14436 esac
   14437 
   14438 
   14439 
   14440 
   14441 
   14442 
   14443 
   14444 
   14445 
   14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   14447 $as_echo_n "checking for $LD option to reload object files... " >&6; }
   14448 if ${lt_cv_ld_reload_flag+:} false; then :
   14449   $as_echo_n "(cached) " >&6
   14450 else
   14451   lt_cv_ld_reload_flag='-r'
   14452 fi
   14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   14454 $as_echo "$lt_cv_ld_reload_flag" >&6; }
   14455 reload_flag=$lt_cv_ld_reload_flag
   14456 case $reload_flag in
   14457 "" | " "*) ;;
   14458 *) reload_flag=" $reload_flag" ;;
   14459 esac
   14460 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   14461 case $host_os in
   14462   darwin*)
   14463     if test "$GCC" = yes; then
   14464       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
   14465     else
   14466       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   14467     fi
   14468     ;;
   14469 esac
   14470 
   14471 
   14472 
   14473 
   14474 
   14475 
   14476 
   14477 
   14478 
   14479 if test -n "$ac_tool_prefix"; then
   14480   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   14481 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14483 $as_echo_n "checking for $ac_word... " >&6; }
   14484 if ${ac_cv_prog_OBJDUMP+:} false; then :
   14485   $as_echo_n "(cached) " >&6
   14486 else
   14487   if test -n "$OBJDUMP"; then
   14488   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   14489 else
   14490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14491 for as_dir in $PATH
   14492 do
   14493   IFS=$as_save_IFS
   14494   test -z "$as_dir" && as_dir=.
   14495     for ac_exec_ext in '' $ac_executable_extensions; do
   14496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14497     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   14498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14499     break 2
   14500   fi
   14501 done
   14502   done
   14503 IFS=$as_save_IFS
   14504 
   14505 fi
   14506 fi
   14507 OBJDUMP=$ac_cv_prog_OBJDUMP
   14508 if test -n "$OBJDUMP"; then
   14509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   14510 $as_echo "$OBJDUMP" >&6; }
   14511 else
   14512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14513 $as_echo "no" >&6; }
   14514 fi
   14515 
   14516 
   14517 fi
   14518 if test -z "$ac_cv_prog_OBJDUMP"; then
   14519   ac_ct_OBJDUMP=$OBJDUMP
   14520   # Extract the first word of "objdump", so it can be a program name with args.
   14521 set dummy objdump; ac_word=$2
   14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14523 $as_echo_n "checking for $ac_word... " >&6; }
   14524 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   14525   $as_echo_n "(cached) " >&6
   14526 else
   14527   if test -n "$ac_ct_OBJDUMP"; then
   14528   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   14529 else
   14530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14531 for as_dir in $PATH
   14532 do
   14533   IFS=$as_save_IFS
   14534   test -z "$as_dir" && as_dir=.
   14535     for ac_exec_ext in '' $ac_executable_extensions; do
   14536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14537     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   14538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14539     break 2
   14540   fi
   14541 done
   14542   done
   14543 IFS=$as_save_IFS
   14544 
   14545 fi
   14546 fi
   14547 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   14548 if test -n "$ac_ct_OBJDUMP"; then
   14549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   14550 $as_echo "$ac_ct_OBJDUMP" >&6; }
   14551 else
   14552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14553 $as_echo "no" >&6; }
   14554 fi
   14555 
   14556   if test "x$ac_ct_OBJDUMP" = x; then
   14557     OBJDUMP="false"
   14558   else
   14559     case $cross_compiling:$ac_tool_warned in
   14560 yes:)
   14561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14563 ac_tool_warned=yes ;;
   14564 esac
   14565     OBJDUMP=$ac_ct_OBJDUMP
   14566   fi
   14567 else
   14568   OBJDUMP="$ac_cv_prog_OBJDUMP"
   14569 fi
   14570 
   14571 test -z "$OBJDUMP" && OBJDUMP=objdump
   14572 
   14573 
   14574 
   14575 
   14576 
   14577 
   14578 
   14579 
   14580 
   14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   14582 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   14583 if ${lt_cv_deplibs_check_method+:} false; then :
   14584   $as_echo_n "(cached) " >&6
   14585 else
   14586   lt_cv_file_magic_cmd='$MAGIC_CMD'
   14587 lt_cv_file_magic_test_file=
   14588 lt_cv_deplibs_check_method='unknown'
   14589 # Need to set the preceding variable on all platforms that support
   14590 # interlibrary dependencies.
   14591 # 'none' -- dependencies not supported.
   14592 # `unknown' -- same as none, but documents that we really don't know.
   14593 # 'pass_all' -- all dependencies passed with no checks.
   14594 # 'test_compile' -- check by making test program.
   14595 # 'file_magic [[regex]]' -- check by looking for files in library path
   14596 # which responds to the $file_magic_cmd with a given extended regex.
   14597 # If you have `file' or equivalent on your system and you're not sure
   14598 # whether `pass_all' will *always* work, you probably want this one.
   14599 
   14600 case $host_os in
   14601 aix[4-9]*)
   14602   lt_cv_deplibs_check_method=pass_all
   14603   ;;
   14604 
   14605 beos*)
   14606   lt_cv_deplibs_check_method=pass_all
   14607   ;;
   14608 
   14609 bsdi[45]*)
   14610   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   14611   lt_cv_file_magic_cmd='/usr/bin/file -L'
   14612   lt_cv_file_magic_test_file=/shlib/libc.so
   14613   ;;
   14614 
   14615 cygwin*)
   14616   # func_win32_libid is a shell function defined in ltmain.sh
   14617   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   14618   lt_cv_file_magic_cmd='func_win32_libid'
   14619   ;;
   14620 
   14621 mingw* | pw32*)
   14622   # Base MSYS/MinGW do not provide the 'file' command needed by
   14623   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   14624   # unless we find 'file', for example because we are cross-compiling.
   14625   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
   14626   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
   14627     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   14628     lt_cv_file_magic_cmd='func_win32_libid'
   14629   else
   14630     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
   14631     lt_cv_file_magic_cmd='$OBJDUMP -f'
   14632   fi
   14633   ;;
   14634 
   14635 cegcc*)
   14636   # use the weaker test based on 'objdump'. See mingw*.
   14637   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   14638   lt_cv_file_magic_cmd='$OBJDUMP -f'
   14639   ;;
   14640 
   14641 darwin* | rhapsody*)
   14642   lt_cv_deplibs_check_method=pass_all
   14643   ;;
   14644 
   14645 freebsd* | dragonfly*)
   14646   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   14647     case $host_cpu in
   14648     i*86 )
   14649       # Not sure whether the presence of OpenBSD here was a mistake.
   14650       # Let's accept both of them until this is cleared up.
   14651       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   14652       lt_cv_file_magic_cmd=/usr/bin/file
   14653       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   14654       ;;
   14655     esac
   14656   else
   14657     lt_cv_deplibs_check_method=pass_all
   14658   fi
   14659   ;;
   14660 
   14661 gnu*)
   14662   lt_cv_deplibs_check_method=pass_all
   14663   ;;
   14664 
   14665 haiku*)
   14666   lt_cv_deplibs_check_method=pass_all
   14667   ;;
   14668 
   14669 hpux10.20* | hpux11*)
   14670   lt_cv_file_magic_cmd=/usr/bin/file
   14671   case $host_cpu in
   14672   ia64*)
   14673     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   14674     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   14675     ;;
   14676   hppa*64*)
   14677     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]'
   14678     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   14679     ;;
   14680   *)
   14681     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   14682     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   14683     ;;
   14684   esac
   14685   ;;
   14686 
   14687 interix[3-9]*)
   14688   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   14689   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   14690   ;;
   14691 
   14692 irix5* | irix6* | nonstopux*)
   14693   case $LD in
   14694   *-32|*"-32 ") libmagic=32-bit;;
   14695   *-n32|*"-n32 ") libmagic=N32;;
   14696   *-64|*"-64 ") libmagic=64-bit;;
   14697   *) libmagic=never-match;;
   14698   esac
   14699   lt_cv_deplibs_check_method=pass_all
   14700   ;;
   14701 
   14702 # This must be Linux ELF.
   14703 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
   14704   lt_cv_deplibs_check_method=pass_all
   14705   ;;
   14706 
   14707 netbsd*)
   14708   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   14709     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   14710   else
   14711     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   14712   fi
   14713   ;;
   14714 
   14715 newos6*)
   14716   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   14717   lt_cv_file_magic_cmd=/usr/bin/file
   14718   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   14719   ;;
   14720 
   14721 *nto* | *qnx*)
   14722   lt_cv_deplibs_check_method=pass_all
   14723   ;;
   14724 
   14725 openbsd*)
   14726   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   14727     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   14728   else
   14729     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   14730   fi
   14731   ;;
   14732 
   14733 osf3* | osf4* | osf5*)
   14734   lt_cv_deplibs_check_method=pass_all
   14735   ;;
   14736 
   14737 rdos*)
   14738   lt_cv_deplibs_check_method=pass_all
   14739   ;;
   14740 
   14741 solaris*)
   14742   lt_cv_deplibs_check_method=pass_all
   14743   ;;
   14744 
   14745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   14746   lt_cv_deplibs_check_method=pass_all
   14747   ;;
   14748 
   14749 sysv4 | sysv4.3*)
   14750   case $host_vendor in
   14751   motorola)
   14752     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]'
   14753     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   14754     ;;
   14755   ncr)
   14756     lt_cv_deplibs_check_method=pass_all
   14757     ;;
   14758   sequent)
   14759     lt_cv_file_magic_cmd='/bin/file'
   14760     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   14761     ;;
   14762   sni)
   14763     lt_cv_file_magic_cmd='/bin/file'
   14764     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   14765     lt_cv_file_magic_test_file=/lib/libc.so
   14766     ;;
   14767   siemens)
   14768     lt_cv_deplibs_check_method=pass_all
   14769     ;;
   14770   pc)
   14771     lt_cv_deplibs_check_method=pass_all
   14772     ;;
   14773   esac
   14774   ;;
   14775 
   14776 tpf*)
   14777   lt_cv_deplibs_check_method=pass_all
   14778   ;;
   14779 esac
   14780 
   14781 fi
   14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   14783 $as_echo "$lt_cv_deplibs_check_method" >&6; }
   14784 file_magic_cmd=$lt_cv_file_magic_cmd
   14785 deplibs_check_method=$lt_cv_deplibs_check_method
   14786 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   14787 
   14788 
   14789 
   14790 
   14791 
   14792 
   14793 
   14794 
   14795 
   14796 
   14797 
   14798 
   14799 if test -n "$ac_tool_prefix"; then
   14800   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   14801 set dummy ${ac_tool_prefix}ar; ac_word=$2
   14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14803 $as_echo_n "checking for $ac_word... " >&6; }
   14804 if ${ac_cv_prog_AR+:} false; then :
   14805   $as_echo_n "(cached) " >&6
   14806 else
   14807   if test -n "$AR"; then
   14808   ac_cv_prog_AR="$AR" # Let the user override the test.
   14809 else
   14810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14811 for as_dir in $PATH
   14812 do
   14813   IFS=$as_save_IFS
   14814   test -z "$as_dir" && as_dir=.
   14815     for ac_exec_ext in '' $ac_executable_extensions; do
   14816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14817     ac_cv_prog_AR="${ac_tool_prefix}ar"
   14818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14819     break 2
   14820   fi
   14821 done
   14822   done
   14823 IFS=$as_save_IFS
   14824 
   14825 fi
   14826 fi
   14827 AR=$ac_cv_prog_AR
   14828 if test -n "$AR"; then
   14829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   14830 $as_echo "$AR" >&6; }
   14831 else
   14832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14833 $as_echo "no" >&6; }
   14834 fi
   14835 
   14836 
   14837 fi
   14838 if test -z "$ac_cv_prog_AR"; then
   14839   ac_ct_AR=$AR
   14840   # Extract the first word of "ar", so it can be a program name with args.
   14841 set dummy ar; ac_word=$2
   14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14843 $as_echo_n "checking for $ac_word... " >&6; }
   14844 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   14845   $as_echo_n "(cached) " >&6
   14846 else
   14847   if test -n "$ac_ct_AR"; then
   14848   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   14849 else
   14850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14851 for as_dir in $PATH
   14852 do
   14853   IFS=$as_save_IFS
   14854   test -z "$as_dir" && as_dir=.
   14855     for ac_exec_ext in '' $ac_executable_extensions; do
   14856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14857     ac_cv_prog_ac_ct_AR="ar"
   14858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14859     break 2
   14860   fi
   14861 done
   14862   done
   14863 IFS=$as_save_IFS
   14864 
   14865 fi
   14866 fi
   14867 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   14868 if test -n "$ac_ct_AR"; then
   14869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   14870 $as_echo "$ac_ct_AR" >&6; }
   14871 else
   14872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14873 $as_echo "no" >&6; }
   14874 fi
   14875 
   14876   if test "x$ac_ct_AR" = x; then
   14877     AR="false"
   14878   else
   14879     case $cross_compiling:$ac_tool_warned in
   14880 yes:)
   14881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14883 ac_tool_warned=yes ;;
   14884 esac
   14885     AR=$ac_ct_AR
   14886   fi
   14887 else
   14888   AR="$ac_cv_prog_AR"
   14889 fi
   14890 
   14891 test -z "$AR" && AR=ar
   14892 test -z "$AR_FLAGS" && AR_FLAGS=cru
   14893 
   14894 
   14895 
   14896 
   14897 
   14898 
   14899 
   14900 
   14901 
   14902 
   14903 
   14904 if test -n "$ac_tool_prefix"; then
   14905   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   14906 set dummy ${ac_tool_prefix}strip; ac_word=$2
   14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14908 $as_echo_n "checking for $ac_word... " >&6; }
   14909 if ${ac_cv_prog_STRIP+:} false; then :
   14910   $as_echo_n "(cached) " >&6
   14911 else
   14912   if test -n "$STRIP"; then
   14913   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   14914 else
   14915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14916 for as_dir in $PATH
   14917 do
   14918   IFS=$as_save_IFS
   14919   test -z "$as_dir" && as_dir=.
   14920     for ac_exec_ext in '' $ac_executable_extensions; do
   14921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14922     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   14923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14924     break 2
   14925   fi
   14926 done
   14927   done
   14928 IFS=$as_save_IFS
   14929 
   14930 fi
   14931 fi
   14932 STRIP=$ac_cv_prog_STRIP
   14933 if test -n "$STRIP"; then
   14934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   14935 $as_echo "$STRIP" >&6; }
   14936 else
   14937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14938 $as_echo "no" >&6; }
   14939 fi
   14940 
   14941 
   14942 fi
   14943 if test -z "$ac_cv_prog_STRIP"; then
   14944   ac_ct_STRIP=$STRIP
   14945   # Extract the first word of "strip", so it can be a program name with args.
   14946 set dummy strip; ac_word=$2
   14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14948 $as_echo_n "checking for $ac_word... " >&6; }
   14949 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   14950   $as_echo_n "(cached) " >&6
   14951 else
   14952   if test -n "$ac_ct_STRIP"; then
   14953   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   14954 else
   14955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14956 for as_dir in $PATH
   14957 do
   14958   IFS=$as_save_IFS
   14959   test -z "$as_dir" && as_dir=.
   14960     for ac_exec_ext in '' $ac_executable_extensions; do
   14961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14962     ac_cv_prog_ac_ct_STRIP="strip"
   14963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14964     break 2
   14965   fi
   14966 done
   14967   done
   14968 IFS=$as_save_IFS
   14969 
   14970 fi
   14971 fi
   14972 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   14973 if test -n "$ac_ct_STRIP"; then
   14974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   14975 $as_echo "$ac_ct_STRIP" >&6; }
   14976 else
   14977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14978 $as_echo "no" >&6; }
   14979 fi
   14980 
   14981   if test "x$ac_ct_STRIP" = x; then
   14982     STRIP=":"
   14983   else
   14984     case $cross_compiling:$ac_tool_warned in
   14985 yes:)
   14986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14988 ac_tool_warned=yes ;;
   14989 esac
   14990     STRIP=$ac_ct_STRIP
   14991   fi
   14992 else
   14993   STRIP="$ac_cv_prog_STRIP"
   14994 fi
   14995 
   14996 test -z "$STRIP" && STRIP=:
   14997 
   14998 
   14999 
   15000 
   15001 
   15002 
   15003 if test -n "$ac_tool_prefix"; then
   15004   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   15005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15007 $as_echo_n "checking for $ac_word... " >&6; }
   15008 if ${ac_cv_prog_RANLIB+:} false; then :
   15009   $as_echo_n "(cached) " >&6
   15010 else
   15011   if test -n "$RANLIB"; then
   15012   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   15013 else
   15014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15015 for as_dir in $PATH
   15016 do
   15017   IFS=$as_save_IFS
   15018   test -z "$as_dir" && as_dir=.
   15019     for ac_exec_ext in '' $ac_executable_extensions; do
   15020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15021     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   15022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15023     break 2
   15024   fi
   15025 done
   15026   done
   15027 IFS=$as_save_IFS
   15028 
   15029 fi
   15030 fi
   15031 RANLIB=$ac_cv_prog_RANLIB
   15032 if test -n "$RANLIB"; then
   15033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   15034 $as_echo "$RANLIB" >&6; }
   15035 else
   15036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15037 $as_echo "no" >&6; }
   15038 fi
   15039 
   15040 
   15041 fi
   15042 if test -z "$ac_cv_prog_RANLIB"; then
   15043   ac_ct_RANLIB=$RANLIB
   15044   # Extract the first word of "ranlib", so it can be a program name with args.
   15045 set dummy ranlib; ac_word=$2
   15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15047 $as_echo_n "checking for $ac_word... " >&6; }
   15048 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   15049   $as_echo_n "(cached) " >&6
   15050 else
   15051   if test -n "$ac_ct_RANLIB"; then
   15052   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   15053 else
   15054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15055 for as_dir in $PATH
   15056 do
   15057   IFS=$as_save_IFS
   15058   test -z "$as_dir" && as_dir=.
   15059     for ac_exec_ext in '' $ac_executable_extensions; do
   15060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15061     ac_cv_prog_ac_ct_RANLIB="ranlib"
   15062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15063     break 2
   15064   fi
   15065 done
   15066   done
   15067 IFS=$as_save_IFS
   15068 
   15069 fi
   15070 fi
   15071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   15072 if test -n "$ac_ct_RANLIB"; then
   15073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   15074 $as_echo "$ac_ct_RANLIB" >&6; }
   15075 else
   15076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15077 $as_echo "no" >&6; }
   15078 fi
   15079 
   15080   if test "x$ac_ct_RANLIB" = x; then
   15081     RANLIB=":"
   15082   else
   15083     case $cross_compiling:$ac_tool_warned in
   15084 yes:)
   15085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   15086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   15087 ac_tool_warned=yes ;;
   15088 esac
   15089     RANLIB=$ac_ct_RANLIB
   15090   fi
   15091 else
   15092   RANLIB="$ac_cv_prog_RANLIB"
   15093 fi
   15094 
   15095 test -z "$RANLIB" && RANLIB=:
   15096 
   15097 
   15098 
   15099 
   15100 
   15101 
   15102 # Determine commands to create old-style static archives.
   15103 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   15104 old_postinstall_cmds='chmod 644 $oldlib'
   15105 old_postuninstall_cmds=
   15106 
   15107 if test -n "$RANLIB"; then
   15108   case $host_os in
   15109   openbsd*)
   15110     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
   15111     ;;
   15112   *)
   15113     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
   15114     ;;
   15115   esac
   15116   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   15117 fi
   15118 
   15119 case $host_os in
   15120   darwin*)
   15121     lock_old_archive_extraction=yes ;;
   15122   *)
   15123     lock_old_archive_extraction=no ;;
   15124 esac
   15125 
   15126 
   15127 
   15128 
   15129 
   15130 
   15131 
   15132 
   15133 
   15134 
   15135 
   15136 
   15137 
   15138 
   15139 
   15140 
   15141 
   15142 
   15143 
   15144 
   15145 
   15146 
   15147 
   15148 
   15149 
   15150 
   15151 
   15152 
   15153 
   15154 
   15155 
   15156 
   15157 
   15158 
   15159 
   15160 
   15161 
   15162 
   15163 
   15164 # If no C compiler was specified, use CC.
   15165 LTCC=${LTCC-"$CC"}
   15166 
   15167 # If no C compiler flags were specified, use CFLAGS.
   15168 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   15169 
   15170 # Allow CC to be a program name with arguments.
   15171 compiler=$CC
   15172 
   15173 
   15174 # Check for command to grab the raw symbol name followed by C symbol from nm.
   15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   15176 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   15177 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   15178   $as_echo_n "(cached) " >&6
   15179 else
   15180 
   15181 # These are sane defaults that work on at least a few old systems.
   15182 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   15183 
   15184 # Character class describing NM global symbol codes.
   15185 symcode='[BCDEGRST]'
   15186 
   15187 # Regexp to match symbols that can be accessed directly from C.
   15188 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   15189 
   15190 # Define system-specific variables.
   15191 case $host_os in
   15192 aix*)
   15193   symcode='[BCDT]'
   15194   ;;
   15195 cygwin* | mingw* | pw32* | cegcc*)
   15196   symcode='[ABCDGISTW]'
   15197   ;;
   15198 hpux*)
   15199   if test "$host_cpu" = ia64; then
   15200     symcode='[ABCDEGRST]'
   15201   fi
   15202   ;;
   15203 irix* | nonstopux*)
   15204   symcode='[BCDEGRST]'
   15205   ;;
   15206 osf*)
   15207   symcode='[BCDEGQRST]'
   15208   ;;
   15209 solaris*)
   15210   symcode='[BDRT]'
   15211   ;;
   15212 sco3.2v5*)
   15213   symcode='[DT]'
   15214   ;;
   15215 sysv4.2uw2*)
   15216   symcode='[DT]'
   15217   ;;
   15218 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   15219   symcode='[ABDT]'
   15220   ;;
   15221 sysv4)
   15222   symcode='[DFNSTU]'
   15223   ;;
   15224 esac
   15225 
   15226 # If we're using GNU nm, then use its standard symbol codes.
   15227 case `$NM -V 2>&1` in
   15228 *GNU* | *'with BFD'*)
   15229   symcode='[ABCDGIRSTW]' ;;
   15230 esac
   15231 
   15232 # Transform an extracted symbol line into a proper C declaration.
   15233 # Some systems (esp. on ia64) link data and code symbols differently,
   15234 # so use this general approach.
   15235 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   15236 
   15237 # Transform an extracted symbol line into symbol name and symbol address
   15238 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
   15239 lt_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'"
   15240 
   15241 # Handle CRLF in mingw tool chain
   15242 opt_cr=
   15243 case $build_os in
   15244 mingw*)
   15245   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   15246   ;;
   15247 esac
   15248 
   15249 # Try without a prefix underscore, then with it.
   15250 for ac_symprfx in "" "_"; do
   15251 
   15252   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   15253   symxfrm="\\1 $ac_symprfx\\2 \\2"
   15254 
   15255   # Write the raw and C identifiers.
   15256   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   15257     # Fake it for dumpbin and say T for any non-static function
   15258     # and D for any global variable.
   15259     # Also find C++ and __fastcall symbols from MSVC++,
   15260     # which start with @ or ?.
   15261     lt_cv_sys_global_symbol_pipe="$AWK '"\
   15262 "     {last_section=section; section=\$ 3};"\
   15263 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   15264 "     \$ 0!~/External *\|/{next};"\
   15265 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   15266 "     {if(hide[section]) next};"\
   15267 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
   15268 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
   15269 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
   15270 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
   15271 "     ' prfx=^$ac_symprfx"
   15272   else
   15273     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   15274   fi
   15275 
   15276   # Check to see that the pipe works correctly.
   15277   pipe_works=no
   15278 
   15279   rm -f conftest*
   15280   cat > conftest.$ac_ext <<_LT_EOF
   15281 #ifdef __cplusplus
   15282 extern "C" {
   15283 #endif
   15284 char nm_test_var;
   15285 void nm_test_func(void);
   15286 void nm_test_func(void){}
   15287 #ifdef __cplusplus
   15288 }
   15289 #endif
   15290 int main(){nm_test_var='a';nm_test_func();return(0);}
   15291 _LT_EOF
   15292 
   15293   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   15294   (eval $ac_compile) 2>&5
   15295   ac_status=$?
   15296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15297   test $ac_status = 0; }; then
   15298     # Now try to grab the symbols.
   15299     nlist=conftest.nm
   15300     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   15301   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   15302   ac_status=$?
   15303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15304   test $ac_status = 0; } && test -s "$nlist"; then
   15305       # Try sorting and uniquifying the output.
   15306       if sort "$nlist" | uniq > "$nlist"T; then
   15307 	mv -f "$nlist"T "$nlist"
   15308       else
   15309 	rm -f "$nlist"T
   15310       fi
   15311 
   15312       # Make sure that we snagged all the symbols we need.
   15313       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   15314 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   15315 	  cat <<_LT_EOF > conftest.$ac_ext
   15316 #ifdef __cplusplus
   15317 extern "C" {
   15318 #endif
   15319 
   15320 _LT_EOF
   15321 	  # Now generate the symbol file.
   15322 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   15323 
   15324 	  cat <<_LT_EOF >> conftest.$ac_ext
   15325 
   15326 /* The mapping between symbol names and symbols.  */
   15327 const struct {
   15328   const char *name;
   15329   void       *address;
   15330 }
   15331 lt__PROGRAM__LTX_preloaded_symbols[] =
   15332 {
   15333   { "@PROGRAM@", (void *) 0 },
   15334 _LT_EOF
   15335 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   15336 	  cat <<\_LT_EOF >> conftest.$ac_ext
   15337   {0, (void *) 0}
   15338 };
   15339 
   15340 /* This works around a problem in FreeBSD linker */
   15341 #ifdef FREEBSD_WORKAROUND
   15342 static const void *lt_preloaded_setup() {
   15343   return lt__PROGRAM__LTX_preloaded_symbols;
   15344 }
   15345 #endif
   15346 
   15347 #ifdef __cplusplus
   15348 }
   15349 #endif
   15350 _LT_EOF
   15351 	  # Now try linking the two files.
   15352 	  mv conftest.$ac_objext conftstm.$ac_objext
   15353 	  lt_save_LIBS="$LIBS"
   15354 	  lt_save_CFLAGS="$CFLAGS"
   15355 	  LIBS="conftstm.$ac_objext"
   15356 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   15357 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   15358   (eval $ac_link) 2>&5
   15359   ac_status=$?
   15360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15361   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
   15362 	    pipe_works=yes
   15363 	  fi
   15364 	  LIBS="$lt_save_LIBS"
   15365 	  CFLAGS="$lt_save_CFLAGS"
   15366 	else
   15367 	  echo "cannot find nm_test_func in $nlist" >&5
   15368 	fi
   15369       else
   15370 	echo "cannot find nm_test_var in $nlist" >&5
   15371       fi
   15372     else
   15373       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   15374     fi
   15375   else
   15376     echo "$progname: failed program was:" >&5
   15377     cat conftest.$ac_ext >&5
   15378   fi
   15379   rm -rf conftest* conftst*
   15380 
   15381   # Do not use the global_symbol_pipe unless it works.
   15382   if test "$pipe_works" = yes; then
   15383     break
   15384   else
   15385     lt_cv_sys_global_symbol_pipe=
   15386   fi
   15387 done
   15388 
   15389 fi
   15390 
   15391 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   15392   lt_cv_sys_global_symbol_to_cdecl=
   15393 fi
   15394 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   15395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   15396 $as_echo "failed" >&6; }
   15397 else
   15398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   15399 $as_echo "ok" >&6; }
   15400 fi
   15401 
   15402 
   15403 
   15404 
   15405 
   15406 
   15407 
   15408 
   15409 
   15410 
   15411 
   15412 
   15413 
   15414 
   15415 
   15416 
   15417 
   15418 
   15419 
   15420 
   15421 
   15422 
   15423 # Check whether --enable-libtool-lock was given.
   15424 if test "${enable_libtool_lock+set}" = set; then :
   15425   enableval=$enable_libtool_lock;
   15426 fi
   15427 
   15428 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   15429 
   15430 # Some flags need to be propagated to the compiler or linker for good
   15431 # libtool support.
   15432 case $host in
   15433 ia64-*-hpux*)
   15434   # Find out which ABI we are using.
   15435   echo 'int i;' > conftest.$ac_ext
   15436   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   15437   (eval $ac_compile) 2>&5
   15438   ac_status=$?
   15439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15440   test $ac_status = 0; }; then
   15441     case `/usr/bin/file conftest.$ac_objext` in
   15442       *ELF-32*)
   15443 	HPUX_IA64_MODE="32"
   15444 	;;
   15445       *ELF-64*)
   15446 	HPUX_IA64_MODE="64"
   15447 	;;
   15448     esac
   15449   fi
   15450   rm -rf conftest*
   15451   ;;
   15452 *-*-irix6*)
   15453   # Find out which ABI we are using.
   15454   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   15455   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   15456   (eval $ac_compile) 2>&5
   15457   ac_status=$?
   15458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15459   test $ac_status = 0; }; then
   15460     if test "$lt_cv_prog_gnu_ld" = yes; then
   15461       case `/usr/bin/file conftest.$ac_objext` in
   15462 	*32-bit*)
   15463 	  LD="${LD-ld} -melf32bsmip"
   15464 	  ;;
   15465 	*N32*)
   15466 	  LD="${LD-ld} -melf32bmipn32"
   15467 	  ;;
   15468 	*64-bit*)
   15469 	  LD="${LD-ld} -melf64bmip"
   15470 	;;
   15471       esac
   15472     else
   15473       case `/usr/bin/file conftest.$ac_objext` in
   15474 	*32-bit*)
   15475 	  LD="${LD-ld} -32"
   15476 	  ;;
   15477 	*N32*)
   15478 	  LD="${LD-ld} -n32"
   15479 	  ;;
   15480 	*64-bit*)
   15481 	  LD="${LD-ld} -64"
   15482 	  ;;
   15483       esac
   15484     fi
   15485   fi
   15486   rm -rf conftest*
   15487   ;;
   15488 
   15489 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   15490 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   15491   # Find out which ABI we are using.
   15492   echo 'int i;' > conftest.$ac_ext
   15493   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   15494   (eval $ac_compile) 2>&5
   15495   ac_status=$?
   15496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15497   test $ac_status = 0; }; then
   15498     case `/usr/bin/file conftest.o` in
   15499       *32-bit*)
   15500 	case $host in
   15501 	  x86_64-*kfreebsd*-gnu)
   15502 	    LD="${LD-ld} -m elf_i386_fbsd"
   15503 	    ;;
   15504 	  x86_64-*linux*)
   15505 	    case `/usr/bin/file conftest.o` in
   15506 	      *x86-64*)
   15507 		LD="${LD-ld} -m elf32_x86_64"
   15508 		;;
   15509 	      *)
   15510 		LD="${LD-ld} -m elf_i386"
   15511 		;;
   15512 	    esac
   15513 	    ;;
   15514 	  powerpc64le-*linux*)
   15515 	    LD="${LD-ld} -m elf32lppclinux"
   15516 	    ;;
   15517 	  powerpc64-*linux*)
   15518 	    LD="${LD-ld} -m elf32ppclinux"
   15519 	    ;;
   15520 	  s390x-*linux*)
   15521 	    LD="${LD-ld} -m elf_s390"
   15522 	    ;;
   15523 	  sparc64-*linux*)
   15524 	    LD="${LD-ld} -m elf32_sparc"
   15525 	    ;;
   15526 	esac
   15527 	;;
   15528       *64-bit*)
   15529 	case $host in
   15530 	  x86_64-*kfreebsd*-gnu)
   15531 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   15532 	    ;;
   15533 	  x86_64-*linux*)
   15534 	    LD="${LD-ld} -m elf_x86_64"
   15535 	    ;;
   15536 	  powerpcle-*linux*)
   15537 	    LD="${LD-ld} -m elf64lppc"
   15538 	    ;;
   15539 	  powerpc-*linux*)
   15540 	    LD="${LD-ld} -m elf64ppc"
   15541 	    ;;
   15542 	  s390*-*linux*|s390*-*tpf*)
   15543 	    LD="${LD-ld} -m elf64_s390"
   15544 	    ;;
   15545 	  sparc*-*linux*)
   15546 	    LD="${LD-ld} -m elf64_sparc"
   15547 	    ;;
   15548 	esac
   15549 	;;
   15550     esac
   15551   fi
   15552   rm -rf conftest*
   15553   ;;
   15554 
   15555 *-*-sco3.2v5*)
   15556   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   15557   SAVE_CFLAGS="$CFLAGS"
   15558   CFLAGS="$CFLAGS -belf"
   15559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   15560 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   15561 if ${lt_cv_cc_needs_belf+:} false; then :
   15562   $as_echo_n "(cached) " >&6
   15563 else
   15564   ac_ext=c
   15565 ac_cpp='$CPP $CPPFLAGS'
   15566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15569 
   15570      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15571 /* end confdefs.h.  */
   15572 
   15573 int
   15574 main ()
   15575 {
   15576 
   15577   ;
   15578   return 0;
   15579 }
   15580 _ACEOF
   15581 if ac_fn_c_try_link "$LINENO"; then :
   15582   lt_cv_cc_needs_belf=yes
   15583 else
   15584   lt_cv_cc_needs_belf=no
   15585 fi
   15586 rm -f core conftest.err conftest.$ac_objext \
   15587     conftest$ac_exeext conftest.$ac_ext
   15588      ac_ext=c
   15589 ac_cpp='$CPP $CPPFLAGS'
   15590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15593 
   15594 fi
   15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   15596 $as_echo "$lt_cv_cc_needs_belf" >&6; }
   15597   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
   15598     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   15599     CFLAGS="$SAVE_CFLAGS"
   15600   fi
   15601   ;;
   15602 sparc*-*solaris*)
   15603   # Find out which ABI we are using.
   15604   echo 'int i;' > conftest.$ac_ext
   15605   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   15606   (eval $ac_compile) 2>&5
   15607   ac_status=$?
   15608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15609   test $ac_status = 0; }; then
   15610     case `/usr/bin/file conftest.o` in
   15611     *64-bit*)
   15612       case $lt_cv_prog_gnu_ld in
   15613       yes*) LD="${LD-ld} -m elf64_sparc" ;;
   15614       *)
   15615 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   15616 	  LD="${LD-ld} -64"
   15617 	fi
   15618 	;;
   15619       esac
   15620       ;;
   15621     esac
   15622   fi
   15623   rm -rf conftest*
   15624   ;;
   15625 esac
   15626 
   15627 need_locks="$enable_libtool_lock"
   15628 
   15629 
   15630   case $host_os in
   15631     rhapsody* | darwin*)
   15632     if test -n "$ac_tool_prefix"; then
   15633   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   15634 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15636 $as_echo_n "checking for $ac_word... " >&6; }
   15637 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   15638   $as_echo_n "(cached) " >&6
   15639 else
   15640   if test -n "$DSYMUTIL"; then
   15641   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   15642 else
   15643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15644 for as_dir in $PATH
   15645 do
   15646   IFS=$as_save_IFS
   15647   test -z "$as_dir" && as_dir=.
   15648     for ac_exec_ext in '' $ac_executable_extensions; do
   15649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15650     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   15651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15652     break 2
   15653   fi
   15654 done
   15655   done
   15656 IFS=$as_save_IFS
   15657 
   15658 fi
   15659 fi
   15660 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   15661 if test -n "$DSYMUTIL"; then
   15662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   15663 $as_echo "$DSYMUTIL" >&6; }
   15664 else
   15665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15666 $as_echo "no" >&6; }
   15667 fi
   15668 
   15669 
   15670 fi
   15671 if test -z "$ac_cv_prog_DSYMUTIL"; then
   15672   ac_ct_DSYMUTIL=$DSYMUTIL
   15673   # Extract the first word of "dsymutil", so it can be a program name with args.
   15674 set dummy dsymutil; ac_word=$2
   15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15676 $as_echo_n "checking for $ac_word... " >&6; }
   15677 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   15678   $as_echo_n "(cached) " >&6
   15679 else
   15680   if test -n "$ac_ct_DSYMUTIL"; then
   15681   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   15682 else
   15683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15684 for as_dir in $PATH
   15685 do
   15686   IFS=$as_save_IFS
   15687   test -z "$as_dir" && as_dir=.
   15688     for ac_exec_ext in '' $ac_executable_extensions; do
   15689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15690     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   15691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15692     break 2
   15693   fi
   15694 done
   15695   done
   15696 IFS=$as_save_IFS
   15697 
   15698 fi
   15699 fi
   15700 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   15701 if test -n "$ac_ct_DSYMUTIL"; then
   15702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   15703 $as_echo "$ac_ct_DSYMUTIL" >&6; }
   15704 else
   15705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15706 $as_echo "no" >&6; }
   15707 fi
   15708 
   15709   if test "x$ac_ct_DSYMUTIL" = x; then
   15710     DSYMUTIL=":"
   15711   else
   15712     case $cross_compiling:$ac_tool_warned in
   15713 yes:)
   15714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   15715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   15716 ac_tool_warned=yes ;;
   15717 esac
   15718     DSYMUTIL=$ac_ct_DSYMUTIL
   15719   fi
   15720 else
   15721   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   15722 fi
   15723 
   15724     if test -n "$ac_tool_prefix"; then
   15725   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   15726 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15728 $as_echo_n "checking for $ac_word... " >&6; }
   15729 if ${ac_cv_prog_NMEDIT+:} false; then :
   15730   $as_echo_n "(cached) " >&6
   15731 else
   15732   if test -n "$NMEDIT"; then
   15733   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   15734 else
   15735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15736 for as_dir in $PATH
   15737 do
   15738   IFS=$as_save_IFS
   15739   test -z "$as_dir" && as_dir=.
   15740     for ac_exec_ext in '' $ac_executable_extensions; do
   15741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15742     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   15743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15744     break 2
   15745   fi
   15746 done
   15747   done
   15748 IFS=$as_save_IFS
   15749 
   15750 fi
   15751 fi
   15752 NMEDIT=$ac_cv_prog_NMEDIT
   15753 if test -n "$NMEDIT"; then
   15754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   15755 $as_echo "$NMEDIT" >&6; }
   15756 else
   15757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15758 $as_echo "no" >&6; }
   15759 fi
   15760 
   15761 
   15762 fi
   15763 if test -z "$ac_cv_prog_NMEDIT"; then
   15764   ac_ct_NMEDIT=$NMEDIT
   15765   # Extract the first word of "nmedit", so it can be a program name with args.
   15766 set dummy nmedit; ac_word=$2
   15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15768 $as_echo_n "checking for $ac_word... " >&6; }
   15769 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   15770   $as_echo_n "(cached) " >&6
   15771 else
   15772   if test -n "$ac_ct_NMEDIT"; then
   15773   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   15774 else
   15775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15776 for as_dir in $PATH
   15777 do
   15778   IFS=$as_save_IFS
   15779   test -z "$as_dir" && as_dir=.
   15780     for ac_exec_ext in '' $ac_executable_extensions; do
   15781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15782     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   15783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15784     break 2
   15785   fi
   15786 done
   15787   done
   15788 IFS=$as_save_IFS
   15789 
   15790 fi
   15791 fi
   15792 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   15793 if test -n "$ac_ct_NMEDIT"; then
   15794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   15795 $as_echo "$ac_ct_NMEDIT" >&6; }
   15796 else
   15797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15798 $as_echo "no" >&6; }
   15799 fi
   15800 
   15801   if test "x$ac_ct_NMEDIT" = x; then
   15802     NMEDIT=":"
   15803   else
   15804     case $cross_compiling:$ac_tool_warned in
   15805 yes:)
   15806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   15807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   15808 ac_tool_warned=yes ;;
   15809 esac
   15810     NMEDIT=$ac_ct_NMEDIT
   15811   fi
   15812 else
   15813   NMEDIT="$ac_cv_prog_NMEDIT"
   15814 fi
   15815 
   15816     if test -n "$ac_tool_prefix"; then
   15817   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   15818 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15820 $as_echo_n "checking for $ac_word... " >&6; }
   15821 if ${ac_cv_prog_LIPO+:} false; then :
   15822   $as_echo_n "(cached) " >&6
   15823 else
   15824   if test -n "$LIPO"; then
   15825   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   15826 else
   15827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15828 for as_dir in $PATH
   15829 do
   15830   IFS=$as_save_IFS
   15831   test -z "$as_dir" && as_dir=.
   15832     for ac_exec_ext in '' $ac_executable_extensions; do
   15833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15834     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   15835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15836     break 2
   15837   fi
   15838 done
   15839   done
   15840 IFS=$as_save_IFS
   15841 
   15842 fi
   15843 fi
   15844 LIPO=$ac_cv_prog_LIPO
   15845 if test -n "$LIPO"; then
   15846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   15847 $as_echo "$LIPO" >&6; }
   15848 else
   15849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15850 $as_echo "no" >&6; }
   15851 fi
   15852 
   15853 
   15854 fi
   15855 if test -z "$ac_cv_prog_LIPO"; then
   15856   ac_ct_LIPO=$LIPO
   15857   # Extract the first word of "lipo", so it can be a program name with args.
   15858 set dummy lipo; ac_word=$2
   15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15860 $as_echo_n "checking for $ac_word... " >&6; }
   15861 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   15862   $as_echo_n "(cached) " >&6
   15863 else
   15864   if test -n "$ac_ct_LIPO"; then
   15865   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   15866 else
   15867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15868 for as_dir in $PATH
   15869 do
   15870   IFS=$as_save_IFS
   15871   test -z "$as_dir" && as_dir=.
   15872     for ac_exec_ext in '' $ac_executable_extensions; do
   15873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15874     ac_cv_prog_ac_ct_LIPO="lipo"
   15875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15876     break 2
   15877   fi
   15878 done
   15879   done
   15880 IFS=$as_save_IFS
   15881 
   15882 fi
   15883 fi
   15884 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   15885 if test -n "$ac_ct_LIPO"; then
   15886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   15887 $as_echo "$ac_ct_LIPO" >&6; }
   15888 else
   15889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15890 $as_echo "no" >&6; }
   15891 fi
   15892 
   15893   if test "x$ac_ct_LIPO" = x; then
   15894     LIPO=":"
   15895   else
   15896     case $cross_compiling:$ac_tool_warned in
   15897 yes:)
   15898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   15899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   15900 ac_tool_warned=yes ;;
   15901 esac
   15902     LIPO=$ac_ct_LIPO
   15903   fi
   15904 else
   15905   LIPO="$ac_cv_prog_LIPO"
   15906 fi
   15907 
   15908     if test -n "$ac_tool_prefix"; then
   15909   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   15910 set dummy ${ac_tool_prefix}otool; ac_word=$2
   15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15912 $as_echo_n "checking for $ac_word... " >&6; }
   15913 if ${ac_cv_prog_OTOOL+:} false; then :
   15914   $as_echo_n "(cached) " >&6
   15915 else
   15916   if test -n "$OTOOL"; then
   15917   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   15918 else
   15919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15920 for as_dir in $PATH
   15921 do
   15922   IFS=$as_save_IFS
   15923   test -z "$as_dir" && as_dir=.
   15924     for ac_exec_ext in '' $ac_executable_extensions; do
   15925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15926     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   15927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15928     break 2
   15929   fi
   15930 done
   15931   done
   15932 IFS=$as_save_IFS
   15933 
   15934 fi
   15935 fi
   15936 OTOOL=$ac_cv_prog_OTOOL
   15937 if test -n "$OTOOL"; then
   15938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   15939 $as_echo "$OTOOL" >&6; }
   15940 else
   15941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15942 $as_echo "no" >&6; }
   15943 fi
   15944 
   15945 
   15946 fi
   15947 if test -z "$ac_cv_prog_OTOOL"; then
   15948   ac_ct_OTOOL=$OTOOL
   15949   # Extract the first word of "otool", so it can be a program name with args.
   15950 set dummy otool; ac_word=$2
   15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15952 $as_echo_n "checking for $ac_word... " >&6; }
   15953 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   15954   $as_echo_n "(cached) " >&6
   15955 else
   15956   if test -n "$ac_ct_OTOOL"; then
   15957   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   15958 else
   15959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15960 for as_dir in $PATH
   15961 do
   15962   IFS=$as_save_IFS
   15963   test -z "$as_dir" && as_dir=.
   15964     for ac_exec_ext in '' $ac_executable_extensions; do
   15965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15966     ac_cv_prog_ac_ct_OTOOL="otool"
   15967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15968     break 2
   15969   fi
   15970 done
   15971   done
   15972 IFS=$as_save_IFS
   15973 
   15974 fi
   15975 fi
   15976 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   15977 if test -n "$ac_ct_OTOOL"; then
   15978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   15979 $as_echo "$ac_ct_OTOOL" >&6; }
   15980 else
   15981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15982 $as_echo "no" >&6; }
   15983 fi
   15984 
   15985   if test "x$ac_ct_OTOOL" = x; then
   15986     OTOOL=":"
   15987   else
   15988     case $cross_compiling:$ac_tool_warned in
   15989 yes:)
   15990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   15991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   15992 ac_tool_warned=yes ;;
   15993 esac
   15994     OTOOL=$ac_ct_OTOOL
   15995   fi
   15996 else
   15997   OTOOL="$ac_cv_prog_OTOOL"
   15998 fi
   15999 
   16000     if test -n "$ac_tool_prefix"; then
   16001   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   16002 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16004 $as_echo_n "checking for $ac_word... " >&6; }
   16005 if ${ac_cv_prog_OTOOL64+:} false; then :
   16006   $as_echo_n "(cached) " >&6
   16007 else
   16008   if test -n "$OTOOL64"; then
   16009   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   16010 else
   16011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16012 for as_dir in $PATH
   16013 do
   16014   IFS=$as_save_IFS
   16015   test -z "$as_dir" && as_dir=.
   16016     for ac_exec_ext in '' $ac_executable_extensions; do
   16017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16018     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   16019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16020     break 2
   16021   fi
   16022 done
   16023   done
   16024 IFS=$as_save_IFS
   16025 
   16026 fi
   16027 fi
   16028 OTOOL64=$ac_cv_prog_OTOOL64
   16029 if test -n "$OTOOL64"; then
   16030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   16031 $as_echo "$OTOOL64" >&6; }
   16032 else
   16033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16034 $as_echo "no" >&6; }
   16035 fi
   16036 
   16037 
   16038 fi
   16039 if test -z "$ac_cv_prog_OTOOL64"; then
   16040   ac_ct_OTOOL64=$OTOOL64
   16041   # Extract the first word of "otool64", so it can be a program name with args.
   16042 set dummy otool64; ac_word=$2
   16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16044 $as_echo_n "checking for $ac_word... " >&6; }
   16045 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   16046   $as_echo_n "(cached) " >&6
   16047 else
   16048   if test -n "$ac_ct_OTOOL64"; then
   16049   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   16050 else
   16051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16052 for as_dir in $PATH
   16053 do
   16054   IFS=$as_save_IFS
   16055   test -z "$as_dir" && as_dir=.
   16056     for ac_exec_ext in '' $ac_executable_extensions; do
   16057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16058     ac_cv_prog_ac_ct_OTOOL64="otool64"
   16059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16060     break 2
   16061   fi
   16062 done
   16063   done
   16064 IFS=$as_save_IFS
   16065 
   16066 fi
   16067 fi
   16068 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   16069 if test -n "$ac_ct_OTOOL64"; then
   16070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   16071 $as_echo "$ac_ct_OTOOL64" >&6; }
   16072 else
   16073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16074 $as_echo "no" >&6; }
   16075 fi
   16076 
   16077   if test "x$ac_ct_OTOOL64" = x; then
   16078     OTOOL64=":"
   16079   else
   16080     case $cross_compiling:$ac_tool_warned in
   16081 yes:)
   16082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   16083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   16084 ac_tool_warned=yes ;;
   16085 esac
   16086     OTOOL64=$ac_ct_OTOOL64
   16087   fi
   16088 else
   16089   OTOOL64="$ac_cv_prog_OTOOL64"
   16090 fi
   16091 
   16092 
   16093 
   16094 
   16095 
   16096 
   16097 
   16098 
   16099 
   16100 
   16101 
   16102 
   16103 
   16104 
   16105 
   16106 
   16107 
   16108 
   16109 
   16110 
   16111 
   16112 
   16113 
   16114 
   16115 
   16116 
   16117 
   16118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   16119 $as_echo_n "checking for -single_module linker flag... " >&6; }
   16120 if ${lt_cv_apple_cc_single_mod+:} false; then :
   16121   $as_echo_n "(cached) " >&6
   16122 else
   16123   lt_cv_apple_cc_single_mod=no
   16124       if test -z "${LT_MULTI_MODULE}"; then
   16125 	# By default we will add the -single_module flag. You can override
   16126 	# by either setting the environment variable LT_MULTI_MODULE
   16127 	# non-empty at configure time, or by adding -multi_module to the
   16128 	# link flags.
   16129 	rm -rf libconftest.dylib*
   16130 	echo "int foo(void){return 1;}" > conftest.c
   16131 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   16132 -dynamiclib -Wl,-single_module conftest.c" >&5
   16133 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   16134 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   16135         _lt_result=$?
   16136 	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
   16137 	  lt_cv_apple_cc_single_mod=yes
   16138 	else
   16139 	  cat conftest.err >&5
   16140 	fi
   16141 	rm -rf libconftest.dylib*
   16142 	rm -f conftest.*
   16143       fi
   16144 fi
   16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   16146 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   16147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   16148 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   16149 if ${lt_cv_ld_exported_symbols_list+:} false; then :
   16150   $as_echo_n "(cached) " >&6
   16151 else
   16152   lt_cv_ld_exported_symbols_list=no
   16153       save_LDFLAGS=$LDFLAGS
   16154       echo "_main" > conftest.sym
   16155       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   16156       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16157 /* end confdefs.h.  */
   16158 
   16159 int
   16160 main ()
   16161 {
   16162 
   16163   ;
   16164   return 0;
   16165 }
   16166 _ACEOF
   16167 if ac_fn_c_try_link "$LINENO"; then :
   16168   lt_cv_ld_exported_symbols_list=yes
   16169 else
   16170   lt_cv_ld_exported_symbols_list=no
   16171 fi
   16172 rm -f core conftest.err conftest.$ac_objext \
   16173     conftest$ac_exeext conftest.$ac_ext
   16174 	LDFLAGS="$save_LDFLAGS"
   16175 
   16176 fi
   16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   16178 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   16179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   16180 $as_echo_n "checking for -force_load linker flag... " >&6; }
   16181 if ${lt_cv_ld_force_load+:} false; then :
   16182   $as_echo_n "(cached) " >&6
   16183 else
   16184   lt_cv_ld_force_load=no
   16185       cat > conftest.c << _LT_EOF
   16186 int forced_loaded() { return 2;}
   16187 _LT_EOF
   16188       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   16189       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   16190       echo "$AR cru libconftest.a conftest.o" >&5
   16191       $AR cru libconftest.a conftest.o 2>&5
   16192       cat > conftest.c << _LT_EOF
   16193 int main() { return 0;}
   16194 _LT_EOF
   16195       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   16196       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   16197       _lt_result=$?
   16198       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
   16199 	lt_cv_ld_force_load=yes
   16200       else
   16201 	cat conftest.err >&5
   16202       fi
   16203         rm -f conftest.err libconftest.a conftest conftest.c
   16204         rm -rf conftest.dSYM
   16205 
   16206 fi
   16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   16208 $as_echo "$lt_cv_ld_force_load" >&6; }
   16209     # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
   16210     # build without first building modern cctools / linker.
   16211     case $host_cpu-$host_os in
   16212     *-rhapsody* | *-darwin1.[012])
   16213       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
   16214     *-darwin1.*)
   16215       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   16216     *-darwin*)
   16217       # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
   16218       # deployment target is forced to an earlier version.
   16219       case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
   16220 	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
   16221 	  ;;
   16222 	10.[012][,.]*)
   16223 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
   16224 	  ;;
   16225 	*)
   16226 	  ;;
   16227      esac
   16228     ;;
   16229   esac
   16230     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
   16231       _lt_dar_single_mod='$single_module'
   16232     fi
   16233     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
   16234       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
   16235     else
   16236       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
   16237     fi
   16238     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
   16239       _lt_dsymutil='~$DSYMUTIL $lib || :'
   16240     else
   16241       _lt_dsymutil=
   16242     fi
   16243     ;;
   16244   esac
   16245 
   16246 
   16247 for ac_header in dlfcn.h
   16248 do :
   16249   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
   16250 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   16251   cat >>confdefs.h <<_ACEOF
   16252 #define HAVE_DLFCN_H 1
   16253 _ACEOF
   16254 
   16255 fi
   16256 done
   16257 
   16258 
   16259 
   16260 
   16261 
   16262 # Set options
   16263 
   16264 
   16265 
   16266         enable_dlopen=no
   16267 
   16268 
   16269   enable_win32_dll=no
   16270 
   16271 
   16272             # Check whether --enable-shared was given.
   16273 if test "${enable_shared+set}" = set; then :
   16274   enableval=$enable_shared; p=${PACKAGE-default}
   16275     case $enableval in
   16276     yes) enable_shared=yes ;;
   16277     no) enable_shared=no ;;
   16278     *)
   16279       enable_shared=no
   16280       # Look at the argument we got.  We use all the common list separators.
   16281       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   16282       for pkg in $enableval; do
   16283 	IFS="$lt_save_ifs"
   16284 	if test "X$pkg" = "X$p"; then
   16285 	  enable_shared=yes
   16286 	fi
   16287       done
   16288       IFS="$lt_save_ifs"
   16289       ;;
   16290     esac
   16291 else
   16292   enable_shared=yes
   16293 fi
   16294 
   16295 
   16296 
   16297 
   16298 
   16299 
   16300 
   16301 
   16302 
   16303   # Check whether --enable-static was given.
   16304 if test "${enable_static+set}" = set; then :
   16305   enableval=$enable_static; p=${PACKAGE-default}
   16306     case $enableval in
   16307     yes) enable_static=yes ;;
   16308     no) enable_static=no ;;
   16309     *)
   16310      enable_static=no
   16311       # Look at the argument we got.  We use all the common list separators.
   16312       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   16313       for pkg in $enableval; do
   16314 	IFS="$lt_save_ifs"
   16315 	if test "X$pkg" = "X$p"; then
   16316 	  enable_static=yes
   16317 	fi
   16318       done
   16319       IFS="$lt_save_ifs"
   16320       ;;
   16321     esac
   16322 else
   16323   enable_static=yes
   16324 fi
   16325 
   16326 
   16327 
   16328 
   16329 
   16330 
   16331 
   16332 
   16333 
   16334 
   16335 # Check whether --with-pic was given.
   16336 if test "${with_pic+set}" = set; then :
   16337   withval=$with_pic; pic_mode="$withval"
   16338 else
   16339   pic_mode=default
   16340 fi
   16341 
   16342 
   16343 test -z "$pic_mode" && pic_mode=default
   16344 
   16345 
   16346 
   16347 
   16348 
   16349 
   16350 
   16351   # Check whether --enable-fast-install was given.
   16352 if test "${enable_fast_install+set}" = set; then :
   16353   enableval=$enable_fast_install; p=${PACKAGE-default}
   16354     case $enableval in
   16355     yes) enable_fast_install=yes ;;
   16356     no) enable_fast_install=no ;;
   16357     *)
   16358       enable_fast_install=no
   16359       # Look at the argument we got.  We use all the common list separators.
   16360       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   16361       for pkg in $enableval; do
   16362 	IFS="$lt_save_ifs"
   16363 	if test "X$pkg" = "X$p"; then
   16364 	  enable_fast_install=yes
   16365 	fi
   16366       done
   16367       IFS="$lt_save_ifs"
   16368       ;;
   16369     esac
   16370 else
   16371   enable_fast_install=yes
   16372 fi
   16373 
   16374 
   16375 
   16376 
   16377 
   16378 
   16379 
   16380 
   16381 
   16382 
   16383 
   16384 # This can be used to rebuild libtool when needed
   16385 LIBTOOL_DEPS="$ltmain"
   16386 
   16387 # Always use our own libtool.
   16388 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   16389 
   16390 
   16391 
   16392 
   16393 
   16394 
   16395 
   16396 
   16397 
   16398 
   16399 
   16400 
   16401 
   16402 
   16403 
   16404 
   16405 
   16406 
   16407 
   16408 
   16409 
   16410 
   16411 
   16412 
   16413 
   16414 
   16415 test -z "$LN_S" && LN_S="ln -s"
   16416 
   16417 
   16418 
   16419 
   16420 
   16421 
   16422 
   16423 
   16424 
   16425 
   16426 
   16427 
   16428 
   16429 
   16430 if test -n "${ZSH_VERSION+set}" ; then
   16431    setopt NO_GLOB_SUBST
   16432 fi
   16433 
   16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   16435 $as_echo_n "checking for objdir... " >&6; }
   16436 if ${lt_cv_objdir+:} false; then :
   16437   $as_echo_n "(cached) " >&6
   16438 else
   16439   rm -f .libs 2>/dev/null
   16440 mkdir .libs 2>/dev/null
   16441 if test -d .libs; then
   16442   lt_cv_objdir=.libs
   16443 else
   16444   # MS-DOS does not allow filenames that begin with a dot.
   16445   lt_cv_objdir=_libs
   16446 fi
   16447 rmdir .libs 2>/dev/null
   16448 fi
   16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   16450 $as_echo "$lt_cv_objdir" >&6; }
   16451 objdir=$lt_cv_objdir
   16452 
   16453 
   16454 
   16455 
   16456 
   16457 cat >>confdefs.h <<_ACEOF
   16458 #define LT_OBJDIR "$lt_cv_objdir/"
   16459 _ACEOF
   16460 
   16461 
   16462 
   16463 
   16464 case $host_os in
   16465 aix3*)
   16466   # AIX sometimes has problems with the GCC collect2 program.  For some
   16467   # reason, if we set the COLLECT_NAMES environment variable, the problems
   16468   # vanish in a puff of smoke.
   16469   if test "X${COLLECT_NAMES+set}" != Xset; then
   16470     COLLECT_NAMES=
   16471     export COLLECT_NAMES
   16472   fi
   16473   ;;
   16474 esac
   16475 
   16476 # Global variables:
   16477 ofile=libtool
   16478 can_build_shared=yes
   16479 
   16480 # All known linkers require a `.a' archive for static linking (except MSVC,
   16481 # which needs '.lib').
   16482 libext=a
   16483 
   16484 with_gnu_ld="$lt_cv_prog_gnu_ld"
   16485 
   16486 old_CC="$CC"
   16487 old_CFLAGS="$CFLAGS"
   16488 
   16489 # Set sane defaults for various variables
   16490 test -z "$CC" && CC=cc
   16491 test -z "$LTCC" && LTCC=$CC
   16492 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   16493 test -z "$LD" && LD=ld
   16494 test -z "$ac_objext" && ac_objext=o
   16495 
   16496 for cc_temp in $compiler""; do
   16497   case $cc_temp in
   16498     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   16499     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   16500     \-*) ;;
   16501     *) break;;
   16502   esac
   16503 done
   16504 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   16505 
   16506 
   16507 # Only perform the check for file, if the check method requires it
   16508 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   16509 case $deplibs_check_method in
   16510 file_magic*)
   16511   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   16512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   16513 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   16514 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   16515   $as_echo_n "(cached) " >&6
   16516 else
   16517   case $MAGIC_CMD in
   16518 [\\/*] |  ?:[\\/]*)
   16519   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   16520   ;;
   16521 *)
   16522   lt_save_MAGIC_CMD="$MAGIC_CMD"
   16523   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   16524   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   16525   for ac_dir in $ac_dummy; do
   16526     IFS="$lt_save_ifs"
   16527     test -z "$ac_dir" && ac_dir=.
   16528     if test -f $ac_dir/${ac_tool_prefix}file; then
   16529       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
   16530       if test -n "$file_magic_test_file"; then
   16531 	case $deplibs_check_method in
   16532 	"file_magic "*)
   16533 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   16534 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   16535 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   16536 	    $EGREP "$file_magic_regex" > /dev/null; then
   16537 	    :
   16538 	  else
   16539 	    cat <<_LT_EOF 1>&2
   16540 
   16541 *** Warning: the command libtool uses to detect shared libraries,
   16542 *** $file_magic_cmd, produces output that libtool cannot recognize.
   16543 *** The result is that libtool may fail to recognize shared libraries
   16544 *** as such.  This will affect the creation of libtool libraries that
   16545 *** depend on shared libraries, but programs linked with such libtool
   16546 *** libraries will work regardless of this problem.  Nevertheless, you
   16547 *** may want to report the problem to your system manager and/or to
   16548 *** bug-libtool@gnu.org
   16549 
   16550 _LT_EOF
   16551 	  fi ;;
   16552 	esac
   16553       fi
   16554       break
   16555     fi
   16556   done
   16557   IFS="$lt_save_ifs"
   16558   MAGIC_CMD="$lt_save_MAGIC_CMD"
   16559   ;;
   16560 esac
   16561 fi
   16562 
   16563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   16564 if test -n "$MAGIC_CMD"; then
   16565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   16566 $as_echo "$MAGIC_CMD" >&6; }
   16567 else
   16568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16569 $as_echo "no" >&6; }
   16570 fi
   16571 
   16572 
   16573 
   16574 
   16575 
   16576 if test -z "$lt_cv_path_MAGIC_CMD"; then
   16577   if test -n "$ac_tool_prefix"; then
   16578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   16579 $as_echo_n "checking for file... " >&6; }
   16580 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   16581   $as_echo_n "(cached) " >&6
   16582 else
   16583   case $MAGIC_CMD in
   16584 [\\/*] |  ?:[\\/]*)
   16585   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   16586   ;;
   16587 *)
   16588   lt_save_MAGIC_CMD="$MAGIC_CMD"
   16589   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   16590   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   16591   for ac_dir in $ac_dummy; do
   16592     IFS="$lt_save_ifs"
   16593     test -z "$ac_dir" && ac_dir=.
   16594     if test -f $ac_dir/file; then
   16595       lt_cv_path_MAGIC_CMD="$ac_dir/file"
   16596       if test -n "$file_magic_test_file"; then
   16597 	case $deplibs_check_method in
   16598 	"file_magic "*)
   16599 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   16600 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   16601 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   16602 	    $EGREP "$file_magic_regex" > /dev/null; then
   16603 	    :
   16604 	  else
   16605 	    cat <<_LT_EOF 1>&2
   16606 
   16607 *** Warning: the command libtool uses to detect shared libraries,
   16608 *** $file_magic_cmd, produces output that libtool cannot recognize.
   16609 *** The result is that libtool may fail to recognize shared libraries
   16610 *** as such.  This will affect the creation of libtool libraries that
   16611 *** depend on shared libraries, but programs linked with such libtool
   16612 *** libraries will work regardless of this problem.  Nevertheless, you
   16613 *** may want to report the problem to your system manager and/or to
   16614 *** bug-libtool@gnu.org
   16615 
   16616 _LT_EOF
   16617 	  fi ;;
   16618 	esac
   16619       fi
   16620       break
   16621     fi
   16622   done
   16623   IFS="$lt_save_ifs"
   16624   MAGIC_CMD="$lt_save_MAGIC_CMD"
   16625   ;;
   16626 esac
   16627 fi
   16628 
   16629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   16630 if test -n "$MAGIC_CMD"; then
   16631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   16632 $as_echo "$MAGIC_CMD" >&6; }
   16633 else
   16634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16635 $as_echo "no" >&6; }
   16636 fi
   16637 
   16638 
   16639   else
   16640     MAGIC_CMD=:
   16641   fi
   16642 fi
   16643 
   16644   fi
   16645   ;;
   16646 esac
   16647 
   16648 # Use C for the default configuration in the libtool script
   16649 
   16650 lt_save_CC="$CC"
   16651 ac_ext=c
   16652 ac_cpp='$CPP $CPPFLAGS'
   16653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16656 
   16657 
   16658 # Source file extension for C test sources.
   16659 ac_ext=c
   16660 
   16661 # Object file extension for compiled C test sources.
   16662 objext=o
   16663 objext=$objext
   16664 
   16665 # Code to be used in simple compile tests
   16666 lt_simple_compile_test_code="int some_variable = 0;"
   16667 
   16668 # Code to be used in simple link tests
   16669 lt_simple_link_test_code='int main(){return(0);}'
   16670 
   16671 
   16672 
   16673 
   16674 
   16675 
   16676 
   16677 # If no C compiler was specified, use CC.
   16678 LTCC=${LTCC-"$CC"}
   16679 
   16680 # If no C compiler flags were specified, use CFLAGS.
   16681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   16682 
   16683 # Allow CC to be a program name with arguments.
   16684 compiler=$CC
   16685 
   16686 # Save the default compiler, since it gets overwritten when the other
   16687 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   16688 compiler_DEFAULT=$CC
   16689 
   16690 # save warnings/boilerplate of simple test code
   16691 ac_outfile=conftest.$ac_objext
   16692 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   16693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   16694 _lt_compiler_boilerplate=`cat conftest.err`
   16695 $RM conftest*
   16696 
   16697 ac_outfile=conftest.$ac_objext
   16698 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   16699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   16700 _lt_linker_boilerplate=`cat conftest.err`
   16701 $RM -r conftest*
   16702 
   16703 
   16704 ## CAVEAT EMPTOR:
   16705 ## There is no encapsulation within the following macros, do not change
   16706 ## the running order or otherwise move them around unless you know exactly
   16707 ## what you are doing...
   16708 if test -n "$compiler"; then
   16709 
   16710 lt_prog_compiler_no_builtin_flag=
   16711 
   16712 if test "$GCC" = yes; then
   16713   case $cc_basename in
   16714   nvcc*)
   16715     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   16716   *)
   16717     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   16718   esac
   16719 
   16720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   16721 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   16722 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   16723   $as_echo_n "(cached) " >&6
   16724 else
   16725   lt_cv_prog_compiler_rtti_exceptions=no
   16726    ac_outfile=conftest.$ac_objext
   16727    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   16728    lt_compiler_flag="-fno-rtti -fno-exceptions"
   16729    # Insert the option either (1) after the last *FLAGS variable, or
   16730    # (2) before a word containing "conftest.", or (3) at the end.
   16731    # Note that $ac_compile itself does not contain backslashes and begins
   16732    # with a dollar sign (not a hyphen), so the echo should work correctly.
   16733    # The option is referenced via a variable to avoid confusing sed.
   16734    lt_compile=`echo "$ac_compile" | $SED \
   16735    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   16736    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   16737    -e 's:$: $lt_compiler_flag:'`
   16738    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   16739    (eval "$lt_compile" 2>conftest.err)
   16740    ac_status=$?
   16741    cat conftest.err >&5
   16742    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16743    if (exit $ac_status) && test -s "$ac_outfile"; then
   16744      # The compiler can only warn and ignore the option if not recognized
   16745      # So say no if there are warnings other than the usual output.
   16746      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   16747      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   16748      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   16749        lt_cv_prog_compiler_rtti_exceptions=yes
   16750      fi
   16751    fi
   16752    $RM conftest*
   16753 
   16754 fi
   16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   16756 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   16757 
   16758 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
   16759     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   16760 else
   16761     :
   16762 fi
   16763 
   16764 fi
   16765 
   16766 
   16767 
   16768 
   16769 
   16770 
   16771   lt_prog_compiler_wl=
   16772 lt_prog_compiler_pic=
   16773 lt_prog_compiler_static=
   16774 
   16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   16776 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   16777 
   16778   if test "$GCC" = yes; then
   16779     lt_prog_compiler_wl='-Wl,'
   16780     lt_prog_compiler_static='-static'
   16781 
   16782     case $host_os in
   16783       aix*)
   16784       # All AIX code is PIC.
   16785       if test "$host_cpu" = ia64; then
   16786 	# AIX 5 now supports IA64 processor
   16787 	lt_prog_compiler_static='-Bstatic'
   16788       fi
   16789       lt_prog_compiler_pic='-fPIC'
   16790       ;;
   16791 
   16792     amigaos*)
   16793       case $host_cpu in
   16794       powerpc)
   16795             # see comment about AmigaOS4 .so support
   16796             lt_prog_compiler_pic='-fPIC'
   16797         ;;
   16798       m68k)
   16799             # FIXME: we need at least 68020 code to build shared libraries, but
   16800             # adding the `-m68020' flag to GCC prevents building anything better,
   16801             # like `-m68040'.
   16802             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   16803         ;;
   16804       esac
   16805       ;;
   16806 
   16807     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   16808       # PIC is the default for these OSes.
   16809       ;;
   16810 
   16811     mingw* | cygwin* | pw32* | os2* | cegcc*)
   16812       # This hack is so that the source file can tell whether it is being
   16813       # built for inclusion in a dll (and should export symbols for example).
   16814       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   16815       # (--disable-auto-import) libraries
   16816       lt_prog_compiler_pic='-DDLL_EXPORT'
   16817       ;;
   16818 
   16819     darwin* | rhapsody*)
   16820       # PIC is the default on this platform
   16821       # Common symbols not allowed in MH_DYLIB files
   16822       lt_prog_compiler_pic='-fno-common'
   16823       ;;
   16824 
   16825     haiku*)
   16826       # PIC is the default for Haiku.
   16827       # The "-static" flag exists, but is broken.
   16828       lt_prog_compiler_static=
   16829       ;;
   16830 
   16831     hpux*)
   16832       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   16833       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   16834       # sets the default TLS model and affects inlining.
   16835       case $host_cpu in
   16836       hppa*64*)
   16837 	# +Z the default
   16838 	;;
   16839       *)
   16840 	lt_prog_compiler_pic='-fPIC'
   16841 	;;
   16842       esac
   16843       ;;
   16844 
   16845     interix[3-9]*)
   16846       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   16847       # Instead, we relocate shared libraries at runtime.
   16848       ;;
   16849 
   16850     msdosdjgpp*)
   16851       # Just because we use GCC doesn't mean we suddenly get shared libraries
   16852       # on systems that don't support them.
   16853       lt_prog_compiler_can_build_shared=no
   16854       enable_shared=no
   16855       ;;
   16856 
   16857     *nto* | *qnx*)
   16858       # QNX uses GNU C++, but need to define -shared option too, otherwise
   16859       # it will coredump.
   16860       lt_prog_compiler_pic='-fPIC -shared'
   16861       ;;
   16862 
   16863     sysv4*MP*)
   16864       if test -d /usr/nec; then
   16865 	lt_prog_compiler_pic=-Kconform_pic
   16866       fi
   16867       ;;
   16868 
   16869     *)
   16870       lt_prog_compiler_pic='-fPIC'
   16871       ;;
   16872     esac
   16873 
   16874     case $cc_basename in
   16875     nvcc*) # Cuda Compiler Driver 2.2
   16876       lt_prog_compiler_wl='-Xlinker '
   16877       lt_prog_compiler_pic='-Xcompiler -fPIC'
   16878       ;;
   16879     esac
   16880   else
   16881     # PORTME Check for flag to pass linker flags through the system compiler.
   16882     case $host_os in
   16883     aix*)
   16884       lt_prog_compiler_wl='-Wl,'
   16885       if test "$host_cpu" = ia64; then
   16886 	# AIX 5 now supports IA64 processor
   16887 	lt_prog_compiler_static='-Bstatic'
   16888       else
   16889 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   16890       fi
   16891       ;;
   16892 
   16893     mingw* | cygwin* | pw32* | os2* | cegcc*)
   16894       # This hack is so that the source file can tell whether it is being
   16895       # built for inclusion in a dll (and should export symbols for example).
   16896       lt_prog_compiler_pic='-DDLL_EXPORT'
   16897       ;;
   16898 
   16899     hpux9* | hpux10* | hpux11*)
   16900       lt_prog_compiler_wl='-Wl,'
   16901       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   16902       # not for PA HP-UX.
   16903       case $host_cpu in
   16904       hppa*64*|ia64*)
   16905 	# +Z the default
   16906 	;;
   16907       *)
   16908 	lt_prog_compiler_pic='+Z'
   16909 	;;
   16910       esac
   16911       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   16912       lt_prog_compiler_static='${wl}-a ${wl}archive'
   16913       ;;
   16914 
   16915     irix5* | irix6* | nonstopux*)
   16916       lt_prog_compiler_wl='-Wl,'
   16917       # PIC (with -KPIC) is the default.
   16918       lt_prog_compiler_static='-non_shared'
   16919       ;;
   16920 
   16921     linux* | k*bsd*-gnu | kopensolaris*-gnu)
   16922       case $cc_basename in
   16923       # old Intel for x86_64 which still supported -KPIC.
   16924       ecc*)
   16925 	lt_prog_compiler_wl='-Wl,'
   16926 	lt_prog_compiler_pic='-KPIC'
   16927 	lt_prog_compiler_static='-static'
   16928         ;;
   16929       # icc used to be incompatible with GCC.
   16930       # ICC 10 doesn't accept -KPIC any more.
   16931       icc* | ifort*)
   16932 	lt_prog_compiler_wl='-Wl,'
   16933 	lt_prog_compiler_pic='-fPIC'
   16934 	lt_prog_compiler_static='-static'
   16935         ;;
   16936       # Lahey Fortran 8.1.
   16937       lf95*)
   16938 	lt_prog_compiler_wl='-Wl,'
   16939 	lt_prog_compiler_pic='--shared'
   16940 	lt_prog_compiler_static='--static'
   16941 	;;
   16942       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   16943         # Portland Group compilers (*not* the Pentium gcc compiler,
   16944 	# which looks to be a dead project)
   16945 	lt_prog_compiler_wl='-Wl,'
   16946 	lt_prog_compiler_pic='-fpic'
   16947 	lt_prog_compiler_static='-Bstatic'
   16948         ;;
   16949       ccc*)
   16950         lt_prog_compiler_wl='-Wl,'
   16951         # All Alpha code is PIC.
   16952         lt_prog_compiler_static='-non_shared'
   16953         ;;
   16954       xl* | bgxl* | bgf* | mpixl*)
   16955 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   16956 	lt_prog_compiler_wl='-Wl,'
   16957 	lt_prog_compiler_pic='-qpic'
   16958 	lt_prog_compiler_static='-qstaticlink'
   16959 	;;
   16960       *)
   16961 	case `$CC -V 2>&1 | sed 5q` in
   16962 	*Sun\ F* | *Sun*Fortran*)
   16963 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   16964 	  lt_prog_compiler_pic='-KPIC'
   16965 	  lt_prog_compiler_static='-Bstatic'
   16966 	  lt_prog_compiler_wl=''
   16967 	  ;;
   16968 	*Sun\ C*)
   16969 	  # Sun C 5.9
   16970 	  lt_prog_compiler_pic='-KPIC'
   16971 	  lt_prog_compiler_static='-Bstatic'
   16972 	  lt_prog_compiler_wl='-Wl,'
   16973 	  ;;
   16974 	esac
   16975 	;;
   16976       esac
   16977       ;;
   16978 
   16979     newsos6)
   16980       lt_prog_compiler_pic='-KPIC'
   16981       lt_prog_compiler_static='-Bstatic'
   16982       ;;
   16983 
   16984     *nto* | *qnx*)
   16985       # QNX uses GNU C++, but need to define -shared option too, otherwise
   16986       # it will coredump.
   16987       lt_prog_compiler_pic='-fPIC -shared'
   16988       ;;
   16989 
   16990     osf3* | osf4* | osf5*)
   16991       lt_prog_compiler_wl='-Wl,'
   16992       # All OSF/1 code is PIC.
   16993       lt_prog_compiler_static='-non_shared'
   16994       ;;
   16995 
   16996     rdos*)
   16997       lt_prog_compiler_static='-non_shared'
   16998       ;;
   16999 
   17000     solaris*)
   17001       lt_prog_compiler_pic='-KPIC'
   17002       lt_prog_compiler_static='-Bstatic'
   17003       case $cc_basename in
   17004       f77* | f90* | f95*)
   17005 	lt_prog_compiler_wl='-Qoption ld ';;
   17006       *)
   17007 	lt_prog_compiler_wl='-Wl,';;
   17008       esac
   17009       ;;
   17010 
   17011     sunos4*)
   17012       lt_prog_compiler_wl='-Qoption ld '
   17013       lt_prog_compiler_pic='-PIC'
   17014       lt_prog_compiler_static='-Bstatic'
   17015       ;;
   17016 
   17017     sysv4 | sysv4.2uw2* | sysv4.3*)
   17018       lt_prog_compiler_wl='-Wl,'
   17019       lt_prog_compiler_pic='-KPIC'
   17020       lt_prog_compiler_static='-Bstatic'
   17021       ;;
   17022 
   17023     sysv4*MP*)
   17024       if test -d /usr/nec ;then
   17025 	lt_prog_compiler_pic='-Kconform_pic'
   17026 	lt_prog_compiler_static='-Bstatic'
   17027       fi
   17028       ;;
   17029 
   17030     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   17031       lt_prog_compiler_wl='-Wl,'
   17032       lt_prog_compiler_pic='-KPIC'
   17033       lt_prog_compiler_static='-Bstatic'
   17034       ;;
   17035 
   17036     unicos*)
   17037       lt_prog_compiler_wl='-Wl,'
   17038       lt_prog_compiler_can_build_shared=no
   17039       ;;
   17040 
   17041     uts4*)
   17042       lt_prog_compiler_pic='-pic'
   17043       lt_prog_compiler_static='-Bstatic'
   17044       ;;
   17045 
   17046     *)
   17047       lt_prog_compiler_can_build_shared=no
   17048       ;;
   17049     esac
   17050   fi
   17051 
   17052 case $host_os in
   17053   # For platforms which do not support PIC, -DPIC is meaningless:
   17054   *djgpp*)
   17055     lt_prog_compiler_pic=
   17056     ;;
   17057   *)
   17058     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   17059     ;;
   17060 esac
   17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
   17062 $as_echo "$lt_prog_compiler_pic" >&6; }
   17063 
   17064 
   17065 
   17066 
   17067 
   17068 
   17069 #
   17070 # Check to make sure the PIC flag actually works.
   17071 #
   17072 if test -n "$lt_prog_compiler_pic"; then
   17073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   17074 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   17075 if ${lt_cv_prog_compiler_pic_works+:} false; then :
   17076   $as_echo_n "(cached) " >&6
   17077 else
   17078   lt_cv_prog_compiler_pic_works=no
   17079    ac_outfile=conftest.$ac_objext
   17080    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   17081    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   17082    # Insert the option either (1) after the last *FLAGS variable, or
   17083    # (2) before a word containing "conftest.", or (3) at the end.
   17084    # Note that $ac_compile itself does not contain backslashes and begins
   17085    # with a dollar sign (not a hyphen), so the echo should work correctly.
   17086    # The option is referenced via a variable to avoid confusing sed.
   17087    lt_compile=`echo "$ac_compile" | $SED \
   17088    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   17089    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   17090    -e 's:$: $lt_compiler_flag:'`
   17091    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   17092    (eval "$lt_compile" 2>conftest.err)
   17093    ac_status=$?
   17094    cat conftest.err >&5
   17095    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17096    if (exit $ac_status) && test -s "$ac_outfile"; then
   17097      # The compiler can only warn and ignore the option if not recognized
   17098      # So say no if there are warnings other than the usual output.
   17099      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   17100      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   17101      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   17102        lt_cv_prog_compiler_pic_works=yes
   17103      fi
   17104    fi
   17105    $RM conftest*
   17106 
   17107 fi
   17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   17109 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   17110 
   17111 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
   17112     case $lt_prog_compiler_pic in
   17113      "" | " "*) ;;
   17114      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   17115      esac
   17116 else
   17117     lt_prog_compiler_pic=
   17118      lt_prog_compiler_can_build_shared=no
   17119 fi
   17120 
   17121 fi
   17122 
   17123 
   17124 
   17125 
   17126 
   17127 
   17128 #
   17129 # Check to make sure the static flag actually works.
   17130 #
   17131 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   17133 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   17134 if ${lt_cv_prog_compiler_static_works+:} false; then :
   17135   $as_echo_n "(cached) " >&6
   17136 else
   17137   lt_cv_prog_compiler_static_works=no
   17138    save_LDFLAGS="$LDFLAGS"
   17139    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   17140    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   17141    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   17142      # The linker can only warn and ignore the option if not recognized
   17143      # So say no if there are warnings
   17144      if test -s conftest.err; then
   17145        # Append any errors to the config.log.
   17146        cat conftest.err 1>&5
   17147        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   17148        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   17149        if diff conftest.exp conftest.er2 >/dev/null; then
   17150          lt_cv_prog_compiler_static_works=yes
   17151        fi
   17152      else
   17153        lt_cv_prog_compiler_static_works=yes
   17154      fi
   17155    fi
   17156    $RM -r conftest*
   17157    LDFLAGS="$save_LDFLAGS"
   17158 
   17159 fi
   17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   17161 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   17162 
   17163 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
   17164     :
   17165 else
   17166     lt_prog_compiler_static=
   17167 fi
   17168 
   17169 
   17170 
   17171 
   17172 
   17173 
   17174 
   17175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   17176 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   17177 if ${lt_cv_prog_compiler_c_o+:} false; then :
   17178   $as_echo_n "(cached) " >&6
   17179 else
   17180   lt_cv_prog_compiler_c_o=no
   17181    $RM -r conftest 2>/dev/null
   17182    mkdir conftest
   17183    cd conftest
   17184    mkdir out
   17185    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   17186 
   17187    lt_compiler_flag="-o out/conftest2.$ac_objext"
   17188    # Insert the option either (1) after the last *FLAGS variable, or
   17189    # (2) before a word containing "conftest.", or (3) at the end.
   17190    # Note that $ac_compile itself does not contain backslashes and begins
   17191    # with a dollar sign (not a hyphen), so the echo should work correctly.
   17192    lt_compile=`echo "$ac_compile" | $SED \
   17193    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   17194    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   17195    -e 's:$: $lt_compiler_flag:'`
   17196    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   17197    (eval "$lt_compile" 2>out/conftest.err)
   17198    ac_status=$?
   17199    cat out/conftest.err >&5
   17200    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17201    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   17202    then
   17203      # The compiler can only warn and ignore the option if not recognized
   17204      # So say no if there are warnings
   17205      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   17206      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   17207      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   17208        lt_cv_prog_compiler_c_o=yes
   17209      fi
   17210    fi
   17211    chmod u+w . 2>&5
   17212    $RM conftest*
   17213    # SGI C++ compiler will create directory out/ii_files/ for
   17214    # template instantiation
   17215    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   17216    $RM out/* && rmdir out
   17217    cd ..
   17218    $RM -r conftest
   17219    $RM conftest*
   17220 
   17221 fi
   17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   17223 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   17224 
   17225 
   17226 
   17227 
   17228 
   17229 
   17230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   17231 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   17232 if ${lt_cv_prog_compiler_c_o+:} false; then :
   17233   $as_echo_n "(cached) " >&6
   17234 else
   17235   lt_cv_prog_compiler_c_o=no
   17236    $RM -r conftest 2>/dev/null
   17237    mkdir conftest
   17238    cd conftest
   17239    mkdir out
   17240    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   17241 
   17242    lt_compiler_flag="-o out/conftest2.$ac_objext"
   17243    # Insert the option either (1) after the last *FLAGS variable, or
   17244    # (2) before a word containing "conftest.", or (3) at the end.
   17245    # Note that $ac_compile itself does not contain backslashes and begins
   17246    # with a dollar sign (not a hyphen), so the echo should work correctly.
   17247    lt_compile=`echo "$ac_compile" | $SED \
   17248    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   17249    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   17250    -e 's:$: $lt_compiler_flag:'`
   17251    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   17252    (eval "$lt_compile" 2>out/conftest.err)
   17253    ac_status=$?
   17254    cat out/conftest.err >&5
   17255    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17256    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   17257    then
   17258      # The compiler can only warn and ignore the option if not recognized
   17259      # So say no if there are warnings
   17260      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   17261      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   17262      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   17263        lt_cv_prog_compiler_c_o=yes
   17264      fi
   17265    fi
   17266    chmod u+w . 2>&5
   17267    $RM conftest*
   17268    # SGI C++ compiler will create directory out/ii_files/ for
   17269    # template instantiation
   17270    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   17271    $RM out/* && rmdir out
   17272    cd ..
   17273    $RM -r conftest
   17274    $RM conftest*
   17275 
   17276 fi
   17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   17278 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   17279 
   17280 
   17281 
   17282 
   17283 hard_links="nottested"
   17284 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
   17285   # do not overwrite the value of need_locks provided by the user
   17286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   17287 $as_echo_n "checking if we can lock with hard links... " >&6; }
   17288   hard_links=yes
   17289   $RM conftest*
   17290   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   17291   touch conftest.a
   17292   ln conftest.a conftest.b 2>&5 || hard_links=no
   17293   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   17294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   17295 $as_echo "$hard_links" >&6; }
   17296   if test "$hard_links" = no; then
   17297     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   17298 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   17299     need_locks=warn
   17300   fi
   17301 else
   17302   need_locks=no
   17303 fi
   17304 
   17305 
   17306 
   17307 
   17308 
   17309 
   17310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   17311 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   17312 
   17313   runpath_var=
   17314   allow_undefined_flag=
   17315   always_export_symbols=no
   17316   archive_cmds=
   17317   archive_expsym_cmds=
   17318   compiler_needs_object=no
   17319   enable_shared_with_static_runtimes=no
   17320   export_dynamic_flag_spec=
   17321   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   17322   hardcode_automatic=no
   17323   hardcode_direct=no
   17324   hardcode_direct_absolute=no
   17325   hardcode_libdir_flag_spec=
   17326   hardcode_libdir_flag_spec_ld=
   17327   hardcode_libdir_separator=
   17328   hardcode_minus_L=no
   17329   hardcode_shlibpath_var=unsupported
   17330   inherit_rpath=no
   17331   link_all_deplibs=unknown
   17332   module_cmds=
   17333   module_expsym_cmds=
   17334   old_archive_from_new_cmds=
   17335   old_archive_from_expsyms_cmds=
   17336   thread_safe_flag_spec=
   17337   whole_archive_flag_spec=
   17338   # include_expsyms should be a list of space-separated symbols to be *always*
   17339   # included in the symbol list
   17340   include_expsyms=
   17341   # exclude_expsyms can be an extended regexp of symbols to exclude
   17342   # it will be wrapped by ` (' and `)$', so one must not match beginning or
   17343   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
   17344   # as well as any symbol that contains `d'.
   17345   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   17346   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   17347   # platforms (ab)use it in PIC code, but their linkers get confused if
   17348   # the symbol is explicitly referenced.  Since portable code cannot
   17349   # rely on this symbol name, it's probably fine to never include it in
   17350   # preloaded symbol tables.
   17351   # Exclude shared library initialization/finalization symbols.
   17352   extract_expsyms_cmds=
   17353 
   17354   case $host_os in
   17355   cygwin* | mingw* | pw32* | cegcc*)
   17356     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   17357     # When not using gcc, we currently assume that we are using
   17358     # Microsoft Visual C++.
   17359     if test "$GCC" != yes; then
   17360       with_gnu_ld=no
   17361     fi
   17362     ;;
   17363   interix*)
   17364     # we just hope/assume this is gcc and not c89 (= MSVC++)
   17365     with_gnu_ld=yes
   17366     ;;
   17367   openbsd*)
   17368     with_gnu_ld=no
   17369     ;;
   17370   esac
   17371 
   17372   ld_shlibs=yes
   17373 
   17374   # On some targets, GNU ld is compatible enough with the native linker
   17375   # that we're better off using the native interface for both.
   17376   lt_use_gnu_ld_interface=no
   17377   if test "$with_gnu_ld" = yes; then
   17378     case $host_os in
   17379       aix*)
   17380 	# The AIX port of GNU ld has always aspired to compatibility
   17381 	# with the native linker.  However, as the warning in the GNU ld
   17382 	# block says, versions before 2.19.5* couldn't really create working
   17383 	# shared libraries, regardless of the interface used.
   17384 	case `$LD -v 2>&1` in
   17385 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   17386 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   17387 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   17388 	  *)
   17389 	    lt_use_gnu_ld_interface=yes
   17390 	    ;;
   17391 	esac
   17392 	;;
   17393       *)
   17394 	lt_use_gnu_ld_interface=yes
   17395 	;;
   17396     esac
   17397   fi
   17398 
   17399   if test "$lt_use_gnu_ld_interface" = yes; then
   17400     # If archive_cmds runs LD, not CC, wlarc should be empty
   17401     wlarc='${wl}'
   17402 
   17403     # Set some defaults for GNU ld with shared library support. These
   17404     # are reset later if shared libraries are not supported. Putting them
   17405     # here allows them to be overridden if necessary.
   17406     runpath_var=LD_RUN_PATH
   17407     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   17408     export_dynamic_flag_spec='${wl}--export-dynamic'
   17409     # ancient GNU ld didn't support --whole-archive et. al.
   17410     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   17411       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   17412     else
   17413       whole_archive_flag_spec=
   17414     fi
   17415     supports_anon_versioning=no
   17416     case `$LD -v 2>&1` in
   17417       *GNU\ gold*) supports_anon_versioning=yes ;;
   17418       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   17419       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   17420       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   17421       *\ 2.11.*) ;; # other 2.11 versions
   17422       *) supports_anon_versioning=yes ;;
   17423     esac
   17424 
   17425     # See if GNU ld supports shared libraries.
   17426     case $host_os in
   17427     aix[3-9]*)
   17428       # On AIX/PPC, the GNU linker is very broken
   17429       if test "$host_cpu" != ia64; then
   17430 	ld_shlibs=no
   17431 	cat <<_LT_EOF 1>&2
   17432 
   17433 *** Warning: the GNU linker, at least up to release 2.19, is reported
   17434 *** to be unable to reliably create shared libraries on AIX.
   17435 *** Therefore, libtool is disabling shared libraries support.  If you
   17436 *** really care for shared libraries, you may want to install binutils
   17437 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   17438 *** You will then need to restart the configuration process.
   17439 
   17440 _LT_EOF
   17441       fi
   17442       ;;
   17443 
   17444     amigaos*)
   17445       case $host_cpu in
   17446       powerpc)
   17447             # see comment about AmigaOS4 .so support
   17448             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   17449             archive_expsym_cmds=''
   17450         ;;
   17451       m68k)
   17452             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)'
   17453             hardcode_libdir_flag_spec='-L$libdir'
   17454             hardcode_minus_L=yes
   17455         ;;
   17456       esac
   17457       ;;
   17458 
   17459     beos*)
   17460       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   17461 	allow_undefined_flag=unsupported
   17462 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   17463 	# support --undefined.  This deserves some investigation.  FIXME
   17464 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   17465       else
   17466 	ld_shlibs=no
   17467       fi
   17468       ;;
   17469 
   17470     cygwin* | mingw* | pw32* | cegcc*)
   17471       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   17472       # as there is no search path for DLLs.
   17473       hardcode_libdir_flag_spec='-L$libdir'
   17474       export_dynamic_flag_spec='${wl}--export-all-symbols'
   17475       allow_undefined_flag=unsupported
   17476       always_export_symbols=no
   17477       enable_shared_with_static_runtimes=yes
   17478       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   17479 
   17480       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   17481         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   17482 	# If the export-symbols file already is a .def file (1st line
   17483 	# is EXPORTS), use it as is; otherwise, prepend...
   17484 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   17485 	  cp $export_symbols $output_objdir/$soname.def;
   17486 	else
   17487 	  echo EXPORTS > $output_objdir/$soname.def;
   17488 	  cat $export_symbols >> $output_objdir/$soname.def;
   17489 	fi~
   17490 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   17491       else
   17492 	ld_shlibs=no
   17493       fi
   17494       ;;
   17495 
   17496     haiku*)
   17497       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   17498       link_all_deplibs=yes
   17499       ;;
   17500 
   17501     interix[3-9]*)
   17502       hardcode_direct=no
   17503       hardcode_shlibpath_var=no
   17504       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   17505       export_dynamic_flag_spec='${wl}-E'
   17506       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   17507       # Instead, shared libraries are loaded at an image base (0x10000000 by
   17508       # default) and relocated if they conflict, which is a slow very memory
   17509       # consuming and fragmenting process.  To avoid this, we pick a random,
   17510       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   17511       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   17512       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   17513       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'
   17514       ;;
   17515 
   17516     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
   17517       tmp_diet=no
   17518       if test "$host_os" = linux-dietlibc; then
   17519 	case $cc_basename in
   17520 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   17521 	esac
   17522       fi
   17523       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   17524 	 && test "$tmp_diet" = no
   17525       then
   17526 	tmp_addflag=' $pic_flag'
   17527 	tmp_sharedflag='-shared'
   17528 	case $cc_basename,$host_cpu in
   17529         pgcc*)				# Portland Group C compiler
   17530 	  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'
   17531 	  tmp_addflag=' $pic_flag'
   17532 	  ;;
   17533 	pgf77* | pgf90* | pgf95* | pgfortran*)
   17534 					# Portland Group f77 and f90 compilers
   17535 	  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'
   17536 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   17537 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   17538 	  tmp_addflag=' -i_dynamic' ;;
   17539 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   17540 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   17541 	ifc* | ifort*)			# Intel Fortran compiler
   17542 	  tmp_addflag=' -nofor_main' ;;
   17543 	lf95*)				# Lahey Fortran 8.1
   17544 	  whole_archive_flag_spec=
   17545 	  tmp_sharedflag='--shared' ;;
   17546 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   17547 	  tmp_sharedflag='-qmkshrobj'
   17548 	  tmp_addflag= ;;
   17549 	nvcc*)	# Cuda Compiler Driver 2.2
   17550 	  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'
   17551 	  compiler_needs_object=yes
   17552 	  ;;
   17553 	esac
   17554 	case `$CC -V 2>&1 | sed 5q` in
   17555 	*Sun\ C*)			# Sun C 5.9
   17556 	  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'
   17557 	  compiler_needs_object=yes
   17558 	  tmp_sharedflag='-G' ;;
   17559 	*Sun\ F*)			# Sun Fortran 8.3
   17560 	  tmp_sharedflag='-G' ;;
   17561 	esac
   17562 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   17563 
   17564         if test "x$supports_anon_versioning" = xyes; then
   17565           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   17566 	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   17567 	    echo "local: *; };" >> $output_objdir/$libname.ver~
   17568 	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   17569         fi
   17570 
   17571 	case $cc_basename in
   17572 	xlf* | bgf* | bgxlf* | mpixlf*)
   17573 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   17574 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   17575 	  hardcode_libdir_flag_spec=
   17576 	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
   17577 	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
   17578 	  if test "x$supports_anon_versioning" = xyes; then
   17579 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   17580 	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   17581 	      echo "local: *; };" >> $output_objdir/$libname.ver~
   17582 	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   17583 	  fi
   17584 	  ;;
   17585 	esac
   17586       else
   17587         ld_shlibs=no
   17588       fi
   17589       ;;
   17590 
   17591     netbsd*)
   17592       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   17593 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   17594 	wlarc=
   17595       else
   17596 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   17597 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   17598       fi
   17599       ;;
   17600 
   17601     solaris*)
   17602       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   17603 	ld_shlibs=no
   17604 	cat <<_LT_EOF 1>&2
   17605 
   17606 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   17607 *** create shared libraries on Solaris systems.  Therefore, libtool
   17608 *** is disabling shared libraries support.  We urge you to upgrade GNU
   17609 *** binutils to release 2.9.1 or newer.  Another option is to modify
   17610 *** your PATH or compiler configuration so that the native linker is
   17611 *** used, and then restart.
   17612 
   17613 _LT_EOF
   17614       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   17615 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   17616 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   17617       else
   17618 	ld_shlibs=no
   17619       fi
   17620       ;;
   17621 
   17622     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   17623       case `$LD -v 2>&1` in
   17624         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   17625 	ld_shlibs=no
   17626 	cat <<_LT_EOF 1>&2
   17627 
   17628 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
   17629 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   17630 *** is disabling shared libraries support.  We urge you to upgrade GNU
   17631 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   17632 *** your PATH or compiler configuration so that the native linker is
   17633 *** used, and then restart.
   17634 
   17635 _LT_EOF
   17636 	;;
   17637 	*)
   17638 	  # For security reasons, it is highly recommended that you always
   17639 	  # use absolute paths for naming shared libraries, and exclude the
   17640 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   17641 	  # requires that you compile everything twice, which is a pain.
   17642 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   17643 	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   17644 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   17645 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   17646 	  else
   17647 	    ld_shlibs=no
   17648 	  fi
   17649 	;;
   17650       esac
   17651       ;;
   17652 
   17653     sunos4*)
   17654       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   17655       wlarc=
   17656       hardcode_direct=yes
   17657       hardcode_shlibpath_var=no
   17658       ;;
   17659 
   17660     *)
   17661       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   17662 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   17663 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   17664       else
   17665 	ld_shlibs=no
   17666       fi
   17667       ;;
   17668     esac
   17669 
   17670     if test "$ld_shlibs" = no; then
   17671       runpath_var=
   17672       hardcode_libdir_flag_spec=
   17673       export_dynamic_flag_spec=
   17674       whole_archive_flag_spec=
   17675     fi
   17676   else
   17677     # PORTME fill in a description of your system's linker (not GNU ld)
   17678     case $host_os in
   17679     aix3*)
   17680       allow_undefined_flag=unsupported
   17681       always_export_symbols=yes
   17682       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'
   17683       # Note: this linker hardcodes the directories in LIBPATH if there
   17684       # are no directories specified by -L.
   17685       hardcode_minus_L=yes
   17686       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
   17687 	# Neither direct hardcoding nor static linking is supported with a
   17688 	# broken collect2.
   17689 	hardcode_direct=unsupported
   17690       fi
   17691       ;;
   17692 
   17693     aix[4-9]*)
   17694       if test "$host_cpu" = ia64; then
   17695 	# On IA64, the linker does run time linking by default, so we don't
   17696 	# have to do anything special.
   17697 	aix_use_runtimelinking=no
   17698 	exp_sym_flag='-Bexport'
   17699 	no_entry_flag=""
   17700       else
   17701 	# If we're using GNU nm, then we don't want the "-C" option.
   17702 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
   17703 	# Also, AIX nm treats weak defined symbols like other global
   17704 	# defined symbols, whereas GNU nm marks them as "W".
   17705 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   17706 	  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'
   17707 	else
   17708 	  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'
   17709 	fi
   17710 	aix_use_runtimelinking=no
   17711 
   17712 	# Test if we are trying to use run time linking or normal
   17713 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   17714 	# need to do runtime linking.
   17715 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   17716 	  for ld_flag in $LDFLAGS; do
   17717 	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
   17718 	    aix_use_runtimelinking=yes
   17719 	    break
   17720 	  fi
   17721 	  done
   17722 	  ;;
   17723 	esac
   17724 
   17725 	exp_sym_flag='-bexport'
   17726 	no_entry_flag='-bnoentry'
   17727       fi
   17728 
   17729       # When large executables or shared objects are built, AIX ld can
   17730       # have problems creating the table of contents.  If linking a library
   17731       # or program results in "error TOC overflow" add -mminimal-toc to
   17732       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   17733       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   17734 
   17735       archive_cmds=''
   17736       hardcode_direct=yes
   17737       hardcode_direct_absolute=yes
   17738       hardcode_libdir_separator=':'
   17739       link_all_deplibs=yes
   17740       file_list_spec='${wl}-f,'
   17741 
   17742       if test "$GCC" = yes; then
   17743 	case $host_os in aix4.[012]|aix4.[012].*)
   17744 	# We only want to do this on AIX 4.2 and lower, the check
   17745 	# below for broken collect2 doesn't work under 4.3+
   17746 	  collect2name=`${CC} -print-prog-name=collect2`
   17747 	  if test -f "$collect2name" &&
   17748 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   17749 	  then
   17750 	  # We have reworked collect2
   17751 	  :
   17752 	  else
   17753 	  # We have old collect2
   17754 	  hardcode_direct=unsupported
   17755 	  # It fails to find uninstalled libraries when the uninstalled
   17756 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   17757 	  # to unsupported forces relinking
   17758 	  hardcode_minus_L=yes
   17759 	  hardcode_libdir_flag_spec='-L$libdir'
   17760 	  hardcode_libdir_separator=
   17761 	  fi
   17762 	  ;;
   17763 	esac
   17764 	shared_flag='-shared'
   17765 	if test "$aix_use_runtimelinking" = yes; then
   17766 	  shared_flag="$shared_flag "'${wl}-G'
   17767 	fi
   17768       else
   17769 	# not using gcc
   17770 	if test "$host_cpu" = ia64; then
   17771 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   17772 	# chokes on -Wl,-G. The following line is correct:
   17773 	  shared_flag='-G'
   17774 	else
   17775 	  if test "$aix_use_runtimelinking" = yes; then
   17776 	    shared_flag='${wl}-G'
   17777 	  else
   17778 	    shared_flag='${wl}-bM:SRE'
   17779 	  fi
   17780 	fi
   17781       fi
   17782 
   17783       export_dynamic_flag_spec='${wl}-bexpall'
   17784       # It seems that -bexpall does not export symbols beginning with
   17785       # underscore (_), so it is better to generate a list of symbols to export.
   17786       always_export_symbols=yes
   17787       if test "$aix_use_runtimelinking" = yes; then
   17788 	# Warning - without using the other runtime loading flags (-brtl),
   17789 	# -berok will link without error, but may produce a broken library.
   17790 	allow_undefined_flag='-berok'
   17791         # Determine the default libpath from the value encoded in an
   17792         # empty executable.
   17793         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17794 /* end confdefs.h.  */
   17795 
   17796 int
   17797 main ()
   17798 {
   17799 
   17800   ;
   17801   return 0;
   17802 }
   17803 _ACEOF
   17804 if ac_fn_c_try_link "$LINENO"; then :
   17805 
   17806 lt_aix_libpath_sed='
   17807     /Import File Strings/,/^$/ {
   17808 	/^0/ {
   17809 	    s/^0  *\(.*\)$/\1/
   17810 	    p
   17811 	}
   17812     }'
   17813 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   17814 # Check for a 64-bit object if we didn't find anything.
   17815 if test -z "$aix_libpath"; then
   17816   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   17817 fi
   17818 fi
   17819 rm -f core conftest.err conftest.$ac_objext \
   17820     conftest$ac_exeext conftest.$ac_ext
   17821 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   17822 
   17823         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   17824         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"
   17825       else
   17826 	if test "$host_cpu" = ia64; then
   17827 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
   17828 	  allow_undefined_flag="-z nodefs"
   17829 	  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"
   17830 	else
   17831 	 # Determine the default libpath from the value encoded in an
   17832 	 # empty executable.
   17833 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17834 /* end confdefs.h.  */
   17835 
   17836 int
   17837 main ()
   17838 {
   17839 
   17840   ;
   17841   return 0;
   17842 }
   17843 _ACEOF
   17844 if ac_fn_c_try_link "$LINENO"; then :
   17845 
   17846 lt_aix_libpath_sed='
   17847     /Import File Strings/,/^$/ {
   17848 	/^0/ {
   17849 	    s/^0  *\(.*\)$/\1/
   17850 	    p
   17851 	}
   17852     }'
   17853 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   17854 # Check for a 64-bit object if we didn't find anything.
   17855 if test -z "$aix_libpath"; then
   17856   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   17857 fi
   17858 fi
   17859 rm -f core conftest.err conftest.$ac_objext \
   17860     conftest$ac_exeext conftest.$ac_ext
   17861 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   17862 
   17863 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   17864 	  # Warning - without using the other run time loading flags,
   17865 	  # -berok will link without error, but may produce a broken library.
   17866 	  no_undefined_flag=' ${wl}-bernotok'
   17867 	  allow_undefined_flag=' ${wl}-berok'
   17868 	  if test "$with_gnu_ld" = yes; then
   17869 	    # We only use this code for GNU lds that support --whole-archive.
   17870 	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
   17871 	  else
   17872 	    # Exported symbols can be pulled into shared objects from archives
   17873 	    whole_archive_flag_spec='$convenience'
   17874 	  fi
   17875 	  archive_cmds_need_lc=yes
   17876 	  # This is similar to how AIX traditionally builds its shared libraries.
   17877 	  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'
   17878 	fi
   17879       fi
   17880       ;;
   17881 
   17882     amigaos*)
   17883       case $host_cpu in
   17884       powerpc)
   17885             # see comment about AmigaOS4 .so support
   17886             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   17887             archive_expsym_cmds=''
   17888         ;;
   17889       m68k)
   17890             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)'
   17891             hardcode_libdir_flag_spec='-L$libdir'
   17892             hardcode_minus_L=yes
   17893         ;;
   17894       esac
   17895       ;;
   17896 
   17897     bsdi[45]*)
   17898       export_dynamic_flag_spec=-rdynamic
   17899       ;;
   17900 
   17901     cygwin* | mingw* | pw32* | cegcc*)
   17902       # When not using gcc, we currently assume that we are using
   17903       # Microsoft Visual C++.
   17904       # hardcode_libdir_flag_spec is actually meaningless, as there is
   17905       # no search path for DLLs.
   17906       hardcode_libdir_flag_spec=' '
   17907       allow_undefined_flag=unsupported
   17908       # Tell ltmain to make .lib files, not .a files.
   17909       libext=lib
   17910       # Tell ltmain to make .dll files, not .so files.
   17911       shrext_cmds=".dll"
   17912       # FIXME: Setting linknames here is a bad hack.
   17913       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   17914       # The linker will automatically build a .lib file if we build a DLL.
   17915       old_archive_from_new_cmds='true'
   17916       # FIXME: Should let the user specify the lib program.
   17917       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   17918       fix_srcfile_path='`cygpath -w "$srcfile"`'
   17919       enable_shared_with_static_runtimes=yes
   17920       ;;
   17921 
   17922     darwin* | rhapsody*)
   17923 
   17924 
   17925   archive_cmds_need_lc=no
   17926   hardcode_direct=no
   17927   hardcode_automatic=yes
   17928   hardcode_shlibpath_var=unsupported
   17929   if test "$lt_cv_ld_force_load" = "yes"; then
   17930     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\"`'
   17931   else
   17932     whole_archive_flag_spec=''
   17933   fi
   17934   link_all_deplibs=yes
   17935   allow_undefined_flag="$_lt_dar_allow_undefined"
   17936   case $cc_basename in
   17937      ifort*) _lt_dar_can_shared=yes ;;
   17938      *) _lt_dar_can_shared=$GCC ;;
   17939   esac
   17940   if test "$_lt_dar_can_shared" = "yes"; then
   17941     output_verbose_link_cmd=func_echo_all
   17942     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
   17943     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
   17944     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}"
   17945     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}"
   17946 
   17947   else
   17948   ld_shlibs=no
   17949   fi
   17950 
   17951       ;;
   17952 
   17953     dgux*)
   17954       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   17955       hardcode_libdir_flag_spec='-L$libdir'
   17956       hardcode_shlibpath_var=no
   17957       ;;
   17958 
   17959     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   17960     # support.  Future versions do this automatically, but an explicit c++rt0.o
   17961     # does not break anything, and helps significantly (at the cost of a little
   17962     # extra space).
   17963     freebsd2.2*)
   17964       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   17965       hardcode_libdir_flag_spec='-R$libdir'
   17966       hardcode_direct=yes
   17967       hardcode_shlibpath_var=no
   17968       ;;
   17969 
   17970     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   17971     freebsd2.*)
   17972       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   17973       hardcode_direct=yes
   17974       hardcode_minus_L=yes
   17975       hardcode_shlibpath_var=no
   17976       ;;
   17977 
   17978     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   17979     freebsd* | dragonfly*)
   17980       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
   17981       hardcode_libdir_flag_spec='-R$libdir'
   17982       hardcode_direct=yes
   17983       hardcode_shlibpath_var=no
   17984       ;;
   17985 
   17986     hpux9*)
   17987       if test "$GCC" = yes; then
   17988 	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'
   17989       else
   17990 	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'
   17991       fi
   17992       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   17993       hardcode_libdir_separator=:
   17994       hardcode_direct=yes
   17995 
   17996       # hardcode_minus_L: Not really in the search PATH,
   17997       # but as the default location of the library.
   17998       hardcode_minus_L=yes
   17999       export_dynamic_flag_spec='${wl}-E'
   18000       ;;
   18001 
   18002     hpux10*)
   18003       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
   18004 	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   18005       else
   18006 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   18007       fi
   18008       if test "$with_gnu_ld" = no; then
   18009 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   18010 	hardcode_libdir_flag_spec_ld='+b $libdir'
   18011 	hardcode_libdir_separator=:
   18012 	hardcode_direct=yes
   18013 	hardcode_direct_absolute=yes
   18014 	export_dynamic_flag_spec='${wl}-E'
   18015 	# hardcode_minus_L: Not really in the search PATH,
   18016 	# but as the default location of the library.
   18017 	hardcode_minus_L=yes
   18018       fi
   18019       ;;
   18020 
   18021     hpux11*)
   18022       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
   18023 	case $host_cpu in
   18024 	hppa*64*)
   18025 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   18026 	  ;;
   18027 	ia64*)
   18028 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   18029 	  ;;
   18030 	*)
   18031 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   18032 	  ;;
   18033 	esac
   18034       else
   18035 	case $host_cpu in
   18036 	hppa*64*)
   18037 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   18038 	  ;;
   18039 	ia64*)
   18040 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   18041 	  ;;
   18042 	*)
   18043 
   18044 	  # Older versions of the 11.00 compiler do not understand -b yet
   18045 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   18046 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   18047 $as_echo_n "checking if $CC understands -b... " >&6; }
   18048 if ${lt_cv_prog_compiler__b+:} false; then :
   18049   $as_echo_n "(cached) " >&6
   18050 else
   18051   lt_cv_prog_compiler__b=no
   18052    save_LDFLAGS="$LDFLAGS"
   18053    LDFLAGS="$LDFLAGS -b"
   18054    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   18055    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   18056      # The linker can only warn and ignore the option if not recognized
   18057      # So say no if there are warnings
   18058      if test -s conftest.err; then
   18059        # Append any errors to the config.log.
   18060        cat conftest.err 1>&5
   18061        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   18062        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   18063        if diff conftest.exp conftest.er2 >/dev/null; then
   18064          lt_cv_prog_compiler__b=yes
   18065        fi
   18066      else
   18067        lt_cv_prog_compiler__b=yes
   18068      fi
   18069    fi
   18070    $RM -r conftest*
   18071    LDFLAGS="$save_LDFLAGS"
   18072 
   18073 fi
   18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   18075 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   18076 
   18077 if test x"$lt_cv_prog_compiler__b" = xyes; then
   18078     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   18079 else
   18080     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   18081 fi
   18082 
   18083 	  ;;
   18084 	esac
   18085       fi
   18086       if test "$with_gnu_ld" = no; then
   18087 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   18088 	hardcode_libdir_separator=:
   18089 
   18090 	case $host_cpu in
   18091 	hppa*64*|ia64*)
   18092 	  hardcode_direct=no
   18093 	  hardcode_shlibpath_var=no
   18094 	  ;;
   18095 	*)
   18096 	  hardcode_direct=yes
   18097 	  hardcode_direct_absolute=yes
   18098 	  export_dynamic_flag_spec='${wl}-E'
   18099 
   18100 	  # hardcode_minus_L: Not really in the search PATH,
   18101 	  # but as the default location of the library.
   18102 	  hardcode_minus_L=yes
   18103 	  ;;
   18104 	esac
   18105       fi
   18106       ;;
   18107 
   18108     irix5* | irix6* | nonstopux*)
   18109       if test "$GCC" = yes; then
   18110 	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'
   18111 	# Try to use the -exported_symbol ld option, if it does not
   18112 	# work, assume that -exports_file does not work either and
   18113 	# implicitly export all symbols.
   18114         save_LDFLAGS="$LDFLAGS"
   18115         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
   18116         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18117 /* end confdefs.h.  */
   18118 int foo(void) {}
   18119 _ACEOF
   18120 if ac_fn_c_try_link "$LINENO"; then :
   18121   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'
   18122 
   18123 fi
   18124 rm -f core conftest.err conftest.$ac_objext \
   18125     conftest$ac_exeext conftest.$ac_ext
   18126         LDFLAGS="$save_LDFLAGS"
   18127       else
   18128 	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'
   18129 	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'
   18130       fi
   18131       archive_cmds_need_lc='no'
   18132       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   18133       hardcode_libdir_separator=:
   18134       inherit_rpath=yes
   18135       link_all_deplibs=yes
   18136       ;;
   18137 
   18138     netbsd*)
   18139       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   18140 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   18141       else
   18142 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   18143       fi
   18144       hardcode_libdir_flag_spec='-R$libdir'
   18145       hardcode_direct=yes
   18146       hardcode_shlibpath_var=no
   18147       ;;
   18148 
   18149     newsos6)
   18150       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   18151       hardcode_direct=yes
   18152       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   18153       hardcode_libdir_separator=:
   18154       hardcode_shlibpath_var=no
   18155       ;;
   18156 
   18157     *nto* | *qnx*)
   18158       ;;
   18159 
   18160     openbsd*)
   18161       if test -f /usr/libexec/ld.so; then
   18162 	hardcode_direct=yes
   18163 	hardcode_shlibpath_var=no
   18164 	hardcode_direct_absolute=yes
   18165 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   18166 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   18167 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
   18168 	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   18169 	  export_dynamic_flag_spec='${wl}-E'
   18170 	else
   18171 	  case $host_os in
   18172 	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
   18173 	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   18174 	     hardcode_libdir_flag_spec='-R$libdir'
   18175 	     ;;
   18176 	   *)
   18177 	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   18178 	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   18179 	     ;;
   18180 	  esac
   18181 	fi
   18182       else
   18183 	ld_shlibs=no
   18184       fi
   18185       ;;
   18186 
   18187     os2*)
   18188       hardcode_libdir_flag_spec='-L$libdir'
   18189       hardcode_minus_L=yes
   18190       allow_undefined_flag=unsupported
   18191       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'
   18192       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
   18193       ;;
   18194 
   18195     osf3*)
   18196       if test "$GCC" = yes; then
   18197 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   18198 	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'
   18199       else
   18200 	allow_undefined_flag=' -expect_unresolved \*'
   18201 	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'
   18202       fi
   18203       archive_cmds_need_lc='no'
   18204       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   18205       hardcode_libdir_separator=:
   18206       ;;
   18207 
   18208     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   18209       if test "$GCC" = yes; then
   18210 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   18211 	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'
   18212 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   18213       else
   18214 	allow_undefined_flag=' -expect_unresolved \*'
   18215 	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'
   18216 	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~
   18217 	$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'
   18218 
   18219 	# Both c and cxx compiler support -rpath directly
   18220 	hardcode_libdir_flag_spec='-rpath $libdir'
   18221       fi
   18222       archive_cmds_need_lc='no'
   18223       hardcode_libdir_separator=:
   18224       ;;
   18225 
   18226     solaris*)
   18227       no_undefined_flag=' -z defs'
   18228       if test "$GCC" = yes; then
   18229 	wlarc='${wl}'
   18230 	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   18231 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   18232 	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   18233       else
   18234 	case `$CC -V 2>&1` in
   18235 	*"Compilers 5.0"*)
   18236 	  wlarc=''
   18237 	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   18238 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   18239 	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   18240 	  ;;
   18241 	*)
   18242 	  wlarc='${wl}'
   18243 	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   18244 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   18245 	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   18246 	  ;;
   18247 	esac
   18248       fi
   18249       hardcode_libdir_flag_spec='-R$libdir'
   18250       hardcode_shlibpath_var=no
   18251       case $host_os in
   18252       solaris2.[0-5] | solaris2.[0-5].*) ;;
   18253       *)
   18254 	# The compiler driver will combine and reorder linker options,
   18255 	# but understands `-z linker_flag'.  GCC discards it without `$wl',
   18256 	# but is careful enough not to reorder.
   18257 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   18258 	if test "$GCC" = yes; then
   18259 	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
   18260 	else
   18261 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   18262 	fi
   18263 	;;
   18264       esac
   18265       link_all_deplibs=yes
   18266       ;;
   18267 
   18268     sunos4*)
   18269       if test "x$host_vendor" = xsequent; then
   18270 	# Use $CC to link under sequent, because it throws in some extra .o
   18271 	# files that make .init and .fini sections work.
   18272 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   18273       else
   18274 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   18275       fi
   18276       hardcode_libdir_flag_spec='-L$libdir'
   18277       hardcode_direct=yes
   18278       hardcode_minus_L=yes
   18279       hardcode_shlibpath_var=no
   18280       ;;
   18281 
   18282     sysv4)
   18283       case $host_vendor in
   18284 	sni)
   18285 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   18286 	  hardcode_direct=yes # is this really true???
   18287 	;;
   18288 	siemens)
   18289 	  ## LD is ld it makes a PLAMLIB
   18290 	  ## CC just makes a GrossModule.
   18291 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   18292 	  reload_cmds='$CC -r -o $output$reload_objs'
   18293 	  hardcode_direct=no
   18294         ;;
   18295 	motorola)
   18296 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   18297 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   18298 	;;
   18299       esac
   18300       runpath_var='LD_RUN_PATH'
   18301       hardcode_shlibpath_var=no
   18302       ;;
   18303 
   18304     sysv4.3*)
   18305       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   18306       hardcode_shlibpath_var=no
   18307       export_dynamic_flag_spec='-Bexport'
   18308       ;;
   18309 
   18310     sysv4*MP*)
   18311       if test -d /usr/nec; then
   18312 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   18313 	hardcode_shlibpath_var=no
   18314 	runpath_var=LD_RUN_PATH
   18315 	hardcode_runpath_var=yes
   18316 	ld_shlibs=yes
   18317       fi
   18318       ;;
   18319 
   18320     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   18321       no_undefined_flag='${wl}-z,text'
   18322       archive_cmds_need_lc=no
   18323       hardcode_shlibpath_var=no
   18324       runpath_var='LD_RUN_PATH'
   18325 
   18326       if test "$GCC" = yes; then
   18327 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   18328 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   18329       else
   18330 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   18331 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   18332       fi
   18333       ;;
   18334 
   18335     sysv5* | sco3.2v5* | sco5v6*)
   18336       # Note: We can NOT use -z defs as we might desire, because we do not
   18337       # link with -lc, and that would cause any symbols used from libc to
   18338       # always be unresolved, which means just about no library would
   18339       # ever link correctly.  If we're not using GNU ld we use -z text
   18340       # though, which does catch some bad symbols but isn't as heavy-handed
   18341       # as -z defs.
   18342       no_undefined_flag='${wl}-z,text'
   18343       allow_undefined_flag='${wl}-z,nodefs'
   18344       archive_cmds_need_lc=no
   18345       hardcode_shlibpath_var=no
   18346       hardcode_libdir_flag_spec='${wl}-R,$libdir'
   18347       hardcode_libdir_separator=':'
   18348       link_all_deplibs=yes
   18349       export_dynamic_flag_spec='${wl}-Bexport'
   18350       runpath_var='LD_RUN_PATH'
   18351 
   18352       if test "$GCC" = yes; then
   18353 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   18354 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   18355       else
   18356 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   18357 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   18358       fi
   18359       ;;
   18360 
   18361     uts4*)
   18362       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   18363       hardcode_libdir_flag_spec='-L$libdir'
   18364       hardcode_shlibpath_var=no
   18365       ;;
   18366 
   18367     *)
   18368       ld_shlibs=no
   18369       ;;
   18370     esac
   18371 
   18372     if test x$host_vendor = xsni; then
   18373       case $host in
   18374       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   18375 	export_dynamic_flag_spec='${wl}-Blargedynsym'
   18376 	;;
   18377       esac
   18378     fi
   18379   fi
   18380 
   18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   18382 $as_echo "$ld_shlibs" >&6; }
   18383 test "$ld_shlibs" = no && can_build_shared=no
   18384 
   18385 with_gnu_ld=$with_gnu_ld
   18386 
   18387 
   18388 
   18389 
   18390 
   18391 
   18392 
   18393 
   18394 
   18395 
   18396 
   18397 
   18398 
   18399 
   18400 
   18401 #
   18402 # Do we need to explicitly link libc?
   18403 #
   18404 case "x$archive_cmds_need_lc" in
   18405 x|xyes)
   18406   # Assume -lc should be added
   18407   archive_cmds_need_lc=yes
   18408 
   18409   if test "$enable_shared" = yes && test "$GCC" = yes; then
   18410     case $archive_cmds in
   18411     *'~'*)
   18412       # FIXME: we may have to deal with multi-command sequences.
   18413       ;;
   18414     '$CC '*)
   18415       # Test whether the compiler implicitly links with -lc since on some
   18416       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   18417       # to ld, don't add -lc before -lgcc.
   18418       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   18419 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   18420 if ${lt_cv_archive_cmds_need_lc+:} false; then :
   18421   $as_echo_n "(cached) " >&6
   18422 else
   18423   $RM conftest*
   18424 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   18425 
   18426 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   18427   (eval $ac_compile) 2>&5
   18428   ac_status=$?
   18429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18430   test $ac_status = 0; } 2>conftest.err; then
   18431 	  soname=conftest
   18432 	  lib=conftest
   18433 	  libobjs=conftest.$ac_objext
   18434 	  deplibs=
   18435 	  wl=$lt_prog_compiler_wl
   18436 	  pic_flag=$lt_prog_compiler_pic
   18437 	  compiler_flags=-v
   18438 	  linker_flags=-v
   18439 	  verstring=
   18440 	  output_objdir=.
   18441 	  libname=conftest
   18442 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   18443 	  allow_undefined_flag=
   18444 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   18445   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   18446   ac_status=$?
   18447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18448   test $ac_status = 0; }
   18449 	  then
   18450 	    lt_cv_archive_cmds_need_lc=no
   18451 	  else
   18452 	    lt_cv_archive_cmds_need_lc=yes
   18453 	  fi
   18454 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   18455 	else
   18456 	  cat conftest.err 1>&5
   18457 	fi
   18458 	$RM conftest*
   18459 
   18460 fi
   18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   18462 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   18463       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   18464       ;;
   18465     esac
   18466   fi
   18467   ;;
   18468 esac
   18469 
   18470 
   18471 
   18472 
   18473 
   18474 
   18475 
   18476 
   18477 
   18478 
   18479 
   18480 
   18481 
   18482 
   18483 
   18484 
   18485 
   18486 
   18487 
   18488 
   18489 
   18490 
   18491 
   18492 
   18493 
   18494 
   18495 
   18496 
   18497 
   18498 
   18499 
   18500 
   18501 
   18502 
   18503 
   18504 
   18505 
   18506 
   18507 
   18508 
   18509 
   18510 
   18511 
   18512 
   18513 
   18514 
   18515 
   18516 
   18517 
   18518 
   18519 
   18520 
   18521 
   18522 
   18523 
   18524 
   18525 
   18526 
   18527 
   18528 
   18529 
   18530 
   18531 
   18532 
   18533 
   18534 
   18535 
   18536 
   18537 
   18538 
   18539 
   18540 
   18541 
   18542 
   18543 
   18544 
   18545 
   18546 
   18547 
   18548 
   18549 
   18550 
   18551 
   18552 
   18553 
   18554 
   18555 
   18556 
   18557 
   18558 
   18559 
   18560 
   18561 
   18562 
   18563 
   18564 
   18565 
   18566 
   18567 
   18568 
   18569 
   18570 
   18571 
   18572 
   18573 
   18574 
   18575 
   18576 
   18577 
   18578 
   18579 
   18580 
   18581 
   18582 
   18583 
   18584 
   18585 
   18586 
   18587 
   18588 
   18589 
   18590 
   18591 
   18592 
   18593 
   18594 
   18595 
   18596 
   18597 
   18598 
   18599 
   18600 
   18601 
   18602 
   18603 
   18604 
   18605 
   18606 
   18607 
   18608 
   18609 
   18610 
   18611 
   18612 
   18613 
   18614 
   18615 
   18616 
   18617 
   18618 
   18619 
   18620 
   18621 
   18622 
   18623 
   18624 
   18625 
   18626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   18627 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   18628 
   18629 if test "$GCC" = yes; then
   18630   case $host_os in
   18631     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
   18632     *) lt_awk_arg="/^libraries:/" ;;
   18633   esac
   18634   case $host_os in
   18635     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
   18636     *) lt_sed_strip_eq="s,=/,/,g" ;;
   18637   esac
   18638   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   18639   case $lt_search_path_spec in
   18640   *\;*)
   18641     # if the path contains ";" then we assume it to be the separator
   18642     # otherwise default to the standard path separator (i.e. ":") - it is
   18643     # assumed that no part of a normal pathname contains ";" but that should
   18644     # okay in the real world where ";" in dirpaths is itself problematic.
   18645     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   18646     ;;
   18647   *)
   18648     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   18649     ;;
   18650   esac
   18651   # Ok, now we have the path, separated by spaces, we can step through it
   18652   # and add multilib dir if necessary.
   18653   lt_tmp_lt_search_path_spec=
   18654   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   18655   for lt_sys_path in $lt_search_path_spec; do
   18656     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
   18657       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
   18658     else
   18659       test -d "$lt_sys_path" && \
   18660 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   18661     fi
   18662   done
   18663   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   18664 BEGIN {RS=" "; FS="/|\n";} {
   18665   lt_foo="";
   18666   lt_count=0;
   18667   for (lt_i = NF; lt_i > 0; lt_i--) {
   18668     if ($lt_i != "" && $lt_i != ".") {
   18669       if ($lt_i == "..") {
   18670         lt_count++;
   18671       } else {
   18672         if (lt_count == 0) {
   18673           lt_foo="/" $lt_i lt_foo;
   18674         } else {
   18675           lt_count--;
   18676         }
   18677       }
   18678     }
   18679   }
   18680   if (lt_foo != "") { lt_freq[lt_foo]++; }
   18681   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   18682 }'`
   18683   # AWK program above erroneously prepends '/' to C:/dos/paths
   18684   # for these hosts.
   18685   case $host_os in
   18686     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   18687       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
   18688   esac
   18689   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   18690 else
   18691   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   18692 fi
   18693 library_names_spec=
   18694 libname_spec='lib$name'
   18695 soname_spec=
   18696 shrext_cmds=".so"
   18697 postinstall_cmds=
   18698 postuninstall_cmds=
   18699 finish_cmds=
   18700 finish_eval=
   18701 shlibpath_var=
   18702 shlibpath_overrides_runpath=unknown
   18703 version_type=none
   18704 dynamic_linker="$host_os ld.so"
   18705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   18706 need_lib_prefix=unknown
   18707 hardcode_into_libs=no
   18708 
   18709 # when you set need_version to no, make sure it does not cause -set_version
   18710 # flags to be left without arguments
   18711 need_version=unknown
   18712 
   18713 case $host_os in
   18714 aix3*)
   18715   version_type=linux
   18716   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   18717   shlibpath_var=LIBPATH
   18718 
   18719   # AIX 3 has no versioning support, so we append a major version to the name.
   18720   soname_spec='${libname}${release}${shared_ext}$major'
   18721   ;;
   18722 
   18723 aix[4-9]*)
   18724   version_type=linux
   18725   need_lib_prefix=no
   18726   need_version=no
   18727   hardcode_into_libs=yes
   18728   if test "$host_cpu" = ia64; then
   18729     # AIX 5 supports IA64
   18730     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   18731     shlibpath_var=LD_LIBRARY_PATH
   18732   else
   18733     # With GCC up to 2.95.x, collect2 would create an import file
   18734     # for dependence libraries.  The import file would start with
   18735     # the line `#! .'.  This would cause the generated library to
   18736     # depend on `.', always an invalid library.  This was fixed in
   18737     # development snapshots of GCC prior to 3.0.
   18738     case $host_os in
   18739       aix4 | aix4.[01] | aix4.[01].*)
   18740       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   18741 	   echo ' yes '
   18742 	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
   18743 	:
   18744       else
   18745 	can_build_shared=no
   18746       fi
   18747       ;;
   18748     esac
   18749     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   18750     # soname into executable. Probably we can add versioning support to
   18751     # collect2, so additional links can be useful in future.
   18752     if test "$aix_use_runtimelinking" = yes; then
   18753       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   18754       # instead of lib<name>.a to let people know that these are not
   18755       # typical AIX shared libraries.
   18756       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   18757     else
   18758       # We preserve .a as extension for shared libraries through AIX4.2
   18759       # and later when we are not doing run time linking.
   18760       library_names_spec='${libname}${release}.a $libname.a'
   18761       soname_spec='${libname}${release}${shared_ext}$major'
   18762     fi
   18763     shlibpath_var=LIBPATH
   18764   fi
   18765   ;;
   18766 
   18767 amigaos*)
   18768   case $host_cpu in
   18769   powerpc)
   18770     # Since July 2007 AmigaOS4 officially supports .so libraries.
   18771     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   18772     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   18773     ;;
   18774   m68k)
   18775     library_names_spec='$libname.ixlibrary $libname.a'
   18776     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   18777     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'
   18778     ;;
   18779   esac
   18780   ;;
   18781 
   18782 beos*)
   18783   library_names_spec='${libname}${shared_ext}'
   18784   dynamic_linker="$host_os ld.so"
   18785   shlibpath_var=LIBRARY_PATH
   18786   ;;
   18787 
   18788 bsdi[45]*)
   18789   version_type=linux
   18790   need_version=no
   18791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   18792   soname_spec='${libname}${release}${shared_ext}$major'
   18793   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   18794   shlibpath_var=LD_LIBRARY_PATH
   18795   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   18796   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   18797   # the default ld.so.conf also contains /usr/contrib/lib and
   18798   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   18799   # libtool to hard-code these into programs
   18800   ;;
   18801 
   18802 cygwin* | mingw* | pw32* | cegcc*)
   18803   version_type=windows
   18804   shrext_cmds=".dll"
   18805   need_version=no
   18806   need_lib_prefix=no
   18807 
   18808   case $GCC,$host_os in
   18809   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
   18810     library_names_spec='$libname.dll.a'
   18811     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   18812     postinstall_cmds='base_file=`basename \${file}`~
   18813       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
   18814       dldir=$destdir/`dirname \$dlpath`~
   18815       test -d \$dldir || mkdir -p \$dldir~
   18816       $install_prog $dir/$dlname \$dldir/$dlname~
   18817       chmod a+x \$dldir/$dlname~
   18818       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   18819         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   18820       fi'
   18821     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   18822       dlpath=$dir/\$dldll~
   18823        $RM \$dlpath'
   18824     shlibpath_overrides_runpath=yes
   18825 
   18826     case $host_os in
   18827     cygwin*)
   18828       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   18829       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   18830 
   18831       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   18832       ;;
   18833     mingw* | cegcc*)
   18834       # MinGW DLLs use traditional 'lib' prefix
   18835       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   18836       ;;
   18837     pw32*)
   18838       # pw32 DLLs use 'pw' prefix rather than 'lib'
   18839       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   18840       ;;
   18841     esac
   18842     ;;
   18843 
   18844   *)
   18845     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   18846     ;;
   18847   esac
   18848   dynamic_linker='Win32 ld.exe'
   18849   # FIXME: first we should search . and the directory the executable is in
   18850   shlibpath_var=PATH
   18851   ;;
   18852 
   18853 darwin* | rhapsody*)
   18854   dynamic_linker="$host_os dyld"
   18855   version_type=darwin
   18856   need_lib_prefix=no
   18857   need_version=no
   18858   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   18859   soname_spec='${libname}${release}${major}$shared_ext'
   18860   shlibpath_overrides_runpath=yes
   18861   shlibpath_var=DYLD_LIBRARY_PATH
   18862   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   18863 
   18864   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   18865   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   18866   ;;
   18867 
   18868 dgux*)
   18869   version_type=linux
   18870   need_lib_prefix=no
   18871   need_version=no
   18872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   18873   soname_spec='${libname}${release}${shared_ext}$major'
   18874   shlibpath_var=LD_LIBRARY_PATH
   18875   ;;
   18876 
   18877 freebsd* | dragonfly*)
   18878   # DragonFly does not have aout.  When/if they implement a new
   18879   # versioning mechanism, adjust this.
   18880   if test -x /usr/bin/objformat; then
   18881     objformat=`/usr/bin/objformat`
   18882   else
   18883     case $host_os in
   18884     freebsd[23].*) objformat=aout ;;
   18885     *) objformat=elf ;;
   18886     esac
   18887   fi
   18888   version_type=freebsd-$objformat
   18889   case $version_type in
   18890     freebsd-elf*)
   18891       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   18892       need_version=no
   18893       need_lib_prefix=no
   18894       ;;
   18895     freebsd-*)
   18896       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   18897       need_version=yes
   18898       ;;
   18899   esac
   18900   shlibpath_var=LD_LIBRARY_PATH
   18901   case $host_os in
   18902   freebsd2.*)
   18903     shlibpath_overrides_runpath=yes
   18904     ;;
   18905   freebsd3.[01]* | freebsdelf3.[01]*)
   18906     shlibpath_overrides_runpath=yes
   18907     hardcode_into_libs=yes
   18908     ;;
   18909   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   18910   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   18911     shlibpath_overrides_runpath=no
   18912     hardcode_into_libs=yes
   18913     ;;
   18914   *) # from 4.6 on, and DragonFly
   18915     shlibpath_overrides_runpath=yes
   18916     hardcode_into_libs=yes
   18917     ;;
   18918   esac
   18919   ;;
   18920 
   18921 haiku*)
   18922   version_type=linux
   18923   need_lib_prefix=no
   18924   need_version=no
   18925   dynamic_linker="$host_os runtime_loader"
   18926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   18927   soname_spec='${libname}${release}${shared_ext}$major'
   18928   shlibpath_var=LIBRARY_PATH
   18929   shlibpath_overrides_runpath=yes
   18930   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
   18931   hardcode_into_libs=yes
   18932   ;;
   18933 
   18934 hpux9* | hpux10* | hpux11*)
   18935   # Give a soname corresponding to the major version so that dld.sl refuses to
   18936   # link against other versions.
   18937   version_type=sunos
   18938   need_lib_prefix=no
   18939   need_version=no
   18940   case $host_cpu in
   18941   ia64*)
   18942     shrext_cmds='.so'
   18943     hardcode_into_libs=yes
   18944     dynamic_linker="$host_os dld.so"
   18945     shlibpath_var=LD_LIBRARY_PATH
   18946     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   18947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   18948     soname_spec='${libname}${release}${shared_ext}$major'
   18949     if test "X$HPUX_IA64_MODE" = X32; then
   18950       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   18951     else
   18952       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   18953     fi
   18954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   18955     ;;
   18956   hppa*64*)
   18957     shrext_cmds='.sl'
   18958     hardcode_into_libs=yes
   18959     dynamic_linker="$host_os dld.sl"
   18960     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   18961     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   18962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   18963     soname_spec='${libname}${release}${shared_ext}$major'
   18964     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   18965     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   18966     ;;
   18967   *)
   18968     shrext_cmds='.sl'
   18969     dynamic_linker="$host_os dld.sl"
   18970     shlibpath_var=SHLIB_PATH
   18971     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   18972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   18973     soname_spec='${libname}${release}${shared_ext}$major'
   18974     ;;
   18975   esac
   18976   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   18977   postinstall_cmds='chmod 555 $lib'
   18978   # or fails outright, so override atomically:
   18979   install_override_mode=555
   18980   ;;
   18981 
   18982 interix[3-9]*)
   18983   version_type=linux
   18984   need_lib_prefix=no
   18985   need_version=no
   18986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   18987   soname_spec='${libname}${release}${shared_ext}$major'
   18988   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   18989   shlibpath_var=LD_LIBRARY_PATH
   18990   shlibpath_overrides_runpath=no
   18991   hardcode_into_libs=yes
   18992   ;;
   18993 
   18994 irix5* | irix6* | nonstopux*)
   18995   case $host_os in
   18996     nonstopux*) version_type=nonstopux ;;
   18997     *)
   18998 	if test "$lt_cv_prog_gnu_ld" = yes; then
   18999 		version_type=linux
   19000 	else
   19001 		version_type=irix
   19002 	fi ;;
   19003   esac
   19004   need_lib_prefix=no
   19005   need_version=no
   19006   soname_spec='${libname}${release}${shared_ext}$major'
   19007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   19008   case $host_os in
   19009   irix5* | nonstopux*)
   19010     libsuff= shlibsuff=
   19011     ;;
   19012   *)
   19013     case $LD in # libtool.m4 will add one of these switches to LD
   19014     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   19015       libsuff= shlibsuff= libmagic=32-bit;;
   19016     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   19017       libsuff=32 shlibsuff=N32 libmagic=N32;;
   19018     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   19019       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   19020     *) libsuff= shlibsuff= libmagic=never-match;;
   19021     esac
   19022     ;;
   19023   esac
   19024   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   19025   shlibpath_overrides_runpath=no
   19026   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   19027   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   19028   hardcode_into_libs=yes
   19029   ;;
   19030 
   19031 # No shared lib support for Linux oldld, aout, or coff.
   19032 linux*oldld* | linux*aout* | linux*coff*)
   19033   dynamic_linker=no
   19034   ;;
   19035 
   19036 # This must be Linux ELF.
   19037 
   19038 # uclinux* changes (here and below) have been submitted to the libtool
   19039 # project, but have not yet been accepted: they are GCC-local changes
   19040 # for the time being.  (See
   19041 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
   19042 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
   19043   version_type=linux
   19044   need_lib_prefix=no
   19045   need_version=no
   19046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   19047   soname_spec='${libname}${release}${shared_ext}$major'
   19048   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   19049   shlibpath_var=LD_LIBRARY_PATH
   19050   shlibpath_overrides_runpath=no
   19051 
   19052   # Some binutils ld are patched to set DT_RUNPATH
   19053   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   19054   $as_echo_n "(cached) " >&6
   19055 else
   19056   lt_cv_shlibpath_overrides_runpath=no
   19057     save_LDFLAGS=$LDFLAGS
   19058     save_libdir=$libdir
   19059     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   19060 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   19061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19062 /* end confdefs.h.  */
   19063 
   19064 int
   19065 main ()
   19066 {
   19067 
   19068   ;
   19069   return 0;
   19070 }
   19071 _ACEOF
   19072 if ac_fn_c_try_link "$LINENO"; then :
   19073   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   19074   lt_cv_shlibpath_overrides_runpath=yes
   19075 fi
   19076 fi
   19077 rm -f core conftest.err conftest.$ac_objext \
   19078     conftest$ac_exeext conftest.$ac_ext
   19079     LDFLAGS=$save_LDFLAGS
   19080     libdir=$save_libdir
   19081 
   19082 fi
   19083 
   19084   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   19085 
   19086   # This implies no fast_install, which is unacceptable.
   19087   # Some rework will be needed to allow for fast_install
   19088   # before this can be enabled.
   19089   hardcode_into_libs=yes
   19090 
   19091   # Append ld.so.conf contents to the search path
   19092   if test -f /etc/ld.so.conf; then
   19093     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' ' '`
   19094     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   19095   fi
   19096 
   19097   # We used to test for /lib/ld.so.1 and disable shared libraries on
   19098   # powerpc, because MkLinux only supported shared libraries with the
   19099   # GNU dynamic linker.  Since this was broken with cross compilers,
   19100   # most powerpc-linux boxes support dynamic linking these days and
   19101   # people can always --disable-shared, the test was removed, and we
   19102   # assume the GNU/Linux dynamic linker is in use.
   19103   dynamic_linker='GNU/Linux ld.so'
   19104   ;;
   19105 
   19106 netbsd*)
   19107   version_type=sunos
   19108   need_lib_prefix=no
   19109   need_version=no
   19110   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   19111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   19112     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   19113     dynamic_linker='NetBSD (a.out) ld.so'
   19114   else
   19115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   19116     soname_spec='${libname}${release}${shared_ext}$major'
   19117     dynamic_linker='NetBSD ld.elf_so'
   19118   fi
   19119   shlibpath_var=LD_LIBRARY_PATH
   19120   shlibpath_overrides_runpath=yes
   19121   hardcode_into_libs=yes
   19122   ;;
   19123 
   19124 newsos6)
   19125   version_type=linux
   19126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   19127   shlibpath_var=LD_LIBRARY_PATH
   19128   shlibpath_overrides_runpath=yes
   19129   ;;
   19130 
   19131 *nto* | *qnx*)
   19132   version_type=qnx
   19133   need_lib_prefix=no
   19134   need_version=no
   19135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   19136   soname_spec='${libname}${release}${shared_ext}$major'
   19137   shlibpath_var=LD_LIBRARY_PATH
   19138   shlibpath_overrides_runpath=no
   19139   hardcode_into_libs=yes
   19140   dynamic_linker='ldqnx.so'
   19141   ;;
   19142 
   19143 openbsd*)
   19144   version_type=sunos
   19145   sys_lib_dlsearch_path_spec="/usr/lib"
   19146   need_lib_prefix=no
   19147   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   19148   case $host_os in
   19149     openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
   19150     *)				need_version=no  ;;
   19151   esac
   19152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   19153   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   19154   shlibpath_var=LD_LIBRARY_PATH
   19155   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   19156     case $host_os in
   19157       openbsd2.[89] | openbsd2.[89].*)
   19158 	shlibpath_overrides_runpath=no
   19159 	;;
   19160       *)
   19161 	shlibpath_overrides_runpath=yes
   19162 	;;
   19163       esac
   19164   else
   19165     shlibpath_overrides_runpath=yes
   19166   fi
   19167   ;;
   19168 
   19169 os2*)
   19170   libname_spec='$name'
   19171   shrext_cmds=".dll"
   19172   need_lib_prefix=no
   19173   library_names_spec='$libname${shared_ext} $libname.a'
   19174   dynamic_linker='OS/2 ld.exe'
   19175   shlibpath_var=LIBPATH
   19176   ;;
   19177 
   19178 osf3* | osf4* | osf5*)
   19179   version_type=osf
   19180   need_lib_prefix=no
   19181   need_version=no
   19182   soname_spec='${libname}${release}${shared_ext}$major'
   19183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   19184   shlibpath_var=LD_LIBRARY_PATH
   19185   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   19186   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   19187   ;;
   19188 
   19189 rdos*)
   19190   dynamic_linker=no
   19191   ;;
   19192 
   19193 solaris*)
   19194   version_type=linux
   19195   need_lib_prefix=no
   19196   need_version=no
   19197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   19198   soname_spec='${libname}${release}${shared_ext}$major'
   19199   shlibpath_var=LD_LIBRARY_PATH
   19200   shlibpath_overrides_runpath=yes
   19201   hardcode_into_libs=yes
   19202   # ldd complains unless libraries are executable
   19203   postinstall_cmds='chmod +x $lib'
   19204   ;;
   19205 
   19206 sunos4*)
   19207   version_type=sunos
   19208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   19209   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   19210   shlibpath_var=LD_LIBRARY_PATH
   19211   shlibpath_overrides_runpath=yes
   19212   if test "$with_gnu_ld" = yes; then
   19213     need_lib_prefix=no
   19214   fi
   19215   need_version=yes
   19216   ;;
   19217 
   19218 sysv4 | sysv4.3*)
   19219   version_type=linux
   19220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   19221   soname_spec='${libname}${release}${shared_ext}$major'
   19222   shlibpath_var=LD_LIBRARY_PATH
   19223   case $host_vendor in
   19224     sni)
   19225       shlibpath_overrides_runpath=no
   19226       need_lib_prefix=no
   19227       runpath_var=LD_RUN_PATH
   19228       ;;
   19229     siemens)
   19230       need_lib_prefix=no
   19231       ;;
   19232     motorola)
   19233       need_lib_prefix=no
   19234       need_version=no
   19235       shlibpath_overrides_runpath=no
   19236       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   19237       ;;
   19238   esac
   19239   ;;
   19240 
   19241 sysv4*MP*)
   19242   if test -d /usr/nec ;then
   19243     version_type=linux
   19244     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   19245     soname_spec='$libname${shared_ext}.$major'
   19246     shlibpath_var=LD_LIBRARY_PATH
   19247   fi
   19248   ;;
   19249 
   19250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   19251   version_type=freebsd-elf
   19252   need_lib_prefix=no
   19253   need_version=no
   19254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   19255   soname_spec='${libname}${release}${shared_ext}$major'
   19256   shlibpath_var=LD_LIBRARY_PATH
   19257   shlibpath_overrides_runpath=yes
   19258   hardcode_into_libs=yes
   19259   if test "$with_gnu_ld" = yes; then
   19260     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   19261   else
   19262     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   19263     case $host_os in
   19264       sco3.2v5*)
   19265         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   19266 	;;
   19267     esac
   19268   fi
   19269   sys_lib_dlsearch_path_spec='/usr/lib'
   19270   ;;
   19271 
   19272 tpf*)
   19273   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   19274   version_type=linux
   19275   need_lib_prefix=no
   19276   need_version=no
   19277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   19278   shlibpath_var=LD_LIBRARY_PATH
   19279   shlibpath_overrides_runpath=no
   19280   hardcode_into_libs=yes
   19281   ;;
   19282 
   19283 uts4*)
   19284   version_type=linux
   19285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   19286   soname_spec='${libname}${release}${shared_ext}$major'
   19287   shlibpath_var=LD_LIBRARY_PATH
   19288   ;;
   19289 
   19290 *)
   19291   dynamic_linker=no
   19292   ;;
   19293 esac
   19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   19295 $as_echo "$dynamic_linker" >&6; }
   19296 test "$dynamic_linker" = no && can_build_shared=no
   19297 
   19298 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   19299 if test "$GCC" = yes; then
   19300   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   19301 fi
   19302 
   19303 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
   19304   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
   19305 fi
   19306 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
   19307   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
   19308 fi
   19309 
   19310 
   19311 
   19312 
   19313 
   19314 
   19315 
   19316 
   19317 
   19318 
   19319 
   19320 
   19321 
   19322 
   19323 
   19324 
   19325 
   19326 
   19327 
   19328 
   19329 
   19330 
   19331 
   19332 
   19333 
   19334 
   19335 
   19336 
   19337 
   19338 
   19339 
   19340 
   19341 
   19342 
   19343 
   19344 
   19345 
   19346 
   19347 
   19348 
   19349 
   19350 
   19351 
   19352 
   19353 
   19354 
   19355 
   19356 
   19357 
   19358 
   19359 
   19360 
   19361 
   19362 
   19363 
   19364 
   19365 
   19366 
   19367 
   19368 
   19369 
   19370 
   19371 
   19372 
   19373 
   19374 
   19375 
   19376 
   19377 
   19378 
   19379 
   19380 
   19381 
   19382 
   19383 
   19384 
   19385 
   19386 
   19387 
   19388 
   19389 
   19390 
   19391 
   19392 
   19393 
   19394 
   19395 
   19396 
   19397 
   19398 
   19399 
   19400 
   19401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   19402 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   19403 hardcode_action=
   19404 if test -n "$hardcode_libdir_flag_spec" ||
   19405    test -n "$runpath_var" ||
   19406    test "X$hardcode_automatic" = "Xyes" ; then
   19407 
   19408   # We can hardcode non-existent directories.
   19409   if test "$hardcode_direct" != no &&
   19410      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   19411      # have to relink, otherwise we might link with an installed library
   19412      # when we should be linking with a yet-to-be-installed one
   19413      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
   19414      test "$hardcode_minus_L" != no; then
   19415     # Linking always hardcodes the temporary library directory.
   19416     hardcode_action=relink
   19417   else
   19418     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   19419     hardcode_action=immediate
   19420   fi
   19421 else
   19422   # We cannot hardcode anything, or else we can only hardcode existing
   19423   # directories.
   19424   hardcode_action=unsupported
   19425 fi
   19426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   19427 $as_echo "$hardcode_action" >&6; }
   19428 
   19429 if test "$hardcode_action" = relink ||
   19430    test "$inherit_rpath" = yes; then
   19431   # Fast installation is not supported
   19432   enable_fast_install=no
   19433 elif test "$shlibpath_overrides_runpath" = yes ||
   19434      test "$enable_shared" = no; then
   19435   # Fast installation is not necessary
   19436   enable_fast_install=needless
   19437 fi
   19438 
   19439 
   19440 
   19441 
   19442 
   19443 
   19444   if test "x$enable_dlopen" != xyes; then
   19445   enable_dlopen=unknown
   19446   enable_dlopen_self=unknown
   19447   enable_dlopen_self_static=unknown
   19448 else
   19449   lt_cv_dlopen=no
   19450   lt_cv_dlopen_libs=
   19451 
   19452   case $host_os in
   19453   beos*)
   19454     lt_cv_dlopen="load_add_on"
   19455     lt_cv_dlopen_libs=
   19456     lt_cv_dlopen_self=yes
   19457     ;;
   19458 
   19459   mingw* | pw32* | cegcc*)
   19460     lt_cv_dlopen="LoadLibrary"
   19461     lt_cv_dlopen_libs=
   19462     ;;
   19463 
   19464   cygwin*)
   19465     lt_cv_dlopen="dlopen"
   19466     lt_cv_dlopen_libs=
   19467     ;;
   19468 
   19469   darwin*)
   19470   # if libdl is installed we need to link against it
   19471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   19472 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   19473 if ${ac_cv_lib_dl_dlopen+:} false; then :
   19474   $as_echo_n "(cached) " >&6
   19475 else
   19476   ac_check_lib_save_LIBS=$LIBS
   19477 LIBS="-ldl  $LIBS"
   19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19479 /* end confdefs.h.  */
   19480 
   19481 /* Override any GCC internal prototype to avoid an error.
   19482    Use char because int might match the return type of a GCC
   19483    builtin and then its argument prototype would still apply.  */
   19484 #ifdef __cplusplus
   19485 extern "C"
   19486 #endif
   19487 char dlopen ();
   19488 int
   19489 main ()
   19490 {
   19491 return dlopen ();
   19492   ;
   19493   return 0;
   19494 }
   19495 _ACEOF
   19496 if ac_fn_c_try_link "$LINENO"; then :
   19497   ac_cv_lib_dl_dlopen=yes
   19498 else
   19499   ac_cv_lib_dl_dlopen=no
   19500 fi
   19501 rm -f core conftest.err conftest.$ac_objext \
   19502     conftest$ac_exeext conftest.$ac_ext
   19503 LIBS=$ac_check_lib_save_LIBS
   19504 fi
   19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   19506 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   19507 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   19508   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   19509 else
   19510 
   19511     lt_cv_dlopen="dyld"
   19512     lt_cv_dlopen_libs=
   19513     lt_cv_dlopen_self=yes
   19514 
   19515 fi
   19516 
   19517     ;;
   19518 
   19519   *)
   19520     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   19521 if test "x$ac_cv_func_shl_load" = xyes; then :
   19522   lt_cv_dlopen="shl_load"
   19523 else
   19524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   19525 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   19526 if ${ac_cv_lib_dld_shl_load+:} false; then :
   19527   $as_echo_n "(cached) " >&6
   19528 else
   19529   ac_check_lib_save_LIBS=$LIBS
   19530 LIBS="-ldld  $LIBS"
   19531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19532 /* end confdefs.h.  */
   19533 
   19534 /* Override any GCC internal prototype to avoid an error.
   19535    Use char because int might match the return type of a GCC
   19536    builtin and then its argument prototype would still apply.  */
   19537 #ifdef __cplusplus
   19538 extern "C"
   19539 #endif
   19540 char shl_load ();
   19541 int
   19542 main ()
   19543 {
   19544 return shl_load ();
   19545   ;
   19546   return 0;
   19547 }
   19548 _ACEOF
   19549 if ac_fn_c_try_link "$LINENO"; then :
   19550   ac_cv_lib_dld_shl_load=yes
   19551 else
   19552   ac_cv_lib_dld_shl_load=no
   19553 fi
   19554 rm -f core conftest.err conftest.$ac_objext \
   19555     conftest$ac_exeext conftest.$ac_ext
   19556 LIBS=$ac_check_lib_save_LIBS
   19557 fi
   19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   19559 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   19560 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   19561   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
   19562 else
   19563   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   19564 if test "x$ac_cv_func_dlopen" = xyes; then :
   19565   lt_cv_dlopen="dlopen"
   19566 else
   19567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   19568 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   19569 if ${ac_cv_lib_dl_dlopen+:} false; then :
   19570   $as_echo_n "(cached) " >&6
   19571 else
   19572   ac_check_lib_save_LIBS=$LIBS
   19573 LIBS="-ldl  $LIBS"
   19574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19575 /* end confdefs.h.  */
   19576 
   19577 /* Override any GCC internal prototype to avoid an error.
   19578    Use char because int might match the return type of a GCC
   19579    builtin and then its argument prototype would still apply.  */
   19580 #ifdef __cplusplus
   19581 extern "C"
   19582 #endif
   19583 char dlopen ();
   19584 int
   19585 main ()
   19586 {
   19587 return dlopen ();
   19588   ;
   19589   return 0;
   19590 }
   19591 _ACEOF
   19592 if ac_fn_c_try_link "$LINENO"; then :
   19593   ac_cv_lib_dl_dlopen=yes
   19594 else
   19595   ac_cv_lib_dl_dlopen=no
   19596 fi
   19597 rm -f core conftest.err conftest.$ac_objext \
   19598     conftest$ac_exeext conftest.$ac_ext
   19599 LIBS=$ac_check_lib_save_LIBS
   19600 fi
   19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   19602 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   19603 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   19604   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   19605 else
   19606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   19607 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   19608 if ${ac_cv_lib_svld_dlopen+:} false; then :
   19609   $as_echo_n "(cached) " >&6
   19610 else
   19611   ac_check_lib_save_LIBS=$LIBS
   19612 LIBS="-lsvld  $LIBS"
   19613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19614 /* end confdefs.h.  */
   19615 
   19616 /* Override any GCC internal prototype to avoid an error.
   19617    Use char because int might match the return type of a GCC
   19618    builtin and then its argument prototype would still apply.  */
   19619 #ifdef __cplusplus
   19620 extern "C"
   19621 #endif
   19622 char dlopen ();
   19623 int
   19624 main ()
   19625 {
   19626 return dlopen ();
   19627   ;
   19628   return 0;
   19629 }
   19630 _ACEOF
   19631 if ac_fn_c_try_link "$LINENO"; then :
   19632   ac_cv_lib_svld_dlopen=yes
   19633 else
   19634   ac_cv_lib_svld_dlopen=no
   19635 fi
   19636 rm -f core conftest.err conftest.$ac_objext \
   19637     conftest$ac_exeext conftest.$ac_ext
   19638 LIBS=$ac_check_lib_save_LIBS
   19639 fi
   19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   19641 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   19642 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   19643   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
   19644 else
   19645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   19646 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   19647 if ${ac_cv_lib_dld_dld_link+:} false; then :
   19648   $as_echo_n "(cached) " >&6
   19649 else
   19650   ac_check_lib_save_LIBS=$LIBS
   19651 LIBS="-ldld  $LIBS"
   19652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19653 /* end confdefs.h.  */
   19654 
   19655 /* Override any GCC internal prototype to avoid an error.
   19656    Use char because int might match the return type of a GCC
   19657    builtin and then its argument prototype would still apply.  */
   19658 #ifdef __cplusplus
   19659 extern "C"
   19660 #endif
   19661 char dld_link ();
   19662 int
   19663 main ()
   19664 {
   19665 return dld_link ();
   19666   ;
   19667   return 0;
   19668 }
   19669 _ACEOF
   19670 if ac_fn_c_try_link "$LINENO"; then :
   19671   ac_cv_lib_dld_dld_link=yes
   19672 else
   19673   ac_cv_lib_dld_dld_link=no
   19674 fi
   19675 rm -f core conftest.err conftest.$ac_objext \
   19676     conftest$ac_exeext conftest.$ac_ext
   19677 LIBS=$ac_check_lib_save_LIBS
   19678 fi
   19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   19680 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   19681 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   19682   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
   19683 fi
   19684 
   19685 
   19686 fi
   19687 
   19688 
   19689 fi
   19690 
   19691 
   19692 fi
   19693 
   19694 
   19695 fi
   19696 
   19697 
   19698 fi
   19699 
   19700     ;;
   19701   esac
   19702 
   19703   if test "x$lt_cv_dlopen" != xno; then
   19704     enable_dlopen=yes
   19705   else
   19706     enable_dlopen=no
   19707   fi
   19708 
   19709   case $lt_cv_dlopen in
   19710   dlopen)
   19711     save_CPPFLAGS="$CPPFLAGS"
   19712     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   19713 
   19714     save_LDFLAGS="$LDFLAGS"
   19715     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   19716 
   19717     save_LIBS="$LIBS"
   19718     LIBS="$lt_cv_dlopen_libs $LIBS"
   19719 
   19720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   19721 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   19722 if ${lt_cv_dlopen_self+:} false; then :
   19723   $as_echo_n "(cached) " >&6
   19724 else
   19725   	  if test "$cross_compiling" = yes; then :
   19726   lt_cv_dlopen_self=cross
   19727 else
   19728   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   19729   lt_status=$lt_dlunknown
   19730   cat > conftest.$ac_ext <<_LT_EOF
   19731 #line 19731 "configure"
   19732 #include "confdefs.h"
   19733 
   19734 #if HAVE_DLFCN_H
   19735 #include <dlfcn.h>
   19736 #endif
   19737 
   19738 #include <stdio.h>
   19739 
   19740 #ifdef RTLD_GLOBAL
   19741 #  define LT_DLGLOBAL		RTLD_GLOBAL
   19742 #else
   19743 #  ifdef DL_GLOBAL
   19744 #    define LT_DLGLOBAL		DL_GLOBAL
   19745 #  else
   19746 #    define LT_DLGLOBAL		0
   19747 #  endif
   19748 #endif
   19749 
   19750 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   19751    find out it does not work in some platform. */
   19752 #ifndef LT_DLLAZY_OR_NOW
   19753 #  ifdef RTLD_LAZY
   19754 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   19755 #  else
   19756 #    ifdef DL_LAZY
   19757 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   19758 #    else
   19759 #      ifdef RTLD_NOW
   19760 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   19761 #      else
   19762 #        ifdef DL_NOW
   19763 #          define LT_DLLAZY_OR_NOW	DL_NOW
   19764 #        else
   19765 #          define LT_DLLAZY_OR_NOW	0
   19766 #        endif
   19767 #      endif
   19768 #    endif
   19769 #  endif
   19770 #endif
   19771 
   19772 /* When -fvisbility=hidden is used, assume the code has been annotated
   19773    correspondingly for the symbols needed.  */
   19774 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   19775 void fnord () __attribute__((visibility("default")));
   19776 #endif
   19777 
   19778 void fnord () { int i=42; }
   19779 int main ()
   19780 {
   19781   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   19782   int status = $lt_dlunknown;
   19783 
   19784   if (self)
   19785     {
   19786       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   19787       else
   19788         {
   19789 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   19790           else puts (dlerror ());
   19791 	}
   19792       /* dlclose (self); */
   19793     }
   19794   else
   19795     puts (dlerror ());
   19796 
   19797   return status;
   19798 }
   19799 _LT_EOF
   19800   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   19801   (eval $ac_link) 2>&5
   19802   ac_status=$?
   19803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19804   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
   19805     (./conftest; exit; ) >&5 2>/dev/null
   19806     lt_status=$?
   19807     case x$lt_status in
   19808       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   19809       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   19810       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   19811     esac
   19812   else :
   19813     # compilation failed
   19814     lt_cv_dlopen_self=no
   19815   fi
   19816 fi
   19817 rm -fr conftest*
   19818 
   19819 
   19820 fi
   19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   19822 $as_echo "$lt_cv_dlopen_self" >&6; }
   19823 
   19824     if test "x$lt_cv_dlopen_self" = xyes; then
   19825       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   19826       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   19827 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   19828 if ${lt_cv_dlopen_self_static+:} false; then :
   19829   $as_echo_n "(cached) " >&6
   19830 else
   19831   	  if test "$cross_compiling" = yes; then :
   19832   lt_cv_dlopen_self_static=cross
   19833 else
   19834   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   19835   lt_status=$lt_dlunknown
   19836   cat > conftest.$ac_ext <<_LT_EOF
   19837 #line 19837 "configure"
   19838 #include "confdefs.h"
   19839 
   19840 #if HAVE_DLFCN_H
   19841 #include <dlfcn.h>
   19842 #endif
   19843 
   19844 #include <stdio.h>
   19845 
   19846 #ifdef RTLD_GLOBAL
   19847 #  define LT_DLGLOBAL		RTLD_GLOBAL
   19848 #else
   19849 #  ifdef DL_GLOBAL
   19850 #    define LT_DLGLOBAL		DL_GLOBAL
   19851 #  else
   19852 #    define LT_DLGLOBAL		0
   19853 #  endif
   19854 #endif
   19855 
   19856 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   19857    find out it does not work in some platform. */
   19858 #ifndef LT_DLLAZY_OR_NOW
   19859 #  ifdef RTLD_LAZY
   19860 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   19861 #  else
   19862 #    ifdef DL_LAZY
   19863 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   19864 #    else
   19865 #      ifdef RTLD_NOW
   19866 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   19867 #      else
   19868 #        ifdef DL_NOW
   19869 #          define LT_DLLAZY_OR_NOW	DL_NOW
   19870 #        else
   19871 #          define LT_DLLAZY_OR_NOW	0
   19872 #        endif
   19873 #      endif
   19874 #    endif
   19875 #  endif
   19876 #endif
   19877 
   19878 /* When -fvisbility=hidden is used, assume the code has been annotated
   19879    correspondingly for the symbols needed.  */
   19880 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   19881 void fnord () __attribute__((visibility("default")));
   19882 #endif
   19883 
   19884 void fnord () { int i=42; }
   19885 int main ()
   19886 {
   19887   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   19888   int status = $lt_dlunknown;
   19889 
   19890   if (self)
   19891     {
   19892       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   19893       else
   19894         {
   19895 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   19896           else puts (dlerror ());
   19897 	}
   19898       /* dlclose (self); */
   19899     }
   19900   else
   19901     puts (dlerror ());
   19902 
   19903   return status;
   19904 }
   19905 _LT_EOF
   19906   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   19907   (eval $ac_link) 2>&5
   19908   ac_status=$?
   19909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19910   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
   19911     (./conftest; exit; ) >&5 2>/dev/null
   19912     lt_status=$?
   19913     case x$lt_status in
   19914       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   19915       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   19916       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   19917     esac
   19918   else :
   19919     # compilation failed
   19920     lt_cv_dlopen_self_static=no
   19921   fi
   19922 fi
   19923 rm -fr conftest*
   19924 
   19925 
   19926 fi
   19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   19928 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   19929     fi
   19930 
   19931     CPPFLAGS="$save_CPPFLAGS"
   19932     LDFLAGS="$save_LDFLAGS"
   19933     LIBS="$save_LIBS"
   19934     ;;
   19935   esac
   19936 
   19937   case $lt_cv_dlopen_self in
   19938   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   19939   *) enable_dlopen_self=unknown ;;
   19940   esac
   19941 
   19942   case $lt_cv_dlopen_self_static in
   19943   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   19944   *) enable_dlopen_self_static=unknown ;;
   19945   esac
   19946 fi
   19947 
   19948 
   19949 
   19950 
   19951 
   19952 
   19953 
   19954 
   19955 
   19956 
   19957 
   19958 
   19959 
   19960 
   19961 
   19962 
   19963 
   19964 striplib=
   19965 old_striplib=
   19966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   19967 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   19968 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   19969   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   19970   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   19971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19972 $as_echo "yes" >&6; }
   19973 else
   19974 # FIXME - insert some real tests, host_os isn't really good enough
   19975   case $host_os in
   19976   darwin*)
   19977     if test -n "$STRIP" ; then
   19978       striplib="$STRIP -x"
   19979       old_striplib="$STRIP -S"
   19980       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19981 $as_echo "yes" >&6; }
   19982     else
   19983       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19984 $as_echo "no" >&6; }
   19985     fi
   19986     ;;
   19987   *)
   19988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19989 $as_echo "no" >&6; }
   19990     ;;
   19991   esac
   19992 fi
   19993 
   19994 
   19995 
   19996 
   19997 
   19998 
   19999 
   20000 
   20001 
   20002 
   20003 
   20004 
   20005   # Report which library types will actually be built
   20006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   20007 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   20008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   20009 $as_echo "$can_build_shared" >&6; }
   20010 
   20011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   20012 $as_echo_n "checking whether to build shared libraries... " >&6; }
   20013   test "$can_build_shared" = "no" && enable_shared=no
   20014 
   20015   # On AIX, shared libraries and static libraries use the same namespace, and
   20016   # are all built from PIC.
   20017   case $host_os in
   20018   aix3*)
   20019     test "$enable_shared" = yes && enable_static=no
   20020     if test -n "$RANLIB"; then
   20021       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   20022       postinstall_cmds='$RANLIB $lib'
   20023     fi
   20024     ;;
   20025 
   20026   aix[4-9]*)
   20027     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
   20028       test "$enable_shared" = yes && enable_static=no
   20029     fi
   20030     ;;
   20031   esac
   20032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   20033 $as_echo "$enable_shared" >&6; }
   20034 
   20035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   20036 $as_echo_n "checking whether to build static libraries... " >&6; }
   20037   # Make sure either enable_shared or enable_static is yes.
   20038   test "$enable_shared" = yes || enable_static=yes
   20039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   20040 $as_echo "$enable_static" >&6; }
   20041 
   20042 
   20043 
   20044 
   20045 fi
   20046 ac_ext=cpp
   20047 ac_cpp='$CXXCPP $CPPFLAGS'
   20048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   20051 
   20052 CC="$lt_save_CC"
   20053 
   20054       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
   20055     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
   20056     (test "X$CXX" != "Xg++"))) ; then
   20057   ac_ext=cpp
   20058 ac_cpp='$CXXCPP $CPPFLAGS'
   20059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   20062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
   20063 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
   20064 if test -z "$CXXCPP"; then
   20065   if ${ac_cv_prog_CXXCPP+:} false; then :
   20066   $as_echo_n "(cached) " >&6
   20067 else
   20068       # Double quotes because CXXCPP needs to be expanded
   20069     for CXXCPP in "$CXX -E" "/lib/cpp"
   20070     do
   20071       ac_preproc_ok=false
   20072 for ac_cxx_preproc_warn_flag in '' yes
   20073 do
   20074   # Use a header file that comes with gcc, so configuring glibc
   20075   # with a fresh cross-compiler works.
   20076   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   20077   # <limits.h> exists even on freestanding compilers.
   20078   # On the NeXT, cc -E runs the code through the compiler's parser,
   20079   # not just through cpp. "Syntax error" is here to catch this case.
   20080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20081 /* end confdefs.h.  */
   20082 #ifdef __STDC__
   20083 # include <limits.h>
   20084 #else
   20085 # include <assert.h>
   20086 #endif
   20087 		     Syntax error
   20088 _ACEOF
   20089 if ac_fn_cxx_try_cpp "$LINENO"; then :
   20090 
   20091 else
   20092   # Broken: fails on valid input.
   20093 continue
   20094 fi
   20095 rm -f conftest.err conftest.i conftest.$ac_ext
   20096 
   20097   # OK, works on sane cases.  Now check whether nonexistent headers
   20098   # can be detected and how.
   20099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20100 /* end confdefs.h.  */
   20101 #include <ac_nonexistent.h>
   20102 _ACEOF
   20103 if ac_fn_cxx_try_cpp "$LINENO"; then :
   20104   # Broken: success on invalid input.
   20105 continue
   20106 else
   20107   # Passes both tests.
   20108 ac_preproc_ok=:
   20109 break
   20110 fi
   20111 rm -f conftest.err conftest.i conftest.$ac_ext
   20112 
   20113 done
   20114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   20115 rm -f conftest.i conftest.err conftest.$ac_ext
   20116 if $ac_preproc_ok; then :
   20117   break
   20118 fi
   20119 
   20120     done
   20121     ac_cv_prog_CXXCPP=$CXXCPP
   20122 
   20123 fi
   20124   CXXCPP=$ac_cv_prog_CXXCPP
   20125 else
   20126   ac_cv_prog_CXXCPP=$CXXCPP
   20127 fi
   20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
   20129 $as_echo "$CXXCPP" >&6; }
   20130 ac_preproc_ok=false
   20131 for ac_cxx_preproc_warn_flag in '' yes
   20132 do
   20133   # Use a header file that comes with gcc, so configuring glibc
   20134   # with a fresh cross-compiler works.
   20135   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   20136   # <limits.h> exists even on freestanding compilers.
   20137   # On the NeXT, cc -E runs the code through the compiler's parser,
   20138   # not just through cpp. "Syntax error" is here to catch this case.
   20139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20140 /* end confdefs.h.  */
   20141 #ifdef __STDC__
   20142 # include <limits.h>
   20143 #else
   20144 # include <assert.h>
   20145 #endif
   20146 		     Syntax error
   20147 _ACEOF
   20148 if ac_fn_cxx_try_cpp "$LINENO"; then :
   20149 
   20150 else
   20151   # Broken: fails on valid input.
   20152 continue
   20153 fi
   20154 rm -f conftest.err conftest.i conftest.$ac_ext
   20155 
   20156   # OK, works on sane cases.  Now check whether nonexistent headers
   20157   # can be detected and how.
   20158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20159 /* end confdefs.h.  */
   20160 #include <ac_nonexistent.h>
   20161 _ACEOF
   20162 if ac_fn_cxx_try_cpp "$LINENO"; then :
   20163   # Broken: success on invalid input.
   20164 continue
   20165 else
   20166   # Passes both tests.
   20167 ac_preproc_ok=:
   20168 break
   20169 fi
   20170 rm -f conftest.err conftest.i conftest.$ac_ext
   20171 
   20172 done
   20173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   20174 rm -f conftest.i conftest.err conftest.$ac_ext
   20175 if $ac_preproc_ok; then :
   20176 
   20177 else
   20178   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   20179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   20180 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
   20181 See \`config.log' for more details" "$LINENO" 5; }
   20182 fi
   20183 
   20184 ac_ext=cpp
   20185 ac_cpp='$CXXCPP $CPPFLAGS'
   20186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   20189 
   20190 else
   20191   _lt_caught_CXX_error=yes
   20192 fi
   20193 
   20194 ac_ext=cpp
   20195 ac_cpp='$CXXCPP $CPPFLAGS'
   20196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   20199 
   20200 archive_cmds_need_lc_CXX=no
   20201 allow_undefined_flag_CXX=
   20202 always_export_symbols_CXX=no
   20203 archive_expsym_cmds_CXX=
   20204 compiler_needs_object_CXX=no
   20205 export_dynamic_flag_spec_CXX=
   20206 hardcode_direct_CXX=no
   20207 hardcode_direct_absolute_CXX=no
   20208 hardcode_libdir_flag_spec_CXX=
   20209 hardcode_libdir_flag_spec_ld_CXX=
   20210 hardcode_libdir_separator_CXX=
   20211 hardcode_minus_L_CXX=no
   20212 hardcode_shlibpath_var_CXX=unsupported
   20213 hardcode_automatic_CXX=no
   20214 inherit_rpath_CXX=no
   20215 module_cmds_CXX=
   20216 module_expsym_cmds_CXX=
   20217 link_all_deplibs_CXX=unknown
   20218 old_archive_cmds_CXX=$old_archive_cmds
   20219 reload_flag_CXX=$reload_flag
   20220 reload_cmds_CXX=$reload_cmds
   20221 no_undefined_flag_CXX=
   20222 whole_archive_flag_spec_CXX=
   20223 enable_shared_with_static_runtimes_CXX=no
   20224 
   20225 # Source file extension for C++ test sources.
   20226 ac_ext=cpp
   20227 
   20228 # Object file extension for compiled C++ test sources.
   20229 objext=o
   20230 objext_CXX=$objext
   20231 
   20232 # No sense in running all these tests if we already determined that
   20233 # the CXX compiler isn't working.  Some variables (like enable_shared)
   20234 # are currently assumed to apply to all compilers on this platform,
   20235 # and will be corrupted by setting them based on a non-working compiler.
   20236 if test "$_lt_caught_CXX_error" != yes; then
   20237   # Code to be used in simple compile tests
   20238   lt_simple_compile_test_code="int some_variable = 0;"
   20239 
   20240   # Code to be used in simple link tests
   20241   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
   20242 
   20243   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   20244 
   20245 
   20246 
   20247 
   20248 
   20249 
   20250 # If no C compiler was specified, use CC.
   20251 LTCC=${LTCC-"$CC"}
   20252 
   20253 # If no C compiler flags were specified, use CFLAGS.
   20254 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   20255 
   20256 # Allow CC to be a program name with arguments.
   20257 compiler=$CC
   20258 
   20259 
   20260   # save warnings/boilerplate of simple test code
   20261   ac_outfile=conftest.$ac_objext
   20262 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   20263 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   20264 _lt_compiler_boilerplate=`cat conftest.err`
   20265 $RM conftest*
   20266 
   20267   ac_outfile=conftest.$ac_objext
   20268 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   20269 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   20270 _lt_linker_boilerplate=`cat conftest.err`
   20271 $RM -r conftest*
   20272 
   20273 
   20274   # Allow CC to be a program name with arguments.
   20275   lt_save_CC=$CC
   20276   lt_save_LD=$LD
   20277   lt_save_GCC=$GCC
   20278   GCC=$GXX
   20279   lt_save_with_gnu_ld=$with_gnu_ld
   20280   lt_save_path_LD=$lt_cv_path_LD
   20281   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
   20282     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
   20283   else
   20284     $as_unset lt_cv_prog_gnu_ld
   20285   fi
   20286   if test -n "${lt_cv_path_LDCXX+set}"; then
   20287     lt_cv_path_LD=$lt_cv_path_LDCXX
   20288   else
   20289     $as_unset lt_cv_path_LD
   20290   fi
   20291   test -z "${LDCXX+set}" || LD=$LDCXX
   20292   CC=${CXX-"c++"}
   20293   compiler=$CC
   20294   compiler_CXX=$CC
   20295   for cc_temp in $compiler""; do
   20296   case $cc_temp in
   20297     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   20298     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   20299     \-*) ;;
   20300     *) break;;
   20301   esac
   20302 done
   20303 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   20304 
   20305 
   20306   if test -n "$compiler"; then
   20307     # We don't want -fno-exception when compiling C++ code, so set the
   20308     # no_builtin_flag separately
   20309     if test "$GXX" = yes; then
   20310       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
   20311     else
   20312       lt_prog_compiler_no_builtin_flag_CXX=
   20313     fi
   20314 
   20315     if test "$GXX" = yes; then
   20316       # Set up default GNU C++ configuration
   20317 
   20318 
   20319 
   20320 # Check whether --with-gnu-ld was given.
   20321 if test "${with_gnu_ld+set}" = set; then :
   20322   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   20323 else
   20324   with_gnu_ld=no
   20325 fi
   20326 
   20327 ac_prog=ld
   20328 if test "$GCC" = yes; then
   20329   # Check if gcc -print-prog-name=ld gives a path.
   20330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   20331 $as_echo_n "checking for ld used by $CC... " >&6; }
   20332   case $host in
   20333   *-*-mingw*)
   20334     # gcc leaves a trailing carriage return which upsets mingw
   20335     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   20336   *)
   20337     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   20338   esac
   20339   case $ac_prog in
   20340     # Accept absolute paths.
   20341     [\\/]* | ?:[\\/]*)
   20342       re_direlt='/[^/][^/]*/\.\./'
   20343       # Canonicalize the pathname of ld
   20344       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   20345       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   20346 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   20347       done
   20348       test -z "$LD" && LD="$ac_prog"
   20349       ;;
   20350   "")
   20351     # If it fails, then pretend we aren't using GCC.
   20352     ac_prog=ld
   20353     ;;
   20354   *)
   20355     # If it is relative, then search for the first ld in PATH.
   20356     with_gnu_ld=unknown
   20357     ;;
   20358   esac
   20359 elif test "$with_gnu_ld" = yes; then
   20360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   20361 $as_echo_n "checking for GNU ld... " >&6; }
   20362 else
   20363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   20364 $as_echo_n "checking for non-GNU ld... " >&6; }
   20365 fi
   20366 if ${lt_cv_path_LD+:} false; then :
   20367   $as_echo_n "(cached) " >&6
   20368 else
   20369   if test -z "$LD"; then
   20370   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   20371   for ac_dir in $PATH; do
   20372     IFS="$lt_save_ifs"
   20373     test -z "$ac_dir" && ac_dir=.
   20374     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   20375       lt_cv_path_LD="$ac_dir/$ac_prog"
   20376       # Check to see if the program is GNU ld.  I'd rather use --version,
   20377       # but apparently some variants of GNU ld only accept -v.
   20378       # Break only if it was the GNU/non-GNU ld that we prefer.
   20379       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   20380       *GNU* | *'with BFD'*)
   20381 	test "$with_gnu_ld" != no && break
   20382 	;;
   20383       *)
   20384 	test "$with_gnu_ld" != yes && break
   20385 	;;
   20386       esac
   20387     fi
   20388   done
   20389   IFS="$lt_save_ifs"
   20390 else
   20391   lt_cv_path_LD="$LD" # Let the user override the test with a path.
   20392 fi
   20393 fi
   20394 
   20395 LD="$lt_cv_path_LD"
   20396 if test -n "$LD"; then
   20397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   20398 $as_echo "$LD" >&6; }
   20399 else
   20400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20401 $as_echo "no" >&6; }
   20402 fi
   20403 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   20404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   20405 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   20406 if ${lt_cv_prog_gnu_ld+:} false; then :
   20407   $as_echo_n "(cached) " >&6
   20408 else
   20409   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   20410 case `$LD -v 2>&1 </dev/null` in
   20411 *GNU* | *'with BFD'*)
   20412   lt_cv_prog_gnu_ld=yes
   20413   ;;
   20414 *)
   20415   lt_cv_prog_gnu_ld=no
   20416   ;;
   20417 esac
   20418 fi
   20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   20420 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   20421 with_gnu_ld=$lt_cv_prog_gnu_ld
   20422 
   20423 
   20424 
   20425 
   20426 
   20427 
   20428 
   20429       # Check if GNU C++ uses GNU ld as the underlying linker, since the
   20430       # archiving commands below assume that GNU ld is being used.
   20431       if test "$with_gnu_ld" = yes; then
   20432         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   20433         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'
   20434 
   20435         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   20436         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   20437 
   20438         # If archive_cmds runs LD, not CC, wlarc should be empty
   20439         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
   20440         #     investigate it a little bit more. (MM)
   20441         wlarc='${wl}'
   20442 
   20443         # ancient GNU ld didn't support --whole-archive et. al.
   20444         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
   20445 	  $GREP 'no-whole-archive' > /dev/null; then
   20446           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   20447         else
   20448           whole_archive_flag_spec_CXX=
   20449         fi
   20450       else
   20451         with_gnu_ld=no
   20452         wlarc=
   20453 
   20454         # A generic and very simple default shared library creation
   20455         # command for GNU C++ for the case where it uses the native
   20456         # linker, instead of GNU ld.  If possible, this setting should
   20457         # overridden to take advantage of the native linker features on
   20458         # the platform it is being used on.
   20459         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
   20460       fi
   20461 
   20462       # Commands to make compiler produce verbose output that lists
   20463       # what "hidden" libraries, object files and flags are used when
   20464       # linking a shared library.
   20465       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
   20466 
   20467     else
   20468       GXX=no
   20469       with_gnu_ld=no
   20470       wlarc=
   20471     fi
   20472 
   20473     # PORTME: fill in a description of your system's C++ link characteristics
   20474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   20475 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   20476     ld_shlibs_CXX=yes
   20477     case $host_os in
   20478       aix3*)
   20479         # FIXME: insert proper C++ library support
   20480         ld_shlibs_CXX=no
   20481         ;;
   20482       aix[4-9]*)
   20483         if test "$host_cpu" = ia64; then
   20484           # On IA64, the linker does run time linking by default, so we don't
   20485           # have to do anything special.
   20486           aix_use_runtimelinking=no
   20487           exp_sym_flag='-Bexport'
   20488           no_entry_flag=""
   20489         else
   20490           aix_use_runtimelinking=no
   20491 
   20492           # Test if we are trying to use run time linking or normal
   20493           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
   20494           # need to do runtime linking.
   20495           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   20496 	    for ld_flag in $LDFLAGS; do
   20497 	      case $ld_flag in
   20498 	      *-brtl*)
   20499 	        aix_use_runtimelinking=yes
   20500 	        break
   20501 	        ;;
   20502 	      esac
   20503 	    done
   20504 	    ;;
   20505           esac
   20506 
   20507           exp_sym_flag='-bexport'
   20508           no_entry_flag='-bnoentry'
   20509         fi
   20510 
   20511         # When large executables or shared objects are built, AIX ld can
   20512         # have problems creating the table of contents.  If linking a library
   20513         # or program results in "error TOC overflow" add -mminimal-toc to
   20514         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   20515         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   20516 
   20517         archive_cmds_CXX=''
   20518         hardcode_direct_CXX=yes
   20519         hardcode_direct_absolute_CXX=yes
   20520         hardcode_libdir_separator_CXX=':'
   20521         link_all_deplibs_CXX=yes
   20522         file_list_spec_CXX='${wl}-f,'
   20523 
   20524         if test "$GXX" = yes; then
   20525           case $host_os in aix4.[012]|aix4.[012].*)
   20526           # We only want to do this on AIX 4.2 and lower, the check
   20527           # below for broken collect2 doesn't work under 4.3+
   20528 	  collect2name=`${CC} -print-prog-name=collect2`
   20529 	  if test -f "$collect2name" &&
   20530 	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   20531 	  then
   20532 	    # We have reworked collect2
   20533 	    :
   20534 	  else
   20535 	    # We have old collect2
   20536 	    hardcode_direct_CXX=unsupported
   20537 	    # It fails to find uninstalled libraries when the uninstalled
   20538 	    # path is not listed in the libpath.  Setting hardcode_minus_L
   20539 	    # to unsupported forces relinking
   20540 	    hardcode_minus_L_CXX=yes
   20541 	    hardcode_libdir_flag_spec_CXX='-L$libdir'
   20542 	    hardcode_libdir_separator_CXX=
   20543 	  fi
   20544           esac
   20545           shared_flag='-shared'
   20546 	  if test "$aix_use_runtimelinking" = yes; then
   20547 	    shared_flag="$shared_flag "'${wl}-G'
   20548 	  fi
   20549         else
   20550           # not using gcc
   20551           if test "$host_cpu" = ia64; then
   20552 	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   20553 	  # chokes on -Wl,-G. The following line is correct:
   20554 	  shared_flag='-G'
   20555           else
   20556 	    if test "$aix_use_runtimelinking" = yes; then
   20557 	      shared_flag='${wl}-G'
   20558 	    else
   20559 	      shared_flag='${wl}-bM:SRE'
   20560 	    fi
   20561           fi
   20562         fi
   20563 
   20564         export_dynamic_flag_spec_CXX='${wl}-bexpall'
   20565         # It seems that -bexpall does not export symbols beginning with
   20566         # underscore (_), so it is better to generate a list of symbols to
   20567 	# export.
   20568         always_export_symbols_CXX=yes
   20569         if test "$aix_use_runtimelinking" = yes; then
   20570           # Warning - without using the other runtime loading flags (-brtl),
   20571           # -berok will link without error, but may produce a broken library.
   20572           allow_undefined_flag_CXX='-berok'
   20573           # Determine the default libpath from the value encoded in an empty
   20574           # executable.
   20575           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20576 /* end confdefs.h.  */
   20577 
   20578 int
   20579 main ()
   20580 {
   20581 
   20582   ;
   20583   return 0;
   20584 }
   20585 _ACEOF
   20586 if ac_fn_cxx_try_link "$LINENO"; then :
   20587 
   20588 lt_aix_libpath_sed='
   20589     /Import File Strings/,/^$/ {
   20590 	/^0/ {
   20591 	    s/^0  *\(.*\)$/\1/
   20592 	    p
   20593 	}
   20594     }'
   20595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   20596 # Check for a 64-bit object if we didn't find anything.
   20597 if test -z "$aix_libpath"; then
   20598   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   20599 fi
   20600 fi
   20601 rm -f core conftest.err conftest.$ac_objext \
   20602     conftest$ac_exeext conftest.$ac_ext
   20603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   20604 
   20605           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
   20606 
   20607           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"
   20608         else
   20609           if test "$host_cpu" = ia64; then
   20610 	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
   20611 	    allow_undefined_flag_CXX="-z nodefs"
   20612 	    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"
   20613           else
   20614 	    # Determine the default libpath from the value encoded in an
   20615 	    # empty executable.
   20616 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20617 /* end confdefs.h.  */
   20618 
   20619 int
   20620 main ()
   20621 {
   20622 
   20623   ;
   20624   return 0;
   20625 }
   20626 _ACEOF
   20627 if ac_fn_cxx_try_link "$LINENO"; then :
   20628 
   20629 lt_aix_libpath_sed='
   20630     /Import File Strings/,/^$/ {
   20631 	/^0/ {
   20632 	    s/^0  *\(.*\)$/\1/
   20633 	    p
   20634 	}
   20635     }'
   20636 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   20637 # Check for a 64-bit object if we didn't find anything.
   20638 if test -z "$aix_libpath"; then
   20639   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   20640 fi
   20641 fi
   20642 rm -f core conftest.err conftest.$ac_objext \
   20643     conftest$ac_exeext conftest.$ac_ext
   20644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   20645 
   20646 	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
   20647 	    # Warning - without using the other run time loading flags,
   20648 	    # -berok will link without error, but may produce a broken library.
   20649 	    no_undefined_flag_CXX=' ${wl}-bernotok'
   20650 	    allow_undefined_flag_CXX=' ${wl}-berok'
   20651 	    if test "$with_gnu_ld" = yes; then
   20652 	      # We only use this code for GNU lds that support --whole-archive.
   20653 	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
   20654 	    else
   20655 	      # Exported symbols can be pulled into shared objects from archives
   20656 	      whole_archive_flag_spec_CXX='$convenience'
   20657 	    fi
   20658 	    archive_cmds_need_lc_CXX=yes
   20659 	    # This is similar to how AIX traditionally builds its shared
   20660 	    # libraries.
   20661 	    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'
   20662           fi
   20663         fi
   20664         ;;
   20665 
   20666       beos*)
   20667 	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   20668 	  allow_undefined_flag_CXX=unsupported
   20669 	  # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   20670 	  # support --undefined.  This deserves some investigation.  FIXME
   20671 	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   20672 	else
   20673 	  ld_shlibs_CXX=no
   20674 	fi
   20675 	;;
   20676 
   20677       chorus*)
   20678         case $cc_basename in
   20679           *)
   20680 	  # FIXME: insert proper C++ library support
   20681 	  ld_shlibs_CXX=no
   20682 	  ;;
   20683         esac
   20684         ;;
   20685 
   20686       cygwin* | mingw* | pw32* | cegcc*)
   20687         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
   20688         # as there is no search path for DLLs.
   20689         hardcode_libdir_flag_spec_CXX='-L$libdir'
   20690         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
   20691         allow_undefined_flag_CXX=unsupported
   20692         always_export_symbols_CXX=no
   20693         enable_shared_with_static_runtimes_CXX=yes
   20694 
   20695         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   20696           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'
   20697           # If the export-symbols file already is a .def file (1st line
   20698           # is EXPORTS), use it as is; otherwise, prepend...
   20699           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   20700 	    cp $export_symbols $output_objdir/$soname.def;
   20701           else
   20702 	    echo EXPORTS > $output_objdir/$soname.def;
   20703 	    cat $export_symbols >> $output_objdir/$soname.def;
   20704           fi~
   20705           $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'
   20706         else
   20707           ld_shlibs_CXX=no
   20708         fi
   20709         ;;
   20710       darwin* | rhapsody*)
   20711 
   20712 
   20713   archive_cmds_need_lc_CXX=no
   20714   hardcode_direct_CXX=no
   20715   hardcode_automatic_CXX=yes
   20716   hardcode_shlibpath_var_CXX=unsupported
   20717   if test "$lt_cv_ld_force_load" = "yes"; then
   20718     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\"`'
   20719   else
   20720     whole_archive_flag_spec_CXX=''
   20721   fi
   20722   link_all_deplibs_CXX=yes
   20723   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
   20724   case $cc_basename in
   20725      ifort*) _lt_dar_can_shared=yes ;;
   20726      *) _lt_dar_can_shared=$GCC ;;
   20727   esac
   20728   if test "$_lt_dar_can_shared" = "yes"; then
   20729     output_verbose_link_cmd=func_echo_all
   20730     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}"
   20731     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
   20732     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}"
   20733     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}"
   20734        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
   20735       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}"
   20736       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}"
   20737     fi
   20738 
   20739   else
   20740   ld_shlibs_CXX=no
   20741   fi
   20742 
   20743 	;;
   20744 
   20745       dgux*)
   20746         case $cc_basename in
   20747           ec++*)
   20748 	    # FIXME: insert proper C++ library support
   20749 	    ld_shlibs_CXX=no
   20750 	    ;;
   20751           ghcx*)
   20752 	    # Green Hills C++ Compiler
   20753 	    # FIXME: insert proper C++ library support
   20754 	    ld_shlibs_CXX=no
   20755 	    ;;
   20756           *)
   20757 	    # FIXME: insert proper C++ library support
   20758 	    ld_shlibs_CXX=no
   20759 	    ;;
   20760         esac
   20761         ;;
   20762 
   20763       freebsd2.*)
   20764         # C++ shared libraries reported to be fairly broken before
   20765 	# switch to ELF
   20766         ld_shlibs_CXX=no
   20767         ;;
   20768 
   20769       freebsd-elf*)
   20770         archive_cmds_need_lc_CXX=no
   20771         ;;
   20772 
   20773       freebsd* | dragonfly*)
   20774         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
   20775         # conventions
   20776         ld_shlibs_CXX=yes
   20777         ;;
   20778 
   20779       gnu*)
   20780         ;;
   20781 
   20782       haiku*)
   20783         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   20784         link_all_deplibs_CXX=yes
   20785         ;;
   20786 
   20787       hpux9*)
   20788         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
   20789         hardcode_libdir_separator_CXX=:
   20790         export_dynamic_flag_spec_CXX='${wl}-E'
   20791         hardcode_direct_CXX=yes
   20792         hardcode_minus_L_CXX=yes # Not in the search PATH,
   20793 				             # but as the default
   20794 				             # location of the library.
   20795 
   20796         case $cc_basename in
   20797           CC*)
   20798             # FIXME: insert proper C++ library support
   20799             ld_shlibs_CXX=no
   20800             ;;
   20801           aCC*)
   20802             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'
   20803             # Commands to make compiler produce verbose output that lists
   20804             # what "hidden" libraries, object files and flags are used when
   20805             # linking a shared library.
   20806             #
   20807             # There doesn't appear to be a way to prevent this compiler from
   20808             # explicitly linking system object files so we need to strip them
   20809             # from the output so that they don't get included in the library
   20810             # dependencies.
   20811             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"'
   20812             ;;
   20813           *)
   20814             if test "$GXX" = yes; then
   20815               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'
   20816             else
   20817               # FIXME: insert proper C++ library support
   20818               ld_shlibs_CXX=no
   20819             fi
   20820             ;;
   20821         esac
   20822         ;;
   20823 
   20824       hpux10*|hpux11*)
   20825         if test $with_gnu_ld = no; then
   20826 	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
   20827 	  hardcode_libdir_separator_CXX=:
   20828 
   20829           case $host_cpu in
   20830             hppa*64*|ia64*)
   20831               ;;
   20832             *)
   20833 	      export_dynamic_flag_spec_CXX='${wl}-E'
   20834               ;;
   20835           esac
   20836         fi
   20837         case $host_cpu in
   20838           hppa*64*|ia64*)
   20839             hardcode_direct_CXX=no
   20840             hardcode_shlibpath_var_CXX=no
   20841             ;;
   20842           *)
   20843             hardcode_direct_CXX=yes
   20844             hardcode_direct_absolute_CXX=yes
   20845             hardcode_minus_L_CXX=yes # Not in the search PATH,
   20846 					         # but as the default
   20847 					         # location of the library.
   20848             ;;
   20849         esac
   20850 
   20851         case $cc_basename in
   20852           CC*)
   20853 	    # FIXME: insert proper C++ library support
   20854 	    ld_shlibs_CXX=no
   20855 	    ;;
   20856           aCC*)
   20857 	    case $host_cpu in
   20858 	      hppa*64*)
   20859 	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   20860 	        ;;
   20861 	      ia64*)
   20862 	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   20863 	        ;;
   20864 	      *)
   20865 	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   20866 	        ;;
   20867 	    esac
   20868 	    # Commands to make compiler produce verbose output that lists
   20869 	    # what "hidden" libraries, object files and flags are used when
   20870 	    # linking a shared library.
   20871 	    #
   20872 	    # There doesn't appear to be a way to prevent this compiler from
   20873 	    # explicitly linking system object files so we need to strip them
   20874 	    # from the output so that they don't get included in the library
   20875 	    # dependencies.
   20876 	    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"'
   20877 	    ;;
   20878           *)
   20879 	    if test "$GXX" = yes; then
   20880 	      if test $with_gnu_ld = no; then
   20881 	        case $host_cpu in
   20882 	          hppa*64*)
   20883 	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   20884 	            ;;
   20885 	          ia64*)
   20886 	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   20887 	            ;;
   20888 	          *)
   20889 	            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'
   20890 	            ;;
   20891 	        esac
   20892 	      fi
   20893 	    else
   20894 	      # FIXME: insert proper C++ library support
   20895 	      ld_shlibs_CXX=no
   20896 	    fi
   20897 	    ;;
   20898         esac
   20899         ;;
   20900 
   20901       interix[3-9]*)
   20902 	hardcode_direct_CXX=no
   20903 	hardcode_shlibpath_var_CXX=no
   20904 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   20905 	export_dynamic_flag_spec_CXX='${wl}-E'
   20906 	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   20907 	# Instead, shared libraries are loaded at an image base (0x10000000 by
   20908 	# default) and relocated if they conflict, which is a slow very memory
   20909 	# consuming and fragmenting process.  To avoid this, we pick a random,
   20910 	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   20911 	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   20912 	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'
   20913 	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'
   20914 	;;
   20915       irix5* | irix6*)
   20916         case $cc_basename in
   20917           CC*)
   20918 	    # SGI C++
   20919 	    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'
   20920 
   20921 	    # Archives containing C++ object files must be created using
   20922 	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
   20923 	    # necessary to make sure instantiated templates are included
   20924 	    # in the archive.
   20925 	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
   20926 	    ;;
   20927           *)
   20928 	    if test "$GXX" = yes; then
   20929 	      if test "$with_gnu_ld" = no; then
   20930 	        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'
   20931 	      else
   20932 	        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'
   20933 	      fi
   20934 	    fi
   20935 	    link_all_deplibs_CXX=yes
   20936 	    ;;
   20937         esac
   20938         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   20939         hardcode_libdir_separator_CXX=:
   20940         inherit_rpath_CXX=yes
   20941         ;;
   20942 
   20943       linux* | k*bsd*-gnu | kopensolaris*-gnu)
   20944         case $cc_basename in
   20945           KCC*)
   20946 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
   20947 
   20948 	    # KCC will only create a shared library if the output file
   20949 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
   20950 	    # to its proper name (with version) after linking.
   20951 	    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'
   20952 	    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'
   20953 	    # Commands to make compiler produce verbose output that lists
   20954 	    # what "hidden" libraries, object files and flags are used when
   20955 	    # linking a shared library.
   20956 	    #
   20957 	    # There doesn't appear to be a way to prevent this compiler from
   20958 	    # explicitly linking system object files so we need to strip them
   20959 	    # from the output so that they don't get included in the library
   20960 	    # dependencies.
   20961 	    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"'
   20962 
   20963 	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   20964 	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   20965 
   20966 	    # Archives containing C++ object files must be created using
   20967 	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
   20968 	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
   20969 	    ;;
   20970 	  icpc* | ecpc* )
   20971 	    # Intel C++
   20972 	    with_gnu_ld=yes
   20973 	    # version 8.0 and above of icpc choke on multiply defined symbols
   20974 	    # if we add $predep_objects and $postdep_objects, however 7.1 and
   20975 	    # earlier do not add the objects themselves.
   20976 	    case `$CC -V 2>&1` in
   20977 	      *"Version 7."*)
   20978 	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   20979 		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'
   20980 		;;
   20981 	      *)  # Version 8.0 or newer
   20982 	        tmp_idyn=
   20983 	        case $host_cpu in
   20984 		  ia64*) tmp_idyn=' -i_dynamic';;
   20985 		esac
   20986 	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   20987 		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'
   20988 		;;
   20989 	    esac
   20990 	    archive_cmds_need_lc_CXX=no
   20991 	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   20992 	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   20993 	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
   20994 	    ;;
   20995           pgCC* | pgcpp*)
   20996             # Portland Group C++ compiler
   20997 	    case `$CC -V` in
   20998 	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
   20999 	      prelink_cmds_CXX='tpldir=Template.dir~
   21000 		rm -rf $tpldir~
   21001 		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
   21002 		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
   21003 	      old_archive_cmds_CXX='tpldir=Template.dir~
   21004 		rm -rf $tpldir~
   21005 		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
   21006 		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
   21007 		$RANLIB $oldlib'
   21008 	      archive_cmds_CXX='tpldir=Template.dir~
   21009 		rm -rf $tpldir~
   21010 		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
   21011 		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
   21012 	      archive_expsym_cmds_CXX='tpldir=Template.dir~
   21013 		rm -rf $tpldir~
   21014 		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
   21015 		$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'
   21016 	      ;;
   21017 	    *) # Version 6 and above use weak symbols
   21018 	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
   21019 	      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'
   21020 	      ;;
   21021 	    esac
   21022 
   21023 	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
   21024 	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   21025 	    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'
   21026             ;;
   21027 	  cxx*)
   21028 	    # Compaq C++
   21029 	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   21030 	    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'
   21031 
   21032 	    runpath_var=LD_RUN_PATH
   21033 	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
   21034 	    hardcode_libdir_separator_CXX=:
   21035 
   21036 	    # Commands to make compiler produce verbose output that lists
   21037 	    # what "hidden" libraries, object files and flags are used when
   21038 	    # linking a shared library.
   21039 	    #
   21040 	    # There doesn't appear to be a way to prevent this compiler from
   21041 	    # explicitly linking system object files so we need to strip them
   21042 	    # from the output so that they don't get included in the library
   21043 	    # dependencies.
   21044 	    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'
   21045 	    ;;
   21046 	  xl* | mpixl* | bgxl*)
   21047 	    # IBM XL 8.0 on PPC, with GNU ld
   21048 	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   21049 	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   21050 	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   21051 	    if test "x$supports_anon_versioning" = xyes; then
   21052 	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
   21053 		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   21054 		echo "local: *; };" >> $output_objdir/$libname.ver~
   21055 		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   21056 	    fi
   21057 	    ;;
   21058 	  *)
   21059 	    case `$CC -V 2>&1 | sed 5q` in
   21060 	    *Sun\ C*)
   21061 	      # Sun C++ 5.9
   21062 	      no_undefined_flag_CXX=' -zdefs'
   21063 	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   21064 	      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'
   21065 	      hardcode_libdir_flag_spec_CXX='-R$libdir'
   21066 	      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'
   21067 	      compiler_needs_object_CXX=yes
   21068 
   21069 	      # Not sure whether something based on
   21070 	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
   21071 	      # would be better.
   21072 	      output_verbose_link_cmd='func_echo_all'
   21073 
   21074 	      # Archives containing C++ object files must be created using
   21075 	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
   21076 	      # necessary to make sure instantiated templates are included
   21077 	      # in the archive.
   21078 	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
   21079 	      ;;
   21080 	    esac
   21081 	    ;;
   21082 	esac
   21083 	;;
   21084 
   21085       lynxos*)
   21086         # FIXME: insert proper C++ library support
   21087 	ld_shlibs_CXX=no
   21088 	;;
   21089 
   21090       m88k*)
   21091         # FIXME: insert proper C++ library support
   21092         ld_shlibs_CXX=no
   21093 	;;
   21094 
   21095       mvs*)
   21096         case $cc_basename in
   21097           cxx*)
   21098 	    # FIXME: insert proper C++ library support
   21099 	    ld_shlibs_CXX=no
   21100 	    ;;
   21101 	  *)
   21102 	    # FIXME: insert proper C++ library support
   21103 	    ld_shlibs_CXX=no
   21104 	    ;;
   21105 	esac
   21106 	;;
   21107 
   21108       netbsd*)
   21109         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   21110 	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
   21111 	  wlarc=
   21112 	  hardcode_libdir_flag_spec_CXX='-R$libdir'
   21113 	  hardcode_direct_CXX=yes
   21114 	  hardcode_shlibpath_var_CXX=no
   21115 	fi
   21116 	# Workaround some broken pre-1.5 toolchains
   21117 	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
   21118 	;;
   21119 
   21120       *nto* | *qnx*)
   21121         ld_shlibs_CXX=yes
   21122 	;;
   21123 
   21124       openbsd2*)
   21125         # C++ shared libraries are fairly broken
   21126 	ld_shlibs_CXX=no
   21127 	;;
   21128 
   21129       openbsd*)
   21130 	if test -f /usr/libexec/ld.so; then
   21131 	  hardcode_direct_CXX=yes
   21132 	  hardcode_shlibpath_var_CXX=no
   21133 	  hardcode_direct_absolute_CXX=yes
   21134 	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
   21135 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   21136 	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   21137 	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
   21138 	    export_dynamic_flag_spec_CXX='${wl}-E'
   21139 	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   21140 	  fi
   21141 	  output_verbose_link_cmd=func_echo_all
   21142 	else
   21143 	  ld_shlibs_CXX=no
   21144 	fi
   21145 	;;
   21146 
   21147       osf3* | osf4* | osf5*)
   21148         case $cc_basename in
   21149           KCC*)
   21150 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
   21151 
   21152 	    # KCC will only create a shared library if the output file
   21153 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
   21154 	    # to its proper name (with version) after linking.
   21155 	    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'
   21156 
   21157 	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   21158 	    hardcode_libdir_separator_CXX=:
   21159 
   21160 	    # Archives containing C++ object files must be created using
   21161 	    # the KAI C++ compiler.
   21162 	    case $host in
   21163 	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
   21164 	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
   21165 	    esac
   21166 	    ;;
   21167           RCC*)
   21168 	    # Rational C++ 2.4.1
   21169 	    # FIXME: insert proper C++ library support
   21170 	    ld_shlibs_CXX=no
   21171 	    ;;
   21172           cxx*)
   21173 	    case $host in
   21174 	      osf3*)
   21175 	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
   21176 	        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'
   21177 	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   21178 		;;
   21179 	      *)
   21180 	        allow_undefined_flag_CXX=' -expect_unresolved \*'
   21181 	        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'
   21182 	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
   21183 	          echo "-hidden">> $lib.exp~
   21184 	          $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~
   21185 	          $RM $lib.exp'
   21186 	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
   21187 		;;
   21188 	    esac
   21189 
   21190 	    hardcode_libdir_separator_CXX=:
   21191 
   21192 	    # Commands to make compiler produce verbose output that lists
   21193 	    # what "hidden" libraries, object files and flags are used when
   21194 	    # linking a shared library.
   21195 	    #
   21196 	    # There doesn't appear to be a way to prevent this compiler from
   21197 	    # explicitly linking system object files so we need to strip them
   21198 	    # from the output so that they don't get included in the library
   21199 	    # dependencies.
   21200 	    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"'
   21201 	    ;;
   21202 	  *)
   21203 	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
   21204 	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
   21205 	      case $host in
   21206 	        osf3*)
   21207 	          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'
   21208 		  ;;
   21209 	        *)
   21210 	          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'
   21211 		  ;;
   21212 	      esac
   21213 
   21214 	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   21215 	      hardcode_libdir_separator_CXX=:
   21216 
   21217 	      # Commands to make compiler produce verbose output that lists
   21218 	      # what "hidden" libraries, object files and flags are used when
   21219 	      # linking a shared library.
   21220 	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
   21221 
   21222 	    else
   21223 	      # FIXME: insert proper C++ library support
   21224 	      ld_shlibs_CXX=no
   21225 	    fi
   21226 	    ;;
   21227         esac
   21228         ;;
   21229 
   21230       psos*)
   21231         # FIXME: insert proper C++ library support
   21232         ld_shlibs_CXX=no
   21233         ;;
   21234 
   21235       sunos4*)
   21236         case $cc_basename in
   21237           CC*)
   21238 	    # Sun C++ 4.x
   21239 	    # FIXME: insert proper C++ library support
   21240 	    ld_shlibs_CXX=no
   21241 	    ;;
   21242           lcc*)
   21243 	    # Lucid
   21244 	    # FIXME: insert proper C++ library support
   21245 	    ld_shlibs_CXX=no
   21246 	    ;;
   21247           *)
   21248 	    # FIXME: insert proper C++ library support
   21249 	    ld_shlibs_CXX=no
   21250 	    ;;
   21251         esac
   21252         ;;
   21253 
   21254       solaris*)
   21255         case $cc_basename in
   21256           CC*)
   21257 	    # Sun C++ 4.2, 5.x and Centerline C++
   21258             archive_cmds_need_lc_CXX=yes
   21259 	    no_undefined_flag_CXX=' -zdefs'
   21260 	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   21261 	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   21262 	      $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'
   21263 
   21264 	    hardcode_libdir_flag_spec_CXX='-R$libdir'
   21265 	    hardcode_shlibpath_var_CXX=no
   21266 	    case $host_os in
   21267 	      solaris2.[0-5] | solaris2.[0-5].*) ;;
   21268 	      *)
   21269 		# The compiler driver will combine and reorder linker options,
   21270 		# but understands `-z linker_flag'.
   21271 	        # Supported since Solaris 2.6 (maybe 2.5.1?)
   21272 		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
   21273 	        ;;
   21274 	    esac
   21275 	    link_all_deplibs_CXX=yes
   21276 
   21277 	    output_verbose_link_cmd='func_echo_all'
   21278 
   21279 	    # Archives containing C++ object files must be created using
   21280 	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
   21281 	    # necessary to make sure instantiated templates are included
   21282 	    # in the archive.
   21283 	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
   21284 	    ;;
   21285           gcx*)
   21286 	    # Green Hills C++ Compiler
   21287 	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
   21288 
   21289 	    # The C++ compiler must be used to create the archive.
   21290 	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
   21291 	    ;;
   21292           *)
   21293 	    # GNU C++ compiler with Solaris linker
   21294 	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
   21295 	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
   21296 	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
   21297 	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
   21298 	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   21299 		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
   21300 
   21301 	        # Commands to make compiler produce verbose output that lists
   21302 	        # what "hidden" libraries, object files and flags are used when
   21303 	        # linking a shared library.
   21304 	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
   21305 	      else
   21306 	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
   21307 	        # platform.
   21308 	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
   21309 	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   21310 		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
   21311 
   21312 	        # Commands to make compiler produce verbose output that lists
   21313 	        # what "hidden" libraries, object files and flags are used when
   21314 	        # linking a shared library.
   21315 	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
   21316 	      fi
   21317 
   21318 	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
   21319 	      case $host_os in
   21320 		solaris2.[0-5] | solaris2.[0-5].*) ;;
   21321 		*)
   21322 		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
   21323 		  ;;
   21324 	      esac
   21325 	    fi
   21326 	    ;;
   21327         esac
   21328         ;;
   21329 
   21330     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   21331       no_undefined_flag_CXX='${wl}-z,text'
   21332       archive_cmds_need_lc_CXX=no
   21333       hardcode_shlibpath_var_CXX=no
   21334       runpath_var='LD_RUN_PATH'
   21335 
   21336       case $cc_basename in
   21337         CC*)
   21338 	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   21339 	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   21340 	  ;;
   21341 	*)
   21342 	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   21343 	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   21344 	  ;;
   21345       esac
   21346       ;;
   21347 
   21348       sysv5* | sco3.2v5* | sco5v6*)
   21349 	# Note: We can NOT use -z defs as we might desire, because we do not
   21350 	# link with -lc, and that would cause any symbols used from libc to
   21351 	# always be unresolved, which means just about no library would
   21352 	# ever link correctly.  If we're not using GNU ld we use -z text
   21353 	# though, which does catch some bad symbols but isn't as heavy-handed
   21354 	# as -z defs.
   21355 	no_undefined_flag_CXX='${wl}-z,text'
   21356 	allow_undefined_flag_CXX='${wl}-z,nodefs'
   21357 	archive_cmds_need_lc_CXX=no
   21358 	hardcode_shlibpath_var_CXX=no
   21359 	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
   21360 	hardcode_libdir_separator_CXX=':'
   21361 	link_all_deplibs_CXX=yes
   21362 	export_dynamic_flag_spec_CXX='${wl}-Bexport'
   21363 	runpath_var='LD_RUN_PATH'
   21364 
   21365 	case $cc_basename in
   21366           CC*)
   21367 	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   21368 	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   21369 	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
   21370 	      '"$old_archive_cmds_CXX"
   21371 	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
   21372 	      '"$reload_cmds_CXX"
   21373 	    ;;
   21374 	  *)
   21375 	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   21376 	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   21377 	    ;;
   21378 	esac
   21379       ;;
   21380 
   21381       tandem*)
   21382         case $cc_basename in
   21383           NCC*)
   21384 	    # NonStop-UX NCC 3.20
   21385 	    # FIXME: insert proper C++ library support
   21386 	    ld_shlibs_CXX=no
   21387 	    ;;
   21388           *)
   21389 	    # FIXME: insert proper C++ library support
   21390 	    ld_shlibs_CXX=no
   21391 	    ;;
   21392         esac
   21393         ;;
   21394 
   21395       vxworks*)
   21396         # FIXME: insert proper C++ library support
   21397         ld_shlibs_CXX=no
   21398         ;;
   21399 
   21400       *)
   21401         # FIXME: insert proper C++ library support
   21402         ld_shlibs_CXX=no
   21403         ;;
   21404     esac
   21405 
   21406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
   21407 $as_echo "$ld_shlibs_CXX" >&6; }
   21408     test "$ld_shlibs_CXX" = no && can_build_shared=no
   21409 
   21410     GCC_CXX="$GXX"
   21411     LD_CXX="$LD"
   21412 
   21413     ## CAVEAT EMPTOR:
   21414     ## There is no encapsulation within the following macros, do not change
   21415     ## the running order or otherwise move them around unless you know exactly
   21416     ## what you are doing...
   21417     # Dependencies to place before and after the object being linked:
   21418 predep_objects_CXX=
   21419 postdep_objects_CXX=
   21420 predeps_CXX=
   21421 postdeps_CXX=
   21422 compiler_lib_search_path_CXX=
   21423 
   21424 cat > conftest.$ac_ext <<_LT_EOF
   21425 class Foo
   21426 {
   21427 public:
   21428   Foo (void) { a = 0; }
   21429 private:
   21430   int a;
   21431 };
   21432 _LT_EOF
   21433 
   21434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   21435   (eval $ac_compile) 2>&5
   21436   ac_status=$?
   21437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21438   test $ac_status = 0; }; then
   21439   # Parse the compiler output and extract the necessary
   21440   # objects, libraries and library flags.
   21441 
   21442   # Sentinel used to keep track of whether or not we are before
   21443   # the conftest object file.
   21444   pre_test_object_deps_done=no
   21445 
   21446   for p in `eval "$output_verbose_link_cmd"`; do
   21447     case $p in
   21448 
   21449     -L* | -R* | -l*)
   21450        # Some compilers place space between "-{L,R}" and the path.
   21451        # Remove the space.
   21452        if test $p = "-L" ||
   21453           test $p = "-R"; then
   21454 	 prev=$p
   21455 	 continue
   21456        else
   21457 	 prev=
   21458        fi
   21459 
   21460        if test "$pre_test_object_deps_done" = no; then
   21461 	 case $p in
   21462 	 -L* | -R*)
   21463 	   # Internal compiler library paths should come after those
   21464 	   # provided the user.  The postdeps already come after the
   21465 	   # user supplied libs so there is no need to process them.
   21466 	   if test -z "$compiler_lib_search_path_CXX"; then
   21467 	     compiler_lib_search_path_CXX="${prev}${p}"
   21468 	   else
   21469 	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
   21470 	   fi
   21471 	   ;;
   21472 	 # The "-l" case would never come before the object being
   21473 	 # linked, so don't bother handling this case.
   21474 	 esac
   21475        else
   21476 	 if test -z "$postdeps_CXX"; then
   21477 	   postdeps_CXX="${prev}${p}"
   21478 	 else
   21479 	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
   21480 	 fi
   21481        fi
   21482        ;;
   21483 
   21484     *.$objext)
   21485        # This assumes that the test object file only shows up
   21486        # once in the compiler output.
   21487        if test "$p" = "conftest.$objext"; then
   21488 	 pre_test_object_deps_done=yes
   21489 	 continue
   21490        fi
   21491 
   21492        if test "$pre_test_object_deps_done" = no; then
   21493 	 if test -z "$predep_objects_CXX"; then
   21494 	   predep_objects_CXX="$p"
   21495 	 else
   21496 	   predep_objects_CXX="$predep_objects_CXX $p"
   21497 	 fi
   21498        else
   21499 	 if test -z "$postdep_objects_CXX"; then
   21500 	   postdep_objects_CXX="$p"
   21501 	 else
   21502 	   postdep_objects_CXX="$postdep_objects_CXX $p"
   21503 	 fi
   21504        fi
   21505        ;;
   21506 
   21507     *) ;; # Ignore the rest.
   21508 
   21509     esac
   21510   done
   21511 
   21512   # Clean up.
   21513   rm -f a.out a.exe
   21514 else
   21515   echo "libtool.m4: error: problem compiling CXX test program"
   21516 fi
   21517 
   21518 $RM -f confest.$objext
   21519 
   21520 # PORTME: override above test on systems where it is broken
   21521 case $host_os in
   21522 interix[3-9]*)
   21523   # Interix 3.5 installs completely hosed .la files for C++, so rather than
   21524   # hack all around it, let's just trust "g++" to DTRT.
   21525   predep_objects_CXX=
   21526   postdep_objects_CXX=
   21527   postdeps_CXX=
   21528   ;;
   21529 
   21530 linux*)
   21531   case `$CC -V 2>&1 | sed 5q` in
   21532   *Sun\ C*)
   21533     # Sun C++ 5.9
   21534 
   21535     # The more standards-conforming stlport4 library is
   21536     # incompatible with the Cstd library. Avoid specifying
   21537     # it if it's in CXXFLAGS. Ignore libCrun as
   21538     # -library=stlport4 depends on it.
   21539     case " $CXX $CXXFLAGS " in
   21540     *" -library=stlport4 "*)
   21541       solaris_use_stlport4=yes
   21542       ;;
   21543     esac
   21544 
   21545     if test "$solaris_use_stlport4" != yes; then
   21546       postdeps_CXX='-library=Cstd -library=Crun'
   21547     fi
   21548     ;;
   21549   esac
   21550   ;;
   21551 
   21552 solaris*)
   21553   case $cc_basename in
   21554   CC*)
   21555     # The more standards-conforming stlport4 library is
   21556     # incompatible with the Cstd library. Avoid specifying
   21557     # it if it's in CXXFLAGS. Ignore libCrun as
   21558     # -library=stlport4 depends on it.
   21559     case " $CXX $CXXFLAGS " in
   21560     *" -library=stlport4 "*)
   21561       solaris_use_stlport4=yes
   21562       ;;
   21563     esac
   21564 
   21565     # Adding this requires a known-good setup of shared libraries for
   21566     # Sun compiler versions before 5.6, else PIC objects from an old
   21567     # archive will be linked into the output, leading to subtle bugs.
   21568     if test "$solaris_use_stlport4" != yes; then
   21569       postdeps_CXX='-library=Cstd -library=Crun'
   21570     fi
   21571     ;;
   21572   esac
   21573   ;;
   21574 esac
   21575 
   21576 
   21577 case " $postdeps_CXX " in
   21578 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
   21579 esac
   21580  compiler_lib_search_dirs_CXX=
   21581 if test -n "${compiler_lib_search_path_CXX}"; then
   21582  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
   21583 fi
   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     lt_prog_compiler_wl_CXX=
   21616 lt_prog_compiler_pic_CXX=
   21617 lt_prog_compiler_static_CXX=
   21618 
   21619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   21620 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   21621 
   21622   # C++ specific cases for pic, static, wl, etc.
   21623   if test "$GXX" = yes; then
   21624     lt_prog_compiler_wl_CXX='-Wl,'
   21625     lt_prog_compiler_static_CXX='-static'
   21626 
   21627     case $host_os in
   21628     aix*)
   21629       # All AIX code is PIC.
   21630       if test "$host_cpu" = ia64; then
   21631 	# AIX 5 now supports IA64 processor
   21632 	lt_prog_compiler_static_CXX='-Bstatic'
   21633       fi
   21634       lt_prog_compiler_pic_CXX='-fPIC'
   21635       ;;
   21636 
   21637     amigaos*)
   21638       case $host_cpu in
   21639       powerpc)
   21640             # see comment about AmigaOS4 .so support
   21641             lt_prog_compiler_pic_CXX='-fPIC'
   21642         ;;
   21643       m68k)
   21644             # FIXME: we need at least 68020 code to build shared libraries, but
   21645             # adding the `-m68020' flag to GCC prevents building anything better,
   21646             # like `-m68040'.
   21647             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
   21648         ;;
   21649       esac
   21650       ;;
   21651 
   21652     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   21653       # PIC is the default for these OSes.
   21654       ;;
   21655     mingw* | cygwin* | os2* | pw32* | cegcc*)
   21656       # This hack is so that the source file can tell whether it is being
   21657       # built for inclusion in a dll (and should export symbols for example).
   21658       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   21659       # (--disable-auto-import) libraries
   21660       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
   21661       ;;
   21662     darwin* | rhapsody*)
   21663       # PIC is the default on this platform
   21664       # Common symbols not allowed in MH_DYLIB files
   21665       lt_prog_compiler_pic_CXX='-fno-common'
   21666       ;;
   21667     *djgpp*)
   21668       # DJGPP does not support shared libraries at all
   21669       lt_prog_compiler_pic_CXX=
   21670       ;;
   21671     haiku*)
   21672       # PIC is the default for Haiku.
   21673       # The "-static" flag exists, but is broken.
   21674       lt_prog_compiler_static_CXX=
   21675       ;;
   21676     interix[3-9]*)
   21677       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   21678       # Instead, we relocate shared libraries at runtime.
   21679       ;;
   21680     sysv4*MP*)
   21681       if test -d /usr/nec; then
   21682 	lt_prog_compiler_pic_CXX=-Kconform_pic
   21683       fi
   21684       ;;
   21685     hpux*)
   21686       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   21687       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   21688       # sets the default TLS model and affects inlining.
   21689       case $host_cpu in
   21690       hppa*64*)
   21691 	;;
   21692       *)
   21693 	lt_prog_compiler_pic_CXX='-fPIC'
   21694 	;;
   21695       esac
   21696       ;;
   21697     *qnx* | *nto*)
   21698       # QNX uses GNU C++, but need to define -shared option too, otherwise
   21699       # it will coredump.
   21700       lt_prog_compiler_pic_CXX='-fPIC -shared'
   21701       ;;
   21702     *)
   21703       lt_prog_compiler_pic_CXX='-fPIC'
   21704       ;;
   21705     esac
   21706   else
   21707     case $host_os in
   21708       aix[4-9]*)
   21709 	# All AIX code is PIC.
   21710 	if test "$host_cpu" = ia64; then
   21711 	  # AIX 5 now supports IA64 processor
   21712 	  lt_prog_compiler_static_CXX='-Bstatic'
   21713 	else
   21714 	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
   21715 	fi
   21716 	;;
   21717       chorus*)
   21718 	case $cc_basename in
   21719 	cxch68*)
   21720 	  # Green Hills C++ Compiler
   21721 	  # _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"
   21722 	  ;;
   21723 	esac
   21724 	;;
   21725       dgux*)
   21726 	case $cc_basename in
   21727 	  ec++*)
   21728 	    lt_prog_compiler_pic_CXX='-KPIC'
   21729 	    ;;
   21730 	  ghcx*)
   21731 	    # Green Hills C++ Compiler
   21732 	    lt_prog_compiler_pic_CXX='-pic'
   21733 	    ;;
   21734 	  *)
   21735 	    ;;
   21736 	esac
   21737 	;;
   21738       freebsd* | dragonfly*)
   21739 	# FreeBSD uses GNU C++
   21740 	;;
   21741       hpux9* | hpux10* | hpux11*)
   21742 	case $cc_basename in
   21743 	  CC*)
   21744 	    lt_prog_compiler_wl_CXX='-Wl,'
   21745 	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
   21746 	    if test "$host_cpu" != ia64; then
   21747 	      lt_prog_compiler_pic_CXX='+Z'
   21748 	    fi
   21749 	    ;;
   21750 	  aCC*)
   21751 	    lt_prog_compiler_wl_CXX='-Wl,'
   21752 	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
   21753 	    case $host_cpu in
   21754 	    hppa*64*|ia64*)
   21755 	      # +Z the default
   21756 	      ;;
   21757 	    *)
   21758 	      lt_prog_compiler_pic_CXX='+Z'
   21759 	      ;;
   21760 	    esac
   21761 	    ;;
   21762 	  *)
   21763 	    ;;
   21764 	esac
   21765 	;;
   21766       interix*)
   21767 	# This is c89, which is MS Visual C++ (no shared libs)
   21768 	# Anyone wants to do a port?
   21769 	;;
   21770       irix5* | irix6* | nonstopux*)
   21771 	case $cc_basename in
   21772 	  CC*)
   21773 	    lt_prog_compiler_wl_CXX='-Wl,'
   21774 	    lt_prog_compiler_static_CXX='-non_shared'
   21775 	    # CC pic flag -KPIC is the default.
   21776 	    ;;
   21777 	  *)
   21778 	    ;;
   21779 	esac
   21780 	;;
   21781       linux* | k*bsd*-gnu | kopensolaris*-gnu)
   21782 	case $cc_basename in
   21783 	  KCC*)
   21784 	    # KAI C++ Compiler
   21785 	    lt_prog_compiler_wl_CXX='--backend -Wl,'
   21786 	    lt_prog_compiler_pic_CXX='-fPIC'
   21787 	    ;;
   21788 	  ecpc* )
   21789 	    # old Intel C++ for x86_64 which still supported -KPIC.
   21790 	    lt_prog_compiler_wl_CXX='-Wl,'
   21791 	    lt_prog_compiler_pic_CXX='-KPIC'
   21792 	    lt_prog_compiler_static_CXX='-static'
   21793 	    ;;
   21794 	  icpc* )
   21795 	    # Intel C++, used to be incompatible with GCC.
   21796 	    # ICC 10 doesn't accept -KPIC any more.
   21797 	    lt_prog_compiler_wl_CXX='-Wl,'
   21798 	    lt_prog_compiler_pic_CXX='-fPIC'
   21799 	    lt_prog_compiler_static_CXX='-static'
   21800 	    ;;
   21801 	  pgCC* | pgcpp*)
   21802 	    # Portland Group C++ compiler
   21803 	    lt_prog_compiler_wl_CXX='-Wl,'
   21804 	    lt_prog_compiler_pic_CXX='-fpic'
   21805 	    lt_prog_compiler_static_CXX='-Bstatic'
   21806 	    ;;
   21807 	  cxx*)
   21808 	    # Compaq C++
   21809 	    # Make sure the PIC flag is empty.  It appears that all Alpha
   21810 	    # Linux and Compaq Tru64 Unix objects are PIC.
   21811 	    lt_prog_compiler_pic_CXX=
   21812 	    lt_prog_compiler_static_CXX='-non_shared'
   21813 	    ;;
   21814 	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
   21815 	    # IBM XL 8.0, 9.0 on PPC and BlueGene
   21816 	    lt_prog_compiler_wl_CXX='-Wl,'
   21817 	    lt_prog_compiler_pic_CXX='-qpic'
   21818 	    lt_prog_compiler_static_CXX='-qstaticlink'
   21819 	    ;;
   21820 	  *)
   21821 	    case `$CC -V 2>&1 | sed 5q` in
   21822 	    *Sun\ C*)
   21823 	      # Sun C++ 5.9
   21824 	      lt_prog_compiler_pic_CXX='-KPIC'
   21825 	      lt_prog_compiler_static_CXX='-Bstatic'
   21826 	      lt_prog_compiler_wl_CXX='-Qoption ld '
   21827 	      ;;
   21828 	    esac
   21829 	    ;;
   21830 	esac
   21831 	;;
   21832       lynxos*)
   21833 	;;
   21834       m88k*)
   21835 	;;
   21836       mvs*)
   21837 	case $cc_basename in
   21838 	  cxx*)
   21839 	    lt_prog_compiler_pic_CXX='-W c,exportall'
   21840 	    ;;
   21841 	  *)
   21842 	    ;;
   21843 	esac
   21844 	;;
   21845       netbsd*)
   21846 	;;
   21847       *qnx* | *nto*)
   21848         # QNX uses GNU C++, but need to define -shared option too, otherwise
   21849         # it will coredump.
   21850         lt_prog_compiler_pic_CXX='-fPIC -shared'
   21851         ;;
   21852       osf3* | osf4* | osf5*)
   21853 	case $cc_basename in
   21854 	  KCC*)
   21855 	    lt_prog_compiler_wl_CXX='--backend -Wl,'
   21856 	    ;;
   21857 	  RCC*)
   21858 	    # Rational C++ 2.4.1
   21859 	    lt_prog_compiler_pic_CXX='-pic'
   21860 	    ;;
   21861 	  cxx*)
   21862 	    # Digital/Compaq C++
   21863 	    lt_prog_compiler_wl_CXX='-Wl,'
   21864 	    # Make sure the PIC flag is empty.  It appears that all Alpha
   21865 	    # Linux and Compaq Tru64 Unix objects are PIC.
   21866 	    lt_prog_compiler_pic_CXX=
   21867 	    lt_prog_compiler_static_CXX='-non_shared'
   21868 	    ;;
   21869 	  *)
   21870 	    ;;
   21871 	esac
   21872 	;;
   21873       psos*)
   21874 	;;
   21875       solaris*)
   21876 	case $cc_basename in
   21877 	  CC*)
   21878 	    # Sun C++ 4.2, 5.x and Centerline C++
   21879 	    lt_prog_compiler_pic_CXX='-KPIC'
   21880 	    lt_prog_compiler_static_CXX='-Bstatic'
   21881 	    lt_prog_compiler_wl_CXX='-Qoption ld '
   21882 	    ;;
   21883 	  gcx*)
   21884 	    # Green Hills C++ Compiler
   21885 	    lt_prog_compiler_pic_CXX='-PIC'
   21886 	    ;;
   21887 	  *)
   21888 	    ;;
   21889 	esac
   21890 	;;
   21891       sunos4*)
   21892 	case $cc_basename in
   21893 	  CC*)
   21894 	    # Sun C++ 4.x
   21895 	    lt_prog_compiler_pic_CXX='-pic'
   21896 	    lt_prog_compiler_static_CXX='-Bstatic'
   21897 	    ;;
   21898 	  lcc*)
   21899 	    # Lucid
   21900 	    lt_prog_compiler_pic_CXX='-pic'
   21901 	    ;;
   21902 	  *)
   21903 	    ;;
   21904 	esac
   21905 	;;
   21906       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   21907 	case $cc_basename in
   21908 	  CC*)
   21909 	    lt_prog_compiler_wl_CXX='-Wl,'
   21910 	    lt_prog_compiler_pic_CXX='-KPIC'
   21911 	    lt_prog_compiler_static_CXX='-Bstatic'
   21912 	    ;;
   21913 	esac
   21914 	;;
   21915       tandem*)
   21916 	case $cc_basename in
   21917 	  NCC*)
   21918 	    # NonStop-UX NCC 3.20
   21919 	    lt_prog_compiler_pic_CXX='-KPIC'
   21920 	    ;;
   21921 	  *)
   21922 	    ;;
   21923 	esac
   21924 	;;
   21925       vxworks*)
   21926 	;;
   21927       *)
   21928 	lt_prog_compiler_can_build_shared_CXX=no
   21929 	;;
   21930     esac
   21931   fi
   21932 
   21933 case $host_os in
   21934   # For platforms which do not support PIC, -DPIC is meaningless:
   21935   *djgpp*)
   21936     lt_prog_compiler_pic_CXX=
   21937     ;;
   21938   *)
   21939     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
   21940     ;;
   21941 esac
   21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
   21943 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
   21944 
   21945 
   21946 
   21947 #
   21948 # Check to make sure the PIC flag actually works.
   21949 #
   21950 if test -n "$lt_prog_compiler_pic_CXX"; then
   21951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
   21952 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
   21953 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
   21954   $as_echo_n "(cached) " >&6
   21955 else
   21956   lt_cv_prog_compiler_pic_works_CXX=no
   21957    ac_outfile=conftest.$ac_objext
   21958    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   21959    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   21960    # Insert the option either (1) after the last *FLAGS variable, or
   21961    # (2) before a word containing "conftest.", or (3) at the end.
   21962    # Note that $ac_compile itself does not contain backslashes and begins
   21963    # with a dollar sign (not a hyphen), so the echo should work correctly.
   21964    # The option is referenced via a variable to avoid confusing sed.
   21965    lt_compile=`echo "$ac_compile" | $SED \
   21966    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   21967    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   21968    -e 's:$: $lt_compiler_flag:'`
   21969    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   21970    (eval "$lt_compile" 2>conftest.err)
   21971    ac_status=$?
   21972    cat conftest.err >&5
   21973    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21974    if (exit $ac_status) && test -s "$ac_outfile"; then
   21975      # The compiler can only warn and ignore the option if not recognized
   21976      # So say no if there are warnings other than the usual output.
   21977      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   21978      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   21979      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   21980        lt_cv_prog_compiler_pic_works_CXX=yes
   21981      fi
   21982    fi
   21983    $RM conftest*
   21984 
   21985 fi
   21986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
   21987 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
   21988 
   21989 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
   21990     case $lt_prog_compiler_pic_CXX in
   21991      "" | " "*) ;;
   21992      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
   21993      esac
   21994 else
   21995     lt_prog_compiler_pic_CXX=
   21996      lt_prog_compiler_can_build_shared_CXX=no
   21997 fi
   21998 
   21999 fi
   22000 
   22001 
   22002 
   22003 #
   22004 # Check to make sure the static flag actually works.
   22005 #
   22006 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
   22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   22008 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   22009 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
   22010   $as_echo_n "(cached) " >&6
   22011 else
   22012   lt_cv_prog_compiler_static_works_CXX=no
   22013    save_LDFLAGS="$LDFLAGS"
   22014    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   22015    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   22016    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   22017      # The linker can only warn and ignore the option if not recognized
   22018      # So say no if there are warnings
   22019      if test -s conftest.err; then
   22020        # Append any errors to the config.log.
   22021        cat conftest.err 1>&5
   22022        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   22023        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   22024        if diff conftest.exp conftest.er2 >/dev/null; then
   22025          lt_cv_prog_compiler_static_works_CXX=yes
   22026        fi
   22027      else
   22028        lt_cv_prog_compiler_static_works_CXX=yes
   22029      fi
   22030    fi
   22031    $RM -r conftest*
   22032    LDFLAGS="$save_LDFLAGS"
   22033 
   22034 fi
   22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
   22036 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
   22037 
   22038 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
   22039     :
   22040 else
   22041     lt_prog_compiler_static_CXX=
   22042 fi
   22043 
   22044 
   22045 
   22046 
   22047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   22048 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   22049 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
   22050   $as_echo_n "(cached) " >&6
   22051 else
   22052   lt_cv_prog_compiler_c_o_CXX=no
   22053    $RM -r conftest 2>/dev/null
   22054    mkdir conftest
   22055    cd conftest
   22056    mkdir out
   22057    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   22058 
   22059    lt_compiler_flag="-o out/conftest2.$ac_objext"
   22060    # Insert the option either (1) after the last *FLAGS variable, or
   22061    # (2) before a word containing "conftest.", or (3) at the end.
   22062    # Note that $ac_compile itself does not contain backslashes and begins
   22063    # with a dollar sign (not a hyphen), so the echo should work correctly.
   22064    lt_compile=`echo "$ac_compile" | $SED \
   22065    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   22066    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   22067    -e 's:$: $lt_compiler_flag:'`
   22068    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   22069    (eval "$lt_compile" 2>out/conftest.err)
   22070    ac_status=$?
   22071    cat out/conftest.err >&5
   22072    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22073    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   22074    then
   22075      # The compiler can only warn and ignore the option if not recognized
   22076      # So say no if there are warnings
   22077      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   22078      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   22079      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   22080        lt_cv_prog_compiler_c_o_CXX=yes
   22081      fi
   22082    fi
   22083    chmod u+w . 2>&5
   22084    $RM conftest*
   22085    # SGI C++ compiler will create directory out/ii_files/ for
   22086    # template instantiation
   22087    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   22088    $RM out/* && rmdir out
   22089    cd ..
   22090    $RM -r conftest
   22091    $RM conftest*
   22092 
   22093 fi
   22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
   22095 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
   22096 
   22097 
   22098 
   22099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   22100 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   22101 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
   22102   $as_echo_n "(cached) " >&6
   22103 else
   22104   lt_cv_prog_compiler_c_o_CXX=no
   22105    $RM -r conftest 2>/dev/null
   22106    mkdir conftest
   22107    cd conftest
   22108    mkdir out
   22109    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   22110 
   22111    lt_compiler_flag="-o out/conftest2.$ac_objext"
   22112    # Insert the option either (1) after the last *FLAGS variable, or
   22113    # (2) before a word containing "conftest.", or (3) at the end.
   22114    # Note that $ac_compile itself does not contain backslashes and begins
   22115    # with a dollar sign (not a hyphen), so the echo should work correctly.
   22116    lt_compile=`echo "$ac_compile" | $SED \
   22117    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   22118    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   22119    -e 's:$: $lt_compiler_flag:'`
   22120    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   22121    (eval "$lt_compile" 2>out/conftest.err)
   22122    ac_status=$?
   22123    cat out/conftest.err >&5
   22124    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22125    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   22126    then
   22127      # The compiler can only warn and ignore the option if not recognized
   22128      # So say no if there are warnings
   22129      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   22130      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   22131      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   22132        lt_cv_prog_compiler_c_o_CXX=yes
   22133      fi
   22134    fi
   22135    chmod u+w . 2>&5
   22136    $RM conftest*
   22137    # SGI C++ compiler will create directory out/ii_files/ for
   22138    # template instantiation
   22139    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   22140    $RM out/* && rmdir out
   22141    cd ..
   22142    $RM -r conftest
   22143    $RM conftest*
   22144 
   22145 fi
   22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
   22147 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
   22148 
   22149 
   22150 
   22151 
   22152 hard_links="nottested"
   22153 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
   22154   # do not overwrite the value of need_locks provided by the user
   22155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   22156 $as_echo_n "checking if we can lock with hard links... " >&6; }
   22157   hard_links=yes
   22158   $RM conftest*
   22159   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   22160   touch conftest.a
   22161   ln conftest.a conftest.b 2>&5 || hard_links=no
   22162   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   22163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   22164 $as_echo "$hard_links" >&6; }
   22165   if test "$hard_links" = no; then
   22166     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   22167 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   22168     need_locks=warn
   22169   fi
   22170 else
   22171   need_locks=no
   22172 fi
   22173 
   22174 
   22175 
   22176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   22177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   22178 
   22179   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   22180   case $host_os in
   22181   aix[4-9]*)
   22182     # If we're using GNU nm, then we don't want the "-C" option.
   22183     # -C means demangle to AIX nm, but means don't demangle with GNU nm
   22184     # Also, AIX nm treats weak defined symbols like other global defined
   22185     # symbols, whereas GNU nm marks them as "W".
   22186     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   22187       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'
   22188     else
   22189       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'
   22190     fi
   22191     ;;
   22192   pw32*)
   22193     export_symbols_cmds_CXX="$ltdll_cmds"
   22194   ;;
   22195   cygwin* | mingw* | cegcc*)
   22196     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'
   22197   ;;
   22198   *)
   22199     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   22200   ;;
   22201   esac
   22202   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   22203 
   22204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
   22205 $as_echo "$ld_shlibs_CXX" >&6; }
   22206 test "$ld_shlibs_CXX" = no && can_build_shared=no
   22207 
   22208 with_gnu_ld_CXX=$with_gnu_ld
   22209 
   22210 
   22211 
   22212 
   22213 
   22214 
   22215 #
   22216 # Do we need to explicitly link libc?
   22217 #
   22218 case "x$archive_cmds_need_lc_CXX" in
   22219 x|xyes)
   22220   # Assume -lc should be added
   22221   archive_cmds_need_lc_CXX=yes
   22222 
   22223   if test "$enable_shared" = yes && test "$GCC" = yes; then
   22224     case $archive_cmds_CXX in
   22225     *'~'*)
   22226       # FIXME: we may have to deal with multi-command sequences.
   22227       ;;
   22228     '$CC '*)
   22229       # Test whether the compiler implicitly links with -lc since on some
   22230       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   22231       # to ld, don't add -lc before -lgcc.
   22232       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   22233 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   22234 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
   22235   $as_echo_n "(cached) " >&6
   22236 else
   22237   $RM conftest*
   22238 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   22239 
   22240 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   22241   (eval $ac_compile) 2>&5
   22242   ac_status=$?
   22243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22244   test $ac_status = 0; } 2>conftest.err; then
   22245 	  soname=conftest
   22246 	  lib=conftest
   22247 	  libobjs=conftest.$ac_objext
   22248 	  deplibs=
   22249 	  wl=$lt_prog_compiler_wl_CXX
   22250 	  pic_flag=$lt_prog_compiler_pic_CXX
   22251 	  compiler_flags=-v
   22252 	  linker_flags=-v
   22253 	  verstring=
   22254 	  output_objdir=.
   22255 	  libname=conftest
   22256 	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
   22257 	  allow_undefined_flag_CXX=
   22258 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   22259   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   22260   ac_status=$?
   22261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22262   test $ac_status = 0; }
   22263 	  then
   22264 	    lt_cv_archive_cmds_need_lc_CXX=no
   22265 	  else
   22266 	    lt_cv_archive_cmds_need_lc_CXX=yes
   22267 	  fi
   22268 	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
   22269 	else
   22270 	  cat conftest.err 1>&5
   22271 	fi
   22272 	$RM conftest*
   22273 
   22274 fi
   22275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
   22276 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
   22277       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
   22278       ;;
   22279     esac
   22280   fi
   22281   ;;
   22282 esac
   22283 
   22284 
   22285 
   22286 
   22287 
   22288 
   22289 
   22290 
   22291 
   22292 
   22293 
   22294 
   22295 
   22296 
   22297 
   22298 
   22299 
   22300 
   22301 
   22302 
   22303 
   22304 
   22305 
   22306 
   22307 
   22308 
   22309 
   22310 
   22311 
   22312 
   22313 
   22314 
   22315 
   22316 
   22317 
   22318 
   22319 
   22320 
   22321 
   22322 
   22323 
   22324 
   22325 
   22326 
   22327 
   22328 
   22329 
   22330 
   22331 
   22332 
   22333 
   22334 
   22335 
   22336 
   22337 
   22338 
   22339 
   22340 
   22341 
   22342 
   22343 
   22344 
   22345 
   22346 
   22347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   22348 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   22349 
   22350 library_names_spec=
   22351 libname_spec='lib$name'
   22352 soname_spec=
   22353 shrext_cmds=".so"
   22354 postinstall_cmds=
   22355 postuninstall_cmds=
   22356 finish_cmds=
   22357 finish_eval=
   22358 shlibpath_var=
   22359 shlibpath_overrides_runpath=unknown
   22360 version_type=none
   22361 dynamic_linker="$host_os ld.so"
   22362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   22363 need_lib_prefix=unknown
   22364 hardcode_into_libs=no
   22365 
   22366 # when you set need_version to no, make sure it does not cause -set_version
   22367 # flags to be left without arguments
   22368 need_version=unknown
   22369 
   22370 case $host_os in
   22371 aix3*)
   22372   version_type=linux
   22373   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   22374   shlibpath_var=LIBPATH
   22375 
   22376   # AIX 3 has no versioning support, so we append a major version to the name.
   22377   soname_spec='${libname}${release}${shared_ext}$major'
   22378   ;;
   22379 
   22380 aix[4-9]*)
   22381   version_type=linux
   22382   need_lib_prefix=no
   22383   need_version=no
   22384   hardcode_into_libs=yes
   22385   if test "$host_cpu" = ia64; then
   22386     # AIX 5 supports IA64
   22387     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   22388     shlibpath_var=LD_LIBRARY_PATH
   22389   else
   22390     # With GCC up to 2.95.x, collect2 would create an import file
   22391     # for dependence libraries.  The import file would start with
   22392     # the line `#! .'.  This would cause the generated library to
   22393     # depend on `.', always an invalid library.  This was fixed in
   22394     # development snapshots of GCC prior to 3.0.
   22395     case $host_os in
   22396       aix4 | aix4.[01] | aix4.[01].*)
   22397       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   22398 	   echo ' yes '
   22399 	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
   22400 	:
   22401       else
   22402 	can_build_shared=no
   22403       fi
   22404       ;;
   22405     esac
   22406     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   22407     # soname into executable. Probably we can add versioning support to
   22408     # collect2, so additional links can be useful in future.
   22409     if test "$aix_use_runtimelinking" = yes; then
   22410       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   22411       # instead of lib<name>.a to let people know that these are not
   22412       # typical AIX shared libraries.
   22413       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22414     else
   22415       # We preserve .a as extension for shared libraries through AIX4.2
   22416       # and later when we are not doing run time linking.
   22417       library_names_spec='${libname}${release}.a $libname.a'
   22418       soname_spec='${libname}${release}${shared_ext}$major'
   22419     fi
   22420     shlibpath_var=LIBPATH
   22421   fi
   22422   ;;
   22423 
   22424 amigaos*)
   22425   case $host_cpu in
   22426   powerpc)
   22427     # Since July 2007 AmigaOS4 officially supports .so libraries.
   22428     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   22429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22430     ;;
   22431   m68k)
   22432     library_names_spec='$libname.ixlibrary $libname.a'
   22433     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   22434     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'
   22435     ;;
   22436   esac
   22437   ;;
   22438 
   22439 beos*)
   22440   library_names_spec='${libname}${shared_ext}'
   22441   dynamic_linker="$host_os ld.so"
   22442   shlibpath_var=LIBRARY_PATH
   22443   ;;
   22444 
   22445 bsdi[45]*)
   22446   version_type=linux
   22447   need_version=no
   22448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22449   soname_spec='${libname}${release}${shared_ext}$major'
   22450   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   22451   shlibpath_var=LD_LIBRARY_PATH
   22452   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   22453   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   22454   # the default ld.so.conf also contains /usr/contrib/lib and
   22455   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   22456   # libtool to hard-code these into programs
   22457   ;;
   22458 
   22459 cygwin* | mingw* | pw32* | cegcc*)
   22460   version_type=windows
   22461   shrext_cmds=".dll"
   22462   need_version=no
   22463   need_lib_prefix=no
   22464 
   22465   case $GCC,$host_os in
   22466   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
   22467     library_names_spec='$libname.dll.a'
   22468     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   22469     postinstall_cmds='base_file=`basename \${file}`~
   22470       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
   22471       dldir=$destdir/`dirname \$dlpath`~
   22472       test -d \$dldir || mkdir -p \$dldir~
   22473       $install_prog $dir/$dlname \$dldir/$dlname~
   22474       chmod a+x \$dldir/$dlname~
   22475       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   22476         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   22477       fi'
   22478     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   22479       dlpath=$dir/\$dldll~
   22480        $RM \$dlpath'
   22481     shlibpath_overrides_runpath=yes
   22482 
   22483     case $host_os in
   22484     cygwin*)
   22485       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   22486       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   22487 
   22488       ;;
   22489     mingw* | cegcc*)
   22490       # MinGW DLLs use traditional 'lib' prefix
   22491       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   22492       ;;
   22493     pw32*)
   22494       # pw32 DLLs use 'pw' prefix rather than 'lib'
   22495       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   22496       ;;
   22497     esac
   22498     ;;
   22499 
   22500   *)
   22501     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   22502     ;;
   22503   esac
   22504   dynamic_linker='Win32 ld.exe'
   22505   # FIXME: first we should search . and the directory the executable is in
   22506   shlibpath_var=PATH
   22507   ;;
   22508 
   22509 darwin* | rhapsody*)
   22510   dynamic_linker="$host_os dyld"
   22511   version_type=darwin
   22512   need_lib_prefix=no
   22513   need_version=no
   22514   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   22515   soname_spec='${libname}${release}${major}$shared_ext'
   22516   shlibpath_overrides_runpath=yes
   22517   shlibpath_var=DYLD_LIBRARY_PATH
   22518   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   22519 
   22520   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   22521   ;;
   22522 
   22523 dgux*)
   22524   version_type=linux
   22525   need_lib_prefix=no
   22526   need_version=no
   22527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   22528   soname_spec='${libname}${release}${shared_ext}$major'
   22529   shlibpath_var=LD_LIBRARY_PATH
   22530   ;;
   22531 
   22532 freebsd* | dragonfly*)
   22533   # DragonFly does not have aout.  When/if they implement a new
   22534   # versioning mechanism, adjust this.
   22535   if test -x /usr/bin/objformat; then
   22536     objformat=`/usr/bin/objformat`
   22537   else
   22538     case $host_os in
   22539     freebsd[23].*) objformat=aout ;;
   22540     *) objformat=elf ;;
   22541     esac
   22542   fi
   22543   version_type=freebsd-$objformat
   22544   case $version_type in
   22545     freebsd-elf*)
   22546       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   22547       need_version=no
   22548       need_lib_prefix=no
   22549       ;;
   22550     freebsd-*)
   22551       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   22552       need_version=yes
   22553       ;;
   22554   esac
   22555   shlibpath_var=LD_LIBRARY_PATH
   22556   case $host_os in
   22557   freebsd2.*)
   22558     shlibpath_overrides_runpath=yes
   22559     ;;
   22560   freebsd3.[01]* | freebsdelf3.[01]*)
   22561     shlibpath_overrides_runpath=yes
   22562     hardcode_into_libs=yes
   22563     ;;
   22564   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   22565   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   22566     shlibpath_overrides_runpath=no
   22567     hardcode_into_libs=yes
   22568     ;;
   22569   *) # from 4.6 on, and DragonFly
   22570     shlibpath_overrides_runpath=yes
   22571     hardcode_into_libs=yes
   22572     ;;
   22573   esac
   22574   ;;
   22575 
   22576 haiku*)
   22577   version_type=linux
   22578   need_lib_prefix=no
   22579   need_version=no
   22580   dynamic_linker="$host_os runtime_loader"
   22581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   22582   soname_spec='${libname}${release}${shared_ext}$major'
   22583   shlibpath_var=LIBRARY_PATH
   22584   shlibpath_overrides_runpath=yes
   22585   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
   22586   hardcode_into_libs=yes
   22587   ;;
   22588 
   22589 hpux9* | hpux10* | hpux11*)
   22590   # Give a soname corresponding to the major version so that dld.sl refuses to
   22591   # link against other versions.
   22592   version_type=sunos
   22593   need_lib_prefix=no
   22594   need_version=no
   22595   case $host_cpu in
   22596   ia64*)
   22597     shrext_cmds='.so'
   22598     hardcode_into_libs=yes
   22599     dynamic_linker="$host_os dld.so"
   22600     shlibpath_var=LD_LIBRARY_PATH
   22601     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   22602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22603     soname_spec='${libname}${release}${shared_ext}$major'
   22604     if test "X$HPUX_IA64_MODE" = X32; then
   22605       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   22606     else
   22607       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   22608     fi
   22609     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   22610     ;;
   22611   hppa*64*)
   22612     shrext_cmds='.sl'
   22613     hardcode_into_libs=yes
   22614     dynamic_linker="$host_os dld.sl"
   22615     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   22616     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   22617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22618     soname_spec='${libname}${release}${shared_ext}$major'
   22619     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   22620     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   22621     ;;
   22622   *)
   22623     shrext_cmds='.sl'
   22624     dynamic_linker="$host_os dld.sl"
   22625     shlibpath_var=SHLIB_PATH
   22626     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   22627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22628     soname_spec='${libname}${release}${shared_ext}$major'
   22629     ;;
   22630   esac
   22631   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   22632   postinstall_cmds='chmod 555 $lib'
   22633   # or fails outright, so override atomically:
   22634   install_override_mode=555
   22635   ;;
   22636 
   22637 interix[3-9]*)
   22638   version_type=linux
   22639   need_lib_prefix=no
   22640   need_version=no
   22641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   22642   soname_spec='${libname}${release}${shared_ext}$major'
   22643   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   22644   shlibpath_var=LD_LIBRARY_PATH
   22645   shlibpath_overrides_runpath=no
   22646   hardcode_into_libs=yes
   22647   ;;
   22648 
   22649 irix5* | irix6* | nonstopux*)
   22650   case $host_os in
   22651     nonstopux*) version_type=nonstopux ;;
   22652     *)
   22653 	if test "$lt_cv_prog_gnu_ld" = yes; then
   22654 		version_type=linux
   22655 	else
   22656 		version_type=irix
   22657 	fi ;;
   22658   esac
   22659   need_lib_prefix=no
   22660   need_version=no
   22661   soname_spec='${libname}${release}${shared_ext}$major'
   22662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   22663   case $host_os in
   22664   irix5* | nonstopux*)
   22665     libsuff= shlibsuff=
   22666     ;;
   22667   *)
   22668     case $LD in # libtool.m4 will add one of these switches to LD
   22669     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   22670       libsuff= shlibsuff= libmagic=32-bit;;
   22671     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   22672       libsuff=32 shlibsuff=N32 libmagic=N32;;
   22673     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   22674       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   22675     *) libsuff= shlibsuff= libmagic=never-match;;
   22676     esac
   22677     ;;
   22678   esac
   22679   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   22680   shlibpath_overrides_runpath=no
   22681   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   22682   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   22683   hardcode_into_libs=yes
   22684   ;;
   22685 
   22686 # No shared lib support for Linux oldld, aout, or coff.
   22687 linux*oldld* | linux*aout* | linux*coff*)
   22688   dynamic_linker=no
   22689   ;;
   22690 
   22691 # This must be Linux ELF.
   22692 
   22693 # uclinux* changes (here and below) have been submitted to the libtool
   22694 # project, but have not yet been accepted: they are GCC-local changes
   22695 # for the time being.  (See
   22696 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
   22697 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
   22698   version_type=linux
   22699   need_lib_prefix=no
   22700   need_version=no
   22701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22702   soname_spec='${libname}${release}${shared_ext}$major'
   22703   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   22704   shlibpath_var=LD_LIBRARY_PATH
   22705   shlibpath_overrides_runpath=no
   22706 
   22707   # Some binutils ld are patched to set DT_RUNPATH
   22708   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   22709   $as_echo_n "(cached) " >&6
   22710 else
   22711   lt_cv_shlibpath_overrides_runpath=no
   22712     save_LDFLAGS=$LDFLAGS
   22713     save_libdir=$libdir
   22714     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
   22715 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
   22716     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22717 /* end confdefs.h.  */
   22718 
   22719 int
   22720 main ()
   22721 {
   22722 
   22723   ;
   22724   return 0;
   22725 }
   22726 _ACEOF
   22727 if ac_fn_cxx_try_link "$LINENO"; then :
   22728   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   22729   lt_cv_shlibpath_overrides_runpath=yes
   22730 fi
   22731 fi
   22732 rm -f core conftest.err conftest.$ac_objext \
   22733     conftest$ac_exeext conftest.$ac_ext
   22734     LDFLAGS=$save_LDFLAGS
   22735     libdir=$save_libdir
   22736 
   22737 fi
   22738 
   22739   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   22740 
   22741   # This implies no fast_install, which is unacceptable.
   22742   # Some rework will be needed to allow for fast_install
   22743   # before this can be enabled.
   22744   hardcode_into_libs=yes
   22745 
   22746   # Append ld.so.conf contents to the search path
   22747   if test -f /etc/ld.so.conf; then
   22748     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' ' '`
   22749     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   22750   fi
   22751 
   22752   # We used to test for /lib/ld.so.1 and disable shared libraries on
   22753   # powerpc, because MkLinux only supported shared libraries with the
   22754   # GNU dynamic linker.  Since this was broken with cross compilers,
   22755   # most powerpc-linux boxes support dynamic linking these days and
   22756   # people can always --disable-shared, the test was removed, and we
   22757   # assume the GNU/Linux dynamic linker is in use.
   22758   dynamic_linker='GNU/Linux ld.so'
   22759   ;;
   22760 
   22761 netbsd*)
   22762   version_type=sunos
   22763   need_lib_prefix=no
   22764   need_version=no
   22765   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   22766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   22767     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   22768     dynamic_linker='NetBSD (a.out) ld.so'
   22769   else
   22770     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   22771     soname_spec='${libname}${release}${shared_ext}$major'
   22772     dynamic_linker='NetBSD ld.elf_so'
   22773   fi
   22774   shlibpath_var=LD_LIBRARY_PATH
   22775   shlibpath_overrides_runpath=yes
   22776   hardcode_into_libs=yes
   22777   ;;
   22778 
   22779 newsos6)
   22780   version_type=linux
   22781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22782   shlibpath_var=LD_LIBRARY_PATH
   22783   shlibpath_overrides_runpath=yes
   22784   ;;
   22785 
   22786 *nto* | *qnx*)
   22787   version_type=qnx
   22788   need_lib_prefix=no
   22789   need_version=no
   22790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22791   soname_spec='${libname}${release}${shared_ext}$major'
   22792   shlibpath_var=LD_LIBRARY_PATH
   22793   shlibpath_overrides_runpath=no
   22794   hardcode_into_libs=yes
   22795   dynamic_linker='ldqnx.so'
   22796   ;;
   22797 
   22798 openbsd*)
   22799   version_type=sunos
   22800   sys_lib_dlsearch_path_spec="/usr/lib"
   22801   need_lib_prefix=no
   22802   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   22803   case $host_os in
   22804     openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
   22805     *)				need_version=no  ;;
   22806   esac
   22807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   22808   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   22809   shlibpath_var=LD_LIBRARY_PATH
   22810   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   22811     case $host_os in
   22812       openbsd2.[89] | openbsd2.[89].*)
   22813 	shlibpath_overrides_runpath=no
   22814 	;;
   22815       *)
   22816 	shlibpath_overrides_runpath=yes
   22817 	;;
   22818       esac
   22819   else
   22820     shlibpath_overrides_runpath=yes
   22821   fi
   22822   ;;
   22823 
   22824 os2*)
   22825   libname_spec='$name'
   22826   shrext_cmds=".dll"
   22827   need_lib_prefix=no
   22828   library_names_spec='$libname${shared_ext} $libname.a'
   22829   dynamic_linker='OS/2 ld.exe'
   22830   shlibpath_var=LIBPATH
   22831   ;;
   22832 
   22833 osf3* | osf4* | osf5*)
   22834   version_type=osf
   22835   need_lib_prefix=no
   22836   need_version=no
   22837   soname_spec='${libname}${release}${shared_ext}$major'
   22838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22839   shlibpath_var=LD_LIBRARY_PATH
   22840   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   22841   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   22842   ;;
   22843 
   22844 rdos*)
   22845   dynamic_linker=no
   22846   ;;
   22847 
   22848 solaris*)
   22849   version_type=linux
   22850   need_lib_prefix=no
   22851   need_version=no
   22852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22853   soname_spec='${libname}${release}${shared_ext}$major'
   22854   shlibpath_var=LD_LIBRARY_PATH
   22855   shlibpath_overrides_runpath=yes
   22856   hardcode_into_libs=yes
   22857   # ldd complains unless libraries are executable
   22858   postinstall_cmds='chmod +x $lib'
   22859   ;;
   22860 
   22861 sunos4*)
   22862   version_type=sunos
   22863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   22864   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   22865   shlibpath_var=LD_LIBRARY_PATH
   22866   shlibpath_overrides_runpath=yes
   22867   if test "$with_gnu_ld" = yes; then
   22868     need_lib_prefix=no
   22869   fi
   22870   need_version=yes
   22871   ;;
   22872 
   22873 sysv4 | sysv4.3*)
   22874   version_type=linux
   22875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22876   soname_spec='${libname}${release}${shared_ext}$major'
   22877   shlibpath_var=LD_LIBRARY_PATH
   22878   case $host_vendor in
   22879     sni)
   22880       shlibpath_overrides_runpath=no
   22881       need_lib_prefix=no
   22882       runpath_var=LD_RUN_PATH
   22883       ;;
   22884     siemens)
   22885       need_lib_prefix=no
   22886       ;;
   22887     motorola)
   22888       need_lib_prefix=no
   22889       need_version=no
   22890       shlibpath_overrides_runpath=no
   22891       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   22892       ;;
   22893   esac
   22894   ;;
   22895 
   22896 sysv4*MP*)
   22897   if test -d /usr/nec ;then
   22898     version_type=linux
   22899     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   22900     soname_spec='$libname${shared_ext}.$major'
   22901     shlibpath_var=LD_LIBRARY_PATH
   22902   fi
   22903   ;;
   22904 
   22905 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   22906   version_type=freebsd-elf
   22907   need_lib_prefix=no
   22908   need_version=no
   22909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   22910   soname_spec='${libname}${release}${shared_ext}$major'
   22911   shlibpath_var=LD_LIBRARY_PATH
   22912   shlibpath_overrides_runpath=yes
   22913   hardcode_into_libs=yes
   22914   if test "$with_gnu_ld" = yes; then
   22915     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   22916   else
   22917     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   22918     case $host_os in
   22919       sco3.2v5*)
   22920         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   22921 	;;
   22922     esac
   22923   fi
   22924   sys_lib_dlsearch_path_spec='/usr/lib'
   22925   ;;
   22926 
   22927 tpf*)
   22928   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   22929   version_type=linux
   22930   need_lib_prefix=no
   22931   need_version=no
   22932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22933   shlibpath_var=LD_LIBRARY_PATH
   22934   shlibpath_overrides_runpath=no
   22935   hardcode_into_libs=yes
   22936   ;;
   22937 
   22938 uts4*)
   22939   version_type=linux
   22940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   22941   soname_spec='${libname}${release}${shared_ext}$major'
   22942   shlibpath_var=LD_LIBRARY_PATH
   22943   ;;
   22944 
   22945 *)
   22946   dynamic_linker=no
   22947   ;;
   22948 esac
   22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   22950 $as_echo "$dynamic_linker" >&6; }
   22951 test "$dynamic_linker" = no && can_build_shared=no
   22952 
   22953 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   22954 if test "$GCC" = yes; then
   22955   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   22956 fi
   22957 
   22958 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
   22959   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
   22960 fi
   22961 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
   22962   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
   22963 fi
   22964 
   22965 
   22966 
   22967 
   22968 
   22969 
   22970 
   22971 
   22972 
   22973 
   22974 
   22975 
   22976 
   22977 
   22978 
   22979 
   22980 
   22981 
   22982 
   22983 
   22984 
   22985 
   22986 
   22987 
   22988 
   22989 
   22990 
   22991 
   22992 
   22993 
   22994 
   22995 
   22996 
   22997 
   22998 
   22999 
   23000 
   23001 
   23002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   23003 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   23004 hardcode_action_CXX=
   23005 if test -n "$hardcode_libdir_flag_spec_CXX" ||
   23006    test -n "$runpath_var_CXX" ||
   23007    test "X$hardcode_automatic_CXX" = "Xyes" ; then
   23008 
   23009   # We can hardcode non-existent directories.
   23010   if test "$hardcode_direct_CXX" != no &&
   23011      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   23012      # have to relink, otherwise we might link with an installed library
   23013      # when we should be linking with a yet-to-be-installed one
   23014      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
   23015      test "$hardcode_minus_L_CXX" != no; then
   23016     # Linking always hardcodes the temporary library directory.
   23017     hardcode_action_CXX=relink
   23018   else
   23019     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   23020     hardcode_action_CXX=immediate
   23021   fi
   23022 else
   23023   # We cannot hardcode anything, or else we can only hardcode existing
   23024   # directories.
   23025   hardcode_action_CXX=unsupported
   23026 fi
   23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
   23028 $as_echo "$hardcode_action_CXX" >&6; }
   23029 
   23030 if test "$hardcode_action_CXX" = relink ||
   23031    test "$inherit_rpath_CXX" = yes; then
   23032   # Fast installation is not supported
   23033   enable_fast_install=no
   23034 elif test "$shlibpath_overrides_runpath" = yes ||
   23035      test "$enable_shared" = no; then
   23036   # Fast installation is not necessary
   23037   enable_fast_install=needless
   23038 fi
   23039 
   23040 
   23041 
   23042 
   23043 
   23044 
   23045 
   23046   fi # test -n "$compiler"
   23047 
   23048   CC=$lt_save_CC
   23049   LDCXX=$LD
   23050   LD=$lt_save_LD
   23051   GCC=$lt_save_GCC
   23052   with_gnu_ld=$lt_save_with_gnu_ld
   23053   lt_cv_path_LDCXX=$lt_cv_path_LD
   23054   lt_cv_path_LD=$lt_save_path_LD
   23055   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
   23056   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
   23057 fi # test "$_lt_caught_CXX_error" != yes
   23058 
   23059 ac_ext=cpp
   23060 ac_cpp='$CXXCPP $CPPFLAGS'
   23061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   23062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   23063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   23064 
   23065 
   23066 
   23067 
   23068 
   23069 
   23070 
   23071 
   23072 
   23073 
   23074 
   23075 
   23076 
   23077 
   23078 
   23079 
   23080 # Only expand once:
   23081 
   23082 
   23083 
   23084 
   23085 
   23086 # Identify the assembler which will work hand-in-glove with the newly
   23087 # built GCC, so that we can examine its features.  This is the assembler
   23088 # which will be driven by the driver program.
   23089 #
   23090 # If build != host, and we aren't building gas in-tree, we identify a
   23091 # build->target assembler and hope that it will have the same features
   23092 # as the host->target assembler we'll be using.
   23093 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
   23094 
   23095 if ${gcc_cv_as+:} false; then :
   23096 
   23097 else
   23098 
   23099 if test -x "$DEFAULT_ASSEMBLER"; then
   23100 	gcc_cv_as="$DEFAULT_ASSEMBLER"
   23101 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
   23102      && test -f ../gas/Makefile \
   23103      && test x$build = x$host; then
   23104 	gcc_cv_as=../gas/as-new$build_exeext
   23105 elif test -x as$build_exeext; then
   23106 	# Build using assembler in the current directory.
   23107 	gcc_cv_as=./as$build_exeext
   23108 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
   23109         gcc_cv_as="$AS_FOR_TARGET"
   23110 else
   23111         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
   23112 set dummy $AS_FOR_TARGET; ac_word=$2
   23113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23114 $as_echo_n "checking for $ac_word... " >&6; }
   23115 if ${ac_cv_path_gcc_cv_as+:} false; then :
   23116   $as_echo_n "(cached) " >&6
   23117 else
   23118   case $gcc_cv_as in
   23119   [\\/]* | ?:[\\/]*)
   23120   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
   23121   ;;
   23122   *)
   23123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23124 for as_dir in $PATH
   23125 do
   23126   IFS=$as_save_IFS
   23127   test -z "$as_dir" && as_dir=.
   23128     for ac_exec_ext in '' $ac_executable_extensions; do
   23129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   23130     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
   23131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   23132     break 2
   23133   fi
   23134 done
   23135   done
   23136 IFS=$as_save_IFS
   23137 
   23138   ;;
   23139 esac
   23140 fi
   23141 gcc_cv_as=$ac_cv_path_gcc_cv_as
   23142 if test -n "$gcc_cv_as"; then
   23143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
   23144 $as_echo "$gcc_cv_as" >&6; }
   23145 else
   23146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23147 $as_echo "no" >&6; }
   23148 fi
   23149 
   23150 
   23151 fi
   23152 fi
   23153 
   23154 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
   23155 
   23156 case "$ORIGINAL_AS_FOR_TARGET" in
   23157   ./as | ./as$build_exeext) ;;
   23158   *) ac_config_files="$ac_config_files as:exec-tool.in"
   23159  ;;
   23160 esac
   23161 
   23162 default_ld=
   23163 # Check whether --enable-ld was given.
   23164 if test "${enable_ld+set}" = set; then :
   23165   enableval=$enable_ld; case "${enableval}" in
   23166  no)
   23167    default_ld=ld.gold
   23168    ;;
   23169  esac
   23170 fi
   23171 
   23172 
   23173 install_gold_as_default=no
   23174 # Check whether --enable-gold was given.
   23175 if test "${enable_gold+set}" = set; then :
   23176   enableval=$enable_gold; case "${enableval}" in
   23177  default)
   23178    install_gold_as_default=yes
   23179    ;;
   23180  yes)
   23181    if test x${default_ld} != x; then
   23182      install_gold_as_default=yes
   23183    fi
   23184    ;;
   23185  no)
   23186    ;;
   23187  *)
   23188    as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
   23189    ;;
   23190  esac
   23191 fi
   23192 
   23193 
   23194 # Identify the linker which will work hand-in-glove with the newly
   23195 # built GCC, so that we can examine its features.  This is the linker
   23196 # which will be driven by the driver program.
   23197 #
   23198 # If build != host, and we aren't building gas in-tree, we identify a
   23199 # build->target linker and hope that it will have the same features
   23200 # as the host->target linker we'll be using.
   23201 gcc_cv_gld_major_version=
   23202 gcc_cv_gld_minor_version=
   23203 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
   23204 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
   23205 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
   23206 
   23207 if ${gcc_cv_ld+:} false; then :
   23208 
   23209 else
   23210 
   23211 if test -x "$DEFAULT_LINKER"; then
   23212 	gcc_cv_ld="$DEFAULT_LINKER"
   23213 elif test $install_gold_as_default = yes \
   23214      && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
   23215      && test -f ../gold/Makefile \
   23216      && test x$build = x$host; then
   23217 	gcc_cv_ld=../gold/ld-new$build_exeext
   23218 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
   23219      && test -f ../ld/Makefile \
   23220      && test x$build = x$host; then
   23221 	gcc_cv_ld=../ld/ld-new$build_exeext
   23222 elif test -x collect-ld$build_exeext; then
   23223 	# Build using linker in the current directory.
   23224 	gcc_cv_ld=./collect-ld$build_exeext
   23225 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
   23226         gcc_cv_ld="$LD_FOR_TARGET"
   23227 else
   23228         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
   23229 set dummy $LD_FOR_TARGET; ac_word=$2
   23230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23231 $as_echo_n "checking for $ac_word... " >&6; }
   23232 if ${ac_cv_path_gcc_cv_ld+:} false; then :
   23233   $as_echo_n "(cached) " >&6
   23234 else
   23235   case $gcc_cv_ld in
   23236   [\\/]* | ?:[\\/]*)
   23237   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
   23238   ;;
   23239   *)
   23240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23241 for as_dir in $PATH
   23242 do
   23243   IFS=$as_save_IFS
   23244   test -z "$as_dir" && as_dir=.
   23245     for ac_exec_ext in '' $ac_executable_extensions; do
   23246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   23247     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
   23248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   23249     break 2
   23250   fi
   23251 done
   23252   done
   23253 IFS=$as_save_IFS
   23254 
   23255   ;;
   23256 esac
   23257 fi
   23258 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
   23259 if test -n "$gcc_cv_ld"; then
   23260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
   23261 $as_echo "$gcc_cv_ld" >&6; }
   23262 else
   23263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23264 $as_echo "no" >&6; }
   23265 fi
   23266 
   23267 
   23268 fi
   23269 fi
   23270 
   23271 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
   23272 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
   23273 # if the PLUGIN_LD is set ld-new, just have it as ld
   23274 # as that is the installed named.
   23275 if test x$PLUGIN_LD_SUFFIX = xld-new \
   23276    || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
   23277   PLUGIN_LD_SUFFIX=ld
   23278 fi
   23279 
   23280 # Check whether --with-plugin-ld was given.
   23281 if test "${with_plugin_ld+set}" = set; then :
   23282   withval=$with_plugin_ld; if test x"$withval" != x; then
   23283    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
   23284    PLUGIN_LD_SUFFIX="$withval"
   23285  fi
   23286 fi
   23287 
   23288 
   23289 
   23290 cat >>confdefs.h <<_ACEOF
   23291 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
   23292 _ACEOF
   23293 
   23294 
   23295 # Check to see if we are using gold instead of ld
   23296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
   23297 $as_echo_n "checking whether we are using gold... " >&6; }
   23298 ld_is_gold=no
   23299 if test x$gcc_cv_ld != x; then
   23300   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
   23301      | grep "GNU gold" > /dev/null; then
   23302     ld_is_gold=yes
   23303   fi
   23304 fi
   23305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
   23306 $as_echo "$ld_is_gold" >&6; }
   23307 
   23308 # Check to see if we are using mold instead of ld
   23309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
   23310 $as_echo_n "checking whether we are using mold... " >&6; }
   23311 ld_is_mold=no
   23312 if test x$gcc_cv_ld != x; then
   23313   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
   23314      | grep "mold" > /dev/null; then
   23315     ld_is_mold=yes
   23316   fi
   23317 fi
   23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
   23319 $as_echo "$ld_is_mold" >&6; }
   23320 
   23321 
   23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
   23323 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
   23324 # Check to see if default ld is not gold, but gold is
   23325 # available and has support for split stack.  If gcc was configured
   23326 # with gold then no checking is done.
   23327 #
   23328 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
   23329 
   23330 # For platforms other than powerpc64*, enable as appropriate.
   23331 
   23332   gold_non_default=no
   23333   ld_gold=`which ${gcc_cv_ld}.gold`
   23334 # Make sure this gold has minimal split stack support
   23335   if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
   23336     ld_vers=`$ld_gold --version | sed 1q`
   23337     gold_vers=`echo $ld_vers | sed -n \
   23338           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
   23339     case $target in
   23340 # check that the gold version contains the complete split stack support
   23341 # on powerpc64 big and little endian
   23342       powerpc64*-*-*)
   23343         case "$gold_vers" in
   23344           2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
   23345           ;;
   23346           *) gold_non_default=no
   23347           ;;
   23348         esac
   23349         ;;
   23350     esac
   23351   fi
   23352   if test $gold_non_default = yes; then
   23353 
   23354 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
   23355 
   23356   fi
   23357 fi
   23358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
   23359 $as_echo "$gold_non_default" >&6; }
   23360 
   23361 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
   23362 
   23363 case "$ORIGINAL_LD_FOR_TARGET" in
   23364   ./collect-ld | ./collect-ld$build_exeext) ;;
   23365   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
   23366  ;;
   23367 esac
   23368 
   23369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
   23370 $as_echo_n "checking what linker to use... " >&6; }
   23371 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
   23372    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
   23373 	# Single tree build which includes ld.  We want to prefer it
   23374 	# over whatever linker top-level may have detected, since
   23375 	# we'll use what we're building after installation anyway.
   23376 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
   23377 $as_echo "newly built ld" >&6; }
   23378 	in_tree_ld=yes
   23379 	in_tree_ld_is_elf=no
   23380 	if (grep 'EMUL = .*elf' ../ld/Makefile \
   23381 	    || grep 'EMUL = .*linux' ../ld/Makefile \
   23382 	    || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
   23383 	  in_tree_ld_is_elf=yes
   23384 	elif test "$ld_is_gold" = yes; then
   23385 	  in_tree_ld_is_elf=yes
   23386 	fi
   23387 	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
   23388 	do
   23389 		gcc_cv_gld_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
   23390 		if test x$gcc_cv_gld_version != x; then
   23391 			break
   23392 		fi
   23393 	done
   23394 	case $gcc_cv_gld_version in
   23395 	  VERSION=[0-9]*) ;;
   23396 	  *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
   23397 	esac
   23398 	gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
   23399 	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
   23400 	ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
   23401 	ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
   23402 else
   23403 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
   23404 $as_echo "$gcc_cv_ld" >&6; }
   23405 	in_tree_ld=no
   23406 	gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
   23407 	ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
   23408 	ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
   23409 fi
   23410 
   23411 
   23412 
   23413 
   23414 # Figure out what nm we will be using.
   23415 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
   23416 if ${gcc_cv_nm+:} false; then :
   23417 
   23418 else
   23419 
   23420 if test -f $gcc_cv_binutils_srcdir/configure.ac \
   23421      && test -f ../binutils/Makefile \
   23422      && test x$build = x$host; then
   23423 	gcc_cv_nm=../binutils/nm-new$build_exeext
   23424 elif test -x nm$build_exeext; then
   23425 	gcc_cv_nm=./nm$build_exeext
   23426 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
   23427         gcc_cv_nm="$NM_FOR_TARGET"
   23428 else
   23429         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
   23430 set dummy $NM_FOR_TARGET; ac_word=$2
   23431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23432 $as_echo_n "checking for $ac_word... " >&6; }
   23433 if ${ac_cv_path_gcc_cv_nm+:} false; then :
   23434   $as_echo_n "(cached) " >&6
   23435 else
   23436   case $gcc_cv_nm in
   23437   [\\/]* | ?:[\\/]*)
   23438   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
   23439   ;;
   23440   *)
   23441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23442 for as_dir in $PATH
   23443 do
   23444   IFS=$as_save_IFS
   23445   test -z "$as_dir" && as_dir=.
   23446     for ac_exec_ext in '' $ac_executable_extensions; do
   23447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   23448     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
   23449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   23450     break 2
   23451   fi
   23452 done
   23453   done
   23454 IFS=$as_save_IFS
   23455 
   23456   ;;
   23457 esac
   23458 fi
   23459 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
   23460 if test -n "$gcc_cv_nm"; then
   23461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
   23462 $as_echo "$gcc_cv_nm" >&6; }
   23463 else
   23464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23465 $as_echo "no" >&6; }
   23466 fi
   23467 
   23468 
   23469 fi
   23470 fi
   23471 
   23472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
   23473 $as_echo_n "checking what nm to use... " >&6; }
   23474 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
   23475 	# Single tree build which includes binutils.
   23476 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
   23477 $as_echo "newly built nm" >&6; }
   23478 	in_tree_nm=yes
   23479 else
   23480 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
   23481 $as_echo "$gcc_cv_nm" >&6; }
   23482 	in_tree_nm=no
   23483 fi
   23484 
   23485 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
   23486 
   23487 case "$ORIGINAL_NM_FOR_TARGET" in
   23488   ./nm | ./nm$build_exeext) ;;
   23489   *) ac_config_files="$ac_config_files nm:exec-tool.in"
   23490  ;;
   23491 esac
   23492 
   23493 
   23494 # Figure out what objdump we will be using.
   23495 if ${gcc_cv_objdump+:} false; then :
   23496 
   23497 else
   23498 
   23499 if test -f $gcc_cv_binutils_srcdir/configure.ac \
   23500      && test -f ../binutils/Makefile \
   23501      && test x$build = x$host; then
   23502 	# Single tree build which includes binutils.
   23503 	gcc_cv_objdump=../binutils/objdump$build_exeext
   23504 elif test -x objdump$build_exeext; then
   23505 	gcc_cv_objdump=./objdump$build_exeext
   23506 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
   23507         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
   23508 else
   23509         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
   23510 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
   23511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23512 $as_echo_n "checking for $ac_word... " >&6; }
   23513 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
   23514   $as_echo_n "(cached) " >&6
   23515 else
   23516   case $gcc_cv_objdump in
   23517   [\\/]* | ?:[\\/]*)
   23518   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
   23519   ;;
   23520   *)
   23521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23522 for as_dir in $PATH
   23523 do
   23524   IFS=$as_save_IFS
   23525   test -z "$as_dir" && as_dir=.
   23526     for ac_exec_ext in '' $ac_executable_extensions; do
   23527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   23528     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
   23529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   23530     break 2
   23531   fi
   23532 done
   23533   done
   23534 IFS=$as_save_IFS
   23535 
   23536   ;;
   23537 esac
   23538 fi
   23539 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
   23540 if test -n "$gcc_cv_objdump"; then
   23541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
   23542 $as_echo "$gcc_cv_objdump" >&6; }
   23543 else
   23544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23545 $as_echo "no" >&6; }
   23546 fi
   23547 
   23548 
   23549 fi
   23550 fi
   23551 
   23552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
   23553 $as_echo_n "checking what objdump to use... " >&6; }
   23554 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
   23555 	# Single tree build which includes binutils.
   23556 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
   23557 $as_echo "newly built objdump" >&6; }
   23558 elif test x$gcc_cv_objdump = x; then
   23559 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23560 $as_echo "not found" >&6; }
   23561 else
   23562 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
   23563 $as_echo "$gcc_cv_objdump" >&6; }
   23564 fi
   23565 
   23566 # Figure out what readelf we will be using.
   23567 if ${gcc_cv_readelf+:} false; then :
   23568 
   23569 else
   23570 
   23571 if test -f $gcc_cv_binutils_srcdir/configure.ac \
   23572      && test -f ../binutils/Makefile \
   23573      && test x$build = x$host; then
   23574 	# Single tree build which includes binutils.
   23575 	gcc_cv_readelf=../binutils/readelf$build_exeext
   23576 elif test -x readelf$build_exeext; then
   23577 	gcc_cv_readelf=./readelf$build_exeext
   23578 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
   23579         gcc_cv_readelf="$READELF_FOR_TARGET"
   23580 else
   23581         # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
   23582 set dummy $READELF_FOR_TARGET; ac_word=$2
   23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23584 $as_echo_n "checking for $ac_word... " >&6; }
   23585 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
   23586   $as_echo_n "(cached) " >&6
   23587 else
   23588   case $gcc_cv_readelf in
   23589   [\\/]* | ?:[\\/]*)
   23590   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
   23591   ;;
   23592   *)
   23593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23594 for as_dir in $PATH
   23595 do
   23596   IFS=$as_save_IFS
   23597   test -z "$as_dir" && as_dir=.
   23598     for ac_exec_ext in '' $ac_executable_extensions; do
   23599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   23600     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
   23601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   23602     break 2
   23603   fi
   23604 done
   23605   done
   23606 IFS=$as_save_IFS
   23607 
   23608   ;;
   23609 esac
   23610 fi
   23611 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
   23612 if test -n "$gcc_cv_readelf"; then
   23613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
   23614 $as_echo "$gcc_cv_readelf" >&6; }
   23615 else
   23616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23617 $as_echo "no" >&6; }
   23618 fi
   23619 
   23620 
   23621 fi
   23622 fi
   23623 
   23624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
   23625 $as_echo_n "checking what readelf to use... " >&6; }
   23626 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
   23627 	# Single tree build which includes binutils.
   23628 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
   23629 $as_echo "newly built readelf" >&6; }
   23630 elif test x$gcc_cv_readelf = x; then
   23631 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23632 $as_echo "not found" >&6; }
   23633 else
   23634 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
   23635 $as_echo "$gcc_cv_readelf" >&6; }
   23636 fi
   23637 
   23638 # Figure out what otool we will be using.
   23639 if ${gcc_cv_otool+:} false; then :
   23640 
   23641 else
   23642 
   23643 if test -x otool$build_exeext; then
   23644 	gcc_cv_otool=./otool$build_exeext
   23645 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
   23646         gcc_cv_otool="$OTOOL_FOR_TARGET"
   23647 else
   23648         # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
   23649 set dummy $OTOOL_FOR_TARGET; ac_word=$2
   23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23651 $as_echo_n "checking for $ac_word... " >&6; }
   23652 if ${ac_cv_path_gcc_cv_otool+:} false; then :
   23653   $as_echo_n "(cached) " >&6
   23654 else
   23655   case $gcc_cv_otool in
   23656   [\\/]* | ?:[\\/]*)
   23657   ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
   23658   ;;
   23659   *)
   23660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23661 for as_dir in $PATH
   23662 do
   23663   IFS=$as_save_IFS
   23664   test -z "$as_dir" && as_dir=.
   23665     for ac_exec_ext in '' $ac_executable_extensions; do
   23666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   23667     ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
   23668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   23669     break 2
   23670   fi
   23671 done
   23672   done
   23673 IFS=$as_save_IFS
   23674 
   23675   ;;
   23676 esac
   23677 fi
   23678 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
   23679 if test -n "$gcc_cv_otool"; then
   23680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
   23681 $as_echo "$gcc_cv_otool" >&6; }
   23682 else
   23683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23684 $as_echo "no" >&6; }
   23685 fi
   23686 
   23687 
   23688 fi
   23689 fi
   23690 
   23691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
   23692 $as_echo_n "checking what otool to use... " >&6; }
   23693 if test x$gcc_cv_otool = x; then
   23694 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23695 $as_echo "not found" >&6; }
   23696 else
   23697 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
   23698 $as_echo "$gcc_cv_otool" >&6; }
   23699 fi
   23700 
   23701 # Figure out the dsymutil we will use.
   23702 if ${gcc_cv_dsymutil+:} false; then :
   23703 
   23704 else
   23705 
   23706 if test -x "$DEFAULT_DSYMUTIL"; then
   23707     gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
   23708 elif test -x dsymutil$build_exeext; then
   23709     gcc_cv_dsymutil=./dsymutil$build_exeext
   23710 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
   23711     gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
   23712 elif ( set dummy $DSYMUTIL; test -x $2 ); then
   23713     gcc_cv_dsymutil=$DSYMUTIL
   23714 else
   23715     # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
   23716 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
   23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23718 $as_echo_n "checking for $ac_word... " >&6; }
   23719 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
   23720   $as_echo_n "(cached) " >&6
   23721 else
   23722   case $gcc_cv_dsymutil in
   23723   [\\/]* | ?:[\\/]*)
   23724   ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
   23725   ;;
   23726   *)
   23727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23728 for as_dir in $PATH
   23729 do
   23730   IFS=$as_save_IFS
   23731   test -z "$as_dir" && as_dir=.
   23732     for ac_exec_ext in '' $ac_executable_extensions; do
   23733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   23734     ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
   23735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   23736     break 2
   23737   fi
   23738 done
   23739   done
   23740 IFS=$as_save_IFS
   23741 
   23742   ;;
   23743 esac
   23744 fi
   23745 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
   23746 if test -n "$gcc_cv_dsymutil"; then
   23747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
   23748 $as_echo "$gcc_cv_dsymutil" >&6; }
   23749 else
   23750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23751 $as_echo "no" >&6; }
   23752 fi
   23753 
   23754 
   23755 fi
   23756 fi
   23757 
   23758 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
   23759 
   23760 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
   23761   ./dsymutil | ./dsymutil$build_exeext) ;;
   23762   *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
   23763  ;;
   23764 esac
   23765 
   23766 # Figure out what assembler alignment features are present.
   23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
   23768 $as_echo_n "checking assembler flags... " >&6; }
   23769 if ${gcc_cv_as_flags+:} false; then :
   23770   $as_echo_n "(cached) " >&6
   23771 else
   23772    case "$target" in
   23773   i[34567]86-*-linux*)
   23774         gcc_cv_as_flags=--32
   23775     ;;
   23776   x86_64-*-linux-gnux32)
   23777         gcc_cv_as_flags=--x32
   23778     ;;
   23779   x86_64-*-linux*)
   23780         gcc_cv_as_flags=--64
   23781     ;;
   23782   powerpc*-*-darwin*)
   23783         gcc_cv_as_flags="-arch ppc"
   23784     ;;
   23785   *)
   23786     gcc_cv_as_flags=" "
   23787     ;;
   23788   esac
   23789 fi
   23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
   23791 $as_echo "$gcc_cv_as_flags" >&6; }
   23792 
   23793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
   23794 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
   23795 if ${gcc_cv_as_balign_and_p2align+:} false; then :
   23796   $as_echo_n "(cached) " >&6
   23797 else
   23798   gcc_cv_as_balign_and_p2align=no
   23799   if test x$gcc_cv_as != x; then
   23800     $as_echo '.balign 4
   23801 .p2align 2' > conftest.s
   23802     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   23803   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   23804   (eval $ac_try) 2>&5
   23805   ac_status=$?
   23806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23807   test $ac_status = 0; }; }
   23808     then
   23809 	gcc_cv_as_balign_and_p2align=yes
   23810     else
   23811       echo "configure: failed program was" >&5
   23812       cat conftest.s >&5
   23813     fi
   23814     rm -f conftest.o conftest.s
   23815   fi
   23816 fi
   23817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
   23818 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
   23819 if test $gcc_cv_as_balign_and_p2align = yes; then
   23820 
   23821 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
   23822 
   23823 fi
   23824 
   23825 
   23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
   23827 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
   23828 if ${gcc_cv_as_max_skip_p2align+:} false; then :
   23829   $as_echo_n "(cached) " >&6
   23830 else
   23831   gcc_cv_as_max_skip_p2align=no
   23832   if test x$gcc_cv_as != x; then
   23833     $as_echo '.p2align 4,,7' > conftest.s
   23834     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   23835   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   23836   (eval $ac_try) 2>&5
   23837   ac_status=$?
   23838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23839   test $ac_status = 0; }; }
   23840     then
   23841 	gcc_cv_as_max_skip_p2align=yes
   23842     else
   23843       echo "configure: failed program was" >&5
   23844       cat conftest.s >&5
   23845     fi
   23846     rm -f conftest.o conftest.s
   23847   fi
   23848 fi
   23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
   23850 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
   23851 if test $gcc_cv_as_max_skip_p2align = yes; then
   23852 
   23853 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
   23854 
   23855 fi
   23856 
   23857 
   23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
   23859 $as_echo_n "checking assembler for .literal16... " >&6; }
   23860 if ${gcc_cv_as_literal16+:} false; then :
   23861   $as_echo_n "(cached) " >&6
   23862 else
   23863   gcc_cv_as_literal16=no
   23864   if test x$gcc_cv_as != x; then
   23865     $as_echo '.literal16' > conftest.s
   23866     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   23867   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   23868   (eval $ac_try) 2>&5
   23869   ac_status=$?
   23870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23871   test $ac_status = 0; }; }
   23872     then
   23873 	gcc_cv_as_literal16=yes
   23874     else
   23875       echo "configure: failed program was" >&5
   23876       cat conftest.s >&5
   23877     fi
   23878     rm -f conftest.o conftest.s
   23879   fi
   23880 fi
   23881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
   23882 $as_echo "$gcc_cv_as_literal16" >&6; }
   23883 if test $gcc_cv_as_literal16 = yes; then
   23884 
   23885 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
   23886 
   23887 fi
   23888 
   23889 
   23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
   23891 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
   23892 if ${gcc_cv_as_subsection_m1+:} false; then :
   23893   $as_echo_n "(cached) " >&6
   23894 else
   23895   gcc_cv_as_subsection_m1=no
   23896   if test x$gcc_cv_as != x; then
   23897     $as_echo 'conftest_label1: .word 0
   23898 .subsection -1
   23899 conftest_label2: .word 0
   23900 .previous' > conftest.s
   23901     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   23902   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   23903   (eval $ac_try) 2>&5
   23904   ac_status=$?
   23905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23906   test $ac_status = 0; }; }
   23907     then
   23908 	if test x$gcc_cv_nm != x; then
   23909     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
   23910     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
   23911     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
   23912     then :
   23913     else gcc_cv_as_subsection_m1=yes
   23914     fi
   23915     rm -f conftest.nm1 conftest.nm2
   23916   fi
   23917     else
   23918       echo "configure: failed program was" >&5
   23919       cat conftest.s >&5
   23920     fi
   23921     rm -f conftest.o conftest.s
   23922   fi
   23923 fi
   23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
   23925 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
   23926 if test $gcc_cv_as_subsection_m1 = yes; then
   23927 
   23928 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
   23929 
   23930 fi
   23931 
   23932 
   23933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
   23934 $as_echo_n "checking assembler for .weak... " >&6; }
   23935 if ${gcc_cv_as_weak+:} false; then :
   23936   $as_echo_n "(cached) " >&6
   23937 else
   23938   gcc_cv_as_weak=no
   23939   if test x$gcc_cv_as != x; then
   23940     $as_echo '	.weak foobar' > conftest.s
   23941     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   23942   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   23943   (eval $ac_try) 2>&5
   23944   ac_status=$?
   23945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23946   test $ac_status = 0; }; }
   23947     then
   23948 	gcc_cv_as_weak=yes
   23949     else
   23950       echo "configure: failed program was" >&5
   23951       cat conftest.s >&5
   23952     fi
   23953     rm -f conftest.o conftest.s
   23954   fi
   23955 fi
   23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
   23957 $as_echo "$gcc_cv_as_weak" >&6; }
   23958 if test $gcc_cv_as_weak = yes; then
   23959 
   23960 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
   23961 
   23962 fi
   23963 
   23964 
   23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
   23966 $as_echo_n "checking assembler for .weakref... " >&6; }
   23967 if ${gcc_cv_as_weakref+:} false; then :
   23968   $as_echo_n "(cached) " >&6
   23969 else
   23970   gcc_cv_as_weakref=no
   23971   if test x$gcc_cv_as != x; then
   23972     $as_echo '	.weakref foobar, barfnot' > conftest.s
   23973     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   23974   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   23975   (eval $ac_try) 2>&5
   23976   ac_status=$?
   23977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23978   test $ac_status = 0; }; }
   23979     then
   23980 	gcc_cv_as_weakref=yes
   23981     else
   23982       echo "configure: failed program was" >&5
   23983       cat conftest.s >&5
   23984     fi
   23985     rm -f conftest.o conftest.s
   23986   fi
   23987 fi
   23988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
   23989 $as_echo "$gcc_cv_as_weakref" >&6; }
   23990 if test $gcc_cv_as_weakref = yes; then
   23991 
   23992 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
   23993 
   23994 fi
   23995 
   23996 
   23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
   23998 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
   23999 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
   24000   $as_echo_n "(cached) " >&6
   24001 else
   24002   gcc_cv_as_nsubspa_comdat=no
   24003   if test x$gcc_cv_as != x; then
   24004     $as_echo '	.SPACE $TEXT$
   24005 	.NSUBSPA $CODE$,COMDAT' > conftest.s
   24006     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24007   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24008   (eval $ac_try) 2>&5
   24009   ac_status=$?
   24010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24011   test $ac_status = 0; }; }
   24012     then
   24013 	gcc_cv_as_nsubspa_comdat=yes
   24014     else
   24015       echo "configure: failed program was" >&5
   24016       cat conftest.s >&5
   24017     fi
   24018     rm -f conftest.o conftest.s
   24019   fi
   24020 fi
   24021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
   24022 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
   24023 if test $gcc_cv_as_nsubspa_comdat = yes; then
   24024 
   24025 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
   24026 
   24027 fi
   24028 
   24029 
   24030 # .hidden needs to be supported in both the assembler and the linker,
   24031 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
   24032 # This is irritatingly difficult to feature test for; we have to check the
   24033 # date string after the version number.  If we've got an in-tree
   24034 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
   24035 # to be safe.
   24036 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
   24037 case "${target}" in
   24038   *-*-aix*)
   24039     conftest_s='	.globl foobar,hidden'
   24040     ;;
   24041   *)
   24042     conftest_s='	.hidden foobar
   24043 foobar:'
   24044     ;;
   24045 esac
   24046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
   24047 $as_echo_n "checking assembler for .hidden... " >&6; }
   24048 if ${gcc_cv_as_hidden+:} false; then :
   24049   $as_echo_n "(cached) " >&6
   24050 else
   24051   gcc_cv_as_hidden=no
   24052   if test x$gcc_cv_as != x; then
   24053     $as_echo "$conftest_s" > conftest.s
   24054     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24055   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24056   (eval $ac_try) 2>&5
   24057   ac_status=$?
   24058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24059   test $ac_status = 0; }; }
   24060     then
   24061 	gcc_cv_as_hidden=yes
   24062     else
   24063       echo "configure: failed program was" >&5
   24064       cat conftest.s >&5
   24065     fi
   24066     rm -f conftest.o conftest.s
   24067   fi
   24068 fi
   24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
   24070 $as_echo "$gcc_cv_as_hidden" >&6; }
   24071 
   24072 
   24073 case "${target}" in
   24074   *-*-darwin*)
   24075     # Darwin as has some visibility support, though with a different syntax.
   24076     gcc_cv_as_hidden=yes
   24077     ;;
   24078 esac
   24079 
   24080 # gnu_indirect_function type is an extension proposed at
   24081 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
   24082 # selection of function implementation
   24083 # Check whether --enable-gnu-indirect-function was given.
   24084 if test "${enable_gnu_indirect_function+set}" = set; then :
   24085   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
   24086     yes | no) ;;
   24087     *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
   24088 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
   24089   esac
   24090 else
   24091   enable_gnu_indirect_function="$default_gnu_indirect_function"
   24092 fi
   24093 
   24094 
   24095 case "${target}" in
   24096   riscv*-*-linux*)
   24097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
   24098 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
   24099     cat > conftest.s <<EOF
   24100 	.text
   24101 	.type	foo_resolver, @function
   24102 foo_resolver:
   24103 	ret
   24104 	.size	foo_resolver, .-foo_resolver
   24105 
   24106 	.globl	foo
   24107 	.type	foo, %gnu_indirect_function
   24108 	.set	foo, foo_resolver
   24109 
   24110 	.globl	bar
   24111 	.type	bar, @function
   24112 bar:
   24113 	call	foo
   24114 	ret
   24115 	.size	bar, .-bar
   24116 EOF
   24117     if test x$gcc_cv_as != x \
   24118        && test x$gcc_cv_ld != x \
   24119        && test x$gcc_cv_readelf != x \
   24120        && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
   24121        && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
   24122        && $gcc_cv_readelf --relocs --wide conftest \
   24123 	  | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
   24124       enable_gnu_indirect_function=yes
   24125     fi
   24126     rm -f conftest conftest.o conftest.s
   24127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
   24128 $as_echo "$enable_gnu_indirect_function" >&6; }
   24129     ;;
   24130 esac
   24131 
   24132 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
   24133 
   24134 cat >>confdefs.h <<_ACEOF
   24135 #define HAVE_GNU_INDIRECT_FUNCTION $gif
   24136 _ACEOF
   24137 
   24138 
   24139 
   24140 if test $in_tree_ld != yes ; then
   24141   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
   24142   if echo "$ld_ver" | grep GNU > /dev/null; then
   24143     if test x"$ld_is_gold" = xyes; then
   24144       # GNU gold --version looks like this:
   24145       #
   24146       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
   24147       #
   24148       # We extract the binutils version which is more familiar and specific
   24149       # than the gold version.
   24150       ld_vers=`echo $ld_ver | sed -n \
   24151 	  -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
   24152     else
   24153       # GNU ld --version looks like this:
   24154       #
   24155       # GNU ld (GNU Binutils) 2.21.51.20110225
   24156       ld_vers=`echo $ld_ver | sed -n \
   24157 	  -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
   24158     fi
   24159     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'`
   24160     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
   24161     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
   24162     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
   24163   else
   24164     case "${target}" in
   24165       *-*-solaris2*)
   24166 	# Solaris 2 ld -V output looks like this for a regular version:
   24167 	#
   24168 	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
   24169 	#
   24170 	# but test versions add stuff at the end:
   24171 	#
   24172 	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
   24173 	#
   24174 	# ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
   24175 	# numbers can be used in ld.so.1 feature checks even if a different
   24176 	# linker is configured.
   24177 	ld_ver=`$gcc_cv_ld -V 2>&1`
   24178 	if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
   24179 	  ld_vers=`echo $ld_ver | sed -n \
   24180 	    -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
   24181 	  ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
   24182 	  ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
   24183 	fi
   24184 	;;
   24185     esac
   24186   fi
   24187 fi
   24188 
   24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
   24190 $as_echo_n "checking linker for .hidden support... " >&6; }
   24191 if ${gcc_cv_ld_hidden+:} false; then :
   24192   $as_echo_n "(cached) " >&6
   24193 else
   24194   if test $in_tree_ld = yes ; then
   24195   gcc_cv_ld_hidden=no
   24196   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 \
   24197      && test $in_tree_ld_is_elf = yes; then
   24198      gcc_cv_ld_hidden=yes
   24199   fi
   24200 else
   24201   gcc_cv_ld_hidden=yes
   24202   if test x"$ld_is_gold" = xyes; then
   24203     :
   24204   elif test x"$ld_is_mold" = xyes; then
   24205     :
   24206   elif echo "$ld_ver" | grep GNU > /dev/null; then
   24207     if test 0"$ld_date" -lt 20020404; then
   24208       if test -n "$ld_date"; then
   24209 	# If there was date string, but was earlier than 2002-04-04, fail
   24210 	gcc_cv_ld_hidden=no
   24211       elif test -z "$ld_vers"; then
   24212 	# If there was no date string nor ld version number, something is wrong
   24213 	gcc_cv_ld_hidden=no
   24214       else
   24215 	test -z "$ld_vers_patch" && ld_vers_patch=0
   24216 	if test "$ld_vers_major" -lt 2; then
   24217 	  gcc_cv_ld_hidden=no
   24218 	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
   24219 	  gcc_cv_ld_hidden="no"
   24220 	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
   24221 	  gcc_cv_ld_hidden=no
   24222 	fi
   24223       fi
   24224     fi
   24225   else
   24226     case "${target}" in
   24227       *-*-aix[789]*)
   24228         gcc_cv_ld_hidden=yes
   24229         ;;
   24230       *-*-darwin*)
   24231 	# Darwin ld has some visibility support.
   24232 	gcc_cv_ld_hidden=yes
   24233         ;;
   24234       hppa64*-*-hpux* | ia64*-*-hpux*)
   24235 	gcc_cv_ld_hidden=yes
   24236 	;;
   24237       *-*-solaris2*)
   24238 	# Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
   24239 	# .symbolic was only added in Solaris 9 12/02.
   24240         gcc_cv_ld_hidden=yes
   24241 	;;
   24242       *)
   24243 	gcc_cv_ld_hidden=no
   24244 	;;
   24245     esac
   24246   fi
   24247 fi
   24248 fi
   24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
   24250 $as_echo "$gcc_cv_ld_hidden" >&6; }
   24251 libgcc_visibility=no
   24252 
   24253 
   24254 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
   24255   libgcc_visibility=yes
   24256 
   24257 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
   24258 
   24259 fi
   24260 
   24261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
   24262 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
   24263 gcc_cv_ld_ro_rw_mix=unknown
   24264 if test $in_tree_ld = yes ; then
   24265   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 \
   24266      && test $in_tree_ld_is_elf = yes; then
   24267     gcc_cv_ld_ro_rw_mix=read-write
   24268   fi
   24269 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
   24270   echo '.section myfoosect, "a"' > conftest1.s
   24271   echo '.section myfoosect, "aw"' > conftest2.s
   24272   echo '.byte 1' >> conftest2.s
   24273   echo '.section myfoosect, "a"' > conftest3.s
   24274   echo '.byte 0' >> conftest3.s
   24275   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
   24276      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
   24277      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
   24278      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
   24279 	conftest2.o conftest3.o > /dev/null 2>&1; then
   24280     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
   24281 			 | sed -e '/myfoosect/!d' -e N`
   24282     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
   24283       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
   24284 	gcc_cv_ld_ro_rw_mix=read-only
   24285       else
   24286 	gcc_cv_ld_ro_rw_mix=read-write
   24287       fi
   24288     fi
   24289   fi
   24290   rm -f conftest.* conftest[123].*
   24291 fi
   24292 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
   24293 
   24294 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
   24295 
   24296 fi
   24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
   24298 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
   24299 
   24300 # Check whether --enable-initfini-array was given.
   24301 if test "${enable_initfini_array+set}" = set; then :
   24302   enableval=$enable_initfini_array;
   24303 else
   24304 
   24305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
   24306 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
   24307 if ${gcc_cv_initfini_array+:} false; then :
   24308   $as_echo_n "(cached) " >&6
   24309 else
   24310     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
   24311     case "${target}" in
   24312       ia64-*)
   24313 	if test "$cross_compiling" = yes; then :
   24314   gcc_cv_initfini_array=no
   24315 else
   24316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24317 /* end confdefs.h.  */
   24318 
   24319 #ifndef __ELF__
   24320 #error Not an ELF OS
   24321 #endif
   24322 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
   24323    if it can be used.  */
   24324 static int x = -1;
   24325 int main (void) { return x; }
   24326 int foo (void) { x = 0; }
   24327 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
   24328 
   24329 _ACEOF
   24330 if ac_fn_cxx_try_run "$LINENO"; then :
   24331   gcc_cv_initfini_array=yes
   24332 else
   24333   gcc_cv_initfini_array=no
   24334 fi
   24335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24336   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24337 fi
   24338 ;;
   24339       *)
   24340 	gcc_cv_initfini_array=no
   24341 	if test $in_tree_ld = yes ; then
   24342 	  if test "$gcc_cv_gld_major_version" -eq 2 \
   24343 	     -a "$gcc_cv_gld_minor_version" -ge 22 \
   24344 	     -o "$gcc_cv_gld_major_version" -gt 2 \
   24345 	     && test $in_tree_ld_is_elf = yes; then
   24346 	    gcc_cv_initfini_array=yes
   24347 	  fi
   24348 	elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
   24349 	  case $target:$gas in
   24350 	    *:yes)
   24351 	      sh_flags='"a"'
   24352 	      sh_type='%progbits'
   24353 	      ;;
   24354 	    i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
   24355 	      sh_flags='"a"'
   24356 	      sh_type='@progbits'
   24357 	      ;;
   24358 	    sparc*-*-solaris2*:no)
   24359 	      sh_flags='#alloc'
   24360 	      sh_type='#progbits'
   24361 	      sh_quote='"'
   24362 	      ;;
   24363 	  esac
   24364 	  case "$target:$gnu_ld" in
   24365 	    *:yes)
   24366 	      cat > conftest.s <<EOF
   24367 .section .dtors,$sh_flags,$sh_type
   24368 .balign 4
   24369 .byte 'A', 'A', 'A', 'A'
   24370 .section .ctors,$sh_flags,$sh_type
   24371 .balign 4
   24372 .byte 'B', 'B', 'B', 'B'
   24373 .section .fini_array.65530,$sh_flags,$sh_type
   24374 .balign 4
   24375 .byte 'C', 'C', 'C', 'C'
   24376 .section .init_array.65530,$sh_flags,$sh_type
   24377 .balign 4
   24378 .byte 'D', 'D', 'D', 'D'
   24379 .section .dtors.64528,$sh_flags,$sh_type
   24380 .balign 4
   24381 .byte 'E', 'E', 'E', 'E'
   24382 .section .ctors.64528,$sh_flags,$sh_type
   24383 .balign 4
   24384 .byte 'F', 'F', 'F', 'F'
   24385 .section .fini_array.01005,$sh_flags,$sh_type
   24386 .balign 4
   24387 .byte 'G', 'G', 'G', 'G'
   24388 .section .init_array.01005,$sh_flags,$sh_type
   24389 .balign 4
   24390 .byte 'H', 'H', 'H', 'H'
   24391 .text
   24392 .globl _start
   24393 _start:
   24394 EOF
   24395 	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
   24396 	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
   24397 	         && $gcc_cv_objdump -s -j .init_array conftest \
   24398 		    | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
   24399 	         && $gcc_cv_objdump -s -j .fini_array conftest \
   24400 		    | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
   24401 	        gcc_cv_initfini_array=yes
   24402 	      fi
   24403 	      ;;
   24404 	    *-*-solaris2*:no)
   24405 	      # When Solaris ld added constructor priority support, it was
   24406 	      # decided to only handle .init_array.N/.fini_array.N since
   24407 	      # there was no need for backwards compatibility with
   24408 	      # .ctors.N/.dtors.N.  .ctors/.dtors remain as separate
   24409 	      # sections with correct execution order resp. to
   24410 	      # .init_array/.fini_array, while gld merges them into
   24411 	      # .init_array/.fini_array.
   24412 	      cat > conftest.s <<EOF
   24413 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
   24414 .align 4
   24415 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
   24416 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
   24417 .align 4
   24418 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
   24419 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
   24420 .align 4
   24421 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
   24422 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
   24423 .align 4
   24424 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
   24425 .text
   24426 .globl _start
   24427 _start:
   24428 EOF
   24429 	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
   24430 	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
   24431 	         && $gcc_cv_objdump -s -j .init_array conftest \
   24432 		    | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
   24433 	         && $gcc_cv_objdump -s -j .fini_array conftest \
   24434 		    | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
   24435 	        gcc_cv_initfini_array=yes
   24436 	      fi
   24437 	      ;;
   24438 	    esac
   24439 	  rm -f conftest conftest.*
   24440 	fi
   24441 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24442 /* end confdefs.h.  */
   24443 
   24444 #ifndef __ELF__
   24445 # error Not an ELF OS
   24446 #endif
   24447 #include <stdlib.h>
   24448 #if defined __GLIBC_PREREQ
   24449 # if __GLIBC_PREREQ (2, 4)
   24450 # else
   24451 #  error GLIBC 2.4 required
   24452 # endif
   24453 #else
   24454 # if defined __sun__ && defined __svr4__
   24455    /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
   24456 # else
   24457 #  error The C library not known to support .init_array/.fini_array
   24458 # endif
   24459 #endif
   24460 
   24461 _ACEOF
   24462 if ac_fn_cxx_try_cpp "$LINENO"; then :
   24463 
   24464 else
   24465   gcc_cv_initfini_array=no
   24466 fi
   24467 rm -f conftest.err conftest.i conftest.$ac_ext;;
   24468     esac
   24469   else
   24470     case "${target}" in
   24471       aarch64*-linux-gnu*)
   24472 	# AArch64 postdates glibc support for .init_array/.fini_array,
   24473 	# so we don't need the preprocessor test above.
   24474 	gcc_cv_initfini_array=yes
   24475 	;;
   24476 
   24477       *)
   24478 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
   24479 $as_echo_n "checking cross compile... guessing... " >&6; }
   24480 	gcc_cv_initfini_array=no
   24481 	;;
   24482     esac
   24483   fi
   24484 fi
   24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
   24486 $as_echo "$gcc_cv_initfini_array" >&6; }
   24487   enable_initfini_array=$gcc_cv_initfini_array
   24488 
   24489 fi
   24490 
   24491 
   24492 cat >>confdefs.h <<_ACEOF
   24493 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
   24494 _ACEOF
   24495 
   24496 
   24497 
   24498 # Check if we have .[us]leb128, and support symbol arithmetic with it.
   24499 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
   24500 # these directives, even when they appear to accept them.
   24501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
   24502 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
   24503 if ${gcc_cv_as_leb128+:} false; then :
   24504   $as_echo_n "(cached) " >&6
   24505 else
   24506   gcc_cv_as_leb128=no
   24507   if test x$gcc_cv_as != x; then
   24508     $as_echo '	.data
   24509 	.uleb128 L2 - L1
   24510 L1:
   24511 	.uleb128 1280
   24512 	.sleb128 -1010
   24513 L2:
   24514 	.uleb128 0x8000000000000000
   24515 ' > conftest.s
   24516     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24517   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24518   (eval $ac_try) 2>&5
   24519   ac_status=$?
   24520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24521   test $ac_status = 0; }; }
   24522     then
   24523 
   24524 if test "x$gcc_cv_objdump" != x; then
   24525   if $gcc_cv_objdump -s conftest.o 2>/dev/null \
   24526      | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
   24527     gcc_cv_as_leb128=yes
   24528   fi
   24529 elif test "x$gcc_cv_otool" != x; then
   24530   if $gcc_cv_otool -d conftest.o 2>/dev/null \
   24531      | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
   24532     gcc_cv_as_leb128=yes
   24533   fi
   24534 else
   24535   # play safe, assume the assembler is broken.
   24536   :
   24537 fi
   24538 
   24539     else
   24540       echo "configure: failed program was" >&5
   24541       cat conftest.s >&5
   24542     fi
   24543     rm -f conftest.o conftest.s
   24544   fi
   24545 fi
   24546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
   24547 $as_echo "$gcc_cv_as_leb128" >&6; }
   24548 if test $gcc_cv_as_leb128 = yes; then
   24549 
   24550 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
   24551 
   24552 fi
   24553 if test $gcc_cv_as_leb128 != yes; then
   24554 
   24555 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
   24556 
   24557 fi
   24558 
   24559 # Determine if an .eh_frame section is read-only.
   24560 gcc_fn_eh_frame_ro () {
   24561   $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
   24562     $gcc_cv_objdump -h conftest.o 2>/dev/null | \
   24563     sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
   24564 }
   24565 
   24566 # Check if we have assembler support for unwind directives.
   24567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
   24568 $as_echo_n "checking assembler for cfi directives... " >&6; }
   24569 if ${gcc_cv_as_cfi_directive+:} false; then :
   24570   $as_echo_n "(cached) " >&6
   24571 else
   24572   gcc_cv_as_cfi_directive=no
   24573   if test x$gcc_cv_as != x; then
   24574     $as_echo '	.text
   24575 	.cfi_startproc
   24576 	.cfi_offset 0, 0
   24577 	.cfi_same_value 1
   24578 	.cfi_def_cfa 1, 2
   24579 	.cfi_escape 1, 2, 3, 4, 5
   24580 	.cfi_endproc' > conftest.s
   24581     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24582   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24583   (eval $ac_try) 2>&5
   24584   ac_status=$?
   24585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24586   test $ac_status = 0; }; }
   24587     then
   24588 	case "$target" in
   24589   *-*-solaris*)
   24590     # If the linker used on Solaris (like Sun ld) isn't capable of merging
   24591     # read-only and read-write sections, we need to make sure that the
   24592     # assembler used emits read-write .eh_frame sections.
   24593     if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
   24594       gcc_cv_as_cfi_directive=yes
   24595     elif test "x$gcc_cv_objdump" = x; then
   24596       # No objdump, err on the side of caution.
   24597       gcc_cv_as_cfi_directive=no
   24598     else
   24599       if test x$gas = xyes; then
   24600 	as_32_opt="--32"
   24601 	as_64_opt="--64"
   24602       else
   24603 	as_32_opt="-m32"
   24604 	as_64_opt="-m64"
   24605       fi
   24606       case "$target" in
   24607 	sparc*-*-solaris2.*)
   24608 	  # On Solaris/SPARC, .eh_frame sections should always be read-write.
   24609 	  if gcc_fn_eh_frame_ro $as_32_opt \
   24610 	     || gcc_fn_eh_frame_ro $as_64_opt; then
   24611 	    gcc_cv_as_cfi_directive=no
   24612 	  else
   24613 	    gcc_cv_as_cfi_directive=yes
   24614 	  fi
   24615 	  ;;
   24616 	i?86-*-solaris2.* | x86_64-*-solaris2.*)
   24617 	  # On Solaris/x86, make sure that GCC and assembler agree on using
   24618 	  # read-only .eh_frame sections for 64-bit.
   24619 	  if gcc_fn_eh_frame_ro $as_32_opt; then
   24620 	    gcc_cv_as_cfi_directive=no
   24621 	  elif gcc_fn_eh_frame_ro $as_64_opt; then
   24622 	    gcc_cv_as_cfi_directive=yes
   24623 	  else
   24624 	    gcc_cv_as_cfi_directive=no
   24625 	  fi
   24626 	  ;;
   24627       esac
   24628     fi
   24629     ;;
   24630   *-*-*)
   24631     gcc_cv_as_cfi_directive=yes
   24632     ;;
   24633 esac
   24634     else
   24635       echo "configure: failed program was" >&5
   24636       cat conftest.s >&5
   24637     fi
   24638     rm -f conftest.o conftest.s
   24639   fi
   24640 fi
   24641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
   24642 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
   24643 
   24644 
   24645 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
   24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
   24647 $as_echo_n "checking assembler for working cfi advance... " >&6; }
   24648 if ${gcc_cv_as_cfi_advance_working+:} false; then :
   24649   $as_echo_n "(cached) " >&6
   24650 else
   24651   gcc_cv_as_cfi_advance_working=no
   24652   if test x$gcc_cv_as != x; then
   24653     $as_echo '	.text
   24654 	.cfi_startproc
   24655 	.cfi_adjust_cfa_offset 64
   24656 	.skip 75040, 0
   24657 	.cfi_adjust_cfa_offset 128
   24658 	.cfi_endproc' > conftest.s
   24659     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24660   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24661   (eval $ac_try) 2>&5
   24662   ac_status=$?
   24663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24664   test $ac_status = 0; }; }
   24665     then
   24666 
   24667 if $gcc_cv_readelf --debug-dump=frames conftest.o 2>/dev/null \
   24668     | grep 'DW_CFA_advance_loc[24]:[ 	][ 	]*75040[ 	]' >/dev/null; then
   24669    gcc_cv_as_cfi_advance_working=yes
   24670 fi
   24671 
   24672     else
   24673       echo "configure: failed program was" >&5
   24674       cat conftest.s >&5
   24675     fi
   24676     rm -f conftest.o conftest.s
   24677   fi
   24678 fi
   24679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
   24680 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
   24681 
   24682 
   24683 else
   24684   # no objdump, err on the side of caution
   24685   gcc_cv_as_cfi_advance_working=no
   24686 fi
   24687 
   24688 
   24689 cat >>confdefs.h <<_ACEOF
   24690 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
   24691        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
   24692 _ACEOF
   24693 
   24694 
   24695 
   24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
   24697 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
   24698 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
   24699   $as_echo_n "(cached) " >&6
   24700 else
   24701   gcc_cv_as_cfi_personality_directive=no
   24702   if test x$gcc_cv_as != x; then
   24703     $as_echo '	.text
   24704 	.cfi_startproc
   24705 	.cfi_personality 0, symbol
   24706 	.cfi_endproc' > conftest.s
   24707     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24708   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24709   (eval $ac_try) 2>&5
   24710   ac_status=$?
   24711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24712   test $ac_status = 0; }; }
   24713     then
   24714 	gcc_cv_as_cfi_personality_directive=yes
   24715     else
   24716       echo "configure: failed program was" >&5
   24717       cat conftest.s >&5
   24718     fi
   24719     rm -f conftest.o conftest.s
   24720   fi
   24721 fi
   24722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
   24723 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
   24724 
   24725 
   24726 
   24727 cat >>confdefs.h <<_ACEOF
   24728 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
   24729 _ACEOF
   24730 
   24731 
   24732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
   24733 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
   24734 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
   24735   $as_echo_n "(cached) " >&6
   24736 else
   24737   gcc_cv_as_cfi_sections_directive=no
   24738   if test x$gcc_cv_as != x; then
   24739     $as_echo '	.text
   24740 	.cfi_sections .debug_frame, .eh_frame
   24741 	.cfi_startproc
   24742 	.cfi_endproc' > conftest.s
   24743     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24744   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24745   (eval $ac_try) 2>&5
   24746   ac_status=$?
   24747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24748   test $ac_status = 0; }; }
   24749     then
   24750 	case $target_os in
   24751   win32 | pe | cygwin* | mingw32*)
   24752     # Need to check that we generated the correct relocation for the
   24753     # .debug_frame section.  This was fixed for binutils 2.21.
   24754     gcc_cv_as_cfi_sections_directive=no
   24755     if test "x$gcc_cv_objdump" != x; then
   24756      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
   24757 	grep secrel > /dev/null; then
   24758       gcc_cv_as_cfi_sections_directive=yes
   24759      fi
   24760     fi
   24761     ;;
   24762   *)
   24763     gcc_cv_as_cfi_sections_directive=yes
   24764     ;;
   24765 esac
   24766     else
   24767       echo "configure: failed program was" >&5
   24768       cat conftest.s >&5
   24769     fi
   24770     rm -f conftest.o conftest.s
   24771   fi
   24772 fi
   24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
   24774 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
   24775 
   24776 
   24777 
   24778 
   24779 cat >>confdefs.h <<_ACEOF
   24780 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
   24781 _ACEOF
   24782 
   24783 
   24784 # GAS versions up to and including 2.11.0 may mis-optimize
   24785 # .eh_frame data.
   24786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
   24787 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
   24788 if ${gcc_cv_as_eh_frame+:} false; then :
   24789   $as_echo_n "(cached) " >&6
   24790 else
   24791   gcc_cv_as_eh_frame=no
   24792   if test x$gcc_cv_as != x; then
   24793     $as_echo '	.text
   24794 .LFB1:
   24795 	.4byte	0
   24796 .L1:
   24797 	.4byte	0
   24798 .LFE1:
   24799 	.section	.eh_frame,"aw",@progbits
   24800 __FRAME_BEGIN__:
   24801 	.4byte	.LECIE1-.LSCIE1
   24802 .LSCIE1:
   24803 	.4byte	0x0
   24804 	.byte	0x1
   24805 	.ascii "z\0"
   24806 	.byte	0x1
   24807 	.byte	0x78
   24808 	.byte	0x1a
   24809 	.byte	0x0
   24810 	.byte	0x4
   24811 	.4byte	1
   24812 	.p2align 1
   24813 .LECIE1:
   24814 .LSFDE1:
   24815 	.4byte	.LEFDE1-.LASFDE1
   24816 .LASFDE1:
   24817 	.4byte	.LASFDE1-__FRAME_BEGIN__
   24818 	.4byte	.LFB1
   24819 	.4byte	.LFE1-.LFB1
   24820 	.byte	0x4
   24821 	.4byte	.LFE1-.LFB1
   24822 	.byte	0x4
   24823 	.4byte	.L1-.LFB1
   24824 .LEFDE1:' > conftest.s
   24825     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24826   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24827   (eval $ac_try) 2>&5
   24828   ac_status=$?
   24829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24830   test $ac_status = 0; }; }
   24831     then
   24832 	  cat > conftest.lit <<EOF
   24833  0000 10000000 00000000 017a0001 781a0004  .........z..x...
   24834  0010 01000000 12000000 18000000 00000000  ................
   24835  0020 08000000 04080000 0044               .........D      
   24836 EOF
   24837 cat > conftest.big <<EOF
   24838  0000 00000010 00000000 017a0001 781a0004  .........z..x...
   24839  0010 00000001 00000012 00000018 00000000  ................
   24840  0020 00000008 04000000 0844               .........D      
   24841 EOF
   24842   # If the assembler didn't choke, and we can objdump,
   24843   # and we got the correct data, then succeed.
   24844   # The text in the here-document typically retains its unix-style line
   24845   # endings, while the output of objdump will use host line endings.
   24846   # Therefore, use diff -b for the comparisons.
   24847   if test x$gcc_cv_objdump != x \
   24848   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
   24849      | tail -3 > conftest.got \
   24850   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
   24851     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
   24852   then
   24853     gcc_cv_as_eh_frame=yes
   24854   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
   24855   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24856   (eval $ac_try) 2>&5
   24857   ac_status=$?
   24858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24859   test $ac_status = 0; }; }; then
   24860     gcc_cv_as_eh_frame=buggy
   24861   else
   24862     # Uh oh, what do we do now?
   24863     gcc_cv_as_eh_frame=no
   24864   fi
   24865     else
   24866       echo "configure: failed program was" >&5
   24867       cat conftest.s >&5
   24868     fi
   24869     rm -f conftest.o conftest.s
   24870   fi
   24871 fi
   24872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
   24873 $as_echo "$gcc_cv_as_eh_frame" >&6; }
   24874 
   24875 
   24876 
   24877 if test $gcc_cv_as_eh_frame = buggy; then
   24878 
   24879 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
   24880 
   24881 fi
   24882 
   24883 # Test if the assembler supports the section flag 'e' or #exclude for
   24884 # specifying an excluded section.
   24885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
   24886 $as_echo_n "checking assembler for section exclude flag... " >&6; }
   24887 if ${gcc_cv_as_section_exclude_e+:} false; then :
   24888   $as_echo_n "(cached) " >&6
   24889 else
   24890   gcc_cv_as_section_exclude_e=no
   24891   if test x$gcc_cv_as != x; then
   24892     $as_echo '.section foo1,"e"
   24893   .byte 0,0,0,0' > conftest.s
   24894     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
   24895   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24896   (eval $ac_try) 2>&5
   24897   ac_status=$?
   24898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24899   test $ac_status = 0; }; }
   24900     then
   24901 	gcc_cv_as_section_exclude_e=yes
   24902     else
   24903       echo "configure: failed program was" >&5
   24904       cat conftest.s >&5
   24905     fi
   24906     rm -f conftest.o conftest.s
   24907   fi
   24908 fi
   24909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
   24910 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
   24911 
   24912 
   24913 if test $gcc_cv_as_section_exclude_e = no; then
   24914   case "${target}" in
   24915     # Solaris as uses #exclude instead.
   24916     *-*-solaris2*)
   24917       case "${target}" in
   24918 	sparc*-*-solaris2*)
   24919 	  conftest_s='.section "foo1", #exclude'
   24920 	  ;;
   24921 	i?86-*-solaris2* | x86_64-*-solaris2*)
   24922 	  conftest_s='.section foo1, #exclude'
   24923 	  ;;
   24924       esac
   24925       ;;
   24926     esac
   24927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
   24928 $as_echo_n "checking assembler for section exclude flag... " >&6; }
   24929 if ${gcc_cv_as_section_exclude_hash+:} false; then :
   24930   $as_echo_n "(cached) " >&6
   24931 else
   24932   gcc_cv_as_section_exclude_hash=no
   24933   if test x$gcc_cv_as != x; then
   24934     $as_echo "$conftest_s
   24935      .byte 0,0,0,0" > conftest.s
   24936     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24937   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24938   (eval $ac_try) 2>&5
   24939   ac_status=$?
   24940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24941   test $ac_status = 0; }; }
   24942     then
   24943 	gcc_cv_as_section_exclude_hash=yes
   24944     else
   24945       echo "configure: failed program was" >&5
   24946       cat conftest.s >&5
   24947     fi
   24948     rm -f conftest.o conftest.s
   24949   fi
   24950 fi
   24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
   24952 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
   24953 
   24954 
   24955 fi
   24956 
   24957 cat >>confdefs.h <<_ACEOF
   24958 #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`
   24959 _ACEOF
   24960 
   24961 
   24962 # Test if the assembler supports the section flag 'R' for specifying
   24963 # section with SHF_GNU_RETAIN.
   24964 case "${target}" in
   24965   # Solaris may use GNU assembler with Solairs ld.  Even if GNU
   24966   # assembler supports the section flag 'R', it doesn't mean that
   24967   # Solairs ld supports it.
   24968   *-*-solaris2*)
   24969     gcc_cv_as_shf_gnu_retain=no
   24970     ;;
   24971   *)
   24972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
   24973 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
   24974 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
   24975   $as_echo_n "(cached) " >&6
   24976 else
   24977   gcc_cv_as_shf_gnu_retain=no
   24978   if test x$gcc_cv_as != x; then
   24979     $as_echo '.section .foo,"awR",%progbits
   24980 .byte 0' > conftest.s
   24981     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
   24982   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24983   (eval $ac_try) 2>&5
   24984   ac_status=$?
   24985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24986   test $ac_status = 0; }; }
   24987     then
   24988 	gcc_cv_as_shf_gnu_retain=yes
   24989     else
   24990       echo "configure: failed program was" >&5
   24991       cat conftest.s >&5
   24992     fi
   24993     rm -f conftest.o conftest.s
   24994   fi
   24995 fi
   24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
   24997 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
   24998 
   24999 
   25000     ;;
   25001 esac
   25002 
   25003 cat >>confdefs.h <<_ACEOF
   25004 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
   25005 _ACEOF
   25006 
   25007 
   25008 # Test if the assembler supports the section flag 'o' for specifying
   25009 # section with link-order.
   25010 case "${target}" in
   25011   # Solaris may use GNU assembler with Solairs ld.  Even if GNU
   25012   # assembler supports the section flag 'o', it doesn't mean that
   25013   # Solairs ld supports it.
   25014   *-*-solaris2*)
   25015     gcc_cv_as_section_link_order=no
   25016     ;;
   25017   *)
   25018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
   25019 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
   25020 if ${gcc_cv_as_section_link_order+:} false; then :
   25021   $as_echo_n "(cached) " >&6
   25022 else
   25023   gcc_cv_as_section_link_order=no
   25024   if test x$gcc_cv_as != x; then
   25025     $as_echo '.section .foo,"a"
   25026 .byte 0
   25027 .section __patchable_function_entries,"awo",%progbits,.foo
   25028 .byte 0' > conftest.s
   25029     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
   25030   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25031   (eval $ac_try) 2>&5
   25032   ac_status=$?
   25033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25034   test $ac_status = 0; }; }
   25035     then
   25036 	gcc_cv_as_section_link_order=yes
   25037     else
   25038       echo "configure: failed program was" >&5
   25039       cat conftest.s >&5
   25040     fi
   25041     rm -f conftest.o conftest.s
   25042   fi
   25043 fi
   25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
   25045 $as_echo "$gcc_cv_as_section_link_order" >&6; }
   25046 
   25047 
   25048     ;;
   25049 esac
   25050 
   25051 cat >>confdefs.h <<_ACEOF
   25052 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
   25053 _ACEOF
   25054 
   25055 
   25056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
   25057 $as_echo_n "checking assembler for section merging support... " >&6; }
   25058 if ${gcc_cv_as_shf_merge+:} false; then :
   25059   $as_echo_n "(cached) " >&6
   25060 else
   25061   gcc_cv_as_shf_merge=no
   25062   if test x$gcc_cv_as != x; then
   25063     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
   25064     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
   25065   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25066   (eval $ac_try) 2>&5
   25067   ac_status=$?
   25068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25069   test $ac_status = 0; }; }
   25070     then
   25071 	gcc_cv_as_shf_merge=yes
   25072     else
   25073       echo "configure: failed program was" >&5
   25074       cat conftest.s >&5
   25075     fi
   25076     rm -f conftest.o conftest.s
   25077   fi
   25078 fi
   25079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
   25080 $as_echo "$gcc_cv_as_shf_merge" >&6; }
   25081 
   25082 
   25083 if test $gcc_cv_as_shf_merge = no; then
   25084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
   25085 $as_echo_n "checking assembler for section merging support... " >&6; }
   25086 if ${gcc_cv_as_shf_merge+:} false; then :
   25087   $as_echo_n "(cached) " >&6
   25088 else
   25089   gcc_cv_as_shf_merge=no
   25090   if test x$gcc_cv_as != x; then
   25091     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
   25092     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
   25093   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25094   (eval $ac_try) 2>&5
   25095   ac_status=$?
   25096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25097   test $ac_status = 0; }; }
   25098     then
   25099 	gcc_cv_as_shf_merge=yes
   25100     else
   25101       echo "configure: failed program was" >&5
   25102       cat conftest.s >&5
   25103     fi
   25104     rm -f conftest.o conftest.s
   25105   fi
   25106 fi
   25107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
   25108 $as_echo "$gcc_cv_as_shf_merge" >&6; }
   25109 
   25110 
   25111 fi
   25112 
   25113 cat >>confdefs.h <<_ACEOF
   25114 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
   25115 _ACEOF
   25116 
   25117 
   25118 gcc_cv_ld_aligned_shf_merge=yes
   25119 case "$target" in
   25120   # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
   25121   # alignment > 1.
   25122   sparc*-*-solaris2.11*)
   25123     if test x"$gnu_ld" = xno \
   25124        && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
   25125       gcc_cv_ld_aligned_shf_merge=no
   25126     fi
   25127     ;;
   25128 esac
   25129 
   25130 cat >>confdefs.h <<_ACEOF
   25131 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
   25132 _ACEOF
   25133 
   25134 
   25135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
   25136 $as_echo_n "checking assembler for stabs directive... " >&6; }
   25137 if ${gcc_cv_as_stabs_directive+:} false; then :
   25138   $as_echo_n "(cached) " >&6
   25139 else
   25140   gcc_cv_as_stabs_directive=no
   25141   if test x$gcc_cv_as != x; then
   25142     $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
   25143     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25144   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25145   (eval $ac_try) 2>&5
   25146   ac_status=$?
   25147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25148   test $ac_status = 0; }; }
   25149     then
   25150 	gcc_cv_as_stabs_directive=yes
   25151     else
   25152       echo "configure: failed program was" >&5
   25153       cat conftest.s >&5
   25154     fi
   25155     rm -f conftest.o conftest.s
   25156   fi
   25157 fi
   25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
   25159 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
   25160 if test $gcc_cv_as_stabs_directive = yes; then
   25161 
   25162 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
   25163 
   25164 fi
   25165 
   25166 
   25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
   25168 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
   25169 if ${gcc_cv_as_comdat_group+:} false; then :
   25170   $as_echo_n "(cached) " >&6
   25171 else
   25172   gcc_cv_as_comdat_group=no
   25173   if test x$gcc_cv_as != x; then
   25174     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
   25175     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
   25176   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25177   (eval $ac_try) 2>&5
   25178   ac_status=$?
   25179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25180   test $ac_status = 0; }; }
   25181     then
   25182 	gcc_cv_as_comdat_group=yes
   25183     else
   25184       echo "configure: failed program was" >&5
   25185       cat conftest.s >&5
   25186     fi
   25187     rm -f conftest.o conftest.s
   25188   fi
   25189 fi
   25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
   25191 $as_echo "$gcc_cv_as_comdat_group" >&6; }
   25192 
   25193 
   25194 if test $gcc_cv_as_comdat_group = yes; then
   25195   gcc_cv_as_comdat_group_percent=no
   25196   gcc_cv_as_comdat_group_group=no
   25197 else
   25198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
   25199 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
   25200 if ${gcc_cv_as_comdat_group_percent+:} false; then :
   25201   $as_echo_n "(cached) " >&6
   25202 else
   25203   gcc_cv_as_comdat_group_percent=no
   25204   if test x$gcc_cv_as != x; then
   25205     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
   25206     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
   25207   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25208   (eval $ac_try) 2>&5
   25209   ac_status=$?
   25210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25211   test $ac_status = 0; }; }
   25212     then
   25213 	gcc_cv_as_comdat_group_percent=yes
   25214     else
   25215       echo "configure: failed program was" >&5
   25216       cat conftest.s >&5
   25217     fi
   25218     rm -f conftest.o conftest.s
   25219   fi
   25220 fi
   25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
   25222 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
   25223 
   25224 
   25225  if test $gcc_cv_as_comdat_group_percent = yes; then
   25226    gcc_cv_as_comdat_group_group=no
   25227  else
   25228    case "${target}" in
   25229      # Sun as uses a completely different syntax.
   25230      *-*-solaris2*)
   25231        case "${target}" in
   25232          sparc*-*-solaris2*)
   25233            conftest_s='
   25234                .group foo,".text%foo",#comdat
   25235                .section ".text%foo", #alloc,#execinstr,#progbits
   25236                .globl foo
   25237              foo:
   25238 	     '
   25239            ;;
   25240          i?86-*-solaris2* | x86_64-*-solaris2*)
   25241 	   conftest_s='
   25242                .group foo,.text%foo,#comdat
   25243                .section .text%foo, "ax", @progbits
   25244                .globl  foo
   25245              foo:
   25246 	     '
   25247 	   ;;
   25248        esac
   25249        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
   25250 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
   25251 if ${gcc_cv_as_comdat_group_group+:} false; then :
   25252   $as_echo_n "(cached) " >&6
   25253 else
   25254   gcc_cv_as_comdat_group_group=no
   25255   if test x$gcc_cv_as != x; then
   25256     $as_echo "$conftest_s" > conftest.s
   25257     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25258   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25259   (eval $ac_try) 2>&5
   25260   ac_status=$?
   25261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25262   test $ac_status = 0; }; }
   25263     then
   25264 	gcc_cv_as_comdat_group_group=yes
   25265     else
   25266       echo "configure: failed program was" >&5
   25267       cat conftest.s >&5
   25268     fi
   25269     rm -f conftest.o conftest.s
   25270   fi
   25271 fi
   25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
   25273 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
   25274 
   25275 
   25276        ;;
   25277    esac
   25278    if test -z "${gcc_cv_as_comdat_group_group+set}"; then
   25279      gcc_cv_as_comdat_group_group=no
   25280    fi
   25281  fi
   25282 fi
   25283 if test x"$ld_is_gold" = xyes; then
   25284   comdat_group=yes
   25285 elif test x"$ld_is_mold" = xyes; then
   25286   comdat_group=yes
   25287 elif test $in_tree_ld = yes ; then
   25288   comdat_group=no
   25289   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 \
   25290      && test $in_tree_ld_is_elf = yes; then
   25291      comdat_group=yes
   25292   fi
   25293 elif echo "$ld_ver" | grep GNU > /dev/null; then
   25294   comdat_group=yes
   25295   if test 0"$ld_date" -lt 20050308; then
   25296     if test -n "$ld_date"; then
   25297       # If there was date string, but was earlier than 2005-03-08, fail
   25298       comdat_group=no
   25299     elif test "$ld_vers_major" -lt 2; then
   25300       comdat_group=no
   25301     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
   25302       comdat_group=no
   25303     fi
   25304   fi
   25305 else
   25306   case "${target}" in
   25307     *-*-solaris2.1[1-9]*)
   25308       comdat_group=no
   25309       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
   25310       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
   25311       # version 1.688.
   25312       #
   25313       # If using Sun as for COMDAT group as emitted by GCC, one needs at
   25314       # least ld version 1.2267.
   25315       if test "$ld_vers_major" -gt 1; then
   25316         comdat_group=yes
   25317       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
   25318 	comdat_group=yes
   25319       elif test "$ld_vers_minor" -ge 2267; then
   25320 	comdat_group=yes
   25321       fi
   25322       ;;
   25323     *)
   25324       # Assume linkers other than GNU ld don't support COMDAT group.
   25325       comdat_group=no
   25326       ;;
   25327   esac
   25328 fi
   25329 # Allow overriding the automatic COMDAT group tests above.
   25330 # Check whether --enable-comdat was given.
   25331 if test "${enable_comdat+set}" = set; then :
   25332   enableval=$enable_comdat; comdat_group="$enable_comdat"
   25333 fi
   25334 
   25335 if test $comdat_group = no; then
   25336   gcc_cv_as_comdat_group=no
   25337   gcc_cv_as_comdat_group_percent=no
   25338   gcc_cv_as_comdat_group_group=no
   25339 fi
   25340 
   25341 cat >>confdefs.h <<_ACEOF
   25342 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
   25343     || test $gcc_cv_as_comdat_group_percent = yes \
   25344     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
   25345 _ACEOF
   25346 
   25347 
   25348 # Restrict this test to Solaris/x86: other targets define this statically.
   25349 case "${target}" in
   25350   i?86-*-solaris2* | x86_64-*-solaris2*)
   25351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
   25352 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
   25353     if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
   25354       hidden_linkonce=yes
   25355     else
   25356       case "${target}" in
   25357 	# Full support for hidden thunks in linkonce sections only appeared in
   25358 	# Solaris 11/OpenSolaris.
   25359         *-*-solaris2.1[1-9]*)
   25360 	  hidden_linkonce=yes
   25361 	  ;;
   25362 	*)
   25363 	  hidden_linkonce=no
   25364 	  ;;
   25365       esac
   25366     fi
   25367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
   25368 $as_echo "$hidden_linkonce" >&6; }
   25369 
   25370 cat >>confdefs.h <<_ACEOF
   25371 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
   25372 _ACEOF
   25373 
   25374   ;;
   25375 esac
   25376 
   25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
   25378 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
   25379 if ${gcc_cv_as_is_stmt+:} false; then :
   25380   $as_echo_n "(cached) " >&6
   25381 else
   25382   gcc_cv_as_is_stmt=no
   25383   if test x$gcc_cv_as != x; then
   25384     $as_echo '	.text
   25385 	.file 1 "conf.c"
   25386 	.loc 1 1 0 is_stmt 1' > conftest.s
   25387     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25388   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25389   (eval $ac_try) 2>&5
   25390   ac_status=$?
   25391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25392   test $ac_status = 0; }; }
   25393     then
   25394 	gcc_cv_as_is_stmt=yes
   25395     else
   25396       echo "configure: failed program was" >&5
   25397       cat conftest.s >&5
   25398     fi
   25399     rm -f conftest.o conftest.s
   25400   fi
   25401 fi
   25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
   25403 $as_echo "$gcc_cv_as_is_stmt" >&6; }
   25404 if test $gcc_cv_as_is_stmt = yes; then
   25405 
   25406 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
   25407 
   25408 fi
   25409 
   25410 
   25411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
   25412 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
   25413 if ${gcc_cv_as_discriminator+:} false; then :
   25414   $as_echo_n "(cached) " >&6
   25415 else
   25416   gcc_cv_as_discriminator=no
   25417   if test x$gcc_cv_as != x; then
   25418     $as_echo '	.text
   25419 	.file 1 "conf.c"
   25420 	.loc 1 1 0 discriminator 1' > conftest.s
   25421     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25422   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25423   (eval $ac_try) 2>&5
   25424   ac_status=$?
   25425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25426   test $ac_status = 0; }; }
   25427     then
   25428 	gcc_cv_as_discriminator=yes
   25429     else
   25430       echo "configure: failed program was" >&5
   25431       cat conftest.s >&5
   25432     fi
   25433     rm -f conftest.o conftest.s
   25434   fi
   25435 fi
   25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
   25437 $as_echo "$gcc_cv_as_discriminator" >&6; }
   25438 if test $gcc_cv_as_discriminator = yes; then
   25439 
   25440 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
   25441 
   25442 fi
   25443 
   25444 
   25445 # Catch the newlib flag of the same name so we can gate GCC features on it.
   25446 # Check whether --enable-newlib-nano-formatted-io was given.
   25447 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
   25448   enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
   25449   yes|no)
   25450     ;;
   25451   *)
   25452     as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
   25453     ;;
   25454 esac
   25455 fi
   25456 
   25457 
   25458 # Thread-local storage - the check is heavily parameterized.
   25459 conftest_s=
   25460 tls_as_opt=
   25461 case "$target" in
   25462   alpha*-*-*)
   25463     conftest_s='
   25464 	.section ".tdata","awT",@progbits
   25465 foo:	.long	25
   25466 	.text
   25467 	ldq	$27,__tls_get_addr($29)		!literal!1
   25468 	lda	$16,foo($29)			!tlsgd!1
   25469 	jsr	$26,($27),__tls_get_addr	!lituse_tlsgd!1
   25470 	ldq	$27,__tls_get_addr($29)		!literal!2
   25471 	lda	$16,foo($29)			!tlsldm!2
   25472 	jsr	$26,($27),__tls_get_addr	!lituse_tlsldm!2
   25473 	ldq	$1,foo($29)			!gotdtprel
   25474 	ldah	$2,foo($29)			!dtprelhi
   25475 	lda	$3,foo($2)			!dtprello
   25476 	lda	$4,foo($29)			!dtprel
   25477 	ldq	$1,foo($29)			!gottprel
   25478 	ldah	$2,foo($29)			!tprelhi
   25479 	lda	$3,foo($2)			!tprello
   25480 	lda	$4,foo($29)			!tprel'
   25481 	tls_as_opt=--fatal-warnings
   25482 	;;
   25483   arc*-*-*)
   25484     conftest_s='
   25485 	add_s r0,r0, @foo@tpoff'
   25486 	;;
   25487   cris-*-*|crisv32-*-*)
   25488     conftest_s='
   25489 	.section ".tdata","awT",@progbits
   25490 x:      .long   25
   25491         .text
   25492 	move.d x:IE,$r10
   25493 	nop'
   25494 	tls_as_opt=--fatal-warnings
   25495 	;;
   25496   frv*-*-*)
   25497     conftest_s='
   25498 	.section ".tdata","awT",@progbits
   25499 x:      .long   25
   25500         .text
   25501         call    #gettlsoff(x)'
   25502 	;;
   25503   hppa*-*-linux* | hppa*-*-netbsd*)
   25504     conftest_s='
   25505 t1:	.reg	%r20
   25506 t2:	.reg	%r21
   25507 gp:	.reg	%r19
   25508 	.section ".tdata","awT",@progbits
   25509 foo:	.long	25
   25510 	.text
   25511 	.align	4
   25512 	addil LT%foo-$tls_gdidx$,gp
   25513 	ldo RT%foo-$tls_gdidx$(%r1),%arg0
   25514 	b __tls_get_addr
   25515 	nop
   25516 	addil LT%foo-$tls_ldidx$,gp
   25517 	b __tls_get_addr
   25518 	ldo RT%foo-$tls_ldidx$(%r1),%arg0
   25519 	addil LR%foo-$tls_dtpoff$,%ret0
   25520 	ldo RR%foo-$tls_dtpoff$(%r1),%t1
   25521 	mfctl %cr27,%t1
   25522 	addil LT%foo-$tls_ieoff$,gp
   25523 	ldw RT%foo-$tls_ieoff$(%r1),%t2
   25524 	add %t1,%t2,%t3
   25525 	mfctl %cr27,%t1
   25526 	addil LR%foo-$tls_leoff$,%t1
   25527 	ldo RR%foo-$tls_leoff$(%r1),%t2'
   25528 	tls_as_opt=--fatal-warnings
   25529 	;;
   25530   arm*-*-*)
   25531     conftest_s='
   25532 	.section ".tdata","awT",%progbits
   25533 foo:	.long	25
   25534 	.text
   25535 .word foo(gottpoff)
   25536 .word foo(tpoff)
   25537 .word foo(tlsgd)
   25538 .word foo(tlsldm)
   25539 .word foo(tlsldo)'
   25540 	;;
   25541   i[34567]86-*-* | x86_64-*-*)
   25542     case "$target" in
   25543       i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
   25544 	on_solaris=yes
   25545         ;;
   25546       *)
   25547 	on_solaris=no
   25548 	;;
   25549     esac
   25550     if test x$on_solaris = xyes && test x$gas_flag = xno; then
   25551       conftest_s='
   25552 	.section .tdata,"awt",@progbits'
   25553       tls_section_flag=t
   25554 
   25555 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
   25556 
   25557     else
   25558       conftest_s='
   25559 	.section ".tdata","awT",@progbits'
   25560       tls_section_flag=T
   25561       tls_as_opt="--fatal-warnings"
   25562     fi
   25563     case "$target" in
   25564       i[34567]86-*-*)
   25565 	if test x$on_solaris = xyes; then
   25566 	  case $gas_flag in
   25567 	    yes) tls_as_opt="$tls_as_opt --32" ;;
   25568 	  esac
   25569 	fi
   25570 	conftest_s="$conftest_s
   25571 foo:	.long	25
   25572 	.text
   25573 	movl	%gs:0, %eax
   25574 	leal	foo@tlsgd(,%ebx,1), %eax
   25575 	leal	foo@tlsldm(%ebx), %eax
   25576 	leal	foo@dtpoff(%eax), %edx
   25577 	movl	foo@gottpoff(%ebx), %eax
   25578 	subl	foo@gottpoff(%ebx), %eax
   25579 	addl	foo@gotntpoff(%ebx), %eax
   25580 	movl	foo@indntpoff, %eax
   25581 	movl	\$foo@tpoff, %eax
   25582 	subl	\$foo@tpoff, %eax
   25583 	leal	foo@ntpoff(%ecx), %eax"
   25584 	;;
   25585       x86_64-*-*)
   25586 	if test x$on_solaris = xyes; then
   25587 	  case $gas_flag in
   25588 	    yes) tls_as_opt="$tls_as_opt --64" ;;
   25589 	    no)	 tls_as_opt="$tls_as_opt -xarch=amd64" ;;
   25590 	  esac
   25591 	fi
   25592 	conftest_s="$conftest_s
   25593 foo:	.long	25
   25594 	.text
   25595 	movq	%fs:0, %rax
   25596 	leaq	foo@tlsgd(%rip), %rdi
   25597 	leaq	foo@tlsld(%rip), %rdi
   25598 	leaq	foo@dtpoff(%rax), %rdx
   25599 	movq	foo@gottpoff(%rip), %rax
   25600 	movq	\$foo@tpoff, %rax"
   25601         ;;
   25602     esac
   25603     ;;
   25604   ia64-*-*)
   25605     conftest_s='
   25606 	.section ".tdata","awT",@progbits
   25607 foo:	data8	25
   25608 	.text
   25609 	addl	r16 = @ltoff(@dtpmod(foo#)), gp
   25610 	addl	r17 = @ltoff(@dtprel(foo#)), gp
   25611 	addl	r18 = @ltoff(@tprel(foo#)), gp
   25612 	addl	r19 = @dtprel(foo#), gp
   25613 	adds	r21 = @dtprel(foo#), r13
   25614 	movl	r23 = @dtprel(foo#)
   25615 	addl	r20 = @tprel(foo#), gp
   25616 	adds	r22 = @tprel(foo#), r13
   25617 	movl	r24 = @tprel(foo#)'
   25618 	tls_as_opt=--fatal-warnings
   25619 	;;
   25620   loongarch*-*-*)
   25621     conftest_s='
   25622 	.section .tdata,"awT",@progbits
   25623 x:	.word 2
   25624 	.text
   25625 	la.tls.gd $a0,x
   25626 	bl __tls_get_addr'
   25627 	tls_first_major=0
   25628 	tls_first_minor=0
   25629 	tls_as_opt='--fatal-warnings'
   25630 	;;
   25631   microblaze*-*-*)
   25632     conftest_s='
   25633 	.section .tdata,"awT",@progbits
   25634 x:
   25635 	.word 2
   25636 	.text
   25637 	addik r5,r20,x@TLSGD
   25638 	addik r5,r20,x@TLSLDM'
   25639 	tls_as_opt='--fatal-warnings'
   25640 	;;
   25641   mips*-*-*)
   25642     conftest_s='
   25643 	.section .tdata,"awT",@progbits
   25644 x:
   25645 	.word 2
   25646 	.text
   25647 	addiu $4, $28, %tlsgd(x)
   25648 	addiu $4, $28, %tlsldm(x)
   25649 	lui $4, %dtprel_hi(x)
   25650 	addiu $4, $4, %dtprel_lo(x)
   25651 	lw $4, %gottprel(x)($28)
   25652 	lui $4, %tprel_hi(x)
   25653 	addiu $4, $4, %tprel_lo(x)'
   25654 	tls_as_opt='-32 --fatal-warnings'
   25655 	;;
   25656   m68k-*-*|m5407-*-*)
   25657     conftest_s='
   25658 	.section .tdata,"awT",@progbits
   25659 x:
   25660 	.word 2
   25661 	.text
   25662 foo:
   25663 	move.l x@TLSGD(%a5),%a0
   25664 	move.l x@TLSLDM(%a5),%a0
   25665 	move.l x@TLSLDO(%a5),%a0
   25666 	move.l x@TLSIE(%a5),%a0
   25667 	move.l x@TLSLE(%a5),%a0'
   25668 	tls_as_opt='--fatal-warnings'
   25669 	;;
   25670   nios2-*-*)
   25671       conftest_s='
   25672 	.section ".tdata","awT",@progbits'
   25673 	tls_as_opt="--fatal-warnings"
   25674 	;;
   25675   aarch64*-*-*)
   25676     conftest_s='
   25677 	.section ".tdata","awT",%progbits
   25678 foo:	.long	25
   25679 	.text
   25680 	adrp  x0, :tlsgd:x
   25681 	add   x0, x0, #:tlsgd_lo12:x
   25682         bl    __tls_get_addr
   25683 	nop'
   25684 	tls_as_opt='--fatal-warnings'
   25685 	;;
   25686   or1k*-*-*)
   25687     conftest_s='
   25688 	.section ".tdata","awT",@progbits
   25689 foo:	.long	25
   25690 	.text
   25691 	l.movhi	r3, tpoffha(foo)
   25692 	l.add	r3, r3, r10
   25693 	l.lwz	r4, tpofflo(foo)(r3)'
   25694     tls_as_opt=--fatal-warnings
   25695     ;;
   25696   powerpc-ibm-aix*)
   25697     conftest_s='
   25698 	.extern __get_tpointer
   25699 	.toc
   25700 LC..1:
   25701 	.tc a[TC],a[TL]@le
   25702 	.csect .text[PR]
   25703 .tlstest:
   25704 	lwz 9,LC..1(2)
   25705 	bla __get_tpointer
   25706 	lwzx 3,9,3
   25707 	.globl a
   25708 	.csect a[TL],4
   25709 a:
   25710 	.space 4'
   25711 	;;
   25712   powerpc64*-*-*)
   25713     conftest_s='
   25714 	.section ".tdata","awT",@progbits
   25715 	.align 3
   25716 ld0:	.space 8
   25717 ld1:	.space 8
   25718 x1:	.space 8
   25719 x2:	.space 8
   25720 x3:	.space 8
   25721 	.text
   25722 	addi 3,2,ld0@got@tlsgd
   25723 	bl .__tls_get_addr
   25724 	nop
   25725 	addi 3,2,ld1@toc
   25726 	bl .__tls_get_addr
   25727 	nop
   25728 	addi 3,2,x1@got@tlsld
   25729 	bl .__tls_get_addr
   25730 	nop
   25731 	addi 9,3,x1@dtprel
   25732 	bl .__tls_get_addr
   25733 	nop
   25734 	addis 9,3,x2@dtprel@ha
   25735 	addi 9,9,x2@dtprel@l
   25736 	bl .__tls_get_addr
   25737 	nop
   25738 	ld 9,x3@got@dtprel(2)
   25739 	add 9,9,3
   25740 	bl .__tls_get_addr
   25741 	nop'
   25742 	tls_as_opt="-a64 --fatal-warnings"
   25743 	;;
   25744   powerpc*-*-*)
   25745     conftest_s='
   25746 	.section ".tdata","awT",@progbits
   25747 	.align 2
   25748 ld0:	.space 4
   25749 ld1:	.space 4
   25750 x1:	.space 4
   25751 x2:	.space 4
   25752 x3:	.space 4
   25753 	.text
   25754 	addi 3,31,ld0@got@tlsgd
   25755 	bl __tls_get_addr
   25756 	addi 3,31,x1@got@tlsld
   25757 	bl __tls_get_addr
   25758 	addi 9,3,x1@dtprel
   25759 	addis 9,3,x2@dtprel@ha
   25760 	addi 9,9,x2@dtprel@l
   25761 	lwz 9,x3@got@tprel(31)
   25762 	add 9,9,x@tls
   25763 	addi 9,2,x1@tprel
   25764 	addis 9,2,x2@tprel@ha
   25765 	addi 9,9,x2@tprel@l'
   25766 	tls_as_opt="-a32 --fatal-warnings"
   25767 	;;
   25768   riscv*-*-*)
   25769     conftest_s='
   25770 	.section .tdata,"awT",@progbits
   25771 x:	.word 2
   25772 	.text
   25773 	la.tls.gd a0,x
   25774         call __tls_get_addr'
   25775 	tls_as_opt='--fatal-warnings'
   25776 	;;
   25777   s390-*-*)
   25778     conftest_s='
   25779 	.section ".tdata","awT",@progbits
   25780 foo:	.long	25
   25781 	.text
   25782 	.long	foo@TLSGD
   25783 	.long	foo@TLSLDM
   25784 	.long	foo@DTPOFF
   25785 	.long	foo@NTPOFF
   25786 	.long	foo@GOTNTPOFF
   25787 	.long	foo@INDNTPOFF
   25788 	l	%r1,foo@GOTNTPOFF(%r12)
   25789 	l	%r1,0(%r1):tls_load:foo
   25790 	bas	%r14,0(%r1,%r13):tls_gdcall:foo
   25791 	bas	%r14,0(%r1,%r13):tls_ldcall:foo'
   25792 	tls_as_opt="-m31 --fatal-warnings"
   25793 	;;
   25794   s390x-*-*)
   25795     conftest_s='
   25796 	.section ".tdata","awT",@progbits
   25797 foo:	.long	25
   25798 	.text
   25799 	.quad	foo@TLSGD
   25800 	.quad	foo@TLSLDM
   25801 	.quad	foo@DTPOFF
   25802 	.quad	foo@NTPOFF
   25803 	.quad	foo@GOTNTPOFF
   25804 	lg	%r1,foo@GOTNTPOFF(%r12)
   25805 	larl	%r1,foo@INDNTPOFF
   25806 	brasl	%r14,__tls_get_offset@PLT:tls_gdcall:foo
   25807 	brasl	%r14,__tls_get_offset@PLT:tls_ldcall:foo'
   25808 	tls_as_opt="-m64 -Aesame --fatal-warnings"
   25809 	;;
   25810   sh-*-* | sh[34]-*-* | sh*l*-*-*)
   25811     conftest_s='
   25812 	.section ".tdata","awT",@progbits
   25813 foo:	.long	25
   25814 	.text
   25815 	.long	foo@TLSGD
   25816 	.long	foo@TLSLDM
   25817 	.long	foo@DTPOFF
   25818 	.long	foo@GOTTPOFF
   25819 	.long	foo@TPOFF'
   25820 	tls_as_opt=--fatal-warnings
   25821 	;;
   25822   sparc*-*-*)
   25823     case "$target" in
   25824       sparc*-sun-solaris2.*)
   25825 	on_solaris=yes
   25826 	;;
   25827       *)
   25828 	on_solaris=no
   25829 	;;
   25830     esac
   25831     if test x$on_solaris = xyes && test x$gas_flag = xno; then
   25832       conftest_s='
   25833 	.section ".tdata",#alloc,#write,#tls'
   25834     else
   25835       conftest_s='
   25836 	.section ".tdata","awT",@progbits'
   25837 	tls_as_opt="-32 --fatal-warnings"
   25838     fi
   25839     conftest_s="$conftest_s
   25840 foo:	.long	25
   25841 	.text
   25842 	sethi	%tgd_hi22(foo), %o0
   25843 	add	%o0, %tgd_lo10(foo), %o1
   25844 	add	%l7, %o1, %o0, %tgd_add(foo)
   25845 	call	__tls_get_addr, %tgd_call(foo)
   25846 	sethi	%tldm_hi22(foo), %l1
   25847 	add	%l1, %tldm_lo10(foo), %l2
   25848 	add	%l7, %l2, %o0, %tldm_add(foo)
   25849 	call	__tls_get_addr, %tldm_call(foo)
   25850 	sethi	%tldo_hix22(foo), %l3
   25851 	xor	%l3, %tldo_lox10(foo), %l4
   25852 	add	%o0, %l4, %l5, %tldo_add(foo)
   25853 	sethi	%tie_hi22(foo), %o3
   25854 	add	%o3, %tie_lo10(foo), %o3
   25855 	ld	[%l7 + %o3], %o2, %tie_ld(foo)
   25856 	add	%g7, %o2, %o4, %tie_add(foo)
   25857 	sethi	%tle_hix22(foo), %l1
   25858 	xor	%l1, %tle_lox10(foo), %o5
   25859 	ld	[%g7 + %o5], %o1"
   25860 	;;
   25861   tilepro*-*-*)
   25862       conftest_s='
   25863 	.section ".tdata","awT",@progbits
   25864 foo:	.long	25
   25865 	.text
   25866 	addli	r0, zero, tls_gd(foo)
   25867 	auli	r0, zero, tls_gd_ha16(foo)
   25868 	addli	r0, r0, tls_gd_lo16(foo)
   25869 	jal	__tls_get_addr
   25870 	addli	r0, zero, tls_ie(foo)
   25871 	auli	r0, r0, tls_ie_ha16(foo)
   25872 	addli	r0, r0, tls_ie_lo16(foo)'
   25873 	tls_as_opt="--fatal-warnings"
   25874 	;;
   25875   tilegx*-*-*)
   25876       conftest_s='
   25877 	.section ".tdata","awT",@progbits
   25878 foo:	.long	25
   25879 	.text
   25880 	shl16insli r0, zero, hw0_last_tls_gd(foo)
   25881 	shl16insli r0, zero, hw1_last_tls_gd(foo)
   25882 	shl16insli r0, r0,   hw0_tls_gd(foo)
   25883 	jal	   __tls_get_addr
   25884 	shl16insli r0, zero, hw1_last_tls_ie(foo)
   25885 	shl16insli r0, r0,   hw0_tls_ie(foo)'
   25886 	tls_as_opt="--fatal-warnings"
   25887 	;;
   25888   xtensa*-*-*)
   25889     conftest_s='
   25890 	.section ".tdata","awT",@progbits
   25891 foo:	.long	25
   25892 	.text
   25893 	movi	a8, foo@TLSFUNC
   25894 	movi	a10, foo@TLSARG
   25895 	callx8.tls a8, foo@TLSCALL'
   25896 	;;
   25897 esac
   25898 set_have_as_tls=no
   25899 if test "x$enable_tls" = xno ; then
   25900   : # TLS explicitly disabled.
   25901 elif test "x$enable_tls" = xyes ; then
   25902   set_have_as_tls=yes # TLS explicitly enabled.
   25903 elif test -z "$conftest_s"; then
   25904   : # If we don't have a check, assume no support.
   25905 else
   25906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
   25907 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
   25908 if ${gcc_cv_as_tls+:} false; then :
   25909   $as_echo_n "(cached) " >&6
   25910 else
   25911   gcc_cv_as_tls=no
   25912   if test x$gcc_cv_as != x; then
   25913     $as_echo "$conftest_s" > conftest.s
   25914     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
   25915   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25916   (eval $ac_try) 2>&5
   25917   ac_status=$?
   25918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25919   test $ac_status = 0; }; }
   25920     then
   25921 	gcc_cv_as_tls=yes
   25922     else
   25923       echo "configure: failed program was" >&5
   25924       cat conftest.s >&5
   25925     fi
   25926     rm -f conftest.o conftest.s
   25927   fi
   25928 fi
   25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
   25930 $as_echo "$gcc_cv_as_tls" >&6; }
   25931 if test $gcc_cv_as_tls = yes; then
   25932   set_have_as_tls=yes
   25933 fi
   25934 
   25935 fi
   25936 if test $set_have_as_tls = yes ; then
   25937 
   25938 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
   25939 
   25940 fi
   25941 
   25942 # Target-specific assembler checks.
   25943 
   25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
   25945 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
   25946 gcc_cv_ld_static_dynamic=no
   25947 gcc_cv_ld_static_option='-Bstatic'
   25948 gcc_cv_ld_dynamic_option='-Bdynamic'
   25949 if test $in_tree_ld = yes ; then
   25950   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
   25951     gcc_cv_ld_static_dynamic=yes
   25952   fi
   25953 elif test x$gcc_cv_ld != x; then
   25954   # Check if linker supports -Bstatic/-Bdynamic option
   25955   if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
   25956      && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
   25957       gcc_cv_ld_static_dynamic=yes
   25958   else
   25959     case "$target" in
   25960       # AIX ld uses -b flags
   25961       *-*-aix4.[23]* | *-*-aix[5-9]*)
   25962 	gcc_cv_ld_static_dynamic=yes
   25963 	gcc_cv_ld_static_option="-bstatic"
   25964 	gcc_cv_ld_dynamic_option="-bdynamic"
   25965 	;;
   25966       # HP-UX ld uses -a flags to select between shared and archive.
   25967       *-*-hpux*)
   25968 	if test x"$gnu_ld" = xno; then
   25969 	  gcc_cv_ld_static_dynamic=yes
   25970 	  gcc_cv_ld_static_option="-aarchive_shared"
   25971 	  gcc_cv_ld_dynamic_option="-adefault"
   25972 	fi
   25973 	;;
   25974       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
   25975       *-*-solaris2*)
   25976         gcc_cv_ld_static_dynamic=yes
   25977         ;;
   25978     esac
   25979   fi
   25980 fi
   25981 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
   25982 
   25983 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
   25984 
   25985 
   25986 cat >>confdefs.h <<_ACEOF
   25987 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
   25988 _ACEOF
   25989 
   25990 
   25991 cat >>confdefs.h <<_ACEOF
   25992 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
   25993 _ACEOF
   25994 
   25995 fi
   25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
   25997 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
   25998 
   25999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
   26000 $as_echo_n "checking linker --version-script option... " >&6; }
   26001 gcc_cv_ld_version_script=no
   26002 ld_version_script_option=''
   26003 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
   26004   gcc_cv_ld_version_script=yes
   26005   ld_version_script_option='--version-script'
   26006 elif test x$gcc_cv_ld != x; then
   26007   case "$target" in
   26008     # Solaris 2 ld always supports -M.  It also supports a subset of
   26009     # --version-script since Solaris 11.4, but requires
   26010     # -z gnu-version-script-compat to activate.
   26011     *-*-solaris2*)
   26012       gcc_cv_ld_version_script=yes
   26013       ld_version_script_option='-M'
   26014       ;;
   26015   esac
   26016 fi
   26017 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
   26018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
   26019 $as_echo "$gcc_cv_ld_version_script" >&6; }
   26020 
   26021 
   26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
   26023 $as_echo_n "checking linker soname option... " >&6; }
   26024 gcc_cv_ld_soname=no
   26025 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
   26026   gcc_cv_ld_soname=yes
   26027   ld_soname_option='-soname'
   26028 elif test x$gcc_cv_ld != x; then
   26029   case "$target" in
   26030     *-*-darwin*)
   26031       gcc_cv_ld_soname=yes
   26032       ld_soname_option='-install_name'
   26033       ;;
   26034     # Solaris 2 ld always supports -h.  It also supports --soname for GNU
   26035     # ld compatiblity since some Solaris 10 update.
   26036     *-*-solaris2*)
   26037       gcc_cv_ld_soname=yes
   26038       ld_soname_option='-h'
   26039       ;;
   26040   esac
   26041 fi
   26042 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
   26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
   26044 $as_echo "$gcc_cv_ld_soname" >&6; }
   26045 
   26046 
   26047 if test x"$demangler_in_ld" = xyes; then
   26048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
   26049 $as_echo_n "checking linker --demangle support... " >&6; }
   26050   gcc_cv_ld_demangle=no
   26051   if test $in_tree_ld = yes; then
   26052     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 \
   26053       gcc_cv_ld_demangle=yes
   26054     fi
   26055   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
   26056     # Check if the GNU linker supports --demangle option
   26057     if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
   26058       gcc_cv_ld_demangle=yes
   26059     fi
   26060   fi
   26061   if test x"$gcc_cv_ld_demangle" = xyes; then
   26062 
   26063 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
   26064 
   26065   fi
   26066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
   26067 $as_echo "$gcc_cv_ld_demangle" >&6; }
   26068 fi
   26069 
   26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
   26071 $as_echo_n "checking linker plugin support... " >&6; }
   26072 gcc_cv_lto_plugin=0
   26073 if test -f liblto_plugin.la; then
   26074   save_ld_ver="$ld_ver"
   26075   save_ld_vers_major="$ld_vers_major"
   26076   save_ld_vers_minor="$ld_vers_minor"
   26077   save_ld_is_gold="$ld_is_gold"
   26078 
   26079   ld_is_gold=no
   26080 
   26081   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
   26082     ld_ver="GNU ld"
   26083     # FIXME: ld_is_gold?
   26084     ld_vers_major="$gcc_cv_gld_major_version"
   26085     ld_vers_minor="$gcc_cv_gld_minor_version"
   26086   else
   26087     # Determine plugin linker version.
   26088     # FIXME: Partial duplicate from above, generalize.
   26089     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
   26090     if echo "$ld_ver" | grep GNU > /dev/null; then
   26091       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
   26092         ld_is_gold=yes
   26093         ld_vers=`echo $ld_ver | sed -n \
   26094     	    -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
   26095       else
   26096         ld_vers=`echo $ld_ver | sed -n \
   26097     	    -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
   26098       fi
   26099       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
   26100       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
   26101     fi
   26102   fi
   26103 
   26104   # Determine plugin support.
   26105   if echo "$ld_ver" | grep GNU > /dev/null; then
   26106     # Require GNU ld or gold 2.21+ for plugin support by default.
   26107     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
   26108       gcc_cv_lto_plugin=2
   26109     elif test "$ld_is_mold" = yes; then
   26110       gcc_cv_lto_plugin=2
   26111     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
   26112     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
   26113       gcc_cv_lto_plugin=1
   26114     fi
   26115   fi
   26116 
   26117   ld_ver="$save_ld_ver"
   26118   ld_vers_major="$save_ld_vers_major"
   26119   ld_vers_minor="$save_ld_vers_minor"
   26120   ld_is_gold="$save_ld_is_gold"
   26121 fi
   26122 
   26123 cat >>confdefs.h <<_ACEOF
   26124 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
   26125 _ACEOF
   26126 
   26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
   26128 $as_echo "$gcc_cv_lto_plugin" >&6; }
   26129 
   26130 # Target OS-specific assembler checks.
   26131 
   26132 case "$target_os" in
   26133   darwin*)
   26134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
   26135 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
   26136 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
   26137   $as_echo_n "(cached) " >&6
   26138 else
   26139   gcc_cv_as_mmacosx_version_min=no
   26140   if test x$gcc_cv_as != x; then
   26141     $as_echo '.text' > conftest.s
   26142     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
   26143   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26144   (eval $ac_try) 2>&5
   26145   ac_status=$?
   26146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26147   test $ac_status = 0; }; }
   26148     then
   26149 	gcc_cv_as_mmacosx_version_min=yes
   26150     else
   26151       echo "configure: failed program was" >&5
   26152       cat conftest.s >&5
   26153     fi
   26154     rm -f conftest.o conftest.s
   26155   fi
   26156 fi
   26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
   26158 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
   26159 if test $gcc_cv_as_mmacosx_version_min = yes; then
   26160 
   26161 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
   26162 
   26163 fi
   26164 
   26165     if test x$gcc_cv_as_mmacosx_version_min = "xyes"; then
   26166        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
   26167 $as_echo_n "checking assembler for .build_version... " >&6; }
   26168 if ${gcc_cv_as_darwin_build_version+:} false; then :
   26169   $as_echo_n "(cached) " >&6
   26170 else
   26171   gcc_cv_as_darwin_build_version=no
   26172   if test x$gcc_cv_as != x; then
   26173     $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
   26174     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
   26175   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26176   (eval $ac_try) 2>&5
   26177   ac_status=$?
   26178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26179   test $ac_status = 0; }; }
   26180     then
   26181 	gcc_cv_as_darwin_build_version=yes
   26182     else
   26183       echo "configure: failed program was" >&5
   26184       cat conftest.s >&5
   26185     fi
   26186     rm -f conftest.o conftest.s
   26187   fi
   26188 fi
   26189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
   26190 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
   26191 if test $gcc_cv_as_darwin_build_version = yes; then
   26192 
   26193 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
   26194 
   26195 fi
   26196 
   26197     fi
   26198     ;;
   26199 esac
   26200 
   26201 # Target CPU-specific assembler checks.
   26202 
   26203 case "$target" in
   26204   aarch64*-*-*)
   26205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
   26206 $as_echo_n "checking assembler for -mabi option... " >&6; }
   26207 if ${gcc_cv_as_aarch64_mabi+:} false; then :
   26208   $as_echo_n "(cached) " >&6
   26209 else
   26210   gcc_cv_as_aarch64_mabi=no
   26211   if test x$gcc_cv_as != x; then
   26212     $as_echo '.text' > conftest.s
   26213     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
   26214   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26215   (eval $ac_try) 2>&5
   26216   ac_status=$?
   26217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26218   test $ac_status = 0; }; }
   26219     then
   26220 	gcc_cv_as_aarch64_mabi=yes
   26221     else
   26222       echo "configure: failed program was" >&5
   26223       cat conftest.s >&5
   26224     fi
   26225     rm -f conftest.o conftest.s
   26226   fi
   26227 fi
   26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
   26229 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
   26230 
   26231 
   26232     if test x$gcc_cv_as_aarch64_mabi = xyes; then
   26233 
   26234 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
   26235 
   26236     else
   26237       if test x$with_abi = xilp32; then
   26238         as_fn_error $? "Assembler does not support -mabi=ilp32.\
   26239                      Upgrade the Assembler." "$LINENO" 5
   26240       fi
   26241       if test x"$with_multilib_list" = xdefault; then
   26242         TM_MULTILIB_CONFIG=lp64
   26243       else
   26244         aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
   26245         for aarch64_multilib in ${aarch64_multilibs}; do
   26246           case ${aarch64_multilib} in
   26247             ilp32)
   26248               as_fn_error $? "Assembler does not support -mabi=ilp32.\
   26249                             Upgrade the Assembler." "$LINENO" 5
   26250               ;;
   26251             *)
   26252               ;;
   26253           esac
   26254         done
   26255       fi
   26256     fi
   26257     # Check if we have binutils support for relocations types needed by -fpic
   26258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
   26259 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
   26260 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
   26261   $as_echo_n "(cached) " >&6
   26262 else
   26263   gcc_cv_as_aarch64_picreloc=no
   26264   if test x$gcc_cv_as != x; then
   26265     $as_echo '
   26266 	.text
   26267 	ldr     x0, [x2, #:gotpage_lo15:globalsym]
   26268     ' > conftest.s
   26269     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   26270   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26271   (eval $ac_try) 2>&5
   26272   ac_status=$?
   26273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26274   test $ac_status = 0; }; }
   26275     then
   26276 	gcc_cv_as_aarch64_picreloc=yes
   26277     else
   26278       echo "configure: failed program was" >&5
   26279       cat conftest.s >&5
   26280     fi
   26281     rm -f conftest.o conftest.s
   26282   fi
   26283 fi
   26284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
   26285 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
   26286 if test $gcc_cv_as_aarch64_picreloc = yes; then
   26287 
   26288 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
   26289 
   26290 fi
   26291 
   26292     # Enable Branch Target Identification Mechanism and Return Address
   26293     # Signing by default.
   26294     # Check whether --enable-standard-branch-protection was given.
   26295 if test "${enable_standard_branch_protection+set}" = set; then :
   26296   enableval=$enable_standard_branch_protection;
   26297         case $enableval in
   26298           yes)
   26299             tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
   26300             ;;
   26301           no)
   26302             ;;
   26303           *)
   26304             as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
   26305   Valid choices are 'yes' and 'no'." "$LINENO" 5
   26306             ;;
   26307         esac
   26308 
   26309 fi
   26310 
   26311     # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
   26312     # Check whether --enable-fix-cortex-a53-835769 was given.
   26313 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
   26314   enableval=$enable_fix_cortex_a53_835769;
   26315         case $enableval in
   26316           yes)
   26317             tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
   26318             ;;
   26319           no)
   26320             ;;
   26321           *)
   26322             as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
   26323   Valid choices are 'yes' and 'no'." "$LINENO" 5
   26324             ;;
   26325 
   26326         esac
   26327 
   26328 fi
   26329 
   26330     # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
   26331     # Check whether --enable-fix-cortex-a53-843419 was given.
   26332 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
   26333   enableval=$enable_fix_cortex_a53_843419;
   26334         case $enableval in
   26335           yes)
   26336             tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
   26337             ;;
   26338           no)
   26339             ;;
   26340           *)
   26341             as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
   26342   Valid choices are 'yes' and 'no'." "$LINENO" 5
   26343             ;;
   26344 
   26345         esac
   26346 
   26347 fi
   26348 
   26349     ;;
   26350 
   26351   # All TARGET_ABI_OSF targets.
   26352   alpha*-*-linux* | alpha*-*-*bsd*)
   26353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
   26354 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
   26355 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
   26356   $as_echo_n "(cached) " >&6
   26357 else
   26358   gcc_cv_as_alpha_explicit_relocs=no
   26359   if test x$gcc_cv_as != x; then
   26360     $as_echo '	.set nomacro
   26361 	.text
   26362 	extbl	$3, $2, $3	!lituse_bytoff!1
   26363 	ldq	$2, a($29)	!literal!1
   26364 	ldq	$4, b($29)	!literal!2
   26365 	ldq_u	$3, 0($2)	!lituse_base!1
   26366 	ldq	$27, f($29)	!literal!5
   26367 	jsr	$26, ($27), f	!lituse_jsr!5
   26368 	ldah	$29, 0($26)	!gpdisp!3
   26369 	lda	$0, c($29)	!gprel
   26370 	ldah	$1, d($29)	!gprelhigh
   26371 	lda	$1, d($1)	!gprellow
   26372 	lda	$29, 0($29)	!gpdisp!3' > conftest.s
   26373     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   26374   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26375   (eval $ac_try) 2>&5
   26376   ac_status=$?
   26377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26378   test $ac_status = 0; }; }
   26379     then
   26380 	gcc_cv_as_alpha_explicit_relocs=yes
   26381     else
   26382       echo "configure: failed program was" >&5
   26383       cat conftest.s >&5
   26384     fi
   26385     rm -f conftest.o conftest.s
   26386   fi
   26387 fi
   26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
   26389 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
   26390 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
   26391 
   26392 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
   26393 
   26394 fi
   26395 
   26396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
   26397 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
   26398 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
   26399   $as_echo_n "(cached) " >&6
   26400 else
   26401   gcc_cv_as_alpha_jsrdirect_relocs=no
   26402   if test x$gcc_cv_as != x; then
   26403     $as_echo '	.set nomacro
   26404 	.text
   26405 	ldq	$27, a($29)	!literal!1
   26406 	jsr	$26, ($27), a	!lituse_jsrdirect!1' > conftest.s
   26407     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   26408   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26409   (eval $ac_try) 2>&5
   26410   ac_status=$?
   26411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26412   test $ac_status = 0; }; }
   26413     then
   26414 	gcc_cv_as_alpha_jsrdirect_relocs=yes
   26415     else
   26416       echo "configure: failed program was" >&5
   26417       cat conftest.s >&5
   26418     fi
   26419     rm -f conftest.o conftest.s
   26420   fi
   26421 fi
   26422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
   26423 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
   26424 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
   26425 
   26426 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
   26427 
   26428 fi
   26429 
   26430     ;;
   26431 
   26432   avr-*-*)
   26433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
   26434 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
   26435 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
   26436   $as_echo_n "(cached) " >&6
   26437 else
   26438   gcc_cv_as_avr_mlink_relax=no
   26439   if test x$gcc_cv_as != x; then
   26440     $as_echo '.text' > conftest.s
   26441     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
   26442   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26443   (eval $ac_try) 2>&5
   26444   ac_status=$?
   26445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26446   test $ac_status = 0; }; }
   26447     then
   26448 	gcc_cv_as_avr_mlink_relax=yes
   26449     else
   26450       echo "configure: failed program was" >&5
   26451       cat conftest.s >&5
   26452     fi
   26453     rm -f conftest.o conftest.s
   26454   fi
   26455 fi
   26456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
   26457 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
   26458 if test $gcc_cv_as_avr_mlink_relax = yes; then
   26459 
   26460 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
   26461 
   26462 fi
   26463 
   26464 
   26465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
   26466 $as_echo_n "checking assembler for -mrmw option... " >&6; }
   26467 if ${gcc_cv_as_avr_mrmw+:} false; then :
   26468   $as_echo_n "(cached) " >&6
   26469 else
   26470   gcc_cv_as_avr_mrmw=no
   26471   if test x$gcc_cv_as != x; then
   26472     $as_echo '.text' > conftest.s
   26473     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
   26474   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26475   (eval $ac_try) 2>&5
   26476   ac_status=$?
   26477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26478   test $ac_status = 0; }; }
   26479     then
   26480 	gcc_cv_as_avr_mrmw=yes
   26481     else
   26482       echo "configure: failed program was" >&5
   26483       cat conftest.s >&5
   26484     fi
   26485     rm -f conftest.o conftest.s
   26486   fi
   26487 fi
   26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
   26489 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
   26490 if test $gcc_cv_as_avr_mrmw = yes; then
   26491 
   26492 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
   26493 
   26494 fi
   26495 
   26496 
   26497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
   26498 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
   26499 if ${gcc_cv_as_avr_mgccisr+:} false; then :
   26500   $as_echo_n "(cached) " >&6
   26501 else
   26502   gcc_cv_as_avr_mgccisr=no
   26503   if test x$gcc_cv_as != x; then
   26504     $as_echo '.text
   26505       		    __gcc_isr 1
   26506       		    __gcc_isr 2
   26507       		    __gcc_isr 0,r24
   26508       		   ' > conftest.s
   26509     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
   26510   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26511   (eval $ac_try) 2>&5
   26512   ac_status=$?
   26513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26514   test $ac_status = 0; }; }
   26515     then
   26516 	gcc_cv_as_avr_mgccisr=yes
   26517     else
   26518       echo "configure: failed program was" >&5
   26519       cat conftest.s >&5
   26520     fi
   26521     rm -f conftest.o conftest.s
   26522   fi
   26523 fi
   26524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
   26525 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
   26526 if test $gcc_cv_as_avr_mgccisr = yes; then
   26527 
   26528 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
   26529 
   26530 fi
   26531 
   26532 
   26533     # Check how default linker description file implements .rodata for
   26534     # avrxmega3 (PR21472).  avr-gcc assumes .rodata is *not* loaded to
   26535     # RAM so avr-gcc skips __do_copy_data for .rodata objects.
   26536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
   26537 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
   26538     cat > conftest.s <<EOF
   26539         .section .rodata,"a",@progbits
   26540         .global xxvaryy
   26541     ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
   26542     xxvaryy:
   26543         .word 1
   26544 EOF
   26545     rm -f conftest.nm
   26546     { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
   26547   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26548   (eval $ac_try) 2>&5
   26549   ac_status=$?
   26550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26551   test $ac_status = 0; }; }
   26552     { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
   26553   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26554   (eval $ac_try) 2>&5
   26555   ac_status=$?
   26556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26557   test $ac_status = 0; }; }
   26558     { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
   26559   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26560   (eval $ac_try) 2>&5
   26561   ac_status=$?
   26562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26563   test $ac_status = 0; }; }
   26564     if test -s conftest.nm
   26565     then
   26566 	if grep ' R xxvaryy' conftest.nm > /dev/null; then
   26567 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   26568 $as_echo "yes" >&6; }
   26569 
   26570 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
   26571 
   26572 	else
   26573 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
   26574 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
   26575 	    echo "$as_me: nm output was" >&5
   26576 	    cat conftest.nm >&5
   26577 	    avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
   26578 	    { $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
   26579 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
   26580 	fi
   26581     else
   26582 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
   26583 $as_echo "test failed" >&6; }
   26584 	echo "$as_me: failed program was" >&5
   26585 	cat conftest.s >&5
   26586 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
   26587 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
   26588     fi
   26589     rm -f conftest.s conftest.o conftest.elf conftest.nm
   26590     ;;
   26591 
   26592   cris-*-*)
   26593     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
   26594 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
   26595 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
   26596   $as_echo_n "(cached) " >&6
   26597 else
   26598   gcc_cv_as_cris_no_mul_bug=no
   26599   if test x$gcc_cv_as != x; then
   26600     $as_echo '.text' > conftest.s
   26601     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
   26602   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26603   (eval $ac_try) 2>&5
   26604   ac_status=$?
   26605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26606   test $ac_status = 0; }; }
   26607     then
   26608 	gcc_cv_as_cris_no_mul_bug=yes
   26609     else
   26610       echo "configure: failed program was" >&5
   26611       cat conftest.s >&5
   26612     fi
   26613     rm -f conftest.o conftest.s
   26614   fi
   26615 fi
   26616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
   26617 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
   26618 if test $gcc_cv_as_cris_no_mul_bug = yes; then
   26619 
   26620 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
   26621 
   26622 fi
   26623 
   26624     ;;
   26625 
   26626   sparc*-*-*)
   26627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
   26628 $as_echo_n "checking assembler for -relax option... " >&6; }
   26629 if ${gcc_cv_as_sparc_relax+:} false; then :
   26630   $as_echo_n "(cached) " >&6
   26631 else
   26632   gcc_cv_as_sparc_relax=no
   26633   if test x$gcc_cv_as != x; then
   26634     $as_echo '.text' > conftest.s
   26635     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
   26636   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26637   (eval $ac_try) 2>&5
   26638   ac_status=$?
   26639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26640   test $ac_status = 0; }; }
   26641     then
   26642 	gcc_cv_as_sparc_relax=yes
   26643     else
   26644       echo "configure: failed program was" >&5
   26645       cat conftest.s >&5
   26646     fi
   26647     rm -f conftest.o conftest.s
   26648   fi
   26649 fi
   26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
   26651 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
   26652 if test $gcc_cv_as_sparc_relax = yes; then
   26653 
   26654 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
   26655 
   26656 fi
   26657 
   26658 
   26659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
   26660 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
   26661 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
   26662   $as_echo_n "(cached) " >&6
   26663 else
   26664   gcc_cv_as_sparc_gotdata_op=no
   26665   if test x$gcc_cv_as != x; then
   26666     $as_echo '.text
   26667 .align 4
   26668 foo:
   26669 	nop
   26670 bar:
   26671 	sethi %gdop_hix22(foo), %g1
   26672 	xor    %g1, %gdop_lox10(foo), %g1
   26673 	ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
   26674     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
   26675   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26676   (eval $ac_try) 2>&5
   26677   ac_status=$?
   26678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26679   test $ac_status = 0; }; }
   26680     then
   26681 	if test x$gcc_cv_ld != x \
   26682        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
   26683          if test x$gcc_cv_objdump != x; then
   26684            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
   26685               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
   26686 	       gcc_cv_as_sparc_gotdata_op=no
   26687            else
   26688 	       gcc_cv_as_sparc_gotdata_op=yes
   26689            fi
   26690          fi
   26691        fi
   26692        rm -f conftest
   26693     else
   26694       echo "configure: failed program was" >&5
   26695       cat conftest.s >&5
   26696     fi
   26697     rm -f conftest.o conftest.s
   26698   fi
   26699 fi
   26700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
   26701 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
   26702 if test $gcc_cv_as_sparc_gotdata_op = yes; then
   26703 
   26704 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
   26705 
   26706 fi
   26707 
   26708 
   26709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
   26710 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
   26711 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
   26712   $as_echo_n "(cached) " >&6
   26713 else
   26714   gcc_cv_as_sparc_ua_pcrel=no
   26715   if test x$gcc_cv_as != x; then
   26716     $as_echo '.text
   26717 foo:
   26718 	nop
   26719 .data
   26720 .align 4
   26721 .byte 0
   26722 .uaword %r_disp32(foo)' > conftest.s
   26723     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
   26724   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26725   (eval $ac_try) 2>&5
   26726   ac_status=$?
   26727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26728   test $ac_status = 0; }; }
   26729     then
   26730 	if test x$gcc_cv_ld != x \
   26731        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
   26732 	 gcc_cv_as_sparc_ua_pcrel=yes
   26733        fi
   26734        rm -f conftest
   26735     else
   26736       echo "configure: failed program was" >&5
   26737       cat conftest.s >&5
   26738     fi
   26739     rm -f conftest.o conftest.s
   26740   fi
   26741 fi
   26742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
   26743 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
   26744 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
   26745 
   26746 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
   26747 
   26748 
   26749       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
   26750 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
   26751 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
   26752   $as_echo_n "(cached) " >&6
   26753 else
   26754   gcc_cv_as_sparc_ua_pcrel_hidden=no
   26755   if test x$gcc_cv_as != x; then
   26756     $as_echo '.data
   26757 .align 4
   26758 .byte 0x31
   26759 .uaword %r_disp32(foo)
   26760 .byte 0x32, 0x33, 0x34
   26761 .global foo
   26762 .hidden foo
   26763 foo:
   26764 .skip 4' > conftest.s
   26765     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
   26766   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26767   (eval $ac_try) 2>&5
   26768   ac_status=$?
   26769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26770   test $ac_status = 0; }; }
   26771     then
   26772 	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
   26773 	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
   26774 	 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
   26775 	    | grep ' 31000000 07323334' > /dev/null 2>&1; then
   26776 	    if $gcc_cv_objdump -R conftest 2> /dev/null \
   26777 	       | grep 'DISP32' > /dev/null 2>&1; then
   26778 		:
   26779 	    else
   26780 		gcc_cv_as_sparc_ua_pcrel_hidden=yes
   26781 	    fi
   26782 	 fi
   26783 	 rm -f conftest
   26784     else
   26785       echo "configure: failed program was" >&5
   26786       cat conftest.s >&5
   26787     fi
   26788     rm -f conftest.o conftest.s
   26789   fi
   26790 fi
   26791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
   26792 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
   26793 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
   26794 
   26795 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
   26796 
   26797 fi
   26798 
   26799 
   26800 fi
   26801  # unaligned pcrel relocs
   26802 
   26803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
   26804 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
   26805 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
   26806   $as_echo_n "(cached) " >&6
   26807 else
   26808   gcc_cv_as_sparc_offsetable_lo10=no
   26809   if test x$gcc_cv_as != x; then
   26810     $as_echo '.text
   26811 	or %g1, %lo(ab) + 12, %g1
   26812 	or %g1, %lo(ab + 12), %g1' > conftest.s
   26813     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
   26814   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26815   (eval $ac_try) 2>&5
   26816   ac_status=$?
   26817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26818   test $ac_status = 0; }; }
   26819     then
   26820 	if test x$gcc_cv_objdump != x \
   26821        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
   26822           | grep ' 82106000 82106000' > /dev/null 2>&1; then
   26823 	 gcc_cv_as_sparc_offsetable_lo10=yes
   26824        fi
   26825     else
   26826       echo "configure: failed program was" >&5
   26827       cat conftest.s >&5
   26828     fi
   26829     rm -f conftest.o conftest.s
   26830   fi
   26831 fi
   26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
   26833 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
   26834 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
   26835 
   26836 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
   26837 
   26838 fi
   26839 
   26840 
   26841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
   26842 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
   26843 if ${gcc_cv_as_sparc_fmaf+:} false; then :
   26844   $as_echo_n "(cached) " >&6
   26845 else
   26846   gcc_cv_as_sparc_fmaf=no
   26847   if test x$gcc_cv_as != x; then
   26848     $as_echo '.text
   26849        .register %g2, #scratch
   26850        .register %g3, #scratch
   26851        .align 4
   26852        fmaddd %f0, %f2, %f4, %f6
   26853        addxccc %g1, %g2, %g3
   26854        fsrl32 %f2, %f4, %f8
   26855        fnaddd %f10, %f12, %f14' > conftest.s
   26856     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
   26857   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26858   (eval $ac_try) 2>&5
   26859   ac_status=$?
   26860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26861   test $ac_status = 0; }; }
   26862     then
   26863 	gcc_cv_as_sparc_fmaf=yes
   26864     else
   26865       echo "configure: failed program was" >&5
   26866       cat conftest.s >&5
   26867     fi
   26868     rm -f conftest.o conftest.s
   26869   fi
   26870 fi
   26871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
   26872 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
   26873 if test $gcc_cv_as_sparc_fmaf = yes; then
   26874 
   26875 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
   26876 
   26877 fi
   26878 
   26879 
   26880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
   26881 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
   26882 if ${gcc_cv_as_sparc_sparc4+:} false; then :
   26883   $as_echo_n "(cached) " >&6
   26884 else
   26885   gcc_cv_as_sparc_sparc4=no
   26886   if test x$gcc_cv_as != x; then
   26887     $as_echo '.text
   26888        .register %g2, #scratch
   26889        .register %g3, #scratch
   26890        .align 4
   26891        cxbe %g2, %g3, 1f
   26892 1:     cwbneg %g2, %g3, 1f
   26893 1:     sha1
   26894        md5
   26895        aes_kexpand0 %f4, %f6, %f8
   26896        des_round %f38, %f40, %f42, %f44
   26897        camellia_f %f54, %f56, %f58, %f60
   26898        kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
   26899     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
   26900   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26901   (eval $ac_try) 2>&5
   26902   ac_status=$?
   26903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26904   test $ac_status = 0; }; }
   26905     then
   26906 	gcc_cv_as_sparc_sparc4=yes
   26907     else
   26908       echo "configure: failed program was" >&5
   26909       cat conftest.s >&5
   26910     fi
   26911     rm -f conftest.o conftest.s
   26912   fi
   26913 fi
   26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
   26915 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
   26916 if test $gcc_cv_as_sparc_sparc4 = yes; then
   26917 
   26918 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
   26919 
   26920 fi
   26921 
   26922 
   26923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
   26924 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
   26925 if ${gcc_cv_as_sparc_sparc5+:} false; then :
   26926   $as_echo_n "(cached) " >&6
   26927 else
   26928   gcc_cv_as_sparc_sparc5=no
   26929   if test x$gcc_cv_as != x; then
   26930     $as_echo '.text
   26931        .register %g2, #scratch
   26932        .register %g3, #scratch
   26933        .align 4
   26934        subxc %g1, %g2, %g3
   26935        fpadd8 %f0, %f2, %f4' > conftest.s
   26936     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
   26937   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26938   (eval $ac_try) 2>&5
   26939   ac_status=$?
   26940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26941   test $ac_status = 0; }; }
   26942     then
   26943 	gcc_cv_as_sparc_sparc5=yes
   26944     else
   26945       echo "configure: failed program was" >&5
   26946       cat conftest.s >&5
   26947     fi
   26948     rm -f conftest.o conftest.s
   26949   fi
   26950 fi
   26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
   26952 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
   26953 if test $gcc_cv_as_sparc_sparc5 = yes; then
   26954 
   26955 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
   26956 
   26957 fi
   26958 
   26959 
   26960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
   26961 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
   26962 if ${gcc_cv_as_sparc_sparc6+:} false; then :
   26963   $as_echo_n "(cached) " >&6
   26964 else
   26965   gcc_cv_as_sparc_sparc6=no
   26966   if test x$gcc_cv_as != x; then
   26967     $as_echo '.text
   26968        .register %g2, #scratch
   26969        .register %g3, #scratch
   26970        .align 4
   26971        rd %entropy, %g1
   26972        fpsll64x %f0, %f2, %f4' > conftest.s
   26973     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
   26974   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26975   (eval $ac_try) 2>&5
   26976   ac_status=$?
   26977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26978   test $ac_status = 0; }; }
   26979     then
   26980 	gcc_cv_as_sparc_sparc6=yes
   26981     else
   26982       echo "configure: failed program was" >&5
   26983       cat conftest.s >&5
   26984     fi
   26985     rm -f conftest.o conftest.s
   26986   fi
   26987 fi
   26988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
   26989 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
   26990 if test $gcc_cv_as_sparc_sparc6 = yes; then
   26991 
   26992 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
   26993 
   26994 fi
   26995 
   26996 
   26997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
   26998 $as_echo_n "checking assembler for LEON instructions... " >&6; }
   26999 if ${gcc_cv_as_sparc_leon+:} false; then :
   27000   $as_echo_n "(cached) " >&6
   27001 else
   27002   gcc_cv_as_sparc_leon=no
   27003   if test x$gcc_cv_as != x; then
   27004     $as_echo '.text
   27005        .register %g2, #scratch
   27006        .register %g3, #scratch
   27007        .align 4
   27008        smac %g2, %g3, %g1
   27009        umac %g2, %g3, %g1
   27010        casa [%g2] 0xb, %g3, %g1' > conftest.s
   27011     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
   27012   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27013   (eval $ac_try) 2>&5
   27014   ac_status=$?
   27015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27016   test $ac_status = 0; }; }
   27017     then
   27018 	gcc_cv_as_sparc_leon=yes
   27019     else
   27020       echo "configure: failed program was" >&5
   27021       cat conftest.s >&5
   27022     fi
   27023     rm -f conftest.o conftest.s
   27024   fi
   27025 fi
   27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
   27027 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
   27028 if test $gcc_cv_as_sparc_leon = yes; then
   27029 
   27030 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
   27031 
   27032 fi
   27033 
   27034     ;;
   27035 
   27036   i[34567]86-*-* | x86_64-*-*)
   27037     case $target_os in
   27038       cygwin*)
   27039 	# Full C++ conformance when using a shared libstdc++-v3 requires some
   27040 	# support from the Cygwin DLL, which in more recent versions exports
   27041 	# wrappers to aid in interposing and redirecting operators new, delete,
   27042 	# etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
   27043 	# are configuring for a version of Cygwin that exports the wrappers.
   27044 	if test x$host = x$target && test x$host_cpu = xi686; then
   27045 	  ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
   27046 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
   27047   gcc_ac_cygwin_dll_wrappers=yes
   27048 else
   27049   gcc_ac_cygwin_dll_wrappers=no
   27050 fi
   27051 
   27052 	else
   27053 	  # Can't check presence of libc functions during cross-compile, so
   27054 	  # we just have to assume we're building for an up-to-date target.
   27055 	  gcc_ac_cygwin_dll_wrappers=yes
   27056 	fi
   27057 
   27058 cat >>confdefs.h <<_ACEOF
   27059 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
   27060 _ACEOF
   27061 
   27062     esac
   27063     case $target_os in
   27064       cygwin* | pe | mingw32*)
   27065 	# Recent binutils allows the three-operand form of ".comm" on PE.  This
   27066 	# definition is used unconditionally to initialise the default state of
   27067 	# the target option variable that governs usage of the feature.
   27068 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
   27069 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
   27070 if ${gcc_cv_as_comm_has_align+:} false; then :
   27071   $as_echo_n "(cached) " >&6
   27072 else
   27073   gcc_cv_as_comm_has_align=no
   27074   if test x$gcc_cv_as != x; then
   27075     $as_echo '.comm foo,1,32' > conftest.s
   27076     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27077   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27078   (eval $ac_try) 2>&5
   27079   ac_status=$?
   27080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27081   test $ac_status = 0; }; }
   27082     then
   27083 	gcc_cv_as_comm_has_align=yes
   27084     else
   27085       echo "configure: failed program was" >&5
   27086       cat conftest.s >&5
   27087     fi
   27088     rm -f conftest.o conftest.s
   27089   fi
   27090 fi
   27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
   27092 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
   27093 
   27094 
   27095 
   27096 cat >>confdefs.h <<_ACEOF
   27097 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
   27098 _ACEOF
   27099 
   27100 	# Used for DWARF 2 in PE
   27101 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
   27102 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
   27103 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
   27104   $as_echo_n "(cached) " >&6
   27105 else
   27106   gcc_cv_as_ix86_pe_secrel32=no
   27107   if test x$gcc_cv_as != x; then
   27108     $as_echo '.text
   27109 foo:	nop
   27110 .data
   27111 	.secrel32 foo' > conftest.s
   27112     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27113   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27114   (eval $ac_try) 2>&5
   27115   ac_status=$?
   27116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27117   test $ac_status = 0; }; }
   27118     then
   27119 	if test x$gcc_cv_ld != x \
   27120 	   && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
   27121 	     gcc_cv_as_ix86_pe_secrel32=yes
   27122 	   fi
   27123 	   rm -f conftest
   27124     else
   27125       echo "configure: failed program was" >&5
   27126       cat conftest.s >&5
   27127     fi
   27128     rm -f conftest.o conftest.s
   27129   fi
   27130 fi
   27131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
   27132 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
   27133 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
   27134 
   27135 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
   27136 
   27137 fi
   27138 
   27139 	# Test if the assembler supports the extended form of the .section
   27140 	# directive that specifies section alignment.  LTO support uses this,
   27141 	# but normally only after installation, so we warn but don't fail the
   27142 	# configure if LTO is enabled but the assembler does not support it.
   27143 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
   27144 $as_echo_n "checking assembler for .section with alignment... " >&6; }
   27145 if ${gcc_cv_as_section_has_align+:} false; then :
   27146   $as_echo_n "(cached) " >&6
   27147 else
   27148   gcc_cv_as_section_has_align=no
   27149   if test x$gcc_cv_as != x; then
   27150     $as_echo '.section lto_test,"dr0"' > conftest.s
   27151     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
   27152   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27153   (eval $ac_try) 2>&5
   27154   ac_status=$?
   27155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27156   test $ac_status = 0; }; }
   27157     then
   27158 	gcc_cv_as_section_has_align=yes
   27159     else
   27160       echo "configure: failed program was" >&5
   27161       cat conftest.s >&5
   27162     fi
   27163     rm -f conftest.o conftest.s
   27164   fi
   27165 fi
   27166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
   27167 $as_echo "$gcc_cv_as_section_has_align" >&6; }
   27168 
   27169 
   27170 	if test x$gcc_cv_as_section_has_align != xyes; then
   27171 	  case ",$enable_languages," in
   27172 	    *,lto,*)
   27173 	      { $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
   27174 $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;}
   27175 	      ;;
   27176 	  esac
   27177 	fi
   27178 	;;
   27179     esac
   27180     case $target_os in
   27181        darwin2* | darwin19*)
   27182         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
   27183 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
   27184 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
   27185   $as_echo_n "(cached) " >&6
   27186 else
   27187   gcc_cv_as_mllvm_x86_pad_for_align=no
   27188   if test x$gcc_cv_as != x; then
   27189     $as_echo '.text' > conftest.s
   27190     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
   27191   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27192   (eval $ac_try) 2>&5
   27193   ac_status=$?
   27194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27195   test $ac_status = 0; }; }
   27196     then
   27197 	gcc_cv_as_mllvm_x86_pad_for_align=yes
   27198     else
   27199       echo "configure: failed program was" >&5
   27200       cat conftest.s >&5
   27201     fi
   27202     rm -f conftest.o conftest.s
   27203   fi
   27204 fi
   27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
   27206 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
   27207 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
   27208 
   27209 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
   27210 
   27211 fi
   27212 
   27213        ;;
   27214     esac
   27215 
   27216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
   27217 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
   27218 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
   27219   $as_echo_n "(cached) " >&6
   27220 else
   27221   gcc_cv_as_ix86_xbrace_comment=no
   27222   if test x$gcc_cv_as != x; then
   27223     $as_echo '.text' > conftest.s
   27224     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
   27225   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27226   (eval $ac_try) 2>&5
   27227   ac_status=$?
   27228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27229   test $ac_status = 0; }; }
   27230     then
   27231 	gcc_cv_as_ix86_xbrace_comment=yes
   27232     else
   27233       echo "configure: failed program was" >&5
   27234       cat conftest.s >&5
   27235     fi
   27236     rm -f conftest.o conftest.s
   27237   fi
   27238 fi
   27239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
   27240 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
   27241 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
   27242 
   27243 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
   27244 
   27245 fi
   27246 
   27247 
   27248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
   27249 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
   27250 if ${gcc_cv_as_ix86_filds+:} false; then :
   27251   $as_echo_n "(cached) " >&6
   27252 else
   27253   gcc_cv_as_ix86_filds=no
   27254   if test x$gcc_cv_as != x; then
   27255     $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
   27256     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27257   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27258   (eval $ac_try) 2>&5
   27259   ac_status=$?
   27260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27261   test $ac_status = 0; }; }
   27262     then
   27263 	gcc_cv_as_ix86_filds=yes
   27264     else
   27265       echo "configure: failed program was" >&5
   27266       cat conftest.s >&5
   27267     fi
   27268     rm -f conftest.o conftest.s
   27269   fi
   27270 fi
   27271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
   27272 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
   27273 if test $gcc_cv_as_ix86_filds = yes; then
   27274 
   27275 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
   27276 
   27277 fi
   27278 
   27279 
   27280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
   27281 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
   27282 if ${gcc_cv_as_ix86_fildq+:} false; then :
   27283   $as_echo_n "(cached) " >&6
   27284 else
   27285   gcc_cv_as_ix86_fildq=no
   27286   if test x$gcc_cv_as != x; then
   27287     $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
   27288     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27289   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27290   (eval $ac_try) 2>&5
   27291   ac_status=$?
   27292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27293   test $ac_status = 0; }; }
   27294     then
   27295 	gcc_cv_as_ix86_fildq=yes
   27296     else
   27297       echo "configure: failed program was" >&5
   27298       cat conftest.s >&5
   27299     fi
   27300     rm -f conftest.o conftest.s
   27301   fi
   27302 fi
   27303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
   27304 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
   27305 if test $gcc_cv_as_ix86_fildq = yes; then
   27306 
   27307 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
   27308 
   27309 fi
   27310 
   27311 
   27312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
   27313 $as_echo_n "checking assembler for cmov syntax... " >&6; }
   27314 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
   27315   $as_echo_n "(cached) " >&6
   27316 else
   27317   gcc_cv_as_ix86_cmov_sun_syntax=no
   27318   if test x$gcc_cv_as != x; then
   27319     $as_echo 'cmovl.l %edx, %eax' > conftest.s
   27320     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27321   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27322   (eval $ac_try) 2>&5
   27323   ac_status=$?
   27324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27325   test $ac_status = 0; }; }
   27326     then
   27327 	gcc_cv_as_ix86_cmov_sun_syntax=yes
   27328     else
   27329       echo "configure: failed program was" >&5
   27330       cat conftest.s >&5
   27331     fi
   27332     rm -f conftest.o conftest.s
   27333   fi
   27334 fi
   27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
   27336 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
   27337 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
   27338 
   27339 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
   27340 
   27341 fi
   27342 
   27343 
   27344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
   27345 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
   27346 if ${gcc_cv_as_ix86_ffreep+:} false; then :
   27347   $as_echo_n "(cached) " >&6
   27348 else
   27349   gcc_cv_as_ix86_ffreep=no
   27350   if test x$gcc_cv_as != x; then
   27351     $as_echo 'ffreep %st(1)' > conftest.s
   27352     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27353   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27354   (eval $ac_try) 2>&5
   27355   ac_status=$?
   27356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27357   test $ac_status = 0; }; }
   27358     then
   27359 	gcc_cv_as_ix86_ffreep=yes
   27360     else
   27361       echo "configure: failed program was" >&5
   27362       cat conftest.s >&5
   27363     fi
   27364     rm -f conftest.o conftest.s
   27365   fi
   27366 fi
   27367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
   27368 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
   27369 if test $gcc_cv_as_ix86_ffreep = yes; then
   27370 
   27371 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
   27372 
   27373 fi
   27374 
   27375 
   27376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
   27377 $as_echo_n "checking assembler for .quad directive... " >&6; }
   27378 if ${gcc_cv_as_ix86_quad+:} false; then :
   27379   $as_echo_n "(cached) " >&6
   27380 else
   27381   gcc_cv_as_ix86_quad=no
   27382   if test x$gcc_cv_as != x; then
   27383     $as_echo '.quad 0' > conftest.s
   27384     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27385   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27386   (eval $ac_try) 2>&5
   27387   ac_status=$?
   27388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27389   test $ac_status = 0; }; }
   27390     then
   27391 	gcc_cv_as_ix86_quad=yes
   27392     else
   27393       echo "configure: failed program was" >&5
   27394       cat conftest.s >&5
   27395     fi
   27396     rm -f conftest.o conftest.s
   27397   fi
   27398 fi
   27399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
   27400 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
   27401 if test $gcc_cv_as_ix86_quad = yes; then
   27402 
   27403 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
   27404 
   27405 fi
   27406 
   27407 
   27408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
   27409 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
   27410 if ${gcc_cv_as_ix86_sahf+:} false; then :
   27411   $as_echo_n "(cached) " >&6
   27412 else
   27413   gcc_cv_as_ix86_sahf=no
   27414   if test x$gcc_cv_as != x; then
   27415     $as_echo '.code64
   27416        sahf' > conftest.s
   27417     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27418   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27419   (eval $ac_try) 2>&5
   27420   ac_status=$?
   27421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27422   test $ac_status = 0; }; }
   27423     then
   27424 	gcc_cv_as_ix86_sahf=yes
   27425     else
   27426       echo "configure: failed program was" >&5
   27427       cat conftest.s >&5
   27428     fi
   27429     rm -f conftest.o conftest.s
   27430   fi
   27431 fi
   27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
   27433 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
   27434 if test $gcc_cv_as_ix86_sahf = yes; then
   27435 
   27436 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
   27437 
   27438 fi
   27439 
   27440 
   27441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
   27442 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
   27443 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
   27444   $as_echo_n "(cached) " >&6
   27445 else
   27446   gcc_cv_as_ix86_interunit_movq=no
   27447   if test x$gcc_cv_as != x; then
   27448     $as_echo '.code64
   27449        movq %mm0, %rax
   27450        movq %rax, %xmm0' > conftest.s
   27451     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27452   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27453   (eval $ac_try) 2>&5
   27454   ac_status=$?
   27455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27456   test $ac_status = 0; }; }
   27457     then
   27458 	gcc_cv_as_ix86_interunit_movq=yes
   27459     else
   27460       echo "configure: failed program was" >&5
   27461       cat conftest.s >&5
   27462     fi
   27463     rm -f conftest.o conftest.s
   27464   fi
   27465 fi
   27466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
   27467 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
   27468 
   27469 
   27470 
   27471 cat >>confdefs.h <<_ACEOF
   27472 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
   27473 _ACEOF
   27474 
   27475 
   27476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
   27477 $as_echo_n "checking assembler for hle prefixes... " >&6; }
   27478 if ${gcc_cv_as_ix86_hle+:} false; then :
   27479   $as_echo_n "(cached) " >&6
   27480 else
   27481   gcc_cv_as_ix86_hle=no
   27482   if test x$gcc_cv_as != x; then
   27483     $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
   27484     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27485   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27486   (eval $ac_try) 2>&5
   27487   ac_status=$?
   27488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27489   test $ac_status = 0; }; }
   27490     then
   27491 	gcc_cv_as_ix86_hle=yes
   27492     else
   27493       echo "configure: failed program was" >&5
   27494       cat conftest.s >&5
   27495     fi
   27496     rm -f conftest.o conftest.s
   27497   fi
   27498 fi
   27499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
   27500 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
   27501 if test $gcc_cv_as_ix86_hle = yes; then
   27502 
   27503 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
   27504 
   27505 fi
   27506 
   27507 
   27508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
   27509 $as_echo_n "checking assembler for swap suffix... " >&6; }
   27510 if ${gcc_cv_as_ix86_swap+:} false; then :
   27511   $as_echo_n "(cached) " >&6
   27512 else
   27513   gcc_cv_as_ix86_swap=no
   27514   if test x$gcc_cv_as != x; then
   27515     $as_echo 'movl.s %esp, %ebp' > conftest.s
   27516     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27517   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27518   (eval $ac_try) 2>&5
   27519   ac_status=$?
   27520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27521   test $ac_status = 0; }; }
   27522     then
   27523 	gcc_cv_as_ix86_swap=yes
   27524     else
   27525       echo "configure: failed program was" >&5
   27526       cat conftest.s >&5
   27527     fi
   27528     rm -f conftest.o conftest.s
   27529   fi
   27530 fi
   27531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
   27532 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
   27533 if test $gcc_cv_as_ix86_swap = yes; then
   27534 
   27535 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
   27536 
   27537 fi
   27538 
   27539 
   27540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
   27541 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
   27542 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
   27543   $as_echo_n "(cached) " >&6
   27544 else
   27545   gcc_cv_as_ix86_diff_sect_delta=no
   27546   if test x$gcc_cv_as != x; then
   27547     $as_echo '.section .rodata
   27548 .L1:
   27549         .long .L2-.L1
   27550         .long .L3-.L1
   27551         .text
   27552 .L3:    nop
   27553 .L2:    nop' > conftest.s
   27554     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27555   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27556   (eval $ac_try) 2>&5
   27557   ac_status=$?
   27558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27559   test $ac_status = 0; }; }
   27560     then
   27561 	gcc_cv_as_ix86_diff_sect_delta=yes
   27562     else
   27563       echo "configure: failed program was" >&5
   27564       cat conftest.s >&5
   27565     fi
   27566     rm -f conftest.o conftest.s
   27567   fi
   27568 fi
   27569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
   27570 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
   27571 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
   27572 
   27573 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
   27574 
   27575 fi
   27576 
   27577 
   27578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
   27579 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
   27580 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
   27581   $as_echo_n "(cached) " >&6
   27582 else
   27583   gcc_cv_as_ix86_rep_lock_prefix=no
   27584   if test x$gcc_cv_as != x; then
   27585     $as_echo 'rep movsl
   27586 	 rep ret
   27587 	 rep nop
   27588 	 rep bsf %ecx, %eax
   27589 	 rep bsr %ecx, %eax
   27590 	 lock addl %edi, (%eax,%esi)
   27591 	 lock orl $0, (%esp)' > conftest.s
   27592     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27593   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27594   (eval $ac_try) 2>&5
   27595   ac_status=$?
   27596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27597   test $ac_status = 0; }; }
   27598     then
   27599 	gcc_cv_as_ix86_rep_lock_prefix=yes
   27600     else
   27601       echo "configure: failed program was" >&5
   27602       cat conftest.s >&5
   27603     fi
   27604     rm -f conftest.o conftest.s
   27605   fi
   27606 fi
   27607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
   27608 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
   27609 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
   27610 
   27611 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
   27612 
   27613 fi
   27614 
   27615 
   27616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
   27617 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
   27618 if ${gcc_cv_as_ix86_ud2+:} false; then :
   27619   $as_echo_n "(cached) " >&6
   27620 else
   27621   gcc_cv_as_ix86_ud2=no
   27622   if test x$gcc_cv_as != x; then
   27623     $as_echo 'ud2' > conftest.s
   27624     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27625   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27626   (eval $ac_try) 2>&5
   27627   ac_status=$?
   27628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27629   test $ac_status = 0; }; }
   27630     then
   27631 	gcc_cv_as_ix86_ud2=yes
   27632     else
   27633       echo "configure: failed program was" >&5
   27634       cat conftest.s >&5
   27635     fi
   27636     rm -f conftest.o conftest.s
   27637   fi
   27638 fi
   27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
   27640 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
   27641 if test $gcc_cv_as_ix86_ud2 = yes; then
   27642 
   27643 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
   27644 
   27645 fi
   27646 
   27647 
   27648     # Enforce 32-bit output with gas and gld.
   27649     if test x$gas = xyes; then
   27650       as_ix86_gas_32_opt="--32"
   27651     fi
   27652     if echo "$ld_ver" | grep GNU > /dev/null; then
   27653       if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
   27654         ld_ix86_gld_32_opt="-melf_i386_sol2"
   27655       else
   27656         ld_ix86_gld_32_opt="-melf_i386"
   27657       fi
   27658     fi
   27659 
   27660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
   27661 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
   27662 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
   27663   $as_echo_n "(cached) " >&6
   27664 else
   27665   gcc_cv_as_ix86_tlsgdplt=no
   27666   if test x$gcc_cv_as != x; then
   27667     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
   27668     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
   27669   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27670   (eval $ac_try) 2>&5
   27671   ac_status=$?
   27672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27673   test $ac_status = 0; }; }
   27674     then
   27675 	if test x$gcc_cv_ld != x \
   27676 	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
   27677 	   gcc_cv_as_ix86_tlsgdplt=yes
   27678 	 fi
   27679 	 rm -f conftest
   27680     else
   27681       echo "configure: failed program was" >&5
   27682       cat conftest.s >&5
   27683     fi
   27684     rm -f conftest.o conftest.s
   27685   fi
   27686 fi
   27687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
   27688 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
   27689 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
   27690 
   27691 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
   27692 
   27693 fi
   27694 
   27695 
   27696     conftest_s='
   27697 	.section .tdata,"aw'$tls_section_flag'",@progbits
   27698 tls_ld:
   27699 	.section .text,"ax",@progbits
   27700 	 call    tls_ld@tlsldmplt'
   27701 
   27702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
   27703 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
   27704 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
   27705   $as_echo_n "(cached) " >&6
   27706 else
   27707   gcc_cv_as_ix86_tlsldmplt=no
   27708   if test x$gcc_cv_as != x; then
   27709     $as_echo "$conftest_s" > conftest.s
   27710     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
   27711   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27712   (eval $ac_try) 2>&5
   27713   ac_status=$?
   27714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27715   test $ac_status = 0; }; }
   27716     then
   27717 	if test x$gcc_cv_ld != x \
   27718 	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
   27719 	   gcc_cv_as_ix86_tlsldmplt=yes
   27720 	 fi
   27721 	 rm -f conftest
   27722     else
   27723       echo "configure: failed program was" >&5
   27724       cat conftest.s >&5
   27725     fi
   27726     rm -f conftest.o conftest.s
   27727   fi
   27728 fi
   27729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
   27730 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
   27731 
   27732 
   27733 
   27734 cat >>confdefs.h <<_ACEOF
   27735 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
   27736 _ACEOF
   27737 
   27738 
   27739     conftest_s='
   27740 	.section .text,"ax",@progbits
   27741         .globl  _start
   27742         .type   _start, @function
   27743 _start:
   27744 	leal	value@tlsldm(%ebx), %eax
   27745 	call	___tls_get_addr@plt
   27746 
   27747         .section .tdata,"aw'$tls_section_flag'",@progbits
   27748         .type	value, @object
   27749 value:'
   27750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
   27751 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
   27752 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
   27753   $as_echo_n "(cached) " >&6
   27754 else
   27755   gcc_cv_as_ix86_tlsldm=no
   27756   if test x$gcc_cv_as != x; then
   27757     $as_echo "$conftest_s" > conftest.s
   27758     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
   27759   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27760   (eval $ac_try) 2>&5
   27761   ac_status=$?
   27762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27763   test $ac_status = 0; }; }
   27764     then
   27765 	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
   27766 	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
   27767 	   if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
   27768 	      || dis conftest 2>/dev/null | grep nop > /dev/null; then
   27769 	     gcc_cv_as_ix86_tlsldm=yes
   27770 	   fi
   27771 	 fi
   27772 	 rm -f conftest
   27773     else
   27774       echo "configure: failed program was" >&5
   27775       cat conftest.s >&5
   27776     fi
   27777     rm -f conftest.o conftest.s
   27778   fi
   27779 fi
   27780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
   27781 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
   27782 
   27783 
   27784 
   27785 cat >>confdefs.h <<_ACEOF
   27786 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
   27787 _ACEOF
   27788 
   27789 
   27790     conftest_s='
   27791 	.data
   27792 bar:
   27793 	.byte 1
   27794 	.text
   27795 	.global _start
   27796 _start:
   27797 	 cmpl $0, bar@GOT
   27798 	 jmp *_start@GOT'
   27799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
   27800 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
   27801 if ${gcc_cv_as_ix86_got32x+:} false; then :
   27802   $as_echo_n "(cached) " >&6
   27803 else
   27804   gcc_cv_as_ix86_got32x=no
   27805   if test x$gcc_cv_as != x; then
   27806     $as_echo "$conftest_s" > conftest.s
   27807     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
   27808   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27809   (eval $ac_try) 2>&5
   27810   ac_status=$?
   27811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27812   test $ac_status = 0; }; }
   27813     then
   27814 	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
   27815 	    && test x$gcc_cv_readelf != x \
   27816 	    && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
   27817 	       | grep R_386_GOT32X > /dev/null 2>&1 \
   27818 	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
   27819 	   if $gcc_cv_objdump -dw conftest 2>&1 \
   27820 	      | grep 0xffffff > /dev/null 2>&1; then
   27821 	     gcc_cv_as_ix86_got32x=no
   27822 	   else
   27823 	     gcc_cv_as_ix86_got32x=yes
   27824 	   fi
   27825 	 fi
   27826 	 rm -f conftest
   27827     else
   27828       echo "configure: failed program was" >&5
   27829       cat conftest.s >&5
   27830     fi
   27831     rm -f conftest.o conftest.s
   27832   fi
   27833 fi
   27834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
   27835 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
   27836 
   27837 
   27838 
   27839 cat >>confdefs.h <<_ACEOF
   27840 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
   27841 _ACEOF
   27842 
   27843 
   27844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
   27845 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
   27846 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
   27847   $as_echo_n "(cached) " >&6
   27848 else
   27849   gcc_cv_as_ix86_gotoff_in_data=no
   27850   if test x$gcc_cv_as != x; then
   27851     $as_echo '	.text
   27852 .L0:
   27853 	nop
   27854 	.data
   27855 	.long .L0@GOTOFF' > conftest.s
   27856     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
   27857   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27858   (eval $ac_try) 2>&5
   27859   ac_status=$?
   27860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27861   test $ac_status = 0; }; }
   27862     then
   27863 	gcc_cv_as_ix86_gotoff_in_data=yes
   27864     else
   27865       echo "configure: failed program was" >&5
   27866       cat conftest.s >&5
   27867     fi
   27868     rm -f conftest.o conftest.s
   27869   fi
   27870 fi
   27871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
   27872 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
   27873 
   27874 
   27875 
   27876 cat >>confdefs.h <<_ACEOF
   27877 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
   27878 _ACEOF
   27879 
   27880 
   27881     conftest_s='
   27882 	.section .text,"ax",@progbits
   27883 	.globl  _start
   27884 	.type   _start, @function
   27885 _start:
   27886 	leal	ld@tlsldm(%ecx), %eax
   27887 	call	*___tls_get_addr@GOT(%ecx)
   27888 	leal	gd@tlsgd(%ecx), %eax
   27889 	call	*___tls_get_addr@GOT(%ecx)
   27890 
   27891 	.section .tdata,"aw'$tls_section_flag'",@progbits
   27892 	.type	ld, @object
   27893 ld:
   27894 	.byte 0
   27895 	.globl  gd
   27896 	.type	gd, @object
   27897 gd:
   27898 	.byte 0'
   27899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
   27900 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
   27901 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
   27902   $as_echo_n "(cached) " >&6
   27903 else
   27904   gcc_cv_as_ix86_tls_get_addr_via_got=no
   27905   if test x$gcc_cv_as != x; then
   27906     $as_echo "$conftest_s" > conftest.s
   27907     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
   27908   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27909   (eval $ac_try) 2>&5
   27910   ac_status=$?
   27911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27912   test $ac_status = 0; }; }
   27913     then
   27914 	if test x$gcc_cv_ld != x \
   27915 	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
   27916 	   gcc_cv_as_ix86_tls_get_addr_via_got=yes
   27917 	 fi
   27918 	 rm -f conftest
   27919     else
   27920       echo "configure: failed program was" >&5
   27921       cat conftest.s >&5
   27922     fi
   27923     rm -f conftest.o conftest.s
   27924   fi
   27925 fi
   27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
   27927 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
   27928 
   27929 
   27930 
   27931 cat >>confdefs.h <<_ACEOF
   27932 #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`
   27933 _ACEOF
   27934 
   27935     ;;
   27936 
   27937   ia64*-*-*)
   27938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
   27939 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
   27940 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
   27941   $as_echo_n "(cached) " >&6
   27942 else
   27943   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
   27944   if test x$gcc_cv_as != x; then
   27945     $as_echo '	.text
   27946 	addl r15 = @ltoffx(x#), gp
   27947 	;;
   27948 	ld8.mov r16 = [r15], x#
   27949 ' > conftest.s
   27950     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27951   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27952   (eval $ac_try) 2>&5
   27953   ac_status=$?
   27954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27955   test $ac_status = 0; }; }
   27956     then
   27957 	gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
   27958     else
   27959       echo "configure: failed program was" >&5
   27960       cat conftest.s >&5
   27961     fi
   27962     rm -f conftest.o conftest.s
   27963   fi
   27964 fi
   27965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
   27966 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
   27967 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
   27968 
   27969 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
   27970 
   27971 fi
   27972 
   27973 
   27974     ;;
   27975 
   27976   powerpc*-*-*)
   27977 
   27978     case $target in
   27979       *-*-darwin*)
   27980 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
   27981 $as_echo_n "checking assembler for .machine directive support... " >&6; }
   27982 if ${gcc_cv_as_machine_directive+:} false; then :
   27983   $as_echo_n "(cached) " >&6
   27984 else
   27985   gcc_cv_as_machine_directive=no
   27986   if test x$gcc_cv_as != x; then
   27987     $as_echo '	.machine ppc7400' > conftest.s
   27988     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   27989   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   27990   (eval $ac_try) 2>&5
   27991   ac_status=$?
   27992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   27993   test $ac_status = 0; }; }
   27994     then
   27995 	gcc_cv_as_machine_directive=yes
   27996     else
   27997       echo "configure: failed program was" >&5
   27998       cat conftest.s >&5
   27999     fi
   28000     rm -f conftest.o conftest.s
   28001   fi
   28002 fi
   28003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
   28004 $as_echo "$gcc_cv_as_machine_directive" >&6; }
   28005 
   28006 
   28007 	if test x$gcc_cv_as_machine_directive != xyes; then
   28008 	  echo "*** This target requires an assembler supporting \".machine\"" >&2
   28009 	  echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
   28010 	  test x$build = x$target && exit 1
   28011 	fi
   28012         ;;
   28013     esac
   28014 
   28015     case $target in
   28016       *-*-aix*) conftest_s='	.machine "pwr5"
   28017 	.csect .text[PR]
   28018 	mfcr 3,128';;
   28019       *-*-darwin*) conftest_s='	.text
   28020 	mfcr r3,128';;
   28021       *) conftest_s='	.machine power4
   28022 	.text
   28023 	mfcr 3,128';;
   28024     esac
   28025 
   28026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
   28027 $as_echo_n "checking assembler for mfcr field support... " >&6; }
   28028 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
   28029   $as_echo_n "(cached) " >&6
   28030 else
   28031   gcc_cv_as_powerpc_mfcrf=no
   28032   if test x$gcc_cv_as != x; then
   28033     $as_echo "$conftest_s" > conftest.s
   28034     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   28035   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28036   (eval $ac_try) 2>&5
   28037   ac_status=$?
   28038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28039   test $ac_status = 0; }; }
   28040     then
   28041 	gcc_cv_as_powerpc_mfcrf=yes
   28042     else
   28043       echo "configure: failed program was" >&5
   28044       cat conftest.s >&5
   28045     fi
   28046     rm -f conftest.o conftest.s
   28047   fi
   28048 fi
   28049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
   28050 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
   28051 if test $gcc_cv_as_powerpc_mfcrf = yes; then
   28052 
   28053 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
   28054 
   28055 fi
   28056 
   28057 
   28058     case $target in
   28059       *-*-aix*) conftest_s='	.machine "pwr10"
   28060 	.csect .text[PR]
   28061 	tend. 0';;
   28062       *-*-darwin*) conftest_s='	.text
   28063 	tend. 0';;
   28064       *) conftest_s='	.machine power10
   28065 	.text
   28066 	tend. 0';;
   28067     esac
   28068 
   28069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
   28070 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
   28071 if ${gcc_cv_as_power10_htm+:} false; then :
   28072   $as_echo_n "(cached) " >&6
   28073 else
   28074   gcc_cv_as_power10_htm=no
   28075   if test x$gcc_cv_as != x; then
   28076     $as_echo "$conftest_s" > conftest.s
   28077     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   28078   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28079   (eval $ac_try) 2>&5
   28080   ac_status=$?
   28081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28082   test $ac_status = 0; }; }
   28083     then
   28084 	gcc_cv_as_power10_htm=yes
   28085     else
   28086       echo "configure: failed program was" >&5
   28087       cat conftest.s >&5
   28088     fi
   28089     rm -f conftest.o conftest.s
   28090   fi
   28091 fi
   28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
   28093 $as_echo "$gcc_cv_as_power10_htm" >&6; }
   28094 if test $gcc_cv_as_power10_htm = yes; then
   28095 
   28096 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
   28097 
   28098 fi
   28099 
   28100 
   28101     case $target in
   28102       *-*-aix*) conftest_s='	.csect .text[PR]
   28103 LCF..0:
   28104 	addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
   28105       *-*-darwin*)
   28106 	conftest_s='	.text
   28107 LCF0:
   28108 	addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
   28109       *) conftest_s='	.text
   28110 .LCF0:
   28111 	addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
   28112     esac
   28113 
   28114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
   28115 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
   28116 if ${gcc_cv_as_powerpc_rel16+:} false; then :
   28117   $as_echo_n "(cached) " >&6
   28118 else
   28119   gcc_cv_as_powerpc_rel16=no
   28120   if test x$gcc_cv_as != x; then
   28121     $as_echo "$conftest_s" > conftest.s
   28122     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
   28123   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28124   (eval $ac_try) 2>&5
   28125   ac_status=$?
   28126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28127   test $ac_status = 0; }; }
   28128     then
   28129 	gcc_cv_as_powerpc_rel16=yes
   28130     else
   28131       echo "configure: failed program was" >&5
   28132       cat conftest.s >&5
   28133     fi
   28134     rm -f conftest.o conftest.s
   28135   fi
   28136 fi
   28137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
   28138 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
   28139 if test $gcc_cv_as_powerpc_rel16 = yes; then
   28140 
   28141 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
   28142 
   28143 fi
   28144 
   28145 
   28146     case $target in
   28147       *-*-aix*) conftest_s='	.machine "pwr7"
   28148 	.csect .text[PR]
   28149 	lxvd2x 1,2,3';;
   28150       *) conftest_s='	.machine power7
   28151 	.text
   28152 	lxvd2x 1,2,3';;
   28153     esac
   28154 
   28155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
   28156 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
   28157 if ${gcc_cv_as_powerpc_vsx+:} false; then :
   28158   $as_echo_n "(cached) " >&6
   28159 else
   28160   gcc_cv_as_powerpc_vsx=no
   28161   if test x$gcc_cv_as != x; then
   28162     $as_echo "$conftest_s" > conftest.s
   28163     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
   28164   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28165   (eval $ac_try) 2>&5
   28166   ac_status=$?
   28167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28168   test $ac_status = 0; }; }
   28169     then
   28170 	gcc_cv_as_powerpc_vsx=yes
   28171     else
   28172       echo "configure: failed program was" >&5
   28173       cat conftest.s >&5
   28174     fi
   28175     rm -f conftest.o conftest.s
   28176   fi
   28177 fi
   28178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
   28179 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
   28180 if test $gcc_cv_as_powerpc_vsx = yes; then
   28181 
   28182 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
   28183 
   28184 fi
   28185 
   28186 
   28187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
   28188 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
   28189 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
   28190   $as_echo_n "(cached) " >&6
   28191 else
   28192   gcc_cv_as_powerpc_gnu_attribute=no
   28193   if test x$gcc_cv_as != x; then
   28194     $as_echo '.gnu_attribute 4,1' > conftest.s
   28195     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   28196   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28197   (eval $ac_try) 2>&5
   28198   ac_status=$?
   28199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28200   test $ac_status = 0; }; }
   28201     then
   28202 	gcc_cv_as_powerpc_gnu_attribute=yes
   28203     else
   28204       echo "configure: failed program was" >&5
   28205       cat conftest.s >&5
   28206     fi
   28207     rm -f conftest.o conftest.s
   28208   fi
   28209 fi
   28210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
   28211 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
   28212 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
   28213 
   28214 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
   28215 
   28216 fi
   28217 
   28218 
   28219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
   28220 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
   28221 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
   28222   $as_echo_n "(cached) " >&6
   28223 else
   28224   gcc_cv_as_powerpc_entry_markers=no
   28225   if test x$gcc_cv_as != x; then
   28226     $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
   28227     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
   28228   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28229   (eval $ac_try) 2>&5
   28230   ac_status=$?
   28231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28232   test $ac_status = 0; }; }
   28233     then
   28234 	gcc_cv_as_powerpc_entry_markers=yes
   28235     else
   28236       echo "configure: failed program was" >&5
   28237       cat conftest.s >&5
   28238     fi
   28239     rm -f conftest.o conftest.s
   28240   fi
   28241 fi
   28242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
   28243 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
   28244 if test $gcc_cv_as_powerpc_entry_markers = yes; then
   28245 
   28246 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
   28247 
   28248 fi
   28249 
   28250 
   28251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
   28252 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
   28253 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
   28254   $as_echo_n "(cached) " >&6
   28255 else
   28256   gcc_cv_as_powerpc_pltseq_markers=no
   28257   if test x$gcc_cv_as != x; then
   28258     $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
   28259     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
   28260   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28261   (eval $ac_try) 2>&5
   28262   ac_status=$?
   28263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28264   test $ac_status = 0; }; }
   28265     then
   28266 	gcc_cv_as_powerpc_pltseq_markers=yes
   28267     else
   28268       echo "configure: failed program was" >&5
   28269       cat conftest.s >&5
   28270     fi
   28271     rm -f conftest.o conftest.s
   28272   fi
   28273 fi
   28274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
   28275 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
   28276 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
   28277 
   28278 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
   28279 
   28280 fi
   28281 
   28282 
   28283     case $target in
   28284       *-*-aix*)
   28285 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
   28286 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
   28287 if ${gcc_cv_as_aix_ref+:} false; then :
   28288   $as_echo_n "(cached) " >&6
   28289 else
   28290   gcc_cv_as_aix_ref=no
   28291   if test x$gcc_cv_as != x; then
   28292     $as_echo '	.csect stuff[rw]
   28293 	     stuff:
   28294 		.long 1
   28295 		.extern sym
   28296 		.ref sym
   28297 	  ' > conftest.s
   28298     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   28299   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28300   (eval $ac_try) 2>&5
   28301   ac_status=$?
   28302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28303   test $ac_status = 0; }; }
   28304     then
   28305 	gcc_cv_as_aix_ref=yes
   28306     else
   28307       echo "configure: failed program was" >&5
   28308       cat conftest.s >&5
   28309     fi
   28310     rm -f conftest.o conftest.s
   28311   fi
   28312 fi
   28313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
   28314 $as_echo "$gcc_cv_as_aix_ref" >&6; }
   28315 if test $gcc_cv_as_aix_ref = yes; then
   28316 
   28317 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
   28318 
   28319 fi
   28320 
   28321 
   28322 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
   28323 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
   28324 if ${gcc_cv_as_aix_dwloc+:} false; then :
   28325   $as_echo_n "(cached) " >&6
   28326 else
   28327   gcc_cv_as_aix_dwloc=no
   28328   if test x$gcc_cv_as != x; then
   28329     $as_echo '	.dwsect 0xA0000
   28330 	Lframe..0:
   28331 		.vbyte 4,Lframe..0
   28332 	  ' > conftest.s
   28333     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   28334   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28335   (eval $ac_try) 2>&5
   28336   ac_status=$?
   28337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28338   test $ac_status = 0; }; }
   28339     then
   28340 	gcc_cv_as_aix_dwloc=yes
   28341     else
   28342       echo "configure: failed program was" >&5
   28343       cat conftest.s >&5
   28344     fi
   28345     rm -f conftest.o conftest.s
   28346   fi
   28347 fi
   28348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
   28349 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
   28350 if test $gcc_cv_as_aix_dwloc = yes; then
   28351 
   28352 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
   28353 
   28354 fi
   28355 
   28356 	;;
   28357     esac
   28358     ;;
   28359 
   28360   mips*-*-*)
   28361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
   28362 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
   28363 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
   28364   $as_echo_n "(cached) " >&6
   28365 else
   28366   gcc_cv_as_mips_explicit_relocs=no
   28367   if test x$gcc_cv_as != x; then
   28368     $as_echo '	lw $4,%gp_rel(foo)($4)' > conftest.s
   28369     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   28370   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28371   (eval $ac_try) 2>&5
   28372   ac_status=$?
   28373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28374   test $ac_status = 0; }; }
   28375     then
   28376 	gcc_cv_as_mips_explicit_relocs=yes
   28377     else
   28378       echo "configure: failed program was" >&5
   28379       cat conftest.s >&5
   28380     fi
   28381     rm -f conftest.o conftest.s
   28382   fi
   28383 fi
   28384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
   28385 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
   28386 if test $gcc_cv_as_mips_explicit_relocs = yes; then
   28387   if test x$target_cpu_default = x
   28388        then target_cpu_default=MASK_EXPLICIT_RELOCS
   28389        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
   28390        fi
   28391 fi
   28392 
   28393 
   28394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
   28395 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
   28396 if ${gcc_cv_as_mips_no_shared+:} false; then :
   28397   $as_echo_n "(cached) " >&6
   28398 else
   28399   gcc_cv_as_mips_no_shared=no
   28400   if test x$gcc_cv_as != x; then
   28401     $as_echo 'nop' > conftest.s
   28402     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
   28403   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28404   (eval $ac_try) 2>&5
   28405   ac_status=$?
   28406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28407   test $ac_status = 0; }; }
   28408     then
   28409 	gcc_cv_as_mips_no_shared=yes
   28410     else
   28411       echo "configure: failed program was" >&5
   28412       cat conftest.s >&5
   28413     fi
   28414     rm -f conftest.o conftest.s
   28415   fi
   28416 fi
   28417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
   28418 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
   28419 if test $gcc_cv_as_mips_no_shared = yes; then
   28420 
   28421 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
   28422 
   28423 fi
   28424 
   28425 
   28426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
   28427 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
   28428 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
   28429   $as_echo_n "(cached) " >&6
   28430 else
   28431   gcc_cv_as_mips_gnu_attribute=no
   28432   if test x$gcc_cv_as != x; then
   28433     $as_echo '.gnu_attribute 4,1' > conftest.s
   28434     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   28435   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28436   (eval $ac_try) 2>&5
   28437   ac_status=$?
   28438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28439   test $ac_status = 0; }; }
   28440     then
   28441 	gcc_cv_as_mips_gnu_attribute=yes
   28442     else
   28443       echo "configure: failed program was" >&5
   28444       cat conftest.s >&5
   28445     fi
   28446     rm -f conftest.o conftest.s
   28447   fi
   28448 fi
   28449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
   28450 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
   28451 if test $gcc_cv_as_mips_gnu_attribute = yes; then
   28452 
   28453 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
   28454 
   28455 fi
   28456 
   28457 
   28458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
   28459 $as_echo_n "checking assembler for .module support... " >&6; }
   28460 if ${gcc_cv_as_mips_dot_module+:} false; then :
   28461   $as_echo_n "(cached) " >&6
   28462 else
   28463   gcc_cv_as_mips_dot_module=no
   28464   if test x$gcc_cv_as != x; then
   28465     $as_echo '.module mips2
   28466        .module fp=xx' > conftest.s
   28467     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
   28468   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28469   (eval $ac_try) 2>&5
   28470   ac_status=$?
   28471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28472   test $ac_status = 0; }; }
   28473     then
   28474 	gcc_cv_as_mips_dot_module=yes
   28475     else
   28476       echo "configure: failed program was" >&5
   28477       cat conftest.s >&5
   28478     fi
   28479     rm -f conftest.o conftest.s
   28480   fi
   28481 fi
   28482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
   28483 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
   28484 if test $gcc_cv_as_mips_dot_module = yes; then
   28485 
   28486 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
   28487 
   28488 fi
   28489 
   28490     if test x$gcc_cv_as_mips_dot_module = xno \
   28491        && test x$with_fp_32 != x; then
   28492       as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
   28493     fi
   28494 
   28495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
   28496 $as_echo_n "checking assembler for .micromips support... " >&6; }
   28497 if ${gcc_cv_as_micromips_support+:} false; then :
   28498   $as_echo_n "(cached) " >&6
   28499 else
   28500   gcc_cv_as_micromips_support=no
   28501   if test x$gcc_cv_as != x; then
   28502     $as_echo '.set micromips' > conftest.s
   28503     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
   28504   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28505   (eval $ac_try) 2>&5
   28506   ac_status=$?
   28507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28508   test $ac_status = 0; }; }
   28509     then
   28510 	gcc_cv_as_micromips_support=yes
   28511     else
   28512       echo "configure: failed program was" >&5
   28513       cat conftest.s >&5
   28514     fi
   28515     rm -f conftest.o conftest.s
   28516   fi
   28517 fi
   28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
   28519 $as_echo "$gcc_cv_as_micromips_support" >&6; }
   28520 if test $gcc_cv_as_micromips_support = yes; then
   28521 
   28522 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
   28523 
   28524 fi
   28525 
   28526 
   28527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
   28528 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
   28529 if ${gcc_cv_as_mips_dtprelword+:} false; then :
   28530   $as_echo_n "(cached) " >&6
   28531 else
   28532   gcc_cv_as_mips_dtprelword=no
   28533   if test x$gcc_cv_as != x; then
   28534     $as_echo '.section .tdata,"awT",@progbits
   28535 x:
   28536 	.word 2
   28537 	.text
   28538 	.dtprelword x+0x8000' > conftest.s
   28539     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   28540   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28541   (eval $ac_try) 2>&5
   28542   ac_status=$?
   28543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28544   test $ac_status = 0; }; }
   28545     then
   28546 	gcc_cv_as_mips_dtprelword=yes
   28547     else
   28548       echo "configure: failed program was" >&5
   28549       cat conftest.s >&5
   28550     fi
   28551     rm -f conftest.o conftest.s
   28552   fi
   28553 fi
   28554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
   28555 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
   28556 if test $gcc_cv_as_mips_dtprelword = yes; then
   28557 
   28558 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
   28559 
   28560 fi
   28561 
   28562 
   28563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
   28564 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
   28565 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
   28566   $as_echo_n "(cached) " >&6
   28567 else
   28568   gcc_cv_as_mips_dspr1_mult=no
   28569   if test x$gcc_cv_as != x; then
   28570     $as_echo '	.set	mips32r2
   28571 	.set	nodspr2
   28572 	.set	dsp
   28573 	madd	$ac3,$4,$5
   28574 	maddu	$ac3,$4,$5
   28575 	msub	$ac3,$4,$5
   28576 	msubu	$ac3,$4,$5
   28577 	mult	$ac3,$4,$5
   28578 	multu	$ac3,$4,$5' > conftest.s
   28579     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   28580   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28581   (eval $ac_try) 2>&5
   28582   ac_status=$?
   28583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28584   test $ac_status = 0; }; }
   28585     then
   28586 	gcc_cv_as_mips_dspr1_mult=yes
   28587     else
   28588       echo "configure: failed program was" >&5
   28589       cat conftest.s >&5
   28590     fi
   28591     rm -f conftest.o conftest.s
   28592   fi
   28593 fi
   28594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
   28595 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
   28596 if test $gcc_cv_as_mips_dspr1_mult = yes; then
   28597 
   28598 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
   28599 
   28600 fi
   28601 
   28602 
   28603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
   28604 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
   28605     gcc_cv_as_ld_jalr_reloc=no
   28606     if test $gcc_cv_as_mips_explicit_relocs = yes; then
   28607       if test $in_tree_ld = yes ; then
   28608         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 \
   28609            && test $in_tree_ld_is_elf = yes; then
   28610           gcc_cv_as_ld_jalr_reloc=yes
   28611         fi
   28612       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
   28613         echo '	.ent x' > conftest.s
   28614         echo 'x:	lw $2,%got_disp(y)($3)' >> conftest.s
   28615         echo '	lw $25,%call16(y)($28)' >> conftest.s
   28616         echo '	.reloc	1f,R_MIPS_JALR,y' >> conftest.s
   28617         echo '1:	jalr $25' >> conftest.s
   28618         echo '	.reloc	1f,R_MIPS_JALR,x' >> conftest.s
   28619         echo '1:	jalr $25' >> conftest.s
   28620         echo '	.end x' >> conftest.s
   28621         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
   28622            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
   28623 	  if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
   28624 	     && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
   28625             gcc_cv_as_ld_jalr_reloc=yes
   28626 	  fi
   28627         fi
   28628         rm -f conftest.*
   28629       fi
   28630     fi
   28631     if test $gcc_cv_as_ld_jalr_reloc = yes; then
   28632       if test x$target_cpu_default = x; then
   28633         target_cpu_default=MASK_RELAX_PIC_CALLS
   28634       else
   28635         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
   28636       fi
   28637     fi
   28638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
   28639 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
   28640 
   28641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
   28642 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
   28643 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
   28644   $as_echo_n "(cached) " >&6
   28645 else
   28646   gcc_cv_ld_mips_personality_relaxation=no
   28647        if test $in_tree_ld = yes ; then
   28648 	 if test "$gcc_cv_gld_major_version" -eq 2 \
   28649 		 -a "$gcc_cv_gld_minor_version" -ge 21 \
   28650 		 -o "$gcc_cv_gld_major_version" -gt 2; then
   28651 	   gcc_cv_ld_mips_personality_relaxation=yes
   28652 	 fi
   28653        elif test x$gcc_cv_as != x \
   28654        	    	 -a x$gcc_cv_ld != x \
   28655 		 -a x$gcc_cv_readelf != x ; then
   28656 	 cat > conftest.s <<EOF
   28657 	.cfi_startproc
   28658 	.cfi_personality 0x80,indirect_ptr
   28659 	.ent test
   28660 test:
   28661 	nop
   28662 	.end test
   28663 	.cfi_endproc
   28664 
   28665 	.section .data,"aw",@progbits
   28666 indirect_ptr:
   28667 	.dc.a personality
   28668 EOF
   28669 	 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
   28670 	    && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
   28671 	   if $gcc_cv_readelf -d conftest 2>&1 \
   28672 	      | grep TEXTREL > /dev/null 2>&1; then
   28673 	     :
   28674 	   elif $gcc_cv_readelf --relocs conftest 2>&1 \
   28675 	        | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
   28676 	     :
   28677 	   else
   28678 	     gcc_cv_ld_mips_personality_relaxation=yes
   28679 	   fi
   28680 	 fi
   28681        fi
   28682        rm -f conftest.s conftest.o conftest
   28683 fi
   28684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
   28685 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
   28686     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
   28687 
   28688 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
   28689 
   28690     fi
   28691 
   28692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
   28693 $as_echo_n "checking assembler for -mnan= support... " >&6; }
   28694 if ${gcc_cv_as_mips_nan+:} false; then :
   28695   $as_echo_n "(cached) " >&6
   28696 else
   28697   gcc_cv_as_mips_nan=no
   28698   if test x$gcc_cv_as != x; then
   28699     $as_echo '' > conftest.s
   28700     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
   28701   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28702   (eval $ac_try) 2>&5
   28703   ac_status=$?
   28704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28705   test $ac_status = 0; }; }
   28706     then
   28707 	gcc_cv_as_mips_nan=yes
   28708     else
   28709       echo "configure: failed program was" >&5
   28710       cat conftest.s >&5
   28711     fi
   28712     rm -f conftest.o conftest.s
   28713   fi
   28714 fi
   28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
   28716 $as_echo "$gcc_cv_as_mips_nan" >&6; }
   28717 if test $gcc_cv_as_mips_nan = yes; then
   28718 
   28719 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
   28720 
   28721 fi
   28722 
   28723     if test x$gcc_cv_as_mips_nan = xno \
   28724        && test x$with_nan != x; then
   28725       as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
   28726     fi
   28727     ;;
   28728     msp430-*-*)
   28729     # Earlier GAS versions generically support .gnu_attribute, but the
   28730     # msp430 assembler will not do anything with it.
   28731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
   28732 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
   28733 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
   28734   $as_echo_n "(cached) " >&6
   28735 else
   28736   gcc_cv_as_msp430_gnu_attribute=no
   28737   if test x$gcc_cv_as != x; then
   28738     $as_echo '.gnu_attribute 4,1' > conftest.s
   28739     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   28740   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28741   (eval $ac_try) 2>&5
   28742   ac_status=$?
   28743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28744   test $ac_status = 0; }; }
   28745     then
   28746 	gcc_cv_as_msp430_gnu_attribute=yes
   28747     else
   28748       echo "configure: failed program was" >&5
   28749       cat conftest.s >&5
   28750     fi
   28751     rm -f conftest.o conftest.s
   28752   fi
   28753 fi
   28754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
   28755 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
   28756 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
   28757 
   28758 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
   28759 
   28760 fi
   28761 
   28762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
   28763 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
   28764 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
   28765   $as_echo_n "(cached) " >&6
   28766 else
   28767   gcc_cv_as_msp430_mspabi_attribute=no
   28768   if test x$gcc_cv_as != x; then
   28769     $as_echo '.mspabi_attribute 4,2' > conftest.s
   28770     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   28771   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28772   (eval $ac_try) 2>&5
   28773   ac_status=$?
   28774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28775   test $ac_status = 0; }; }
   28776     then
   28777 	gcc_cv_as_msp430_mspabi_attribute=yes
   28778     else
   28779       echo "configure: failed program was" >&5
   28780       cat conftest.s >&5
   28781     fi
   28782     rm -f conftest.o conftest.s
   28783   fi
   28784 fi
   28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
   28786 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
   28787 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
   28788 
   28789 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
   28790 
   28791 fi
   28792 
   28793     if test x$enable_newlib_nano_formatted_io = xyes; then
   28794 
   28795 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
   28796 
   28797       fi
   28798     ;;
   28799     nios2-*-*)
   28800     # Versions 2.33 and earlier lacked support for the %gotoff relocation
   28801     # syntax that is documented in the ABI specification.
   28802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
   28803 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
   28804 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
   28805   $as_echo_n "(cached) " >&6
   28806 else
   28807   gcc_cv_as_nios2_gotoff_relocation=no
   28808   if test x$gcc_cv_as != x; then
   28809     $as_echo '	.extern foo
   28810 	.data
   28811 	.long %gotoff(foo)' > conftest.s
   28812     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   28813   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28814   (eval $ac_try) 2>&5
   28815   ac_status=$?
   28816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28817   test $ac_status = 0; }; }
   28818     then
   28819 	gcc_cv_as_nios2_gotoff_relocation=yes
   28820     else
   28821       echo "configure: failed program was" >&5
   28822       cat conftest.s >&5
   28823     fi
   28824     rm -f conftest.o conftest.s
   28825   fi
   28826 fi
   28827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
   28828 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
   28829 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
   28830 
   28831 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
   28832 
   28833 fi
   28834 
   28835     ;;
   28836     riscv*-*-*)
   28837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
   28838 $as_echo_n "checking assembler for .attribute support... " >&6; }
   28839 if ${gcc_cv_as_riscv_attribute+:} false; then :
   28840   $as_echo_n "(cached) " >&6
   28841 else
   28842   gcc_cv_as_riscv_attribute=no
   28843   if test x$gcc_cv_as != x; then
   28844     $as_echo '.attribute stack_align,4' > conftest.s
   28845     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   28846   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28847   (eval $ac_try) 2>&5
   28848   ac_status=$?
   28849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28850   test $ac_status = 0; }; }
   28851     then
   28852 	gcc_cv_as_riscv_attribute=yes
   28853     else
   28854       echo "configure: failed program was" >&5
   28855       cat conftest.s >&5
   28856     fi
   28857     rm -f conftest.o conftest.s
   28858   fi
   28859 fi
   28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
   28861 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
   28862 if test $gcc_cv_as_riscv_attribute = yes; then
   28863 
   28864 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
   28865 
   28866 fi
   28867 
   28868     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
   28869 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
   28870 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
   28871   $as_echo_n "(cached) " >&6
   28872 else
   28873   gcc_cv_as_riscv_isa_spec=no
   28874   if test x$gcc_cv_as != x; then
   28875     $as_echo '' > conftest.s
   28876     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
   28877   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28878   (eval $ac_try) 2>&5
   28879   ac_status=$?
   28880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28881   test $ac_status = 0; }; }
   28882     then
   28883 	gcc_cv_as_riscv_isa_spec=yes
   28884     else
   28885       echo "configure: failed program was" >&5
   28886       cat conftest.s >&5
   28887     fi
   28888     rm -f conftest.o conftest.s
   28889   fi
   28890 fi
   28891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
   28892 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
   28893 if test $gcc_cv_as_riscv_isa_spec = yes; then
   28894 
   28895 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
   28896 
   28897 fi
   28898 
   28899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
   28900 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
   28901 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
   28902   $as_echo_n "(cached) " >&6
   28903 else
   28904   gcc_cv_as_riscv_march_zifencei=no
   28905   if test x$gcc_cv_as != x; then
   28906     $as_echo '' > conftest.s
   28907     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
   28908   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28909   (eval $ac_try) 2>&5
   28910   ac_status=$?
   28911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28912   test $ac_status = 0; }; }
   28913     then
   28914 	gcc_cv_as_riscv_march_zifencei=yes
   28915     else
   28916       echo "configure: failed program was" >&5
   28917       cat conftest.s >&5
   28918     fi
   28919     rm -f conftest.o conftest.s
   28920   fi
   28921 fi
   28922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
   28923 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
   28924 if test $gcc_cv_as_riscv_march_zifencei = yes; then
   28925 
   28926 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
   28927 
   28928 fi
   28929 
   28930     ;;
   28931   loongarch*-*-*)
   28932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
   28933 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
   28934 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
   28935   $as_echo_n "(cached) " >&6
   28936 else
   28937   gcc_cv_as_loongarch_dtprelword=no
   28938   if test x$gcc_cv_as != x; then
   28939     $as_echo '' > conftest.s
   28940     if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
   28941   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28942   (eval $ac_try) 2>&5
   28943   ac_status=$?
   28944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28945   test $ac_status = 0; }; }
   28946     then
   28947 	.section .tdata,"awT",@progbits
   28948 x:
   28949 	.word 2
   28950 	.text
   28951 	.dtprelword x+0x8000
   28952     else
   28953       echo "configure: failed program was" >&5
   28954       cat conftest.s >&5
   28955     fi
   28956     rm -f conftest.o conftest.s
   28957   fi
   28958 fi
   28959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
   28960 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
   28961 
   28962 if test $gcc_cv_as_loongarch_dtprelword != yes; then
   28963 
   28964 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
   28965 
   28966 fi
   28967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
   28968 $as_echo_n "checking assembler for -mrelax option... " >&6; }
   28969 if ${gcc_cv_as_loongarch_relax+:} false; then :
   28970   $as_echo_n "(cached) " >&6
   28971 else
   28972   gcc_cv_as_loongarch_relax=no
   28973   if test x$gcc_cv_as != x; then
   28974     $as_echo '.text' > conftest.s
   28975     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
   28976   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   28977   (eval $ac_try) 2>&5
   28978   ac_status=$?
   28979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   28980   test $ac_status = 0; }; }
   28981     then
   28982 	gcc_cv_as_loongarch_relax=yes
   28983     else
   28984       echo "configure: failed program was" >&5
   28985       cat conftest.s >&5
   28986     fi
   28987     rm -f conftest.o conftest.s
   28988   fi
   28989 fi
   28990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
   28991 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
   28992 if test $gcc_cv_as_loongarch_relax = yes; then
   28993 
   28994 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
   28995 
   28996 fi
   28997 
   28998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
   28999 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
   29000 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false; then :
   29001   $as_echo_n "(cached) " >&6
   29002 else
   29003   gcc_cv_as_loongarch_cond_branch_relax=no
   29004   if test x$gcc_cv_as != x; then
   29005     $as_echo 'a:
   29006        .rept 32769
   29007        nop
   29008        .endr
   29009        beq $a0,$a1,a' > conftest.s
   29010     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
   29011   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29012   (eval $ac_try) 2>&5
   29013   ac_status=$?
   29014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29015   test $ac_status = 0; }; }
   29016     then
   29017 	gcc_cv_as_loongarch_cond_branch_relax=yes
   29018     else
   29019       echo "configure: failed program was" >&5
   29020       cat conftest.s >&5
   29021     fi
   29022     rm -f conftest.o conftest.s
   29023   fi
   29024 fi
   29025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
   29026 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
   29027 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
   29028 
   29029 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
   29030 
   29031 fi
   29032 
   29033     ;;
   29034     s390*-*-*)
   29035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
   29036 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
   29037 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
   29038   $as_echo_n "(cached) " >&6
   29039 else
   29040   gcc_cv_as_s390_gnu_attribute=no
   29041   if test x$gcc_cv_as != x; then
   29042     $as_echo '.gnu_attribute 8,1' > conftest.s
   29043     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   29044   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29045   (eval $ac_try) 2>&5
   29046   ac_status=$?
   29047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29048   test $ac_status = 0; }; }
   29049     then
   29050 	gcc_cv_as_s390_gnu_attribute=yes
   29051     else
   29052       echo "configure: failed program was" >&5
   29053       cat conftest.s >&5
   29054     fi
   29055     rm -f conftest.o conftest.s
   29056   fi
   29057 fi
   29058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
   29059 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
   29060 if test $gcc_cv_as_s390_gnu_attribute = yes; then
   29061 
   29062 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
   29063 
   29064 fi
   29065 
   29066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
   29067 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
   29068 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
   29069   $as_echo_n "(cached) " >&6
   29070 else
   29071   gcc_cv_as_s390_machine_machinemode=no
   29072   if test x$gcc_cv_as != x; then
   29073     $as_echo '	.machinemode push
   29074 	.machinemode pop
   29075 	.machine push
   29076 	.machine pop' > conftest.s
   29077     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   29078   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29079   (eval $ac_try) 2>&5
   29080   ac_status=$?
   29081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29082   test $ac_status = 0; }; }
   29083     then
   29084 	gcc_cv_as_s390_machine_machinemode=yes
   29085     else
   29086       echo "configure: failed program was" >&5
   29087       cat conftest.s >&5
   29088     fi
   29089     rm -f conftest.o conftest.s
   29090   fi
   29091 fi
   29092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
   29093 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
   29094 if test $gcc_cv_as_s390_machine_machinemode = yes; then
   29095 
   29096 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
   29097 
   29098 fi
   29099 
   29100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
   29101 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
   29102 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
   29103   $as_echo_n "(cached) " >&6
   29104 else
   29105   gcc_cv_as_s390_architecture_modifiers=no
   29106   if test x$gcc_cv_as != x; then
   29107     $as_echo '	.machine z13+vx ' > conftest.s
   29108     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   29109   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29110   (eval $ac_try) 2>&5
   29111   ac_status=$?
   29112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29113   test $ac_status = 0; }; }
   29114     then
   29115 	gcc_cv_as_s390_architecture_modifiers=yes
   29116     else
   29117       echo "configure: failed program was" >&5
   29118       cat conftest.s >&5
   29119     fi
   29120     rm -f conftest.o conftest.s
   29121   fi
   29122 fi
   29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
   29124 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
   29125 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
   29126 
   29127 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
   29128 
   29129 fi
   29130 
   29131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
   29132 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
   29133 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
   29134   $as_echo_n "(cached) " >&6
   29135 else
   29136   gcc_cv_as_s390_vector_loadstore_alignment_hints=no
   29137   if test x$gcc_cv_as != x; then
   29138     $as_echo '	vl %v24,0(%r15),3 ' > conftest.s
   29139     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   29140   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29141   (eval $ac_try) 2>&5
   29142   ac_status=$?
   29143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29144   test $ac_status = 0; }; }
   29145     then
   29146 	gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
   29147     else
   29148       echo "configure: failed program was" >&5
   29149       cat conftest.s >&5
   29150     fi
   29151     rm -f conftest.o conftest.s
   29152   fi
   29153 fi
   29154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
   29155 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
   29156 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
   29157 
   29158 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
   29159 
   29160 fi
   29161 
   29162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
   29163 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
   29164 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
   29165   $as_echo_n "(cached) " >&6
   29166 else
   29167   gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
   29168   if test x$gcc_cv_as != x; then
   29169     $as_echo '	vl %v24,0(%r15),3 ' > conftest.s
   29170     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
   29171   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29172   (eval $ac_try) 2>&5
   29173   ac_status=$?
   29174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29175   test $ac_status = 0; }; }
   29176     then
   29177 	gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
   29178     else
   29179       echo "configure: failed program was" >&5
   29180       cat conftest.s >&5
   29181     fi
   29182     rm -f conftest.o conftest.s
   29183   fi
   29184 fi
   29185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
   29186 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
   29187 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
   29188 
   29189 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
   29190 
   29191 fi
   29192 
   29193 
   29194     ;;
   29195 esac
   29196 
   29197 # Mips, LoongArch and HP-UX need the GNU assembler.
   29198 # Linux on IA64 might be able to use the Intel assembler.
   29199 
   29200 case "$target" in
   29201   mips*-*-* | loongarch*-*-* | *-*-hpux* )
   29202     if test x$gas_flag = xyes \
   29203        || test x"$host" != x"$build" \
   29204        || test ! -x "$gcc_cv_as" \
   29205        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
   29206       :
   29207     else
   29208       echo "*** This configuration requires the GNU assembler" >&2
   29209       exit 1
   29210     fi
   29211     ;;
   29212 esac
   29213 
   29214 # This tests if the assembler supports two registers for global_load functions
   29215 # (like in LLVM versions <12) or one register (like in LLVM 12).
   29216 case "$target" in
   29217   amdgcn-* | gcn-*)
   29218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler fix for global_load functions" >&5
   29219 $as_echo_n "checking assembler fix for global_load functions... " >&6; }
   29220     gcc_cv_as_gcn_global_load_fixed=yes
   29221     if test x$gcc_cv_as != x; then
   29222       cat > conftest.s <<EOF
   29223 	global_store_dwordx2    v[1:2], v[4:5], s[14:15]
   29224 EOF
   29225       if $gcc_cv_as -triple=amdgcn--amdhsa -filetype=obj -mcpu=gfx900 -o conftest.o conftest.s > /dev/null 2>&1; then
   29226         gcc_cv_as_gcn_global_load_fixed=no
   29227       fi
   29228       rm -f conftest.s conftest.o conftest
   29229     fi
   29230     global_load_fixed=`if test x$gcc_cv_as_gcn_global_load_fixed = xyes; then echo 1; else echo 0; fi`
   29231 
   29232 cat >>confdefs.h <<_ACEOF
   29233 #define HAVE_GCN_ASM_GLOBAL_LOAD_FIXED $global_load_fixed
   29234 _ACEOF
   29235 
   29236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_global_load_fixed" >&5
   29237 $as_echo "$gcc_cv_as_gcn_global_load_fixed" >&6; }
   29238     ;;
   29239 esac
   29240 
   29241 case "$target" in
   29242   amdgcn-* | gcn-*)
   29243     # Test the LLVM assembler syntax dialect; they have made a number of
   29244     # changes between LLVM 12 & 13 without any backward compatibility.
   29245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v2/3 syntax" >&5
   29246 $as_echo_n "checking assembler for assembler amdgcn_target v2/3 syntax... " >&6; }
   29247 if ${gcc_cv_as_gcn_asm_v3_syntax+:} false; then :
   29248   $as_echo_n "(cached) " >&6
   29249 else
   29250   gcc_cv_as_gcn_asm_v3_syntax=no
   29251   if test x$gcc_cv_as != x; then
   29252     $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx906+xnack"' > conftest.s
   29253     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack -o conftest.o conftest.s >&5'
   29254   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29255   (eval $ac_try) 2>&5
   29256   ac_status=$?
   29257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29258   test $ac_status = 0; }; }
   29259     then
   29260 	gcc_cv_as_gcn_asm_v3_syntax=yes
   29261     else
   29262       echo "configure: failed program was" >&5
   29263       cat conftest.s >&5
   29264     fi
   29265     rm -f conftest.o conftest.s
   29266   fi
   29267 fi
   29268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v3_syntax" >&5
   29269 $as_echo "$gcc_cv_as_gcn_asm_v3_syntax" >&6; }
   29270 if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
   29271 
   29272 $as_echo "#define HAVE_GCN_ASM_V3_SYNTAX 1" >>confdefs.h
   29273 
   29274 fi
   29275 
   29276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v4 syntax" >&5
   29277 $as_echo_n "checking assembler for assembler amdgcn_target v4 syntax... " >&6; }
   29278 if ${gcc_cv_as_gcn_asm_v4_syntax+:} false; then :
   29279   $as_echo_n "(cached) " >&6
   29280 else
   29281   gcc_cv_as_gcn_asm_v4_syntax=no
   29282   if test x$gcc_cv_as != x; then
   29283     $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx908:xnack+"' > conftest.s
   29284     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack -o conftest.o conftest.s >&5'
   29285   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29286   (eval $ac_try) 2>&5
   29287   ac_status=$?
   29288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29289   test $ac_status = 0; }; }
   29290     then
   29291 	gcc_cv_as_gcn_asm_v4_syntax=yes
   29292     else
   29293       echo "configure: failed program was" >&5
   29294       cat conftest.s >&5
   29295     fi
   29296     rm -f conftest.o conftest.s
   29297   fi
   29298 fi
   29299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v4_syntax" >&5
   29300 $as_echo "$gcc_cv_as_gcn_asm_v4_syntax" >&6; }
   29301 if test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
   29302 
   29303 $as_echo "#define HAVE_GCN_ASM_V4_SYNTAX 1" >>confdefs.h
   29304 
   29305 fi
   29306 
   29307 
   29308     # Some attribute names changed in the move to v4 ...
   29309     if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
   29310 	sramopt="+sram-ecc"
   29311 	sramattr="+sram-ecc"
   29312 	xnackattr="+xnack"
   29313     elif test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
   29314 	sramopt="+sramecc"
   29315 	sramattr=":sramecc+"
   29316 	xnackattr=":xnack+"
   29317     else
   29318 	as_fn_error $? "Unrecognised assembler version" "$LINENO" 5
   29319     fi
   29320 
   29321     # Test whether the LLVM assembler accepts -mattr=+xnack without any
   29322     # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
   29323     # LLVM 12+ throws a warning for GPUs without support.
   29324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for fiji" >&5
   29325 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for fiji... " >&6; }
   29326 if ${gcc_cv_as_gcn_xnack_ecc_fiji+:} false; then :
   29327   $as_echo_n "(cached) " >&6
   29328 else
   29329   gcc_cv_as_gcn_xnack_ecc_fiji=no
   29330   if test x$gcc_cv_as != x; then
   29331     $as_echo '' > conftest.s
   29332     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
   29333   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29334   (eval $ac_try) 2>&5
   29335   ac_status=$?
   29336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29337   test $ac_status = 0; }; }
   29338     then
   29339 	grep "." conftest.err >&5 \
   29340        || gcc_cv_as_gcn_xnack_ecc_fiji=yes
   29341     else
   29342       echo "configure: failed program was" >&5
   29343       cat conftest.s >&5
   29344     fi
   29345     rm -f conftest.o conftest.s
   29346   fi
   29347 fi
   29348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_fiji" >&5
   29349 $as_echo "$gcc_cv_as_gcn_xnack_ecc_fiji" >&6; }
   29350 if test $gcc_cv_as_gcn_xnack_ecc_fiji = yes; then
   29351 
   29352 $as_echo "#define HAVE_GCN_XNACK_FIJI 1" >>confdefs.h
   29353 
   29354 fi
   29355 
   29356     rm -f conftest.err
   29357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx900" >&5
   29358 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx900... " >&6; }
   29359 if ${gcc_cv_as_gcn_xnack_ecc_gfx900+:} false; then :
   29360   $as_echo_n "(cached) " >&6
   29361 else
   29362   gcc_cv_as_gcn_xnack_ecc_gfx900=no
   29363   if test x$gcc_cv_as != x; then
   29364     $as_echo '' > conftest.s
   29365     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
   29366   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29367   (eval $ac_try) 2>&5
   29368   ac_status=$?
   29369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29370   test $ac_status = 0; }; }
   29371     then
   29372 	grep "." conftest.err >&5 \
   29373        || gcc_cv_as_gcn_xnack_ecc_gfx900=yes
   29374     else
   29375       echo "configure: failed program was" >&5
   29376       cat conftest.s >&5
   29377     fi
   29378     rm -f conftest.o conftest.s
   29379   fi
   29380 fi
   29381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx900" >&5
   29382 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx900" >&6; }
   29383 if test $gcc_cv_as_gcn_xnack_ecc_gfx900 = yes; then
   29384 
   29385 $as_echo "#define HAVE_GCN_XNACK_GFX900 1" >>confdefs.h
   29386 
   29387 fi
   29388 
   29389     rm -f conftest.err
   29390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx906" >&5
   29391 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx906... " >&6; }
   29392 if ${gcc_cv_as_gcn_xnack_ecc_gfx906+:} false; then :
   29393   $as_echo_n "(cached) " >&6
   29394 else
   29395   gcc_cv_as_gcn_xnack_ecc_gfx906=no
   29396   if test x$gcc_cv_as != x; then
   29397     $as_echo '' > conftest.s
   29398     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
   29399   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29400   (eval $ac_try) 2>&5
   29401   ac_status=$?
   29402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29403   test $ac_status = 0; }; }
   29404     then
   29405 	grep "." conftest.err >&5 \
   29406        || gcc_cv_as_gcn_xnack_ecc_gfx906=yes
   29407     else
   29408       echo "configure: failed program was" >&5
   29409       cat conftest.s >&5
   29410     fi
   29411     rm -f conftest.o conftest.s
   29412   fi
   29413 fi
   29414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx906" >&5
   29415 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx906" >&6; }
   29416 if test $gcc_cv_as_gcn_xnack_ecc_gfx906 = yes; then
   29417 
   29418 $as_echo "#define HAVE_GCN_XNACK_GFX906 1" >>confdefs.h
   29419 
   29420 fi
   29421 
   29422     rm -f conftest.err
   29423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx908" >&5
   29424 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx908... " >&6; }
   29425 if ${gcc_cv_as_gcn_xnack_ecc_gfx908+:} false; then :
   29426   $as_echo_n "(cached) " >&6
   29427 else
   29428   gcc_cv_as_gcn_xnack_ecc_gfx908=no
   29429   if test x$gcc_cv_as != x; then
   29430     $as_echo '' > conftest.s
   29431     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
   29432   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29433   (eval $ac_try) 2>&5
   29434   ac_status=$?
   29435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29436   test $ac_status = 0; }; }
   29437     then
   29438 	grep "." conftest.err >&5 \
   29439        || gcc_cv_as_gcn_xnack_ecc_gfx908=yes
   29440     else
   29441       echo "configure: failed program was" >&5
   29442       cat conftest.s >&5
   29443     fi
   29444     rm -f conftest.o conftest.s
   29445   fi
   29446 fi
   29447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx908" >&5
   29448 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx908" >&6; }
   29449 if test $gcc_cv_as_gcn_xnack_ecc_gfx908 = yes; then
   29450 
   29451 $as_echo "#define HAVE_GCN_XNACK_GFX908 1" >>confdefs.h
   29452 
   29453 fi
   29454 
   29455     rm -f conftest.err
   29456 
   29457     # Test whether the LLVM assembler accepts -mattr=+sramecc without any
   29458     # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
   29459     # (some?) LLVM 12 rejects it for all GPUs, and LLVM13 throws a warning
   29460     # for GPUs without support.
   29461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for fiji" >&5
   29462 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for fiji... " >&6; }
   29463 if ${gcc_cv_as_gcn_sram_ecc_fiji+:} false; then :
   29464   $as_echo_n "(cached) " >&6
   29465 else
   29466   gcc_cv_as_gcn_sram_ecc_fiji=no
   29467   if test x$gcc_cv_as != x; then
   29468     $as_echo '' > conftest.s
   29469     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
   29470   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29471   (eval $ac_try) 2>&5
   29472   ac_status=$?
   29473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29474   test $ac_status = 0; }; }
   29475     then
   29476 	grep "." conftest.err >&5 \
   29477        || gcc_cv_as_gcn_sram_ecc_fiji=yes
   29478     else
   29479       echo "configure: failed program was" >&5
   29480       cat conftest.s >&5
   29481     fi
   29482     rm -f conftest.o conftest.s
   29483   fi
   29484 fi
   29485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_fiji" >&5
   29486 $as_echo "$gcc_cv_as_gcn_sram_ecc_fiji" >&6; }
   29487 if test $gcc_cv_as_gcn_sram_ecc_fiji = yes; then
   29488 
   29489 $as_echo "#define HAVE_GCN_SRAM_ECC_FIJI 1" >>confdefs.h
   29490 
   29491 fi
   29492 
   29493     rm -f conftest.err
   29494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx900" >&5
   29495 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx900... " >&6; }
   29496 if ${gcc_cv_as_gcn_sram_ecc_gfx900+:} false; then :
   29497   $as_echo_n "(cached) " >&6
   29498 else
   29499   gcc_cv_as_gcn_sram_ecc_gfx900=no
   29500   if test x$gcc_cv_as != x; then
   29501     $as_echo '' > conftest.s
   29502     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
   29503   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29504   (eval $ac_try) 2>&5
   29505   ac_status=$?
   29506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29507   test $ac_status = 0; }; }
   29508     then
   29509 	grep "." conftest.err >&5 \
   29510        || gcc_cv_as_gcn_sram_ecc_gfx900=yes
   29511     else
   29512       echo "configure: failed program was" >&5
   29513       cat conftest.s >&5
   29514     fi
   29515     rm -f conftest.o conftest.s
   29516   fi
   29517 fi
   29518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx900" >&5
   29519 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx900" >&6; }
   29520 if test $gcc_cv_as_gcn_sram_ecc_gfx900 = yes; then
   29521 
   29522 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX900 1" >>confdefs.h
   29523 
   29524 fi
   29525 
   29526     rm -f conftest.err
   29527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx906" >&5
   29528 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx906... " >&6; }
   29529 if ${gcc_cv_as_gcn_sram_ecc_gfx906+:} false; then :
   29530   $as_echo_n "(cached) " >&6
   29531 else
   29532   gcc_cv_as_gcn_sram_ecc_gfx906=no
   29533   if test x$gcc_cv_as != x; then
   29534     $as_echo '' > conftest.s
   29535     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
   29536   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29537   (eval $ac_try) 2>&5
   29538   ac_status=$?
   29539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29540   test $ac_status = 0; }; }
   29541     then
   29542 	grep "." conftest.err >&5 \
   29543        || gcc_cv_as_gcn_sram_ecc_gfx906=yes
   29544     else
   29545       echo "configure: failed program was" >&5
   29546       cat conftest.s >&5
   29547     fi
   29548     rm -f conftest.o conftest.s
   29549   fi
   29550 fi
   29551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx906" >&5
   29552 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx906" >&6; }
   29553 if test $gcc_cv_as_gcn_sram_ecc_gfx906 = yes; then
   29554 
   29555 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX906 1" >>confdefs.h
   29556 
   29557 fi
   29558 
   29559     rm -f conftest.err
   29560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx908" >&5
   29561 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx908... " >&6; }
   29562 if ${gcc_cv_as_gcn_sram_ecc_gfx908+:} false; then :
   29563   $as_echo_n "(cached) " >&6
   29564 else
   29565   gcc_cv_as_gcn_sram_ecc_gfx908=no
   29566   if test x$gcc_cv_as != x; then
   29567     $as_echo '' > conftest.s
   29568     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
   29569   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29570   (eval $ac_try) 2>&5
   29571   ac_status=$?
   29572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29573   test $ac_status = 0; }; }
   29574     then
   29575 	grep "." conftest.err >&5 \
   29576        || gcc_cv_as_gcn_sram_ecc_gfx908=yes
   29577     else
   29578       echo "configure: failed program was" >&5
   29579       cat conftest.s >&5
   29580     fi
   29581     rm -f conftest.o conftest.s
   29582   fi
   29583 fi
   29584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx908" >&5
   29585 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx908" >&6; }
   29586 if test $gcc_cv_as_gcn_sram_ecc_gfx908 = yes; then
   29587 
   29588 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX908 1" >>confdefs.h
   29589 
   29590 fi
   29591 
   29592     rm -f conftest.err
   29593     ;;
   29594   arm*)
   29595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
   29596 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
   29597 if ${gcc_cv_as_arm_option_extensions+:} false; then :
   29598   $as_echo_n "(cached) " >&6
   29599 else
   29600   gcc_cv_as_arm_option_extensions=no
   29601   if test x$gcc_cv_as != x; then
   29602     $as_echo '.text
   29603 	.thumb
   29604 	.syntax unified
   29605 	vmov.f32 s0, s1' > conftest.s
   29606     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
   29607   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29608   (eval $ac_try) 2>&5
   29609   ac_status=$?
   29610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29611   test $ac_status = 0; }; }
   29612     then
   29613 	gcc_cv_as_arm_option_extensions=yes
   29614     else
   29615       echo "configure: failed program was" >&5
   29616       cat conftest.s >&5
   29617     fi
   29618     rm -f conftest.o conftest.s
   29619   fi
   29620 fi
   29621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
   29622 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
   29623 if test $gcc_cv_as_arm_option_extensions = yes; then
   29624 
   29625 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
   29626 
   29627 fi
   29628 
   29629 esac
   29630 
   29631 # ??? Not all targets support dwarf2 debug_line, even within a version
   29632 # of gas.  Moreover, we need to emit a valid instruction to trigger any
   29633 # info to the output file.  So, as supported targets are added to gas 2.11,
   29634 # add some instruction here to (also) show we expect this might work.
   29635 # ??? Once 2.11 is released, probably need to add first known working
   29636 # version to the per-target configury.
   29637 case "$cpu_type" in
   29638   aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
   29639   | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
   29640   | tilegx | tilepro | visium | xstormy16 | xtensa)
   29641     insn="nop"
   29642     ;;
   29643   ia64 | s390)
   29644     insn="nop 0"
   29645     ;;
   29646   mmix)
   29647     insn="swym 0"
   29648     ;;
   29649 esac
   29650 if test x"$insn" != x; then
   29651  conftest_s="\
   29652 	.file 1 \"conftest.s\"
   29653 	.loc 1 3 0
   29654 	$insn"
   29655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
   29656 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
   29657 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
   29658   $as_echo_n "(cached) " >&6
   29659 else
   29660   gcc_cv_as_dwarf2_debug_line=no
   29661   if test x$gcc_cv_as != x; then
   29662     $as_echo "$conftest_s" > conftest.s
   29663     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   29664   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29665   (eval $ac_try) 2>&5
   29666   ac_status=$?
   29667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29668   test $ac_status = 0; }; }
   29669     then
   29670 	if test x$gcc_cv_objdump != x \
   29671    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
   29672       | grep debug_line > /dev/null 2>&1; then
   29673      gcc_cv_as_dwarf2_debug_line=yes
   29674    elif test x$gcc_cv_otool != x \
   29675    && $gcc_cv_otool -l conftest.o 2> /dev/null \
   29676       | grep debug_line > /dev/null 2>&1; then
   29677      gcc_cv_as_dwarf2_debug_line=yes
   29678    fi
   29679     else
   29680       echo "configure: failed program was" >&5
   29681       cat conftest.s >&5
   29682     fi
   29683     rm -f conftest.o conftest.s
   29684   fi
   29685 fi
   29686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
   29687 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
   29688 
   29689 
   29690 
   29691 # The .debug_line file table must be in the exact order that
   29692 # we specified the files, since these indices are also used
   29693 # by DW_AT_decl_file.  Approximate this test by testing if
   29694 # the assembler bitches if the same index is assigned twice.
   29695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
   29696 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
   29697 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
   29698   $as_echo_n "(cached) " >&6
   29699 else
   29700   gcc_cv_as_dwarf2_file_buggy=no
   29701   if test x$gcc_cv_as != x; then
   29702     $as_echo '	.file 1 "foo.s"
   29703 	.file 1 "bar.s"' > conftest.s
   29704     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   29705   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29706   (eval $ac_try) 2>&5
   29707   ac_status=$?
   29708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29709   test $ac_status = 0; }; }
   29710     then
   29711 	gcc_cv_as_dwarf2_file_buggy=yes
   29712     else
   29713       echo "configure: failed program was" >&5
   29714       cat conftest.s >&5
   29715     fi
   29716     rm -f conftest.o conftest.s
   29717   fi
   29718 fi
   29719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
   29720 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
   29721 
   29722 
   29723 
   29724  if test $gcc_cv_as_dwarf2_debug_line = yes \
   29725  && test $gcc_cv_as_dwarf2_file_buggy = no; then
   29726 
   29727 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
   29728 
   29729 
   29730     if test $gcc_cv_as_leb128 = yes; then
   29731 	conftest_s="\
   29732 	.file 1 \"conftest.s\"
   29733 	.loc 1 3 0 view .LVU1
   29734 	$insn
   29735 	.data
   29736 	.uleb128 .LVU1
   29737 	.uleb128 .LVU1
   29738 "
   29739 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
   29740 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
   29741 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
   29742   $as_echo_n "(cached) " >&6
   29743 else
   29744   gcc_cv_as_dwarf2_debug_view=no
   29745   if test x$gcc_cv_as != x; then
   29746     $as_echo "$conftest_s" > conftest.s
   29747     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   29748   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29749   (eval $ac_try) 2>&5
   29750   ac_status=$?
   29751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29752   test $ac_status = 0; }; }
   29753     then
   29754 	gcc_cv_as_dwarf2_debug_view=yes
   29755     else
   29756       echo "configure: failed program was" >&5
   29757       cat conftest.s >&5
   29758     fi
   29759     rm -f conftest.o conftest.s
   29760   fi
   29761 fi
   29762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
   29763 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
   29764 if test $gcc_cv_as_dwarf2_debug_view = yes; then
   29765 
   29766 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
   29767 
   29768 fi
   29769 
   29770     fi
   29771  fi
   29772 
   29773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
   29774 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
   29775 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
   29776   $as_echo_n "(cached) " >&6
   29777 else
   29778   gcc_cv_as_gdwarf2_flag=no
   29779   if test x$gcc_cv_as != x; then
   29780     $as_echo "$insn" > conftest.s
   29781     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
   29782   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29783   (eval $ac_try) 2>&5
   29784   ac_status=$?
   29785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29786   test $ac_status = 0; }; }
   29787     then
   29788 	gcc_cv_as_gdwarf2_flag=yes
   29789     else
   29790       echo "configure: failed program was" >&5
   29791       cat conftest.s >&5
   29792     fi
   29793     rm -f conftest.o conftest.s
   29794   fi
   29795 fi
   29796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
   29797 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
   29798 if test $gcc_cv_as_gdwarf2_flag = yes; then
   29799 
   29800 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
   29801 
   29802 fi
   29803 
   29804 
   29805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
   29806 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
   29807 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
   29808   $as_echo_n "(cached) " >&6
   29809 else
   29810   gcc_cv_as_gdwarf_5_flag=no
   29811   if test x$gcc_cv_as != x; then
   29812     $as_echo "$insn" > conftest.s
   29813     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
   29814   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   29815   (eval $ac_try) 2>&5
   29816   ac_status=$?
   29817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   29818   test $ac_status = 0; }; }
   29819     then
   29820 	if test x$gcc_cv_objdump != x \
   29821       && $gcc_cv_objdump -Wi conftest.o 2>&1 \
   29822 	 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
   29823      gcc_cv_as_gdwarf_5_flag=yes;
   29824    fi
   29825     else
   29826       echo "configure: failed program was" >&5
   29827       cat conftest.s >&5
   29828     fi
   29829     rm -f conftest.o conftest.s
   29830   fi
   29831 fi
   29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
   29833 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
   29834 if test $gcc_cv_as_gdwarf_5_flag = yes; then
   29835 
   29836 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
   29837 
   29838 fi
   29839 
   29840 
   29841  case $target_os in
   29842    win32 | pe | cygwin* | mingw32*)
   29843      section_flags=\"dr\"
   29844      function_type=".def foo; .scl 2; .type 32; .endef"
   29845      function_size="";;
   29846    *)
   29847      section_flags=\"\",%progbits
   29848      function_type=".type foo, %function"
   29849      function_size=".size foo, .-foo";;
   29850  esac
   29851  dwarf4_debug_info_size=0x46
   29852  dwarf4_high_pc_form=7
   29853  dwarf4_debug_aranges_size=0x2c
   29854  dwarf4_line_sz=9
   29855  for dwarf4_addr_size in 8 4; do
   29856    conftest_s="\
   29857 	.file	\"a.c\"
   29858 	.text
   29859 .Ltext0:
   29860 	.p2align 4
   29861 	.globl	foo
   29862 	$function_type
   29863 foo:
   29864 .LFB0:
   29865 .LM1:
   29866 	$insn
   29867 .LM2:
   29868 .LFE0:
   29869 	$function_size
   29870 .Letext0:
   29871 	.section	.debug_info,$section_flags
   29872 .Ldebug_info0:
   29873 	.4byte	$dwarf4_debug_info_size
   29874 	.2byte	0x4
   29875 	.4byte	.Ldebug_abbrev0
   29876 	.byte	0x$dwarf4_addr_size
   29877 	.byte	0x1
   29878 	.ascii \"GNU C17\\0\"
   29879 	.byte	0xc
   29880 	.ascii \"a.c\\0\"
   29881 	.ascii \"/\\0\"
   29882 	.${dwarf4_addr_size}byte	.Ltext0
   29883 	.${dwarf4_addr_size}byte	.Letext0-.Ltext0
   29884 	.4byte	.Ldebug_line0
   29885 	.byte	0x2
   29886 	.ascii \"foo\\0\"
   29887 	.byte	0x1
   29888 	.byte	0x2
   29889 	.byte	0x1
   29890 	.${dwarf4_addr_size}byte	.LFB0
   29891 	.${dwarf4_addr_size}byte	.LFE0-.LFB0
   29892 	.byte	0x1
   29893 	.byte	0x9c
   29894 	.byte	0
   29895 	.section	.debug_abbrev,$section_flags
   29896 .Ldebug_abbrev0:
   29897 	.byte	0x1
   29898 	.byte	0x11
   29899 	.byte	0x1
   29900 	.byte	0x25
   29901 	.byte	0x8
   29902 	.byte	0x13
   29903 	.byte	0xb
   29904 	.byte	0x3
   29905 	.byte	0x8
   29906 	.byte	0x1b
   29907 	.byte	0x8
   29908 	.byte	0x11
   29909 	.byte	0x1
   29910 	.byte	0x12
   29911 	.byte	0x$dwarf4_high_pc_form
   29912 	.byte	0x10
   29913 	.byte	0x17
   29914 	.byte	0
   29915 	.byte	0
   29916 	.byte	0x2
   29917 	.byte	0x2e
   29918 	.byte	0
   29919 	.byte	0x3f
   29920 	.byte	0x19
   29921 	.byte	0x3
   29922 	.byte	0x8
   29923 	.byte	0x3a
   29924 	.byte	0xb
   29925 	.byte	0x3b
   29926 	.byte	0xb
   29927 	.byte	0x39
   29928 	.byte	0xb
   29929 	.byte	0x11
   29930 	.byte	0x1
   29931 	.byte	0x12
   29932 	.byte	0x$dwarf4_high_pc_form
   29933 	.byte	0x40
   29934 	.byte	0x18
   29935 	.byte	0
   29936 	.byte	0
   29937 	.byte	0
   29938 	.section	.debug_aranges,$section_flags
   29939 	.4byte	$dwarf4_debug_aranges_size
   29940 	.2byte	0x2
   29941 	.4byte	.Ldebug_info0
   29942 	.byte	0x8
   29943 	.byte	0
   29944 	.2byte	0
   29945 	.2byte	0
   29946 	.${dwarf4_addr_size}byte	.Ltext0
   29947 	.${dwarf4_addr_size}byte	.Letext0-.Ltext0
   29948 	.${dwarf4_addr_size}byte	0
   29949 	.${dwarf4_addr_size}byte	0
   29950 	.section	.debug_line,$section_flags
   29951 .Ldebug_line0:
   29952 	.4byte	.LELT0-.LSLT0
   29953 .LSLT0:
   29954 	.2byte	0x4
   29955 	.4byte	.LELTP0-.LASLTP0
   29956 .LASLTP0:
   29957 	.byte	0x1
   29958 	.byte	0x1
   29959 	.byte	0x1
   29960 	.byte	0xf6
   29961 	.byte	0xf2
   29962 	.byte	0xd
   29963 	.byte	0
   29964 	.byte	0x1
   29965 	.byte	0x1
   29966 	.byte	0x1
   29967 	.byte	0x1
   29968 	.byte	0
   29969 	.byte	0
   29970 	.byte	0
   29971 	.byte	0x1
   29972 	.byte	0
   29973 	.byte	0
   29974 	.byte	0x1
   29975 	.byte	0
   29976 	.ascii \"a.c\\0\"
   29977 	.byte	0
   29978 	.byte	0
   29979 	.byte	0
   29980 	.byte	0
   29981 .LELTP0:
   29982 	.byte	0
   29983 	.byte	0x$dwarf4_line_sz
   29984 	.byte	0x2
   29985 	.${dwarf4_addr_size}byte	.LM1
   29986 	.byte	0x18
   29987 	.byte	0x5
   29988 	.byte	0x1
   29989 	.byte	0
   29990 	.byte	0x$dwarf4_line_sz
   29991 	.byte	0x2
   29992 	.${dwarf4_addr_size}byte	.LM2
   29993 	.byte	0x1
   29994 	.byte	0x5
   29995 	.byte	0x1
   29996 	.byte	0
   29997 	.byte	0x$dwarf4_line_sz
   29998 	.byte	0x2
   29999 	.${dwarf4_addr_size}byte	.Letext0
   30000 	.byte	0
   30001 	.byte	0x1
   30002 	.byte	0x1
   30003 .LELT0:
   30004 	.section	.debug_str,$section_flags
   30005 	.ident	\"GCC\"
   30006 "
   30007    dwarf4_success=no
   30008    if test $dwarf4_addr_size = 4; then
   30009      { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
   30010 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
   30011 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
   30012   $as_echo_n "(cached) " >&6
   30013 else
   30014   gcc_cv_as_debug_line_32_flag=no
   30015   if test x$gcc_cv_as != x; then
   30016     $as_echo "$conftest_s" > conftest.s
   30017     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   30018   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   30019   (eval $ac_try) 2>&5
   30020   ac_status=$?
   30021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   30022   test $ac_status = 0; }; }
   30023     then
   30024 	gcc_cv_as_debug_line_32_flag=yes
   30025     else
   30026       echo "configure: failed program was" >&5
   30027       cat conftest.s >&5
   30028     fi
   30029     rm -f conftest.o conftest.s
   30030   fi
   30031 fi
   30032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
   30033 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
   30034 if test $gcc_cv_as_debug_line_32_flag = yes; then
   30035   dwarf4_success=yes
   30036 fi
   30037 
   30038    else
   30039      { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
   30040 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
   30041 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
   30042   $as_echo_n "(cached) " >&6
   30043 else
   30044   gcc_cv_as_debug_line_64_flag=no
   30045   if test x$gcc_cv_as != x; then
   30046     $as_echo "$conftest_s" > conftest.s
   30047     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   30048   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   30049   (eval $ac_try) 2>&5
   30050   ac_status=$?
   30051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   30052   test $ac_status = 0; }; }
   30053     then
   30054 	gcc_cv_as_debug_line_64_flag=yes
   30055     else
   30056       echo "configure: failed program was" >&5
   30057       cat conftest.s >&5
   30058     fi
   30059     rm -f conftest.o conftest.s
   30060   fi
   30061 fi
   30062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
   30063 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
   30064 if test $gcc_cv_as_debug_line_64_flag = yes; then
   30065   dwarf4_success=yes
   30066 fi
   30067 
   30068    fi
   30069    if test $dwarf4_success = yes; then
   30070      dwarf4_success=no
   30071      { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
   30072 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
   30073 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
   30074   $as_echo_n "(cached) " >&6
   30075 else
   30076   gcc_cv_as_dwarf_4_debug_line_flag=no
   30077   if test x$gcc_cv_as != x; then
   30078     $as_echo "$conftest_s" > conftest.s
   30079     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
   30080   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   30081   (eval $ac_try) 2>&5
   30082   ac_status=$?
   30083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   30084   test $ac_status = 0; }; }
   30085     then
   30086 	gcc_cv_as_dwarf_4_debug_line_flag=yes
   30087     else
   30088       echo "configure: failed program was" >&5
   30089       cat conftest.s >&5
   30090     fi
   30091     rm -f conftest.o conftest.s
   30092   fi
   30093 fi
   30094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
   30095 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
   30096 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
   30097   dwarf4_success=yes
   30098 fi
   30099 
   30100      break
   30101    fi
   30102    dwarf4_debug_info_size=0x36
   30103    dwarf4_high_pc_form=6
   30104    dwarf4_debug_aranges_size=0x1c
   30105    dwarf4_line_sz=5
   30106  done
   30107 
   30108  if test $dwarf4_success = yes; then
   30109    conftest_s="\
   30110 	.file	\"foo.c\"
   30111 	.text
   30112 bar:
   30113 #APP
   30114 # 82 \"xxx.h\" 1
   30115 	$insn
   30116 # 0 \"\" 2
   30117 #NO_APP
   30118 	$insn
   30119 foo:
   30120 	.file 1 \"foo.c\"
   30121 	$insn
   30122 	.file 2 \"foo.h\"
   30123 	ret
   30124 "
   30125    dwarf4_success=no
   30126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
   30127 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
   30128 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
   30129   $as_echo_n "(cached) " >&6
   30130 else
   30131   gcc_cv_as_dwarf_4_app_flag=no
   30132   if test x$gcc_cv_as != x; then
   30133     $as_echo "$conftest_s" > conftest.s
   30134     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
   30135   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   30136   (eval $ac_try) 2>&5
   30137   ac_status=$?
   30138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   30139   test $ac_status = 0; }; }
   30140     then
   30141 	gcc_cv_as_dwarf_4_app_flag=yes
   30142     else
   30143       echo "configure: failed program was" >&5
   30144       cat conftest.s >&5
   30145     fi
   30146     rm -f conftest.o conftest.s
   30147   fi
   30148 fi
   30149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
   30150 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
   30151 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
   30152   dwarf4_success=yes
   30153 fi
   30154 
   30155  fi
   30156 
   30157  if test $dwarf4_success = yes; then
   30158    conftest_s="\
   30159 	.text
   30160 	.globl	foo
   30161 	$function_type
   30162 foo:
   30163 	$insn
   30164 	$function_size
   30165 	.file	1 \"foo.c\"
   30166 "
   30167    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
   30168 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
   30169 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
   30170   $as_echo_n "(cached) " >&6
   30171 else
   30172   gcc_cv_as_working_gdwarf_n_flag=no
   30173   if test x$gcc_cv_as != x; then
   30174     $as_echo "$conftest_s" > conftest.s
   30175     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
   30176   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   30177   (eval $ac_try) 2>&5
   30178   ac_status=$?
   30179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   30180   test $ac_status = 0; }; }
   30181     then
   30182 	      if test x$gcc_cv_objdump != x \
   30183 	 && $gcc_cv_objdump -W conftest.o 2>&1 \
   30184 		| grep conftest.s > /dev/null 2>&1; then
   30185 	gcc_cv_as_working_gdwarf_n_flag=no
   30186       else
   30187 	gcc_cv_as_working_gdwarf_n_flag=yes
   30188       fi
   30189           else
   30190       echo "configure: failed program was" >&5
   30191       cat conftest.s >&5
   30192     fi
   30193     rm -f conftest.o conftest.s
   30194   fi
   30195 fi
   30196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
   30197 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
   30198 
   30199 
   30200    if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
   30201 
   30202 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
   30203 
   30204    fi
   30205  fi
   30206 
   30207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
   30208 $as_echo_n "checking assembler for --gstabs option... " >&6; }
   30209 if ${gcc_cv_as_gstabs_flag+:} false; then :
   30210   $as_echo_n "(cached) " >&6
   30211 else
   30212   gcc_cv_as_gstabs_flag=no
   30213   if test x$gcc_cv_as != x; then
   30214     $as_echo "$insn" > conftest.s
   30215     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
   30216   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   30217   (eval $ac_try) 2>&5
   30218   ac_status=$?
   30219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   30220   test $ac_status = 0; }; }
   30221     then
   30222 	gcc_cv_as_gstabs_flag=yes
   30223     else
   30224       echo "configure: failed program was" >&5
   30225       cat conftest.s >&5
   30226     fi
   30227     rm -f conftest.o conftest.s
   30228   fi
   30229 fi
   30230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
   30231 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
   30232 if test $gcc_cv_as_gstabs_flag = yes; then
   30233 
   30234 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
   30235 
   30236 fi
   30237 
   30238 
   30239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
   30240 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
   30241 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
   30242   $as_echo_n "(cached) " >&6
   30243 else
   30244   gcc_cv_as_debug_prefix_map_flag=no
   30245   if test x$gcc_cv_as != x; then
   30246     $as_echo "$insn" > conftest.s
   30247     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
   30248   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   30249   (eval $ac_try) 2>&5
   30250   ac_status=$?
   30251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   30252   test $ac_status = 0; }; }
   30253     then
   30254 	gcc_cv_as_debug_prefix_map_flag=yes
   30255     else
   30256       echo "configure: failed program was" >&5
   30257       cat conftest.s >&5
   30258     fi
   30259     rm -f conftest.o conftest.s
   30260   fi
   30261 fi
   30262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
   30263 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
   30264 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
   30265 
   30266 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
   30267 
   30268 fi
   30269 
   30270 fi
   30271 
   30272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
   30273 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
   30274 if ${gcc_cv_as_compress_debug+:} false; then :
   30275   $as_echo_n "(cached) " >&6
   30276 else
   30277   gcc_cv_as_compress_debug=no
   30278   if test x$gcc_cv_as != x; then
   30279     $as_echo '' > conftest.s
   30280     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   30281   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   30282   (eval $ac_try) 2>&5
   30283   ac_status=$?
   30284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   30285   test $ac_status = 0; }; }
   30286     then
   30287 	# gas compiled without zlib cannot compress debug sections and warns
   30288    # about it, but still exits successfully.  So check for this, too.
   30289    if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
   30290    then
   30291      gcc_cv_as_compress_debug=0
   30292    # Since binutils 2.26, gas supports --compress-debug-sections=type,
   30293    # defaulting to the ELF gABI format.
   30294    elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
   30295    then
   30296      gcc_cv_as_compress_debug=2
   30297      gcc_cv_as_compress_debug_option="--compress-debug-sections"
   30298      gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
   30299    # Before binutils 2.26, gas only supported --compress-debug-options and
   30300    # emitted the traditional GNU format.
   30301    elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
   30302    then
   30303      gcc_cv_as_compress_debug=1
   30304      gcc_cv_as_compress_debug_option="--compress-debug-sections"
   30305      gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
   30306    else
   30307      gcc_cv_as_compress_debug=0
   30308    fi
   30309     else
   30310       echo "configure: failed program was" >&5
   30311       cat conftest.s >&5
   30312     fi
   30313     rm -f conftest.o conftest.s
   30314   fi
   30315 fi
   30316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
   30317 $as_echo "$gcc_cv_as_compress_debug" >&6; }
   30318 
   30319 
   30320 
   30321 cat >>confdefs.h <<_ACEOF
   30322 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
   30323 _ACEOF
   30324 
   30325 
   30326 cat >>confdefs.h <<_ACEOF
   30327 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
   30328 _ACEOF
   30329 
   30330 
   30331 cat >>confdefs.h <<_ACEOF
   30332 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
   30333 _ACEOF
   30334 
   30335 
   30336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
   30337 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
   30338 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
   30339   $as_echo_n "(cached) " >&6
   30340 else
   30341   gcc_cv_as_lcomm_with_alignment=no
   30342   if test x$gcc_cv_as != x; then
   30343     $as_echo '.lcomm bar,4,16' > conftest.s
   30344     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   30345   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   30346   (eval $ac_try) 2>&5
   30347   ac_status=$?
   30348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   30349   test $ac_status = 0; }; }
   30350     then
   30351 	gcc_cv_as_lcomm_with_alignment=yes
   30352     else
   30353       echo "configure: failed program was" >&5
   30354       cat conftest.s >&5
   30355     fi
   30356     rm -f conftest.o conftest.s
   30357   fi
   30358 fi
   30359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
   30360 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
   30361 if test $gcc_cv_as_lcomm_with_alignment = yes; then
   30362 
   30363 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
   30364 
   30365 fi
   30366 
   30367 
   30368 if test x$with_sysroot = x && test x$host = x$target \
   30369    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
   30370    && test "$prefix" != "NONE"; then
   30371 
   30372 cat >>confdefs.h <<_ACEOF
   30373 #define PREFIX_INCLUDE_DIR "$prefix/include"
   30374 _ACEOF
   30375 
   30376 fi
   30377 
   30378 # Determine the version of glibc, if any, used on the target.
   30379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
   30380 $as_echo_n "checking for target glibc version... " >&6; }
   30381 
   30382 # Check whether --with-glibc-version was given.
   30383 if test "${with_glibc_version+set}" = set; then :
   30384   withval=$with_glibc_version;
   30385 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
   30386   glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
   30387   glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
   30388 else
   30389   as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
   30390 fi
   30391 else
   30392 
   30393 glibc_version_major=0
   30394 glibc_version_minor=0
   30395 if test -f $target_header_dir/features.h \
   30396   && glibc_version_major_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC__[ 	]+[0-9]' $target_header_dir/features.h` \
   30397   && glibc_version_minor_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC_MINOR__[ 	]+[0-9]' $target_header_dir/features.h`; then
   30398   glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ 	]*//'`
   30399   glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ 	]*//'`
   30400 fi
   30401 fi
   30402 
   30403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
   30404 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
   30405 
   30406 cat >>confdefs.h <<_ACEOF
   30407 #define TARGET_GLIBC_MAJOR $glibc_version_major
   30408 _ACEOF
   30409 
   30410 
   30411 cat >>confdefs.h <<_ACEOF
   30412 #define TARGET_GLIBC_MINOR $glibc_version_minor
   30413 _ACEOF
   30414 
   30415 
   30416 # Check whether --enable-gnu-unique-object was given.
   30417 if test "${enable_gnu_unique_object+set}" = set; then :
   30418   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
   30419     yes | no) ;;
   30420     *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
   30421 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
   30422   esac
   30423 else
   30424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
   30425 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
   30426 if ${gcc_cv_as_gnu_unique_object+:} false; then :
   30427   $as_echo_n "(cached) " >&6
   30428 else
   30429   gcc_cv_as_gnu_unique_object=no
   30430   if test x$gcc_cv_as != x; then
   30431     $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
   30432     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   30433   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   30434   (eval $ac_try) 2>&5
   30435   ac_status=$?
   30436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   30437   test $ac_status = 0; }; }
   30438     then
   30439 	gcc_cv_as_gnu_unique_object=yes
   30440     else
   30441       echo "configure: failed program was" >&5
   30442       cat conftest.s >&5
   30443     fi
   30444     rm -f conftest.o conftest.s
   30445   fi
   30446 fi
   30447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
   30448 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
   30449 if test $gcc_cv_as_gnu_unique_object = yes; then
   30450   # We need to unquote above to to use the definition from config.gcc.
   30451 # Also check for ld.so support, i.e. glibc 2.11 or higher.
   30452 
   30453 if test $glibc_version_major -gt 2 \
   30454   || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
   30455   enable_gnu_unique_object=yes
   30456 fi
   30457 
   30458 fi
   30459 
   30460 fi
   30461 
   30462 if test x$enable_gnu_unique_object = xyes; then
   30463 
   30464 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
   30465 
   30466 fi
   30467 
   30468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
   30469 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
   30470 if ${gcc_cv_as_line_zero+:} false; then :
   30471   $as_echo_n "(cached) " >&6
   30472 else
   30473   gcc_cv_as_line_zero=no
   30474   if test "x$gcc_cv_as" != x; then
   30475     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
   30476     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
   30477   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   30478   (eval $ac_try) 2>&5
   30479   ac_status=$?
   30480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   30481   test $ac_status = 0; }; } &&
   30482        test "x`cat conftest.out`" = x
   30483     then
   30484       gcc_cv_as_line_zero=yes
   30485     else
   30486       echo "configure: failed program was" >&5
   30487       cat conftest.s >&5
   30488       echo "configure: error output was" >&5
   30489       cat conftest.out >&5
   30490     fi
   30491     rm -f conftest.o conftest.s conftest.out
   30492   fi
   30493 fi
   30494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
   30495 $as_echo "$gcc_cv_as_line_zero" >&6; }
   30496 if test "x$gcc_cv_as_line_zero" = xyes; then
   30497 
   30498 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
   30499 
   30500 fi
   30501 
   30502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
   30503 $as_echo_n "checking support for thin archives... " >&6; }
   30504 thin_archive_support=no
   30505 echo 'int main (void) { return 0; }' > conftest.c
   30506 if ($AR --version | sed 1q | grep "GNU ar" \
   30507     && $CC $CFLAGS -c conftest.c \
   30508     && $AR rcT conftest.a conftest.o \
   30509     && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
   30510   thin_archive_support=yes
   30511 fi
   30512 rm -f conftest.c conftest.o conftest.a conftest
   30513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
   30514 $as_echo "$thin_archive_support" >&6; }
   30515 
   30516 
   30517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
   30518 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
   30519 gcc_cv_ld_eh_frame_hdr=no
   30520 if test $in_tree_ld = yes ; then
   30521   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 \
   30522      && test $in_tree_ld_is_elf = yes; then
   30523     gcc_cv_ld_eh_frame_hdr=yes
   30524   fi
   30525 elif test x$gcc_cv_ld != x; then
   30526   if echo "$ld_ver" | grep GNU > /dev/null; then
   30527     # Check if linker supports --eh-frame-hdr option
   30528     if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
   30529       gcc_cv_ld_eh_frame_hdr=yes
   30530     fi
   30531   else
   30532     case "$target" in
   30533       *-*-solaris2*)
   30534         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
   30535         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
   30536           gcc_cv_ld_eh_frame_hdr=yes
   30537         fi
   30538         ;;
   30539     esac
   30540   fi
   30541 fi
   30542 
   30543 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
   30544 
   30545 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
   30546 
   30547 fi
   30548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
   30549 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
   30550 
   30551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
   30552 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
   30553 gcc_cv_ld_eh_frame_ciev3=no
   30554 if test $in_tree_ld = yes ; then
   30555   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 \
   30556      && test $in_tree_ld_is_elf = yes; then
   30557     gcc_cv_ld_eh_frame_ciev3=yes
   30558   fi
   30559 elif test x$gcc_cv_ld != x; then
   30560   if echo "$ld_ver" | grep GNU > /dev/null; then
   30561     gcc_cv_ld_eh_frame_ciev3=yes
   30562     if test 0"$ld_date" -lt 20040513; then
   30563       if test -n "$ld_date"; then
   30564 	# If there was date string, but was earlier than 2004-05-13, fail
   30565 	gcc_cv_ld_eh_frame_ciev3=no
   30566       elif test "$ld_vers_major" -lt 2; then
   30567 	gcc_cv_ld_eh_frame_ciev3=no
   30568       elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
   30569 	gcc_cv_ld_eh_frame_ciev3=no
   30570       fi
   30571     fi
   30572   else
   30573     case "$target" in
   30574       *-*-solaris2*)
   30575         # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
   30576         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
   30577           gcc_cv_ld_eh_frame_ciev3=yes
   30578         fi
   30579         ;;
   30580     esac
   30581   fi
   30582 fi
   30583 
   30584 cat >>confdefs.h <<_ACEOF
   30585 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
   30586 _ACEOF
   30587 
   30588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
   30589 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
   30590 
   30591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
   30592 $as_echo_n "checking linker position independent executable support... " >&6; }
   30593 gcc_cv_ld_pie=no
   30594 if test $in_tree_ld = yes ; then
   30595   case "$target" in
   30596     # Full PIE support on Solaris was only introduced in gld 2.26.
   30597     *-*-solaris2*)  gcc_gld_pie_min_version=26 ;;
   30598     *) 		    gcc_gld_pie_min_version=15 ;;
   30599   esac
   30600   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 \
   30601      && test $in_tree_ld_is_elf = yes; then
   30602     gcc_cv_ld_pie=yes
   30603   fi
   30604 elif test x$gcc_cv_ld != x; then
   30605   # Check if linker supports -pie option
   30606   if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
   30607     gcc_cv_ld_pie=yes
   30608     case "$target" in
   30609       *-*-solaris2*)
   30610 	if echo "$ld_ver" | grep GNU > /dev/null \
   30611 	  && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
   30612 	  gcc_cv_ld_pie=no
   30613 	fi
   30614 	;;
   30615     esac
   30616   else
   30617     case "$target" in
   30618       *-*-solaris2.1[1-9]*)
   30619 	# Solaris 11.3 added PIE support.
   30620 	if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
   30621 	  gcc_cv_ld_pie=yes
   30622 	fi
   30623 	;;
   30624     esac
   30625   fi
   30626 fi
   30627 if test x"$gcc_cv_ld_pie" = xyes; then
   30628 
   30629 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
   30630 
   30631 fi
   30632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
   30633 $as_echo "$gcc_cv_ld_pie" >&6; }
   30634 
   30635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
   30636 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
   30637 gcc_cv_ld_pie_copyreloc=no
   30638 if test $gcc_cv_ld_pie = yes ; then
   30639   if test $in_tree_ld = yes ; then
   30640     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
   30641       gcc_cv_ld_pie_copyreloc=yes
   30642     fi
   30643   elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
   30644     # Check if linker supports -pie option with copy reloc
   30645     case "$target" in
   30646     i?86-*-linux* | x86_64-*-linux*)
   30647       cat > conftest1.s <<EOF
   30648 	.globl	a_glob
   30649 	.data
   30650 	.type	a_glob, @object
   30651 	.size	a_glob, 4
   30652 a_glob:
   30653 	.long	2
   30654 EOF
   30655       cat > conftest2.s <<EOF
   30656 	.text
   30657 	.globl	main
   30658 	.type	main, @function
   30659 main:
   30660 	movl	%eax, a_glob(%rip)
   30661 	.size	main, .-main
   30662 	.globl	ptr
   30663 	.section	.data.rel,"aw",@progbits
   30664 	.type	ptr, @object
   30665 ptr:
   30666 	.quad	a_glob
   30667 EOF
   30668       if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
   30669          && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
   30670          && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
   30671          && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
   30672         gcc_cv_ld_pie_copyreloc=yes
   30673       fi
   30674       rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
   30675       ;;
   30676     esac
   30677   fi
   30678 fi
   30679 
   30680 cat >>confdefs.h <<_ACEOF
   30681 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
   30682 _ACEOF
   30683 
   30684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
   30685 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
   30686 
   30687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
   30688 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
   30689 gcc_cv_ld_eh_gc_sections=no
   30690 if test $in_tree_ld = yes ; then
   30691   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 \
   30692      && test $in_tree_ld_is_elf = yes; then
   30693     gcc_cv_ld_eh_gc_sections=yes
   30694   fi
   30695 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
   30696   cat > conftest.s <<EOF
   30697 	.section	.text
   30698 .globl _start
   30699         .type _start, @function
   30700 _start:
   30701 	.long foo
   30702 	.size _start, .-_start
   30703 	.section	.text.foo,"ax",@progbits
   30704 	.type foo, @function
   30705 foo:
   30706 	.long 0
   30707 	.size foo, .-foo
   30708 	.section	.gcc_except_table.foo,"a",@progbits
   30709 .L0:
   30710 	.long 0
   30711 	.section	.eh_frame,"a",@progbits
   30712 	.long .L0
   30713 EOF
   30714   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
   30715     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
   30716 	 | grep "gc-sections option ignored" > /dev/null; then
   30717       gcc_cv_ld_eh_gc_sections=no
   30718     elif $gcc_cv_objdump -h conftest 2> /dev/null \
   30719          | grep gcc_except_table > /dev/null; then
   30720       gcc_cv_ld_eh_gc_sections=yes
   30721       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
   30722       if test x$gcc_cv_as_comdat_group != xyes; then
   30723 	gcc_cv_ld_eh_gc_sections=no
   30724 	cat > conftest.s <<EOF
   30725 	.section	.text
   30726 .globl _start
   30727         .type _start, @function
   30728 _start:
   30729 	.long foo
   30730 	.size _start, .-_start
   30731 	.section	.gnu.linkonce.t.foo,"ax",@progbits
   30732 	.type foo, @function
   30733 foo:
   30734 	.long 0
   30735 	.size foo, .-foo
   30736 	.section	.gcc_except_table.foo,"a",@progbits
   30737 .L0:
   30738 	.long 0
   30739 	.section	.eh_frame,"a",@progbits
   30740 	.long .L0
   30741 EOF
   30742 	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
   30743 	  if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
   30744 	       | grep "gc-sections option ignored" > /dev/null; then
   30745 	    gcc_cv_ld_eh_gc_sections=no
   30746 	  elif $gcc_cv_objdump -h conftest 2> /dev/null \
   30747 	       | grep gcc_except_table > /dev/null; then
   30748 	    gcc_cv_ld_eh_gc_sections=yes
   30749 	  fi
   30750 	fi
   30751       fi
   30752     fi
   30753   fi
   30754   rm -f conftest.s conftest.o conftest
   30755 fi
   30756 case "$target" in
   30757   hppa*-*-linux*)
   30758     # ??? This apparently exposes a binutils bug with PC-relative relocations.
   30759     gcc_cv_ld_eh_gc_sections=no
   30760     ;;
   30761 esac
   30762 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
   30763 
   30764 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
   30765 
   30766 fi
   30767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
   30768 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
   30769 
   30770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
   30771 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
   30772 gcc_cv_ld_eh_gc_sections_bug=no
   30773 if test $in_tree_ld = yes ; then
   30774   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 \
   30775      && test $in_tree_ld_is_elf = yes; then
   30776     gcc_cv_ld_eh_gc_sections_bug=yes
   30777   fi
   30778 elif 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
   30779   gcc_cv_ld_eh_gc_sections_bug=yes
   30780   cat > conftest.s <<EOF
   30781 	.section	.text
   30782 .globl _start
   30783 	.type _start, @function
   30784 _start:
   30785 	.long foo
   30786 	.size _start, .-_start
   30787 	.section	.text.startup.foo,"ax",@progbits
   30788 	.type foo, @function
   30789 foo:
   30790 	.long 0
   30791 	.size foo, .-foo
   30792 	.section	.gcc_except_table.foo,"a",@progbits
   30793 .L0:
   30794 	.long 0
   30795 	.section	.eh_frame,"a",@progbits
   30796 	.long .L0
   30797 EOF
   30798   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
   30799     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
   30800 	 | grep "gc-sections option ignored" > /dev/null; then
   30801       :
   30802     elif $gcc_cv_objdump -h conftest 2> /dev/null \
   30803 	 | grep gcc_except_table > /dev/null; then
   30804       gcc_cv_ld_eh_gc_sections_bug=no
   30805     fi
   30806   fi
   30807   rm -f conftest.s conftest.o conftest
   30808 fi
   30809 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
   30810 
   30811 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
   30812 
   30813 fi
   30814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
   30815 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
   30816 
   30817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
   30818 $as_echo_n "checking linker for compressed debug sections... " >&6; }
   30819 # gold/gld support compressed debug sections since binutils 2.19/2.21
   30820 # In binutils 2.26, gld gained support for the ELF gABI format.
   30821 if test $in_tree_ld = yes ; then
   30822   gcc_cv_ld_compress_debug=0
   30823   if test $ld_is_mold = yes; then
   30824     gcc_cv_ld_compress_debug=3
   30825     gcc_cv_ld_compress_debug_option="--compress-debug-sections"
   30826   elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
   30827      && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
   30828     gcc_cv_ld_compress_debug=2
   30829     gcc_cv_ld_compress_debug_option="--compress-debug-sections"
   30830   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 \
   30831      && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
   30832     gcc_cv_ld_compress_debug=3
   30833     gcc_cv_ld_compress_debug_option="--compress-debug-sections"
   30834   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 \
   30835      && test $in_tree_ld_is_elf = yes; then
   30836     gcc_cv_ld_compress_debug=1
   30837   fi
   30838 elif echo "$ld_ver" | grep GNU > /dev/null; then
   30839   if test $ld_is_mold = yes; then
   30840     gcc_cv_ld_compress_debug=3
   30841     gcc_cv_ld_compress_debug_option="--compress-debug-sections"
   30842   elif test "$ld_vers_major" -lt 2 \
   30843      || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
   30844     gcc_cv_ld_compress_debug=0
   30845   elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
   30846     gcc_cv_ld_compress_debug=1
   30847   else
   30848     gcc_cv_ld_compress_debug=3
   30849     gcc_cv_ld_compress_debug_option="--compress-debug-sections"
   30850   fi
   30851   if test $ld_is_gold = yes; then
   30852     gcc_cv_ld_compress_debug=2
   30853     gcc_cv_ld_compress_debug_option="--compress-debug-sections"
   30854   fi
   30855 else
   30856   case "${target}" in
   30857     *-*-solaris2*)
   30858       # Introduced in Solaris 11.2.
   30859       if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
   30860         gcc_cv_ld_compress_debug=3
   30861         gcc_cv_ld_compress_debug_option="-z compress-sections"
   30862       else
   30863         gcc_cv_ld_compress_debug=0
   30864       fi
   30865       ;;
   30866     *)
   30867       # Assume linkers other than GNU ld don't support compessed debug
   30868       # sections.
   30869       gcc_cv_ld_compress_debug=0
   30870       ;;
   30871   esac
   30872 fi
   30873 
   30874 cat >>confdefs.h <<_ACEOF
   30875 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
   30876 _ACEOF
   30877 
   30878 
   30879 cat >>confdefs.h <<_ACEOF
   30880 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
   30881 _ACEOF
   30882 
   30883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
   30884 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
   30885 
   30886 if test x"$ld64_flag" = x"yes"; then
   30887 
   30888   # Set defaults for possibly untestable items.
   30889   gcc_cv_ld64_export_dynamic=0
   30890   gcc_cv_ld64_platform_version=0
   30891   gcc_cv_ld64_macos_version_min=0
   30892 
   30893   if test "$build" = "$host"; then
   30894     darwin_try_test=1
   30895   else
   30896     darwin_try_test=0
   30897   fi
   30898 
   30899   # On Darwin, because of FAT library support, it is often possible to execute
   30900   # exes from compatible archs even when the host differs from the build system.
   30901   case "$build","$host" in
   30902     x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
   30903 	darwin_try_test=1;;
   30904     *) ;;
   30905   esac
   30906 
   30907   # If the configurer specified a minimum ld64 version to be supported, then use
   30908   # that to determine feature support.
   30909   if test x"${gcc_cv_ld64_version}" != x; then
   30910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
   30911 $as_echo_n "checking ld64 specified version... " >&6; }
   30912     gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
   30913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
   30914 $as_echo "$gcc_cv_ld64_major" >&6; }
   30915     if test "$gcc_cv_ld64_major" -ge 236; then
   30916       gcc_cv_ld64_export_dynamic=1
   30917     fi
   30918     if test "$gcc_cv_ld64_major" -ge 512; then
   30919       gcc_cv_ld64_platform_version=1
   30920       gcc_cv_ld64_macos_version_min=1
   30921     fi
   30922   elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
   30923     # If the version was not specified, try to find it.
   30924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
   30925 $as_echo_n "checking linker version... " >&6; }
   30926     if test x"${gcc_cv_ld64_version}" = x; then
   30927       gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld|PROJECT:ld' \
   30928       | sed -e 's/.*ld64-//' -e 's/.*dyld-//' -e 's/.*PROJECT:ld-//' \
   30929       | awk '{print $1}'`
   30930     fi
   30931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
   30932 $as_echo "$gcc_cv_ld64_version" >&6; }
   30933 
   30934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
   30935 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
   30936     gcc_cv_ld64_export_dynamic=1
   30937     if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
   30938       gcc_cv_ld64_export_dynamic=0
   30939     fi
   30940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
   30941 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
   30942 
   30943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
   30944 $as_echo_n "checking linker for -platform_version support... " >&6; }
   30945     gcc_cv_ld64_platform_version=1
   30946     if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
   30947       gcc_cv_ld64_platform_version=0
   30948     fi
   30949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
   30950 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
   30951 
   30952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -macos_version_min" >&5
   30953 $as_echo_n "checking linker for -macos_version_min... " >&6; }
   30954     gcc_cv_ld64_macos_version_min=1
   30955     if $gcc_cv_ld -macos_version_min 10.5 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
   30956       gcc_cv_ld64_macos_version_min=0
   30957     fi
   30958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_macos_version_min" >&5
   30959 $as_echo "$gcc_cv_ld64_macos_version_min" >&6; }
   30960   fi
   30961 
   30962   if test x"${gcc_cv_ld64_version}" != x; then
   30963 
   30964 cat >>confdefs.h <<_ACEOF
   30965 #define LD64_VERSION "${gcc_cv_ld64_version}"
   30966 _ACEOF
   30967 
   30968   fi
   30969 
   30970 
   30971 cat >>confdefs.h <<_ACEOF
   30972 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
   30973 _ACEOF
   30974 
   30975 
   30976 
   30977 cat >>confdefs.h <<_ACEOF
   30978 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
   30979 _ACEOF
   30980 
   30981 
   30982 
   30983 cat >>confdefs.h <<_ACEOF
   30984 #define LD64_HAS_MACOS_VERSION_MIN $gcc_cv_ld64_macos_version_min
   30985 _ACEOF
   30986 
   30987 fi
   30988 
   30989 if test x"$dsymutil_flag" = x"yes"; then
   30990 
   30991     # If the user specified a dsymutil path, then we will already have the
   30992     # version string, otherwise, pick it up.
   30993     if test x"$gcc_cv_dsymutil" = x; then
   30994         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
   30995 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
   30996         dsymutil_vers="tool unspecified"
   30997     elif test x"$dsymutil_vers" = x; then
   30998 	dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
   30999     fi
   31000 
   31001     dsymutil_temp=`echo $dsymutil_vers | sed 1q`
   31002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
   31003 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
   31004     if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
   31005       dsymutil_kind=DWARFUTILS
   31006       dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
   31007     elif echo $dsymutil_temp | grep clang- > /dev/null; then
   31008       dsymutil_kind=CLANG
   31009       dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
   31010     elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
   31011       dsymutil_kind=LLVM
   31012       dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
   31013     else
   31014       dsymutil_kind=DET_UNKNOWN
   31015       dsymutil_vers="0.0"
   31016     fi
   31017     dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
   31018     dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
   31019     dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
   31020     if test x"${dsymutil_minor}" = x; then
   31021       dsymutil_minor=0
   31022     fi
   31023     if test x"${dsymutil_tiny}" = x; then
   31024       dsymutil_tiny=0
   31025     fi
   31026 
   31027 cat >>confdefs.h <<_ACEOF
   31028 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
   31029 _ACEOF
   31030 
   31031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
   31032 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
   31033 fi
   31034 
   31035 case $target_os in
   31036   win32 | pe | cygwin* | mingw32*)
   31037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
   31038 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
   31039     gcc_cv_ld_broken_pe_dwarf5=yes
   31040     if test $in_tree_ld = yes ; then
   31041       if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
   31042 	   $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
   31043 	 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
   31044 	      $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
   31045 	gcc_cv_ld_broken_pe_dwarf5=no
   31046       fi
   31047     else
   31048       if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
   31049 	 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
   31050 	gcc_cv_ld_broken_pe_dwarf5=no
   31051       fi
   31052     fi
   31053     if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
   31054 
   31055 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
   31056 
   31057     fi
   31058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
   31059 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
   31060 
   31061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
   31062 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
   31063     gcc_cv_ld_disable_dynamicbase=no
   31064     if test $in_tree_ld = yes; then
   31065       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 36 -o "$gcc_cv_gld_major_version" -gt 2; then \
   31066         gcc_cv_ld_disable_dynamicbase=yes
   31067       fi
   31068     else
   31069       if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
   31070         gcc_cv_ld_disable_dynamicbase=yes
   31071       fi
   31072     fi
   31073     if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
   31074 
   31075 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
   31076 
   31077     fi
   31078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
   31079 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
   31080     ;;
   31081 esac
   31082 
   31083 # --------
   31084 # UNSORTED
   31085 # --------
   31086 
   31087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
   31088 $as_echo_n "checking linker --as-needed support... " >&6; }
   31089 if ${gcc_cv_ld_as_needed+:} false; then :
   31090   $as_echo_n "(cached) " >&6
   31091 else
   31092   gcc_cv_ld_as_needed=no
   31093 gcc_cv_ld_as_needed_option='--as-needed'
   31094 gcc_cv_ld_no_as_needed_option='--no-as-needed'
   31095 if test $in_tree_ld = yes ; then
   31096   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 \
   31097      && test $in_tree_ld_is_elf = yes; then
   31098     gcc_cv_ld_as_needed=yes
   31099     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
   31100       gcc_cv_ld_as_needed_option='--push-state --as-needed'
   31101       gcc_cv_ld_no_as_needed_option='--pop-state'
   31102     fi
   31103   fi
   31104 elif test x$gcc_cv_ld != x; then
   31105   # Check if linker supports --as-needed and --no-as-needed options
   31106   if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
   31107     gcc_cv_ld_as_needed=yes
   31108     if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
   31109        && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
   31110        && echo "$ld_ver" | grep GNU > /dev/null \
   31111        && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
   31112       # Use these options only when both ld.bfd and ld.gold support
   31113       # --push-state/--pop-state, which unfortunately wasn't added
   31114       # at the same time.
   31115       gcc_cv_ld_as_needed_option='--push-state --as-needed'
   31116       gcc_cv_ld_no_as_needed_option='--pop-state'
   31117     fi
   31118   fi
   31119   case "$target:$gnu_ld" in
   31120     *-*-solaris2*:no)
   31121       # Solaris 2 ld always supports -z ignore/-z record.  Prefer the native
   31122       # forms.
   31123       gcc_cv_ld_as_needed=yes
   31124       gcc_cv_ld_as_needed_option="-z ignore"
   31125       gcc_cv_ld_no_as_needed_option="-z record"
   31126       ;;
   31127   esac
   31128 fi
   31129 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
   31130 # dl_iterate_phdr, i.e. since Solaris 11.
   31131 case "$target" in
   31132   *-*-solaris2.1[1-9]*)
   31133     case "$target" in
   31134     i?86-*-* | x86_64-*-*)
   31135       if echo "$ld_ver" | grep GNU > /dev/null; then
   31136         # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
   31137         gcc_cv_ld_as_needed=no
   31138       fi
   31139       ;;
   31140     esac
   31141     ;;
   31142   *-*-solaris2*)
   31143     gcc_cv_ld_as_needed=no
   31144     ;;
   31145 esac
   31146 
   31147 fi
   31148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
   31149 $as_echo "$gcc_cv_ld_as_needed" >&6; }
   31150 if test x"$gcc_cv_ld_as_needed" = xyes; then
   31151 
   31152 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
   31153 
   31154 
   31155 cat >>confdefs.h <<_ACEOF
   31156 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
   31157 _ACEOF
   31158 
   31159 
   31160 cat >>confdefs.h <<_ACEOF
   31161 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
   31162 _ACEOF
   31163 
   31164 fi
   31165 
   31166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
   31167 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
   31168 saved_LDFLAGS="$LDFLAGS"
   31169 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
   31170   LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
   31171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31172 /* end confdefs.h.  */
   31173 int main(void) {return 0;}
   31174 _ACEOF
   31175 if ac_fn_cxx_try_link "$LINENO"; then :
   31176   gcc_cv_ld_clearcap=yes; break
   31177 else
   31178   gcc_cv_ld_clearcap=no
   31179 fi
   31180 rm -f core conftest.err conftest.$ac_objext \
   31181     conftest$ac_exeext conftest.$ac_ext
   31182 done
   31183 LDFLAGS="$saved_LDFLAGS"
   31184 if test "x$gcc_cv_ld_clearcap" = xyes; then
   31185 
   31186 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
   31187 
   31188   ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
   31189 
   31190 fi
   31191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
   31192 $as_echo "$gcc_cv_ld_clearcap" >&6; }
   31193 
   31194 case "$target" in
   31195   powerpc*-*-*)
   31196     case "$target" in
   31197       *le-*-linux*)
   31198 	emul_name="-melf32lppc"
   31199 	;;
   31200       *)
   31201 	emul_name="-melf32ppc"
   31202 	;;
   31203     esac
   31204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
   31205 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
   31206 if ${gcc_cv_ld_ppc_attr+:} false; then :
   31207   $as_echo_n "(cached) " >&6
   31208 else
   31209   gcc_cv_ld_ppc_attr=no
   31210     if test x"$ld_is_gold" = xyes; then
   31211       gcc_cv_ld_ppc_attr=yes
   31212     elif test $in_tree_ld = yes ; then
   31213       if test "$gcc_cv_gld_major_version" -eq 2 \
   31214 		-a "$gcc_cv_gld_minor_version" -ge 28 \
   31215 		-o "$gcc_cv_gld_major_version" -gt 2; then
   31216         gcc_cv_ld_ppc_attr=yes
   31217       fi
   31218     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
   31219       # check that merging the long double .gnu_attribute doesn't warn
   31220       cat > conftest1.s <<EOF
   31221 	.gnu_attribute 4,1
   31222 EOF
   31223       cat > conftest2.s <<EOF
   31224 	.gnu_attribute 4,9
   31225 EOF
   31226       if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
   31227          && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
   31228          && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
   31229 	 && test ! -s conftest.err; then
   31230         gcc_cv_ld_ppc_attr=yes
   31231       fi
   31232       rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
   31233     fi
   31234 
   31235 fi
   31236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
   31237 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
   31238     if test x$gcc_cv_ld_ppc_attr = xyes; then
   31239 
   31240 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
   31241 
   31242     fi
   31243     ;;
   31244 esac
   31245 
   31246 case "$target:$tm_file" in
   31247   powerpc64*-*-freebsd* | powerpc64-*-netbsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
   31248   case "$target" in
   31249      *le-*-linux*)
   31250      emul_name="-melf64lppc"
   31251       ;;
   31252      *-*-linux* | *-*-netbsd*)
   31253      emul_name="-melf64ppc"
   31254       ;;
   31255      *le-*-freebsd*)
   31256      emul_name="-melf64lppc_fbsd"
   31257       ;;
   31258      *-*-freebsd*)
   31259      emul_name="-melf64ppc_fbsd"
   31260       ;;
   31261   esac
   31262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
   31263 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
   31264 if ${gcc_cv_ld_no_dot_syms+:} false; then :
   31265   $as_echo_n "(cached) " >&6
   31266 else
   31267   gcc_cv_ld_no_dot_syms=no
   31268     if test x"$ld_is_gold" = xyes; then
   31269       gcc_cv_ld_no_dot_syms=yes
   31270     elif test $in_tree_ld = yes ; then
   31271       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
   31272         gcc_cv_ld_no_dot_syms=yes
   31273       fi
   31274     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
   31275       cat > conftest1.s <<EOF
   31276 	.text
   31277 	bl .foo
   31278 EOF
   31279       cat > conftest2.s <<EOF
   31280 	.section ".opd","aw"
   31281 	.align 3
   31282 	.globl foo
   31283 	.type foo,@function
   31284 foo:
   31285 	.quad .LEfoo,.TOC.@tocbase,0
   31286 	.text
   31287 .LEfoo:
   31288 	blr
   31289 	.size foo,.-.LEfoo
   31290 EOF
   31291       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
   31292          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
   31293          && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
   31294         gcc_cv_ld_no_dot_syms=yes
   31295       fi
   31296       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
   31297     fi
   31298 
   31299 fi
   31300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
   31301 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
   31302     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
   31303 
   31304 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
   31305 
   31306     fi
   31307 
   31308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
   31309 $as_echo_n "checking linker large toc support... " >&6; }
   31310 if ${gcc_cv_ld_large_toc+:} false; then :
   31311   $as_echo_n "(cached) " >&6
   31312 else
   31313   gcc_cv_ld_large_toc=no
   31314     if test x"$ld_is_gold" = xyes; then
   31315       gcc_cv_ld_large_toc=yes
   31316     elif test $in_tree_ld = yes ; then
   31317       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
   31318         gcc_cv_ld_large_toc=yes
   31319       fi
   31320     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
   31321       cat > conftest.s <<EOF
   31322 	.section ".tbss","awT",@nobits
   31323 	.align 3
   31324 ie0:	.space 8
   31325 	.global _start
   31326 	.text
   31327 _start:
   31328 	addis 9,13,ie0@got@tprel@ha
   31329 	ld 9,ie0@got@tprel@l(9)
   31330 EOF
   31331       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
   31332          && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
   31333         gcc_cv_ld_large_toc=yes
   31334       fi
   31335       rm -f conftest conftest.o conftest.s
   31336     fi
   31337 
   31338 fi
   31339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
   31340 $as_echo "$gcc_cv_ld_large_toc" >&6; }
   31341     if test x"$gcc_cv_ld_large_toc" = xyes; then
   31342 
   31343 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
   31344 
   31345     fi
   31346 
   31347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
   31348 $as_echo_n "checking linker toc pointer alignment... " >&6; }
   31349 if ${gcc_cv_ld_toc_align+:} false; then :
   31350   $as_echo_n "(cached) " >&6
   31351 else
   31352   if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
   31353       cat > conftest.s <<EOF
   31354 	.global _start
   31355 	.text
   31356 _start:
   31357 	addis 9,2,x@got@ha
   31358 	.section .data.rel.ro,"aw",@progbits
   31359 	.p2align 16
   31360 	.space 32768
   31361 x:	.quad .TOC.
   31362 EOF
   31363       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
   31364          && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
   31365         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)) }'`
   31366       fi
   31367       rm -f conftest conftest.o conftest.s
   31368     fi
   31369 
   31370 fi
   31371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
   31372 $as_echo "$gcc_cv_ld_toc_align" >&6; }
   31373     if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
   31374 
   31375 cat >>confdefs.h <<_ACEOF
   31376 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
   31377 _ACEOF
   31378 
   31379     fi
   31380     ;;
   31381 esac
   31382 
   31383 case "$target" in
   31384   *-*-aix*)
   31385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
   31386 $as_echo_n "checking linker large toc support... " >&6; }
   31387 if ${gcc_cv_ld_large_toc+:} false; then :
   31388   $as_echo_n "(cached) " >&6
   31389 else
   31390   gcc_cv_ld_large_toc=no
   31391     if test x$gcc_cv_as != x ; then
   31392       cat > conftest.s <<EOF
   31393 	.toc
   31394 LC..1:
   31395 	.tc a[TC],a[RW]
   31396 	.extern a[RW]
   31397 	.csect .text[PR]
   31398 .largetoctest:
   31399 	addis 9,LC..1@u(2)
   31400 	ld 3,LC..1@l(9)
   31401 EOF
   31402       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
   31403         gcc_cv_ld_large_toc=yes
   31404       fi
   31405       rm -f conftest conftest.o conftest.s
   31406     fi
   31407 
   31408 fi
   31409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
   31410 $as_echo "$gcc_cv_ld_large_toc" >&6; }
   31411     if test x"$gcc_cv_ld_large_toc" = xyes; then
   31412 
   31413 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
   31414 
   31415     fi
   31416     ;;
   31417 esac
   31418 
   31419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
   31420 $as_echo_n "checking linker --build-id support... " >&6; }
   31421 if ${gcc_cv_ld_buildid+:} false; then :
   31422   $as_echo_n "(cached) " >&6
   31423 else
   31424   gcc_cv_ld_buildid=no
   31425   if test $in_tree_ld = yes ; then
   31426     if test "$gcc_cv_gld_major_version" -eq 2 -a \
   31427        "$gcc_cv_gld_minor_version" -ge 18 -o \
   31428        "$gcc_cv_gld_major_version" -gt 2 \
   31429        && test $in_tree_ld_is_elf = yes; then
   31430       gcc_cv_ld_buildid=yes
   31431     fi
   31432   elif test x$gcc_cv_ld != x; then
   31433     if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
   31434       gcc_cv_ld_buildid=yes
   31435     fi
   31436   fi
   31437 fi
   31438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
   31439 $as_echo "$gcc_cv_ld_buildid" >&6; }
   31440 if test x"$gcc_cv_ld_buildid" = xyes; then
   31441 
   31442 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
   31443 
   31444 fi
   31445 
   31446 # Check whether --enable-linker-build-id was given.
   31447 if test "${enable_linker_build_id+set}" = set; then :
   31448   enableval=$enable_linker_build_id;
   31449 else
   31450   enable_linker_build_id=no
   31451 fi
   31452 
   31453 
   31454 if test x"$enable_linker_build_id" = xyes; then
   31455   if test x"$gcc_cv_ld_buildid" = xyes; then
   31456 
   31457 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
   31458 
   31459   else
   31460     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
   31461 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
   31462   fi
   31463 fi
   31464 
   31465 # In binutils 2.21, GNU ld gained support for new emulations fully
   31466 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
   31467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
   31468 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
   31469 if ${gcc_cv_ld_sol2_emulation+:} false; then :
   31470   $as_echo_n "(cached) " >&6
   31471 else
   31472   gcc_cv_ld_sol2_emulation=no
   31473   if test $in_tree_ld = yes ; then
   31474     if test "$gcc_cv_gld_major_version" -eq 2 -a \
   31475        "$gcc_cv_gld_minor_version" -ge 21 -o \
   31476        "$gcc_cv_gld_major_version" -gt 2 \
   31477        && test $in_tree_ld_is_elf = yes; then
   31478       gcc_cv_ld_sol2_emulation=yes
   31479     fi
   31480   elif test x$gcc_cv_ld != x; then
   31481     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
   31482        grep _sol2 > /dev/null; then
   31483       gcc_cv_ld_sol2_emulation=yes
   31484     fi
   31485   fi
   31486 fi
   31487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
   31488 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
   31489 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
   31490 
   31491 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
   31492 
   31493 fi
   31494 
   31495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
   31496 $as_echo_n "checking linker --sysroot support... " >&6; }
   31497 if ${gcc_cv_ld_sysroot+:} false; then :
   31498   $as_echo_n "(cached) " >&6
   31499 else
   31500   gcc_cv_ld_sysroot=no
   31501   if test $in_tree_ld = yes ; then
   31502       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
   31503         gcc_cv_ld_sysroot=yes
   31504       fi
   31505   elif test x$gcc_cv_ld != x; then
   31506     if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
   31507       gcc_cv_ld_sysroot=yes
   31508     fi
   31509   fi
   31510 fi
   31511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
   31512 $as_echo "$gcc_cv_ld_sysroot" >&6; }
   31513 if test x"$gcc_cv_ld_sysroot" = xyes; then
   31514 
   31515 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
   31516 
   31517 fi
   31518 
   31519 case $target in
   31520 *-*-solaris2*)
   31521   # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
   31522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
   31523 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
   31524 if ${gcc_cv_solaris_crts+:} false; then :
   31525   $as_echo_n "(cached) " >&6
   31526 else
   31527   gcc_cv_solaris_crts=no
   31528      if test x$host != x$target; then
   31529        if test "x$with_sysroot" = xyes; then
   31530          target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
   31531        else
   31532          target_sysroot="${with_sysroot}"
   31533        fi
   31534      fi
   31535      target_libdir="$target_sysroot/usr/lib"
   31536      # At the time they were added, gcrt1.o became a symlink for backwards
   31537      # compatibility on x86, while crt1.o was added on sparc, so check for that.
   31538      case $target in
   31539        i?86-*-solaris2* | x86_64-*-solaris2*)
   31540          if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
   31541 	 ;;
   31542        sparc*-*-solaris2*)
   31543          if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
   31544 	 ;;
   31545      esac
   31546 fi
   31547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
   31548 $as_echo "$gcc_cv_solaris_crts" >&6; }
   31549   ;;
   31550 esac
   31551 if test x$gcc_cv_solaris_crts = xyes; then
   31552 
   31553 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
   31554 
   31555 fi
   31556 
   31557 # Check whether --enable-libssp was given.
   31558 if test "${enable_libssp+set}" = set; then :
   31559   enableval=$enable_libssp; case "${enableval}" in
   31560   yes|no)
   31561     ;;
   31562   *)
   31563     as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
   31564     ;;
   31565 esac
   31566 fi
   31567 
   31568 
   31569 # Test for stack protector support in target C library.
   31570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
   31571 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
   31572 if ${gcc_cv_libc_provides_ssp+:} false; then :
   31573   $as_echo_n "(cached) " >&6
   31574 else
   31575   gcc_cv_libc_provides_ssp=no
   31576   if test "x$enable_libssp" = "xno"; then
   31577     gcc_cv_libc_provides_ssp=yes
   31578   elif test "x$enable_libssp" = "xyes"; then
   31579     gcc_cv_libc_provides_ssp=no
   31580   else
   31581     case "$target" in
   31582        *-*-musl*)
   31583 	 # All versions of musl provide stack protector
   31584 	 gcc_cv_libc_provides_ssp=yes;;
   31585        *-*-linux* | *-*-kfreebsd*-gnu)
   31586       # glibc 2.4 and later provides __stack_chk_fail and
   31587       # either __stack_chk_guard, or TLS access to stack guard canary.
   31588 
   31589 if test $glibc_version_major -gt 2 \
   31590   || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
   31591   gcc_cv_libc_provides_ssp=yes
   31592 else
   31593 
   31594       if test -f $target_header_dir/features.h \
   31595 	 && $EGREP '^[ 	]*#[ 	]*define[ 	]+__GNU_LIBRARY__[ 	]+([1-9][0-9]|[6-9])' \
   31596 	    $target_header_dir/features.h > /dev/null; then
   31597 	if $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC__[ 	]+1' \
   31598 	     $target_header_dir/features.h > /dev/null && \
   31599 	     test -f $target_header_dir/bits/uClibc_config.h && \
   31600 	     $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC_HAS_SSP__[ 	]+1' \
   31601 	     $target_header_dir/bits/uClibc_config.h > /dev/null; then
   31602 	  gcc_cv_libc_provides_ssp=yes
   31603 	fi
   31604       # all versions of Bionic support stack protector
   31605       elif test -f $target_header_dir/sys/cdefs.h \
   31606         && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
   31607            $target_header_dir/sys/cdefs.h > /dev/null; then
   31608          gcc_cv_libc_provides_ssp=yes
   31609       fi
   31610 fi
   31611 	;;
   31612        *-*-gnu*)
   31613 	 # Avoid complicated tests (see
   31614 	 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
   31615 	 # simply assert that glibc does provide this, which is true for all
   31616 	 # realistically usable GNU/Hurd configurations.
   31617 	 # All supported versions of musl provide it as well
   31618 	 gcc_cv_libc_provides_ssp=yes;;
   31619        *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
   31620 	 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
   31621 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
   31622   gcc_cv_libc_provides_ssp=yes
   31623 else
   31624   echo "no __stack_chk_fail on this target"
   31625 fi
   31626 
   31627         ;;
   31628        *) gcc_cv_libc_provides_ssp=no ;;
   31629     esac
   31630   fi
   31631 fi
   31632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
   31633 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
   31634 
   31635 if test x$gcc_cv_libc_provides_ssp = xyes; then
   31636 
   31637 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
   31638 
   31639 fi
   31640 
   31641 # Check whether --enable-default-ssp was given.
   31642 # Check whether --enable-default-ssp was given.
   31643 if test "${enable_default_ssp+set}" = set; then :
   31644   enableval=$enable_default_ssp;
   31645 if test x$gcc_cv_libc_provides_ssp = xyes; then
   31646   case "$target" in
   31647     ia64*-*-*) enable_default_ssp=no ;;
   31648     *) enable_default_ssp=$enableval ;;
   31649   esac
   31650 else
   31651   enable_default_ssp=no
   31652 fi
   31653 else
   31654   enable_default_ssp=no
   31655 fi
   31656 
   31657 if test x$enable_default_ssp = xyes ; then
   31658 
   31659 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
   31660 
   31661 fi
   31662 
   31663 
   31664 # Test for <sys/sdt.h> on the target.
   31665 
   31666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
   31667 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
   31668 have_sys_sdt_h=no
   31669 if test -f $target_header_dir/sys/sdt.h; then
   31670   have_sys_sdt_h=yes
   31671 
   31672 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
   31673 
   31674 fi
   31675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
   31676 $as_echo "$have_sys_sdt_h" >&6; }
   31677 
   31678 # Check if TFmode long double should be used by default or not.
   31679 # Some glibc targets used DFmode long double, but with glibc 2.4
   31680 # and later they can use TFmode.
   31681 case "$target" in
   31682   powerpc*-*-linux* | \
   31683   sparc*-*-linux* | \
   31684   s390*-*-linux* | \
   31685   alpha*-*-linux*)
   31686 
   31687 # Check whether --with-long-double-128 was given.
   31688 if test "${with_long_double_128+set}" = set; then :
   31689   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
   31690 else
   31691 
   31692       case "$target" in
   31693 	s390*-*-linux-musl*)
   31694 	  gcc_cv_target_ldbl128=yes
   31695 	  ;;
   31696 	powerpc*-*-linux-musl*)
   31697 	  gcc_cv_target_ldbl128=no
   31698 	  ;;
   31699 	*)
   31700 
   31701 if test $glibc_version_major -gt 2 \
   31702   || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
   31703   gcc_cv_target_ldbl128=yes
   31704 else
   31705 
   31706       gcc_cv_target_ldbl128=no
   31707       grep '^[ 	]*#[ 	]*define[ 	][ 	]*__LONG_DOUBLE_MATH_OPTIONAL' \
   31708         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
   31709       && gcc_cv_target_ldbl128=yes
   31710 
   31711 fi
   31712 
   31713 	  ;;
   31714       esac
   31715 
   31716 fi
   31717 
   31718     ;;
   31719 esac
   31720 if test x$gcc_cv_target_ldbl128 = xyes; then
   31721 
   31722 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
   31723 
   31724 fi
   31725 
   31726 # Check if TFmode long double target should use the IBM extended double or IEEE
   31727 # 128-bit floating point formats if long doubles are 128-bits long.  The long
   31728 # double type can only be switched on powerpc64 bit Linux systems where VSX is
   31729 # supported.  Other PowerPC systems do not build the IEEE 128-bit emulator in
   31730 # libgcc.
   31731 
   31732 # Check whether --with-long-double-format was given.
   31733 if test "${with_long_double_format+set}" = set; then :
   31734   withval=$with_long_double_format;
   31735 case "$target:$with_long_double_format" in
   31736   powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
   31737     :
   31738     ;;
   31739   powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
   31740     # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
   31741     case "$with_cpu" in
   31742       power7 | power8 | power9 | power1*)
   31743 	:
   31744 	;;
   31745       *)
   31746 	as_fn_error $? "Configuration option --with-long-double-format is only \
   31747 supported if the default cpu is power7 or newer" "$LINENO" 5
   31748 	with_long_double_format=""
   31749 	;;
   31750       esac
   31751       ;;
   31752   powerpc64*-*-linux*:*)
   31753     as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
   31754     with_long_double_format=""
   31755     ;;
   31756   *)
   31757     as_fn_error $? "Configure option --with-long-double-format is only supported \
   31758 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
   31759     with_long_double_format=""
   31760     ;;
   31761 esac
   31762 fi
   31763 
   31764 
   31765 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
   31766 # values in the TCB.  Currently, only GLIBC 2.23 and later support this.
   31767 gcc_cv_libc_provides_hwcap_in_tcb=no
   31768 case "$target" in
   31769   powerpc*-*-linux*)
   31770 
   31771 if test $glibc_version_major -gt 2 \
   31772   || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
   31773   gcc_cv_libc_provides_hwcap_in_tcb=yes
   31774 fi
   31775     ;;
   31776 esac
   31777 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
   31778 
   31779 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
   31780 
   31781 fi
   31782 
   31783 # Check if the target LIBC handles PT_GNU_STACK.
   31784 gcc_cv_libc_gnustack=unknown
   31785 case "$target" in
   31786   mips*-*-linux-musl*)
   31787     gcc_cv_libc_gnustack=yes
   31788     ;;
   31789   mips*-*-linux*)
   31790 
   31791 if test $glibc_version_major -gt 2 \
   31792   || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
   31793   gcc_cv_libc_gnustack=yes
   31794 fi
   31795     ;;
   31796 esac
   31797 if test x$gcc_cv_libc_gnustack = xyes; then
   31798 
   31799 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
   31800 
   31801 fi
   31802 
   31803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
   31804 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
   31805 gcc_cv_target_dl_iterate_phdr=unknown
   31806 case "$target" in
   31807   *-*-solaris2*)
   31808     # <link.h> needs both a dl_iterate_phdr declaration and support for
   31809     # compilation with largefile support.
   31810     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
   31811       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
   31812       gcc_cv_target_dl_iterate_phdr=yes
   31813     else
   31814       gcc_cv_target_dl_iterate_phdr=no
   31815     fi
   31816     ;;
   31817   *-*-dragonfly* | *-*-freebsd*)
   31818     if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
   31819       gcc_cv_target_dl_iterate_phdr=yes
   31820     else
   31821       gcc_cv_target_dl_iterate_phdr=no
   31822     fi
   31823     ;;
   31824   *-linux-musl*)
   31825     gcc_cv_target_dl_iterate_phdr=yes
   31826     ;;
   31827 esac
   31828 
   31829 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
   31830 
   31831 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
   31832 
   31833 fi
   31834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
   31835 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
   31836 
   31837 # We no longer support different GC mechanisms.  Emit an error if
   31838 # the user configures with --with-gc.
   31839 
   31840 # Check whether --with-gc was given.
   31841 if test "${with_gc+set}" = set; then :
   31842   withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
   31843 fi
   31844 
   31845 
   31846 # Libraries to use on the host.  This will normally be set by the top
   31847 # level Makefile.  Here we simply capture the value for our Makefile.
   31848 if test -z "${HOST_LIBS+set}"; then
   31849   HOST_LIBS=
   31850 fi
   31851 
   31852 
   31853 # Use the system's zlib library.
   31854 
   31855   # Use the system's zlib library.
   31856   zlibdir="-L\$(top_builddir)/../zlib"
   31857   zlibinc="-I\$(top_srcdir)/../zlib"
   31858 
   31859 # Check whether --with-system-zlib was given.
   31860 if test "${with_system_zlib+set}" = set; then :
   31861   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
   31862     zlibdir=
   31863     zlibinc=
   31864   fi
   31865 
   31866 fi
   31867 
   31868 
   31869 
   31870 
   31871 
   31872 
   31873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   31874 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   31875     # Check whether --enable-maintainer-mode was given.
   31876 if test "${enable_maintainer_mode+set}" = set; then :
   31877   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
   31878 else
   31879   maintainer_mode=no
   31880 fi
   31881 
   31882 
   31883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
   31884 $as_echo "$maintainer_mode" >&6; }
   31885 
   31886 if test "$maintainer_mode" = "yes"; then
   31887   MAINT=''
   31888 else
   31889   MAINT='#'
   31890 fi
   31891 
   31892 if test -z "$CTAGS"; then
   31893   CTAGS=ctags
   31894 fi
   31895 
   31896 if test -z "$ETAGS"; then
   31897   ETAGS=etags
   31898 fi
   31899 
   31900 if test -z "$CSCOPE"; then
   31901   CSCOPE=cscope
   31902 fi
   31903 
   31904 
   31905 
   31906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
   31907 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
   31908   # Check whether --enable-link-mutex was given.
   31909 if test "${enable_link_mutex+set}" = set; then :
   31910   enableval=$enable_link_mutex; do_link_mutex=$enableval
   31911 else
   31912   do_link_mutex=no
   31913 fi
   31914 
   31915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
   31916 $as_echo "$do_link_mutex" >&6; }
   31917 
   31918 if test "$do_link_mutex" = "yes"; then
   31919    DO_LINK_MUTEX=true
   31920 else
   31921    DO_LINK_MUTEX=false
   31922 fi
   31923 
   31924 
   31925 
   31926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
   31927 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
   31928   # Check whether --enable-link-serialization was given.
   31929 if test "${enable_link_serialization+set}" = set; then :
   31930   enableval=$enable_link_serialization; do_link_serialization=$enableval
   31931 else
   31932   do_link_serialization=no
   31933 fi
   31934 
   31935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
   31936 $as_echo "$do_link_serialization" >&6; }
   31937 
   31938 case "$do_link_serialization" in
   31939   yes)
   31940     DO_LINK_SERIALIZATION=1;;
   31941   [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
   31942     DO_LINK_SERIALIZATION=$do_link_serialization;;
   31943   no)
   31944     DO_LINK_SERIALIZATION=;;
   31945   *)
   31946     as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
   31947 esac
   31948 
   31949 
   31950 # --------------
   31951 # Language hooks
   31952 # --------------
   31953 
   31954 # Make empty files to contain the specs and options for each language.
   31955 # Then add #include lines to for a compiler that has specs and/or options.
   31956 
   31957 subdirs=
   31958 lang_opt_files=
   31959 lang_specs_files=
   31960 lang_tree_files=
   31961 # These (without "all_") are set in each config-lang.in.
   31962 # `language' must be a single word so is spelled singularly.
   31963 all_languages=
   31964 all_compilers=
   31965 all_outputs='Makefile'
   31966 # List of language configure and makefile fragments.
   31967 all_lang_configurefrags=
   31968 all_lang_makefrags=
   31969 # Additional files for gengtype
   31970 all_gtfiles="$target_gtfiles"
   31971 
   31972 # These are the languages that are set in --enable-languages,
   31973 # and are available in the GCC tree.
   31974 all_selected_languages=
   31975 
   31976 # Add the language fragments.
   31977 # Languages are added via two mechanisms.  Some information must be
   31978 # recorded in makefile variables, these are defined in config-lang.in.
   31979 # We accumulate them and plug them into the main Makefile.
   31980 # The other mechanism is a set of hooks for each of the main targets
   31981 # like `clean', `install', etc.
   31982 
   31983 language_hooks="Make-hooks"
   31984 
   31985 for lang in ${srcdir}/*/config-lang.in
   31986 do
   31987 	test "$lang" = "${srcdir}/*/config-lang.in" && continue
   31988 
   31989         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
   31990         if test "x$lang_alias" = x
   31991         then
   31992               echo "$lang doesn't set \$language." 1>&2
   31993               exit 1
   31994         fi
   31995         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
   31996         subdirs="$subdirs $subdir"
   31997 
   31998 	# $gcc_subdir is where the gcc integration files are to be found
   31999 	# for a language, both for internal compiler purposes (compiler
   32000 	# sources implementing front-end to GCC tree converters), and for
   32001 	# build infrastructure purposes (Make-lang.in, etc.)
   32002 	#
   32003 	# This will be <subdir> (relative to $srcdir) if a line like
   32004 	# gcc_subdir="<subdir>" or gcc_subdir=<subdir>
   32005 	# is found in <langdir>/config-lang.in, and will remain <langdir>
   32006 	# otherwise.
   32007 	#
   32008 	# Except for the language alias (fetched above), the regular
   32009 	# "config-lang.in" contents are always retrieved from $gcc_subdir,
   32010 	# so a <langdir>/config-lang.in setting gcc_subdir typically sets
   32011 	# only this and the language alias.
   32012 
   32013         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
   32014         if [ "$gcc_subdir" = "" ]; then
   32015            gcc_subdir="$subdir"
   32016         fi
   32017 
   32018         case ",$enable_languages," in
   32019         *,$lang_alias,*)
   32020             all_selected_languages="$all_selected_languages $lang_alias"
   32021             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
   32022                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
   32023 	    fi
   32024 	    ;;
   32025         esac
   32026 
   32027 	language=
   32028 	boot_language=
   32029 	compilers=
   32030 	outputs=
   32031 	gtfiles=
   32032 	subdir_requires=
   32033 	. ${srcdir}/$gcc_subdir/config-lang.in
   32034 	if test "x$language" = x
   32035 	then
   32036 		echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
   32037 		exit 1
   32038 	fi
   32039 
   32040 	ok=:
   32041         case ",$enable_languages," in
   32042         	*,$lang_alias,*) ;;
   32043 		*)
   32044 			for i in $subdir_requires; do
   32045 				test -f "${srcdir}/$i/config-lang.in" && continue
   32046 				ok=false
   32047 				break
   32048 			done
   32049 		;;
   32050 	esac
   32051 	$ok || continue
   32052 
   32053 	all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
   32054 	if test "x$language" = xc && test -n "$all_lang_makefrags"; then
   32055 	    # Put c/Make-lang.in fragment first to match serialization languages order.
   32056 	    all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
   32057 	else
   32058 	    all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
   32059 	fi
   32060 	if test -f $srcdir/$gcc_subdir/lang.opt; then
   32061 	    lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
   32062 	    all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
   32063 	fi
   32064 	if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
   32065 	    lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
   32066 	fi
   32067 	all_languages="$all_languages $language"
   32068 	all_compilers="$all_compilers $compilers"
   32069 	all_outputs="$all_outputs $outputs"
   32070 	all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
   32071         case ",$enable_languages," in
   32072         	*,lto,*)
   32073 
   32074 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
   32075 
   32076 		    enable_lto=yes
   32077 
   32078 		    ;;
   32079 		*) ;;
   32080 	esac
   32081 done
   32082 
   32083 check_languages=
   32084 for language in $all_selected_languages
   32085 do
   32086 	check_languages="$check_languages check-$language"
   32087 done
   32088 
   32089 selftest_languages=
   32090 for language in $all_selected_languages
   32091 do
   32092 	selftest_languages="$selftest_languages selftest-$language"
   32093 done
   32094 
   32095 # We link each language in with a set of hooks, reached indirectly via
   32096 # lang.${target}.  Only do so for selected languages.
   32097 
   32098 rm -f Make-hooks
   32099 touch Make-hooks
   32100 target_list="all.cross start.encap rest.encap tags \
   32101 	install-common install-man install-info install-dvi install-pdf \
   32102 	install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
   32103 	mostlyclean clean distclean maintainer-clean install-plugin"
   32104 
   32105 for t in $target_list
   32106 do
   32107 	x=
   32108 	for lang in $all_selected_languages
   32109 	do
   32110 		x="$x $lang.$t"
   32111 	done
   32112 	echo "lang.$t: $x" >> Make-hooks
   32113 done
   32114 
   32115 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
   32116 echo "SERIAL_LIST =" >> Make-hooks
   32117 echo else >> Make-hooks
   32118 lang_cnt=0
   32119 lang_list=
   32120 prev=c
   32121 serialization_languages=c
   32122 for lang in $all_selected_languages
   32123 do
   32124 	test $lang = c && continue
   32125 	if test $lang = lto; then
   32126 		serialization_languages="$serialization_languages lto1 lto2"
   32127 	else
   32128 		serialization_languages="$serialization_languages $lang"
   32129 	fi
   32130 done
   32131 for lang in $serialization_languages
   32132 do
   32133 	test $lang = c && continue
   32134 	lang_cnt=`expr $lang_cnt + 1`
   32135 	lang_list=" $prev$lang_list"
   32136 	prev=${lang}
   32137 done
   32138 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
   32139 echo endif >> Make-hooks
   32140 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
   32141 echo "INDEX.c = 0" >> Make-hooks
   32142 lang_idx=1
   32143 for lang in $serialization_languages
   32144 do
   32145 	test $lang = c && continue
   32146 	echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
   32147 	echo "INDEX.$lang = $lang_idx" >> Make-hooks
   32148 	lang_cnt=`expr $lang_cnt - 1`
   32149 	lang_idx=`expr $lang_idx + 1`
   32150 done
   32151 
   32152 # --------
   32153 # Option include files
   32154 # --------
   32155 
   32156 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
   32157 option_includes="option-includes.mk"
   32158 
   32159 
   32160 # --------
   32161 # UNSORTED
   32162 # --------
   32163 
   32164 # Create .gdbinit.
   32165 
   32166 echo "dir ." > .gdbinit
   32167 echo "dir ${srcdir}" >> .gdbinit
   32168 if test x$gdb_needs_out_file_path = xyes
   32169 then
   32170 	echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
   32171 fi
   32172 if test "x$subdirs" != x; then
   32173 	for s in $subdirs
   32174 	do
   32175 		echo "dir ${srcdir}/$s" >> .gdbinit
   32176 	done
   32177 fi
   32178 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
   32179 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
   32180 
   32181 # Put a breakpoint on __asan_report_error to help with debugging buffer
   32182 # overflow.
   32183 case "$CFLAGS" in
   32184 *-fsanitize=address*)
   32185   echo "source ${srcdir}/gdbasan.in" >> .gdbinit
   32186   ;;
   32187 esac
   32188 
   32189 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
   32190 
   32191 
   32192 
   32193 # Find a directory in which to install a shared libgcc.
   32194 
   32195 # Check whether --enable-version-specific-runtime-libs was given.
   32196 if test "${enable_version_specific_runtime_libs+set}" = set; then :
   32197   enableval=$enable_version_specific_runtime_libs;
   32198 fi
   32199 
   32200 
   32201 # Substitute configuration variables
   32202 
   32203 
   32204 
   32205 
   32206 
   32207 
   32208 
   32209 
   32210 
   32211 
   32212 
   32213 
   32214 
   32215 
   32216 
   32217 
   32218 
   32219 
   32220 
   32221 
   32222 
   32223 
   32224 
   32225 
   32226 
   32227 
   32228 
   32229 
   32230 
   32231 
   32232 
   32233 
   32234 
   32235 
   32236 
   32237 
   32238 
   32239 
   32240 
   32241 
   32242 
   32243 
   32244 
   32245 
   32246 
   32247 
   32248 
   32249 
   32250 
   32251 
   32252 
   32253 
   32254 
   32255 
   32256 
   32257 
   32258 
   32259 
   32260 
   32261 
   32262 
   32263 
   32264 
   32265 
   32266 
   32267 
   32268 
   32269 
   32270 
   32271 # Echo link setup.
   32272 if test x${build} = x${host} ; then
   32273   if test x${host} = x${target} ; then
   32274     echo "Links are now set up to build a native compiler for ${target}." 1>&2
   32275   else
   32276     echo "Links are now set up to build a cross-compiler" 1>&2
   32277     echo " from ${host} to ${target}." 1>&2
   32278   fi
   32279 else
   32280   if test x${host} = x${target} ; then
   32281     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
   32282     echo " for ${target}." 1>&2
   32283   else
   32284     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
   32285     echo " from ${host} to ${target}." 1>&2
   32286   fi
   32287 fi
   32288 
   32289 
   32290 
   32291 
   32292 
   32293 
   32294 if test "x${ISLLIBS}" != "x" ; then
   32295 
   32296 $as_echo "#define HAVE_isl 1" >>confdefs.h
   32297 
   32298 fi
   32299 
   32300 # Check for plugin support
   32301    # Check whether --enable-plugin was given.
   32302 if test "${enable_plugin+set}" = set; then :
   32303   enableval=$enable_plugin; enable_plugin=$enableval
   32304 else
   32305   enable_plugin=yes; default_plugin=yes
   32306 fi
   32307 
   32308 
   32309    pluginlibs=
   32310    plugin_check=yes
   32311 
   32312    case "${host}" in
   32313      *-*-mingw*)
   32314        # Since plugin support under MinGW is not as straightforward as on
   32315        # other platforms (e.g., we have to link import library, etc), we
   32316        # only enable it if explicitly requested.
   32317        if test x"$default_plugin" = x"yes"; then
   32318          enable_plugin=no
   32319        elif test x"$enable_plugin" = x"yes"; then
   32320          # Use make's target variable to derive import library name.
   32321          pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
   32322 	 plugin_check=no
   32323        fi
   32324      ;;
   32325      *-*-darwin*)
   32326        if test x$build = x$host; then
   32327 	 export_sym_check="nm${exeext} -g"
   32328        elif test x$host = x$target; then
   32329 	 export_sym_check="$gcc_cv_nm -g"
   32330        else
   32331 	 export_sym_check=
   32332        fi
   32333      ;;
   32334      *)
   32335        if test x$build = x$host; then
   32336 	 export_sym_check="objdump${exeext} -T"
   32337        elif test x$host = x$target; then
   32338 	 export_sym_check="$gcc_cv_objdump -T"
   32339        else
   32340 	 export_sym_check=
   32341        fi
   32342      ;;
   32343    esac
   32344 
   32345    if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
   32346 
   32347      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
   32348 $as_echo_n "checking for exported symbols... " >&6; }
   32349      if test "x$export_sym_check" != x; then
   32350        echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
   32351        ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
   32352        if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
   32353 	 : # No need to use a flag
   32354 	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   32355 $as_echo "yes" >&6; }
   32356        else
   32357 	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   32358 $as_echo "yes" >&6; }
   32359 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
   32360 $as_echo_n "checking for -rdynamic... " >&6; }
   32361 	 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
   32362 	 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
   32363 	   plugin_rdynamic=yes
   32364 	   pluginlibs="-rdynamic"
   32365 	 else
   32366 	   plugin_rdynamic=no
   32367 	   enable_plugin=no
   32368 	 fi
   32369 	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
   32370 $as_echo "$plugin_rdynamic" >&6; }
   32371        fi
   32372      else
   32373        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
   32374 $as_echo "unable to check" >&6; }
   32375      fi
   32376 
   32377      # Check -ldl
   32378      saved_LIBS="$LIBS"
   32379      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   32380 $as_echo_n "checking for library containing dlopen... " >&6; }
   32381 if ${ac_cv_search_dlopen+:} false; then :
   32382   $as_echo_n "(cached) " >&6
   32383 else
   32384   ac_func_search_save_LIBS=$LIBS
   32385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32386 /* end confdefs.h.  */
   32387 
   32388 /* Override any GCC internal prototype to avoid an error.
   32389    Use char because int might match the return type of a GCC
   32390    builtin and then its argument prototype would still apply.  */
   32391 #ifdef __cplusplus
   32392 extern "C"
   32393 #endif
   32394 char dlopen ();
   32395 int
   32396 main ()
   32397 {
   32398 return dlopen ();
   32399   ;
   32400   return 0;
   32401 }
   32402 _ACEOF
   32403 for ac_lib in '' dl; do
   32404   if test -z "$ac_lib"; then
   32405     ac_res="none required"
   32406   else
   32407     ac_res=-l$ac_lib
   32408     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   32409   fi
   32410   if ac_fn_cxx_try_link "$LINENO"; then :
   32411   ac_cv_search_dlopen=$ac_res
   32412 fi
   32413 rm -f core conftest.err conftest.$ac_objext \
   32414     conftest$ac_exeext
   32415   if ${ac_cv_search_dlopen+:} false; then :
   32416   break
   32417 fi
   32418 done
   32419 if ${ac_cv_search_dlopen+:} false; then :
   32420 
   32421 else
   32422   ac_cv_search_dlopen=no
   32423 fi
   32424 rm conftest.$ac_ext
   32425 LIBS=$ac_func_search_save_LIBS
   32426 fi
   32427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   32428 $as_echo "$ac_cv_search_dlopen" >&6; }
   32429 ac_res=$ac_cv_search_dlopen
   32430 if test "$ac_res" != no; then :
   32431   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   32432 
   32433 fi
   32434 
   32435      if test x"$ac_cv_search_dlopen" = x"-ldl"; then
   32436        pluginlibs="$pluginlibs -ldl"
   32437      fi
   32438      LIBS="$saved_LIBS"
   32439 
   32440      # Check that we can build shared objects with -fPIC -shared
   32441      saved_LDFLAGS="$LDFLAGS"
   32442      saved_CFLAGS="$CFLAGS"
   32443      saved_CXXFLAGS="$CXXFLAGS"
   32444      case "${host}" in
   32445        *-*-darwin*)
   32446 	 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
   32447 	 CFLAGS="$CFLAGS -fPIC"
   32448 	 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
   32449 	 CXXFLAGS="$CXXFLAGS -fPIC"
   32450 	 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
   32451        ;;
   32452        *)
   32453 	 CFLAGS="$CFLAGS -fPIC"
   32454 	 CXXFLAGS="$CXXFLAGS -fPIC"
   32455 	 LDFLAGS="$LDFLAGS -fPIC -shared"
   32456        ;;
   32457      esac
   32458      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
   32459 $as_echo_n "checking for -fPIC -shared... " >&6; }
   32460      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32461 /* end confdefs.h.  */
   32462 extern int X;
   32463 int
   32464 main ()
   32465 {
   32466 return X == 0;
   32467   ;
   32468   return 0;
   32469 }
   32470 _ACEOF
   32471 if ac_fn_cxx_try_link "$LINENO"; then :
   32472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   32473 $as_echo "yes" >&6; }; have_pic_shared=yes
   32474 else
   32475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   32476 $as_echo "no" >&6; }; have_pic_shared=no
   32477 fi
   32478 rm -f core conftest.err conftest.$ac_objext \
   32479     conftest$ac_exeext conftest.$ac_ext
   32480      if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
   32481        pluginlibs=
   32482        enable_plugin=no
   32483      fi
   32484      LDFLAGS="$saved_LDFLAGS"
   32485      CFLAGS="$saved_CFLAGS"
   32486      CXXFLAGS="$saved_CXXFLAGS"
   32487 
   32488      # If plugin support had been requested but not available, fail.
   32489      if test x"$enable_plugin" = x"no" ; then
   32490        if test x"$default_plugin" != x"yes"; then
   32491 	 as_fn_error $? "
   32492    Building GCC with plugin support requires a host that supports
   32493    -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
   32494        fi
   32495      fi
   32496    fi
   32497 
   32498 
   32499 
   32500 if test x"$enable_plugin" = x"yes"; then
   32501 
   32502 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
   32503 
   32504 fi
   32505 
   32506 
   32507 # Enable --enable-host-shared
   32508 # Check whether --enable-host-shared was given.
   32509 if test "${enable_host_shared+set}" = set; then :
   32510   enableval=$enable_host_shared; PICFLAG=-fPIC
   32511 else
   32512   PICFLAG=
   32513 fi
   32514 
   32515 
   32516 
   32517 
   32518 
   32519 # Check whether --enable-libquadmath-support was given.
   32520 if test "${enable_libquadmath_support+set}" = set; then :
   32521   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
   32522 else
   32523   ENABLE_LIBQUADMATH_SUPPORT=yes
   32524 fi
   32525 
   32526 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
   32527 
   32528 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
   32529 
   32530 fi
   32531 
   32532 
   32533 # Specify what hash style to use by default.
   32534 
   32535 # Check whether --with-linker-hash-style was given.
   32536 if test "${with_linker_hash_style+set}" = set; then :
   32537   withval=$with_linker_hash_style; case x"$withval" in
   32538    xsysv)
   32539      LINKER_HASH_STYLE=sysv
   32540      ;;
   32541    xgnu)
   32542      LINKER_HASH_STYLE=gnu
   32543      ;;
   32544    xboth)
   32545      LINKER_HASH_STYLE=both
   32546      ;;
   32547    *)
   32548      as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
   32549      ;;
   32550  esac
   32551 else
   32552   LINKER_HASH_STYLE=''
   32553 fi
   32554 
   32555 if test x"${LINKER_HASH_STYLE}" != x; then
   32556 
   32557 cat >>confdefs.h <<_ACEOF
   32558 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
   32559 _ACEOF
   32560 
   32561 fi
   32562 
   32563 # Specify what should be the default of -fdiagnostics-color option.
   32564 
   32565 # Check whether --with-diagnostics-color was given.
   32566 if test "${with_diagnostics_color+set}" = set; then :
   32567   withval=$with_diagnostics_color; case x"$withval" in
   32568    xnever)
   32569      DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
   32570      ;;
   32571    xauto)
   32572      DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
   32573      ;;
   32574    xauto-if-env)
   32575      DIAGNOSTICS_COLOR_DEFAULT=-1
   32576      ;;
   32577    xalways)
   32578      DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
   32579      ;;
   32580    *)
   32581      as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
   32582      ;;
   32583  esac
   32584 else
   32585   DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
   32586 fi
   32587 
   32588 
   32589 cat >>confdefs.h <<_ACEOF
   32590 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
   32591 _ACEOF
   32592 
   32593 
   32594 # Specify what should be the default of -fdiagnostics-urls option.
   32595 
   32596 # Check whether --with-diagnostics-urls was given.
   32597 if test "${with_diagnostics_urls+set}" = set; then :
   32598   withval=$with_diagnostics_urls; case x"$withval" in
   32599    xnever)
   32600      DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
   32601      ;;
   32602    xauto)
   32603      DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
   32604      ;;
   32605    xauto-if-env)
   32606      DIAGNOSTICS_URLS_DEFAULT=-1
   32607      ;;
   32608    xalways)
   32609      DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
   32610      ;;
   32611    *)
   32612      as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
   32613      ;;
   32614  esac
   32615 else
   32616   DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
   32617 fi
   32618 
   32619 
   32620 cat >>confdefs.h <<_ACEOF
   32621 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
   32622 _ACEOF
   32623 
   32624 
   32625 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
   32626 # of jit/jit-playback.cc.
   32627 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
   32628 echo "gcc_driver_version: ${gcc_driver_version}"
   32629 cat > gcc-driver-name.h <<EOF
   32630 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
   32631 EOF
   32632 
   32633 # Check whether --enable-default-pie was given.
   32634 # Check whether --enable-default-pie was given.
   32635 if test "${enable_default_pie+set}" = set; then :
   32636   enableval=$enable_default_pie; enable_default_pie=$enableval
   32637 else
   32638   enable_default_pie=no
   32639 fi
   32640 
   32641 if test x$enable_default_pie = xyes ; then
   32642 
   32643 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
   32644 
   32645 fi
   32646 
   32647 
   32648 # Check if -fno-PIE works.
   32649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
   32650 $as_echo_n "checking for -fno-PIE option... " >&6; }
   32651 if ${gcc_cv_c_no_fpie+:} false; then :
   32652   $as_echo_n "(cached) " >&6
   32653 else
   32654   saved_CXXFLAGS="$CXXFLAGS"
   32655    CXXFLAGS="$CXXFLAGS -fno-PIE"
   32656    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32657 /* end confdefs.h.  */
   32658 int main(void) {return 0;}
   32659 _ACEOF
   32660 if ac_fn_cxx_try_compile "$LINENO"; then :
   32661   gcc_cv_c_no_fpie=yes
   32662 else
   32663   gcc_cv_c_no_fpie=no
   32664 fi
   32665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32666    CXXFLAGS="$saved_CXXFLAGS"
   32667 fi
   32668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
   32669 $as_echo "$gcc_cv_c_no_fpie" >&6; }
   32670 if test "$gcc_cv_c_no_fpie" = "yes"; then
   32671   NO_PIE_CFLAGS="-fno-PIE"
   32672 fi
   32673 
   32674 
   32675 # Check if -no-pie works.
   32676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
   32677 $as_echo_n "checking for -no-pie option... " >&6; }
   32678 if ${gcc_cv_no_pie+:} false; then :
   32679   $as_echo_n "(cached) " >&6
   32680 else
   32681   saved_LDFLAGS="$LDFLAGS"
   32682    LDFLAGS="$LDFLAGS -no-pie"
   32683    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32684 /* end confdefs.h.  */
   32685 int main(void) {return 0;}
   32686 _ACEOF
   32687 if ac_fn_cxx_try_link "$LINENO"; then :
   32688   gcc_cv_no_pie=yes
   32689 else
   32690   gcc_cv_no_pie=no
   32691 fi
   32692 rm -f core conftest.err conftest.$ac_objext \
   32693     conftest$ac_exeext conftest.$ac_ext
   32694    LDFLAGS="$saved_LDFLAGS"
   32695 fi
   32696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
   32697 $as_echo "$gcc_cv_no_pie" >&6; }
   32698 if test "$gcc_cv_no_pie" = "yes"; then
   32699   NO_PIE_FLAG="-no-pie"
   32700 fi
   32701 
   32702 
   32703 # Enable Intel CET on Intel CET enabled host if jit is enabled.
   32704  # Check whether --enable-cet was given.
   32705 if test "${enable_cet+set}" = set; then :
   32706   enableval=$enable_cet;
   32707       case "$enableval" in
   32708        yes|no|auto) ;;
   32709        *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
   32710                           esac
   32711 
   32712 else
   32713   enable_cet=auto
   32714 fi
   32715 
   32716 
   32717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
   32718 $as_echo_n "checking for CET support... " >&6; }
   32719 
   32720 case "$host" in
   32721   i[34567]86-*-linux* | x86_64-*-linux*)
   32722     may_have_cet=yes
   32723     cet_save_CFLAGS="$CFLAGS"
   32724     CFLAGS="$CFLAGS -fcf-protection"
   32725     case "$enable_cet" in
   32726       auto)
   32727 	# Check if target supports multi-byte NOPs
   32728 	# and if compiler and assembler support CET.
   32729 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32730 /* end confdefs.h.  */
   32731 
   32732 int
   32733 main ()
   32734 {
   32735 
   32736 #if !defined(__SSE2__)
   32737 #error target does not support multi-byte NOPs
   32738 #else
   32739 asm ("setssbsy");
   32740 #endif
   32741 
   32742   ;
   32743   return 0;
   32744 }
   32745 _ACEOF
   32746 if ac_fn_cxx_try_compile "$LINENO"; then :
   32747   enable_cet=yes
   32748 else
   32749   enable_cet=no
   32750 fi
   32751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32752 	;;
   32753       yes)
   32754 	# Check if compiler and assembler support CET.
   32755 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32756 /* end confdefs.h.  */
   32757 
   32758 int
   32759 main ()
   32760 {
   32761 asm ("setssbsy");
   32762   ;
   32763   return 0;
   32764 }
   32765 _ACEOF
   32766 if ac_fn_cxx_try_compile "$LINENO"; then :
   32767   support_cet=yes
   32768 else
   32769   support_cet=no
   32770 fi
   32771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32772 	if test $support_cet = "no"; then
   32773 	  if test x$enable_bootstrap != xno \
   32774 	     && test -z "${with_build_subdir}" \
   32775 	     && (test ! -f ../stage_current \
   32776 	         || test `cat ../stage_current` != "stage1"); then
   32777 	    # Require CET support only for the final GCC build.
   32778 	    as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
   32779 	  else
   32780 	    # Don't enable CET without CET support for non-bootstrap
   32781 	    # build, in stage1 nor for build support.
   32782 	    enable_cet=no
   32783 	  fi
   32784 	fi
   32785 	;;
   32786     esac
   32787     CFLAGS="$cet_save_CFLAGS"
   32788     ;;
   32789   *)
   32790     may_have_cet=no
   32791     enable_cet=no
   32792     ;;
   32793 esac
   32794 
   32795 cet_save_CFLAGS="$CFLAGS"
   32796 CFLAGS="$CFLAGS -fcf-protection=none"
   32797 cet_save_LDFLAGS="$LDFLAGS"
   32798 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
   32799 if test x$may_have_cet = xyes; then
   32800   # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
   32801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32802 /* end confdefs.h.  */
   32803 
   32804 int
   32805 main ()
   32806 {
   32807 return 0;
   32808   ;
   32809   return 0;
   32810 }
   32811 _ACEOF
   32812 if ac_fn_cxx_try_link "$LINENO"; then :
   32813   may_have_cet=yes
   32814 else
   32815   may_have_cet=no
   32816 fi
   32817 rm -f core conftest.err conftest.$ac_objext \
   32818     conftest$ac_exeext conftest.$ac_ext
   32819 fi
   32820 
   32821 if test x$may_have_cet = xyes; then
   32822   if test x$cross_compiling = xno; then
   32823     if test "$cross_compiling" = yes; then :
   32824   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   32825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   32826 as_fn_error $? "cannot run test program while cross compiling
   32827 See \`config.log' for more details" "$LINENO" 5; }
   32828 else
   32829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32830 /* end confdefs.h.  */
   32831 
   32832 int
   32833 main ()
   32834 {
   32835   asm ("endbr32");
   32836   return 0;
   32837 }
   32838 
   32839 _ACEOF
   32840 if ac_fn_cxx_try_run "$LINENO"; then :
   32841   have_multi_byte_nop=yes
   32842 else
   32843   have_multi_byte_nop=no
   32844 fi
   32845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32846   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32847 fi
   32848 
   32849     have_cet=no
   32850     if test x$have_multi_byte_nop = xyes; then
   32851       if test "$cross_compiling" = yes; then :
   32852   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   32853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   32854 as_fn_error $? "cannot run test program while cross compiling
   32855 See \`config.log' for more details" "$LINENO" 5; }
   32856 else
   32857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32858 /* end confdefs.h.  */
   32859 
   32860 static void
   32861 foo (void)
   32862 {
   32863 }
   32864 
   32865 static void
   32866 __attribute__ ((noinline, noclone))
   32867 xxx (void (*f) (void))
   32868 {
   32869   f ();
   32870 }
   32871 
   32872 static void
   32873 __attribute__ ((noinline, noclone))
   32874 bar (void)
   32875 {
   32876   xxx (foo);
   32877 }
   32878 
   32879 int
   32880 main ()
   32881 {
   32882   bar ();
   32883   return 0;
   32884 }
   32885 
   32886 _ACEOF
   32887 if ac_fn_cxx_try_run "$LINENO"; then :
   32888   have_cet=no
   32889 else
   32890   have_cet=yes
   32891 fi
   32892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32893   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32894 fi
   32895 
   32896     fi
   32897     if test x$enable_cet = xno -a x$have_cet = xyes; then
   32898       as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
   32899     fi
   32900   fi
   32901 else
   32902   # Enable CET in cross compiler if possible so that it will run on both
   32903   # CET and non-CET hosts.
   32904   have_cet=yes
   32905 fi
   32906 if test x$enable_cet = xyes; then
   32907   CET_HOST_FLAGS="-fcf-protection"
   32908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   32909 $as_echo "yes" >&6; }
   32910 else
   32911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   32912 $as_echo "no" >&6; }
   32913 fi
   32914 CFLAGS="$cet_save_CFLAGS"
   32915 LDFLAGS="$cet_save_LDFLAGS"
   32916 
   32917 case x$enable_languages in
   32918 *jit*)
   32919   ;;
   32920 *)
   32921   CET_HOST_FLAGS=
   32922   ;;
   32923 esac
   32924 
   32925 
   32926 # Check linker supports '-z bndplt'
   32927 ld_bndplt_support=no
   32928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
   32929 $as_echo_n "checking linker -z bndplt option... " >&6; }
   32930 if test x"$ld_is_gold" = xno; then
   32931   if test $in_tree_ld = yes ; then
   32932     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
   32933       ld_bndplt_support=yes
   32934     fi
   32935   elif test x$gcc_cv_ld != x; then
   32936     # Check if linker supports -a bndplt option
   32937     if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
   32938       ld_bndplt_support=yes
   32939     fi
   32940   fi
   32941 fi
   32942 if test x"$ld_bndplt_support" = xyes; then
   32943 
   32944 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
   32945 
   32946 fi
   32947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
   32948 $as_echo "$ld_bndplt_support" >&6; }
   32949 
   32950 # Check linker supports '--push-state'/'--pop-state'
   32951 ld_pushpopstate_support=no
   32952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
   32953 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
   32954 if test x"$ld_is_gold" = xno; then
   32955   if test $in_tree_ld = yes ; then
   32956     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
   32957       ld_pushpopstate_support=yes
   32958     fi
   32959   elif test x$gcc_cv_ld != x; then
   32960     # Check if linker supports --push-state/--pop-state options
   32961     if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
   32962       ld_pushpopstate_support=yes
   32963     fi
   32964   fi
   32965 fi
   32966 if test x"$ld_pushpopstate_support" = xyes; then
   32967 
   32968 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
   32969 
   32970 fi
   32971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
   32972 $as_echo "$ld_pushpopstate_support" >&6; }
   32973 
   32974 # On s390, float_t has historically been statically defined as double for no
   32975 # good reason. To comply with the C standard in the light of this definition,
   32976 # gcc has evaluated float expressions in double precision when in
   32977 # standards-compatible mode or when given -fexcess-precision=standard. To enable
   32978 # a smooth transition towards the new model used by most architectures, where
   32979 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
   32980 # float_t from that, this behavior can be configured with
   32981 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
   32982 # the old model. When omitted, native builds and cross compiles that have target
   32983 # libc headers will detect whether libc clamps float_t to double and in that
   32984 # case maintain the old model. Otherwise, they will default to the new model.
   32985 # Check whether --enable-s390-excess-float-precision was given.
   32986 if test "${enable_s390_excess_float_precision+set}" = set; then :
   32987   enableval=$enable_s390_excess_float_precision;
   32988 else
   32989   enable_s390_excess_float_precision=auto
   32990 fi
   32991 
   32992 
   32993 case $target in
   32994   s390*-linux*)
   32995   if test x"$enable_s390_excess_float_precision" = xauto; then
   32996     # Can we autodetect the behavior of the target libc?
   32997     if test "$target" = "$host" -a "$host" = "$build"; then
   32998       enable_s390_excess_float_precision=autodetect
   32999     elif test "x$with_headers" != xno; then
   33000       # cross build. are target headers available?
   33001       # carefully coerce the build-system compiler to use target headers
   33002       saved_CXXFLAGS="$CXXFLAGS"
   33003       fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
   33004       CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
   33005       CXXFLAGS="$CROSS_TEST_CXXFLAGS"
   33006       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   33007 /* end confdefs.h.  */
   33008 
   33009 #include <math.h>
   33010 
   33011 _ACEOF
   33012 if ac_fn_cxx_try_compile "$LINENO"; then :
   33013   enable_s390_excess_float_precision=autodetect
   33014 fi
   33015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33016       CXXFLAGS="$saved_CXXFLAGS"
   33017     fi
   33018 
   33019     if test x"$enable_s390_excess_float_precision" = xautodetect; then
   33020       saved_CXXFLAGS="$CXXFLAGS"
   33021       if ! test "$target" = "$host" -a "$host" = "$build"; then
   33022         CXXFLAGS="$CROSS_TEST_CXXFLAGS"
   33023 	unset CROSS_TEST_CXXFLAGS
   33024       fi
   33025       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
   33026 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
   33027 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
   33028   $as_echo_n "(cached) " >&6
   33029 else
   33030 
   33031         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   33032 /* end confdefs.h.  */
   33033 
   33034 #define __FLT_EVAL_METHOD__ 0
   33035 #include <math.h>
   33036 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
   33037 
   33038 _ACEOF
   33039 if ac_fn_cxx_try_compile "$LINENO"; then :
   33040   gcc_cv_float_t_clamped_to_double=yes
   33041 else
   33042   gcc_cv_float_t_clamped_to_double=no
   33043 fi
   33044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33045 fi
   33046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
   33047 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
   33048       CXXFLAGS="$saved_CXXFLAGS"
   33049       enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
   33050     else
   33051       # no way to detect behavior of target libc, default to new model
   33052       enable_s390_excess_float_precision=no
   33053     fi
   33054   fi
   33055 
   33056 
   33057   if test x"$enable_s390_excess_float_precision" = xyes; then
   33058 
   33059 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
   33060 
   33061   fi
   33062   ;;
   33063 esac
   33064 
   33065 # Configure the subdirectories
   33066 # AC_CONFIG_SUBDIRS($subdirs)
   33067 
   33068 # Create the Makefile
   33069 # and configure language subdirectories
   33070 ac_config_files="$ac_config_files $all_outputs"
   33071 
   33072 
   33073 ac_config_commands="$ac_config_commands default"
   33074 
   33075 cat >confcache <<\_ACEOF
   33076 # This file is a shell script that caches the results of configure
   33077 # tests run on this system so they can be shared between configure
   33078 # scripts and configure runs, see configure's option --config-cache.
   33079 # It is not useful on other systems.  If it contains results you don't
   33080 # want to keep, you may remove or edit it.
   33081 #
   33082 # config.status only pays attention to the cache file if you give it
   33083 # the --recheck option to rerun configure.
   33084 #
   33085 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   33086 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   33087 # following values.
   33088 
   33089 _ACEOF
   33090 
   33091 # The following way of writing the cache mishandles newlines in values,
   33092 # but we know of no workaround that is simple, portable, and efficient.
   33093 # So, we kill variables containing newlines.
   33094 # Ultrix sh set writes to stderr and can't be redirected directly,
   33095 # and sets the high bit in the cache file unless we assign to the vars.
   33096 (
   33097   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   33098     eval ac_val=\$$ac_var
   33099     case $ac_val in #(
   33100     *${as_nl}*)
   33101       case $ac_var in #(
   33102       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   33103 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   33104       esac
   33105       case $ac_var in #(
   33106       _ | IFS | as_nl) ;; #(
   33107       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   33108       *) { eval $ac_var=; unset $ac_var;} ;;
   33109       esac ;;
   33110     esac
   33111   done
   33112 
   33113   (set) 2>&1 |
   33114     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   33115     *${as_nl}ac_space=\ *)
   33116       # `set' does not quote correctly, so add quotes: double-quote
   33117       # substitution turns \\\\ into \\, and sed turns \\ into \.
   33118       sed -n \
   33119 	"s/'/'\\\\''/g;
   33120 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   33121       ;; #(
   33122     *)
   33123       # `set' quotes correctly as required by POSIX, so do not add quotes.
   33124       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   33125       ;;
   33126     esac |
   33127     sort
   33128 ) |
   33129   sed '
   33130      /^ac_cv_env_/b end
   33131      t clear
   33132      :clear
   33133      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   33134      t end
   33135      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   33136      :end' >>confcache
   33137 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   33138   if test -w "$cache_file"; then
   33139     if test "x$cache_file" != "x/dev/null"; then
   33140       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   33141 $as_echo "$as_me: updating cache $cache_file" >&6;}
   33142       if test ! -f "$cache_file" || test -h "$cache_file"; then
   33143 	cat confcache >"$cache_file"
   33144       else
   33145         case $cache_file in #(
   33146         */* | ?:*)
   33147 	  mv -f confcache "$cache_file"$$ &&
   33148 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   33149         *)
   33150 	  mv -f confcache "$cache_file" ;;
   33151 	esac
   33152       fi
   33153     fi
   33154   else
   33155     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   33156 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   33157   fi
   33158 fi
   33159 rm -f confcache
   33160 
   33161 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   33162 # Let make expand exec_prefix.
   33163 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   33164 
   33165 DEFS=-DHAVE_CONFIG_H
   33166 
   33167 ac_libobjs=
   33168 ac_ltlibobjs=
   33169 U=
   33170 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   33171   # 1. Remove the extension, and $U if already installed.
   33172   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   33173   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   33174   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   33175   #    will be set to the directory where LIBOBJS objects are built.
   33176   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   33177   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   33178 done
   33179 LIBOBJS=$ac_libobjs
   33180 
   33181 LTLIBOBJS=$ac_ltlibobjs
   33182 
   33183 
   33184 
   33185 
   33186 : "${CONFIG_STATUS=./config.status}"
   33187 ac_write_fail=0
   33188 ac_clean_files_save=$ac_clean_files
   33189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   33190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   33191 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   33192 as_write_fail=0
   33193 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   33194 #! $SHELL
   33195 # Generated by $as_me.
   33196 # Run this file to recreate the current configuration.
   33197 # Compiler output produced by configure, useful for debugging
   33198 # configure, is in config.log if it exists.
   33199 
   33200 debug=false
   33201 ac_cs_recheck=false
   33202 ac_cs_silent=false
   33203 
   33204 SHELL=\${CONFIG_SHELL-$SHELL}
   33205 export SHELL
   33206 _ASEOF
   33207 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   33208 ## -------------------- ##
   33209 ## M4sh Initialization. ##
   33210 ## -------------------- ##
   33211 
   33212 # Be more Bourne compatible
   33213 DUALCASE=1; export DUALCASE # for MKS sh
   33214 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   33215   emulate sh
   33216   NULLCMD=:
   33217   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   33218   # is contrary to our usage.  Disable this feature.
   33219   alias -g '${1+"$@"}'='"$@"'
   33220   setopt NO_GLOB_SUBST
   33221 else
   33222   case `(set -o) 2>/dev/null` in #(
   33223   *posix*) :
   33224     set -o posix ;; #(
   33225   *) :
   33226      ;;
   33227 esac
   33228 fi
   33229 
   33230 
   33231 as_nl='
   33232 '
   33233 export as_nl
   33234 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   33235 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   33236 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   33237 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   33238 # Prefer a ksh shell builtin over an external printf program on Solaris,
   33239 # but without wasting forks for bash or zsh.
   33240 if test -z "$BASH_VERSION$ZSH_VERSION" \
   33241     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   33242   as_echo='print -r --'
   33243   as_echo_n='print -rn --'
   33244 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   33245   as_echo='printf %s\n'
   33246   as_echo_n='printf %s'
   33247 else
   33248   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   33249     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   33250     as_echo_n='/usr/ucb/echo -n'
   33251   else
   33252     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   33253     as_echo_n_body='eval
   33254       arg=$1;
   33255       case $arg in #(
   33256       *"$as_nl"*)
   33257 	expr "X$arg" : "X\\(.*\\)$as_nl";
   33258 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   33259       esac;
   33260       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   33261     '
   33262     export as_echo_n_body
   33263     as_echo_n='sh -c $as_echo_n_body as_echo'
   33264   fi
   33265   export as_echo_body
   33266   as_echo='sh -c $as_echo_body as_echo'
   33267 fi
   33268 
   33269 # The user is always right.
   33270 if test "${PATH_SEPARATOR+set}" != set; then
   33271   PATH_SEPARATOR=:
   33272   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   33273     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   33274       PATH_SEPARATOR=';'
   33275   }
   33276 fi
   33277 
   33278 
   33279 # IFS
   33280 # We need space, tab and new line, in precisely that order.  Quoting is
   33281 # there to prevent editors from complaining about space-tab.
   33282 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   33283 # splitting by setting IFS to empty value.)
   33284 IFS=" ""	$as_nl"
   33285 
   33286 # Find who we are.  Look in the path if we contain no directory separator.
   33287 as_myself=
   33288 case $0 in #((
   33289   *[\\/]* ) as_myself=$0 ;;
   33290   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   33291 for as_dir in $PATH
   33292 do
   33293   IFS=$as_save_IFS
   33294   test -z "$as_dir" && as_dir=.
   33295     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   33296   done
   33297 IFS=$as_save_IFS
   33298 
   33299      ;;
   33300 esac
   33301 # We did not find ourselves, most probably we were run as `sh COMMAND'
   33302 # in which case we are not to be found in the path.
   33303 if test "x$as_myself" = x; then
   33304   as_myself=$0
   33305 fi
   33306 if test ! -f "$as_myself"; then
   33307   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   33308   exit 1
   33309 fi
   33310 
   33311 # Unset variables that we do not need and which cause bugs (e.g. in
   33312 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   33313 # suppresses any "Segmentation fault" message there.  '((' could
   33314 # trigger a bug in pdksh 5.2.14.
   33315 for as_var in BASH_ENV ENV MAIL MAILPATH
   33316 do eval test x\${$as_var+set} = xset \
   33317   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   33318 done
   33319 PS1='$ '
   33320 PS2='> '
   33321 PS4='+ '
   33322 
   33323 # NLS nuisances.
   33324 LC_ALL=C
   33325 export LC_ALL
   33326 LANGUAGE=C
   33327 export LANGUAGE
   33328 
   33329 # CDPATH.
   33330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   33331 
   33332 
   33333 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   33334 # ----------------------------------------
   33335 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   33336 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   33337 # script with STATUS, using 1 if that was 0.
   33338 as_fn_error ()
   33339 {
   33340   as_status=$1; test $as_status -eq 0 && as_status=1
   33341   if test "$4"; then
   33342     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   33343     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   33344   fi
   33345   $as_echo "$as_me: error: $2" >&2
   33346   as_fn_exit $as_status
   33347 } # as_fn_error
   33348 
   33349 
   33350 # as_fn_set_status STATUS
   33351 # -----------------------
   33352 # Set $? to STATUS, without forking.
   33353 as_fn_set_status ()
   33354 {
   33355   return $1
   33356 } # as_fn_set_status
   33357 
   33358 # as_fn_exit STATUS
   33359 # -----------------
   33360 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   33361 as_fn_exit ()
   33362 {
   33363   set +e
   33364   as_fn_set_status $1
   33365   exit $1
   33366 } # as_fn_exit
   33367 
   33368 # as_fn_unset VAR
   33369 # ---------------
   33370 # Portably unset VAR.
   33371 as_fn_unset ()
   33372 {
   33373   { eval $1=; unset $1;}
   33374 }
   33375 as_unset=as_fn_unset
   33376 # as_fn_append VAR VALUE
   33377 # ----------------------
   33378 # Append the text in VALUE to the end of the definition contained in VAR. Take
   33379 # advantage of any shell optimizations that allow amortized linear growth over
   33380 # repeated appends, instead of the typical quadratic growth present in naive
   33381 # implementations.
   33382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   33383   eval 'as_fn_append ()
   33384   {
   33385     eval $1+=\$2
   33386   }'
   33387 else
   33388   as_fn_append ()
   33389   {
   33390     eval $1=\$$1\$2
   33391   }
   33392 fi # as_fn_append
   33393 
   33394 # as_fn_arith ARG...
   33395 # ------------------
   33396 # Perform arithmetic evaluation on the ARGs, and store the result in the
   33397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   33398 # must be portable across $(()) and expr.
   33399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   33400   eval 'as_fn_arith ()
   33401   {
   33402     as_val=$(( $* ))
   33403   }'
   33404 else
   33405   as_fn_arith ()
   33406   {
   33407     as_val=`expr "$@" || test $? -eq 1`
   33408   }
   33409 fi # as_fn_arith
   33410 
   33411 
   33412 if expr a : '\(a\)' >/dev/null 2>&1 &&
   33413    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   33414   as_expr=expr
   33415 else
   33416   as_expr=false
   33417 fi
   33418 
   33419 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   33420   as_basename=basename
   33421 else
   33422   as_basename=false
   33423 fi
   33424 
   33425 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   33426   as_dirname=dirname
   33427 else
   33428   as_dirname=false
   33429 fi
   33430 
   33431 as_me=`$as_basename -- "$0" ||
   33432 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   33433 	 X"$0" : 'X\(//\)$' \| \
   33434 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   33435 $as_echo X/"$0" |
   33436     sed '/^.*\/\([^/][^/]*\)\/*$/{
   33437 	    s//\1/
   33438 	    q
   33439 	  }
   33440 	  /^X\/\(\/\/\)$/{
   33441 	    s//\1/
   33442 	    q
   33443 	  }
   33444 	  /^X\/\(\/\).*/{
   33445 	    s//\1/
   33446 	    q
   33447 	  }
   33448 	  s/.*/./; q'`
   33449 
   33450 # Avoid depending upon Character Ranges.
   33451 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   33452 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   33453 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   33454 as_cr_digits='0123456789'
   33455 as_cr_alnum=$as_cr_Letters$as_cr_digits
   33456 
   33457 ECHO_C= ECHO_N= ECHO_T=
   33458 case `echo -n x` in #(((((
   33459 -n*)
   33460   case `echo 'xy\c'` in
   33461   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   33462   xy)  ECHO_C='\c';;
   33463   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   33464        ECHO_T='	';;
   33465   esac;;
   33466 *)
   33467   ECHO_N='-n';;
   33468 esac
   33469 
   33470 rm -f conf$$ conf$$.exe conf$$.file
   33471 if test -d conf$$.dir; then
   33472   rm -f conf$$.dir/conf$$.file
   33473 else
   33474   rm -f conf$$.dir
   33475   mkdir conf$$.dir 2>/dev/null
   33476 fi
   33477 if (echo >conf$$.file) 2>/dev/null; then
   33478   if ln -s conf$$.file conf$$ 2>/dev/null; then
   33479     as_ln_s='ln -s'
   33480     # ... but there are two gotchas:
   33481     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   33482     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   33483     # In both cases, we have to default to `cp -pR'.
   33484     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   33485       as_ln_s='cp -pR'
   33486   elif ln conf$$.file conf$$ 2>/dev/null; then
   33487     as_ln_s=ln
   33488   else
   33489     as_ln_s='cp -pR'
   33490   fi
   33491 else
   33492   as_ln_s='cp -pR'
   33493 fi
   33494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   33495 rmdir conf$$.dir 2>/dev/null
   33496 
   33497 
   33498 # as_fn_mkdir_p
   33499 # -------------
   33500 # Create "$as_dir" as a directory, including parents if necessary.
   33501 as_fn_mkdir_p ()
   33502 {
   33503 
   33504   case $as_dir in #(
   33505   -*) as_dir=./$as_dir;;
   33506   esac
   33507   test -d "$as_dir" || eval $as_mkdir_p || {
   33508     as_dirs=
   33509     while :; do
   33510       case $as_dir in #(
   33511       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   33512       *) as_qdir=$as_dir;;
   33513       esac
   33514       as_dirs="'$as_qdir' $as_dirs"
   33515       as_dir=`$as_dirname -- "$as_dir" ||
   33516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   33517 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   33518 	 X"$as_dir" : 'X\(//\)$' \| \
   33519 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   33520 $as_echo X"$as_dir" |
   33521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   33522 	    s//\1/
   33523 	    q
   33524 	  }
   33525 	  /^X\(\/\/\)[^/].*/{
   33526 	    s//\1/
   33527 	    q
   33528 	  }
   33529 	  /^X\(\/\/\)$/{
   33530 	    s//\1/
   33531 	    q
   33532 	  }
   33533 	  /^X\(\/\).*/{
   33534 	    s//\1/
   33535 	    q
   33536 	  }
   33537 	  s/.*/./; q'`
   33538       test -d "$as_dir" && break
   33539     done
   33540     test -z "$as_dirs" || eval "mkdir $as_dirs"
   33541   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   33542 
   33543 
   33544 } # as_fn_mkdir_p
   33545 if mkdir -p . 2>/dev/null; then
   33546   as_mkdir_p='mkdir -p "$as_dir"'
   33547 else
   33548   test -d ./-p && rmdir ./-p
   33549   as_mkdir_p=false
   33550 fi
   33551 
   33552 
   33553 # as_fn_executable_p FILE
   33554 # -----------------------
   33555 # Test if FILE is an executable regular file.
   33556 as_fn_executable_p ()
   33557 {
   33558   test -f "$1" && test -x "$1"
   33559 } # as_fn_executable_p
   33560 as_test_x='test -x'
   33561 as_executable_p=as_fn_executable_p
   33562 
   33563 # Sed expression to map a string onto a valid CPP name.
   33564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   33565 
   33566 # Sed expression to map a string onto a valid variable name.
   33567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   33568 
   33569 
   33570 exec 6>&1
   33571 ## ----------------------------------- ##
   33572 ## Main body of $CONFIG_STATUS script. ##
   33573 ## ----------------------------------- ##
   33574 _ASEOF
   33575 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   33576 
   33577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   33578 # Save the log message, to keep $0 and so on meaningful, and to
   33579 # report actual input values of CONFIG_FILES etc. instead of their
   33580 # values after options handling.
   33581 ac_log="
   33582 This file was extended by $as_me, which was
   33583 generated by GNU Autoconf 2.69.  Invocation command line was
   33584 
   33585   CONFIG_FILES    = $CONFIG_FILES
   33586   CONFIG_HEADERS  = $CONFIG_HEADERS
   33587   CONFIG_LINKS    = $CONFIG_LINKS
   33588   CONFIG_COMMANDS = $CONFIG_COMMANDS
   33589   $ $0 $@
   33590 
   33591 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   33592 "
   33593 
   33594 _ACEOF
   33595 
   33596 case $ac_config_files in *"
   33597 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   33598 esac
   33599 
   33600 case $ac_config_headers in *"
   33601 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   33602 esac
   33603 
   33604 
   33605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   33606 # Files that config.status was made for.
   33607 config_files="$ac_config_files"
   33608 config_headers="$ac_config_headers"
   33609 config_links="$ac_config_links"
   33610 config_commands="$ac_config_commands"
   33611 
   33612 _ACEOF
   33613 
   33614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   33615 ac_cs_usage="\
   33616 \`$as_me' instantiates files and other configuration actions
   33617 from templates according to the current configuration.  Unless the files
   33618 and actions are specified as TAGs, all are instantiated by default.
   33619 
   33620 Usage: $0 [OPTION]... [TAG]...
   33621 
   33622   -h, --help       print this help, then exit
   33623   -V, --version    print version number and configuration settings, then exit
   33624       --config     print configuration, then exit
   33625   -q, --quiet, --silent
   33626                    do not print progress messages
   33627   -d, --debug      don't remove temporary files
   33628       --recheck    update $as_me by reconfiguring in the same conditions
   33629       --file=FILE[:TEMPLATE]
   33630                    instantiate the configuration file FILE
   33631       --header=FILE[:TEMPLATE]
   33632                    instantiate the configuration header FILE
   33633 
   33634 Configuration files:
   33635 $config_files
   33636 
   33637 Configuration headers:
   33638 $config_headers
   33639 
   33640 Configuration links:
   33641 $config_links
   33642 
   33643 Configuration commands:
   33644 $config_commands
   33645 
   33646 Report bugs to the package provider."
   33647 
   33648 _ACEOF
   33649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   33650 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   33651 ac_cs_version="\\
   33652 config.status
   33653 configured by $0, generated by GNU Autoconf 2.69,
   33654   with options \\"\$ac_cs_config\\"
   33655 
   33656 Copyright (C) 2012 Free Software Foundation, Inc.
   33657 This config.status script is free software; the Free Software Foundation
   33658 gives unlimited permission to copy, distribute and modify it."
   33659 
   33660 ac_pwd='$ac_pwd'
   33661 srcdir='$srcdir'
   33662 AWK='$AWK'
   33663 test -n "\$AWK" || AWK=awk
   33664 _ACEOF
   33665 
   33666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   33667 # The default lists apply if the user does not specify any file.
   33668 ac_need_defaults=:
   33669 while test $# != 0
   33670 do
   33671   case $1 in
   33672   --*=?*)
   33673     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   33674     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   33675     ac_shift=:
   33676     ;;
   33677   --*=)
   33678     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   33679     ac_optarg=
   33680     ac_shift=:
   33681     ;;
   33682   *)
   33683     ac_option=$1
   33684     ac_optarg=$2
   33685     ac_shift=shift
   33686     ;;
   33687   esac
   33688 
   33689   case $ac_option in
   33690   # Handling of the options.
   33691   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   33692     ac_cs_recheck=: ;;
   33693   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   33694     $as_echo "$ac_cs_version"; exit ;;
   33695   --config | --confi | --conf | --con | --co | --c )
   33696     $as_echo "$ac_cs_config"; exit ;;
   33697   --debug | --debu | --deb | --de | --d | -d )
   33698     debug=: ;;
   33699   --file | --fil | --fi | --f )
   33700     $ac_shift
   33701     case $ac_optarg in
   33702     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   33703     '') as_fn_error $? "missing file argument" ;;
   33704     esac
   33705     as_fn_append CONFIG_FILES " '$ac_optarg'"
   33706     ac_need_defaults=false;;
   33707   --header | --heade | --head | --hea )
   33708     $ac_shift
   33709     case $ac_optarg in
   33710     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   33711     esac
   33712     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   33713     ac_need_defaults=false;;
   33714   --he | --h)
   33715     # Conflict between --help and --header
   33716     as_fn_error $? "ambiguous option: \`$1'
   33717 Try \`$0 --help' for more information.";;
   33718   --help | --hel | -h )
   33719     $as_echo "$ac_cs_usage"; exit ;;
   33720   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   33721   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   33722     ac_cs_silent=: ;;
   33723 
   33724   # This is an error.
   33725   -*) as_fn_error $? "unrecognized option: \`$1'
   33726 Try \`$0 --help' for more information." ;;
   33727 
   33728   *) as_fn_append ac_config_targets " $1"
   33729      ac_need_defaults=false ;;
   33730 
   33731   esac
   33732   shift
   33733 done
   33734 
   33735 ac_configure_extra_args=
   33736 
   33737 if $ac_cs_silent; then
   33738   exec 6>/dev/null
   33739   ac_configure_extra_args="$ac_configure_extra_args --silent"
   33740 fi
   33741 
   33742 _ACEOF
   33743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   33744 if \$ac_cs_recheck; then
   33745   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   33746   shift
   33747   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   33748   CONFIG_SHELL='$SHELL'
   33749   export CONFIG_SHELL
   33750   exec "\$@"
   33751 fi
   33752 
   33753 _ACEOF
   33754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   33755 exec 5>>config.log
   33756 {
   33757   echo
   33758   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   33759 ## Running $as_me. ##
   33760 _ASBOX
   33761   $as_echo "$ac_log"
   33762 } >&5
   33763 
   33764 _ACEOF
   33765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   33766 #
   33767 # INIT-COMMANDS
   33768 #
   33769 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
   33770 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
   33771 subdirs='$subdirs'
   33772 
   33773 _ACEOF
   33774 
   33775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   33776 
   33777 # Handling of arguments.
   33778 for ac_config_target in $ac_config_targets
   33779 do
   33780   case $ac_config_target in
   33781     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
   33782     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
   33783     "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
   33784     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
   33785     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
   33786     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
   33787     "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
   33788     "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
   33789     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
   33790     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
   33791 
   33792   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   33793   esac
   33794 done
   33795 
   33796 
   33797 # If the user did not use the arguments to specify the items to instantiate,
   33798 # then the envvar interface is used.  Set only those that are not.
   33799 # We use the long form for the default assignment because of an extremely
   33800 # bizarre bug on SunOS 4.1.3.
   33801 if $ac_need_defaults; then
   33802   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   33803   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   33804   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
   33805   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   33806 fi
   33807 
   33808 # Have a temporary directory for convenience.  Make it in the build tree
   33809 # simply because there is no reason against having it here, and in addition,
   33810 # creating and moving files from /tmp can sometimes cause problems.
   33811 # Hook for its removal unless debugging.
   33812 # Note that there is a small window in which the directory will not be cleaned:
   33813 # after its creation but before its name has been assigned to `$tmp'.
   33814 $debug ||
   33815 {
   33816   tmp= ac_tmp=
   33817   trap 'exit_status=$?
   33818   : "${ac_tmp:=$tmp}"
   33819   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   33820 ' 0
   33821   trap 'as_fn_exit 1' 1 2 13 15
   33822 }
   33823 # Create a (secure) tmp directory for tmp files.
   33824 
   33825 {
   33826   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   33827   test -d "$tmp"
   33828 }  ||
   33829 {
   33830   tmp=./conf$$-$RANDOM
   33831   (umask 077 && mkdir "$tmp")
   33832 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   33833 ac_tmp=$tmp
   33834 
   33835 # Set up the scripts for CONFIG_FILES section.
   33836 # No need to generate them if there are no CONFIG_FILES.
   33837 # This happens for instance with `./config.status config.h'.
   33838 if test -n "$CONFIG_FILES"; then
   33839 
   33840 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   33841   ac_cs_awk_getline=:
   33842   ac_cs_awk_pipe_init=
   33843   ac_cs_awk_read_file='
   33844       while ((getline aline < (F[key])) > 0)
   33845 	print(aline)
   33846       close(F[key])'
   33847   ac_cs_awk_pipe_fini=
   33848 else
   33849   ac_cs_awk_getline=false
   33850   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   33851   ac_cs_awk_read_file='
   33852       print "|#_!!_#|"
   33853       print "cat " F[key] " &&"
   33854       '$ac_cs_awk_pipe_init
   33855   # The final `:' finishes the AND list.
   33856   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   33857 fi
   33858 ac_cr=`echo X | tr X '\015'`
   33859 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   33860 # But we know of no other shell where ac_cr would be empty at this
   33861 # point, so we can use a bashism as a fallback.
   33862 if test "x$ac_cr" = x; then
   33863   eval ac_cr=\$\'\\r\'
   33864 fi
   33865 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   33866 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   33867   ac_cs_awk_cr='\\r'
   33868 else
   33869   ac_cs_awk_cr=$ac_cr
   33870 fi
   33871 
   33872 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   33873 _ACEOF
   33874 
   33875 # Create commands to substitute file output variables.
   33876 {
   33877   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   33878   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   33879   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   33880   echo "_ACAWK" &&
   33881   echo "_ACEOF"
   33882 } >conf$$files.sh &&
   33883 . ./conf$$files.sh ||
   33884   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   33885 rm -f conf$$files.sh
   33886 
   33887 {
   33888   echo "cat >conf$$subs.awk <<_ACEOF" &&
   33889   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   33890   echo "_ACEOF"
   33891 } >conf$$subs.sh ||
   33892   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   33893 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   33894 ac_delim='%!_!# '
   33895 for ac_last_try in false false false false false :; do
   33896   . ./conf$$subs.sh ||
   33897     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   33898 
   33899   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   33900   if test $ac_delim_n = $ac_delim_num; then
   33901     break
   33902   elif $ac_last_try; then
   33903     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   33904   else
   33905     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   33906   fi
   33907 done
   33908 rm -f conf$$subs.sh
   33909 
   33910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   33911 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   33912 _ACEOF
   33913 sed -n '
   33914 h
   33915 s/^/S["/; s/!.*/"]=/
   33916 p
   33917 g
   33918 s/^[^!]*!//
   33919 :repl
   33920 t repl
   33921 s/'"$ac_delim"'$//
   33922 t delim
   33923 :nl
   33924 h
   33925 s/\(.\{148\}\)..*/\1/
   33926 t more1
   33927 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   33928 p
   33929 n
   33930 b repl
   33931 :more1
   33932 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   33933 p
   33934 g
   33935 s/.\{148\}//
   33936 t nl
   33937 :delim
   33938 h
   33939 s/\(.\{148\}\)..*/\1/
   33940 t more2
   33941 s/["\\]/\\&/g; s/^/"/; s/$/"/
   33942 p
   33943 b
   33944 :more2
   33945 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   33946 p
   33947 g
   33948 s/.\{148\}//
   33949 t delim
   33950 ' <conf$$subs.awk | sed '
   33951 /^[^""]/{
   33952   N
   33953   s/\n//
   33954 }
   33955 ' >>$CONFIG_STATUS || ac_write_fail=1
   33956 rm -f conf$$subs.awk
   33957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   33958 _ACAWK
   33959 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   33960   for (key in S) S_is_set[key] = 1
   33961   FS = ""
   33962   \$ac_cs_awk_pipe_init
   33963 }
   33964 {
   33965   line = $ 0
   33966   nfields = split(line, field, "@")
   33967   substed = 0
   33968   len = length(field[1])
   33969   for (i = 2; i < nfields; i++) {
   33970     key = field[i]
   33971     keylen = length(key)
   33972     if (S_is_set[key]) {
   33973       value = S[key]
   33974       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   33975       len += length(value) + length(field[++i])
   33976       substed = 1
   33977     } else
   33978       len += 1 + keylen
   33979   }
   33980   if (nfields == 3 && !substed) {
   33981     key = field[2]
   33982     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   33983       \$ac_cs_awk_read_file
   33984       next
   33985     }
   33986   }
   33987   print line
   33988 }
   33989 \$ac_cs_awk_pipe_fini
   33990 _ACAWK
   33991 _ACEOF
   33992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   33993 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   33994   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   33995 else
   33996   cat
   33997 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   33998   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   33999 _ACEOF
   34000 
   34001 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   34002 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   34003 # trailing colons and then remove the whole line if VPATH becomes empty
   34004 # (actually we leave an empty line to preserve line numbers).
   34005 if test "x$srcdir" = x.; then
   34006   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   34007 h
   34008 s///
   34009 s/^/:/
   34010 s/[	 ]*$/:/
   34011 s/:\$(srcdir):/:/g
   34012 s/:\${srcdir}:/:/g
   34013 s/:@srcdir@:/:/g
   34014 s/^:*//
   34015 s/:*$//
   34016 x
   34017 s/\(=[	 ]*\).*/\1/
   34018 G
   34019 s/\n//
   34020 s/^[^=]*=[	 ]*$//
   34021 }'
   34022 fi
   34023 
   34024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   34025 fi # test -n "$CONFIG_FILES"
   34026 
   34027 # Set up the scripts for CONFIG_HEADERS section.
   34028 # No need to generate them if there are no CONFIG_HEADERS.
   34029 # This happens for instance with `./config.status Makefile'.
   34030 if test -n "$CONFIG_HEADERS"; then
   34031 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   34032 BEGIN {
   34033 _ACEOF
   34034 
   34035 # Transform confdefs.h into an awk script `defines.awk', embedded as
   34036 # here-document in config.status, that substitutes the proper values into
   34037 # config.h.in to produce config.h.
   34038 
   34039 # Create a delimiter string that does not exist in confdefs.h, to ease
   34040 # handling of long lines.
   34041 ac_delim='%!_!# '
   34042 for ac_last_try in false false :; do
   34043   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   34044   if test -z "$ac_tt"; then
   34045     break
   34046   elif $ac_last_try; then
   34047     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   34048   else
   34049     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   34050   fi
   34051 done
   34052 
   34053 # For the awk script, D is an array of macro values keyed by name,
   34054 # likewise P contains macro parameters if any.  Preserve backslash
   34055 # newline sequences.
   34056 
   34057 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   34058 sed -n '
   34059 s/.\{148\}/&'"$ac_delim"'/g
   34060 t rset
   34061 :rset
   34062 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   34063 t def
   34064 d
   34065 :def
   34066 s/\\$//
   34067 t bsnl
   34068 s/["\\]/\\&/g
   34069 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   34070 D["\1"]=" \3"/p
   34071 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   34072 d
   34073 :bsnl
   34074 s/["\\]/\\&/g
   34075 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   34076 D["\1"]=" \3\\\\\\n"\\/p
   34077 t cont
   34078 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   34079 t cont
   34080 d
   34081 :cont
   34082 n
   34083 s/.\{148\}/&'"$ac_delim"'/g
   34084 t clear
   34085 :clear
   34086 s/\\$//
   34087 t bsnlc
   34088 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   34089 d
   34090 :bsnlc
   34091 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   34092 b cont
   34093 ' <confdefs.h | sed '
   34094 s/'"$ac_delim"'/"\\\
   34095 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   34096 
   34097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   34098   for (key in D) D_is_set[key] = 1
   34099   FS = ""
   34100 }
   34101 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   34102   line = \$ 0
   34103   split(line, arg, " ")
   34104   if (arg[1] == "#") {
   34105     defundef = arg[2]
   34106     mac1 = arg[3]
   34107   } else {
   34108     defundef = substr(arg[1], 2)
   34109     mac1 = arg[2]
   34110   }
   34111   split(mac1, mac2, "(") #)
   34112   macro = mac2[1]
   34113   prefix = substr(line, 1, index(line, defundef) - 1)
   34114   if (D_is_set[macro]) {
   34115     # Preserve the white space surrounding the "#".
   34116     print prefix "define", macro P[macro] D[macro]
   34117     next
   34118   } else {
   34119     # Replace #undef with comments.  This is necessary, for example,
   34120     # in the case of _POSIX_SOURCE, which is predefined and required
   34121     # on some systems where configure will not decide to define it.
   34122     if (defundef == "undef") {
   34123       print "/*", prefix defundef, macro, "*/"
   34124       next
   34125     }
   34126   }
   34127 }
   34128 { print }
   34129 _ACAWK
   34130 _ACEOF
   34131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   34132   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   34133 fi # test -n "$CONFIG_HEADERS"
   34134 
   34135 
   34136 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
   34137 shift
   34138 for ac_tag
   34139 do
   34140   case $ac_tag in
   34141   :[FHLC]) ac_mode=$ac_tag; continue;;
   34142   esac
   34143   case $ac_mode$ac_tag in
   34144   :[FHL]*:*);;
   34145   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   34146   :[FH]-) ac_tag=-:-;;
   34147   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   34148   esac
   34149   ac_save_IFS=$IFS
   34150   IFS=:
   34151   set x $ac_tag
   34152   IFS=$ac_save_IFS
   34153   shift
   34154   ac_file=$1
   34155   shift
   34156 
   34157   case $ac_mode in
   34158   :L) ac_source=$1;;
   34159   :[FH])
   34160     ac_file_inputs=
   34161     for ac_f
   34162     do
   34163       case $ac_f in
   34164       -) ac_f="$ac_tmp/stdin";;
   34165       *) # Look for the file first in the build tree, then in the source tree
   34166 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   34167 	 # because $ac_f cannot contain `:'.
   34168 	 test -f "$ac_f" ||
   34169 	   case $ac_f in
   34170 	   [\\/$]*) false;;
   34171 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   34172 	   esac ||
   34173 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   34174       esac
   34175       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   34176       as_fn_append ac_file_inputs " '$ac_f'"
   34177     done
   34178 
   34179     # Let's still pretend it is `configure' which instantiates (i.e., don't
   34180     # use $as_me), people would be surprised to read:
   34181     #    /* config.h.  Generated by config.status.  */
   34182     configure_input='Generated from '`
   34183 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   34184 	`' by configure.'
   34185     if test x"$ac_file" != x-; then
   34186       configure_input="$ac_file.  $configure_input"
   34187       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   34188 $as_echo "$as_me: creating $ac_file" >&6;}
   34189     fi
   34190     # Neutralize special characters interpreted by sed in replacement strings.
   34191     case $configure_input in #(
   34192     *\&* | *\|* | *\\* )
   34193        ac_sed_conf_input=`$as_echo "$configure_input" |
   34194        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   34195     *) ac_sed_conf_input=$configure_input;;
   34196     esac
   34197 
   34198     case $ac_tag in
   34199     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   34200       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   34201     esac
   34202     ;;
   34203   esac
   34204 
   34205   ac_dir=`$as_dirname -- "$ac_file" ||
   34206 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   34207 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   34208 	 X"$ac_file" : 'X\(//\)$' \| \
   34209 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   34210 $as_echo X"$ac_file" |
   34211     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   34212 	    s//\1/
   34213 	    q
   34214 	  }
   34215 	  /^X\(\/\/\)[^/].*/{
   34216 	    s//\1/
   34217 	    q
   34218 	  }
   34219 	  /^X\(\/\/\)$/{
   34220 	    s//\1/
   34221 	    q
   34222 	  }
   34223 	  /^X\(\/\).*/{
   34224 	    s//\1/
   34225 	    q
   34226 	  }
   34227 	  s/.*/./; q'`
   34228   as_dir="$ac_dir"; as_fn_mkdir_p
   34229   ac_builddir=.
   34230 
   34231 case "$ac_dir" in
   34232 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   34233 *)
   34234   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   34235   # A ".." for each directory in $ac_dir_suffix.
   34236   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   34237   case $ac_top_builddir_sub in
   34238   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   34239   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   34240   esac ;;
   34241 esac
   34242 ac_abs_top_builddir=$ac_pwd
   34243 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   34244 # for backward compatibility:
   34245 ac_top_builddir=$ac_top_build_prefix
   34246 
   34247 case $srcdir in
   34248   .)  # We are building in place.
   34249     ac_srcdir=.
   34250     ac_top_srcdir=$ac_top_builddir_sub
   34251     ac_abs_top_srcdir=$ac_pwd ;;
   34252   [\\/]* | ?:[\\/]* )  # Absolute name.
   34253     ac_srcdir=$srcdir$ac_dir_suffix;
   34254     ac_top_srcdir=$srcdir
   34255     ac_abs_top_srcdir=$srcdir ;;
   34256   *) # Relative name.
   34257     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   34258     ac_top_srcdir=$ac_top_build_prefix$srcdir
   34259     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   34260 esac
   34261 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   34262 
   34263 
   34264   case $ac_mode in
   34265   :F)
   34266   #
   34267   # CONFIG_FILE
   34268   #
   34269 
   34270 _ACEOF
   34271 
   34272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   34273 # If the template does not know about datarootdir, expand it.
   34274 # FIXME: This hack should be removed a few years after 2.60.
   34275 ac_datarootdir_hack=; ac_datarootdir_seen=
   34276 ac_sed_dataroot='
   34277 /datarootdir/ {
   34278   p
   34279   q
   34280 }
   34281 /@datadir@/p
   34282 /@docdir@/p
   34283 /@infodir@/p
   34284 /@localedir@/p
   34285 /@mandir@/p'
   34286 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   34287 *datarootdir*) ac_datarootdir_seen=yes;;
   34288 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   34289   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   34290 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   34291 _ACEOF
   34292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   34293   ac_datarootdir_hack='
   34294   s&@datadir@&$datadir&g
   34295   s&@docdir@&$docdir&g
   34296   s&@infodir@&$infodir&g
   34297   s&@localedir@&$localedir&g
   34298   s&@mandir@&$mandir&g
   34299   s&\\\${datarootdir}&$datarootdir&g' ;;
   34300 esac
   34301 _ACEOF
   34302 
   34303 # Neutralize VPATH when `$srcdir' = `.'.
   34304 # Shell code in configure.ac might set extrasub.
   34305 # FIXME: do we really want to maintain this feature?
   34306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   34307 ac_sed_extra="$ac_vpsub
   34308 $extrasub
   34309 _ACEOF
   34310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   34311 :t
   34312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   34313 s|@configure_input@|$ac_sed_conf_input|;t t
   34314 s&@top_builddir@&$ac_top_builddir_sub&;t t
   34315 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   34316 s&@srcdir@&$ac_srcdir&;t t
   34317 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   34318 s&@top_srcdir@&$ac_top_srcdir&;t t
   34319 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   34320 s&@builddir@&$ac_builddir&;t t
   34321 s&@abs_builddir@&$ac_abs_builddir&;t t
   34322 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   34323 $ac_datarootdir_hack
   34324 "
   34325 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   34326 if $ac_cs_awk_getline; then
   34327   $AWK -f "$ac_tmp/subs.awk"
   34328 else
   34329   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   34330 fi \
   34331   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   34332 
   34333 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   34334   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   34335   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   34336       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   34337   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   34338 which seems to be undefined.  Please make sure it is defined" >&5
   34339 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   34340 which seems to be undefined.  Please make sure it is defined" >&2;}
   34341 
   34342   rm -f "$ac_tmp/stdin"
   34343   case $ac_file in
   34344   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   34345   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   34346   esac \
   34347   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   34348  ;;
   34349   :H)
   34350   #
   34351   # CONFIG_HEADER
   34352   #
   34353   if test x"$ac_file" != x-; then
   34354     {
   34355       $as_echo "/* $configure_input  */" \
   34356       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   34357     } >"$ac_tmp/config.h" \
   34358       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   34359     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   34360       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   34361 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   34362     else
   34363       rm -f "$ac_file"
   34364       mv "$ac_tmp/config.h" "$ac_file" \
   34365 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   34366     fi
   34367   else
   34368     $as_echo "/* $configure_input  */" \
   34369       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   34370       || as_fn_error $? "could not create -" "$LINENO" 5
   34371   fi
   34372  ;;
   34373   :L)
   34374   #
   34375   # CONFIG_LINK
   34376   #
   34377 
   34378   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
   34379     :
   34380   else
   34381     # Prefer the file from the source tree if names are identical.
   34382     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
   34383       ac_source=$srcdir/$ac_source
   34384     fi
   34385 
   34386     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
   34387 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
   34388 
   34389     if test ! -r "$ac_source"; then
   34390       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
   34391     fi
   34392     rm -f "$ac_file"
   34393 
   34394     # Try a relative symlink, then a hard link, then a copy.
   34395     case $ac_source in
   34396     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
   34397 	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
   34398     esac
   34399     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
   34400       ln "$ac_source" "$ac_file" 2>/dev/null ||
   34401       cp -p "$ac_source" "$ac_file" ||
   34402       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
   34403   fi
   34404  ;;
   34405   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   34406 $as_echo "$as_me: executing $ac_file commands" >&6;}
   34407  ;;
   34408   esac
   34409 
   34410 
   34411   case $ac_file$ac_mode in
   34412     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
   34413     "gccdepdir":C)
   34414   ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
   34415   for lang in $subdirs c-family common analyzer rtl-ssa
   34416   do
   34417       ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
   34418   done ;;
   34419     "as":F) chmod +x as ;;
   34420     "collect-ld":F) chmod +x collect-ld ;;
   34421     "nm":F) chmod +x nm ;;
   34422     "dsymutil":F) chmod +x dsymutil ;;
   34423     "default":C)
   34424 case ${CONFIG_HEADERS} in
   34425   *auto-host.h:config.in*)
   34426   echo > cstamp-h ;;
   34427 esac
   34428 # Make sure all the subdirs exist.
   34429 for d in $subdirs doc build common c-family
   34430 do
   34431     test -d $d || mkdir $d
   34432 done
   34433  ;;
   34434 
   34435   esac
   34436 done # for ac_tag
   34437 
   34438 
   34439 as_fn_exit 0
   34440 _ACEOF
   34441 ac_clean_files=$ac_clean_files_save
   34442 
   34443 test $ac_write_fail = 0 ||
   34444   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   34445 
   34446 
   34447 # configure is writing to config.log, and then calls config.status.
   34448 # config.status does its own redirection, appending to config.log.
   34449 # Unfortunately, on DOS this fails, as config.log is still kept open
   34450 # by configure, so config.status won't be able to write to it; its
   34451 # output is simply discarded.  So we exec the FD to /dev/null,
   34452 # effectively closing config.log, so it can be properly (re)opened and
   34453 # appended to by config.status.  When coming back to configure, we
   34454 # need to make the FD available again.
   34455 if test "$no_create" != yes; then
   34456   ac_cs_success=:
   34457   ac_config_status_args=
   34458   test "$silent" = yes &&
   34459     ac_config_status_args="$ac_config_status_args --quiet"
   34460   exec 5>/dev/null
   34461   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   34462   exec 5>>config.log
   34463   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   34464   # would make configure fail if this is the last instruction.
   34465   $ac_cs_success || as_fn_exit 1
   34466 fi
   34467 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   34468   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   34469 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   34470 fi
   34471