author | herrick |
Thu, 28 Mar 2019 13:49:38 -0400 | |
branch | JDK-8200758-branch |
changeset 57292 | 7a683c461b80 |
parent 53857 | 7a034b1de98b |
child 54516 | 5b1ad4cbe59e |
permissions | -rw-r--r-- |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
1 |
# |
53833 | 2 |
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
4 |
# |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
10 |
# |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
15 |
# accompanied this code). |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
16 |
# |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
20 |
# |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
23 |
# questions. |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
24 |
# |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
25 |
|
34596
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
26 |
############################################################################### |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
27 |
# Check which variant of the JDK that we want to build. |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
28 |
# Currently we have: |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
29 |
# normal: standard edition |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
30 |
# but the custom make system may add other variants |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
31 |
# |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
32 |
# Effectively the JDK variant gives a name to a specific set of |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
33 |
# modules to compile into the JDK. |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
34 |
AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_VARIANT], |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
35 |
[ |
51824 | 36 |
# Deprecated in JDK 12 |
37 |
BASIC_DEPRECATED_ARG_WITH([jdk-variant]) |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
38 |
]) |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
39 |
|
22460
0273c023680c
8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents:
17819
diff
changeset
|
40 |
############################################################################### |
34596
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
41 |
# Set the debug level |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
42 |
# release: no debug information, all optimizations, no asserts. |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
43 |
# optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
44 |
# fastdebug: debug information (-g), all optimizations, all asserts |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
45 |
# slowdebug: debug information (-g), no optimizations, all asserts |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
46 |
AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_LEVEL], |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
47 |
[ |
20363 | 48 |
DEBUG_LEVEL="release" |
49 |
AC_MSG_CHECKING([which debug level to use]) |
|
50 |
AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug], |
|
51 |
[set the debug level to fastdebug (shorthand for --with-debug-level=fastdebug) @<:@disabled@:>@])], |
|
52 |
[ |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
53 |
ENABLE_DEBUG="${enableval}" |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
54 |
DEBUG_LEVEL="fastdebug" |
20363 | 55 |
], [ENABLE_DEBUG="no"]) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
56 |
|
20363 | 57 |
AC_ARG_WITH([debug-level], [AS_HELP_STRING([--with-debug-level], |
35747 | 58 |
[set the debug level (release, fastdebug, slowdebug, optimized) @<:@release@:>@])], |
20363 | 59 |
[ |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
60 |
DEBUG_LEVEL="${withval}" |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
61 |
if test "x$ENABLE_DEBUG" = xyes; then |
20363 | 62 |
AC_MSG_ERROR([You cannot use both --enable-debug and --with-debug-level at the same time.]) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
63 |
fi |
20363 | 64 |
]) |
65 |
AC_MSG_RESULT([$DEBUG_LEVEL]) |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
66 |
|
20363 | 67 |
if test "x$DEBUG_LEVEL" != xrelease && \ |
23424
65039fb99fda
8037298: Export HotSpots 'optimized' (i.e. not-product) configuration in the top-level configure/makefile
simonis
parents:
22721
diff
changeset
|
68 |
test "x$DEBUG_LEVEL" != xoptimized && \ |
20363 | 69 |
test "x$DEBUG_LEVEL" != xfastdebug && \ |
70 |
test "x$DEBUG_LEVEL" != xslowdebug; then |
|
35747 | 71 |
AC_MSG_ERROR([Allowed debug levels are: release, fastdebug, slowdebug and optimized]) |
20363 | 72 |
fi |
37402 | 73 |
|
74 |
# Translate DEBUG_LEVEL to debug level used by Hotspot |
|
75 |
HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" |
|
76 |
if test "x$DEBUG_LEVEL" = xrelease; then |
|
77 |
HOTSPOT_DEBUG_LEVEL="product" |
|
78 |
elif test "x$DEBUG_LEVEL" = xslowdebug; then |
|
79 |
HOTSPOT_DEBUG_LEVEL="debug" |
|
80 |
fi |
|
81 |
||
82 |
if test "x$DEBUG_LEVEL" = xoptimized; then |
|
83 |
# The debug level 'optimized' is a little special because it is currently only |
|
84 |
# applicable to the HotSpot build where it means to build a completely |
|
85 |
# optimized version of the VM without any debugging code (like for the |
|
86 |
# 'release' debug level which is called 'product' in the HotSpot build) but |
|
87 |
# with the exception that it can contain additional code which is otherwise |
|
88 |
# protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to |
|
89 |
# test new and/or experimental features which are not intended for customer |
|
90 |
# shipment. Because these new features need to be tested and benchmarked in |
|
91 |
# real world scenarios, we want to build the containing JDK at the 'release' |
|
92 |
# debug level. |
|
93 |
DEBUG_LEVEL="release" |
|
94 |
fi |
|
95 |
||
96 |
AC_SUBST(HOTSPOT_DEBUG_LEVEL) |
|
97 |
AC_SUBST(DEBUG_LEVEL) |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
98 |
]) |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
99 |
|
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
100 |
############################################################################### |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
101 |
# |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
102 |
# Should we build only OpenJDK even if closed sources are present? |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
103 |
# |
15069
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
104 |
AC_DEFUN_ONCE([JDKOPT_SETUP_OPEN_OR_CUSTOM], |
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
105 |
[ |
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
106 |
AC_ARG_ENABLE([openjdk-only], [AS_HELP_STRING([--enable-openjdk-only], |
20363 | 107 |
[suppress building custom source even if present @<:@disabled@:>@])],,[enable_openjdk_only="no"]) |
14111 | 108 |
|
39384
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
109 |
AC_MSG_CHECKING([if custom source is suppressed (openjdk-only)]) |
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
110 |
AC_MSG_RESULT([$enable_openjdk_only]) |
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
111 |
if test "x$enable_openjdk_only" = "xyes"; then |
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
112 |
SUPPRESS_CUSTOM_EXTENSIONS="true" |
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
113 |
elif test "x$enable_openjdk_only" = "xno"; then |
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
114 |
SUPPRESS_CUSTOM_EXTENSIONS="false" |
15069
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
115 |
else |
39384
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
116 |
AC_MSG_ERROR([Invalid value for --enable-openjdk-only: $enable_openjdk_only]) |
15069
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
117 |
fi |
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
118 |
]) |
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
119 |
|
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
120 |
AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS], |
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
121 |
[ |
41046 | 122 |
# Should we build a JDK without a graphical UI? |
123 |
AC_MSG_CHECKING([headless only]) |
|
124 |
AC_ARG_ENABLE([headless-only], [AS_HELP_STRING([--enable-headless-only], |
|
125 |
[only build headless (no GUI) support @<:@disabled@:>@])]) |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
126 |
|
41046 | 127 |
if test "x$enable_headless_only" = "xyes"; then |
128 |
ENABLE_HEADLESS_ONLY="true" |
|
129 |
AC_MSG_RESULT([yes]) |
|
130 |
elif test "x$enable_headless_only" = "xno"; then |
|
131 |
ENABLE_HEADLESS_ONLY="false" |
|
132 |
AC_MSG_RESULT([no]) |
|
133 |
elif test "x$enable_headless_only" = "x"; then |
|
134 |
ENABLE_HEADLESS_ONLY="false" |
|
135 |
AC_MSG_RESULT([no]) |
|
136 |
else |
|
137 |
AC_MSG_ERROR([--enable-headless-only can only take yes or no]) |
|
20363 | 138 |
fi |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
139 |
|
41046 | 140 |
AC_SUBST(ENABLE_HEADLESS_ONLY) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
141 |
|
44727 | 142 |
# Should we build the complete docs, or just a lightweight version? |
143 |
AC_ARG_ENABLE([full-docs], [AS_HELP_STRING([--enable-full-docs], |
|
44734 | 144 |
[build complete documentation @<:@enabled if all tools found@:>@])]) |
44727 | 145 |
|
146 |
# Verify dependencies |
|
147 |
AC_MSG_CHECKING([for graphviz dot]) |
|
148 |
if test "x$DOT" != "x"; then |
|
149 |
AC_MSG_RESULT([yes]) |
|
150 |
else |
|
151 |
AC_MSG_RESULT([no, cannot generate full docs]) |
|
152 |
FULL_DOCS_DEP_MISSING=true |
|
153 |
fi |
|
154 |
||
44734 | 155 |
AC_MSG_CHECKING([for pandoc]) |
156 |
if test "x$PANDOC" != "x"; then |
|
157 |
AC_MSG_RESULT([yes]) |
|
158 |
else |
|
159 |
AC_MSG_RESULT([no, cannot generate full docs]) |
|
160 |
FULL_DOCS_DEP_MISSING=true |
|
161 |
fi |
|
162 |
||
44727 | 163 |
AC_MSG_CHECKING([full docs]) |
164 |
if test "x$enable_full_docs" = xyes; then |
|
165 |
if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then |
|
166 |
AC_MSG_RESULT([no, missing dependencies]) |
|
167 |
HELP_MSG_MISSING_DEPENDENCY([dot]) |
|
168 |
AC_MSG_ERROR([Cannot enable full docs with missing dependencies. See above. $HELP_MSG]) |
|
169 |
else |
|
170 |
ENABLE_FULL_DOCS=true |
|
171 |
AC_MSG_RESULT([yes, forced]) |
|
172 |
fi |
|
173 |
elif test "x$enable_full_docs" = xno; then |
|
174 |
ENABLE_FULL_DOCS=false |
|
175 |
AC_MSG_RESULT([no, forced]) |
|
176 |
elif test "x$enable_full_docs" = x; then |
|
44734 | 177 |
# Check for prerequisites |
178 |
if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then |
|
179 |
ENABLE_FULL_DOCS=false |
|
180 |
AC_MSG_RESULT([no, missing dependencies]) |
|
181 |
else |
|
182 |
ENABLE_FULL_DOCS=true |
|
183 |
AC_MSG_RESULT([yes, dependencies present]) |
|
184 |
fi |
|
44727 | 185 |
else |
186 |
AC_MSG_ERROR([--enable-full-docs can only take yes or no]) |
|
187 |
fi |
|
188 |
||
189 |
AC_SUBST(ENABLE_FULL_DOCS) |
|
190 |
||
20363 | 191 |
# Choose cacerts source file |
192 |
AC_ARG_WITH(cacerts-file, [AS_HELP_STRING([--with-cacerts-file], |
|
193 |
[specify alternative cacerts file])]) |
|
47255
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
194 |
AC_MSG_CHECKING([for cacerts file]) |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
195 |
if test "x$with_cacerts_file" == x; then |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
196 |
AC_MSG_RESULT([default]) |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
197 |
else |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
198 |
CACERTS_FILE=$with_cacerts_file |
47255
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
199 |
if test ! -f "$CACERTS_FILE"; then |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
200 |
AC_MSG_RESULT([fail]) |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
201 |
AC_MSG_ERROR([Specified cacerts file "$CACERTS_FILE" does not exist]) |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
202 |
fi |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
203 |
AC_MSG_RESULT([$CACERTS_FILE]) |
20363 | 204 |
fi |
205 |
AC_SUBST(CACERTS_FILE) |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
206 |
|
20363 | 207 |
# Enable or disable unlimited crypto |
42303
57efda72d3ad
8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents:
42299
diff
changeset
|
208 |
AC_ARG_ENABLE(unlimited-crypto, [AS_HELP_STRING([--disable-unlimited-crypto], |
57efda72d3ad
8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents:
42299
diff
changeset
|
209 |
[Disable unlimited crypto policy @<:@enabled@:>@])],, |
57efda72d3ad
8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents:
42299
diff
changeset
|
210 |
[enable_unlimited_crypto=yes]) |
20363 | 211 |
if test "x$enable_unlimited_crypto" = "xyes"; then |
14112
1b447f5cb0d1
8001897: build-infra: misc adjustments to configure script
ihse
parents:
14111
diff
changeset
|
212 |
UNLIMITED_CRYPTO=true |
20363 | 213 |
else |
14112
1b447f5cb0d1
8001897: build-infra: misc adjustments to configure script
ihse
parents:
14111
diff
changeset
|
214 |
UNLIMITED_CRYPTO=false |
20363 | 215 |
fi |
216 |
AC_SUBST(UNLIMITED_CRYPTO) |
|
14112
1b447f5cb0d1
8001897: build-infra: misc adjustments to configure script
ihse
parents:
14111
diff
changeset
|
217 |
|
35747 | 218 |
# Should we build the serviceability agent (SA)? |
219 |
INCLUDE_SA=true |
|
47687 | 220 |
if HOTSPOT_CHECK_JVM_VARIANT(zero); then |
35747 | 221 |
INCLUDE_SA=false |
222 |
fi |
|
223 |
if test "x$OPENJDK_TARGET_OS" = xaix ; then |
|
224 |
INCLUDE_SA=false |
|
225 |
fi |
|
49920
dbfef18ad510
8202200: set INCLUDE_SA to false on s390x by default
mbaesken
parents:
47933
diff
changeset
|
226 |
if test "x$OPENJDK_TARGET_CPU" = xs390x ; then |
dbfef18ad510
8202200: set INCLUDE_SA to false on s390x by default
mbaesken
parents:
47933
diff
changeset
|
227 |
INCLUDE_SA=false |
dbfef18ad510
8202200: set INCLUDE_SA to false on s390x by default
mbaesken
parents:
47933
diff
changeset
|
228 |
fi |
35747 | 229 |
AC_SUBST(INCLUDE_SA) |
230 |
||
20363 | 231 |
# Compress jars |
232 |
COMPRESS_JARS=false |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
233 |
|
20363 | 234 |
AC_SUBST(COMPRESS_JARS) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
235 |
|
33926
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
236 |
# Setup default copyright year. Mostly overridden when building close to a new year. |
27584
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
237 |
AC_ARG_WITH(copyright-year, [AS_HELP_STRING([--with-copyright-year], |
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
238 |
[Set copyright year value for build @<:@current year@:>@])]) |
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
239 |
if test "x$with_copyright_year" = xyes; then |
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
240 |
AC_MSG_ERROR([Copyright year must have a value]) |
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
241 |
elif test "x$with_copyright_year" != x; then |
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
242 |
COPYRIGHT_YEAR="$with_copyright_year" |
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
243 |
else |
38843
2b141e8e916f
8158535: Configure script uses basic tools directly in many places
erikj
parents:
38546
diff
changeset
|
244 |
COPYRIGHT_YEAR=`$DATE +'%Y'` |
27584
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
245 |
fi |
20363 | 246 |
AC_SUBST(COPYRIGHT_YEAR) |
52734
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
247 |
|
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
248 |
# Override default library path |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
249 |
AC_ARG_WITH([jni-libpath], [AS_HELP_STRING([--with-jni-libpath], |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
250 |
[override default JNI library search path])]) |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
251 |
AC_MSG_CHECKING([for jni library path]) |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
252 |
if test "x${with_jni_libpath}" = "x" || test "x${with_jni_libpath}" = "xno"; then |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
253 |
AC_MSG_RESULT([default]) |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
254 |
elif test "x${with_jni_libpath}" = "xyes"; then |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
255 |
AC_MSG_RESULT([invalid]) |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
256 |
AC_MSG_ERROR([The --with-jni-libpath option requires an argument.]) |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
257 |
else |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
258 |
HOTSPOT_OVERRIDE_LIBPATH=${with_jni_libpath} |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
259 |
if test "x$OPENJDK_TARGET_OS" != "xlinux" && |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
260 |
test "x$OPENJDK_TARGET_OS" != "xbsd" && |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
261 |
test "x$OPENJDK_TARGET_OS" != "xaix"; then |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
262 |
AC_MSG_RESULT([fail]) |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
263 |
AC_MSG_ERROR([Overriding JNI library path is supported only on Linux, BSD and AIX.]) |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
264 |
fi |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
265 |
AC_MSG_RESULT(${HOTSPOT_OVERRIDE_LIBPATH}) |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
266 |
fi |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
267 |
AC_SUBST(HOTSPOT_OVERRIDE_LIBPATH) |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
52714
diff
changeset
|
268 |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
269 |
]) |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
270 |
|
33926
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
271 |
############################################################################### |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
272 |
# |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
273 |
# Enable or disable the elliptic curve crypto implementation |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
274 |
# |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
275 |
AC_DEFUN_ONCE([JDKOPT_DETECT_INTREE_EC], |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
276 |
[ |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
277 |
AC_MSG_CHECKING([if elliptic curve crypto implementation is present]) |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
278 |
|
47217 | 279 |
if test -d "${TOPDIR}/src/jdk.crypto.ec/share/native/libsunec/impl"; then |
43388
509c3ebb5c97
8004842: Unify values of boolean make variables set in configure to true/false
ihse
parents:
43383
diff
changeset
|
280 |
ENABLE_INTREE_EC=true |
33926
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
281 |
AC_MSG_RESULT([yes]) |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
282 |
else |
43388
509c3ebb5c97
8004842: Unify values of boolean make variables set in configure to true/false
ihse
parents:
43383
diff
changeset
|
283 |
ENABLE_INTREE_EC=false |
33926
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
284 |
AC_MSG_RESULT([no]) |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
285 |
fi |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
286 |
|
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
287 |
AC_SUBST(ENABLE_INTREE_EC) |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
288 |
]) |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
289 |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
290 |
AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS], |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
291 |
[ |
20363 | 292 |
# |
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
293 |
# NATIVE_DEBUG_SYMBOLS |
20363 | 294 |
# This must be done after the toolchain is setup, since we're looking at objcopy. |
295 |
# |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
296 |
AC_MSG_CHECKING([what type of native debug symbols to use]) |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
297 |
AC_ARG_WITH([native-debug-symbols], |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
298 |
[AS_HELP_STRING([--with-native-debug-symbols], |
35747 | 299 |
[set the native debug symbol configuration (none, internal, external, zipped) @<:@varying@:>@])], |
34605
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
300 |
[ |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
301 |
if test "x$OPENJDK_TARGET_OS" = xaix; then |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
302 |
if test "x$withval" = xexternal || test "x$withval" = xzipped; then |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
303 |
AC_MSG_ERROR([AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols]) |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
304 |
fi |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
305 |
fi |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
306 |
], |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
307 |
[ |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
308 |
if test "x$OPENJDK_TARGET_OS" = xaix; then |
47933
19122c10fc52
8191205: Set native-debug-symbols default to "external"
ihse
parents:
47701
diff
changeset
|
309 |
# AIX doesn't support 'external' so use 'internal' as default |
34605
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
310 |
with_native_debug_symbols="internal" |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
311 |
else |
35747 | 312 |
if test "x$STATIC_BUILD" = xtrue; then |
313 |
with_native_debug_symbols="none" |
|
314 |
else |
|
47933
19122c10fc52
8191205: Set native-debug-symbols default to "external"
ihse
parents:
47701
diff
changeset
|
315 |
with_native_debug_symbols="external" |
35747 | 316 |
fi |
34605
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
317 |
fi |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
318 |
]) |
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
319 |
NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
320 |
AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS]) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
321 |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
322 |
if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
323 |
|
34495 | 324 |
if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then |
325 |
if test "x$OBJCOPY" = x; then |
|
326 |
# enabling of enable-debug-symbols and can't find objcopy |
|
327 |
# this is an error |
|
328 |
AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols]) |
|
329 |
fi |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
330 |
fi |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
331 |
|
35032 | 332 |
COMPILE_WITH_DEBUG_SYMBOLS=true |
333 |
COPY_DEBUG_SYMBOLS=true |
|
334 |
ZIP_EXTERNAL_DEBUG_SYMBOLS=true |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
335 |
elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then |
35032 | 336 |
COMPILE_WITH_DEBUG_SYMBOLS=false |
337 |
COPY_DEBUG_SYMBOLS=false |
|
338 |
ZIP_EXTERNAL_DEBUG_SYMBOLS=false |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
339 |
elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then |
35032 | 340 |
COMPILE_WITH_DEBUG_SYMBOLS=true |
341 |
COPY_DEBUG_SYMBOLS=false |
|
342 |
ZIP_EXTERNAL_DEBUG_SYMBOLS=false |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
343 |
elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
344 |
|
34495 | 345 |
if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then |
346 |
if test "x$OBJCOPY" = x; then |
|
347 |
# enabling of enable-debug-symbols and can't find objcopy |
|
348 |
# this is an error |
|
349 |
AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols]) |
|
350 |
fi |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
351 |
fi |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
352 |
|
35032 | 353 |
COMPILE_WITH_DEBUG_SYMBOLS=true |
354 |
COPY_DEBUG_SYMBOLS=true |
|
355 |
ZIP_EXTERNAL_DEBUG_SYMBOLS=false |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
356 |
else |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
357 |
AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped]) |
20363 | 358 |
fi |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
359 |
|
35032 | 360 |
AC_SUBST(COMPILE_WITH_DEBUG_SYMBOLS) |
361 |
AC_SUBST(COPY_DEBUG_SYMBOLS) |
|
362 |
AC_SUBST(ZIP_EXTERNAL_DEBUG_SYMBOLS) |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
363 |
]) |
29305
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
364 |
|
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
365 |
################################################################################ |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
366 |
# |
53857 | 367 |
# Native and Java code coverage |
29305
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
368 |
# |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
369 |
AC_DEFUN_ONCE([JDKOPT_SETUP_CODE_COVERAGE], |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
370 |
[ |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
371 |
AC_ARG_ENABLE(native-coverage, [AS_HELP_STRING([--enable-native-coverage], |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
372 |
[enable native compilation with code coverage data@<:@disabled@:>@])]) |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
373 |
GCOV_ENABLED="false" |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
374 |
if test "x$enable_native_coverage" = "xyes"; then |
53833 | 375 |
case $TOOLCHAIN_TYPE in |
376 |
gcc | clang) |
|
377 |
AC_MSG_CHECKING([if native coverage is enabled]) |
|
378 |
AC_MSG_RESULT([yes]) |
|
379 |
GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" |
|
380 |
GCOV_LDFLAGS="-fprofile-arcs" |
|
381 |
JVM_CFLAGS="$JVM_CFLAGS $GCOV_CFLAGS" |
|
382 |
JVM_LDFLAGS="$JVM_LDFLAGS $GCOV_LDFLAGS" |
|
383 |
CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" |
|
384 |
CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" |
|
385 |
CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" |
|
386 |
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" |
|
387 |
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" |
|
388 |
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" |
|
389 |
GCOV_ENABLED="true" |
|
390 |
;; |
|
391 |
*) |
|
392 |
AC_MSG_ERROR([--enable-native-coverage only works with toolchain type gcc or clang]) |
|
393 |
;; |
|
394 |
esac |
|
29305
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
395 |
elif test "x$enable_native_coverage" = "xno"; then |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
396 |
AC_MSG_CHECKING([if native coverage is enabled]) |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
397 |
AC_MSG_RESULT([no]) |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
398 |
elif test "x$enable_native_coverage" != "x"; then |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
399 |
AC_MSG_ERROR([--enable-native-coverage can only be assigned "yes" or "no"]) |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
400 |
fi |
52774
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
401 |
AC_SUBST(GCOV_ENABLED) |
29305
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
402 |
|
52774
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
403 |
AC_ARG_WITH(jcov, [AS_HELP_STRING([--with-jcov], |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
404 |
[jcov library location])]) |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
405 |
AC_ARG_WITH(jcov-input-jdk, [AS_HELP_STRING([--with-jcov-input-jdk], |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
406 |
[jdk image to instrument])]) |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
407 |
JCOV_HOME= |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
408 |
JCOV_INPUT_JDK= |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
409 |
JCOV_ENABLED= |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
410 |
if test "x$with_jcov" = "x" ; then |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
411 |
JCOV_ENABLED="false" |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
412 |
else |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
413 |
JCOV_HOME="$with_jcov" |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
414 |
if test ! -f "$JCOV_HOME/lib/jcov.jar"; then |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
415 |
AC_MSG_RESULT([fail]) |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
416 |
AC_MSG_ERROR([Invalid JCov bundle: "$JCOV_HOME/lib/jcov.jar" does not exist]) |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
417 |
fi |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
418 |
JCOV_ENABLED="true" |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
419 |
BASIC_FIXUP_PATH(JCOV_HOME) |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
420 |
if test "x$with_jcov_input_jdk" != "x" ; then |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
421 |
JCOV_INPUT_JDK="$with_jcov_input_jdk" |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
422 |
if test ! -f "$JCOV_INPUT_JDK/bin/java$EXE_SUFFIX"; then |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
423 |
AC_MSG_RESULT([fail]) |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
424 |
AC_MSG_ERROR([Invalid JDK bundle: "$JCOV_INPUT_JDK/bin/java$EXE_SUFFIX" does not exist]) |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
425 |
fi |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
426 |
BASIC_FIXUP_PATH(JCOV_INPUT_JDK) |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
427 |
fi |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
428 |
fi |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
429 |
AC_SUBST(JCOV_ENABLED) |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
430 |
AC_SUBST(JCOV_HOME) |
56ca125c973b
8214309: Enhance makefiles to allow generating JCov instrumented build
shurailine
parents:
52734
diff
changeset
|
431 |
AC_SUBST(JCOV_INPUT_JDK) |
29305
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
432 |
]) |
33562
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
433 |
|
47479 | 434 |
############################################################################### |
435 |
# |
|
436 |
# AddressSanitizer |
|
437 |
# |
|
438 |
AC_DEFUN_ONCE([JDKOPT_SETUP_ADDRESS_SANITIZER], |
|
439 |
[ |
|
440 |
AC_ARG_ENABLE(asan, [AS_HELP_STRING([--enable-asan], |
|
441 |
[enable AddressSanitizer if possible @<:@disabled@:>@])]) |
|
442 |
ASAN_ENABLED="no" |
|
443 |
if test "x$enable_asan" = "xyes"; then |
|
444 |
case $TOOLCHAIN_TYPE in |
|
445 |
gcc | clang) |
|
446 |
AC_MSG_CHECKING([if asan is enabled]) |
|
447 |
AC_MSG_RESULT([yes]) |
|
448 |
ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" |
|
449 |
ASAN_LDFLAGS="-fsanitize=address" |
|
450 |
JVM_CFLAGS="$JVM_CFLAGS $ASAN_CFLAGS" |
|
451 |
JVM_LDFLAGS="$JVM_LDFLAGS $ASAN_LDFLAGS" |
|
452 |
CFLAGS_JDKLIB="$CFLAGS_JDKLIB $ASAN_CFLAGS" |
|
453 |
CFLAGS_JDKEXE="$CFLAGS_JDKEXE $ASAN_CFLAGS" |
|
454 |
CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $ASAN_CFLAGS" |
|
455 |
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $ASAN_CFLAGS" |
|
456 |
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $ASAN_LDFLAGS" |
|
457 |
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $ASAN_LDFLAGS" |
|
458 |
ASAN_ENABLED="yes" |
|
459 |
;; |
|
460 |
*) |
|
461 |
AC_MSG_ERROR([--enable-asan only works with toolchain type gcc or clang]) |
|
462 |
;; |
|
463 |
esac |
|
464 |
elif test "x$enable_asan" = "xno"; then |
|
465 |
AC_MSG_CHECKING([if asan is enabled]) |
|
466 |
AC_MSG_RESULT([no]) |
|
467 |
elif test "x$enable_asan" != "x"; then |
|
468 |
AC_MSG_ERROR([--enable-asan can only be assigned "yes" or "no"]) |
|
469 |
fi |
|
470 |
||
471 |
AC_SUBST(ASAN_ENABLED) |
|
472 |
]) |
|
473 |
||
33562
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
474 |
################################################################################ |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
475 |
# |
35747 | 476 |
# Static build support. When enabled will generate static |
33562
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
477 |
# libraries instead of shared libraries for all JDK libs. |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
478 |
# |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
479 |
AC_DEFUN_ONCE([JDKOPT_SETUP_STATIC_BUILD], |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
480 |
[ |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
481 |
AC_ARG_ENABLE([static-build], [AS_HELP_STRING([--enable-static-build], |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
482 |
[enable static library build @<:@disabled@:>@])]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
483 |
STATIC_BUILD=false |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
484 |
if test "x$enable_static_build" = "xyes"; then |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
485 |
AC_MSG_CHECKING([if static build is enabled]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
486 |
AC_MSG_RESULT([yes]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
487 |
if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
488 |
AC_MSG_ERROR([--enable-static-build is only supported for macosx builds]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
489 |
fi |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
490 |
STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
491 |
CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
492 |
CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
493 |
STATIC_BUILD=true |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
494 |
elif test "x$enable_static_build" = "xno"; then |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
495 |
AC_MSG_CHECKING([if static build is enabled]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
496 |
AC_MSG_RESULT([no]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
497 |
elif test "x$enable_static_build" != "x"; then |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
498 |
AC_MSG_ERROR([--enable-static-build can only be assigned "yes" or "no"]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
499 |
fi |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
500 |
|
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
501 |
AC_SUBST(STATIC_BUILD) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
502 |
]) |
36506 | 503 |
|
504 |
################################################################################ |
|
505 |
# |
|
37035
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
506 |
# jlink options. |
36506 | 507 |
# We always keep packaged modules in JDK image. |
508 |
# |
|
509 |
AC_DEFUN_ONCE([JDKOPT_SETUP_JLINK_OPTIONS], |
|
510 |
[ |
|
511 |
AC_ARG_ENABLE([keep-packaged-modules], [AS_HELP_STRING([--disable-keep-packaged-modules], |
|
512 |
[Do not keep packaged modules in jdk image @<:@enable@:>@])]) |
|
513 |
||
43046
717ce6d4eaa1
8171409: Create a smoother configure experience on macosx
ihse
parents:
42979
diff
changeset
|
514 |
AC_MSG_CHECKING([if packaged modules are kept]) |
36506 | 515 |
if test "x$enable_keep_packaged_modules" = "xyes"; then |
516 |
AC_MSG_RESULT([yes]) |
|
517 |
JLINK_KEEP_PACKAGED_MODULES=true |
|
518 |
elif test "x$enable_keep_packaged_modules" = "xno"; then |
|
519 |
AC_MSG_RESULT([no]) |
|
520 |
JLINK_KEEP_PACKAGED_MODULES=false |
|
521 |
elif test "x$enable_keep_packaged_modules" = "x"; then |
|
522 |
AC_MSG_RESULT([yes (default)]) |
|
523 |
JLINK_KEEP_PACKAGED_MODULES=true |
|
524 |
else |
|
43046
717ce6d4eaa1
8171409: Create a smoother configure experience on macosx
ihse
parents:
42979
diff
changeset
|
525 |
AC_MSG_RESULT([error]) |
36506 | 526 |
AC_MSG_ERROR([--enable-keep-packaged-modules accepts no argument]) |
527 |
fi |
|
528 |
||
529 |
AC_SUBST(JLINK_KEEP_PACKAGED_MODULES) |
|
530 |
]) |
|
37035
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
531 |
|
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
532 |
################################################################################ |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
533 |
# |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
534 |
# Check if building of the jtreg failure handler should be enabled. |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
535 |
# |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
536 |
AC_DEFUN_ONCE([JDKOPT_ENABLE_DISABLE_FAILURE_HANDLER], |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
537 |
[ |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
538 |
AC_ARG_ENABLE([jtreg-failure-handler], [AS_HELP_STRING([--enable-jtreg-failure-handler], |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
539 |
[forces build of the jtreg failure handler to be enabled, missing dependencies |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
540 |
become fatal errors. Default is auto, where the failure handler is built if all |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
541 |
dependencies are present and otherwise just disabled.])]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
542 |
|
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
543 |
AC_MSG_CHECKING([if jtreg failure handler should be built]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
544 |
|
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
545 |
if test "x$enable_jtreg_failure_handler" = "xyes"; then |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
546 |
if test "x$JT_HOME" = "x"; then |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
547 |
AC_MSG_ERROR([Cannot enable jtreg failure handler without jtreg.]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
548 |
else |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
549 |
BUILD_FAILURE_HANDLER=true |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
550 |
AC_MSG_RESULT([yes, forced]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
551 |
fi |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
552 |
elif test "x$enable_jtreg_failure_handler" = "xno"; then |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
553 |
BUILD_FAILURE_HANDLER=false |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
554 |
AC_MSG_RESULT([no, forced]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
555 |
elif test "x$enable_jtreg_failure_handler" = "xauto" \ |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
556 |
|| test "x$enable_jtreg_failure_handler" = "x"; then |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
557 |
if test "x$JT_HOME" = "x"; then |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
558 |
BUILD_FAILURE_HANDLER=false |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
559 |
AC_MSG_RESULT([no, missing jtreg]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
560 |
else |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
561 |
BUILD_FAILURE_HANDLER=true |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
562 |
AC_MSG_RESULT([yes, jtreg present]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
563 |
fi |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
564 |
else |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
565 |
AC_MSG_ERROR([Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
566 |
fi |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
567 |
|
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
568 |
AC_SUBST(BUILD_FAILURE_HANDLER) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
569 |
]) |
38546
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
570 |
|
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
571 |
################################################################################ |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
572 |
# |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
573 |
# Enable or disable generation of the classlist at build time |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
574 |
# |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
575 |
AC_DEFUN_ONCE([JDKOPT_ENABLE_DISABLE_GENERATE_CLASSLIST], |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
576 |
[ |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
577 |
AC_ARG_ENABLE([generate-classlist], [AS_HELP_STRING([--disable-generate-classlist], |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
578 |
[forces enabling or disabling of the generation of a CDS classlist at build time. |
47060 | 579 |
Default is to generate it when either the server or client JVMs are built and |
580 |
enable-cds is true.])]) |
|
38546
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
581 |
|
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
582 |
# Check if it's likely that it's possible to generate the classlist. Depending |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
583 |
# on exact jvm configuration it could be possible anyway. |
52039
15a9f90aa00f
8211837: Creation of the default CDS Archive should depend on ENABLE_CDS
simonis
parents:
52030
diff
changeset
|
584 |
if test "x$ENABLE_CDS" = "xtrue" && (HOTSPOT_CHECK_JVM_VARIANT(server) || HOTSPOT_CHECK_JVM_VARIANT(client) || HOTSPOT_CHECK_JVM_FEATURE(cds)); then |
38546
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
585 |
ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
586 |
else |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
587 |
ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
588 |
fi |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
589 |
|
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
590 |
AC_MSG_CHECKING([if the CDS classlist generation should be enabled]) |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
591 |
if test "x$enable_generate_classlist" = "xyes"; then |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
592 |
AC_MSG_RESULT([yes, forced]) |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
593 |
ENABLE_GENERATE_CLASSLIST="true" |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
594 |
if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then |
47060 | 595 |
AC_MSG_WARN([Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS]) |
38546
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
596 |
fi |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
597 |
elif test "x$enable_generate_classlist" = "xno"; then |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
598 |
AC_MSG_RESULT([no, forced]) |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
599 |
ENABLE_GENERATE_CLASSLIST="false" |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
600 |
elif test "x$enable_generate_classlist" = "x"; then |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
601 |
if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
602 |
AC_MSG_RESULT([yes]) |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
603 |
ENABLE_GENERATE_CLASSLIST="true" |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
604 |
else |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
605 |
AC_MSG_RESULT([no]) |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
606 |
ENABLE_GENERATE_CLASSLIST="false" |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
607 |
fi |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
608 |
else |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
609 |
AC_MSG_ERROR([Invalid value for --enable-generate-classlist: $enable_generate_classlist]) |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
610 |
fi |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
611 |
|
43383 | 612 |
AC_SUBST(ENABLE_GENERATE_CLASSLIST) |
38546
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
613 |
]) |
50590
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
614 |
|
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
615 |
################################################################################ |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
616 |
# |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
617 |
# Optionally filter resource translations |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
618 |
# |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
619 |
AC_DEFUN([JDKOPT_EXCLUDE_TRANSLATIONS], |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
620 |
[ |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
621 |
AC_ARG_WITH([exclude-translations], [AS_HELP_STRING([--with-exclude-translations], |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
622 |
[a comma separated list of locales to exclude translations for. Default is |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
623 |
to include all translations present in the source.])]) |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
624 |
|
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
625 |
EXCLUDE_TRANSLATIONS="" |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
626 |
AC_MSG_CHECKING([if any translations should be excluded]) |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
627 |
if test "x$with_exclude_translations" != "x"; then |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
628 |
EXCLUDE_TRANSLATIONS="${with_exclude_translations//,/ }" |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
629 |
AC_MSG_RESULT([yes: $EXCLUDE_TRANSLATIONS]) |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
630 |
else |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
631 |
AC_MSG_RESULT([no]) |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
632 |
fi |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
633 |
|
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
634 |
AC_SUBST(EXCLUDE_TRANSLATIONS) |
5fa19bad622d
8204973: Add build support for filtering translations
erikj
parents:
49920
diff
changeset
|
635 |
]) |
51215 | 636 |
|
637 |
################################################################################ |
|
638 |
# |
|
639 |
# Optionally disable man pages |
|
640 |
# |
|
641 |
AC_DEFUN([JDKOPT_ENABLE_DISABLE_MANPAGES], |
|
642 |
[ |
|
643 |
AC_ARG_ENABLE([manpages], [AS_HELP_STRING([--disable-manpages], |
|
52714
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52039
diff
changeset
|
644 |
[Set to disable copy of static man pages @<:@enabled@:>@])]) |
51215 | 645 |
|
646 |
BUILD_MANPAGES="true" |
|
52714
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52039
diff
changeset
|
647 |
AC_MSG_CHECKING([if static man pages should be copied]) |
51215 | 648 |
if test "x$enable_manpages" = "x"; then |
649 |
AC_MSG_RESULT([yes]) |
|
650 |
elif test "x$enable_manpages" = "xyes"; then |
|
651 |
AC_MSG_RESULT([yes, forced]) |
|
652 |
elif test "x$enable_manpages" = "xno"; then |
|
653 |
AC_MSG_RESULT([no, forced]) |
|
654 |
BUILD_MANPAGES="false" |
|
655 |
else |
|
656 |
AC_MSG_RESULT([no]) |
|
657 |
AC_MSG_ERROR([--enable-manpages can only yes/no or empty]) |
|
658 |
fi |
|
659 |
||
660 |
AC_SUBST(BUILD_MANPAGES) |
|
661 |
]) |
|
52030
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
662 |
|
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
663 |
################################################################################ |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
664 |
# |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
665 |
# Disable the default CDS archive generation |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
666 |
# cross compilation - disabled |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
667 |
# |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
668 |
AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE], |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
669 |
[ |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
670 |
AC_ARG_ENABLE([cds-archive], [AS_HELP_STRING([--disable-cds-archive], |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
671 |
[Set to disable generation of a default CDS archive in the product image @<:@enabled@:>@])]) |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
672 |
|
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
673 |
AC_MSG_CHECKING([if a default CDS archive should be generated]) |
52039
15a9f90aa00f
8211837: Creation of the default CDS Archive should depend on ENABLE_CDS
simonis
parents:
52030
diff
changeset
|
674 |
if test "x$ENABLE_CDS" = "xfalse"; then |
15a9f90aa00f
8211837: Creation of the default CDS Archive should depend on ENABLE_CDS
simonis
parents:
52030
diff
changeset
|
675 |
AC_MSG_RESULT([no, because CDS is disabled]) |
15a9f90aa00f
8211837: Creation of the default CDS Archive should depend on ENABLE_CDS
simonis
parents:
52030
diff
changeset
|
676 |
BUILD_CDS_ARCHIVE="false" |
15a9f90aa00f
8211837: Creation of the default CDS Archive should depend on ENABLE_CDS
simonis
parents:
52030
diff
changeset
|
677 |
elif test "x$COMPILE_TYPE" = "xcross"; then |
52030
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
678 |
AC_MSG_RESULT([no, not possible with cross compilation]) |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
679 |
BUILD_CDS_ARCHIVE="false" |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
680 |
elif test "x$enable_cds_archive" = "xyes"; then |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
681 |
AC_MSG_RESULT([yes, forced]) |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
682 |
BUILD_CDS_ARCHIVE="true" |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
683 |
elif test "x$enable_cds_archive" = "x"; then |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
684 |
AC_MSG_RESULT([yes]) |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
685 |
BUILD_CDS_ARCHIVE="true" |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
686 |
elif test "x$enable_cds_archive" = "xno"; then |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
687 |
AC_MSG_RESULT([no, forced]) |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
688 |
BUILD_CDS_ARCHIVE="false" |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
689 |
else |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
690 |
AC_MSG_RESULT([no]) |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
691 |
AC_MSG_ERROR([--enable-cds_archive can only be yes/no or empty]) |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
692 |
fi |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
693 |
|
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
694 |
AC_SUBST(BUILD_CDS_ARCHIVE) |
57862a02bf4b
8202951: Implementation of JEP 341: Default CDS Archives
jiangli
parents:
51824
diff
changeset
|
695 |
]) |