common/autoconf/generated-configure.sh
changeset 22722 03797b5d2ba3
parent 22721 63761da45392
child 22724 072f729936a9
equal deleted inserted replaced
22721:63761da45392 22722:03797b5d2ba3
       
     1 #!/bin/bash
       
     2 #
       
     3 # ##########################################################
       
     4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
       
     5 # ##########################################################
       
     6 #
     1 #! /bin/sh
     7 #! /bin/sh
     2 # Guess values for system-dependent variables and create Makefiles.
     8 # Guess values for system-dependent variables and create Makefiles.
     3 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8.
     9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8.
     4 #
    10 #
     5 # Report bugs to <build-dev@openjdk.java.net>.
    11 # Report bugs to <build-dev@openjdk.java.net>.
   875 BUILD_LOG_WRAPPER
   881 BUILD_LOG_WRAPPER
   876 BUILD_LOG_PREVIOUS
   882 BUILD_LOG_PREVIOUS
   877 BUILD_LOG
   883 BUILD_LOG
   878 SYS_ROOT
   884 SYS_ROOT
   879 PATH_SEP
   885 PATH_SEP
   880 SRC_ROOT
   886 TOPDIR
   881 ZERO_ARCHDEF
   887 ZERO_ARCHDEF
   882 DEFINE_CROSS_COMPILE_ARCH
   888 DEFINE_CROSS_COMPILE_ARCH
   883 LP64
   889 LP64
   884 OPENJDK_TARGET_OS_EXPORT_DIR
   890 OPENJDK_TARGET_OS_EXPORT_DIR
   885 OPENJDK_TARGET_OS_API_DIR
   891 OPENJDK_TARGET_OS_API_DIR
  3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3155 
  3161 
  3156 
  3162 
  3157 
  3163 
  3158 ac_aux_dir=
  3164 ac_aux_dir=
  3159 for ac_dir in build-aux "$srcdir"/build-aux; do
  3165 for ac_dir in common/autoconf/build-aux "$srcdir"/common/autoconf/build-aux; do
  3160   if test -f "$ac_dir/install-sh"; then
  3166   if test -f "$ac_dir/install-sh"; then
  3161     ac_aux_dir=$ac_dir
  3167     ac_aux_dir=$ac_dir
  3162     ac_install_sh="$ac_aux_dir/install-sh -c"
  3168     ac_install_sh="$ac_aux_dir/install-sh -c"
  3163     break
  3169     break
  3164   elif test -f "$ac_dir/install.sh"; then
  3170   elif test -f "$ac_dir/install.sh"; then
  3170     ac_install_sh="$ac_aux_dir/shtool install -c"
  3176     ac_install_sh="$ac_aux_dir/shtool install -c"
  3171     break
  3177     break
  3172   fi
  3178   fi
  3173 done
  3179 done
  3174 if test -z "$ac_aux_dir"; then
  3180 if test -z "$ac_aux_dir"; then
  3175   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  3181   as_fn_error $? "cannot find install-sh, install.sh, or shtool in common/autoconf/build-aux \"$srcdir\"/common/autoconf/build-aux" "$LINENO" 5
  3176 fi
  3182 fi
  3177 
  3183 
  3178 # These three variables are undocumented and unsupported,
  3184 # These three variables are undocumented and unsupported,
  3179 # and are intended to be withdrawn in a future Autoconf release.
  3185 # and are intended to be withdrawn in a future Autoconf release.
  3180 # They can cause serious problems if a builder's source tree is in a directory
  3186 # They can cause serious problems if a builder's source tree is in a directory
  3272 # PKG_CHECK_MODULES
  3278 # PKG_CHECK_MODULES
  3273 
  3279 
  3274 
  3280 
  3275 # Include these first...
  3281 # Include these first...
  3276 #
  3282 #
  3277 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
  3283 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
  3278 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  3284 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  3279 #
  3285 #
  3280 # This code is free software; you can redistribute it and/or modify it
  3286 # This code is free software; you can redistribute it and/or modify it
  3281 # under the terms of the GNU General Public License version 2 only, as
  3287 # under the terms of the GNU General Public License version 2 only, as
  3282 # published by the Free Software Foundation.  Oracle designates this
  3288 # published by the Free Software Foundation.  Oracle designates this
  4212 # definitions. It is replaced with custom functionality when building
  4218 # definitions. It is replaced with custom functionality when building
  4213 # custom sources.
  4219 # custom sources.
  4214 #CUSTOM_AUTOCONF_INCLUDE
  4220 #CUSTOM_AUTOCONF_INCLUDE
  4215 
  4221 
  4216 # Do not change or remove the following line, it is needed for consistency checks:
  4222 # Do not change or remove the following line, it is needed for consistency checks:
  4217 DATE_WHEN_GENERATED=1393240361
  4223 DATE_WHEN_GENERATED=1393244882
  4218 
  4224 
  4219 ###############################################################################
  4225 ###############################################################################
  4220 #
  4226 #
  4221 # Initialization / Boot-strapping
  4227 # Initialization / Boot-strapping
  4222 #
  4228 #
 13861 
 13867 
 13862 
 13868 
 13863 
 13869 
 13864 # Continue setting up basic stuff. Most remaining code require fundamental tools.
 13870 # Continue setting up basic stuff. Most remaining code require fundamental tools.
 13865 
 13871 
       
 13872   # We get the top-level directory from the supporting wrappers.
       
 13873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
       
 13874 $as_echo_n "checking for top-level directory... " >&6; }
       
 13875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
       
 13876 $as_echo "$TOPDIR" >&6; }
       
 13877 
       
 13878   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 13879 
       
 13880   # Input might be given as Windows format, start by converting to
       
 13881   # unix format.
       
 13882   path="$TOPDIR"
       
 13883   new_path=`$CYGPATH -u "$path"`
       
 13884 
       
 13885   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
       
 13886   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
       
 13887   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
       
 13888   # "foo.exe" is OK but "foo" is an error.
       
 13889   #
       
 13890   # This test is therefore slightly more accurate than "test -f" to check for file precense.
       
 13891   # It is also a way to make sure we got the proper file name for the real test later on.
       
 13892   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
       
 13893   if test "x$test_shortpath" = x; then
       
 13894     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
       
 13895 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
       
 13896     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
       
 13897   fi
       
 13898 
       
 13899   # Call helper function which possibly converts this using DOS-style short mode.
       
 13900   # If so, the updated path is stored in $new_path.
       
 13901 
       
 13902   input_path="$new_path"
       
 13903   # Check if we need to convert this using DOS-style short mode. If the path
       
 13904   # contains just simple characters, use it. Otherwise (spaces, weird characters),
       
 13905   # take no chances and rewrite it.
       
 13906   # Note: m4 eats our [], so we need to use [ and ] instead.
       
 13907   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
       
 13908   if test "x$has_forbidden_chars" != x; then
       
 13909     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
       
 13910     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
       
 13911     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
       
 13912     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
       
 13913       # Going to short mode and back again did indeed matter. Since short mode is
       
 13914       # case insensitive, let's make it lowercase to improve readability.
       
 13915       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
       
 13916       # Now convert it back to Unix-stile (cygpath)
       
 13917       input_path=`$CYGPATH -u "$shortmode_path"`
       
 13918       new_path="$input_path"
       
 13919     fi
       
 13920   fi
       
 13921 
       
 13922   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
       
 13923   if test "x$test_cygdrive_prefix" = x; then
       
 13924     # As a simple fix, exclude /usr/bin since it's not a real path.
       
 13925     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
       
 13926       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
       
 13927       # a path prefixed by /cygdrive for fixpath to work.
       
 13928       new_path="$CYGWIN_ROOT_PATH$input_path"
       
 13929     fi
       
 13930   fi
       
 13931 
       
 13932 
       
 13933   if test "x$path" != "x$new_path"; then
       
 13934     TOPDIR="$new_path"
       
 13935     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
       
 13936 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
       
 13937   fi
       
 13938 
       
 13939   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 13940 
       
 13941   path="$TOPDIR"
       
 13942   has_colon=`$ECHO $path | $GREP ^.:`
       
 13943   new_path="$path"
       
 13944   if test "x$has_colon" = x; then
       
 13945     # Not in mixed or Windows style, start by that.
       
 13946     new_path=`cmd //c echo $path`
       
 13947   fi
       
 13948 
       
 13949 
       
 13950   input_path="$new_path"
       
 13951   # Check if we need to convert this using DOS-style short mode. If the path
       
 13952   # contains just simple characters, use it. Otherwise (spaces, weird characters),
       
 13953   # take no chances and rewrite it.
       
 13954   # Note: m4 eats our [], so we need to use [ and ] instead.
       
 13955   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
       
 13956   if test "x$has_forbidden_chars" != x; then
       
 13957     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
       
 13958     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
       
 13959   fi
       
 13960 
       
 13961 
       
 13962   windows_path="$new_path"
       
 13963   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 13964     unix_path=`$CYGPATH -u "$windows_path"`
       
 13965     new_path="$unix_path"
       
 13966   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 13967     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
       
 13968     new_path="$unix_path"
       
 13969   fi
       
 13970 
       
 13971   if test "x$path" != "x$new_path"; then
       
 13972     TOPDIR="$new_path"
       
 13973     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
       
 13974 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
       
 13975   fi
       
 13976 
       
 13977   # Save the first 10 bytes of this path to the storage, so fixpath can work.
       
 13978   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
       
 13979 
       
 13980   else
       
 13981     # We're on a posix platform. Hooray! :)
       
 13982     path="$TOPDIR"
       
 13983     has_space=`$ECHO "$path" | $GREP " "`
       
 13984     if test "x$has_space" != x; then
       
 13985       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
       
 13986 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
       
 13987       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
       
 13988     fi
       
 13989 
       
 13990     # Use eval to expand a potential ~
       
 13991     eval path="$path"
       
 13992     if test ! -f "$path" && test ! -d "$path"; then
       
 13993       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
       
 13994     fi
       
 13995 
       
 13996     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
       
 13997   fi
       
 13998 
       
 13999 
       
 14000 
       
 14001   # SRC_ROOT is a traditional alias for TOPDIR.
       
 14002   SRC_ROOT=$TOPDIR
       
 14003 
 13866   # Locate the directory of this script.
 14004   # Locate the directory of this script.
 13867   SCRIPT="$0"
 14005   AUTOCONF_DIR=$TOPDIR/common/autoconf
 13868   AUTOCONF_DIR=`cd \`$DIRNAME $SCRIPT\`; $THEPWDCMD -L`
 14006 
 13869 
 14007   # Save the current directory this script was started from
 13870   # Where is the source? It is located two levels above the configure script.
       
 13871   CURDIR="$PWD"
 14008   CURDIR="$PWD"
 13872   cd "$AUTOCONF_DIR/../.."
 14009 
 13873   SRC_ROOT="`$THEPWDCMD -L`"
 14010   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 14011 
       
 14012   # Input might be given as Windows format, start by converting to
       
 14013   # unix format.
       
 14014   path="$CURDIR"
       
 14015   new_path=`$CYGPATH -u "$path"`
       
 14016 
       
 14017   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
       
 14018   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
       
 14019   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
       
 14020   # "foo.exe" is OK but "foo" is an error.
       
 14021   #
       
 14022   # This test is therefore slightly more accurate than "test -f" to check for file precense.
       
 14023   # It is also a way to make sure we got the proper file name for the real test later on.
       
 14024   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
       
 14025   if test "x$test_shortpath" = x; then
       
 14026     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
       
 14027 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
       
 14028     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
       
 14029   fi
       
 14030 
       
 14031   # Call helper function which possibly converts this using DOS-style short mode.
       
 14032   # If so, the updated path is stored in $new_path.
       
 14033 
       
 14034   input_path="$new_path"
       
 14035   # Check if we need to convert this using DOS-style short mode. If the path
       
 14036   # contains just simple characters, use it. Otherwise (spaces, weird characters),
       
 14037   # take no chances and rewrite it.
       
 14038   # Note: m4 eats our [], so we need to use [ and ] instead.
       
 14039   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
       
 14040   if test "x$has_forbidden_chars" != x; then
       
 14041     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
       
 14042     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
       
 14043     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
       
 14044     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
       
 14045       # Going to short mode and back again did indeed matter. Since short mode is
       
 14046       # case insensitive, let's make it lowercase to improve readability.
       
 14047       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
       
 14048       # Now convert it back to Unix-stile (cygpath)
       
 14049       input_path=`$CYGPATH -u "$shortmode_path"`
       
 14050       new_path="$input_path"
       
 14051     fi
       
 14052   fi
       
 14053 
       
 14054   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
       
 14055   if test "x$test_cygdrive_prefix" = x; then
       
 14056     # As a simple fix, exclude /usr/bin since it's not a real path.
       
 14057     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
       
 14058       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
       
 14059       # a path prefixed by /cygdrive for fixpath to work.
       
 14060       new_path="$CYGWIN_ROOT_PATH$input_path"
       
 14061     fi
       
 14062   fi
       
 14063 
       
 14064 
       
 14065   if test "x$path" != "x$new_path"; then
       
 14066     CURDIR="$new_path"
       
 14067     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
       
 14068 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
       
 14069   fi
       
 14070 
       
 14071   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 14072 
       
 14073   path="$CURDIR"
       
 14074   has_colon=`$ECHO $path | $GREP ^.:`
       
 14075   new_path="$path"
       
 14076   if test "x$has_colon" = x; then
       
 14077     # Not in mixed or Windows style, start by that.
       
 14078     new_path=`cmd //c echo $path`
       
 14079   fi
       
 14080 
       
 14081 
       
 14082   input_path="$new_path"
       
 14083   # Check if we need to convert this using DOS-style short mode. If the path
       
 14084   # contains just simple characters, use it. Otherwise (spaces, weird characters),
       
 14085   # take no chances and rewrite it.
       
 14086   # Note: m4 eats our [], so we need to use [ and ] instead.
       
 14087   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
       
 14088   if test "x$has_forbidden_chars" != x; then
       
 14089     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
       
 14090     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
       
 14091   fi
       
 14092 
       
 14093 
       
 14094   windows_path="$new_path"
       
 14095   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 14096     unix_path=`$CYGPATH -u "$windows_path"`
       
 14097     new_path="$unix_path"
       
 14098   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 14099     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
       
 14100     new_path="$unix_path"
       
 14101   fi
       
 14102 
       
 14103   if test "x$path" != "x$new_path"; then
       
 14104     CURDIR="$new_path"
       
 14105     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
       
 14106 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
       
 14107   fi
       
 14108 
       
 14109   # Save the first 10 bytes of this path to the storage, so fixpath can work.
       
 14110   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
       
 14111 
       
 14112   else
       
 14113     # We're on a posix platform. Hooray! :)
       
 14114     path="$CURDIR"
       
 14115     has_space=`$ECHO "$path" | $GREP " "`
       
 14116     if test "x$has_space" != x; then
       
 14117       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
       
 14118 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
       
 14119       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
       
 14120     fi
       
 14121 
       
 14122     # Use eval to expand a potential ~
       
 14123     eval path="$path"
       
 14124     if test ! -f "$path" && test ! -d "$path"; then
       
 14125       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
       
 14126     fi
       
 14127 
       
 14128     CURDIR="`cd "$path"; $THEPWDCMD -L`"
       
 14129   fi
       
 14130 
 13874 
 14131 
 13875   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
 14132   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
 13876     PATH_SEP=";"
 14133     PATH_SEP=";"
 13877 
 14134 
 13878   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
 14135   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
 13964 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
 14221 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
 13965   fi
 14222   fi
 13966 
 14223 
 13967   else
 14224   else
 13968     PATH_SEP=":"
 14225     PATH_SEP=":"
 13969   fi
       
 13970 
       
 13971 
       
 13972 
       
 13973   cd "$CURDIR"
       
 13974 
       
 13975 
       
 13976   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 13977 
       
 13978   # Input might be given as Windows format, start by converting to
       
 13979   # unix format.
       
 13980   path="$SRC_ROOT"
       
 13981   new_path=`$CYGPATH -u "$path"`
       
 13982 
       
 13983   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
       
 13984   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
       
 13985   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
       
 13986   # "foo.exe" is OK but "foo" is an error.
       
 13987   #
       
 13988   # This test is therefore slightly more accurate than "test -f" to check for file precense.
       
 13989   # It is also a way to make sure we got the proper file name for the real test later on.
       
 13990   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
       
 13991   if test "x$test_shortpath" = x; then
       
 13992     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
       
 13993 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
       
 13994     as_fn_error $? "Cannot locate the the path of SRC_ROOT" "$LINENO" 5
       
 13995   fi
       
 13996 
       
 13997   # Call helper function which possibly converts this using DOS-style short mode.
       
 13998   # If so, the updated path is stored in $new_path.
       
 13999 
       
 14000   input_path="$new_path"
       
 14001   # Check if we need to convert this using DOS-style short mode. If the path
       
 14002   # contains just simple characters, use it. Otherwise (spaces, weird characters),
       
 14003   # take no chances and rewrite it.
       
 14004   # Note: m4 eats our [], so we need to use [ and ] instead.
       
 14005   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
       
 14006   if test "x$has_forbidden_chars" != x; then
       
 14007     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
       
 14008     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
       
 14009     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
       
 14010     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
       
 14011       # Going to short mode and back again did indeed matter. Since short mode is
       
 14012       # case insensitive, let's make it lowercase to improve readability.
       
 14013       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
       
 14014       # Now convert it back to Unix-stile (cygpath)
       
 14015       input_path=`$CYGPATH -u "$shortmode_path"`
       
 14016       new_path="$input_path"
       
 14017     fi
       
 14018   fi
       
 14019 
       
 14020   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
       
 14021   if test "x$test_cygdrive_prefix" = x; then
       
 14022     # As a simple fix, exclude /usr/bin since it's not a real path.
       
 14023     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
       
 14024       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
       
 14025       # a path prefixed by /cygdrive for fixpath to work.
       
 14026       new_path="$CYGWIN_ROOT_PATH$input_path"
       
 14027     fi
       
 14028   fi
       
 14029 
       
 14030 
       
 14031   if test "x$path" != "x$new_path"; then
       
 14032     SRC_ROOT="$new_path"
       
 14033     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
       
 14034 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
       
 14035   fi
       
 14036 
       
 14037   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 14038 
       
 14039   path="$SRC_ROOT"
       
 14040   has_colon=`$ECHO $path | $GREP ^.:`
       
 14041   new_path="$path"
       
 14042   if test "x$has_colon" = x; then
       
 14043     # Not in mixed or Windows style, start by that.
       
 14044     new_path=`cmd //c echo $path`
       
 14045   fi
       
 14046 
       
 14047 
       
 14048   input_path="$new_path"
       
 14049   # Check if we need to convert this using DOS-style short mode. If the path
       
 14050   # contains just simple characters, use it. Otherwise (spaces, weird characters),
       
 14051   # take no chances and rewrite it.
       
 14052   # Note: m4 eats our [], so we need to use [ and ] instead.
       
 14053   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
       
 14054   if test "x$has_forbidden_chars" != x; then
       
 14055     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
       
 14056     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
       
 14057   fi
       
 14058 
       
 14059 
       
 14060   windows_path="$new_path"
       
 14061   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 14062     unix_path=`$CYGPATH -u "$windows_path"`
       
 14063     new_path="$unix_path"
       
 14064   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 14065     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
       
 14066     new_path="$unix_path"
       
 14067   fi
       
 14068 
       
 14069   if test "x$path" != "x$new_path"; then
       
 14070     SRC_ROOT="$new_path"
       
 14071     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
       
 14072 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
       
 14073   fi
       
 14074 
       
 14075   # Save the first 10 bytes of this path to the storage, so fixpath can work.
       
 14076   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
       
 14077 
       
 14078   else
       
 14079     # We're on a posix platform. Hooray! :)
       
 14080     path="$SRC_ROOT"
       
 14081     has_space=`$ECHO "$path" | $GREP " "`
       
 14082     if test "x$has_space" != x; then
       
 14083       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
       
 14084 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
       
 14085       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
       
 14086     fi
       
 14087 
       
 14088     # Use eval to expand a potential ~
       
 14089     eval path="$path"
       
 14090     if test ! -f "$path" && test ! -d "$path"; then
       
 14091       as_fn_error $? "The path of SRC_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
       
 14092     fi
       
 14093 
       
 14094     SRC_ROOT="`cd "$path"; $THEPWDCMD -L`"
       
 14095   fi
       
 14096 
       
 14097 
       
 14098   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 14099 
       
 14100   # Input might be given as Windows format, start by converting to
       
 14101   # unix format.
       
 14102   path="$CURDIR"
       
 14103   new_path=`$CYGPATH -u "$path"`
       
 14104 
       
 14105   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
       
 14106   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
       
 14107   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
       
 14108   # "foo.exe" is OK but "foo" is an error.
       
 14109   #
       
 14110   # This test is therefore slightly more accurate than "test -f" to check for file precense.
       
 14111   # It is also a way to make sure we got the proper file name for the real test later on.
       
 14112   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
       
 14113   if test "x$test_shortpath" = x; then
       
 14114     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
       
 14115 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
       
 14116     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
       
 14117   fi
       
 14118 
       
 14119   # Call helper function which possibly converts this using DOS-style short mode.
       
 14120   # If so, the updated path is stored in $new_path.
       
 14121 
       
 14122   input_path="$new_path"
       
 14123   # Check if we need to convert this using DOS-style short mode. If the path
       
 14124   # contains just simple characters, use it. Otherwise (spaces, weird characters),
       
 14125   # take no chances and rewrite it.
       
 14126   # Note: m4 eats our [], so we need to use [ and ] instead.
       
 14127   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
       
 14128   if test "x$has_forbidden_chars" != x; then
       
 14129     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
       
 14130     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
       
 14131     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
       
 14132     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
       
 14133       # Going to short mode and back again did indeed matter. Since short mode is
       
 14134       # case insensitive, let's make it lowercase to improve readability.
       
 14135       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
       
 14136       # Now convert it back to Unix-stile (cygpath)
       
 14137       input_path=`$CYGPATH -u "$shortmode_path"`
       
 14138       new_path="$input_path"
       
 14139     fi
       
 14140   fi
       
 14141 
       
 14142   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
       
 14143   if test "x$test_cygdrive_prefix" = x; then
       
 14144     # As a simple fix, exclude /usr/bin since it's not a real path.
       
 14145     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
       
 14146       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
       
 14147       # a path prefixed by /cygdrive for fixpath to work.
       
 14148       new_path="$CYGWIN_ROOT_PATH$input_path"
       
 14149     fi
       
 14150   fi
       
 14151 
       
 14152 
       
 14153   if test "x$path" != "x$new_path"; then
       
 14154     CURDIR="$new_path"
       
 14155     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
       
 14156 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
       
 14157   fi
       
 14158 
       
 14159   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 14160 
       
 14161   path="$CURDIR"
       
 14162   has_colon=`$ECHO $path | $GREP ^.:`
       
 14163   new_path="$path"
       
 14164   if test "x$has_colon" = x; then
       
 14165     # Not in mixed or Windows style, start by that.
       
 14166     new_path=`cmd //c echo $path`
       
 14167   fi
       
 14168 
       
 14169 
       
 14170   input_path="$new_path"
       
 14171   # Check if we need to convert this using DOS-style short mode. If the path
       
 14172   # contains just simple characters, use it. Otherwise (spaces, weird characters),
       
 14173   # take no chances and rewrite it.
       
 14174   # Note: m4 eats our [], so we need to use [ and ] instead.
       
 14175   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
       
 14176   if test "x$has_forbidden_chars" != x; then
       
 14177     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
       
 14178     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
       
 14179   fi
       
 14180 
       
 14181 
       
 14182   windows_path="$new_path"
       
 14183   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 14184     unix_path=`$CYGPATH -u "$windows_path"`
       
 14185     new_path="$unix_path"
       
 14186   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 14187     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
       
 14188     new_path="$unix_path"
       
 14189   fi
       
 14190 
       
 14191   if test "x$path" != "x$new_path"; then
       
 14192     CURDIR="$new_path"
       
 14193     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
       
 14194 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
       
 14195   fi
       
 14196 
       
 14197   # Save the first 10 bytes of this path to the storage, so fixpath can work.
       
 14198   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
       
 14199 
       
 14200   else
       
 14201     # We're on a posix platform. Hooray! :)
       
 14202     path="$CURDIR"
       
 14203     has_space=`$ECHO "$path" | $GREP " "`
       
 14204     if test "x$has_space" != x; then
       
 14205       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
       
 14206 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
       
 14207       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
       
 14208     fi
       
 14209 
       
 14210     # Use eval to expand a potential ~
       
 14211     eval path="$path"
       
 14212     if test ! -f "$path" && test ! -d "$path"; then
       
 14213       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
       
 14214     fi
       
 14215 
       
 14216     CURDIR="`cd "$path"; $THEPWDCMD -L`"
       
 14217   fi
 14226   fi
 14218 
 14227 
 14219 
 14228 
 14220   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
 14229   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
 14221     # Add extra search paths on solaris for utilities like ar and as etc...
 14230     # Add extra search paths on solaris for utilities like ar and as etc...
 14763   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
 14772   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
 14764 fi
 14773 fi
 14765 
 14774 
 14766 
 14775 
 14767   # Test from where we are running configure, in or outside of src root.
 14776   # Test from where we are running configure, in or outside of src root.
       
 14777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
       
 14778 $as_echo_n "checking where to store configuration... " >&6; }
 14768   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
 14779   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
 14769       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
 14780       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
 14770       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
 14781       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
 14771     # We are running configure from the src root.
 14782     # We are running configure from the src root.
 14772     # Create a default ./build/target-variant-debuglevel output root.
 14783     # Create a default ./build/target-variant-debuglevel output root.
 14773     if test "x${CONF_NAME}" = x; then
 14784     if test "x${CONF_NAME}" = x; then
       
 14785       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
       
 14786 $as_echo "in default location" >&6; }
 14774       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
 14787       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
       
 14788     else
       
 14789       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
       
 14790 $as_echo "in build directory with custom name" >&6; }
 14775     fi
 14791     fi
 14776     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
 14792     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
 14777     $MKDIR -p "$OUTPUT_ROOT"
 14793     $MKDIR -p "$OUTPUT_ROOT"
 14778     if test ! -d "$OUTPUT_ROOT"; then
 14794     if test ! -d "$OUTPUT_ROOT"; then
 14779       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
 14795       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
 14785     # directory name as configuration name, otherwise use the complete path.
 14801     # directory name as configuration name, otherwise use the complete path.
 14786     if test "x${CONF_NAME}" = x; then
 14802     if test "x${CONF_NAME}" = x; then
 14787       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
 14803       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
 14788     fi
 14804     fi
 14789     OUTPUT_ROOT="$CURDIR"
 14805     OUTPUT_ROOT="$CURDIR"
       
 14806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
       
 14807 $as_echo "in current directory" >&6; }
 14790 
 14808 
 14791     # WARNING: This might be a bad thing to do. You need to be sure you want to
 14809     # WARNING: This might be a bad thing to do. You need to be sure you want to
 14792     # have a configuration in this directory. Do some sanity checks!
 14810     # have a configuration in this directory. Do some sanity checks!
 14793 
 14811 
 14794     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
 14812     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then