From 29eb8c315d23fd6a36a22be50ad4c1a229f94342 Mon Sep 17 00:00:00 2001
From: Jack Jansen <jack.jansen@cwi.nl>
Date: Wed, 2 Jun 2004 20:06:38 +0000
Subject: Do an actual test for xcodebuild, in stead of relying on the user to
 uncomment the relevant section.

---
 Mac/OSX/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Mac/OSX/Makefile b/Mac/OSX/Makefile
index 3c82a24..e8d1529 100644
--- a/Mac/OSX/Makefile
+++ b/Mac/OSX/Makefile
@@ -9,10 +9,12 @@ prefix=/Library/Frameworks/Python.framework/Versions/$(VERSION)
 LIBDEST=$(prefix)/lib/python$(VERSION)
 BUILDPYTHON=$(builddir)/python.exe
 DESTDIR=
-# For 10.2:
-#PBXBUILD=pbxbuild
-# For 10.3:
+# Test whether to use xcodebuild (preferred) or pbxbuild:
+ifeq ($(shell ls /usr/bin/xcodebuild),/usr/bin/xcodebuild)
 PBXBUILD=xcodebuild
+else
+PBXBUILD=pbxbuild
+endif
 
 # These are normally glimpsed from the previous set
 bindir=/usr/local/bin
-- 
cgit v0.12