Xcode 4 isn't available on DVD, but is available for download from
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 24 Aug 2011 10:18:25 +0000 (10:18 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 24 Aug 2011 10:18:25 +0000 (10:18 +0000)
developer.apple.com, and the current version is available, at least for
Lion, from the Mac App Store.

While we're at it, make sure the X11 SDK is present, by checking for
/usr/X11/include.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38712 f5534014-38df-0310-8fa8-9805f1628bb7

macosx-setup.sh

index aa434f4fc5374b2921e9caa216570e37b1b6be97..f71434bd9ac1ea76e46c98b437704d386ef69324 100755 (executable)
@@ -58,7 +58,18 @@ GEOIP_VERSION=1.4.8
 # You need Xcode installed to get the compilers.
 #
 if [ ! -x /usr/bin/xcodebuild ]; then
-       echo "Please install Xcode first (should be available on DVD)."
+       echo "Please install Xcode first (should be available on DVD or from http://developer.apple.com/xcode/index.php)."
+       exit 1
+fi
+
+#
+# You also need the X11 SDK; with at least some versions of OS X and
+# Xcode, that is, I think, an optional install.  (Or it might be
+# installed with X11, but I think *that* is an optional install on
+# at least some versions of OS X.)
+#
+if [ ! -d /usr/X11/include ]; then
+       echo "Please install X11 and the X11 SDK first."
        exit 1
 fi