@@ -78,7 +78,7 @@ AC_DEFUN([OPENJ9_CONFIGURE_CMAKE],
78
78
79
79
# Currently, mixedrefs mode is only available with CMake enabled
80
80
if test "x$OPENJ9_ENABLE_MIXED_REFERENCES" = xtrue ; then
81
- AC_MSG_ERROR ( [ --with-mixedrefs requires --with-cmake] )
81
+ AC_MSG_ERROR ( [ --with-mixedrefs= [ static|dynamic ] requires --with-cmake] )
82
82
fi
83
83
else
84
84
OPENJ9_ENABLE_CMAKE=true
@@ -358,7 +358,14 @@ AC_DEFUN([OPENJ9_PLATFORM_SETUP],
358
358
# Default OPENJ9_BUILD_OS=OPENJDK_BUILD_OS, but override with OpenJ9 equivalent as appropriate
359
359
OPENJ9_BUILD_OS="${OPENJDK_BUILD_OS}"
360
360
361
- if test "x$with_mixedrefs" = xyes ; then
361
+ if test "x$with_mixedrefs" != x -a "x$with_mixedrefs" != xno; then
362
+ if test "x$with_mixedrefs" = xyes -o "x$with_mixedrefs" = xstatic; then
363
+ OMR_MIXED_REFERENCES_MODE=static
364
+ elif test "x$with_mixedrefs" = xdynamic; then
365
+ OMR_MIXED_REFERENCES_MODE=dynamic
366
+ else
367
+ AC_MSG_ERROR ( [ OpenJ9 supports --with-mixedrefs=static and --with-mixedrefs=dynamic] )
368
+ fi
362
369
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}_mxdptrs"
363
370
OPENJ9_ENABLE_MIXED_REFERENCES=true
364
371
OPENJ9_LIBS_SUBDIR=default
@@ -423,6 +430,7 @@ AC_DEFUN([OPENJ9_PLATFORM_SETUP],
423
430
AC_SUBST ( COMPILER_VERSION_STRING )
424
431
AC_SUBST ( OPENJ9_LIBS_SUBDIR )
425
432
AC_SUBST ( OPENJ9_ENABLE_MIXED_REFERENCES )
433
+ AC_SUBST ( OMR_MIXED_REFERENCES_MODE )
426
434
] )
427
435
428
436
AC_DEFUN ( [ OPENJ9_CHECK_NASM_VERSION] ,
0 commit comments