< prev index next >

make/autoconf/generated-configure.sh

Print this page




 870 IMPORT_MODULES_CONF
 871 IMPORT_MODULES_LIBS
 872 IMPORT_MODULES_CMDS
 873 IMPORT_MODULES_CLASSES
 874 EXTERNAL_BUILDJDK
 875 BUILD_JDK
 876 CREATE_BUILDJDK
 877 JLINK
 878 JMOD
 879 JAVAC_FLAGS
 880 BOOT_JDK_SOURCETARGET
 881 JARSIGNER
 882 JAR
 883 JAVADOC
 884 JAVAH
 885 JAVAC
 886 JAVA
 887 BOOT_JDK
 888 JAVA_CHECK
 889 JAVAC_CHECK


 890 VERSION_IS_GA
 891 VERSION_SHORT
 892 VERSION_STRING
 893 VERSION_NUMBER_FOUR_POSITIONS
 894 VERSION_NUMBER
 895 VERSION_OPT
 896 VERSION_BUILD
 897 VERSION_PRE
 898 VERSION_PATCH
 899 VERSION_SECURITY
 900 VERSION_MINOR
 901 VERSION_MAJOR
 902 MACOSX_BUNDLE_ID_BASE
 903 MACOSX_BUNDLE_NAME_BASE
 904 HOTSPOT_VM_DISTRO
 905 COMPANY_NAME
 906 JDK_RC_PLATFORM_NAME
 907 PRODUCT_SUFFIX
 908 PRODUCT_NAME
 909 LAUNCHER_NAME
 910 JLINK_KEEP_PACKAGED_MODULES
 911 COPYRIGHT_YEAR
 912 COMPRESS_JARS
 913 INCLUDE_SA
 914 UNLIMITED_CRYPTO
 915 CACERTS_FILE
 916 ENABLE_FULL_DOCS
 917 ENABLE_HEADLESS_ONLY
 918 DEFAULT_MAKE_TARGET
 919 OS_VERSION_MICRO
 920 OS_VERSION_MINOR
 921 OS_VERSION_MAJOR


1076 CONFIGURE_COMMAND_LINE
1077 target_alias
1078 host_alias
1079 build_alias
1080 LIBS
1081 ECHO_T
1082 ECHO_N
1083 ECHO_C
1084 DEFS
1085 mandir
1086 localedir
1087 libdir
1088 psdir
1089 pdfdir
1090 dvidir
1091 htmldir
1092 infodir
1093 docdir
1094 oldincludedir
1095 includedir

1096 localstatedir
1097 sharedstatedir
1098 sysconfdir
1099 datadir
1100 datarootdir
1101 libexecdir
1102 sbindir
1103 bindir
1104 program_transform_name
1105 prefix
1106 exec_prefix
1107 PACKAGE_URL
1108 PACKAGE_BUGREPORT
1109 PACKAGE_STRING
1110 PACKAGE_VERSION
1111 PACKAGE_TARNAME
1112 PACKAGE_NAME
1113 PATH_SEPARATOR
1114 SHELL'
1115 ac_subst_files=''


1126 with_devkit
1127 with_sys_root
1128 with_sysroot
1129 with_tools_dir
1130 with_toolchain_path
1131 with_extra_path
1132 with_sdk_name
1133 with_conf_name
1134 with_output_sync
1135 with_default_make_target
1136 enable_headless_only
1137 enable_full_docs
1138 with_cacerts_file
1139 enable_unlimited_crypto
1140 with_copyright_year
1141 enable_keep_packaged_modules
1142 with_milestone
1143 with_update_version
1144 with_user_release_suffix
1145 with_build_number



1146 with_version_string
1147 with_version_pre
1148 with_version_opt
1149 with_version_build
1150 with_version_major
1151 with_version_minor
1152 with_version_security
1153 with_version_patch


1154 with_boot_jdk
1155 with_build_jdk
1156 with_import_modules
1157 enable_static_build
1158 with_toolchain_type
1159 with_extra_cflags
1160 with_extra_cxxflags
1161 with_extra_ldflags
1162 with_toolchain_version
1163 with_build_devkit
1164 with_jtreg
1165 with_jib
1166 with_abi_profile
1167 with_macosx_version_max
1168 enable_warnings_as_errors
1169 with_native_debug_symbols
1170 enable_debug_symbols
1171 enable_zip_debug_info
1172 enable_native_coverage
1173 enable_asan


1360 site=
1361 srcdir=
1362 verbose=
1363 x_includes=NONE
1364 x_libraries=NONE
1365 
1366 # Installation directory options.
1367 # These are left unexpanded so users can "make install exec_prefix=/foo"
1368 # and all the variables that are supposed to be based on exec_prefix
1369 # by default will actually change.
1370 # Use braces instead of parens because sh, perl, etc. also accept them.
1371 # (The list follows the same order as the GNU Coding Standards.)
1372 bindir='${exec_prefix}/bin'
1373 sbindir='${exec_prefix}/sbin'
1374 libexecdir='${exec_prefix}/libexec'
1375 datarootdir='${prefix}/share'
1376 datadir='${datarootdir}'
1377 sysconfdir='${prefix}/etc'
1378 sharedstatedir='${prefix}/com'
1379 localstatedir='${prefix}/var'

1380 includedir='${prefix}/include'
1381 oldincludedir='/usr/include'
1382 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1383 infodir='${datarootdir}/info'
1384 htmldir='${docdir}'
1385 dvidir='${docdir}'
1386 pdfdir='${docdir}'
1387 psdir='${docdir}'
1388 libdir='${exec_prefix}/lib'
1389 localedir='${datarootdir}/locale'
1390 mandir='${datarootdir}/man'
1391 
1392 ac_prev=
1393 ac_dashdash=
1394 for ac_option
1395 do
1396   # If the previous option needs an argument, assign it.
1397   if test -n "$ac_prev"; then
1398     eval $ac_prev=\$ac_option
1399     ac_prev=


1612   | --program-transform=* | --program-transfor=* \
1613   | --program-transfo=* | --program-transf=* \
1614   | --program-trans=* | --program-tran=* \
1615   | --progr-tra=* | --program-tr=* | --program-t=*)
1616     program_transform_name=$ac_optarg ;;
1617 
1618   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1619     ac_prev=pdfdir ;;
1620   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1621     pdfdir=$ac_optarg ;;
1622 
1623   -psdir | --psdir | --psdi | --psd | --ps)
1624     ac_prev=psdir ;;
1625   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1626     psdir=$ac_optarg ;;
1627 
1628   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1629   | -silent | --silent | --silen | --sile | --sil)
1630     silent=yes ;;
1631 









