devdraw: handle, warn about Lion

R=rsc
http://codereview.appspot.com/5069042
This commit is contained in:
Russ Cox 2011-09-19 09:17:38 -04:00
parent a59b2edeb3
commit 8bc80ada76

View file

@ -22,7 +22,12 @@ fi
if [ "x$WSYSTYPE" = "x" ]; then
if [ "x`uname`" = "xDarwin" ]; then
WSYSTYPE=osx
if sw_vers | grep 'ProductVersion: 10\.[0-6]\.' >/dev/null; then
WSYSTYPE=osx
else
echo 1>&2 'WARNING: OS X Lion is not working. Copy binaries from a Snow Leopard system.'
WSYSTYPE=osx-cocoa
fi
elif [ -d "$X11" ]; then
WSYSTYPE=x11
else
@ -53,6 +58,9 @@ elif [ $WSYSTYPE = osx ]; then
fi
echo 'WSYSOFILES=$WSYSOFILES osx-screen-carbon-objc.o osx-draw.o osx-srv.o'
echo 'MACARGV=install-macargv'
elif [ $WSYSTYPE = osx-cocoa ]; then
echo 'WSYSOFILES=$WSYSOFILES osx-draw.o cocoa-screen-objc.o cocoa-srv.o cocoa-thread.o'
echo 'MACARGV=install-macargv'
elif [ $WSYSTYPE = nowsys ]; then
echo 'WSYSOFILES=nowsys.o'
fi