--- old/common/autoconf/basics.m4 2015-06-11 12:38:20.277128010 +0200 +++ new/common/autoconf/basics.m4 2015-06-11 12:38:20.185124106 +0200 @@ -436,7 +436,6 @@ BASIC_PATH_PROGS(CYGPATH, cygpath) BASIC_PATH_PROGS(READLINK, [greadlink readlink]) BASIC_PATH_PROGS(DF, df) - BASIC_PATH_PROGS(SETFILE, SetFile) BASIC_PATH_PROGS(CPIO, [cpio bsdcpio]) ]) @@ -573,11 +572,13 @@ [BASIC_PREPEND_TO_PATH([EXTRA_PATH],$with_extra_path)] ) - if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then - # detect if Xcode is installed by running xcodebuild -version + # OPENJDK_BUILD_OS has not yet been setup + if test "`uname`" = "Darwin"; then + # If a devkit has been supplied, find xcodebuild in the toolchain_path. + # If not, detect if Xcode is installed by running xcodebuild -version # if no Xcode installed, xcodebuild exits with 1 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 - if /usr/bin/xcodebuild -version >/dev/null 2>&1; then + if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then # We need to use xcodebuild in the toolchain dir provided by the user, this will # fall back on the stub binary in /usr/bin/xcodebuild AC_PATH_PROG([XCODEBUILD], [xcodebuild], [/usr/bin/xcodebuild], [$TOOLCHAIN_PATH]) @@ -961,6 +962,7 @@ AC_MSG_RESULT([yes]) fi fi + BASIC_REQUIRE_PROGS(SETFILE, SetFile) fi ])