1632   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1633     ac_prev=sbindir ;;
1634   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1635   | --sbi=* | --sb=*)
1636     sbindir=$ac_optarg ;;
1637 
1638   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1639   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1640   | --sharedst | --shareds | --shared | --share | --shar \
1641   | --sha | --sh)
1642     ac_prev=sharedstatedir ;;
1643   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1644   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1645   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1646   | --sha=* | --sh=*)
1647     sharedstatedir=$ac_optarg ;;
1648 
1649   -site | --site | --sit)
1650     ac_prev=site ;;
1651   -site=* | --site=* | --sit=*)


1749   esac
1750 done
1751 
1752 if test -n "$ac_prev"; then
1753   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1754   as_fn_error $? "missing argument to $ac_option"
1755 fi
1756 
1757 if test -n "$ac_unrecognized_opts"; then
1758   case $enable_option_checking in
1759     no) ;;
1760     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1761     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1762   esac
1763 fi
1764 
1765 # Check all directory arguments for consistency.
1766 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1767                 datadir sysconfdir sharedstatedir localstatedir includedir \
1768                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1769                 libdir localedir mandir
1770 do
1771   eval ac_val=\$$ac_var
1772   # Remove trailing slashes.
1773   case $ac_val in
1774     */ )
1775       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1776       eval $ac_var=\$ac_val;;
1777   esac
1778   # Be sure to have absolute directory names.
1779   case $ac_val in
1780     [\\/$]* | ?:[\\/]* )  continue;;
1781     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1782   esac
1783   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1784 done
1785 
1786 # There might be people who depend on the old broken behavior: `$host'
1787 # used to hold the argument of --host etc.
1788 # FIXME: To remove some day.
1789 build=$build_alias


