@@ -70,34 +70,28 @@ AC_DEFUN_ONCE([BASIC_SETUP_PATHS],
7070 fi
7171
7272 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
73- PATH_SEP=";"
74- EXE_SUFFIX=".exe"
75- BASIC_CHECK_PATHS_WINDOWS
76- else
77- PATH_SEP=":"
78- EXE_SUFFIX=""
73+ BASIC_SETUP_PATHS_WINDOWS
7974 fi
80- AC_SUBST ( PATH_SEP )
81- AC_SUBST ( EXE_SUFFIX )
8275
8376 # We get the top-level directory from the supporting wrappers.
77+ BASIC_WINDOWS_VERIFY_DIR($TOPDIR, source)
78+ UTIL_FIXUP_PATH(TOPDIR)
8479 AC_MSG_CHECKING ( [ for top-level directory] )
8580 AC_MSG_RESULT ( [ $TOPDIR] )
8681 AC_SUBST ( TOPDIR )
87- AC_SUBST ( CONFIGURE_START_DIR )
88-
89- # We can only call UTIL_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
90- UTIL_FIXUP_PATH(TOPDIR)
91- UTIL_FIXUP_PATH(CONFIGURE_START_DIR)
9282
9383 if test "x$CUSTOM_ROOT" != x; then
84+ BASIC_WINDOWS_VERIFY_DIR($CUSTOM_ROOT, custom root)
9485 UTIL_FIXUP_PATH(CUSTOM_ROOT)
9586 WORKSPACE_ROOT="${CUSTOM_ROOT}"
9687 else
9788 WORKSPACE_ROOT="${TOPDIR}"
9889 fi
9990 AC_SUBST ( WORKSPACE_ROOT )
10091
92+ UTIL_FIXUP_PATH(CONFIGURE_START_DIR)
93+ AC_SUBST ( CONFIGURE_START_DIR )
94+
10195 # Locate the directory of this script.
10296 AUTOCONF_DIR=$TOPDIR/make/autoconf
10397
@@ -234,9 +228,12 @@ AC_DEFUN_ONCE([BASIC_SETUP_DEVKIT],
234228 # if no Xcode installed, xcodebuild exits with 1
235229 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
236230 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
237- # We need to use xcodebuild in the toolchain dir provided by the user, this will
238- # fall back on the stub binary in /usr/bin/xcodebuild
239- AC_PATH_PROG ( [ XCODEBUILD] , [ xcodebuild] , [ /usr/bin/xcodebuild] , [ $TOOLCHAIN_PATH] )
231+ # We need to use xcodebuild in the toolchain dir provided by the user
232+ UTIL_LOOKUP_PROGS(XCODEBUILD, xcodebuild, $TOOLCHAIN_PATH)
233+ if test x$XCODEBUILD = x; then
234+ # fall back on the stub binary in /usr/bin/xcodebuild
235+ XCODEBUILD=/usr/bin/xcodebuild
236+ fi
240237 else
241238 # this should result in SYSROOT being empty, unless --with-sysroot is provided
242239 # when only the command line tools are installed there are no SDKs, so headers
@@ -306,6 +303,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_DEVKIT],
306303 AC_MSG_RESULT ( [ $SYSROOT] )
307304 AC_MSG_CHECKING ( [ for toolchain path] )
308305 AC_MSG_RESULT ( [ $TOOLCHAIN_PATH] )
306+ AC_SUBST ( TOOLCHAIN_PATH )
309307 AC_MSG_CHECKING ( [ for extra path] )
310308 AC_MSG_RESULT ( [ $EXTRA_PATH] )
311309] )
@@ -380,6 +378,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
380378 AC_MSG_CHECKING ( [ what configuration name to use] )
381379 AC_MSG_RESULT ( [ $CONF_NAME] )
382380
381+ BASIC_WINDOWS_VERIFY_DIR($OUTPUTDIR, output)
383382 UTIL_FIXUP_PATH(OUTPUTDIR)
384383
385384 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUTDIR/configure-support"
@@ -416,26 +415,16 @@ AC_DEFUN([BASIC_CHECK_DIR_ON_LOCAL_DISK],
416415 # df -l lists only local disks; if the given directory is not found then
417416 # a non-zero exit code is given
418417 if test "x$DF" = x; then
419- if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
420- # msys does not have df; use Windows "net use" instead.
421- IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:`
422- if test "x$IS_NETWORK_DISK" = x; then
423- $2
424- else
425- $3
426- fi
427- else
428- # No df here, say it's local
429- $2
430- fi
418+ # No df here, say it's local
419+ $2
431420 else
432421 # JDK-8189619
433422 # df on AIX does not understand -l. On modern AIXes it understands "-T local" which
434423 # is the same. On older AIXes we just continue to live with a "not local build" warning.
435424 if test "x$OPENJDK_TARGET_OS" = xaix; then
436425 DF_LOCAL_ONLY_OPTION='-T local'
437- elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl "; then
438- # In WSL , we can only build on a drvfs file system (that is, a mounted real Windows drive)
426+ elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl1 "; then
427+ # In WSL1 , we can only build on a drvfs file system (that is, a mounted real Windows drive)
439428 DF_LOCAL_ONLY_OPTION='-t drvfs'
440429 else
441430 DF_LOCAL_ONLY_OPTION='-l'
0 commit comments