summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2019-12-21 13:43:50 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-12-27 15:12:17 -0500
commit0c51aeebc79edd9b317109019522b5ee557c92df (patch)
treee4b28f257ebfcca06ff80018d36e71097bb926da
parent68252aa3eb833c9747c59de3a7655a1def1b7a76 (diff)
downloadhaskell-0c51aeebc79edd9b317109019522b5ee557c92df.tar.gz
suppress popup dialog about missing Xcode at configure
tested with `bash` and `zsh`.
-rw-r--r--aclocal.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 54b1672548..9d449d07ae 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -2126,7 +2126,7 @@ AC_DEFUN([XCODE_VERSION],[
if test "$TargetVendor_CPP" = "apple"
then
AC_MSG_CHECKING(XCode version)
- XCodeVersion=`xcodebuild -version | grep Xcode | sed "s/Xcode //"`
+ XCodeVersion=`(xcode-select -p >& /dev/null && xcodebuild -version) | grep Xcode | sed "s/Xcode //"`
# Old XCode versions don't actually give the XCode version
if test "$XCodeVersion" = ""
then