1902 Installation directories:
1903   --prefix=PREFIX         install architecture-independent files in PREFIX
1904                           [$ac_default_prefix]
1905   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1906                           [PREFIX]
1907 
1908 By default, \`make install' will install all the files in
1909 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1910 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1911 for instance \`--prefix=\$HOME'.
1912 
1913 For better control, use the options below.
1914 
1915 Fine tuning of the installation directories:
1916   --bindir=DIR            user executables [EPREFIX/bin]
1917   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1918   --libexecdir=DIR        program executables [EPREFIX/libexec]
1919   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1920   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1921   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]

1922   --libdir=DIR            object code libraries [EPREFIX/lib]
1923   --includedir=DIR        C header files [PREFIX/include]
1924   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1925   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1926   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1927   --infodir=DIR           info documentation [DATAROOTDIR/info]
1928   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1929   --mandir=DIR            man documentation [DATAROOTDIR/man]
1930   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1931   --htmldir=DIR           html documentation [DOCDIR]
1932   --dvidir=DIR            dvi documentation [DOCDIR]
1933   --pdfdir=DIR            pdf documentation [DOCDIR]
1934   --psdir=DIR             ps documentation [DOCDIR]
1935 _ACEOF
1936 
1937   cat <<\_ACEOF
1938 
1939 X features:
1940   --x-includes=DIR    X include files are in DIR
1941   --x-libraries=DIR   X library files are in DIR


2043                           toolchain binaries (compilers etc)
2044   --with-extra-path       prepend these directories to the default path
2045   --with-sdk-name         use the platform SDK of the given name. [macosx]
2046   --with-conf-name        use this as the name of the configuration [generated
2047                           from important configuration options]
2048   --with-output-sync      set make output sync type if supported by make.
2049                           [recurse]
2050   --with-default-make-target
2051                           set the default make target [exploded-image]
2052   --with-cacerts-file     specify alternative cacerts file
2053   --with-copyright-year   Set copyright year value for build [current year]
2054   --with-milestone        Deprecated. Option is kept for backwards
2055                           compatibility and is ignored
2056   --with-update-version   Deprecated. Option is kept for backwards
2057                           compatibility and is ignored
2058   --with-user-release-suffix
2059                           Deprecated. Option is kept for backwards
2060                           compatibility and is ignored
2061   --with-build-number     Deprecated. Option is kept for backwards
2062                           compatibility and is ignored






2063   --with-version-string   Set version string [calculated]
2064   --with-version-pre      Set the base part of the version 'PRE' field
2065                           (pre-release identifier) ['internal']
2066   --with-version-opt      Set version 'OPT' field (build metadata)
2067                           [<timestamp>.<user>.<dirname>]
2068   --with-version-build    Set version 'BUILD' field (build number) [not
2069                           specified]
2070   --with-version-major    Set version 'MAJOR' field (first number) [current
2071                           source value]
2072   --with-version-minor    Set version 'MINOR' field (second number) [current
2073                           source value]
2074   --with-version-security Set version 'SECURITY' field (third number) [current
2075                           source value]
2076   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2077                           specified]



2078   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2079   --with-build-jdk        path to JDK of same version as is being built[the
2080                           newly built JDK]
2081   --with-import-modules   import a set of prebuilt modules either as a zip
2082                           file or an exploded directory
2083   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2084                           to show possible values [platform dependent]
2085   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2086   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2087   --with-extra-ldflags    extra flags to be used when linking jdk
2088   --with-toolchain-version
2089                           the version of the toolchain to look for, use
2090                           '--help' to show possible values [platform
2091                           dependent]
2092   --with-build-devkit     Devkit to use for the build platform toolchain
2093   --with-jtreg            Regression Test Harness [probed]
2094   --with-jib              Jib dependency management tool [not used]
2095   --with-abi-profile      specify ABI profile for ARM builds
2096                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2097                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)


5142 
5143 
5144 
5145 
5146 
5147 
5148 
5149 
5150 
5151 
5152 
5153 
5154 
5155 
5156 # This line needs to be here, verbatim, after all includes and the dummy hook
5157 # definitions. It is replaced with custom functionality when building
5158 # custom sources.
5159 #CUSTOM_AUTOCONF_INCLUDE
5160 
5161 # Do not change or remove the following line, it is needed for consistency checks:
5162 DATE_WHEN_GENERATED=1512410983
5163 
5164 ###############################################################################
5165 #
5166 # Initialization / Boot-strapping
5167 #
5168 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5169 # thus it jumps back and forth, each time gaining something needed later on.
5170 #
5171 ###############################################################################
5172 
5173 # If we are requested to print additional help, do that and then exit.
5174 # This must be the very first call.
5175 
5176   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5177 
5178     # Print available toolchains
5179     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5180     $PRINTF "Which are valid to use depends on the build platform.\n"
5181     for toolchain in $VALID_TOOLCHAINS_all; do
5182       # Use indirect variable referencing


24987 
24988 
24989 
24990 # Check whether --with-user-release-suffix was given.
24991 if test "${with_user_release_suffix+set}" = set; then :
24992   withval=$with_user_release_suffix; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&5
24993 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
24994 fi
24995 
24996 
24997 
24998 
24999 # Check whether --with-build-number was given.
25000 if test "${with_build_number+set}" = set; then :
25001   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
25002 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
25003 fi
25004 
25005 
25006 



























25007   # Source the version numbers file
25008   . $AUTOCONF_DIR/version-numbers
25009 
25010   # Some non-version number information is set in that file
25011 
25012 
25013 
25014 
25015 
25016 
25017 
25018 
25019 
25020   # Override version from arguments
25021 
25022   # If --with-version-string is set, process it first. It is possible to
25023   # override parts with more specific flags, since these are processed later.
25024 
25025 # Check whether --with-version-string was given.
25026 if test "${with_version_string+set}" = set; then :
25027   withval=$with_version_string;
25028 fi
25029 
25030   if test "x$with_version_string" = xyes; then
25031     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
25032   elif test "x$with_version_string" != x; then
25033     # Additional [] needed to keep m4 from mangling shell constructs.
25034     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
25035       VERSION_MAJOR=${BASH_REMATCH[1]}
25036       VERSION_MINOR=${BASH_REMATCH[3]}
25037       VERSION_SECURITY=${BASH_REMATCH[5]}
25038       VERSION_PATCH=${BASH_REMATCH[7]}
25039       VERSION_PRE=${BASH_REMATCH[9]}
25040       version_plus_separator=${BASH_REMATCH[11]}
25041       VERSION_BUILD=${BASH_REMATCH[12]}
25042       VERSION_OPT=${BASH_REMATCH[14]}
25043       # Unspecified numerical fields are interpreted as 0.
25044       if test "x$VERSION_MINOR" = x; then
25045         VERSION_MINOR=0
25046       fi
25047       if test "x$VERSION_SECURITY" = x; then
25048         VERSION_SECURITY=0
25049       fi
25050       if test "x$VERSION_PATCH" = x; then
25051         VERSION_PATCH=0
25052       fi
25053       if test "x$version_plus_separator" != x \
25054           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
25055         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
25056       fi
25057       # Stop the version part process from setting default values.
25058       # We still allow them to explicitly override though.
25059       NO_DEFAULT_VERSION_PARTS=true
25060     else
25061       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
25062     fi
25063   fi
25064 
25065 
25066 # Check whether --with-version-pre was given.
25067 if test "${with_version_pre+set}" = set; then :
25068   withval=$with_version_pre; with_version_pre_present=true


25157   if test $cleaned_value -gt 255; then
25158     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
25159   fi
25160   if test "x$cleaned_value" != "x$with_version_build"; then
25161     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
25162 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
25163   fi
25164   VERSION_BUILD=$cleaned_value
25165 
25166     fi
25167   else
25168     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25169       # Default is to not have a build number.
25170       VERSION_BUILD=""
25171       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
25172       VERSION_BUILD=0
25173     fi
25174   fi
25175 
25176 
25177 # Check whether --with-version-major was given.
25178 if test "${with_version_major+set}" = set; then :
25179   withval=$with_version_major; with_version_major_present=true
25180 else
25181   with_version_major_present=false
25182 fi
25183 
25184 
25185   if test "x$with_version_major_present" = xtrue; then
25186     if test "x$with_version_major" = xyes; then
25187       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
25188     else
25189 
25190   # Additional [] needed to keep m4 from mangling shell constructs.
25191   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25192     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
25193   fi
25194   # Extract the version number without leading zeros.
25195   cleaned_value=${BASH_REMATCH[1]}
25196   if test "x$cleaned_value" = x; then
25197     # Special case for zero
25198     cleaned_value=${BASH_REMATCH[2]}
25199   fi
25200 
25201   if test $cleaned_value -gt 255; then
25202     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
25203   fi
25204   if test "x$cleaned_value" != "x$with_version_major"; then
25205     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
25206 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
25207   fi
25208   VERSION_MAJOR=$cleaned_value
25209 
25210     fi
25211   else
25212     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25213       # Default is to get value from version-numbers
25214       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
25215     fi
25216   fi
25217 
25218 
25219 # Check whether --with-version-minor was given.
25220 if test "${with_version_minor+set}" = set; then :
25221   withval=$with_version_minor; with_version_minor_present=true
25222 else
25223   with_version_minor_present=false
25224 fi
25225 
25226 
25227   if test "x$with_version_minor_present" = xtrue; then
25228     if test "x$with_version_minor" = xyes; then
25229       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
25230     elif test "x$with_version_minor" = xno; then
25231       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25232       VERSION_MINOR=0
25233     elif test "x$with_version_minor" = x; then
25234       VERSION_MINOR=0
25235     else
25236 
25237   # Additional [] needed to keep m4 from mangling shell constructs.
25238   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25239     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
25240   fi
25241   # Extract the version number without leading zeros.
25242   cleaned_value=${BASH_REMATCH[1]}
25243   if test "x$cleaned_value" = x; then
25244     # Special case for zero
25245     cleaned_value=${BASH_REMATCH[2]}
25246   fi
25247 
25248   if test $cleaned_value -gt 255; then
25249     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
25250   fi
25251   if test "x$cleaned_value" != "x$with_version_minor"; then
25252     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
25253 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
25254   fi
25255   VERSION_MINOR=$cleaned_value
25256 
25257     fi
25258   else
25259     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25260       # Default is 0, if unspecified
25261       VERSION_MINOR=$DEFAULT_VERSION_MINOR
25262     fi
25263   fi
25264 
25265 
25266 # Check whether --with-version-security was given.
25267 if test "${with_version_security+set}" = set; then :
25268   withval=$with_version_security; with_version_security_present=true
25269 else
25270   with_version_security_present=false
25271 fi
25272 
25273 
25274   if test "x$with_version_security_present" = xtrue; then
25275     if test "x$with_version_security" = xyes; then
25276       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
25277     elif test "x$with_version_security" = xno; then
25278       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25279       VERSION_SECURITY=0
25280     elif test "x$with_version_security" = x; then
25281       VERSION_SECURITY=0
25282     else
25283 
25284   # Additional [] needed to keep m4 from mangling shell constructs.
25285   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25286     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
25287   fi
25288   # Extract the version number without leading zeros.
25289   cleaned_value=${BASH_REMATCH[1]}
25290   if test "x$cleaned_value" = x; then
25291     # Special case for zero
25292     cleaned_value=${BASH_REMATCH[2]}
25293   fi
25294 
25295   if test $cleaned_value -gt 255; then
25296     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
25297   fi
25298   if test "x$cleaned_value" != "x$with_version_security"; then
25299     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
25300 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
25301   fi
25302   VERSION_SECURITY=$cleaned_value
25303 
25304     fi
25305   else
25306     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25307       # Default is 0, if unspecified
25308       VERSION_SECURITY=$DEFAULT_VERSION_SECURITY
25309     fi
25310   fi
25311 
25312 
25313 # Check whether --with-version-patch was given.
25314 if test "${with_version_patch+set}" = set; then :
25315   withval=$with_version_patch; with_version_patch_present=true
25316 else
25317   with_version_patch_present=false
25318 fi
25319 
25320 
25321   if test "x$with_version_patch_present" = xtrue; then
25322     if test "x$with_version_patch" = xyes; then
25323       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
25324     elif test "x$with_version_patch" = xno; then
25325       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25326       VERSION_PATCH=0
25327     elif test "x$with_version_patch" = x; then
25328       VERSION_PATCH=0


25349   VERSION_PATCH=$cleaned_value
25350 
25351     fi
25352   else
25353     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25354       # Default is 0, if unspecified
25355       VERSION_PATCH=$DEFAULT_VERSION_PATCH
25356     fi
25357   fi
25358 
25359   # Calculate derived version properties
25360 
25361   # Set VERSION_IS_GA based on if VERSION_PRE has a value
25362   if test "x$VERSION_PRE" = x; then
25363     VERSION_IS_GA=true
25364   else
25365     VERSION_IS_GA=false
25366   fi
25367 
25368   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
25369   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
25370 
25371   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
25372   # Strip trailing zeroes from stripped_version_number
25373   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
25374   VERSION_NUMBER=$stripped_version_number
25375 
25376   # The complete version string, with additional build information
25377   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
25378     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25379   else
25380     # If either build or opt is set, we need a + separator
25381     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
25382   fi
25383 
25384   # The short version string, just VERSION_NUMBER and PRE, if present.
25385   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25386 


































25387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
25388 $as_echo_n "checking for version string... " >&6; }
25389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
25390 $as_echo "$VERSION_STRING" >&6; }
25391 
25392 
25393 
25394 
25395 
25396 
25397 
25398 
25399 
25400 
25401 
25402 
25403 
25404 
25405 


25406 ###############################################################################
25407 #
25408 # Setup BootJDK, used to bootstrap the build.
25409 #
25410 ###############################################################################
25411 
25412 
25413   BOOT_JDK_FOUND=no
25414 
25415 # Check whether --with-boot-jdk was given.
25416 if test "${with_boot_jdk+set}" = set; then :
25417   withval=$with_boot_jdk;
25418 fi
25419 
25420 
25421   # We look for the Boot JDK through various means, going from more certain to
25422   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
25423   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
25424   # must check if this is indeed valid; otherwise we'll continue looking.
25425 


50652   # On Windows, we need to set RC flags.
50653   if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
50654     RC_FLAGS="-nologo -l0x409"
50655     JVM_RCFLAGS="-nologo"
50656     if test "x$DEBUG_LEVEL" = xrelease; then
50657       RC_FLAGS="$RC_FLAGS -DNDEBUG"
50658       JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG"
50659     fi
50660 
50661     # The version variables used to create RC_FLAGS may be overridden
50662     # in a custom configure script, or possibly the command line.
50663     # Let those variables be expanded at make time in spec.gmk.
50664     # The \$ are escaped to the shell, and the $(...) variables
50665     # are evaluated by make.
50666     RC_FLAGS="$RC_FLAGS \
50667         -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \
50668         -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \
50669         -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
50670         -D\"JDK_VER=\$(VERSION_NUMBER)\" \
50671         -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
50672         -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \
50673         -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\""
50674 
50675     JVM_RCFLAGS="$JVM_RCFLAGS \
50676         -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \
50677         -D\"HS_COMPANY=\$(COMPANY_NAME)\" \
50678         -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \
50679         -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \
50680         -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \
50681         -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \
50682         -D\"HS_FNAME=jvm.dll\" \
50683         -D\"HS_INTERNAL_NAME=jvm\""
50684   fi
50685 
50686 
50687 
50688   if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
50689     # silence copyright notice and other headers.
50690     COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo"
50691   fi
50692 




 870 IMPORT_MODULES_CONF
 871 IMPORT_MODULES_LIBS
 872 IMPORT_MODULES_CMDS
 873 IMPORT_MODULES_CLASSES
 874 EXTERNAL_BUILDJDK
 875 BUILD_JDK
 876 CREATE_BUILDJDK
 877 JLINK
 878 JMOD
 879 JAVAC_FLAGS
 880 BOOT_JDK_SOURCETARGET
 881 JARSIGNER
 882 JAR
 883 JAVADOC
 884 JAVAH
 885 JAVAC
 886 JAVA
 887 BOOT_JDK
 888 JAVA_CHECK
 889 JAVAC_CHECK
 890 VENDOR_VERSION_STRING
 891 VERSION_DATE
 892 VERSION_IS_GA
 893 VERSION_SHORT
 894 VERSION_STRING
 895 VERSION_NUMBER_FOUR_POSITIONS
 896 VERSION_NUMBER
 897 VERSION_OPT
 898 VERSION_BUILD
 899 VERSION_PRE
 900 VERSION_PATCH
 901 VERSION_UPDATE
 902 VERSION_INTERIM
 903 VERSION_FEATURE
 904 MACOSX_BUNDLE_ID_BASE
 905 MACOSX_BUNDLE_NAME_BASE
 906 HOTSPOT_VM_DISTRO
 907 COMPANY_NAME
 908 JDK_RC_PLATFORM_NAME
 909 PRODUCT_SUFFIX
 910 PRODUCT_NAME
 911 LAUNCHER_NAME
 912 JLINK_KEEP_PACKAGED_MODULES
 913 COPYRIGHT_YEAR
 914 COMPRESS_JARS
 915 INCLUDE_SA
 916 UNLIMITED_CRYPTO
 917 CACERTS_FILE
 918 ENABLE_FULL_DOCS
 919 ENABLE_HEADLESS_ONLY
 920 DEFAULT_MAKE_TARGET
 921 OS_VERSION_MICRO
 922 OS_VERSION_MINOR
 923 OS_VERSION_MAJOR


1078 CONFIGURE_COMMAND_LINE
1079 target_alias
1080 host_alias
1081 build_alias
1082 LIBS
1083 ECHO_T
1084 ECHO_N
1085 ECHO_C
1086 DEFS
1087 mandir
1088 localedir
1089 libdir
1090 psdir
1091 pdfdir
1092 dvidir
1093 htmldir
1094 infodir
1095 docdir
1096 oldincludedir
1097 includedir
1098 runstatedir
1099 localstatedir
1100 sharedstatedir
1101 sysconfdir
1102 datadir
1103 datarootdir
1104 libexecdir
1105 sbindir
1106 bindir
1107 program_transform_name
1108 prefix
1109 exec_prefix
1110 PACKAGE_URL
1111 PACKAGE_BUGREPORT
1112 PACKAGE_STRING
1113 PACKAGE_VERSION
1114 PACKAGE_TARNAME
1115 PACKAGE_NAME
1116 PATH_SEPARATOR
1117 SHELL'
1118 ac_subst_files=''


1129 with_devkit
1130 with_sys_root
1131 with_sysroot
1132 with_tools_dir
1133 with_toolchain_path
1134 with_extra_path
1135 with_sdk_name
1136 with_conf_name
1137 with_output_sync
1138 with_default_make_target
1139 enable_headless_only
1140 enable_full_docs
1141 with_cacerts_file
1142 enable_unlimited_crypto
1143 with_copyright_year
1144 enable_keep_packaged_modules
1145 with_milestone
1146 with_update_version
1147 with_user_release_suffix
1148 with_build_number
1149 with_version_major
1150 with_version_minor
1151 with_version_security
1152 with_version_string
1153 with_version_pre
1154 with_version_opt
1155 with_version_build
1156 with_version_feature
1157 with_version_interim
1158 with_version_update
1159 with_version_patch
1160 with_version_date
1161 with_vendor_version_string
1162 with_boot_jdk
1163 with_build_jdk
1164 with_import_modules
1165 enable_static_build
1166 with_toolchain_type
1167 with_extra_cflags
1168 with_extra_cxxflags
1169 with_extra_ldflags
1170 with_toolchain_version
1171 with_build_devkit
1172 with_jtreg
1173 with_jib
1174 with_abi_profile
1175 with_macosx_version_max
1176 enable_warnings_as_errors
1177 with_native_debug_symbols
1178 enable_debug_symbols
1179 enable_zip_debug_info
1180 enable_native_coverage
1181 enable_asan


1368 site=
1369 srcdir=
1370 verbose=
1371 x_includes=NONE
1372 x_libraries=NONE
1373 
1374 # Installation directory options.
1375 # These are left unexpanded so users can "make install exec_prefix=/foo"
1376 # and all the variables that are supposed to be based on exec_prefix
1377 # by default will actually change.
1378 # Use braces instead of parens because sh, perl, etc. also accept them.
1379 # (The list follows the same order as the GNU Coding Standards.)
1380 bindir='${exec_prefix}/bin'
1381 sbindir='${exec_prefix}/sbin'
1382 libexecdir='${exec_prefix}/libexec'
1383 datarootdir='${prefix}/share'
1384 datadir='${datarootdir}'
1385 sysconfdir='${prefix}/etc'
1386 sharedstatedir='${prefix}/com'
1387 localstatedir='${prefix}/var'
1388 runstatedir='${localstatedir}/run'
1389 includedir='${prefix}/include'
1390 oldincludedir='/usr/include'
1391 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1392 infodir='${datarootdir}/info'
1393 htmldir='${docdir}'
1394 dvidir='${docdir}'
1395 pdfdir='${docdir}'
1396 psdir='${docdir}'
1397 libdir='${exec_prefix}/lib'
1398 localedir='${datarootdir}/locale'
1399 mandir='${datarootdir}/man'
1400 
1401 ac_prev=
1402 ac_dashdash=
1403 for ac_option
1404 do
1405   # If the previous option needs an argument, assign it.
1406   if test -n "$ac_prev"; then
1407     eval $ac_prev=\$ac_option
1408     ac_prev=


1621   | --program-transform=* | --program-transfor=* \
1622   | --program-transfo=* | --program-transf=* \
1623   | --program-trans=* | --program-tran=* \
1624   | --progr-tra=* | --program-tr=* | --program-t=*)
1625     program_transform_name=$ac_optarg ;;
1626 
1627   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1628     ac_prev=pdfdir ;;
1629   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1630     pdfdir=$ac_optarg ;;
1631 
1632   -psdir | --psdir | --psdi | --psd | --ps)
1633     ac_prev=psdir ;;
1634   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1635     psdir=$ac_optarg ;;
1636 
1637   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638   | -silent | --silent | --silen | --sile | --sil)
1639     silent=yes ;;
1640 
1641   -runstatedir | --runstatedir | --runstatedi | --runstated \
1642   | --runstate | --runstat | --runsta | --runst | --runs \
1643   | --run | --ru | --r)
1644     ac_prev=runstatedir ;;
1645   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1646   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1647   | --run=* | --ru=* | --r=*)
1648     runstatedir=$ac_optarg ;;
1649 
1650   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1651     ac_prev=sbindir ;;
1652   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1653   | --sbi=* | --sb=*)
1654     sbindir=$ac_optarg ;;
1655 
1656   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1657   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1658   | --sharedst | --shareds | --shared | --share | --shar \
1659   | --sha | --sh)
1660     ac_prev=sharedstatedir ;;
1661   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1662   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1663   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1664   | --sha=* | --sh=*)
1665     sharedstatedir=$ac_optarg ;;
1666 
1667   -site | --site | --sit)
1668     ac_prev=site ;;
1669   -site=* | --site=* | --sit=*)


1767   esac
1768 done
1769 
1770 if test -n "$ac_prev"; then
1771   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1772   as_fn_error $? "missing argument to $ac_option"
1773 fi
1774 
1775 if test -n "$ac_unrecognized_opts"; then
1776   case $enable_option_checking in
1777     no) ;;
1778     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1779     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1780   esac
1781 fi
1782 
1783 # Check all directory arguments for consistency.
1784 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1785                 datadir sysconfdir sharedstatedir localstatedir includedir \
1786                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1787                 libdir localedir mandir runstatedir
1788 do
1789   eval ac_val=\$$ac_var
1790   # Remove trailing slashes.
1791   case $ac_val in
1792     */ )
1793       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1794       eval $ac_var=\$ac_val;;
1795   esac
1796   # Be sure to have absolute directory names.
1797   case $ac_val in
1798     [\\/$]* | ?:[\\/]* )  continue;;
1799     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1800   esac
1801   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1802 done
1803 
1804 # There might be people who depend on the old broken behavior: `$host'
1805 # used to hold the argument of --host etc.
1806 # FIXME: To remove some day.
1807 build=$build_alias


