8013480: fix zero build on arm

Mon, 29 Apr 2013 12:34:30 -0400

author
omajid
date
Mon, 29 Apr 2013 12:34:30 -0400
changeset 695
1dfcc874461e
parent 693
b9415faa7066
child 696
7e7582e961ba

8013480: fix zero build on arm
Reviewed-by: erikj

common/autoconf/generated-configure.sh file | annotate | diff | comparison | revisions
common/autoconf/platform.m4 file | annotate | diff | comparison | revisions
common/autoconf/spec.gmk.in file | annotate | diff | comparison | revisions
     1.1 --- a/common/autoconf/generated-configure.sh	Tue Apr 23 09:26:43 2013 -0700
     1.2 +++ b/common/autoconf/generated-configure.sh	Mon Apr 29 12:34:30 2013 -0400
     1.3 @@ -1,6 +1,6 @@
     1.4  #! /bin/sh
     1.5  # Guess values for system-dependent variables and create Makefiles.
     1.6 -# Generated by GNU Autoconf 2.67 for OpenJDK jdk8.
     1.7 +# Generated by GNU Autoconf 2.68 for OpenJDK jdk8.
     1.8  #
     1.9  # Report bugs to <build-dev@openjdk.java.net>.
    1.10  #
    1.11 @@ -91,6 +91,7 @@
    1.12  IFS=" ""	$as_nl"
    1.13  
    1.14  # Find who we are.  Look in the path if we contain no directory separator.
    1.15 +as_myself=
    1.16  case $0 in #((
    1.17    *[\\/]* ) as_myself=$0 ;;
    1.18    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1.19 @@ -216,11 +217,18 @@
    1.20    # We cannot yet assume a decent shell, so we have to provide a
    1.21  	# neutralization value for shells without unset; and this also
    1.22  	# works around shells that cannot unset nonexistent variables.
    1.23 +	# Preserve -v and -x to the replacement shell.
    1.24  	BASH_ENV=/dev/null
    1.25  	ENV=/dev/null
    1.26  	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    1.27  	export CONFIG_SHELL
    1.28 -	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    1.29 +	case $- in # ((((
    1.30 +	  *v*x* | *x*v* ) as_opts=-vx ;;
    1.31 +	  *v* ) as_opts=-v ;;
    1.32 +	  *x* ) as_opts=-x ;;
    1.33 +	  * ) as_opts= ;;
    1.34 +	esac
    1.35 +	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
    1.36  fi
    1.37  
    1.38      if test x$as_have_required = xno; then :
    1.39 @@ -679,6 +687,7 @@
    1.40  STATIC_LIBRARY
    1.41  SHARED_LIBRARY
    1.42  OBJ_SUFFIX
    1.43 +COMPILER_SUPPORTS_TARGET_BITS_FLAG
    1.44  LIPO
    1.45  ac_ct_OBJDUMP
    1.46  OBJDUMP
    1.47 @@ -711,20 +720,10 @@
    1.48  ac_ct_OBJC
    1.49  OBJCFLAGS
    1.50  OBJC
    1.51 -ac_ct_CXX
    1.52 -CXXFLAGS
    1.53 -CXX
    1.54  ac_ct_PROPER_COMPILER_CXX
    1.55  PROPER_COMPILER_CXX
    1.56  POTENTIAL_CXX
    1.57  TOOLS_DIR_CXX
    1.58 -OBJEXT
    1.59 -EXEEXT
    1.60 -ac_ct_CC
    1.61 -CPPFLAGS
    1.62 -LDFLAGS
    1.63 -CFLAGS
    1.64 -CC
    1.65  ac_ct_PROPER_COMPILER_CC
    1.66  PROPER_COMPILER_CC
    1.67  POTENTIAL_CC
    1.68 @@ -836,6 +835,16 @@
    1.69  SRC_ROOT
    1.70  ZERO_ARCHDEF
    1.71  ZERO_ARCHFLAG
    1.72 +ac_ct_CXX
    1.73 +CXXFLAGS
    1.74 +CXX
    1.75 +OBJEXT
    1.76 +EXEEXT
    1.77 +ac_ct_CC
    1.78 +CPPFLAGS
    1.79 +LDFLAGS
    1.80 +CFLAGS
    1.81 +CC
    1.82  DEFINE_CROSS_COMPILE_ARCH
    1.83  LP64
    1.84  OPENJDK_TARGET_OS_API_DIR
    1.85 @@ -1032,7 +1041,6 @@
    1.86        ac_precious_vars='build_alias
    1.87  host_alias
    1.88  target_alias
    1.89 -PKG_CONFIG
    1.90  CC
    1.91  CFLAGS
    1.92  LDFLAGS
    1.93 @@ -1041,6 +1049,7 @@
    1.94  CXX
    1.95  CXXFLAGS
    1.96  CCC
    1.97 +PKG_CONFIG
    1.98  OBJC
    1.99  OBJCFLAGS
   1.100  CPP
   1.101 @@ -1456,7 +1465,7 @@
   1.102      $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1.103      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1.104        $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1.105 -    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1.106 +    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1.107      ;;
   1.108  
   1.109    esac
   1.110 @@ -1800,7 +1809,6 @@
   1.111    --with-ccache-dir       where to store ccache files [~/.ccache]
   1.112  
   1.113  Some influential environment variables:
   1.114 -  PKG_CONFIG  path to pkg-config utility
   1.115    CC          C compiler command
   1.116    CFLAGS      C compiler flags
   1.117    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1.118 @@ -1810,6 +1818,7 @@
   1.119                you have headers in a nonstandard directory <include dir>
   1.120    CXX         C++ compiler command
   1.121    CXXFLAGS    C++ compiler flags
   1.122 +  PKG_CONFIG  path to pkg-config utility
   1.123    OBJC        Objective C compiler command
   1.124    OBJCFLAGS   Objective C compiler flags
   1.125    CPP         C preprocessor
   1.126 @@ -1893,7 +1902,7 @@
   1.127  if $ac_init_version; then
   1.128    cat <<\_ACEOF
   1.129  OpenJDK configure jdk8
   1.130 -generated by GNU Autoconf 2.67
   1.131 +generated by GNU Autoconf 2.68
   1.132  
   1.133  Copyright (C) 2010 Free Software Foundation, Inc.
   1.134  This configure script is free software; the Free Software Foundation
   1.135 @@ -1939,7 +1948,7 @@
   1.136  
   1.137  	ac_retval=1
   1.138  fi
   1.139 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1.140 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.141    as_fn_set_status $ac_retval
   1.142  
   1.143  } # ac_fn_c_try_compile
   1.144 @@ -1977,7 +1986,7 @@
   1.145  
   1.146  	ac_retval=1
   1.147  fi
   1.148 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1.149 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.150    as_fn_set_status $ac_retval
   1.151  
   1.152  } # ac_fn_cxx_try_compile
   1.153 @@ -2015,7 +2024,7 @@
   1.154  
   1.155  	ac_retval=1
   1.156  fi
   1.157 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1.158 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.159    as_fn_set_status $ac_retval
   1.160  
   1.161  } # ac_fn_objc_try_compile
   1.162 @@ -2052,7 +2061,7 @@
   1.163  
   1.164      ac_retval=1
   1.165  fi
   1.166 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1.167 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.168    as_fn_set_status $ac_retval
   1.169  
   1.170  } # ac_fn_c_try_cpp
   1.171 @@ -2089,7 +2098,7 @@
   1.172  
   1.173      ac_retval=1
   1.174  fi
   1.175 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1.176 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.177    as_fn_set_status $ac_retval
   1.178  
   1.179  } # ac_fn_cxx_try_cpp
   1.180 @@ -2102,10 +2111,10 @@
   1.181  ac_fn_cxx_check_header_mongrel ()
   1.182  {
   1.183    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1.184 -  if eval "test \"\${$3+set}\"" = set; then :
   1.185 +  if eval \${$3+:} false; then :
   1.186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1.187  $as_echo_n "checking for $2... " >&6; }
   1.188 -if eval "test \"\${$3+set}\"" = set; then :
   1.189 +if eval \${$3+:} false; then :
   1.190    $as_echo_n "(cached) " >&6
   1.191  fi
   1.192  eval ac_res=\$$3
   1.193 @@ -2172,7 +2181,7 @@
   1.194  esac
   1.195    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1.196  $as_echo_n "checking for $2... " >&6; }
   1.197 -if eval "test \"\${$3+set}\"" = set; then :
   1.198 +if eval \${$3+:} false; then :
   1.199    $as_echo_n "(cached) " >&6
   1.200  else
   1.201    eval "$3=\$ac_header_compiler"
   1.202 @@ -2181,7 +2190,7 @@
   1.203  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1.204  $as_echo "$ac_res" >&6; }
   1.205  fi
   1.206 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1.207 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.208  
   1.209  } # ac_fn_cxx_check_header_mongrel
   1.210  
   1.211 @@ -2222,7 +2231,7 @@
   1.212         ac_retval=$ac_status
   1.213  fi
   1.214    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1.215 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1.216 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.217    as_fn_set_status $ac_retval
   1.218  
   1.219  } # ac_fn_cxx_try_run
   1.220 @@ -2236,7 +2245,7 @@
   1.221    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1.222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1.223  $as_echo_n "checking for $2... " >&6; }
   1.224 -if eval "test \"\${$3+set}\"" = set; then :
   1.225 +if eval \${$3+:} false; then :
   1.226    $as_echo_n "(cached) " >&6
   1.227  else
   1.228    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1.229 @@ -2254,7 +2263,7 @@
   1.230  eval ac_res=\$$3
   1.231  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1.232  $as_echo "$ac_res" >&6; }
   1.233 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1.234 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.235  
   1.236  } # ac_fn_cxx_check_header_compile
   1.237  
   1.238 @@ -2431,7 +2440,7 @@
   1.239  rm -f conftest.val
   1.240  
   1.241    fi
   1.242 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1.243 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.244    as_fn_set_status $ac_retval
   1.245  
   1.246  } # ac_fn_cxx_compute_int
   1.247 @@ -2477,7 +2486,7 @@
   1.248    # interfere with the next link command; also delete a directory that is
   1.249    # left behind by Apple's compiler.  We do this before executing the actions.
   1.250    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1.251 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1.252 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.253    as_fn_set_status $ac_retval
   1.254  
   1.255  } # ac_fn_cxx_try_link
   1.256 @@ -2490,7 +2499,7 @@
   1.257    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1.258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1.259  $as_echo_n "checking for $2... " >&6; }
   1.260 -if eval "test \"\${$3+set}\"" = set; then :
   1.261 +if eval \${$3+:} false; then :
   1.262    $as_echo_n "(cached) " >&6
   1.263  else
   1.264    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1.265 @@ -2545,7 +2554,7 @@
   1.266  eval ac_res=\$$3
   1.267  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1.268  $as_echo "$ac_res" >&6; }
   1.269 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1.270 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.271  
   1.272  } # ac_fn_cxx_check_func
   1.273  
   1.274 @@ -2558,7 +2567,7 @@
   1.275    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1.276    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1.277  $as_echo_n "checking for $2... " >&6; }
   1.278 -if eval "test \"\${$3+set}\"" = set; then :
   1.279 +if eval \${$3+:} false; then :
   1.280    $as_echo_n "(cached) " >&6
   1.281  else
   1.282    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1.283 @@ -2576,7 +2585,7 @@
   1.284  eval ac_res=\$$3
   1.285  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1.286  $as_echo "$ac_res" >&6; }
   1.287 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1.288 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.289  
   1.290  } # ac_fn_c_check_header_compile
   1.291  cat >config.log <<_ACEOF
   1.292 @@ -2584,7 +2593,7 @@
   1.293  running configure, to aid debugging if configure makes a mistake.
   1.294  
   1.295  It was created by OpenJDK $as_me jdk8, which was
   1.296 -generated by GNU Autoconf 2.67.  Invocation command line was
   1.297 +generated by GNU Autoconf 2.68.  Invocation command line was
   1.298  
   1.299    $ $0 $@
   1.300  
   1.301 @@ -2842,7 +2851,7 @@
   1.302        || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   1.303  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   1.304  as_fn_error $? "failed to load site script $ac_site_file
   1.305 -See \`config.log' for more details" "$LINENO" 5 ; }
   1.306 +See \`config.log' for more details" "$LINENO" 5; }
   1.307    fi
   1.308  done
   1.309  
   1.310 @@ -3627,6 +3636,16 @@
   1.311  
   1.312  
   1.313  
   1.314 +# PLATFORM_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
   1.315 +#                                   [RUN-IF-FALSE])
   1.316 +# ------------------------------------------------------------
   1.317 +# Check that the c and c++ compilers support an argument
   1.318 +
   1.319 +
   1.320 +# Check that the compiler supports -mX flags
   1.321 +# Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does
   1.322 +
   1.323 +
   1.324  # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
   1.325  # Add -mX to various FLAGS variables.
   1.326  
   1.327 @@ -3764,7 +3783,7 @@
   1.328  #CUSTOM_AUTOCONF_INCLUDE
   1.329  
   1.330  # Do not change or remove the following line, it is needed for consistency checks:
   1.331 -DATE_WHEN_GENERATED=1365493306
   1.332 +DATE_WHEN_GENERATED=1366642537
   1.333  
   1.334  ###############################################################################
   1.335  #
   1.336 @@ -3802,7 +3821,7 @@
   1.337  set dummy $ac_prog; ac_word=$2
   1.338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.339  $as_echo_n "checking for $ac_word... " >&6; }
   1.340 -if test "${ac_cv_path_BASENAME+set}" = set; then :
   1.341 +if ${ac_cv_path_BASENAME+:} false; then :
   1.342    $as_echo_n "(cached) " >&6
   1.343  else
   1.344    case $BASENAME in
   1.345 @@ -3861,7 +3880,7 @@
   1.346  set dummy $ac_prog; ac_word=$2
   1.347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.348  $as_echo_n "checking for $ac_word... " >&6; }
   1.349 -if test "${ac_cv_path_BASH+set}" = set; then :
   1.350 +if ${ac_cv_path_BASH+:} false; then :
   1.351    $as_echo_n "(cached) " >&6
   1.352  else
   1.353    case $BASH in
   1.354 @@ -3920,7 +3939,7 @@
   1.355  set dummy $ac_prog; ac_word=$2
   1.356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.357  $as_echo_n "checking for $ac_word... " >&6; }
   1.358 -if test "${ac_cv_path_CAT+set}" = set; then :
   1.359 +if ${ac_cv_path_CAT+:} false; then :
   1.360    $as_echo_n "(cached) " >&6
   1.361  else
   1.362    case $CAT in
   1.363 @@ -3979,7 +3998,7 @@
   1.364  set dummy $ac_prog; ac_word=$2
   1.365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.366  $as_echo_n "checking for $ac_word... " >&6; }
   1.367 -if test "${ac_cv_path_CHMOD+set}" = set; then :
   1.368 +if ${ac_cv_path_CHMOD+:} false; then :
   1.369    $as_echo_n "(cached) " >&6
   1.370  else
   1.371    case $CHMOD in
   1.372 @@ -4038,7 +4057,7 @@
   1.373  set dummy $ac_prog; ac_word=$2
   1.374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.375  $as_echo_n "checking for $ac_word... " >&6; }
   1.376 -if test "${ac_cv_path_CMP+set}" = set; then :
   1.377 +if ${ac_cv_path_CMP+:} false; then :
   1.378    $as_echo_n "(cached) " >&6
   1.379  else
   1.380    case $CMP in
   1.381 @@ -4097,7 +4116,7 @@
   1.382  set dummy $ac_prog; ac_word=$2
   1.383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.384  $as_echo_n "checking for $ac_word... " >&6; }
   1.385 -if test "${ac_cv_path_COMM+set}" = set; then :
   1.386 +if ${ac_cv_path_COMM+:} false; then :
   1.387    $as_echo_n "(cached) " >&6
   1.388  else
   1.389    case $COMM in
   1.390 @@ -4156,7 +4175,7 @@
   1.391  set dummy $ac_prog; ac_word=$2
   1.392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.393  $as_echo_n "checking for $ac_word... " >&6; }
   1.394 -if test "${ac_cv_path_CP+set}" = set; then :
   1.395 +if ${ac_cv_path_CP+:} false; then :
   1.396    $as_echo_n "(cached) " >&6
   1.397  else
   1.398    case $CP in
   1.399 @@ -4215,7 +4234,7 @@
   1.400  set dummy $ac_prog; ac_word=$2
   1.401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.402  $as_echo_n "checking for $ac_word... " >&6; }
   1.403 -if test "${ac_cv_path_CPIO+set}" = set; then :
   1.404 +if ${ac_cv_path_CPIO+:} false; then :
   1.405    $as_echo_n "(cached) " >&6
   1.406  else
   1.407    case $CPIO in
   1.408 @@ -4274,7 +4293,7 @@
   1.409  set dummy $ac_prog; ac_word=$2
   1.410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.411  $as_echo_n "checking for $ac_word... " >&6; }
   1.412 -if test "${ac_cv_path_CUT+set}" = set; then :
   1.413 +if ${ac_cv_path_CUT+:} false; then :
   1.414    $as_echo_n "(cached) " >&6
   1.415  else
   1.416    case $CUT in
   1.417 @@ -4333,7 +4352,7 @@
   1.418  set dummy $ac_prog; ac_word=$2
   1.419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.420  $as_echo_n "checking for $ac_word... " >&6; }
   1.421 -if test "${ac_cv_path_DATE+set}" = set; then :
   1.422 +if ${ac_cv_path_DATE+:} false; then :
   1.423    $as_echo_n "(cached) " >&6
   1.424  else
   1.425    case $DATE in
   1.426 @@ -4392,7 +4411,7 @@
   1.427  set dummy $ac_prog; ac_word=$2
   1.428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.429  $as_echo_n "checking for $ac_word... " >&6; }
   1.430 -if test "${ac_cv_path_DIFF+set}" = set; then :
   1.431 +if ${ac_cv_path_DIFF+:} false; then :
   1.432    $as_echo_n "(cached) " >&6
   1.433  else
   1.434    case $DIFF in
   1.435 @@ -4451,7 +4470,7 @@
   1.436  set dummy $ac_prog; ac_word=$2
   1.437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.438  $as_echo_n "checking for $ac_word... " >&6; }
   1.439 -if test "${ac_cv_path_DIRNAME+set}" = set; then :
   1.440 +if ${ac_cv_path_DIRNAME+:} false; then :
   1.441    $as_echo_n "(cached) " >&6
   1.442  else
   1.443    case $DIRNAME in
   1.444 @@ -4510,7 +4529,7 @@
   1.445  set dummy $ac_prog; ac_word=$2
   1.446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.447  $as_echo_n "checking for $ac_word... " >&6; }
   1.448 -if test "${ac_cv_path_ECHO+set}" = set; then :
   1.449 +if ${ac_cv_path_ECHO+:} false; then :
   1.450    $as_echo_n "(cached) " >&6
   1.451  else
   1.452    case $ECHO in
   1.453 @@ -4569,7 +4588,7 @@
   1.454  set dummy $ac_prog; ac_word=$2
   1.455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.456  $as_echo_n "checking for $ac_word... " >&6; }
   1.457 -if test "${ac_cv_path_EXPR+set}" = set; then :
   1.458 +if ${ac_cv_path_EXPR+:} false; then :
   1.459    $as_echo_n "(cached) " >&6
   1.460  else
   1.461    case $EXPR in
   1.462 @@ -4628,7 +4647,7 @@
   1.463  set dummy $ac_prog; ac_word=$2
   1.464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.465  $as_echo_n "checking for $ac_word... " >&6; }
   1.466 -if test "${ac_cv_path_FILE+set}" = set; then :
   1.467 +if ${ac_cv_path_FILE+:} false; then :
   1.468    $as_echo_n "(cached) " >&6
   1.469  else
   1.470    case $FILE in
   1.471 @@ -4687,7 +4706,7 @@
   1.472  set dummy $ac_prog; ac_word=$2
   1.473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.474  $as_echo_n "checking for $ac_word... " >&6; }
   1.475 -if test "${ac_cv_path_FIND+set}" = set; then :
   1.476 +if ${ac_cv_path_FIND+:} false; then :
   1.477    $as_echo_n "(cached) " >&6
   1.478  else
   1.479    case $FIND in
   1.480 @@ -4746,7 +4765,7 @@
   1.481  set dummy $ac_prog; ac_word=$2
   1.482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.483  $as_echo_n "checking for $ac_word... " >&6; }
   1.484 -if test "${ac_cv_path_HEAD+set}" = set; then :
   1.485 +if ${ac_cv_path_HEAD+:} false; then :
   1.486    $as_echo_n "(cached) " >&6
   1.487  else
   1.488    case $HEAD in
   1.489 @@ -4805,7 +4824,7 @@
   1.490  set dummy $ac_prog; ac_word=$2
   1.491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.492  $as_echo_n "checking for $ac_word... " >&6; }
   1.493 -if test "${ac_cv_path_LN+set}" = set; then :
   1.494 +if ${ac_cv_path_LN+:} false; then :
   1.495    $as_echo_n "(cached) " >&6
   1.496  else
   1.497    case $LN in
   1.498 @@ -4864,7 +4883,7 @@
   1.499  set dummy $ac_prog; ac_word=$2
   1.500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.501  $as_echo_n "checking for $ac_word... " >&6; }
   1.502 -if test "${ac_cv_path_LS+set}" = set; then :
   1.503 +if ${ac_cv_path_LS+:} false; then :
   1.504    $as_echo_n "(cached) " >&6
   1.505  else
   1.506    case $LS in
   1.507 @@ -4923,7 +4942,7 @@
   1.508  set dummy $ac_prog; ac_word=$2
   1.509  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.510  $as_echo_n "checking for $ac_word... " >&6; }
   1.511 -if test "${ac_cv_path_MKDIR+set}" = set; then :
   1.512 +if ${ac_cv_path_MKDIR+:} false; then :
   1.513    $as_echo_n "(cached) " >&6
   1.514  else
   1.515    case $MKDIR in
   1.516 @@ -4982,7 +5001,7 @@
   1.517  set dummy $ac_prog; ac_word=$2
   1.518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.519  $as_echo_n "checking for $ac_word... " >&6; }
   1.520 -if test "${ac_cv_path_MKTEMP+set}" = set; then :
   1.521 +if ${ac_cv_path_MKTEMP+:} false; then :
   1.522    $as_echo_n "(cached) " >&6
   1.523  else
   1.524    case $MKTEMP in
   1.525 @@ -5041,7 +5060,7 @@
   1.526  set dummy $ac_prog; ac_word=$2
   1.527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.528  $as_echo_n "checking for $ac_word... " >&6; }
   1.529 -if test "${ac_cv_path_MV+set}" = set; then :
   1.530 +if ${ac_cv_path_MV+:} false; then :
   1.531    $as_echo_n "(cached) " >&6
   1.532  else
   1.533    case $MV in
   1.534 @@ -5100,7 +5119,7 @@
   1.535  set dummy $ac_prog; ac_word=$2
   1.536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.537  $as_echo_n "checking for $ac_word... " >&6; }
   1.538 -if test "${ac_cv_path_PRINTF+set}" = set; then :
   1.539 +if ${ac_cv_path_PRINTF+:} false; then :
   1.540    $as_echo_n "(cached) " >&6
   1.541  else
   1.542    case $PRINTF in
   1.543 @@ -5159,7 +5178,7 @@
   1.544  set dummy $ac_prog; ac_word=$2
   1.545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.546  $as_echo_n "checking for $ac_word... " >&6; }
   1.547 -if test "${ac_cv_path_THEPWDCMD+set}" = set; then :
   1.548 +if ${ac_cv_path_THEPWDCMD+:} false; then :
   1.549    $as_echo_n "(cached) " >&6
   1.550  else
   1.551    case $THEPWDCMD in
   1.552 @@ -5218,7 +5237,7 @@
   1.553  set dummy $ac_prog; ac_word=$2
   1.554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.555  $as_echo_n "checking for $ac_word... " >&6; }
   1.556 -if test "${ac_cv_path_RM+set}" = set; then :
   1.557 +if ${ac_cv_path_RM+:} false; then :
   1.558    $as_echo_n "(cached) " >&6
   1.559  else
   1.560    case $RM in
   1.561 @@ -5277,7 +5296,7 @@
   1.562  set dummy $ac_prog; ac_word=$2
   1.563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.564  $as_echo_n "checking for $ac_word... " >&6; }
   1.565 -if test "${ac_cv_path_SH+set}" = set; then :
   1.566 +if ${ac_cv_path_SH+:} false; then :
   1.567    $as_echo_n "(cached) " >&6
   1.568  else
   1.569    case $SH in
   1.570 @@ -5336,7 +5355,7 @@
   1.571  set dummy $ac_prog; ac_word=$2
   1.572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.573  $as_echo_n "checking for $ac_word... " >&6; }
   1.574 -if test "${ac_cv_path_SORT+set}" = set; then :
   1.575 +if ${ac_cv_path_SORT+:} false; then :
   1.576    $as_echo_n "(cached) " >&6
   1.577  else
   1.578    case $SORT in
   1.579 @@ -5395,7 +5414,7 @@
   1.580  set dummy $ac_prog; ac_word=$2
   1.581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.582  $as_echo_n "checking for $ac_word... " >&6; }
   1.583 -if test "${ac_cv_path_TAIL+set}" = set; then :
   1.584 +if ${ac_cv_path_TAIL+:} false; then :
   1.585    $as_echo_n "(cached) " >&6
   1.586  else
   1.587    case $TAIL in
   1.588 @@ -5454,7 +5473,7 @@
   1.589  set dummy $ac_prog; ac_word=$2
   1.590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.591  $as_echo_n "checking for $ac_word... " >&6; }
   1.592 -if test "${ac_cv_path_TAR+set}" = set; then :
   1.593 +if ${ac_cv_path_TAR+:} false; then :
   1.594    $as_echo_n "(cached) " >&6
   1.595  else
   1.596    case $TAR in
   1.597 @@ -5513,7 +5532,7 @@
   1.598  set dummy $ac_prog; ac_word=$2
   1.599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.600  $as_echo_n "checking for $ac_word... " >&6; }
   1.601 -if test "${ac_cv_path_TEE+set}" = set; then :
   1.602 +if ${ac_cv_path_TEE+:} false; then :
   1.603    $as_echo_n "(cached) " >&6
   1.604  else
   1.605    case $TEE in
   1.606 @@ -5572,7 +5591,7 @@
   1.607  set dummy $ac_prog; ac_word=$2
   1.608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.609  $as_echo_n "checking for $ac_word... " >&6; }
   1.610 -if test "${ac_cv_path_TOUCH+set}" = set; then :
   1.611 +if ${ac_cv_path_TOUCH+:} false; then :
   1.612    $as_echo_n "(cached) " >&6
   1.613  else
   1.614    case $TOUCH in
   1.615 @@ -5631,7 +5650,7 @@
   1.616  set dummy $ac_prog; ac_word=$2
   1.617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.618  $as_echo_n "checking for $ac_word... " >&6; }
   1.619 -if test "${ac_cv_path_TR+set}" = set; then :
   1.620 +if ${ac_cv_path_TR+:} false; then :
   1.621    $as_echo_n "(cached) " >&6
   1.622  else
   1.623    case $TR in
   1.624 @@ -5690,7 +5709,7 @@
   1.625  set dummy $ac_prog; ac_word=$2
   1.626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.627  $as_echo_n "checking for $ac_word... " >&6; }
   1.628 -if test "${ac_cv_path_UNAME+set}" = set; then :
   1.629 +if ${ac_cv_path_UNAME+:} false; then :
   1.630    $as_echo_n "(cached) " >&6
   1.631  else
   1.632    case $UNAME in
   1.633 @@ -5749,7 +5768,7 @@
   1.634  set dummy $ac_prog; ac_word=$2
   1.635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.636  $as_echo_n "checking for $ac_word... " >&6; }
   1.637 -if test "${ac_cv_path_UNIQ+set}" = set; then :
   1.638 +if ${ac_cv_path_UNIQ+:} false; then :
   1.639    $as_echo_n "(cached) " >&6
   1.640  else
   1.641    case $UNIQ in
   1.642 @@ -5808,7 +5827,7 @@
   1.643  set dummy $ac_prog; ac_word=$2
   1.644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.645  $as_echo_n "checking for $ac_word... " >&6; }
   1.646 -if test "${ac_cv_path_WC+set}" = set; then :
   1.647 +if ${ac_cv_path_WC+:} false; then :
   1.648    $as_echo_n "(cached) " >&6
   1.649  else
   1.650    case $WC in
   1.651 @@ -5867,7 +5886,7 @@
   1.652  set dummy $ac_prog; ac_word=$2
   1.653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.654  $as_echo_n "checking for $ac_word... " >&6; }
   1.655 -if test "${ac_cv_path_WHICH+set}" = set; then :
   1.656 +if ${ac_cv_path_WHICH+:} false; then :
   1.657    $as_echo_n "(cached) " >&6
   1.658  else
   1.659    case $WHICH in
   1.660 @@ -5926,7 +5945,7 @@
   1.661  set dummy $ac_prog; ac_word=$2
   1.662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.663  $as_echo_n "checking for $ac_word... " >&6; }
   1.664 -if test "${ac_cv_path_XARGS+set}" = set; then :
   1.665 +if ${ac_cv_path_XARGS+:} false; then :
   1.666    $as_echo_n "(cached) " >&6
   1.667  else
   1.668    case $XARGS in
   1.669 @@ -5986,7 +6005,7 @@
   1.670  set dummy $ac_prog; ac_word=$2
   1.671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.672  $as_echo_n "checking for $ac_word... " >&6; }
   1.673 -if test "${ac_cv_prog_AWK+set}" = set; then :
   1.674 +if ${ac_cv_prog_AWK+:} false; then :
   1.675    $as_echo_n "(cached) " >&6
   1.676  else
   1.677    if test -n "$AWK"; then
   1.678 @@ -6036,7 +6055,7 @@
   1.679  
   1.680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   1.681  $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   1.682 -if test "${ac_cv_path_GREP+set}" = set; then :
   1.683 +if ${ac_cv_path_GREP+:} false; then :
   1.684    $as_echo_n "(cached) " >&6
   1.685  else
   1.686    if test -z "$GREP"; then
   1.687 @@ -6111,7 +6130,7 @@
   1.688  
   1.689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   1.690  $as_echo_n "checking for egrep... " >&6; }
   1.691 -if test "${ac_cv_path_EGREP+set}" = set; then :
   1.692 +if ${ac_cv_path_EGREP+:} false; then :
   1.693    $as_echo_n "(cached) " >&6
   1.694  else
   1.695    if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   1.696 @@ -6190,7 +6209,7 @@
   1.697  
   1.698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   1.699  $as_echo_n "checking for fgrep... " >&6; }
   1.700 -if test "${ac_cv_path_FGREP+set}" = set; then :
   1.701 +if ${ac_cv_path_FGREP+:} false; then :
   1.702    $as_echo_n "(cached) " >&6
   1.703  else
   1.704    if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   1.705 @@ -6269,7 +6288,7 @@
   1.706  
   1.707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   1.708  $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   1.709 -if test "${ac_cv_path_SED+set}" = set; then :
   1.710 +if ${ac_cv_path_SED+:} false; then :
   1.711    $as_echo_n "(cached) " >&6
   1.712  else
   1.713              ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   1.714 @@ -6355,7 +6374,7 @@
   1.715  set dummy $ac_prog; ac_word=$2
   1.716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.717  $as_echo_n "checking for $ac_word... " >&6; }
   1.718 -if test "${ac_cv_path_NAWK+set}" = set; then :
   1.719 +if ${ac_cv_path_NAWK+:} false; then :
   1.720    $as_echo_n "(cached) " >&6
   1.721  else
   1.722    case $NAWK in
   1.723 @@ -6415,7 +6434,7 @@
   1.724  set dummy cygpath; ac_word=$2
   1.725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.726  $as_echo_n "checking for $ac_word... " >&6; }
   1.727 -if test "${ac_cv_path_CYGPATH+set}" = set; then :
   1.728 +if ${ac_cv_path_CYGPATH+:} false; then :
   1.729    $as_echo_n "(cached) " >&6
   1.730  else
   1.731    case $CYGPATH in
   1.732 @@ -6455,7 +6474,7 @@
   1.733  set dummy readlink; ac_word=$2
   1.734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.735  $as_echo_n "checking for $ac_word... " >&6; }
   1.736 -if test "${ac_cv_path_READLINK+set}" = set; then :
   1.737 +if ${ac_cv_path_READLINK+:} false; then :
   1.738    $as_echo_n "(cached) " >&6
   1.739  else
   1.740    case $READLINK in
   1.741 @@ -6495,7 +6514,7 @@
   1.742  set dummy df; ac_word=$2
   1.743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.744  $as_echo_n "checking for $ac_word... " >&6; }
   1.745 -if test "${ac_cv_path_DF+set}" = set; then :
   1.746 +if ${ac_cv_path_DF+:} false; then :
   1.747    $as_echo_n "(cached) " >&6
   1.748  else
   1.749    case $DF in
   1.750 @@ -6535,7 +6554,7 @@
   1.751  set dummy SetFile; ac_word=$2
   1.752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.753  $as_echo_n "checking for $ac_word... " >&6; }
   1.754 -if test "${ac_cv_path_SETFILE+set}" = set; then :
   1.755 +if ${ac_cv_path_SETFILE+:} false; then :
   1.756    $as_echo_n "(cached) " >&6
   1.757  else
   1.758    case $SETFILE in
   1.759 @@ -6581,7 +6600,7 @@
   1.760  
   1.761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   1.762  $as_echo_n "checking build system type... " >&6; }
   1.763 -if test "${ac_cv_build+set}" = set; then :
   1.764 +if ${ac_cv_build+:} false; then :
   1.765    $as_echo_n "(cached) " >&6
   1.766  else
   1.767    ac_build_alias=$build_alias
   1.768 @@ -6597,7 +6616,7 @@
   1.769  $as_echo "$ac_cv_build" >&6; }
   1.770  case $ac_cv_build in
   1.771  *-*-*) ;;
   1.772 -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
   1.773 +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   1.774  esac
   1.775  build=$ac_cv_build
   1.776  ac_save_IFS=$IFS; IFS='-'
   1.777 @@ -6615,7 +6634,7 @@
   1.778  
   1.779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   1.780  $as_echo_n "checking host system type... " >&6; }
   1.781 -if test "${ac_cv_host+set}" = set; then :
   1.782 +if ${ac_cv_host+:} false; then :
   1.783    $as_echo_n "(cached) " >&6
   1.784  else
   1.785    if test "x$host_alias" = x; then
   1.786 @@ -6630,7 +6649,7 @@
   1.787  $as_echo "$ac_cv_host" >&6; }
   1.788  case $ac_cv_host in
   1.789  *-*-*) ;;
   1.790 -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
   1.791 +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   1.792  esac
   1.793  host=$ac_cv_host
   1.794  ac_save_IFS=$IFS; IFS='-'
   1.795 @@ -6648,7 +6667,7 @@
   1.796  
   1.797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   1.798  $as_echo_n "checking target system type... " >&6; }
   1.799 -if test "${ac_cv_target+set}" = set; then :
   1.800 +if ${ac_cv_target+:} false; then :
   1.801    $as_echo_n "(cached) " >&6
   1.802  else
   1.803    if test "x$target_alias" = x; then
   1.804 @@ -6663,7 +6682,7 @@
   1.805  $as_echo "$ac_cv_target" >&6; }
   1.806  case $ac_cv_target in
   1.807  *-*-*) ;;
   1.808 -*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
   1.809 +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   1.810  esac
   1.811  target=$ac_cv_target
   1.812  ac_save_IFS=$IFS; IFS='-'
   1.813 @@ -6685,6 +6704,1055 @@
   1.814    test "$program_prefix$program_suffix$program_transform_name" = \
   1.815      NONENONEs,x,x, &&
   1.816    program_prefix=${target_alias}-
   1.817 +ac_ext=c
   1.818 +ac_cpp='$CPP $CPPFLAGS'
   1.819 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1.820 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1.821 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1.822 +if test -n "$ac_tool_prefix"; then
   1.823 +  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1.824 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1.825 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.826 +$as_echo_n "checking for $ac_word... " >&6; }
   1.827 +if ${ac_cv_prog_CC+:} false; then :
   1.828 +  $as_echo_n "(cached) " >&6
   1.829 +else
   1.830 +  if test -n "$CC"; then
   1.831 +  ac_cv_prog_CC="$CC" # Let the user override the test.
   1.832 +else
   1.833 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1.834 +for as_dir in $PATH
   1.835 +do
   1.836 +  IFS=$as_save_IFS
   1.837 +  test -z "$as_dir" && as_dir=.
   1.838 +    for ac_exec_ext in '' $ac_executable_extensions; do
   1.839 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1.840 +    ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1.841 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   1.842 +    break 2
   1.843 +  fi
   1.844 +done
   1.845 +  done
   1.846 +IFS=$as_save_IFS
   1.847 +
   1.848 +fi
   1.849 +fi
   1.850 +CC=$ac_cv_prog_CC
   1.851 +if test -n "$CC"; then
   1.852 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   1.853 +$as_echo "$CC" >&6; }
   1.854 +else
   1.855 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   1.856 +$as_echo "no" >&6; }
   1.857 +fi
   1.858 +
   1.859 +
   1.860 +fi
   1.861 +if test -z "$ac_cv_prog_CC"; then
   1.862 +  ac_ct_CC=$CC
   1.863 +  # Extract the first word of "gcc", so it can be a program name with args.
   1.864 +set dummy gcc; ac_word=$2
   1.865 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.866 +$as_echo_n "checking for $ac_word... " >&6; }
   1.867 +if ${ac_cv_prog_ac_ct_CC+:} false; then :
   1.868 +  $as_echo_n "(cached) " >&6
   1.869 +else
   1.870 +  if test -n "$ac_ct_CC"; then
   1.871 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1.872 +else
   1.873 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1.874 +for as_dir in $PATH
   1.875 +do
   1.876 +  IFS=$as_save_IFS
   1.877 +  test -z "$as_dir" && as_dir=.
   1.878 +    for ac_exec_ext in '' $ac_executable_extensions; do
   1.879 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1.880 +    ac_cv_prog_ac_ct_CC="gcc"
   1.881 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   1.882 +    break 2
   1.883 +  fi
   1.884 +done
   1.885 +  done
   1.886 +IFS=$as_save_IFS
   1.887 +
   1.888 +fi
   1.889 +fi
   1.890 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1.891 +if test -n "$ac_ct_CC"; then
   1.892 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   1.893 +$as_echo "$ac_ct_CC" >&6; }
   1.894 +else
   1.895 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   1.896 +$as_echo "no" >&6; }
   1.897 +fi
   1.898 +
   1.899 +  if test "x$ac_ct_CC" = x; then
   1.900 +    CC=""
   1.901 +  else
   1.902 +    case $cross_compiling:$ac_tool_warned in
   1.903 +yes:)
   1.904 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   1.905 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   1.906 +ac_tool_warned=yes ;;
   1.907 +esac
   1.908 +    CC=$ac_ct_CC
   1.909 +  fi
   1.910 +else
   1.911 +  CC="$ac_cv_prog_CC"
   1.912 +fi
   1.913 +
   1.914 +if test -z "$CC"; then
   1.915 +          if test -n "$ac_tool_prefix"; then
   1.916 +    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   1.917 +set dummy ${ac_tool_prefix}cc; ac_word=$2
   1.918 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.919 +$as_echo_n "checking for $ac_word... " >&6; }
   1.920 +if ${ac_cv_prog_CC+:} false; then :
   1.921 +  $as_echo_n "(cached) " >&6
   1.922 +else
   1.923 +  if test -n "$CC"; then
   1.924 +  ac_cv_prog_CC="$CC" # Let the user override the test.
   1.925 +else
   1.926 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1.927 +for as_dir in $PATH
   1.928 +do
   1.929 +  IFS=$as_save_IFS
   1.930 +  test -z "$as_dir" && as_dir=.
   1.931 +    for ac_exec_ext in '' $ac_executable_extensions; do
   1.932 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1.933 +    ac_cv_prog_CC="${ac_tool_prefix}cc"
   1.934 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   1.935 +    break 2
   1.936 +  fi
   1.937 +done
   1.938 +  done
   1.939 +IFS=$as_save_IFS
   1.940 +
   1.941 +fi
   1.942 +fi
   1.943 +CC=$ac_cv_prog_CC
   1.944 +if test -n "$CC"; then
   1.945 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   1.946 +$as_echo "$CC" >&6; }
   1.947 +else
   1.948 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   1.949 +$as_echo "no" >&6; }
   1.950 +fi
   1.951 +
   1.952 +
   1.953 +  fi
   1.954 +fi
   1.955 +if test -z "$CC"; then
   1.956 +  # Extract the first word of "cc", so it can be a program name with args.
   1.957 +set dummy cc; ac_word=$2
   1.958 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   1.959 +$as_echo_n "checking for $ac_word... " >&6; }
   1.960 +if ${ac_cv_prog_CC+:} false; then :
   1.961 +  $as_echo_n "(cached) " >&6
   1.962 +else
   1.963 +  if test -n "$CC"; then
   1.964 +  ac_cv_prog_CC="$CC" # Let the user override the test.
   1.965 +else
   1.966 +  ac_prog_rejected=no
   1.967 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1.968 +for as_dir in $PATH
   1.969 +do
   1.970 +  IFS=$as_save_IFS
   1.971 +  test -z "$as_dir" && as_dir=.
   1.972 +    for ac_exec_ext in '' $ac_executable_extensions; do
   1.973 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1.974 +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   1.975 +       ac_prog_rejected=yes
   1.976 +       continue
   1.977 +     fi
   1.978 +    ac_cv_prog_CC="cc"
   1.979 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   1.980 +    break 2
   1.981 +  fi
   1.982 +done
   1.983 +  done
   1.984 +IFS=$as_save_IFS
   1.985 +
   1.986 +if test $ac_prog_rejected = yes; then
   1.987 +  # We found a bogon in the path, so make sure we never use it.
   1.988 +  set dummy $ac_cv_prog_CC
   1.989 +  shift
   1.990 +  if test $# != 0; then
   1.991 +    # We chose a different compiler from the bogus one.
   1.992 +    # However, it has the same basename, so the bogon will be chosen
   1.993 +    # first if we set CC to just the basename; use the full file name.
   1.994 +    shift
   1.995 +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   1.996 +  fi
   1.997 +fi
   1.998 +fi
   1.999 +fi
  1.1000 +CC=$ac_cv_prog_CC
  1.1001 +if test -n "$CC"; then
  1.1002 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1.1003 +$as_echo "$CC" >&6; }
  1.1004 +else
  1.1005 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.1006 +$as_echo "no" >&6; }
  1.1007 +fi
  1.1008 +
  1.1009 +
  1.1010 +fi
  1.1011 +if test -z "$CC"; then
  1.1012 +  if test -n "$ac_tool_prefix"; then
  1.1013 +  for ac_prog in cl.exe
  1.1014 +  do
  1.1015 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1.1016 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1.1017 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.1018 +$as_echo_n "checking for $ac_word... " >&6; }
  1.1019 +if ${ac_cv_prog_CC+:} false; then :
  1.1020 +  $as_echo_n "(cached) " >&6
  1.1021 +else
  1.1022 +  if test -n "$CC"; then
  1.1023 +  ac_cv_prog_CC="$CC" # Let the user override the test.
  1.1024 +else
  1.1025 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.1026 +for as_dir in $PATH
  1.1027 +do
  1.1028 +  IFS=$as_save_IFS
  1.1029 +  test -z "$as_dir" && as_dir=.
  1.1030 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.1031 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.1032 +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1.1033 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.1034 +    break 2
  1.1035 +  fi
  1.1036 +done
  1.1037 +  done
  1.1038 +IFS=$as_save_IFS
  1.1039 +
  1.1040 +fi
  1.1041 +fi
  1.1042 +CC=$ac_cv_prog_CC
  1.1043 +if test -n "$CC"; then
  1.1044 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1.1045 +$as_echo "$CC" >&6; }
  1.1046 +else
  1.1047 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.1048 +$as_echo "no" >&6; }
  1.1049 +fi
  1.1050 +
  1.1051 +
  1.1052 +    test -n "$CC" && break
  1.1053 +  done
  1.1054 +fi
  1.1055 +if test -z "$CC"; then
  1.1056 +  ac_ct_CC=$CC
  1.1057 +  for ac_prog in cl.exe
  1.1058 +do
  1.1059 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  1.1060 +set dummy $ac_prog; ac_word=$2
  1.1061 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.1062 +$as_echo_n "checking for $ac_word... " >&6; }
  1.1063 +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  1.1064 +  $as_echo_n "(cached) " >&6
  1.1065 +else
  1.1066 +  if test -n "$ac_ct_CC"; then
  1.1067 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1.1068 +else
  1.1069 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.1070 +for as_dir in $PATH
  1.1071 +do
  1.1072 +  IFS=$as_save_IFS
  1.1073 +  test -z "$as_dir" && as_dir=.
  1.1074 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.1075 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.1076 +    ac_cv_prog_ac_ct_CC="$ac_prog"
  1.1077 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.1078 +    break 2
  1.1079 +  fi
  1.1080 +done
  1.1081 +  done
  1.1082 +IFS=$as_save_IFS
  1.1083 +
  1.1084 +fi
  1.1085 +fi
  1.1086 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1.1087 +if test -n "$ac_ct_CC"; then
  1.1088 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  1.1089 +$as_echo "$ac_ct_CC" >&6; }
  1.1090 +else
  1.1091 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.1092 +$as_echo "no" >&6; }
  1.1093 +fi
  1.1094 +
  1.1095 +
  1.1096 +  test -n "$ac_ct_CC" && break
  1.1097 +done
  1.1098 +
  1.1099 +  if test "x$ac_ct_CC" = x; then
  1.1100 +    CC=""
  1.1101 +  else
  1.1102 +    case $cross_compiling:$ac_tool_warned in
  1.1103 +yes:)
  1.1104 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1.1105 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1.1106 +ac_tool_warned=yes ;;
  1.1107 +esac
  1.1108 +    CC=$ac_ct_CC
  1.1109 +  fi
  1.1110 +fi
  1.1111 +
  1.1112 +fi
  1.1113 +
  1.1114 +
  1.1115 +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.1116 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.1117 +as_fn_error $? "no acceptable C compiler found in \$PATH
  1.1118 +See \`config.log' for more details" "$LINENO" 5; }
  1.1119 +
  1.1120 +# Provide some information about the compiler.
  1.1121 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  1.1122 +set X $ac_compile
  1.1123 +ac_compiler=$2
  1.1124 +for ac_option in --version -v -V -qversion; do
  1.1125 +  { { ac_try="$ac_compiler $ac_option >&5"
  1.1126 +case "(($ac_try" in
  1.1127 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.1128 +  *) ac_try_echo=$ac_try;;
  1.1129 +esac
  1.1130 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.1131 +$as_echo "$ac_try_echo"; } >&5
  1.1132 +  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  1.1133 +  ac_status=$?
  1.1134 +  if test -s conftest.err; then
  1.1135 +    sed '10a\
  1.1136 +... rest of stderr output deleted ...
  1.1137 +         10q' conftest.err >conftest.er1
  1.1138 +    cat conftest.er1 >&5
  1.1139 +  fi
  1.1140 +  rm -f conftest.er1 conftest.err
  1.1141 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.1142 +  test $ac_status = 0; }
  1.1143 +done
  1.1144 +
  1.1145 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1146 +/* end confdefs.h.  */
  1.1147 +
  1.1148 +int
  1.1149 +main ()
  1.1150 +{
  1.1151 +
  1.1152 +  ;
  1.1153 +  return 0;
  1.1154 +}
  1.1155 +_ACEOF
  1.1156 +ac_clean_files_save=$ac_clean_files
  1.1157 +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1.1158 +# Try to create an executable without -o first, disregard a.out.
  1.1159 +# It will help us diagnose broken compilers, and finding out an intuition
  1.1160 +# of exeext.
  1.1161 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  1.1162 +$as_echo_n "checking whether the C compiler works... " >&6; }
  1.1163 +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1.1164 +
  1.1165 +# The possible output files:
  1.1166 +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  1.1167 +
  1.1168 +ac_rmfiles=
  1.1169 +for ac_file in $ac_files
  1.1170 +do
  1.1171 +  case $ac_file in
  1.1172 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1.1173 +    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1.1174 +  esac
  1.1175 +done
  1.1176 +rm -f $ac_rmfiles
  1.1177 +
  1.1178 +if { { ac_try="$ac_link_default"
  1.1179 +case "(($ac_try" in
  1.1180 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.1181 +  *) ac_try_echo=$ac_try;;
  1.1182 +esac
  1.1183 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.1184 +$as_echo "$ac_try_echo"; } >&5
  1.1185 +  (eval "$ac_link_default") 2>&5
  1.1186 +  ac_status=$?
  1.1187 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.1188 +  test $ac_status = 0; }; then :
  1.1189 +  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1.1190 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1.1191 +# in a Makefile.  We should not override ac_cv_exeext if it was cached,
  1.1192 +# so that the user can short-circuit this test for compilers unknown to
  1.1193 +# Autoconf.
  1.1194 +for ac_file in $ac_files ''
  1.1195 +do
  1.1196 +  test -f "$ac_file" || continue
  1.1197 +  case $ac_file in
  1.1198 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  1.1199 +	;;
  1.1200 +    [ab].out )
  1.1201 +	# We found the default executable, but exeext='' is most
  1.1202 +	# certainly right.
  1.1203 +	break;;
  1.1204 +    *.* )
  1.1205 +	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1.1206 +	then :; else
  1.1207 +	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1.1208 +	fi
  1.1209 +	# We set ac_cv_exeext here because the later test for it is not
  1.1210 +	# safe: cross compilers may not add the suffix if given an `-o'
  1.1211 +	# argument, so we may need to know it at that point already.
  1.1212 +	# Even if this section looks crufty: it has the advantage of
  1.1213 +	# actually working.
  1.1214 +	break;;
  1.1215 +    * )
  1.1216 +	break;;
  1.1217 +  esac
  1.1218 +done
  1.1219 +test "$ac_cv_exeext" = no && ac_cv_exeext=
  1.1220 +
  1.1221 +else
  1.1222 +  ac_file=''
  1.1223 +fi
  1.1224 +if test -z "$ac_file"; then :
  1.1225 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.1226 +$as_echo "no" >&6; }
  1.1227 +$as_echo "$as_me: failed program was:" >&5
  1.1228 +sed 's/^/| /' conftest.$ac_ext >&5
  1.1229 +
  1.1230 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.1231 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.1232 +as_fn_error 77 "C compiler cannot create executables
  1.1233 +See \`config.log' for more details" "$LINENO" 5; }
  1.1234 +else
  1.1235 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1.1236 +$as_echo "yes" >&6; }
  1.1237 +fi
  1.1238 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  1.1239 +$as_echo_n "checking for C compiler default output file name... " >&6; }
  1.1240 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  1.1241 +$as_echo "$ac_file" >&6; }
  1.1242 +ac_exeext=$ac_cv_exeext
  1.1243 +
  1.1244 +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  1.1245 +ac_clean_files=$ac_clean_files_save
  1.1246 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  1.1247 +$as_echo_n "checking for suffix of executables... " >&6; }
  1.1248 +if { { ac_try="$ac_link"
  1.1249 +case "(($ac_try" in
  1.1250 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.1251 +  *) ac_try_echo=$ac_try;;
  1.1252 +esac
  1.1253 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.1254 +$as_echo "$ac_try_echo"; } >&5
  1.1255 +  (eval "$ac_link") 2>&5
  1.1256 +  ac_status=$?
  1.1257 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.1258 +  test $ac_status = 0; }; then :
  1.1259 +  # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1.1260 +# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  1.1261 +# work properly (i.e., refer to `conftest.exe'), while it won't with
  1.1262 +# `rm'.
  1.1263 +for ac_file in conftest.exe conftest conftest.*; do
  1.1264 +  test -f "$ac_file" || continue
  1.1265 +  case $ac_file in
  1.1266 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1.1267 +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1.1268 +	  break;;
  1.1269 +    * ) break;;
  1.1270 +  esac
  1.1271 +done
  1.1272 +else
  1.1273 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.1274 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.1275 +as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  1.1276 +See \`config.log' for more details" "$LINENO" 5; }
  1.1277 +fi
  1.1278 +rm -f conftest conftest$ac_cv_exeext
  1.1279 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  1.1280 +$as_echo "$ac_cv_exeext" >&6; }
  1.1281 +
  1.1282 +rm -f conftest.$ac_ext
  1.1283 +EXEEXT=$ac_cv_exeext
  1.1284 +ac_exeext=$EXEEXT
  1.1285 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1286 +/* end confdefs.h.  */
  1.1287 +#include <stdio.h>
  1.1288 +int
  1.1289 +main ()
  1.1290 +{
  1.1291 +FILE *f = fopen ("conftest.out", "w");
  1.1292 + return ferror (f) || fclose (f) != 0;
  1.1293 +
  1.1294 +  ;
  1.1295 +  return 0;
  1.1296 +}
  1.1297 +_ACEOF
  1.1298 +ac_clean_files="$ac_clean_files conftest.out"
  1.1299 +# Check that the compiler produces executables we can run.  If not, either
  1.1300 +# the compiler is broken, or we cross compile.
  1.1301 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  1.1302 +$as_echo_n "checking whether we are cross compiling... " >&6; }
  1.1303 +if test "$cross_compiling" != yes; then
  1.1304 +  { { ac_try="$ac_link"
  1.1305 +case "(($ac_try" in
  1.1306 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.1307 +  *) ac_try_echo=$ac_try;;
  1.1308 +esac
  1.1309 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.1310 +$as_echo "$ac_try_echo"; } >&5
  1.1311 +  (eval "$ac_link") 2>&5
  1.1312 +  ac_status=$?
  1.1313 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.1314 +  test $ac_status = 0; }
  1.1315 +  if { ac_try='./conftest$ac_cv_exeext'
  1.1316 +  { { case "(($ac_try" in
  1.1317 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.1318 +  *) ac_try_echo=$ac_try;;
  1.1319 +esac
  1.1320 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.1321 +$as_echo "$ac_try_echo"; } >&5
  1.1322 +  (eval "$ac_try") 2>&5
  1.1323 +  ac_status=$?
  1.1324 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.1325 +  test $ac_status = 0; }; }; then
  1.1326 +    cross_compiling=no
  1.1327 +  else
  1.1328 +    if test "$cross_compiling" = maybe; then
  1.1329 +	cross_compiling=yes
  1.1330 +    else
  1.1331 +	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.1332 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.1333 +as_fn_error $? "cannot run C compiled programs.
  1.1334 +If you meant to cross compile, use \`--host'.
  1.1335 +See \`config.log' for more details" "$LINENO" 5; }
  1.1336 +    fi
  1.1337 +  fi
  1.1338 +fi
  1.1339 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  1.1340 +$as_echo "$cross_compiling" >&6; }
  1.1341 +
  1.1342 +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  1.1343 +ac_clean_files=$ac_clean_files_save
  1.1344 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  1.1345 +$as_echo_n "checking for suffix of object files... " >&6; }
  1.1346 +if ${ac_cv_objext+:} false; then :
  1.1347 +  $as_echo_n "(cached) " >&6
  1.1348 +else
  1.1349 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1350 +/* end confdefs.h.  */
  1.1351 +
  1.1352 +int
  1.1353 +main ()
  1.1354 +{
  1.1355 +
  1.1356 +  ;
  1.1357 +  return 0;
  1.1358 +}
  1.1359 +_ACEOF
  1.1360 +rm -f conftest.o conftest.obj
  1.1361 +if { { ac_try="$ac_compile"
  1.1362 +case "(($ac_try" in
  1.1363 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.1364 +  *) ac_try_echo=$ac_try;;
  1.1365 +esac
  1.1366 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.1367 +$as_echo "$ac_try_echo"; } >&5
  1.1368 +  (eval "$ac_compile") 2>&5
  1.1369 +  ac_status=$?
  1.1370 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.1371 +  test $ac_status = 0; }; then :
  1.1372 +  for ac_file in conftest.o conftest.obj conftest.*; do
  1.1373 +  test -f "$ac_file" || continue;
  1.1374 +  case $ac_file in
  1.1375 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  1.1376 +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1.1377 +       break;;
  1.1378 +  esac
  1.1379 +done
  1.1380 +else
  1.1381 +  $as_echo "$as_me: failed program was:" >&5
  1.1382 +sed 's/^/| /' conftest.$ac_ext >&5
  1.1383 +
  1.1384 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.1385 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.1386 +as_fn_error $? "cannot compute suffix of object files: cannot compile
  1.1387 +See \`config.log' for more details" "$LINENO" 5; }
  1.1388 +fi
  1.1389 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1.1390 +fi
  1.1391 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  1.1392 +$as_echo "$ac_cv_objext" >&6; }
  1.1393 +OBJEXT=$ac_cv_objext
  1.1394 +ac_objext=$OBJEXT
  1.1395 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  1.1396 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  1.1397 +if ${ac_cv_c_compiler_gnu+:} false; then :
  1.1398 +  $as_echo_n "(cached) " >&6
  1.1399 +else
  1.1400 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1401 +/* end confdefs.h.  */
  1.1402 +
  1.1403 +int
  1.1404 +main ()
  1.1405 +{
  1.1406 +#ifndef __GNUC__
  1.1407 +       choke me
  1.1408 +#endif
  1.1409 +
  1.1410 +  ;
  1.1411 +  return 0;
  1.1412 +}
  1.1413 +_ACEOF
  1.1414 +if ac_fn_c_try_compile "$LINENO"; then :
  1.1415 +  ac_compiler_gnu=yes
  1.1416 +else
  1.1417 +  ac_compiler_gnu=no
  1.1418 +fi
  1.1419 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.1420 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1.1421 +
  1.1422 +fi
  1.1423 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  1.1424 +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  1.1425 +if test $ac_compiler_gnu = yes; then
  1.1426 +  GCC=yes
  1.1427 +else
  1.1428 +  GCC=
  1.1429 +fi
  1.1430 +ac_test_CFLAGS=${CFLAGS+set}
  1.1431 +ac_save_CFLAGS=$CFLAGS
  1.1432 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  1.1433 +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  1.1434 +if ${ac_cv_prog_cc_g+:} false; then :
  1.1435 +  $as_echo_n "(cached) " >&6
  1.1436 +else
  1.1437 +  ac_save_c_werror_flag=$ac_c_werror_flag
  1.1438 +   ac_c_werror_flag=yes
  1.1439 +   ac_cv_prog_cc_g=no
  1.1440 +   CFLAGS="-g"
  1.1441 +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1442 +/* end confdefs.h.  */
  1.1443 +
  1.1444 +int
  1.1445 +main ()
  1.1446 +{
  1.1447 +
  1.1448 +  ;
  1.1449 +  return 0;
  1.1450 +}
  1.1451 +_ACEOF
  1.1452 +if ac_fn_c_try_compile "$LINENO"; then :
  1.1453 +  ac_cv_prog_cc_g=yes
  1.1454 +else
  1.1455 +  CFLAGS=""
  1.1456 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1457 +/* end confdefs.h.  */
  1.1458 +
  1.1459 +int
  1.1460 +main ()
  1.1461 +{
  1.1462 +
  1.1463 +  ;
  1.1464 +  return 0;
  1.1465 +}
  1.1466 +_ACEOF
  1.1467 +if ac_fn_c_try_compile "$LINENO"; then :
  1.1468 +
  1.1469 +else
  1.1470 +  ac_c_werror_flag=$ac_save_c_werror_flag
  1.1471 +	 CFLAGS="-g"
  1.1472 +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1473 +/* end confdefs.h.  */
  1.1474 +
  1.1475 +int
  1.1476 +main ()
  1.1477 +{
  1.1478 +
  1.1479 +  ;
  1.1480 +  return 0;
  1.1481 +}
  1.1482 +_ACEOF
  1.1483 +if ac_fn_c_try_compile "$LINENO"; then :
  1.1484 +  ac_cv_prog_cc_g=yes
  1.1485 +fi
  1.1486 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.1487 +fi
  1.1488 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.1489 +fi
  1.1490 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.1491 +   ac_c_werror_flag=$ac_save_c_werror_flag
  1.1492 +fi
  1.1493 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  1.1494 +$as_echo "$ac_cv_prog_cc_g" >&6; }
  1.1495 +if test "$ac_test_CFLAGS" = set; then
  1.1496 +  CFLAGS=$ac_save_CFLAGS
  1.1497 +elif test $ac_cv_prog_cc_g = yes; then
  1.1498 +  if test "$GCC" = yes; then
  1.1499 +    CFLAGS="-g -O2"
  1.1500 +  else
  1.1501 +    CFLAGS="-g"
  1.1502 +  fi
  1.1503 +else
  1.1504 +  if test "$GCC" = yes; then
  1.1505 +    CFLAGS="-O2"
  1.1506 +  else
  1.1507 +    CFLAGS=
  1.1508 +  fi
  1.1509 +fi
  1.1510 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  1.1511 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  1.1512 +if ${ac_cv_prog_cc_c89+:} false; then :
  1.1513 +  $as_echo_n "(cached) " >&6
  1.1514 +else
  1.1515 +  ac_cv_prog_cc_c89=no
  1.1516 +ac_save_CC=$CC
  1.1517 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1518 +/* end confdefs.h.  */
  1.1519 +#include <stdarg.h>
  1.1520 +#include <stdio.h>
  1.1521 +#include <sys/types.h>
  1.1522 +#include <sys/stat.h>
  1.1523 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  1.1524 +struct buf { int x; };
  1.1525 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1.1526 +static char *e (p, i)
  1.1527 +     char **p;
  1.1528 +     int i;
  1.1529 +{
  1.1530 +  return p[i];
  1.1531 +}
  1.1532 +static char *f (char * (*g) (char **, int), char **p, ...)
  1.1533 +{
  1.1534 +  char *s;
  1.1535 +  va_list v;
  1.1536 +  va_start (v,p);
  1.1537 +  s = g (p, va_arg (v,int));
  1.1538 +  va_end (v);
  1.1539 +  return s;
  1.1540 +}
  1.1541 +
  1.1542 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  1.1543 +   function prototypes and stuff, but not '\xHH' hex character constants.
  1.1544 +   These don't provoke an error unfortunately, instead are silently treated
  1.1545 +   as 'x'.  The following induces an error, until -std is added to get
  1.1546 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  1.1547 +   array size at least.  It's necessary to write '\x00'==0 to get something
  1.1548 +   that's true only with -std.  */
  1.1549 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1.1550 +
  1.1551 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  1.1552 +   inside strings and character constants.  */
  1.1553 +#define FOO(x) 'x'
  1.1554 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  1.1555 +
  1.1556 +int test (int i, double x);
  1.1557 +struct s1 {int (*f) (int a);};
  1.1558 +struct s2 {int (*f) (double a);};
  1.1559 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1.1560 +int argc;
  1.1561 +char **argv;
  1.1562 +int
  1.1563 +main ()
  1.1564 +{
  1.1565 +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  1.1566 +  ;
  1.1567 +  return 0;
  1.1568 +}
  1.1569 +_ACEOF
  1.1570 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  1.1571 +	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1.1572 +do
  1.1573 +  CC="$ac_save_CC $ac_arg"
  1.1574 +  if ac_fn_c_try_compile "$LINENO"; then :
  1.1575 +  ac_cv_prog_cc_c89=$ac_arg
  1.1576 +fi
  1.1577 +rm -f core conftest.err conftest.$ac_objext
  1.1578 +  test "x$ac_cv_prog_cc_c89" != "xno" && break
  1.1579 +done
  1.1580 +rm -f conftest.$ac_ext
  1.1581 +CC=$ac_save_CC
  1.1582 +
  1.1583 +fi
  1.1584 +# AC_CACHE_VAL
  1.1585 +case "x$ac_cv_prog_cc_c89" in
  1.1586 +  x)
  1.1587 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  1.1588 +$as_echo "none needed" >&6; } ;;
  1.1589 +  xno)
  1.1590 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  1.1591 +$as_echo "unsupported" >&6; } ;;
  1.1592 +  *)
  1.1593 +    CC="$CC $ac_cv_prog_cc_c89"
  1.1594 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  1.1595 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  1.1596 +esac
  1.1597 +if test "x$ac_cv_prog_cc_c89" != xno; then :
  1.1598 +
  1.1599 +fi
  1.1600 +
  1.1601 +ac_ext=c
  1.1602 +ac_cpp='$CPP $CPPFLAGS'
  1.1603 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.1604 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.1605 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1.1606 +
  1.1607 +
  1.1608 +ac_ext=cpp
  1.1609 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.1610 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.1611 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.1612 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.1613 +if test -z "$CXX"; then
  1.1614 +  if test -n "$CCC"; then
  1.1615 +    CXX=$CCC
  1.1616 +  else
  1.1617 +    if test -n "$ac_tool_prefix"; then
  1.1618 +  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  1.1619 +  do
  1.1620 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1.1621 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1.1622 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.1623 +$as_echo_n "checking for $ac_word... " >&6; }
  1.1624 +if ${ac_cv_prog_CXX+:} false; then :
  1.1625 +  $as_echo_n "(cached) " >&6
  1.1626 +else
  1.1627 +  if test -n "$CXX"; then
  1.1628 +  ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1.1629 +else
  1.1630 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.1631 +for as_dir in $PATH
  1.1632 +do
  1.1633 +  IFS=$as_save_IFS
  1.1634 +  test -z "$as_dir" && as_dir=.
  1.1635 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.1636 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.1637 +    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1.1638 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.1639 +    break 2
  1.1640 +  fi
  1.1641 +done
  1.1642 +  done
  1.1643 +IFS=$as_save_IFS
  1.1644 +
  1.1645 +fi
  1.1646 +fi
  1.1647 +CXX=$ac_cv_prog_CXX
  1.1648 +if test -n "$CXX"; then
  1.1649 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  1.1650 +$as_echo "$CXX" >&6; }
  1.1651 +else
  1.1652 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.1653 +$as_echo "no" >&6; }
  1.1654 +fi
  1.1655 +
  1.1656 +
  1.1657 +    test -n "$CXX" && break
  1.1658 +  done
  1.1659 +fi
  1.1660 +if test -z "$CXX"; then
  1.1661 +  ac_ct_CXX=$CXX
  1.1662 +  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  1.1663 +do
  1.1664 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  1.1665 +set dummy $ac_prog; ac_word=$2
  1.1666 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.1667 +$as_echo_n "checking for $ac_word... " >&6; }
  1.1668 +if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  1.1669 +  $as_echo_n "(cached) " >&6
  1.1670 +else
  1.1671 +  if test -n "$ac_ct_CXX"; then
  1.1672 +  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1.1673 +else
  1.1674 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.1675 +for as_dir in $PATH
  1.1676 +do
  1.1677 +  IFS=$as_save_IFS
  1.1678 +  test -z "$as_dir" && as_dir=.
  1.1679 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.1680 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1.1681 +    ac_cv_prog_ac_ct_CXX="$ac_prog"
  1.1682 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1.1683 +    break 2
  1.1684 +  fi
  1.1685 +done
  1.1686 +  done
  1.1687 +IFS=$as_save_IFS
  1.1688 +
  1.1689 +fi
  1.1690 +fi
  1.1691 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1.1692 +if test -n "$ac_ct_CXX"; then
  1.1693 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  1.1694 +$as_echo "$ac_ct_CXX" >&6; }
  1.1695 +else
  1.1696 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.1697 +$as_echo "no" >&6; }
  1.1698 +fi
  1.1699 +
  1.1700 +
  1.1701 +  test -n "$ac_ct_CXX" && break
  1.1702 +done
  1.1703 +
  1.1704 +  if test "x$ac_ct_CXX" = x; then
  1.1705 +    CXX="g++"
  1.1706 +  else
  1.1707 +    case $cross_compiling:$ac_tool_warned in
  1.1708 +yes:)
  1.1709 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1.1710 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1.1711 +ac_tool_warned=yes ;;
  1.1712 +esac
  1.1713 +    CXX=$ac_ct_CXX
  1.1714 +  fi
  1.1715 +fi
  1.1716 +
  1.1717 +  fi
  1.1718 +fi
  1.1719 +# Provide some information about the compiler.
  1.1720 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  1.1721 +set X $ac_compile
  1.1722 +ac_compiler=$2
  1.1723 +for ac_option in --version -v -V -qversion; do
  1.1724 +  { { ac_try="$ac_compiler $ac_option >&5"
  1.1725 +case "(($ac_try" in
  1.1726 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.1727 +  *) ac_try_echo=$ac_try;;
  1.1728 +esac
  1.1729 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.1730 +$as_echo "$ac_try_echo"; } >&5
  1.1731 +  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  1.1732 +  ac_status=$?
  1.1733 +  if test -s conftest.err; then
  1.1734 +    sed '10a\
  1.1735 +... rest of stderr output deleted ...
  1.1736 +         10q' conftest.err >conftest.er1
  1.1737 +    cat conftest.er1 >&5
  1.1738 +  fi
  1.1739 +  rm -f conftest.er1 conftest.err
  1.1740 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.1741 +  test $ac_status = 0; }
  1.1742 +done
  1.1743 +
  1.1744 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  1.1745 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  1.1746 +if ${ac_cv_cxx_compiler_gnu+:} false; then :
  1.1747 +  $as_echo_n "(cached) " >&6
  1.1748 +else
  1.1749 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1750 +/* end confdefs.h.  */
  1.1751 +
  1.1752 +int
  1.1753 +main ()
  1.1754 +{
  1.1755 +#ifndef __GNUC__
  1.1756 +       choke me
  1.1757 +#endif
  1.1758 +
  1.1759 +  ;
  1.1760 +  return 0;
  1.1761 +}
  1.1762 +_ACEOF
  1.1763 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.1764 +  ac_compiler_gnu=yes
  1.1765 +else
  1.1766 +  ac_compiler_gnu=no
  1.1767 +fi
  1.1768 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.1769 +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1.1770 +
  1.1771 +fi
  1.1772 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  1.1773 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  1.1774 +if test $ac_compiler_gnu = yes; then
  1.1775 +  GXX=yes
  1.1776 +else
  1.1777 +  GXX=
  1.1778 +fi
  1.1779 +ac_test_CXXFLAGS=${CXXFLAGS+set}
  1.1780 +ac_save_CXXFLAGS=$CXXFLAGS
  1.1781 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  1.1782 +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  1.1783 +if ${ac_cv_prog_cxx_g+:} false; then :
  1.1784 +  $as_echo_n "(cached) " >&6
  1.1785 +else
  1.1786 +  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  1.1787 +   ac_cxx_werror_flag=yes
  1.1788 +   ac_cv_prog_cxx_g=no
  1.1789 +   CXXFLAGS="-g"
  1.1790 +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1791 +/* end confdefs.h.  */
  1.1792 +
  1.1793 +int
  1.1794 +main ()
  1.1795 +{
  1.1796 +
  1.1797 +  ;
  1.1798 +  return 0;
  1.1799 +}
  1.1800 +_ACEOF
  1.1801 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.1802 +  ac_cv_prog_cxx_g=yes
  1.1803 +else
  1.1804 +  CXXFLAGS=""
  1.1805 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1806 +/* end confdefs.h.  */
  1.1807 +
  1.1808 +int
  1.1809 +main ()
  1.1810 +{
  1.1811 +
  1.1812 +  ;
  1.1813 +  return 0;
  1.1814 +}
  1.1815 +_ACEOF
  1.1816 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.1817 +
  1.1818 +else
  1.1819 +  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  1.1820 +	 CXXFLAGS="-g"
  1.1821 +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1822 +/* end confdefs.h.  */
  1.1823 +
  1.1824 +int
  1.1825 +main ()
  1.1826 +{
  1.1827 +
  1.1828 +  ;
  1.1829 +  return 0;
  1.1830 +}
  1.1831 +_ACEOF
  1.1832 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.1833 +  ac_cv_prog_cxx_g=yes
  1.1834 +fi
  1.1835 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.1836 +fi
  1.1837 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.1838 +fi
  1.1839 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.1840 +   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  1.1841 +fi
  1.1842 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  1.1843 +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  1.1844 +if test "$ac_test_CXXFLAGS" = set; then
  1.1845 +  CXXFLAGS=$ac_save_CXXFLAGS
  1.1846 +elif test $ac_cv_prog_cxx_g = yes; then
  1.1847 +  if test "$GXX" = yes; then
  1.1848 +    CXXFLAGS="-g -O2"
  1.1849 +  else
  1.1850 +    CXXFLAGS="-g"
  1.1851 +  fi
  1.1852 +else
  1.1853 +  if test "$GXX" = yes; then
  1.1854 +    CXXFLAGS="-O2"
  1.1855 +  else
  1.1856 +    CXXFLAGS=
  1.1857 +  fi
  1.1858 +fi
  1.1859 +ac_ext=cpp
  1.1860 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.1861 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.1862 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.1863 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.1864 +
  1.1865 +
  1.1866  
  1.1867  # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
  1.1868  # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
  1.1869 @@ -7109,6 +8177,75 @@
  1.1870          ZERO_ARCHFLAG="-m${OPENJDK_TARGET_CPU_BITS}"
  1.1871      esac
  1.1872  
  1.1873 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5
  1.1874 +$as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; }
  1.1875 +  supports=yes
  1.1876 +
  1.1877 +  saved_cflags="$CFLAGS"
  1.1878 +  CFLAGS="$CFLAGS $ZERO_ARCHFLAG"
  1.1879 +  ac_ext=c
  1.1880 +ac_cpp='$CPP $CPPFLAGS'
  1.1881 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.1882 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.1883 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1.1884 +
  1.1885 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1886 +/* end confdefs.h.  */
  1.1887 +
  1.1888 +    int i;
  1.1889 +
  1.1890 +_ACEOF
  1.1891 +if ac_fn_c_try_compile "$LINENO"; then :
  1.1892 +
  1.1893 +else
  1.1894 +  supports=no
  1.1895 +fi
  1.1896 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.1897 +  ac_ext=c
  1.1898 +ac_cpp='$CPP $CPPFLAGS'
  1.1899 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.1900 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.1901 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1.1902 +
  1.1903 +  CFLAGS="$saved_cflags"
  1.1904 +
  1.1905 +  saved_cxxflags="$CXXFLAGS"
  1.1906 +  CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG"
  1.1907 +  ac_ext=cpp
  1.1908 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.1909 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.1910 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.1911 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.1912 +
  1.1913 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.1914 +/* end confdefs.h.  */
  1.1915 +
  1.1916 +    int i;
  1.1917 +
  1.1918 +_ACEOF
  1.1919 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.1920 +
  1.1921 +else
  1.1922 +  supports=no
  1.1923 +fi
  1.1924 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.1925 +  ac_ext=c
  1.1926 +ac_cpp='$CPP $CPPFLAGS'
  1.1927 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.1928 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.1929 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1.1930 +
  1.1931 +  CXXFLAGS="$saved_cxxflags"
  1.1932 +
  1.1933 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
  1.1934 +$as_echo "$supports" >&6; }
  1.1935 +  if test "x$supports" = "xyes" ; then
  1.1936 +    :
  1.1937 +  else
  1.1938 +    ZERO_ARCHFLAG=""
  1.1939 +  fi
  1.1940 +
  1.1941 +
  1.1942  
  1.1943      # ZERO_ARCHDEF is used to enable architecture-specific code
  1.1944      case "${OPENJDK_TARGET_CPU}" in
  1.1945 @@ -8161,7 +9298,7 @@
  1.1946  set dummy $ac_prog; ac_word=$2
  1.1947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.1948  $as_echo_n "checking for $ac_word... " >&6; }
  1.1949 -if test "${ac_cv_prog_PKGHANDLER+set}" = set; then :
  1.1950 +if ${ac_cv_prog_PKGHANDLER+:} false; then :
  1.1951    $as_echo_n "(cached) " >&6
  1.1952  else
  1.1953    if test -n "$PKGHANDLER"; then
  1.1954 @@ -8526,7 +9663,7 @@
  1.1955  set dummy $ac_prog; ac_word=$2
  1.1956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.1957  $as_echo_n "checking for $ac_word... " >&6; }
  1.1958 -if test "${ac_cv_path_CHECK_GMAKE+set}" = set; then :
  1.1959 +if ${ac_cv_path_CHECK_GMAKE+:} false; then :
  1.1960    $as_echo_n "(cached) " >&6
  1.1961  else
  1.1962    case $CHECK_GMAKE in
  1.1963 @@ -8880,7 +10017,7 @@
  1.1964  set dummy $ac_prog; ac_word=$2
  1.1965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.1966  $as_echo_n "checking for $ac_word... " >&6; }
  1.1967 -if test "${ac_cv_path_CHECK_MAKE+set}" = set; then :
  1.1968 +if ${ac_cv_path_CHECK_MAKE+:} false; then :
  1.1969    $as_echo_n "(cached) " >&6
  1.1970  else
  1.1971    case $CHECK_MAKE in
  1.1972 @@ -9239,7 +10376,7 @@
  1.1973  set dummy $ac_prog; ac_word=$2
  1.1974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.1975  $as_echo_n "checking for $ac_word... " >&6; }
  1.1976 -if test "${ac_cv_path_CHECK_TOOLSDIR_GMAKE+set}" = set; then :
  1.1977 +if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
  1.1978    $as_echo_n "(cached) " >&6
  1.1979  else
  1.1980    case $CHECK_TOOLSDIR_GMAKE in
  1.1981 @@ -9592,7 +10729,7 @@
  1.1982  set dummy $ac_prog; ac_word=$2
  1.1983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.1984  $as_echo_n "checking for $ac_word... " >&6; }
  1.1985 -if test "${ac_cv_path_CHECK_TOOLSDIR_MAKE+set}" = set; then :
  1.1986 +if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
  1.1987    $as_echo_n "(cached) " >&6
  1.1988  else
  1.1989    case $CHECK_TOOLSDIR_MAKE in
  1.1990 @@ -9988,7 +11125,7 @@
  1.1991  set dummy $ac_prog; ac_word=$2
  1.1992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.1993  $as_echo_n "checking for $ac_word... " >&6; }
  1.1994 -if test "${ac_cv_path_UNZIP+set}" = set; then :
  1.1995 +if ${ac_cv_path_UNZIP+:} false; then :
  1.1996    $as_echo_n "(cached) " >&6
  1.1997  else
  1.1998    case $UNZIP in
  1.1999 @@ -10047,7 +11184,7 @@
  1.2000  set dummy $ac_prog; ac_word=$2
  1.2001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2002  $as_echo_n "checking for $ac_word... " >&6; }
  1.2003 -if test "${ac_cv_path_ZIP+set}" = set; then :
  1.2004 +if ${ac_cv_path_ZIP+:} false; then :
  1.2005    $as_echo_n "(cached) " >&6
  1.2006  else
  1.2007    case $ZIP in
  1.2008 @@ -10106,7 +11243,7 @@
  1.2009  set dummy ldd; ac_word=$2
  1.2010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2011  $as_echo_n "checking for $ac_word... " >&6; }
  1.2012 -if test "${ac_cv_path_LDD+set}" = set; then :
  1.2013 +if ${ac_cv_path_LDD+:} false; then :
  1.2014    $as_echo_n "(cached) " >&6
  1.2015  else
  1.2016    case $LDD in
  1.2017 @@ -10152,7 +11289,7 @@
  1.2018  set dummy otool; ac_word=$2
  1.2019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2020  $as_echo_n "checking for $ac_word... " >&6; }
  1.2021 -if test "${ac_cv_path_OTOOL+set}" = set; then :
  1.2022 +if ${ac_cv_path_OTOOL+:} false; then :
  1.2023    $as_echo_n "(cached) " >&6
  1.2024  else
  1.2025    case $OTOOL in
  1.2026 @@ -10197,7 +11334,7 @@
  1.2027  set dummy $ac_prog; ac_word=$2
  1.2028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2029  $as_echo_n "checking for $ac_word... " >&6; }
  1.2030 -if test "${ac_cv_path_READELF+set}" = set; then :
  1.2031 +if ${ac_cv_path_READELF+:} false; then :
  1.2032    $as_echo_n "(cached) " >&6
  1.2033  else
  1.2034    case $READELF in
  1.2035 @@ -10240,7 +11377,7 @@
  1.2036  set dummy hg; ac_word=$2
  1.2037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2038  $as_echo_n "checking for $ac_word... " >&6; }
  1.2039 -if test "${ac_cv_path_HG+set}" = set; then :
  1.2040 +if ${ac_cv_path_HG+:} false; then :
  1.2041    $as_echo_n "(cached) " >&6
  1.2042  else
  1.2043    case $HG in
  1.2044 @@ -10280,7 +11417,7 @@
  1.2045  set dummy stat; ac_word=$2
  1.2046  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2047  $as_echo_n "checking for $ac_word... " >&6; }
  1.2048 -if test "${ac_cv_path_STAT+set}" = set; then :
  1.2049 +if ${ac_cv_path_STAT+:} false; then :
  1.2050    $as_echo_n "(cached) " >&6
  1.2051  else
  1.2052    case $STAT in
  1.2053 @@ -10320,7 +11457,7 @@
  1.2054  set dummy time; ac_word=$2
  1.2055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2056  $as_echo_n "checking for $ac_word... " >&6; }
  1.2057 -if test "${ac_cv_path_TIME+set}" = set; then :
  1.2058 +if ${ac_cv_path_TIME+:} false; then :
  1.2059    $as_echo_n "(cached) " >&6
  1.2060  else
  1.2061    case $TIME in
  1.2062 @@ -10365,7 +11502,7 @@
  1.2063  set dummy $ac_prog; ac_word=$2
  1.2064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2065  $as_echo_n "checking for $ac_word... " >&6; }
  1.2066 -if test "${ac_cv_path_COMM+set}" = set; then :
  1.2067 +if ${ac_cv_path_COMM+:} false; then :
  1.2068    $as_echo_n "(cached) " >&6
  1.2069  else
  1.2070    case $COMM in
  1.2071 @@ -10427,7 +11564,7 @@
  1.2072  set dummy $ac_prog; ac_word=$2
  1.2073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2074  $as_echo_n "checking for $ac_word... " >&6; }
  1.2075 -if test "${ac_cv_path_XATTR+set}" = set; then :
  1.2076 +if ${ac_cv_path_XATTR+:} false; then :
  1.2077    $as_echo_n "(cached) " >&6
  1.2078  else
  1.2079    case $XATTR in
  1.2080 @@ -10491,7 +11628,7 @@
  1.2081  set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  1.2082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2083  $as_echo_n "checking for $ac_word... " >&6; }
  1.2084 -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  1.2085 +if ${ac_cv_path_PKG_CONFIG+:} false; then :
  1.2086    $as_echo_n "(cached) " >&6
  1.2087  else
  1.2088    case $PKG_CONFIG in
  1.2089 @@ -10534,7 +11671,7 @@
  1.2090  set dummy pkg-config; ac_word=$2
  1.2091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2092  $as_echo_n "checking for $ac_word... " >&6; }
  1.2093 -if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  1.2094 +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  1.2095    $as_echo_n "(cached) " >&6
  1.2096  else
  1.2097    case $ac_pt_PKG_CONFIG in
  1.2098 @@ -10707,7 +11844,7 @@
  1.2099  set dummy $ac_prog; ac_word=$2
  1.2100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2101  $as_echo_n "checking for $ac_word... " >&6; }
  1.2102 -if test "${ac_cv_prog_BDEPS_UNZIP+set}" = set; then :
  1.2103 +if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
  1.2104    $as_echo_n "(cached) " >&6
  1.2105  else
  1.2106    if test -n "$BDEPS_UNZIP"; then
  1.2107 @@ -10753,7 +11890,7 @@
  1.2108  set dummy $ac_prog; ac_word=$2
  1.2109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2110  $as_echo_n "checking for $ac_word... " >&6; }
  1.2111 -if test "${ac_cv_prog_BDEPS_FTP+set}" = set; then :
  1.2112 +if ${ac_cv_prog_BDEPS_FTP+:} false; then :
  1.2113    $as_echo_n "(cached) " >&6
  1.2114  else
  1.2115    if test -n "$BDEPS_FTP"; then
  1.2116 @@ -12026,7 +13163,7 @@
  1.2117  set dummy javac; ac_word=$2
  1.2118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2119  $as_echo_n "checking for $ac_word... " >&6; }
  1.2120 -if test "${ac_cv_path_JAVAC_CHECK+set}" = set; then :
  1.2121 +if ${ac_cv_path_JAVAC_CHECK+:} false; then :
  1.2122    $as_echo_n "(cached) " >&6
  1.2123  else
  1.2124    case $JAVAC_CHECK in
  1.2125 @@ -12066,7 +13203,7 @@
  1.2126  set dummy java; ac_word=$2
  1.2127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2128  $as_echo_n "checking for $ac_word... " >&6; }
  1.2129 -if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
  1.2130 +if ${ac_cv_path_JAVA_CHECK+:} false; then :
  1.2131    $as_echo_n "(cached) " >&6
  1.2132  else
  1.2133    case $JAVA_CHECK in
  1.2134 @@ -16140,7 +17277,7 @@
  1.2135  set dummy link; ac_word=$2
  1.2136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2137  $as_echo_n "checking for $ac_word... " >&6; }
  1.2138 -if test "${ac_cv_path_CYGWIN_LINK+set}" = set; then :
  1.2139 +if ${ac_cv_path_CYGWIN_LINK+:} false; then :
  1.2140    $as_echo_n "(cached) " >&6
  1.2141  else
  1.2142    case $CYGWIN_LINK in
  1.2143 @@ -17555,7 +18692,7 @@
  1.2144  set dummy $ac_prog; ac_word=$2
  1.2145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2146  $as_echo_n "checking for $ac_word... " >&6; }
  1.2147 -if test "${ac_cv_path_BUILD_CC+set}" = set; then :
  1.2148 +if ${ac_cv_path_BUILD_CC+:} false; then :
  1.2149    $as_echo_n "(cached) " >&6
  1.2150  else
  1.2151    case $BUILD_CC in
  1.2152 @@ -17866,7 +19003,7 @@
  1.2153  set dummy $ac_prog; ac_word=$2
  1.2154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2155  $as_echo_n "checking for $ac_word... " >&6; }
  1.2156 -if test "${ac_cv_path_BUILD_CXX+set}" = set; then :
  1.2157 +if ${ac_cv_path_BUILD_CXX+:} false; then :
  1.2158    $as_echo_n "(cached) " >&6
  1.2159  else
  1.2160    case $BUILD_CXX in
  1.2161 @@ -18175,7 +19312,7 @@
  1.2162  set dummy ld; ac_word=$2
  1.2163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2164  $as_echo_n "checking for $ac_word... " >&6; }
  1.2165 -if test "${ac_cv_path_BUILD_LD+set}" = set; then :
  1.2166 +if ${ac_cv_path_BUILD_LD+:} false; then :
  1.2167    $as_echo_n "(cached) " >&6
  1.2168  else
  1.2169    case $BUILD_LD in
  1.2170 @@ -18691,7 +19828,7 @@
  1.2171  set dummy $ac_prog; ac_word=$2
  1.2172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2173  $as_echo_n "checking for $ac_word... " >&6; }
  1.2174 -if test "${ac_cv_path_TOOLS_DIR_CC+set}" = set; then :
  1.2175 +if ${ac_cv_path_TOOLS_DIR_CC+:} false; then :
  1.2176    $as_echo_n "(cached) " >&6
  1.2177  else
  1.2178    case $TOOLS_DIR_CC in
  1.2179 @@ -18743,7 +19880,7 @@
  1.2180  set dummy $ac_prog; ac_word=$2
  1.2181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2182  $as_echo_n "checking for $ac_word... " >&6; }
  1.2183 -if test "${ac_cv_path_POTENTIAL_CC+set}" = set; then :
  1.2184 +if ${ac_cv_path_POTENTIAL_CC+:} false; then :
  1.2185    $as_echo_n "(cached) " >&6
  1.2186  else
  1.2187    case $POTENTIAL_CC in
  1.2188 @@ -19156,7 +20293,7 @@
  1.2189  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1.2190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2191  $as_echo_n "checking for $ac_word... " >&6; }
  1.2192 -if test "${ac_cv_prog_PROPER_COMPILER_CC+set}" = set; then :
  1.2193 +if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then :
  1.2194    $as_echo_n "(cached) " >&6
  1.2195  else
  1.2196    if test -n "$PROPER_COMPILER_CC"; then
  1.2197 @@ -19200,7 +20337,7 @@
  1.2198  set dummy $ac_prog; ac_word=$2
  1.2199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2200  $as_echo_n "checking for $ac_word... " >&6; }
  1.2201 -if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+set}" = set; then :
  1.2202 +if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then :
  1.2203    $as_echo_n "(cached) " >&6
  1.2204  else
  1.2205    if test -n "$ac_ct_PROPER_COMPILER_CC"; then
  1.2206 @@ -19650,7 +20787,7 @@
  1.2207  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1.2208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2209  $as_echo_n "checking for $ac_word... " >&6; }
  1.2210 -if test "${ac_cv_prog_CC+set}" = set; then :
  1.2211 +if ${ac_cv_prog_CC+:} false; then :
  1.2212    $as_echo_n "(cached) " >&6
  1.2213  else
  1.2214    if test -n "$CC"; then
  1.2215 @@ -19694,7 +20831,7 @@
  1.2216  set dummy $ac_prog; ac_word=$2
  1.2217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2218  $as_echo_n "checking for $ac_word... " >&6; }
  1.2219 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  1.2220 +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  1.2221    $as_echo_n "(cached) " >&6
  1.2222  else
  1.2223    if test -n "$ac_ct_CC"; then
  1.2224 @@ -19747,7 +20884,7 @@
  1.2225  test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.2226  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.2227  as_fn_error $? "no acceptable C compiler found in \$PATH
  1.2228 -See \`config.log' for more details" "$LINENO" 5 ; }
  1.2229 +See \`config.log' for more details" "$LINENO" 5; }
  1.2230  
  1.2231  # Provide some information about the compiler.
  1.2232  $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  1.2233 @@ -19774,259 +20911,9 @@
  1.2234    test $ac_status = 0; }
  1.2235  done
  1.2236  
  1.2237 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2238 -/* end confdefs.h.  */
  1.2239 -
  1.2240 -int
  1.2241 -main ()
  1.2242 -{
  1.2243 -
  1.2244 -  ;
  1.2245 -  return 0;
  1.2246 -}
  1.2247 -_ACEOF
  1.2248 -ac_clean_files_save=$ac_clean_files
  1.2249 -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1.2250 -# Try to create an executable without -o first, disregard a.out.
  1.2251 -# It will help us diagnose broken compilers, and finding out an intuition
  1.2252 -# of exeext.
  1.2253 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  1.2254 -$as_echo_n "checking whether the C compiler works... " >&6; }
  1.2255 -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1.2256 -
  1.2257 -# The possible output files:
  1.2258 -ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  1.2259 -
  1.2260 -ac_rmfiles=
  1.2261 -for ac_file in $ac_files
  1.2262 -do
  1.2263 -  case $ac_file in
  1.2264 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1.2265 -    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1.2266 -  esac
  1.2267 -done
  1.2268 -rm -f $ac_rmfiles
  1.2269 -
  1.2270 -if { { ac_try="$ac_link_default"
  1.2271 -case "(($ac_try" in
  1.2272 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.2273 -  *) ac_try_echo=$ac_try;;
  1.2274 -esac
  1.2275 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.2276 -$as_echo "$ac_try_echo"; } >&5
  1.2277 -  (eval "$ac_link_default") 2>&5
  1.2278 -  ac_status=$?
  1.2279 -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.2280 -  test $ac_status = 0; }; then :
  1.2281 -  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1.2282 -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1.2283 -# in a Makefile.  We should not override ac_cv_exeext if it was cached,
  1.2284 -# so that the user can short-circuit this test for compilers unknown to
  1.2285 -# Autoconf.
  1.2286 -for ac_file in $ac_files ''
  1.2287 -do
  1.2288 -  test -f "$ac_file" || continue
  1.2289 -  case $ac_file in
  1.2290 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  1.2291 -	;;
  1.2292 -    [ab].out )
  1.2293 -	# We found the default executable, but exeext='' is most
  1.2294 -	# certainly right.
  1.2295 -	break;;
  1.2296 -    *.* )
  1.2297 -	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1.2298 -	then :; else
  1.2299 -	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1.2300 -	fi
  1.2301 -	# We set ac_cv_exeext here because the later test for it is not
  1.2302 -	# safe: cross compilers may not add the suffix if given an `-o'
  1.2303 -	# argument, so we may need to know it at that point already.
  1.2304 -	# Even if this section looks crufty: it has the advantage of
  1.2305 -	# actually working.
  1.2306 -	break;;
  1.2307 -    * )
  1.2308 -	break;;
  1.2309 -  esac
  1.2310 -done
  1.2311 -test "$ac_cv_exeext" = no && ac_cv_exeext=
  1.2312 -
  1.2313 -else
  1.2314 -  ac_file=''
  1.2315 -fi
  1.2316 -if test -z "$ac_file"; then :
  1.2317 -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1.2318 -$as_echo "no" >&6; }
  1.2319 -$as_echo "$as_me: failed program was:" >&5
  1.2320 -sed 's/^/| /' conftest.$ac_ext >&5
  1.2321 -
  1.2322 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.2323 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.2324 -as_fn_error 77 "C compiler cannot create executables
  1.2325 -See \`config.log' for more details" "$LINENO" 5 ; }
  1.2326 -else
  1.2327 -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1.2328 -$as_echo "yes" >&6; }
  1.2329 -fi
  1.2330 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  1.2331 -$as_echo_n "checking for C compiler default output file name... " >&6; }
  1.2332 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  1.2333 -$as_echo "$ac_file" >&6; }
  1.2334 -ac_exeext=$ac_cv_exeext
  1.2335 -
  1.2336 -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  1.2337 -ac_clean_files=$ac_clean_files_save
  1.2338 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  1.2339 -$as_echo_n "checking for suffix of executables... " >&6; }
  1.2340 -if { { ac_try="$ac_link"
  1.2341 -case "(($ac_try" in
  1.2342 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.2343 -  *) ac_try_echo=$ac_try;;
  1.2344 -esac
  1.2345 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.2346 -$as_echo "$ac_try_echo"; } >&5
  1.2347 -  (eval "$ac_link") 2>&5
  1.2348 -  ac_status=$?
  1.2349 -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.2350 -  test $ac_status = 0; }; then :
  1.2351 -  # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1.2352 -# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  1.2353 -# work properly (i.e., refer to `conftest.exe'), while it won't with
  1.2354 -# `rm'.
  1.2355 -for ac_file in conftest.exe conftest conftest.*; do
  1.2356 -  test -f "$ac_file" || continue
  1.2357 -  case $ac_file in
  1.2358 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1.2359 -    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1.2360 -	  break;;
  1.2361 -    * ) break;;
  1.2362 -  esac
  1.2363 -done
  1.2364 -else
  1.2365 -  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.2366 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.2367 -as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  1.2368 -See \`config.log' for more details" "$LINENO" 5 ; }
  1.2369 -fi
  1.2370 -rm -f conftest conftest$ac_cv_exeext
  1.2371 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  1.2372 -$as_echo "$ac_cv_exeext" >&6; }
  1.2373 -
  1.2374 -rm -f conftest.$ac_ext
  1.2375 -EXEEXT=$ac_cv_exeext
  1.2376 -ac_exeext=$EXEEXT
  1.2377 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2378 -/* end confdefs.h.  */
  1.2379 -#include <stdio.h>
  1.2380 -int
  1.2381 -main ()
  1.2382 -{
  1.2383 -FILE *f = fopen ("conftest.out", "w");
  1.2384 - return ferror (f) || fclose (f) != 0;
  1.2385 -
  1.2386 -  ;
  1.2387 -  return 0;
  1.2388 -}
  1.2389 -_ACEOF
  1.2390 -ac_clean_files="$ac_clean_files conftest.out"
  1.2391 -# Check that the compiler produces executables we can run.  If not, either
  1.2392 -# the compiler is broken, or we cross compile.
  1.2393 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  1.2394 -$as_echo_n "checking whether we are cross compiling... " >&6; }
  1.2395 -if test "$cross_compiling" != yes; then
  1.2396 -  { { ac_try="$ac_link"
  1.2397 -case "(($ac_try" in
  1.2398 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.2399 -  *) ac_try_echo=$ac_try;;
  1.2400 -esac
  1.2401 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.2402 -$as_echo "$ac_try_echo"; } >&5
  1.2403 -  (eval "$ac_link") 2>&5
  1.2404 -  ac_status=$?
  1.2405 -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.2406 -  test $ac_status = 0; }
  1.2407 -  if { ac_try='./conftest$ac_cv_exeext'
  1.2408 -  { { case "(($ac_try" in
  1.2409 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.2410 -  *) ac_try_echo=$ac_try;;
  1.2411 -esac
  1.2412 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.2413 -$as_echo "$ac_try_echo"; } >&5
  1.2414 -  (eval "$ac_try") 2>&5
  1.2415 -  ac_status=$?
  1.2416 -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.2417 -  test $ac_status = 0; }; }; then
  1.2418 -    cross_compiling=no
  1.2419 -  else
  1.2420 -    if test "$cross_compiling" = maybe; then
  1.2421 -	cross_compiling=yes
  1.2422 -    else
  1.2423 -	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.2424 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.2425 -as_fn_error $? "cannot run C compiled programs.
  1.2426 -If you meant to cross compile, use \`--host'.
  1.2427 -See \`config.log' for more details" "$LINENO" 5 ; }
  1.2428 -    fi
  1.2429 -  fi
  1.2430 -fi
  1.2431 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  1.2432 -$as_echo "$cross_compiling" >&6; }
  1.2433 -
  1.2434 -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  1.2435 -ac_clean_files=$ac_clean_files_save
  1.2436 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  1.2437 -$as_echo_n "checking for suffix of object files... " >&6; }
  1.2438 -if test "${ac_cv_objext+set}" = set; then :
  1.2439 -  $as_echo_n "(cached) " >&6
  1.2440 -else
  1.2441 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2442 -/* end confdefs.h.  */
  1.2443 -
  1.2444 -int
  1.2445 -main ()
  1.2446 -{
  1.2447 -
  1.2448 -  ;
  1.2449 -  return 0;
  1.2450 -}
  1.2451 -_ACEOF
  1.2452 -rm -f conftest.o conftest.obj
  1.2453 -if { { ac_try="$ac_compile"
  1.2454 -case "(($ac_try" in
  1.2455 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1.2456 -  *) ac_try_echo=$ac_try;;
  1.2457 -esac
  1.2458 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1.2459 -$as_echo "$ac_try_echo"; } >&5
  1.2460 -  (eval "$ac_compile") 2>&5
  1.2461 -  ac_status=$?
  1.2462 -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1.2463 -  test $ac_status = 0; }; then :
  1.2464 -  for ac_file in conftest.o conftest.obj conftest.*; do
  1.2465 -  test -f "$ac_file" || continue;
  1.2466 -  case $ac_file in
  1.2467 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  1.2468 -    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1.2469 -       break;;
  1.2470 -  esac
  1.2471 -done
  1.2472 -else
  1.2473 -  $as_echo "$as_me: failed program was:" >&5
  1.2474 -sed 's/^/| /' conftest.$ac_ext >&5
  1.2475 -
  1.2476 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.2477 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.2478 -as_fn_error $? "cannot compute suffix of object files: cannot compile
  1.2479 -See \`config.log' for more details" "$LINENO" 5 ; }
  1.2480 -fi
  1.2481 -rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1.2482 -fi
  1.2483 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  1.2484 -$as_echo "$ac_cv_objext" >&6; }
  1.2485 -OBJEXT=$ac_cv_objext
  1.2486 -ac_objext=$OBJEXT
  1.2487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  1.2488  $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  1.2489 -if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  1.2490 +if ${ac_cv_c_compiler_gnu+:} false; then :
  1.2491    $as_echo_n "(cached) " >&6
  1.2492  else
  1.2493    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2494 @@ -20063,7 +20950,7 @@
  1.2495  ac_save_CFLAGS=$CFLAGS
  1.2496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  1.2497  $as_echo_n "checking whether $CC accepts -g... " >&6; }
  1.2498 -if test "${ac_cv_prog_cc_g+set}" = set; then :
  1.2499 +if ${ac_cv_prog_cc_g+:} false; then :
  1.2500    $as_echo_n "(cached) " >&6
  1.2501  else
  1.2502    ac_save_c_werror_flag=$ac_c_werror_flag
  1.2503 @@ -20141,7 +21028,7 @@
  1.2504  fi
  1.2505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  1.2506  $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  1.2507 -if test "${ac_cv_prog_cc_c89+set}" = set; then :
  1.2508 +if ${ac_cv_prog_cc_c89+:} false; then :
  1.2509    $as_echo_n "(cached) " >&6
  1.2510  else
  1.2511    ac_cv_prog_cc_c89=no
  1.2512 @@ -20264,7 +21151,7 @@
  1.2513  set dummy $ac_prog; ac_word=$2
  1.2514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2515  $as_echo_n "checking for $ac_word... " >&6; }
  1.2516 -if test "${ac_cv_path_TOOLS_DIR_CXX+set}" = set; then :
  1.2517 +if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then :
  1.2518    $as_echo_n "(cached) " >&6
  1.2519  else
  1.2520    case $TOOLS_DIR_CXX in
  1.2521 @@ -20316,7 +21203,7 @@
  1.2522  set dummy $ac_prog; ac_word=$2
  1.2523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2524  $as_echo_n "checking for $ac_word... " >&6; }
  1.2525 -if test "${ac_cv_path_POTENTIAL_CXX+set}" = set; then :
  1.2526 +if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
  1.2527    $as_echo_n "(cached) " >&6
  1.2528  else
  1.2529    case $POTENTIAL_CXX in
  1.2530 @@ -20729,7 +21616,7 @@
  1.2531  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1.2532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2533  $as_echo_n "checking for $ac_word... " >&6; }
  1.2534 -if test "${ac_cv_prog_PROPER_COMPILER_CXX+set}" = set; then :
  1.2535 +if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then :
  1.2536    $as_echo_n "(cached) " >&6
  1.2537  else
  1.2538    if test -n "$PROPER_COMPILER_CXX"; then
  1.2539 @@ -20773,7 +21660,7 @@
  1.2540  set dummy $ac_prog; ac_word=$2
  1.2541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2542  $as_echo_n "checking for $ac_word... " >&6; }
  1.2543 -if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+set}" = set; then :
  1.2544 +if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then :
  1.2545    $as_echo_n "(cached) " >&6
  1.2546  else
  1.2547    if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
  1.2548 @@ -21227,7 +22114,7 @@
  1.2549  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1.2550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2551  $as_echo_n "checking for $ac_word... " >&6; }
  1.2552 -if test "${ac_cv_prog_CXX+set}" = set; then :
  1.2553 +if ${ac_cv_prog_CXX+:} false; then :
  1.2554    $as_echo_n "(cached) " >&6
  1.2555  else
  1.2556    if test -n "$CXX"; then
  1.2557 @@ -21271,7 +22158,7 @@
  1.2558  set dummy $ac_prog; ac_word=$2
  1.2559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2560  $as_echo_n "checking for $ac_word... " >&6; }
  1.2561 -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  1.2562 +if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  1.2563    $as_echo_n "(cached) " >&6
  1.2564  else
  1.2565    if test -n "$ac_ct_CXX"; then
  1.2566 @@ -21349,7 +22236,7 @@
  1.2567  
  1.2568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  1.2569  $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  1.2570 -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  1.2571 +if ${ac_cv_cxx_compiler_gnu+:} false; then :
  1.2572    $as_echo_n "(cached) " >&6
  1.2573  else
  1.2574    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2575 @@ -21386,7 +22273,7 @@
  1.2576  ac_save_CXXFLAGS=$CXXFLAGS
  1.2577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  1.2578  $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  1.2579 -if test "${ac_cv_prog_cxx_g+set}" = set; then :
  1.2580 +if ${ac_cv_prog_cxx_g+:} false; then :
  1.2581    $as_echo_n "(cached) " >&6
  1.2582  else
  1.2583    ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  1.2584 @@ -21484,7 +22371,7 @@
  1.2585  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1.2586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2587  $as_echo_n "checking for $ac_word... " >&6; }
  1.2588 -if test "${ac_cv_prog_OBJC+set}" = set; then :
  1.2589 +if ${ac_cv_prog_OBJC+:} false; then :
  1.2590    $as_echo_n "(cached) " >&6
  1.2591  else
  1.2592    if test -n "$OBJC"; then
  1.2593 @@ -21528,7 +22415,7 @@
  1.2594  set dummy $ac_prog; ac_word=$2
  1.2595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2596  $as_echo_n "checking for $ac_word... " >&6; }
  1.2597 -if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then :
  1.2598 +if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
  1.2599    $as_echo_n "(cached) " >&6
  1.2600  else
  1.2601    if test -n "$ac_ct_OBJC"; then
  1.2602 @@ -21604,7 +22491,7 @@
  1.2603  
  1.2604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
  1.2605  $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
  1.2606 -if test "${ac_cv_objc_compiler_gnu+set}" = set; then :
  1.2607 +if ${ac_cv_objc_compiler_gnu+:} false; then :
  1.2608    $as_echo_n "(cached) " >&6
  1.2609  else
  1.2610    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2611 @@ -21641,7 +22528,7 @@
  1.2612  ac_save_OBJCFLAGS=$OBJCFLAGS
  1.2613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
  1.2614  $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
  1.2615 -if test "${ac_cv_prog_objc_g+set}" = set; then :
  1.2616 +if ${ac_cv_prog_objc_g+:} false; then :
  1.2617    $as_echo_n "(cached) " >&6
  1.2618  else
  1.2619    ac_save_objc_werror_flag=$ac_objc_werror_flag
  1.2620 @@ -22017,7 +22904,7 @@
  1.2621  set dummy ${ac_tool_prefix}ar; ac_word=$2
  1.2622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2623  $as_echo_n "checking for $ac_word... " >&6; }
  1.2624 -if test "${ac_cv_prog_AR+set}" = set; then :
  1.2625 +if ${ac_cv_prog_AR+:} false; then :
  1.2626    $as_echo_n "(cached) " >&6
  1.2627  else
  1.2628    if test -n "$AR"; then
  1.2629 @@ -22057,7 +22944,7 @@
  1.2630  set dummy ar; ac_word=$2
  1.2631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2632  $as_echo_n "checking for $ac_word... " >&6; }
  1.2633 -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  1.2634 +if ${ac_cv_prog_ac_ct_AR+:} false; then :
  1.2635    $as_echo_n "(cached) " >&6
  1.2636  else
  1.2637    if test -n "$ac_ct_AR"; then
  1.2638 @@ -22399,7 +23286,7 @@
  1.2639  set dummy link; ac_word=$2
  1.2640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2641  $as_echo_n "checking for $ac_word... " >&6; }
  1.2642 -if test "${ac_cv_prog_WINLD+set}" = set; then :
  1.2643 +if ${ac_cv_prog_WINLD+:} false; then :
  1.2644    $as_echo_n "(cached) " >&6
  1.2645  else
  1.2646    if test -n "$WINLD"; then
  1.2647 @@ -22738,7 +23625,7 @@
  1.2648  set dummy mt; ac_word=$2
  1.2649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2650  $as_echo_n "checking for $ac_word... " >&6; }
  1.2651 -if test "${ac_cv_prog_MT+set}" = set; then :
  1.2652 +if ${ac_cv_prog_MT+:} false; then :
  1.2653    $as_echo_n "(cached) " >&6
  1.2654  else
  1.2655    if test -n "$MT"; then
  1.2656 @@ -23059,7 +23946,7 @@
  1.2657  set dummy rc; ac_word=$2
  1.2658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2659  $as_echo_n "checking for $ac_word... " >&6; }
  1.2660 -if test "${ac_cv_prog_RC+set}" = set; then :
  1.2661 +if ${ac_cv_prog_RC+:} false; then :
  1.2662    $as_echo_n "(cached) " >&6
  1.2663  else
  1.2664    if test -n "$RC"; then
  1.2665 @@ -23450,7 +24337,7 @@
  1.2666  set dummy lib; ac_word=$2
  1.2667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2668  $as_echo_n "checking for $ac_word... " >&6; }
  1.2669 -if test "${ac_cv_prog_WINAR+set}" = set; then :
  1.2670 +if ${ac_cv_prog_WINAR+:} false; then :
  1.2671    $as_echo_n "(cached) " >&6
  1.2672  else
  1.2673    if test -n "$WINAR"; then
  1.2674 @@ -23756,7 +24643,7 @@
  1.2675  set dummy dumpbin; ac_word=$2
  1.2676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2677  $as_echo_n "checking for $ac_word... " >&6; }
  1.2678 -if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  1.2679 +if ${ac_cv_prog_DUMPBIN+:} false; then :
  1.2680    $as_echo_n "(cached) " >&6
  1.2681  else
  1.2682    if test -n "$DUMPBIN"; then
  1.2683 @@ -24075,7 +24962,7 @@
  1.2684    CPP=
  1.2685  fi
  1.2686  if test -z "$CPP"; then
  1.2687 -  if test "${ac_cv_prog_CPP+set}" = set; then :
  1.2688 +  if ${ac_cv_prog_CPP+:} false; then :
  1.2689    $as_echo_n "(cached) " >&6
  1.2690  else
  1.2691        # Double quotes because CPP needs to be expanded
  1.2692 @@ -24191,7 +25078,7 @@
  1.2693    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.2694  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.2695  as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  1.2696 -See \`config.log' for more details" "$LINENO" 5 ; }
  1.2697 +See \`config.log' for more details" "$LINENO" 5; }
  1.2698  fi
  1.2699  
  1.2700  ac_ext=cpp
  1.2701 @@ -24475,7 +25362,7 @@
  1.2702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  1.2703  $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  1.2704  if test -z "$CXXCPP"; then
  1.2705 -  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  1.2706 +  if ${ac_cv_prog_CXXCPP+:} false; then :
  1.2707    $as_echo_n "(cached) " >&6
  1.2708  else
  1.2709        # Double quotes because CXXCPP needs to be expanded
  1.2710 @@ -24591,7 +25478,7 @@
  1.2711    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.2712  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.2713  as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  1.2714 -See \`config.log' for more details" "$LINENO" 5 ; }
  1.2715 +See \`config.log' for more details" "$LINENO" 5; }
  1.2716  fi
  1.2717  
  1.2718  ac_ext=cpp
  1.2719 @@ -24893,7 +25780,7 @@
  1.2720  set dummy as; ac_word=$2
  1.2721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2722  $as_echo_n "checking for $ac_word... " >&6; }
  1.2723 -if test "${ac_cv_path_AS+set}" = set; then :
  1.2724 +if ${ac_cv_path_AS+:} false; then :
  1.2725    $as_echo_n "(cached) " >&6
  1.2726  else
  1.2727    case $AS in
  1.2728 @@ -25205,7 +26092,7 @@
  1.2729  set dummy nm; ac_word=$2
  1.2730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2731  $as_echo_n "checking for $ac_word... " >&6; }
  1.2732 -if test "${ac_cv_path_NM+set}" = set; then :
  1.2733 +if ${ac_cv_path_NM+:} false; then :
  1.2734    $as_echo_n "(cached) " >&6
  1.2735  else
  1.2736    case $NM in
  1.2737 @@ -25511,7 +26398,7 @@
  1.2738  set dummy gnm; ac_word=$2
  1.2739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2740  $as_echo_n "checking for $ac_word... " >&6; }
  1.2741 -if test "${ac_cv_path_GNM+set}" = set; then :
  1.2742 +if ${ac_cv_path_GNM+:} false; then :
  1.2743    $as_echo_n "(cached) " >&6
  1.2744  else
  1.2745    case $GNM in
  1.2746 @@ -25817,7 +26704,7 @@
  1.2747  set dummy strip; ac_word=$2
  1.2748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2749  $as_echo_n "checking for $ac_word... " >&6; }
  1.2750 -if test "${ac_cv_path_STRIP+set}" = set; then :
  1.2751 +if ${ac_cv_path_STRIP+:} false; then :
  1.2752    $as_echo_n "(cached) " >&6
  1.2753  else
  1.2754    case $STRIP in
  1.2755 @@ -26123,7 +27010,7 @@
  1.2756  set dummy mcs; ac_word=$2
  1.2757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2758  $as_echo_n "checking for $ac_word... " >&6; }
  1.2759 -if test "${ac_cv_path_MCS+set}" = set; then :
  1.2760 +if ${ac_cv_path_MCS+:} false; then :
  1.2761    $as_echo_n "(cached) " >&6
  1.2762  else
  1.2763    case $MCS in
  1.2764 @@ -26431,7 +27318,7 @@
  1.2765  set dummy ${ac_tool_prefix}nm; ac_word=$2
  1.2766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2767  $as_echo_n "checking for $ac_word... " >&6; }
  1.2768 -if test "${ac_cv_prog_NM+set}" = set; then :
  1.2769 +if ${ac_cv_prog_NM+:} false; then :
  1.2770    $as_echo_n "(cached) " >&6
  1.2771  else
  1.2772    if test -n "$NM"; then
  1.2773 @@ -26471,7 +27358,7 @@
  1.2774  set dummy nm; ac_word=$2
  1.2775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2776  $as_echo_n "checking for $ac_word... " >&6; }
  1.2777 -if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
  1.2778 +if ${ac_cv_prog_ac_ct_NM+:} false; then :
  1.2779    $as_echo_n "(cached) " >&6
  1.2780  else
  1.2781    if test -n "$ac_ct_NM"; then
  1.2782 @@ -26791,7 +27678,7 @@
  1.2783  set dummy ${ac_tool_prefix}strip; ac_word=$2
  1.2784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2785  $as_echo_n "checking for $ac_word... " >&6; }
  1.2786 -if test "${ac_cv_prog_STRIP+set}" = set; then :
  1.2787 +if ${ac_cv_prog_STRIP+:} false; then :
  1.2788    $as_echo_n "(cached) " >&6
  1.2789  else
  1.2790    if test -n "$STRIP"; then
  1.2791 @@ -26831,7 +27718,7 @@
  1.2792  set dummy strip; ac_word=$2
  1.2793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2794  $as_echo_n "checking for $ac_word... " >&6; }
  1.2795 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  1.2796 +if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  1.2797    $as_echo_n "(cached) " >&6
  1.2798  else
  1.2799    if test -n "$ac_ct_STRIP"; then
  1.2800 @@ -27156,7 +28043,7 @@
  1.2801  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1.2802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2803  $as_echo_n "checking for $ac_word... " >&6; }
  1.2804 -if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  1.2805 +if ${ac_cv_prog_OBJCOPY+:} false; then :
  1.2806    $as_echo_n "(cached) " >&6
  1.2807  else
  1.2808    if test -n "$OBJCOPY"; then
  1.2809 @@ -27200,7 +28087,7 @@
  1.2810  set dummy $ac_prog; ac_word=$2
  1.2811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2812  $as_echo_n "checking for $ac_word... " >&6; }
  1.2813 -if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
  1.2814 +if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
  1.2815    $as_echo_n "(cached) " >&6
  1.2816  else
  1.2817    if test -n "$ac_ct_OBJCOPY"; then
  1.2818 @@ -27527,7 +28414,7 @@
  1.2819  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1.2820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2821  $as_echo_n "checking for $ac_word... " >&6; }
  1.2822 -if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  1.2823 +if ${ac_cv_prog_OBJDUMP+:} false; then :
  1.2824    $as_echo_n "(cached) " >&6
  1.2825  else
  1.2826    if test -n "$OBJDUMP"; then
  1.2827 @@ -27571,7 +28458,7 @@
  1.2828  set dummy $ac_prog; ac_word=$2
  1.2829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2830  $as_echo_n "checking for $ac_word... " >&6; }
  1.2831 -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  1.2832 +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  1.2833    $as_echo_n "(cached) " >&6
  1.2834  else
  1.2835    if test -n "$ac_ct_OBJDUMP"; then
  1.2836 @@ -27895,7 +28782,7 @@
  1.2837  set dummy lipo; ac_word=$2
  1.2838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.2839  $as_echo_n "checking for $ac_word... " >&6; }
  1.2840 -if test "${ac_cv_path_LIPO+set}" = set; then :
  1.2841 +if ${ac_cv_path_LIPO+:} false; then :
  1.2842    $as_echo_n "(cached) " >&6
  1.2843  else
  1.2844    case $LIPO in
  1.2845 @@ -28207,10 +29094,9 @@
  1.2846  
  1.2847  # And we can test some aspects on the target using configure macros.
  1.2848  
  1.2849 -
  1.2850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  1.2851  $as_echo_n "checking for ANSI C header files... " >&6; }
  1.2852 -if test "${ac_cv_header_stdc+set}" = set; then :
  1.2853 +if ${ac_cv_header_stdc+:} false; then :
  1.2854    $as_echo_n "(cached) " >&6
  1.2855  else
  1.2856    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2857 @@ -28344,6 +29230,80 @@
  1.2858  # (The JVM can use 32 or 64 bit Java pointers but that decision
  1.2859  # is made at runtime.)
  1.2860  #
  1.2861 +
  1.2862 +
  1.2863 +
  1.2864 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-m${OPENJDK_TARGET_CPU_BITS}\"" >&5
  1.2865 +$as_echo_n "checking if compiler supports \"-m${OPENJDK_TARGET_CPU_BITS}\"... " >&6; }
  1.2866 +  supports=yes
  1.2867 +
  1.2868 +  saved_cflags="$CFLAGS"
  1.2869 +  CFLAGS="$CFLAGS -m${OPENJDK_TARGET_CPU_BITS}"
  1.2870 +  ac_ext=c
  1.2871 +ac_cpp='$CPP $CPPFLAGS'
  1.2872 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.2873 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.2874 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1.2875 +
  1.2876 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2877 +/* end confdefs.h.  */
  1.2878 +
  1.2879 +    int i;
  1.2880 +
  1.2881 +_ACEOF
  1.2882 +if ac_fn_c_try_compile "$LINENO"; then :
  1.2883 +
  1.2884 +else
  1.2885 +  supports=no
  1.2886 +fi
  1.2887 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.2888 +  ac_ext=cpp
  1.2889 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.2890 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.2891 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.2892 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.2893 +
  1.2894 +  CFLAGS="$saved_cflags"
  1.2895 +
  1.2896 +  saved_cxxflags="$CXXFLAGS"
  1.2897 +  CXXFLAGS="$CXXFLAG -m${OPENJDK_TARGET_CPU_BITS}"
  1.2898 +  ac_ext=cpp
  1.2899 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.2900 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.2901 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.2902 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.2903 +
  1.2904 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1.2905 +/* end confdefs.h.  */
  1.2906 +
  1.2907 +    int i;
  1.2908 +
  1.2909 +_ACEOF
  1.2910 +if ac_fn_cxx_try_compile "$LINENO"; then :
  1.2911 +
  1.2912 +else
  1.2913 +  supports=no
  1.2914 +fi
  1.2915 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1.2916 +  ac_ext=cpp
  1.2917 +ac_cpp='$CXXCPP $CPPFLAGS'
  1.2918 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1.2919 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1.2920 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1.2921 +
  1.2922 +  CXXFLAGS="$saved_cxxflags"
  1.2923 +
  1.2924 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
  1.2925 +$as_echo "$supports" >&6; }
  1.2926 +  if test "x$supports" = "xyes" ; then
  1.2927 +    COMPILER_SUPPORTS_TARGET_BITS_FLAG=true
  1.2928 +  else
  1.2929 +    COMPILER_SUPPORTS_TARGET_BITS_FLAG=false
  1.2930 +  fi
  1.2931 +
  1.2932 +
  1.2933 +
  1.2934 +
  1.2935  if test "x$OPENJDK_TARGET_OS" = xsolaris; then
  1.2936    # Always specify -m flags on Solaris
  1.2937  
  1.2938 @@ -28386,7 +29346,7 @@
  1.2939  for ac_header in stdio.h
  1.2940  do :
  1.2941    ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  1.2942 -if test "x$ac_cv_header_stdio_h" = x""yes; then :
  1.2943 +if test "x$ac_cv_header_stdio_h" = xyes; then :
  1.2944    cat >>confdefs.h <<_ACEOF
  1.2945  #define HAVE_STDIO_H 1
  1.2946  _ACEOF
  1.2947 @@ -28415,7 +29375,7 @@
  1.2948  # This bug is HP SR number 8606223364.
  1.2949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
  1.2950  $as_echo_n "checking size of int *... " >&6; }
  1.2951 -if test "${ac_cv_sizeof_int_p+set}" = set; then :
  1.2952 +if ${ac_cv_sizeof_int_p+:} false; then :
  1.2953    $as_echo_n "(cached) " >&6
  1.2954  else
  1.2955    if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
  1.2956 @@ -28425,7 +29385,7 @@
  1.2957       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1.2958  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1.2959  as_fn_error 77 "cannot compute sizeof (int *)
  1.2960 -See \`config.log' for more details" "$LINENO" 5 ; }
  1.2961 +See \`config.log' for more details" "$LINENO" 5; }
  1.2962     else
  1.2963       ac_cv_sizeof_int_p=0
  1.2964     fi
  1.2965 @@ -28472,7 +29432,7 @@
  1.2966  #
  1.2967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  1.2968  $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  1.2969 -if test "${ac_cv_c_bigendian+set}" = set; then :
  1.2970 +if ${ac_cv_c_bigendian+:} false; then :
  1.2971    $as_echo_n "(cached) " >&6
  1.2972  else
  1.2973    ac_cv_c_bigendian=unknown
  1.2974 @@ -29446,7 +30406,6 @@
  1.2975  
  1.2976  
  1.2977  
  1.2978 -
  1.2979  ###############################################################################
  1.2980  #
  1.2981  # Check for X Windows
  1.2982 @@ -29484,8 +30443,8 @@
  1.2983    have_x=disabled
  1.2984  else
  1.2985    case $x_includes,$x_libraries in #(
  1.2986 -    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
  1.2987 -    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
  1.2988 +    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  1.2989 +    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  1.2990    $as_echo_n "(cached) " >&6
  1.2991  else
  1.2992    # One or both of the vars are not set, and there is no cached value.
  1.2993 @@ -29762,7 +30721,7 @@
  1.2994  else
  1.2995    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  1.2996  $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  1.2997 -if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
  1.2998 +if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  1.2999    $as_echo_n "(cached) " >&6
  1.3000  else
  1.3001    ac_check_lib_save_LIBS=$LIBS
  1.3002 @@ -29796,14 +30755,14 @@
  1.3003  fi
  1.3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  1.3005  $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  1.3006 -if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
  1.3007 +if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  1.3008    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  1.3009  fi
  1.3010  
  1.3011      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  1.3012        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  1.3013  $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  1.3014 -if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
  1.3015 +if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  1.3016    $as_echo_n "(cached) " >&6
  1.3017  else
  1.3018    ac_check_lib_save_LIBS=$LIBS
  1.3019 @@ -29837,7 +30796,7 @@
  1.3020  fi
  1.3021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  1.3022  $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  1.3023 -if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
  1.3024 +if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  1.3025    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  1.3026  fi
  1.3027  
  1.3028 @@ -29856,14 +30815,14 @@
  1.3029      # The functions gethostbyname, getservbyname, and inet_addr are
  1.3030      # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  1.3031      ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  1.3032 -if test "x$ac_cv_func_gethostbyname" = x""yes; then :
  1.3033 +if test "x$ac_cv_func_gethostbyname" = xyes; then :
  1.3034  
  1.3035  fi
  1.3036  
  1.3037      if test $ac_cv_func_gethostbyname = no; then
  1.3038        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  1.3039  $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  1.3040 -if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  1.3041 +if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  1.3042    $as_echo_n "(cached) " >&6
  1.3043  else
  1.3044    ac_check_lib_save_LIBS=$LIBS
  1.3045 @@ -29897,14 +30856,14 @@
  1.3046  fi
  1.3047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  1.3048  $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  1.3049 -if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  1.3050 +if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  1.3051    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  1.3052  fi
  1.3053  
  1.3054        if test $ac_cv_lib_nsl_gethostbyname = no; then
  1.3055  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  1.3056  $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  1.3057 -if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
  1.3058 +if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  1.3059    $as_echo_n "(cached) " >&6
  1.3060  else
  1.3061    ac_check_lib_save_LIBS=$LIBS
  1.3062 @@ -29938,7 +30897,7 @@
  1.3063  fi
  1.3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  1.3065  $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  1.3066 -if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
  1.3067 +if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  1.3068    X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  1.3069  fi
  1.3070  
  1.3071 @@ -29953,14 +30912,14 @@
  1.3072      # must be given before -lnsl if both are needed.  We assume that
  1.3073      # if connect needs -lnsl, so does gethostbyname.
  1.3074      ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
  1.3075 -if test "x$ac_cv_func_connect" = x""yes; then :
  1.3076 +if test "x$ac_cv_func_connect" = xyes; then :
  1.3077  
  1.3078  fi
  1.3079  
  1.3080      if test $ac_cv_func_connect = no; then
  1.3081        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  1.3082  $as_echo_n "checking for connect in -lsocket... " >&6; }
  1.3083 -if test "${ac_cv_lib_socket_connect+set}" = set; then :
  1.3084 +if ${ac_cv_lib_socket_connect+:} false; then :
  1.3085    $as_echo_n "(cached) " >&6
  1.3086  else
  1.3087    ac_check_lib_save_LIBS=$LIBS
  1.3088 @@ -29994,7 +30953,7 @@
  1.3089  fi
  1.3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  1.3091  $as_echo "$ac_cv_lib_socket_connect" >&6; }
  1.3092 -if test "x$ac_cv_lib_socket_connect" = x""yes; then :
  1.3093 +if test "x$ac_cv_lib_socket_connect" = xyes; then :
  1.3094    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  1.3095  fi
  1.3096  
  1.3097 @@ -30002,14 +30961,14 @@
  1.3098  
  1.3099      # Guillermo Gomez says -lposix is necessary on A/UX.
  1.3100      ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
  1.3101 -if test "x$ac_cv_func_remove" = x""yes; then :
  1.3102 +if test "x$ac_cv_func_remove" = xyes; then :
  1.3103  
  1.3104  fi
  1.3105  
  1.3106      if test $ac_cv_func_remove = no; then
  1.3107        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  1.3108  $as_echo_n "checking for remove in -lposix... " >&6; }
  1.3109 -if test "${ac_cv_lib_posix_remove+set}" = set; then :
  1.3110 +if ${ac_cv_lib_posix_remove+:} false; then :
  1.3111    $as_echo_n "(cached) " >&6
  1.3112  else
  1.3113    ac_check_lib_save_LIBS=$LIBS
  1.3114 @@ -30043,7 +31002,7 @@
  1.3115  fi
  1.3116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  1.3117  $as_echo "$ac_cv_lib_posix_remove" >&6; }
  1.3118 -if test "x$ac_cv_lib_posix_remove" = x""yes; then :
  1.3119 +if test "x$ac_cv_lib_posix_remove" = xyes; then :
  1.3120    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  1.3121  fi
  1.3122  
  1.3123 @@ -30051,14 +31010,14 @@
  1.3124  
  1.3125      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  1.3126      ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  1.3127 -if test "x$ac_cv_func_shmat" = x""yes; then :
  1.3128 +if test "x$ac_cv_func_shmat" = xyes; then :
  1.3129  
  1.3130  fi
  1.3131  
  1.3132      if test $ac_cv_func_shmat = no; then
  1.3133        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  1.3134  $as_echo_n "checking for shmat in -lipc... " >&6; }
  1.3135 -if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
  1.3136 +if ${ac_cv_lib_ipc_shmat+:} false; then :
  1.3137    $as_echo_n "(cached) " >&6
  1.3138  else
  1.3139    ac_check_lib_save_LIBS=$LIBS
  1.3140 @@ -30092,7 +31051,7 @@
  1.3141  fi
  1.3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  1.3143  $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  1.3144 -if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
  1.3145 +if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  1.3146    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  1.3147  fi
  1.3148  
  1.3149 @@ -30110,7 +31069,7 @@
  1.3150    # John Interrante, Karl Berry
  1.3151    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  1.3152  $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  1.3153 -if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
  1.3154 +if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  1.3155    $as_echo_n "(cached) " >&6
  1.3156  else
  1.3157    ac_check_lib_save_LIBS=$LIBS
  1.3158 @@ -30144,7 +31103,7 @@
  1.3159  fi
  1.3160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  1.3161  $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  1.3162 -if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
  1.3163 +if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  1.3164    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  1.3165  fi
  1.3166  
  1.3167 @@ -31157,7 +32116,7 @@
  1.3168              LDFLAGS="$FREETYPE2_LIBS"
  1.3169              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
  1.3170  $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
  1.3171 -if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
  1.3172 +if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
  1.3173    $as_echo_n "(cached) " >&6
  1.3174  else
  1.3175    ac_check_lib_save_LIBS=$LIBS
  1.3176 @@ -31191,7 +32150,7 @@
  1.3177  fi
  1.3178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
  1.3179  $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
  1.3180 -if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
  1.3181 +if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
  1.3182    FREETYPE2_FOUND=true
  1.3183  else
  1.3184    as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
  1.3185 @@ -31479,7 +32438,7 @@
  1.3186  	    for ac_header in alsa/asoundlib.h
  1.3187  do :
  1.3188    ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  1.3189 -if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
  1.3190 +if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
  1.3191    cat >>confdefs.h <<_ACEOF
  1.3192  #define HAVE_ALSA_ASOUNDLIB_H 1
  1.3193  _ACEOF
  1.3194 @@ -31538,7 +32497,7 @@
  1.3195  USE_EXTERNAL_LIBJPEG=true
  1.3196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
  1.3197  $as_echo_n "checking for main in -ljpeg... " >&6; }
  1.3198 -if test "${ac_cv_lib_jpeg_main+set}" = set; then :
  1.3199 +if ${ac_cv_lib_jpeg_main+:} false; then :
  1.3200    $as_echo_n "(cached) " >&6
  1.3201  else
  1.3202    ac_check_lib_save_LIBS=$LIBS
  1.3203 @@ -31566,7 +32525,7 @@
  1.3204  fi
  1.3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
  1.3206  $as_echo "$ac_cv_lib_jpeg_main" >&6; }
  1.3207 -if test "x$ac_cv_lib_jpeg_main" = x""yes; then :
  1.3208 +if test "x$ac_cv_lib_jpeg_main" = xyes; then :
  1.3209    cat >>confdefs.h <<_ACEOF
  1.3210  #define HAVE_LIBJPEG 1
  1.3211  _ACEOF
  1.3212 @@ -31615,7 +32574,7 @@
  1.3213      USE_EXTERNAL_LIBGIF=false
  1.3214  elif test "x${with_giflib}" = "xsystem"; then
  1.3215      ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
  1.3216 -if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
  1.3217 +if test "x$ac_cv_header_gif_lib_h" = xyes; then :
  1.3218  
  1.3219  else
  1.3220     as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5
  1.3221 @@ -31624,7 +32583,7 @@
  1.3222  
  1.3223      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5
  1.3224  $as_echo_n "checking for DGifGetCode in -lgif... " >&6; }
  1.3225 -if test "${ac_cv_lib_gif_DGifGetCode+set}" = set; then :
  1.3226 +if ${ac_cv_lib_gif_DGifGetCode+:} false; then :
  1.3227    $as_echo_n "(cached) " >&6
  1.3228  else
  1.3229    ac_check_lib_save_LIBS=$LIBS
  1.3230 @@ -31658,7 +32617,7 @@
  1.3231  fi
  1.3232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
  1.3233  $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
  1.3234 -if test "x$ac_cv_lib_gif_DGifGetCode" = x""yes; then :
  1.3235 +if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
  1.3236    cat >>confdefs.h <<_ACEOF
  1.3237  #define HAVE_LIBGIF 1
  1.3238  _ACEOF
  1.3239 @@ -31690,7 +32649,7 @@
  1.3240  
  1.3241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
  1.3242  $as_echo_n "checking for compress in -lz... " >&6; }
  1.3243 -if test "${ac_cv_lib_z_compress+set}" = set; then :
  1.3244 +if ${ac_cv_lib_z_compress+:} false; then :
  1.3245    $as_echo_n "(cached) " >&6
  1.3246  else
  1.3247    ac_check_lib_save_LIBS=$LIBS
  1.3248 @@ -31724,7 +32683,7 @@
  1.3249  fi
  1.3250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
  1.3251  $as_echo "$ac_cv_lib_z_compress" >&6; }
  1.3252 -if test "x$ac_cv_lib_z_compress" = x""yes; then :
  1.3253 +if test "x$ac_cv_lib_z_compress" = xyes; then :
  1.3254     ZLIB_FOUND=yes
  1.3255  else
  1.3256     ZLIB_FOUND=no
  1.3257 @@ -31817,7 +32776,7 @@
  1.3258  
  1.3259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  1.3260  $as_echo_n "checking for cos in -lm... " >&6; }
  1.3261 -if test "${ac_cv_lib_m_cos+set}" = set; then :
  1.3262 +if ${ac_cv_lib_m_cos+:} false; then :
  1.3263    $as_echo_n "(cached) " >&6
  1.3264  else
  1.3265    ac_check_lib_save_LIBS=$LIBS
  1.3266 @@ -31851,7 +32810,7 @@
  1.3267  fi
  1.3268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  1.3269  $as_echo "$ac_cv_lib_m_cos" >&6; }
  1.3270 -if test "x$ac_cv_lib_m_cos" = x""yes; then :
  1.3271 +if test "x$ac_cv_lib_m_cos" = xyes; then :
  1.3272    cat >>confdefs.h <<_ACEOF
  1.3273  #define HAVE_LIBM 1
  1.3274  _ACEOF
  1.3275 @@ -31875,7 +32834,7 @@
  1.3276  LIBS=""
  1.3277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  1.3278  $as_echo_n "checking for dlopen in -ldl... " >&6; }
  1.3279 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  1.3280 +if ${ac_cv_lib_dl_dlopen+:} false; then :
  1.3281    $as_echo_n "(cached) " >&6
  1.3282  else
  1.3283    ac_check_lib_save_LIBS=$LIBS
  1.3284 @@ -31909,7 +32868,7 @@
  1.3285  fi
  1.3286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  1.3287  $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  1.3288 -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  1.3289 +if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  1.3290    cat >>confdefs.h <<_ACEOF
  1.3291  #define HAVE_LIBDL 1
  1.3292  _ACEOF
  1.3293 @@ -32139,7 +33098,7 @@
  1.3294  See the pkg-config man page for more details.
  1.3295  
  1.3296  To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  1.3297 -See \`config.log' for more details" "$LINENO" 5 ; }
  1.3298 +See \`config.log' for more details" "$LINENO" 5; }
  1.3299  else
  1.3300  	LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
  1.3301  	LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
  1.3302 @@ -32155,7 +33114,7 @@
  1.3303  set dummy llvm-config; ac_word=$2
  1.3304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3305  $as_echo_n "checking for $ac_word... " >&6; }
  1.3306 -if test "${ac_cv_prog_LLVM_CONFIG+set}" = set; then :
  1.3307 +if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
  1.3308    $as_echo_n "(cached) " >&6
  1.3309  else
  1.3310    if test -n "$LLVM_CONFIG"; then
  1.3311 @@ -32773,7 +33732,7 @@
  1.3312  set dummy ccache; ac_word=$2
  1.3313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1.3314  $as_echo_n "checking for $ac_word... " >&6; }
  1.3315 -if test "${ac_cv_path_CCACHE+set}" = set; then :
  1.3316 +if ${ac_cv_path_CCACHE+:} false; then :
  1.3317    $as_echo_n "(cached) " >&6
  1.3318  else
  1.3319    case $CCACHE in
  1.3320 @@ -33034,10 +33993,21 @@
  1.3321       :end' >>confcache
  1.3322  if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  1.3323    if test -w "$cache_file"; then
  1.3324 -    test "x$cache_file" != "x/dev/null" &&
  1.3325 +    if test "x$cache_file" != "x/dev/null"; then
  1.3326        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  1.3327  $as_echo "$as_me: updating cache $cache_file" >&6;}
  1.3328 -    cat confcache >$cache_file
  1.3329 +      if test ! -f "$cache_file" || test -h "$cache_file"; then
  1.3330 +	cat confcache >"$cache_file"
  1.3331 +      else
  1.3332 +        case $cache_file in #(
  1.3333 +        */* | ?:*)
  1.3334 +	  mv -f confcache "$cache_file"$$ &&
  1.3335 +	  mv -f "$cache_file"$$ "$cache_file" ;; #(
  1.3336 +        *)
  1.3337 +	  mv -f confcache "$cache_file" ;;
  1.3338 +	esac
  1.3339 +      fi
  1.3340 +    fi
  1.3341    else
  1.3342      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  1.3343  $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  1.3344 @@ -33069,7 +34039,7 @@
  1.3345  
  1.3346  
  1.3347  
  1.3348 -: ${CONFIG_STATUS=./config.status}
  1.3349 +: "${CONFIG_STATUS=./config.status}"
  1.3350  ac_write_fail=0
  1.3351  ac_clean_files_save=$ac_clean_files
  1.3352  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  1.3353 @@ -33170,6 +34140,7 @@
  1.3354  IFS=" ""	$as_nl"
  1.3355  
  1.3356  # Find who we are.  Look in the path if we contain no directory separator.
  1.3357 +as_myself=
  1.3358  case $0 in #((
  1.3359    *[\\/]* ) as_myself=$0 ;;
  1.3360    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.3361 @@ -33477,7 +34448,7 @@
  1.3362  # values after options handling.
  1.3363  ac_log="
  1.3364  This file was extended by OpenJDK $as_me jdk8, which was
  1.3365 -generated by GNU Autoconf 2.67.  Invocation command line was
  1.3366 +generated by GNU Autoconf 2.68.  Invocation command line was
  1.3367  
  1.3368    CONFIG_FILES    = $CONFIG_FILES
  1.3369    CONFIG_HEADERS  = $CONFIG_HEADERS
  1.3370 @@ -33540,7 +34511,7 @@
  1.3371  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  1.3372  ac_cs_version="\\
  1.3373  OpenJDK config.status jdk8
  1.3374 -configured by $0, generated by GNU Autoconf 2.67,
  1.3375 +configured by $0, generated by GNU Autoconf 2.68,
  1.3376    with options \\"\$ac_cs_config\\"
  1.3377  
  1.3378  Copyright (C) 2010 Free Software Foundation, Inc.
  1.3379 @@ -33669,7 +34640,7 @@
  1.3380      "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
  1.3381      "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
  1.3382  
  1.3383 -  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  1.3384 +  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  1.3385    esac
  1.3386  done
  1.3387  
  1.3388 @@ -33691,9 +34662,10 @@
  1.3389  # after its creation but before its name has been assigned to `$tmp'.
  1.3390  $debug ||
  1.3391  {
  1.3392 -  tmp=
  1.3393 +  tmp= ac_tmp=
  1.3394    trap 'exit_status=$?
  1.3395 -  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  1.3396 +  : "${ac_tmp:=$tmp}"
  1.3397 +  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  1.3398  ' 0
  1.3399    trap 'as_fn_exit 1' 1 2 13 15
  1.3400  }
  1.3401 @@ -33701,12 +34673,13 @@
  1.3402  
  1.3403  {
  1.3404    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  1.3405 -  test -n "$tmp" && test -d "$tmp"
  1.3406 +  test -d "$tmp"
  1.3407  }  ||
  1.3408  {
  1.3409    tmp=./conf$$-$RANDOM
  1.3410    (umask 077 && mkdir "$tmp")
  1.3411  } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  1.3412 +ac_tmp=$tmp
  1.3413  
  1.3414  # Set up the scripts for CONFIG_FILES section.
  1.3415  # No need to generate them if there are no CONFIG_FILES.
  1.3416 @@ -33728,7 +34701,7 @@
  1.3417    ac_cs_awk_cr=$ac_cr
  1.3418  fi
  1.3419  
  1.3420 -echo 'BEGIN {' >"$tmp/subs1.awk" &&
  1.3421 +echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  1.3422  _ACEOF
  1.3423  
  1.3424  
  1.3425 @@ -33756,7 +34729,7 @@
  1.3426  rm -f conf$$subs.sh
  1.3427  
  1.3428  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  1.3429 -cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  1.3430 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  1.3431  _ACEOF
  1.3432  sed -n '
  1.3433  h
  1.3434 @@ -33804,7 +34777,7 @@
  1.3435  rm -f conf$$subs.awk
  1.3436  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  1.3437  _ACAWK
  1.3438 -cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  1.3439 +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  1.3440    for (key in S) S_is_set[key] = 1
  1.3441    FS = ""
  1.3442  
  1.3443 @@ -33836,7 +34809,7 @@
  1.3444    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  1.3445  else
  1.3446    cat
  1.3447 -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  1.3448 +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  1.3449    || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  1.3450  _ACEOF
  1.3451  
  1.3452 @@ -33870,7 +34843,7 @@
  1.3453  # No need to generate them if there are no CONFIG_HEADERS.
  1.3454  # This happens for instance with `./config.status Makefile'.
  1.3455  if test -n "$CONFIG_HEADERS"; then
  1.3456 -cat >"$tmp/defines.awk" <<\_ACAWK ||
  1.3457 +cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  1.3458  BEGIN {
  1.3459  _ACEOF
  1.3460  
  1.3461 @@ -33882,8 +34855,8 @@
  1.3462  # handling of long lines.
  1.3463  ac_delim='%!_!# '
  1.3464  for ac_last_try in false false :; do
  1.3465 -  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  1.3466 -  if test -z "$ac_t"; then
  1.3467 +  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  1.3468 +  if test -z "$ac_tt"; then
  1.3469      break
  1.3470    elif $ac_last_try; then
  1.3471      as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  1.3472 @@ -33984,7 +34957,7 @@
  1.3473    esac
  1.3474    case $ac_mode$ac_tag in
  1.3475    :[FHL]*:*);;
  1.3476 -  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  1.3477 +  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  1.3478    :[FH]-) ac_tag=-:-;;
  1.3479    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  1.3480    esac
  1.3481 @@ -34003,7 +34976,7 @@
  1.3482      for ac_f
  1.3483      do
  1.3484        case $ac_f in
  1.3485 -      -) ac_f="$tmp/stdin";;
  1.3486 +      -) ac_f="$ac_tmp/stdin";;
  1.3487        *) # Look for the file first in the build tree, then in the source tree
  1.3488  	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
  1.3489  	 # because $ac_f cannot contain `:'.
  1.3490 @@ -34012,7 +34985,7 @@
  1.3491  	   [\\/$]*) false;;
  1.3492  	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  1.3493  	   esac ||
  1.3494 -	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  1.3495 +	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  1.3496        esac
  1.3497        case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  1.3498        as_fn_append ac_file_inputs " '$ac_f'"
  1.3499 @@ -34038,8 +35011,8 @@
  1.3500      esac
  1.3501  
  1.3502      case $ac_tag in
  1.3503 -    *:-:* | *:-) cat >"$tmp/stdin" \
  1.3504 -      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
  1.3505 +    *:-:* | *:-) cat >"$ac_tmp/stdin" \
  1.3506 +      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  1.3507      esac
  1.3508      ;;
  1.3509    esac
  1.3510 @@ -34164,21 +35137,22 @@
  1.3511  s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  1.3512  $ac_datarootdir_hack
  1.3513  "
  1.3514 -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  1.3515 -  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  1.3516 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  1.3517 +  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  1.3518  
  1.3519  test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  1.3520 -  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  1.3521 -  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  1.3522 +  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  1.3523 +  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
  1.3524 +      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  1.3525    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  1.3526  which seems to be undefined.  Please make sure it is defined" >&5
  1.3527  $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  1.3528  which seems to be undefined.  Please make sure it is defined" >&2;}
  1.3529  
  1.3530 -  rm -f "$tmp/stdin"
  1.3531 +  rm -f "$ac_tmp/stdin"
  1.3532    case $ac_file in
  1.3533 -  -) cat "$tmp/out" && rm -f "$tmp/out";;
  1.3534 -  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  1.3535 +  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  1.3536 +  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  1.3537    esac \
  1.3538    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  1.3539   ;;
  1.3540 @@ -34189,20 +35163,20 @@
  1.3541    if test x"$ac_file" != x-; then
  1.3542      {
  1.3543        $as_echo "/* $configure_input  */" \
  1.3544 -      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  1.3545 -    } >"$tmp/config.h" \
  1.3546 +      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  1.3547 +    } >"$ac_tmp/config.h" \
  1.3548        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  1.3549 -    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  1.3550 +    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  1.3551        { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  1.3552  $as_echo "$as_me: $ac_file is unchanged" >&6;}
  1.3553      else
  1.3554        rm -f "$ac_file"
  1.3555 -      mv "$tmp/config.h" "$ac_file" \
  1.3556 +      mv "$ac_tmp/config.h" "$ac_file" \
  1.3557  	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
  1.3558      fi
  1.3559    else
  1.3560      $as_echo "/* $configure_input  */" \
  1.3561 -      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  1.3562 +      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  1.3563        || as_fn_error $? "could not create -" "$LINENO" 5
  1.3564    fi
  1.3565   ;;
     2.1 --- a/common/autoconf/platform.m4	Tue Apr 23 09:26:43 2013 -0700
     2.2 +++ b/common/autoconf/platform.m4	Mon Apr 29 12:34:30 2013 -0400
     2.3 @@ -342,6 +342,7 @@
     2.4        *)
     2.5          ZERO_ARCHFLAG="-m${OPENJDK_TARGET_CPU_BITS}"
     2.6      esac
     2.7 +    PLATFORM_COMPILER_CHECK_ARGUMENTS([$ZERO_ARCHFLAG], [], [ZERO_ARCHFLAG=""])
     2.8      AC_SUBST(ZERO_ARCHFLAG)
     2.9  
    2.10      # ZERO_ARCHDEF is used to enable architecture-specific code
    2.11 @@ -417,6 +418,51 @@
    2.12  AC_SUBST(OS_VERSION_MICRO)
    2.13  ])
    2.14  
    2.15 +# PLATFORM_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
    2.16 +#                                   [RUN-IF-FALSE])
    2.17 +# ------------------------------------------------------------
    2.18 +# Check that the c and c++ compilers support an argument
    2.19 +AC_DEFUN([PLATFORM_COMPILER_CHECK_ARGUMENTS],
    2.20 +[
    2.21 +  AC_MSG_CHECKING([if compiler supports "$1"])
    2.22 +  supports=yes
    2.23 +
    2.24 +  saved_cflags="$CFLAGS"
    2.25 +  CFLAGS="$CFLAGS $1"
    2.26 +  AC_LANG_PUSH([C])
    2.27 +  AC_COMPILE_IFELSE([
    2.28 +    AC_LANG_SOURCE([[int i;]])
    2.29 +  ], [], [supports=no])
    2.30 +  AC_LANG_POP([C])
    2.31 +  CFLAGS="$saved_cflags"
    2.32 +
    2.33 +  saved_cxxflags="$CXXFLAGS"
    2.34 +  CXXFLAGS="$CXXFLAG $1"
    2.35 +  AC_LANG_PUSH([C++])
    2.36 +  AC_COMPILE_IFELSE([
    2.37 +    AC_LANG_SOURCE([[int i;]])
    2.38 +  ], [], [supports=no])
    2.39 +  AC_LANG_POP([C++])
    2.40 +  CXXFLAGS="$saved_cxxflags"
    2.41 +
    2.42 +  AC_MSG_RESULT([$supports])
    2.43 +  if test "x$supports" = "xyes" ; then
    2.44 +    m4_ifval([$2], [$2], [:])
    2.45 +  else
    2.46 +    m4_ifval([$3], [$3], [:])
    2.47 +  fi
    2.48 +])
    2.49 +
    2.50 +# Check that the compiler supports -mX flags
    2.51 +# Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does
    2.52 +AC_DEFUN([PLATFORM_CHECK_COMPILER_TARGET_BITS_FLAGS],
    2.53 +[
    2.54 +  PLATFORM_COMPILER_CHECK_ARGUMENTS([-m${OPENJDK_TARGET_CPU_BITS}],
    2.55 +    [COMPILER_SUPPORTS_TARGET_BITS_FLAG=true],
    2.56 +    [COMPILER_SUPPORTS_TARGET_BITS_FLAG=false])
    2.57 +  AC_SUBST(COMPILER_SUPPORTS_TARGET_BITS_FLAG)
    2.58 +])
    2.59 +
    2.60  # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
    2.61  # Add -mX to various FLAGS variables.
    2.62  AC_DEFUN([PLATFORM_SET_COMPILER_TARGET_BITS_FLAGS],
    2.63 @@ -444,6 +490,9 @@
    2.64  # (The JVM can use 32 or 64 bit Java pointers but that decision
    2.65  # is made at runtime.)
    2.66  #
    2.67 +
    2.68 +PLATFORM_CHECK_COMPILER_TARGET_BITS_FLAGS
    2.69 +
    2.70  if test "x$OPENJDK_TARGET_OS" = xsolaris; then
    2.71    # Always specify -m flags on Solaris
    2.72    PLATFORM_SET_COMPILER_TARGET_BITS_FLAGS
     3.1 --- a/common/autoconf/spec.gmk.in	Tue Apr 23 09:26:43 2013 -0700
     3.2 +++ b/common/autoconf/spec.gmk.in	Mon Apr 29 12:34:30 2013 -0400
     3.3 @@ -301,6 +301,8 @@
     3.4  # CL is cl.exe only.
     3.5  COMPILER_TYPE:=@COMPILER_TYPE@
     3.6  
     3.7 +COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
     3.8 +
     3.9  CC_OUT_OPTION:=@CC_OUT_OPTION@
    3.10  EXE_OUT_OPTION:=@EXE_OUT_OPTION@
    3.11  LD_OUT_OPTION:=@LD_OUT_OPTION@

mercurial