63 BASIC_DEPRECATED_ARG_WITH([user-release-suffix])
64 BASIC_DEPRECATED_ARG_WITH([build-number])
65 BASIC_DEPRECATED_ARG_WITH([version-major])
66 BASIC_DEPRECATED_ARG_WITH([version-minor])
67 BASIC_DEPRECATED_ARG_WITH([version-security])
68
69 # Source the version numbers file
70 . $AUTOCONF_DIR/version-numbers
71
72 # Some non-version number information is set in that file
73 AC_SUBST(LAUNCHER_NAME)
74 AC_SUBST(PRODUCT_NAME)
75 AC_SUBST(PRODUCT_SUFFIX)
76 AC_SUBST(JDK_RC_PLATFORM_NAME)
77 AC_SUBST(HOTSPOT_VM_DISTRO)
78 AC_SUBST(MACOSX_BUNDLE_NAME_BASE)
79 AC_SUBST(MACOSX_BUNDLE_ID_BASE)
80
81 # The vendor name, if any
82 AC_ARG_WITH(vendor-name, [AS_HELP_STRING([--with-vendor-name],
83 [Set vendor name @<:@not specified@:>@])])
84 if test "x$with_vendor_name" = xyes; then
85 AC_MSG_ERROR([--with-vendor-name must have a value])
86 elif [ ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ]; then
87 AC_MSG_ERROR([--with--vendor-name contains non-printing characters: $with_vendor_name])
88 else
89 COMPANY_NAME="$with_vendor_name"
90 fi
91 AC_SUBST(COMPANY_NAME)
92
93 # Override version from arguments
94
95 # If --with-version-string is set, process it first. It is possible to
96 # override parts with more specific flags, since these are processed later.
97 AC_ARG_WITH(version-string, [AS_HELP_STRING([--with-version-string],
98 [Set version string @<:@calculated@:>@])])
99 if test "x$with_version_string" = xyes; then
100 AC_MSG_ERROR([--with-version-string must have a value])
101 elif test "x$with_version_string" != x; then
102 # Additional [] needed to keep m4 from mangling shell constructs.
103 if [ [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ]; then
104 VERSION_FEATURE=${BASH_REMATCH[[1]]}
105 VERSION_INTERIM=${BASH_REMATCH[[3]]}
106 VERSION_UPDATE=${BASH_REMATCH[[5]]}
107 VERSION_PATCH=${BASH_REMATCH[[7]]}
108 VERSION_PRE=${BASH_REMATCH[[9]]}
109 version_plus_separator=${BASH_REMATCH[[11]]}
110 VERSION_BUILD=${BASH_REMATCH[[12]]}
111 VERSION_OPT=${BASH_REMATCH[[14]]}
|
63 BASIC_DEPRECATED_ARG_WITH([user-release-suffix])
64 BASIC_DEPRECATED_ARG_WITH([build-number])
65 BASIC_DEPRECATED_ARG_WITH([version-major])
66 BASIC_DEPRECATED_ARG_WITH([version-minor])
67 BASIC_DEPRECATED_ARG_WITH([version-security])
68
69 # Source the version numbers file
70 . $AUTOCONF_DIR/version-numbers
71
72 # Some non-version number information is set in that file
73 AC_SUBST(LAUNCHER_NAME)
74 AC_SUBST(PRODUCT_NAME)
75 AC_SUBST(PRODUCT_SUFFIX)
76 AC_SUBST(JDK_RC_PLATFORM_NAME)
77 AC_SUBST(HOTSPOT_VM_DISTRO)
78 AC_SUBST(MACOSX_BUNDLE_NAME_BASE)
79 AC_SUBST(MACOSX_BUNDLE_ID_BASE)
80
81 # The vendor name, if any
82 AC_ARG_WITH(vendor-name, [AS_HELP_STRING([--with-vendor-name],
83 [Set vendor name. Among others, used to set the 'java.vendor'
84 and 'java.vm.vendor' system properties. @<:@not specified@:>@])])
85 if test "x$with_vendor_name" = xyes; then
86 AC_MSG_ERROR([--with-vendor-name must have a value])
87 elif [ ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ]; then
88 AC_MSG_ERROR([--with-vendor-name contains non-printing characters: $with_vendor_name])
89 elif test "x$with_vendor_name" != x; then
90 # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty.
91 # Otherwise we will use the value from "version-numbers" included above.
92 COMPANY_NAME="$with_vendor_name"
93 fi
94 AC_SUBST(COMPANY_NAME)
95
96 # The vendor URL, if any
97 AC_ARG_WITH(vendor-url, [AS_HELP_STRING([--with-vendor-url],
98 [Set the 'java.vendor.url' system property @<:@not specified@:>@])])
99 if test "x$with_vendor_url" = xyes; then
100 AC_MSG_ERROR([--with-vendor-url must have a value])
101 elif [ ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ]; then
102 AC_MSG_ERROR([--with-vendor-url contains non-printing characters: $with_vendor_url])
103 else
104 VENDOR_URL="$with_vendor_url"
105 fi
106 AC_SUBST(VENDOR_URL)
107
108 # The vendor bug URL, if any
109 AC_ARG_WITH(vendor-bug-url, [AS_HELP_STRING([--with-vendor-bug-url],
110 [Set the 'java.vendor.url.bug' system property @<:@not specified@:>@])])
111 if test "x$with_vendor_bug_url" = xyes; then
112 AC_MSG_ERROR([--with-vendor-bug-url must have a value])
113 elif [ ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ]; then
114 AC_MSG_ERROR([--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url])
115 else
116 VENDOR_URL_BUG="$with_vendor_bug_url"
117 fi
118 AC_SUBST(VENDOR_URL_BUG)
119
120 # The vendor VM bug URL, if any
121 AC_ARG_WITH(vendor-vm-bug-url, [AS_HELP_STRING([--with-vendor-vm-bug-url],
122 [Sets the bug URL which will be displayed when the VM crashes @<:@not specified@:>@])])
123 if test "x$with_vendor_vm_bug_url" = xyes; then
124 AC_MSG_ERROR([--with-vendor-vm-bug-url must have a value])
125 elif [ ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ]; then
126 AC_MSG_ERROR([--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url])
127 else
128 VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url"
129 fi
130 AC_SUBST(VENDOR_URL_VM_BUG)
131
132 # Override version from arguments
133
134 # If --with-version-string is set, process it first. It is possible to
135 # override parts with more specific flags, since these are processed later.
136 AC_ARG_WITH(version-string, [AS_HELP_STRING([--with-version-string],
137 [Set version string @<:@calculated@:>@])])
138 if test "x$with_version_string" = xyes; then
139 AC_MSG_ERROR([--with-version-string must have a value])
140 elif test "x$with_version_string" != x; then
141 # Additional [] needed to keep m4 from mangling shell constructs.
142 if [ [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ]; then
143 VERSION_FEATURE=${BASH_REMATCH[[1]]}
144 VERSION_INTERIM=${BASH_REMATCH[[3]]}
145 VERSION_UPDATE=${BASH_REMATCH[[5]]}
146 VERSION_PATCH=${BASH_REMATCH[[7]]}
147 VERSION_PRE=${BASH_REMATCH[[9]]}
148 version_plus_separator=${BASH_REMATCH[[11]]}
149 VERSION_BUILD=${BASH_REMATCH[[12]]}
150 VERSION_OPT=${BASH_REMATCH[[14]]}
|