< prev index next >

make/autoconf/jdk-version.m4

Print this page


   1 #
   2 # Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


  49   if test $cleaned_value -gt 255; then
  50     AC_MSG_ERROR([$1 is given as $2. This is greater than 255 which is not allowed.])
  51   fi
  52   if test "x$cleaned_value" != "x$2"; then
  53     AC_MSG_WARN([Value for $1 has been sanitized from '$2' to '$cleaned_value'])
  54   fi
  55   $1=$cleaned_value
  56 ])
  57 
  58 AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
  59 [
  60   # Source the version numbers file
  61   . $AUTOCONF_DIR/version-numbers
  62 
  63   # Some non-version number information is set in that file
  64   AC_SUBST(LAUNCHER_NAME)
  65   AC_SUBST(PRODUCT_NAME)
  66   AC_SUBST(PRODUCT_SUFFIX)
  67   AC_SUBST(JDK_RC_PLATFORM_NAME)
  68   AC_SUBST(HOTSPOT_VM_DISTRO)
  69 
  70   # Set the MACOSX Bundle Name base
  71   AC_ARG_WITH(macosx-bundle-name-base, [AS_HELP_STRING([--with-macosx-bundle-name-base],
  72       [Set the MacOSX Bundle Name base. This is the base name for calculating MacOSX Bundle Names.
  73       @<:@not specified@:>@])])
  74   if test "x$with_macosx_bundle_name_base" = xyes; then
  75     AC_MSG_ERROR([--with-macosx-bundle-name-base must have a value])
  76   elif [ ! [[ $with_macosx_bundle_name_base =~ ^[[:print:]]*$ ]] ]; then
  77     AC_MSG_ERROR([--with-macosx-bundle-name-base contains non-printing characters: $with_macosx_bundle_name_base])
  78   elif test "x$with_macosx_bundle_name_base" != x; then
  79     # Set MACOSX_BUNDLE_NAME_BASE to the configured value.
  80     MACOSX_BUNDLE_NAME_BASE="$with_macosx_bundle_name_base"
  81   fi
  82   AC_SUBST(MACOSX_BUNDLE_NAME_BASE)
  83 
  84   # Set the MACOSX Bundle ID base
  85   AC_ARG_WITH(macosx-bundle-id-base, [AS_HELP_STRING([--with-macosx-bundle-id-base],
  86       [Set the MacOSX Bundle ID base. This is the base ID for calculating MacOSX Bundle IDs.
  87       @<:@not specified@:>@])])
  88   if test "x$with_macosx_bundle_id_base" = xyes; then
  89     AC_MSG_ERROR([--with-macosx-bundle-id-base must have a value])
  90   elif [ ! [[ $with_macosx_bundle_id_base =~ ^[[:print:]]*$ ]] ]; then
  91     AC_MSG_ERROR([--with-macosx-bundle-id-base contains non-printing characters: $with_macosx_bundle_id_base])
  92   elif test "x$with_macosx_bundle_id_base" != x; then
  93     # Set MACOSX_BUNDLE_ID_BASE to the configured value.
  94     MACOSX_BUNDLE_ID_BASE="$with_macosx_bundle_id_base"
  95   fi
  96   AC_SUBST(MACOSX_BUNDLE_ID_BASE)
  97 
  98   # Set the JDK RC name
  99   AC_ARG_WITH(jdk-rc-name, [AS_HELP_STRING([--with-jdk-rc-name],
 100       [Set JDK RC name. This is used for FileDescription and ProductName properties
 101        of MS Windows binaries. @<:@not specified@:>@])])
 102   if test "x$with_jdk_rc_name" = xyes; then
 103     AC_MSG_ERROR([--with-jdk-rc-name must have a value])
 104   elif [ ! [[ $with_jdk_rc_name =~ ^[[:print:]]*$ ]] ]; then
 105     AC_MSG_ERROR([--with-jdk-rc-name contains non-printing characters: $with_jdk_rc_name])
 106   elif test "x$with_jdk_rc_name" != x; then
 107     # Set JDK_RC_NAME to a custom value if '--with-jdk-rc-name' was used and is not empty.
 108     JDK_RC_NAME="$with_jdk_rc_name"
 109   else
 110     # Otherwise calculate from "version-numbers" included above.
 111     JDK_RC_NAME="$PRODUCT_NAME $JDK_RC_PLATFORM_NAME"
 112   fi
 113   AC_SUBST(JDK_RC_NAME)
 114 
 115   # The vendor name, if any
 116   AC_ARG_WITH(vendor-name, [AS_HELP_STRING([--with-vendor-name],
 117       [Set vendor name. Among others, used to set the 'java.vendor'
 118        and 'java.vm.vendor' system properties. @<:@not specified@:>@])])
 119   if test "x$with_vendor_name" = xyes; then
 120     AC_MSG_ERROR([--with-vendor-name must have a value])
 121   elif [ ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ]; then
 122     AC_MSG_ERROR([--with-vendor-name contains non-printing characters: $with_vendor_name])
 123   elif test "x$with_vendor_name" != x; then
 124     # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty.
 125     # Otherwise we will use the value from "version-numbers" included above.
 126     COMPANY_NAME="$with_vendor_name"
 127   fi
 128   AC_SUBST(COMPANY_NAME)
 129 
 130   # The vendor URL, if any
 131   AC_ARG_WITH(vendor-url, [AS_HELP_STRING([--with-vendor-url],
 132       [Set the 'java.vendor.url' system property @<:@not specified@:>@])])
 133   if test "x$with_vendor_url" = xyes; then


   1 #
   2 # Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


  49   if test $cleaned_value -gt 255; then
  50     AC_MSG_ERROR([$1 is given as $2. This is greater than 255 which is not allowed.])
  51   fi
  52   if test "x$cleaned_value" != "x$2"; then
  53     AC_MSG_WARN([Value for $1 has been sanitized from '$2' to '$cleaned_value'])
  54   fi
  55   $1=$cleaned_value
  56 ])
  57 
  58 AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
  59 [
  60   # Source the version numbers file
  61   . $AUTOCONF_DIR/version-numbers
  62 
  63   # Some non-version number information is set in that file
  64   AC_SUBST(LAUNCHER_NAME)
  65   AC_SUBST(PRODUCT_NAME)
  66   AC_SUBST(PRODUCT_SUFFIX)
  67   AC_SUBST(JDK_RC_PLATFORM_NAME)
  68   AC_SUBST(HOTSPOT_VM_DISTRO)













  69   AC_SUBST(MACOSX_BUNDLE_NAME_BASE)













  70   AC_SUBST(MACOSX_BUNDLE_ID_BASE)

















  71 
  72   # The vendor name, if any
  73   AC_ARG_WITH(vendor-name, [AS_HELP_STRING([--with-vendor-name],
  74       [Set vendor name. Among others, used to set the 'java.vendor'
  75        and 'java.vm.vendor' system properties. @<:@not specified@:>@])])
  76   if test "x$with_vendor_name" = xyes; then
  77     AC_MSG_ERROR([--with-vendor-name must have a value])
  78   elif [ ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ]; then
  79     AC_MSG_ERROR([--with-vendor-name contains non-printing characters: $with_vendor_name])
  80   elif test "x$with_vendor_name" != x; then
  81     # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty.
  82     # Otherwise we will use the value from "version-numbers" included above.
  83     COMPANY_NAME="$with_vendor_name"
  84   fi
  85   AC_SUBST(COMPANY_NAME)
  86 
  87   # The vendor URL, if any
  88   AC_ARG_WITH(vendor-url, [AS_HELP_STRING([--with-vendor-url],
  89       [Set the 'java.vendor.url' system property @<:@not specified@:>@])])
  90   if test "x$with_vendor_url" = xyes; then


< prev index next >