1920 Installation directories:
1921   --prefix=PREFIX         install architecture-independent files in PREFIX
1922                           [$ac_default_prefix]
1923   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1924                           [PREFIX]
1925 
1926 By default, \`make install' will install all the files in
1927 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1928 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1929 for instance \`--prefix=\$HOME'.
1930 
1931 For better control, use the options below.
1932 
1933 Fine tuning of the installation directories:
1934   --bindir=DIR            user executables [EPREFIX/bin]
1935   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1936   --libexecdir=DIR        program executables [EPREFIX/libexec]
1937   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1938   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1939   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1940   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1941   --libdir=DIR            object code libraries [EPREFIX/lib]
1942   --includedir=DIR        C header files [PREFIX/include]
1943   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1944   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1945   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1946   --infodir=DIR           info documentation [DATAROOTDIR/info]
1947   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1948   --mandir=DIR            man documentation [DATAROOTDIR/man]
1949   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1950   --htmldir=DIR           html documentation [DOCDIR]
1951   --dvidir=DIR            dvi documentation [DOCDIR]
1952   --pdfdir=DIR            pdf documentation [DOCDIR]
1953   --psdir=DIR             ps documentation [DOCDIR]
1954 _ACEOF
1955 
1956   cat <<\_ACEOF
1957 
1958 X features:
1959   --x-includes=DIR    X include files are in DIR
1960   --x-libraries=DIR   X library files are in DIR


2062                           toolchain binaries (compilers etc)
2063   --with-extra-path       prepend these directories to the default path
2064   --with-sdk-name         use the platform SDK of the given name. [macosx]
2065   --with-conf-name        use this as the name of the configuration [generated
2066                           from important configuration options]
2067   --with-output-sync      set make output sync type if supported by make.
2068                           [recurse]
2069   --with-default-make-target
2070                           set the default make target [exploded-image]
2071   --with-cacerts-file     specify alternative cacerts file
2072   --with-copyright-year   Set copyright year value for build [current year]
2073   --with-milestone        Deprecated. Option is kept for backwards
2074                           compatibility and is ignored
2075   --with-update-version   Deprecated. Option is kept for backwards
2076                           compatibility and is ignored
2077   --with-user-release-suffix
2078                           Deprecated. Option is kept for backwards
2079                           compatibility and is ignored
2080   --with-build-number     Deprecated. Option is kept for backwards
2081                           compatibility and is ignored
2082   --with-version-major    Deprecated. Option is kept for backwards
2083                           compatibility and is ignored
2084   --with-version-minor    Deprecated. Option is kept for backwards
2085                           compatibility and is ignored
2086   --with-version-security Deprecated. Option is kept for backwards
2087                           compatibility and is ignored
2088   --with-version-string   Set version string [calculated]
2089   --with-version-pre      Set the base part of the version 'PRE' field
2090                           (pre-release identifier) ['internal']
2091   --with-version-opt      Set version 'OPT' field (build metadata)
2092                           [<timestamp>.<user>.<dirname>]
2093   --with-version-build    Set version 'BUILD' field (build number) [not
2094                           specified]
2095   --with-version-feature  Set version 'FEATURE' field (first number) [current
2096                           source value]
2097   --with-version-interim  Set version 'INTERIM' field (second number) [current
2098                           source value]
2099   --with-version-update   Set version 'UPDATE' field (third number) [current
2100                           source value]
2101   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2102                           specified]
2103   --with-version-date     Set version date [current source value]
2104   --with-vendor-version-string
2105                           Set vendor version string [not specified]
2106   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2107   --with-build-jdk        path to JDK of same version as is being built[the
2108                           newly built JDK]
2109   --with-import-modules   import a set of prebuilt modules either as a zip
2110                           file or an exploded directory
2111   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2112                           to show possible values [platform dependent]
2113   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2114   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2115   --with-extra-ldflags    extra flags to be used when linking jdk
2116   --with-toolchain-version
2117                           the version of the toolchain to look for, use
2118                           '--help' to show possible values [platform
2119                           dependent]
2120   --with-build-devkit     Devkit to use for the build platform toolchain
2121   --with-jtreg            Regression Test Harness [probed]
2122   --with-jib              Jib dependency management tool [not used]
2123   --with-abi-profile      specify ABI profile for ARM builds
2124                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2125                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)


5170 
5171 
5172 
5173 
5174 
5175 
5176 
5177 
5178 
5179 
5180 
5181 
5182 
5183 
5184 # This line needs to be here, verbatim, after all includes and the dummy hook
5185 # definitions. It is replaced with custom functionality when building
5186 # custom sources.
5187 #CUSTOM_AUTOCONF_INCLUDE
5188 
5189 # Do not change or remove the following line, it is needed for consistency checks:
5190 DATE_WHEN_GENERATED=1512489240
5191 
5192 ###############################################################################
5193 #
5194 # Initialization / Boot-strapping
5195 #
5196 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5197 # thus it jumps back and forth, each time gaining something needed later on.
5198 #
5199 ###############################################################################
5200 
5201 # If we are requested to print additional help, do that and then exit.
5202 # This must be the very first call.
5203 
5204   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5205 
5206     # Print available toolchains
5207     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5208     $PRINTF "Which are valid to use depends on the build platform.\n"
5209     for toolchain in $VALID_TOOLCHAINS_all; do
5210       # Use indirect variable referencing


25015 
25016 
25017 
25018 # Check whether --with-user-release-suffix was given.
25019 if test "${with_user_release_suffix+set}" = set; then :
25020   withval=$with_user_release_suffix; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&5
25021 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
25022 fi
25023 
25024 
25025 
25026 
25027 # Check whether --with-build-number was given.
25028 if test "${with_build_number+set}" = set; then :
25029   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
25030 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
25031 fi
25032 
25033 
25034 
25035 
25036 # Check whether --with-version-major was given.
25037 if test "${with_version_major+set}" = set; then :
25038   withval=$with_version_major; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-major is deprecated and will be ignored." >&5
25039 $as_echo "$as_me: WARNING: Option --with-version-major is deprecated and will be ignored." >&2;}
25040 fi
25041 
25042 
25043 
25044 
25045 # Check whether --with-version-minor was given.
25046 if test "${with_version_minor+set}" = set; then :
25047   withval=$with_version_minor; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-minor is deprecated and will be ignored." >&5
25048 $as_echo "$as_me: WARNING: Option --with-version-minor is deprecated and will be ignored." >&2;}
25049 fi
25050 
25051 
25052 
25053 
25054 # Check whether --with-version-security was given.
25055 if test "${with_version_security+set}" = set; then :
25056   withval=$with_version_security; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-security is deprecated and will be ignored." >&5
25057 $as_echo "$as_me: WARNING: Option --with-version-security is deprecated and will be ignored." >&2;}
25058 fi
25059 
25060 
25061 
25062   # Source the version numbers file
25063   . $AUTOCONF_DIR/version-numbers
25064 
25065   # Some non-version number information is set in that file
25066 
25067 
25068 
25069 
25070 
25071 
25072 
25073 
25074 
25075   # Override version from arguments
25076 
25077   # If --with-version-string is set, process it first. It is possible to
25078   # override parts with more specific flags, since these are processed later.
25079 
25080 # Check whether --with-version-string was given.
25081 if test "${with_version_string+set}" = set; then :
25082   withval=$with_version_string;
25083 fi
25084 
25085   if test "x$with_version_string" = xyes; then
25086     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
25087   elif test "x$with_version_string" != x; then
25088     # Additional [] needed to keep m4 from mangling shell constructs.
25089     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
25090       VERSION_FEATURE=${BASH_REMATCH[1]}
25091       VERSION_INTERIM=${BASH_REMATCH[3]}
25092       VERSION_UPDATE=${BASH_REMATCH[5]}
25093       VERSION_PATCH=${BASH_REMATCH[7]}
25094       VERSION_PRE=${BASH_REMATCH[9]}
25095       version_plus_separator=${BASH_REMATCH[11]}
25096       VERSION_BUILD=${BASH_REMATCH[12]}
25097       VERSION_OPT=${BASH_REMATCH[14]}
25098       # Unspecified numerical fields are interpreted as 0.
25099       if test "x$VERSION_INTERIM" = x; then
25100         VERSION_INTERIM=0
25101       fi
25102       if test "x$VERSION_UPDATE" = x; then
25103         VERSION_UPDATE=0
25104       fi
25105       if test "x$VERSION_PATCH" = x; then
25106         VERSION_PATCH=0
25107       fi
25108       if test "x$version_plus_separator" != x \
25109           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
25110         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
25111       fi
25112       # Stop the version part process from setting default values.
25113       # We still allow them to explicitly override though.
25114       NO_DEFAULT_VERSION_PARTS=true
25115     else
25116       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
25117     fi
25118   fi
25119 
25120 
25121 # Check whether --with-version-pre was given.
25122 if test "${with_version_pre+set}" = set; then :
25123   withval=$with_version_pre; with_version_pre_present=true


25212   if test $cleaned_value -gt 255; then
25213     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
25214   fi
25215   if test "x$cleaned_value" != "x$with_version_build"; then
25216     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
25217 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
25218   fi
25219   VERSION_BUILD=$cleaned_value
25220 
25221     fi
25222   else
25223     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25224       # Default is to not have a build number.
25225       VERSION_BUILD=""
25226       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
25227       VERSION_BUILD=0
25228     fi
25229   fi
25230 
25231 
25232 # Check whether --with-version-feature was given.
25233 if test "${with_version_feature+set}" = set; then :
25234   withval=$with_version_feature; with_version_feature_present=true
25235 else
25236   with_version_feature_present=false
25237 fi
25238 
25239 
25240   if test "x$with_version_feature_present" = xtrue; then
25241     if test "x$with_version_feature" = xyes; then
25242       as_fn_error $? "--with-version-feature must have a value" "$LINENO" 5
25243     else
25244 
25245   # Additional [] needed to keep m4 from mangling shell constructs.
25246   if  ! [[ "$with_version_feature" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25247     as_fn_error $? "\"$with_version_feature\" is not a valid numerical value for VERSION_FEATURE" "$LINENO" 5
25248   fi
25249   # Extract the version number without leading zeros.
25250   cleaned_value=${BASH_REMATCH[1]}
25251   if test "x$cleaned_value" = x; then
25252     # Special case for zero
25253     cleaned_value=${BASH_REMATCH[2]}
25254   fi
25255 
25256   if test $cleaned_value -gt 255; then
25257     as_fn_error $? "VERSION_FEATURE is given as $with_version_feature. This is greater than 255 which is not allowed." "$LINENO" 5
25258   fi
25259   if test "x$cleaned_value" != "x$with_version_feature"; then
25260     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&5
25261 $as_echo "$as_me: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&2;}
25262   fi
25263   VERSION_FEATURE=$cleaned_value
25264 
25265     fi
25266   else
25267     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25268       # Default is to get value from version-numbers
25269       VERSION_FEATURE="$DEFAULT_VERSION_FEATURE"
25270     fi
25271   fi
25272 
25273 
25274 # Check whether --with-version-interim was given.
25275 if test "${with_version_interim+set}" = set; then :
25276   withval=$with_version_interim; with_version_interim_present=true
25277 else
25278   with_version_interim_present=false
25279 fi
25280 
25281 
25282   if test "x$with_version_interim_present" = xtrue; then
25283     if test "x$with_version_interim" = xyes; then
25284       as_fn_error $? "--with-version-interim must have a value" "$LINENO" 5
25285     elif test "x$with_version_interim" = xno; then
25286       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25287       VERSION_INTERIM=0
25288     elif test "x$with_version_interim" = x; then
25289       VERSION_INTERIM=0
25290     else
25291 
25292   # Additional [] needed to keep m4 from mangling shell constructs.
25293   if  ! [[ "$with_version_interim" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25294     as_fn_error $? "\"$with_version_interim\" is not a valid numerical value for VERSION_INTERIM" "$LINENO" 5
25295   fi
25296   # Extract the version number without leading zeros.
25297   cleaned_value=${BASH_REMATCH[1]}
25298   if test "x$cleaned_value" = x; then
25299     # Special case for zero
25300     cleaned_value=${BASH_REMATCH[2]}
25301   fi
25302 
25303   if test $cleaned_value -gt 255; then
25304     as_fn_error $? "VERSION_INTERIM is given as $with_version_interim. This is greater than 255 which is not allowed." "$LINENO" 5
25305   fi
25306   if test "x$cleaned_value" != "x$with_version_interim"; then
25307     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&5
25308 $as_echo "$as_me: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&2;}
25309   fi
25310   VERSION_INTERIM=$cleaned_value
25311 
25312     fi
25313   else
25314     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25315       # Default is 0, if unspecified
25316       VERSION_INTERIM=$DEFAULT_VERSION_INTERIM
25317     fi
25318   fi
25319 
25320 
25321 # Check whether --with-version-update was given.
25322 if test "${with_version_update+set}" = set; then :
25323   withval=$with_version_update; with_version_update_present=true
25324 else
25325   with_version_update_present=false
25326 fi
25327 
25328 
25329   if test "x$with_version_update_present" = xtrue; then
25330     if test "x$with_version_update" = xyes; then
25331       as_fn_error $? "--with-version-update must have a value" "$LINENO" 5
25332     elif test "x$with_version_update" = xno; then
25333       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25334       VERSION_UPDATE=0
25335     elif test "x$with_version_update" = x; then
25336       VERSION_UPDATE=0
25337     else
25338 
25339   # Additional [] needed to keep m4 from mangling shell constructs.
25340   if  ! [[ "$with_version_update" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25341     as_fn_error $? "\"$with_version_update\" is not a valid numerical value for VERSION_UPDATE" "$LINENO" 5
25342   fi
25343   # Extract the version number without leading zeros.
25344   cleaned_value=${BASH_REMATCH[1]}
25345   if test "x$cleaned_value" = x; then
25346     # Special case for zero
25347     cleaned_value=${BASH_REMATCH[2]}
25348   fi
25349 
25350   if test $cleaned_value -gt 255; then
25351     as_fn_error $? "VERSION_UPDATE is given as $with_version_update. This is greater than 255 which is not allowed." "$LINENO" 5
25352   fi
25353   if test "x$cleaned_value" != "x$with_version_update"; then
25354     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&5
25355 $as_echo "$as_me: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&2;}
25356   fi
25357   VERSION_UPDATE=$cleaned_value
25358 
25359     fi
25360   else
25361     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25362       # Default is 0, if unspecified
25363       VERSION_UPDATE=$DEFAULT_VERSION_UPDATE
25364     fi
25365   fi
25366 
25367 
25368 # Check whether --with-version-patch was given.
25369 if test "${with_version_patch+set}" = set; then :
25370   withval=$with_version_patch; with_version_patch_present=true
25371 else
25372   with_version_patch_present=false
25373 fi
25374 
25375 
25376   if test "x$with_version_patch_present" = xtrue; then
25377     if test "x$with_version_patch" = xyes; then
25378       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
25379     elif test "x$with_version_patch" = xno; then
25380       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25381       VERSION_PATCH=0
25382     elif test "x$with_version_patch" = x; then
25383       VERSION_PATCH=0


25404   VERSION_PATCH=$cleaned_value
25405 
25406     fi
25407   else
25408     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25409       # Default is 0, if unspecified
25410       VERSION_PATCH=$DEFAULT_VERSION_PATCH
25411     fi
25412   fi
25413 
25414   # Calculate derived version properties
25415 
25416   # Set VERSION_IS_GA based on if VERSION_PRE has a value
25417   if test "x$VERSION_PRE" = x; then
25418     VERSION_IS_GA=true
25419   else
25420     VERSION_IS_GA=false
25421   fi
25422 
25423   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
25424   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_FEATURE.$VERSION_INTERIM.$VERSION_UPDATE.$VERSION_PATCH
25425 
25426   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
25427   # Strip trailing zeroes from stripped_version_number
25428   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
25429   VERSION_NUMBER=$stripped_version_number
25430 
25431   # The complete version string, with additional build information
25432   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
25433     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25434   else
25435     # If either build or opt is set, we need a + separator
25436     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
25437   fi
25438 
25439   # The short version string, just VERSION_NUMBER and PRE, if present.
25440   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25441 
25442   # The version date
25443 
25444 # Check whether --with-version-date was given.
25445 if test "${with_version_date+set}" = set; then :
25446   withval=$with_version_date;
25447 fi
25448 
25449   if test "x$with_version_date" = xyes; then
25450     as_fn_error $? "--with-version-date must have a value" "$LINENO" 5
25451   elif test "x$with_version_date" != x; then
25452     if  ! [[ $with_version_date =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] ; then
25453       as_fn_error $? "\"$with_version_date\" is not a valid version date" "$LINENO" 5
25454     else
25455       VERSION_DATE="$with_version_date"
25456     fi
25457   else
25458     VERSION_DATE="$DEFAULT_VERSION_DATE"
25459   fi
25460 
25461   # The vendor version string, if any
25462 
25463 # Check whether --with-vendor-version-string was given.
25464 if test "${with_vendor_version_string+set}" = set; then :
25465   withval=$with_vendor_version_string;
25466 fi
25467 
25468   if test "x$with_vendor_version_string" = xyes; then
25469     as_fn_error $? "--with-vendor-version-string must have a value" "$LINENO" 5
25470   elif  ! [[ $with_vendor_version_string =~ ^[[:graph:]]*$ ]] ; then
25471       as_fn_error $? "--with--vendor-version-string contains non-graphical characters: $with_vendor_version_string" "$LINENO" 5
25472   else
25473     VENDOR_VERSION_STRING="$with_vendor_version_string"
25474   fi
25475 
25476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
25477 $as_echo_n "checking for version string... " >&6; }
25478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
25479 $as_echo "$VERSION_STRING" >&6; }
25480 
25481 
25482 
25483 
25484 
25485 
25486 
25487 
25488 
25489 
25490 
25491 
25492 
25493 
25494 
25495 
25496 
25497 ###############################################################################
25498 #
25499 # Setup BootJDK, used to bootstrap the build.
25500 #
25501 ###############################################################################
25502 
25503 
25504   BOOT_JDK_FOUND=no
25505 
25506 # Check whether --with-boot-jdk was given.
25507 if test "${with_boot_jdk+set}" = set; then :
25508   withval=$with_boot_jdk;
25509 fi
25510 
25511 
25512   # We look for the Boot JDK through various means, going from more certain to
25513   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
25514   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
25515   # must check if this is indeed valid; otherwise we'll continue looking.
25516 


50743   # On Windows, we need to set RC flags.
50744   if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
50745     RC_FLAGS="-nologo -l0x409"
50746     JVM_RCFLAGS="-nologo"
50747     if test "x$DEBUG_LEVEL" = xrelease; then
50748       RC_FLAGS="$RC_FLAGS -DNDEBUG"
50749       JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG"
50750     fi
50751 
50752     # The version variables used to create RC_FLAGS may be overridden
50753     # in a custom configure script, or possibly the command line.
50754     # Let those variables be expanded at make time in spec.gmk.
50755     # The \$ are escaped to the shell, and the $(...) variables
50756     # are evaluated by make.
50757     RC_FLAGS="$RC_FLAGS \
50758         -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \
50759         -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \
50760         -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
50761         -D\"JDK_VER=\$(VERSION_NUMBER)\" \
50762         -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
50763         -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_FEATURE)\" \
50764         -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\""
50765 
50766     JVM_RCFLAGS="$JVM_RCFLAGS \
50767         -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \
50768         -D\"HS_COMPANY=\$(COMPANY_NAME)\" \
50769         -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \
50770         -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \
50771         -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \
50772         -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \
50773         -D\"HS_FNAME=jvm.dll\" \
50774         -D\"HS_INTERNAL_NAME=jvm\""
50775   fi
50776 
50777 
50778 
50779   if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
50780     # silence copyright notice and other headers.
50781     COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo"
50782   fi
50783 


< prev index next >