3 [ -f $PLAN9/config ] && . $PLAN9/config
5 if [ "x$X11" = "x" ]; then
6 if [ -d /usr/X11R6 ]; then
8 elif [ -d /usr/local/X11R6 ]; then
10 elif [ -d /usr/X ]; then
12 elif [ -d /usr/openwin ]; then # for Sun
14 elif [ -d /usr/include/X11 ]; then
16 elif [ -d /usr/local/include/X11 ]; then
23 if [ "x$WSYSTYPE" = "x" ]; then
24 if [ "x`uname`" = "xDarwin" ]; then
25 if sw_vers | egrep 'ProductVersion: (10\.[0-9]\.|10\.1[012])$' >/dev/null; then
26 echo 1>&2 'OS X 10.12 and older are not supported'
30 elif [ -d "$X11" ]; then
37 if [ "x$WSYSTYPE" = "xx11" -a "x$X11H" = "x" ]; then
38 if [ -d "$X11/include" ]; then
45 echo 'WSYSTYPE='$WSYSTYPE
49 if [ $WSYSTYPE = x11 ]; then
50 echo 'CFLAGS=$CFLAGS '$X11H
51 echo 'HFILES=$HFILES $XHFILES'
52 XO=`ls x11-*.c 2>/dev/null | sed 's/\.c$/.o/'`
53 echo 'WSYSOFILES=$WSYSOFILES '$XO
54 echo 'WSYSHFILES=x11-inc.h x11-keysym2ucs.h x11-memdraw.h'
55 elif [ $WSYSTYPE = mac ]; then
56 echo 'WSYSOFILES=$WSYSOFILES mac-draw.o mac-screen.o'
58 echo 'MACARGV=macargv.o'
59 elif [ $WSYSTYPE = nowsys ]; then
60 echo 'WSYSOFILES=nowsys.o'