common/autoconf/jdk-options.m4

changeset 2527
1c2063701dc0
parent 2498
8c54aca26212
parent 2513
b187cde4b6f0
child 2556
76a0f827e163
equal deleted inserted replaced
2501:11ff9b5feabb 2527:1c2063701dc0
1 # 1 #
2 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 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 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this 7 # published by the Free Software Foundation. Oracle designates this
430 # Compress jars 430 # Compress jars
431 # 431 #
432 COMPRESS_JARS=false 432 COMPRESS_JARS=false
433 433
434 AC_SUBST(COMPRESS_JARS) 434 AC_SUBST(COMPRESS_JARS)
435
436 ###############################################################################
437 #
438 # Enable or disable JFR
439 #
440 AC_MSG_CHECKING([whether to build jfr])
441 AC_ARG_ENABLE(jfr, [AS_HELP_STRING([--enable-jfr],
442 [Enable Java Flight Recorder support @<:@disabled@:>@])],,
443 [enable_jfr=auto])
444 if test "x$enable_jfr" = "xno" -o "x$enable_jfr" = "xauto"; then
445 ENABLE_JFR=false
446 elif test "x$enable_jfr" = "xyes" ; then
447 if test "x$JVM_VARIANT_MINIMAL1" = "xtrue" -o "x$JVM_VARIANT_ZERO" = "xtrue"; then
448 AC_MSG_ERROR([cannot enable JFR on minimal1 VM or zero build])
449 elif test "x$OPENJDK_TARGET_OS" = xaix; then
450 AC_MSG_ERROR([AIX does not support JFR])
451 else
452 ENABLE_JFR=true
453 fi
454 else
455 AC_MSG_ERROR([--enable-jfr must either be set to yes or no])
456 fi
457 AC_MSG_RESULT([$ENABLE_JFR])
458 AC_SUBST(ENABLE_JFR)
435 ]) 459 ])
436 460
437 ############################################################################### 461 ###############################################################################
438 # 462 #
439 # Setup version numbers 463 # Setup version numbers

mercurial