@@ -597,51 +597,25 @@ AC_DEFUN([BOOTJDK_SETUP_BUILD_JDK],
597597 AC_ARG_WITH ( build-jdk , [ AS_HELP_STRING ( [ --with-build-jdk] ,
598598 [ path to JDK of same version as is being built@<:@ the newly built JDK@:>@ ] ) ] )
599599
600- CREATE_BUILDJDK=false
601- EXTERNAL_BUILDJDK=false
602- BUILD_JDK_FOUND="no"
600+ EXTERNAL_BUILDJDK_PATH=""
603601 if test "x$with_build_jdk" != "x"; then
602+ BUILD_JDK_FOUND=no
604603 BOOTJDK_CHECK_BUILD_JDK([
605604 if test "x$with_build_jdk" != x; then
606605 BUILD_JDK=$with_build_jdk
607606 BUILD_JDK_FOUND=maybe
608607 AC_MSG_NOTICE ( [ Found potential Build JDK using configure arguments] )
609608 fi
610609 ] )
611- EXTERNAL_BUILDJDK=true
612- else
613- if test "x$COMPILE_TYPE" = "xcross"; then
614- BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk"
615- BUILD_JDK_FOUND=yes
616- CREATE_BUILDJDK=true
617- AC_MSG_CHECKING ( [ for Build JDK] )
618- AC_MSG_RESULT ( [ yes, will build it for the host platform] )
619- else
620- BUILD_JDK="\$(JDK_OUTPUTDIR)"
621- BUILD_JDK_FOUND=yes
610+ if test "x$BUILD_JDK_FOUND" != "xyes"; then
622611 AC_MSG_CHECKING ( [ for Build JDK] )
623- AC_MSG_RESULT ( [ yes, will use output dir] )
612+ AC_MSG_RESULT ( [ no] )
613+ AC_MSG_ERROR ( [ Could not find a suitable Build JDK] )
624614 fi
615+ EXTERNAL_BUILDJDK_PATH="$BUILD_JDK"
625616 fi
626617
627- # Since these tools do not yet exist, we cannot use UTIL_FIXUP_EXECUTABLE to
628- # detect the need of fixpath
629- JMOD="$BUILD_JDK/bin/jmod"
630- UTIL_ADD_FIXPATH(JMOD)
631- JLINK="$BUILD_JDK/bin/jlink"
632- UTIL_ADD_FIXPATH(JLINK)
633- AC_SUBST ( JMOD )
634- AC_SUBST ( JLINK )
635-
636- if test "x$BUILD_JDK_FOUND" != "xyes"; then
637- AC_MSG_CHECKING ( [ for Build JDK] )
638- AC_MSG_RESULT ( [ no] )
639- AC_MSG_ERROR ( [ Could not find a suitable Build JDK] )
640- fi
641-
642- AC_SUBST ( CREATE_BUILDJDK )
643- AC_SUBST ( BUILD_JDK )
644- AC_SUBST ( EXTERNAL_BUILDJDK )
618+ AC_SUBST ( EXTERNAL_BUILDJDK_PATH )
645619] )
646620
647621# The docs-reference JDK is used to run javadoc for the docs-reference targets.
0 commit comments