Blob


1 #!/bin/sh
3 [ -f $PLAN9/config ] && . $PLAN9/config
5 if [ "x$X11" = "x" ]; then
6 if [ -d /usr/X11R6 ]; then
7 X11=/usr/X11R6
8 elif [ -d /usr/local/X11R6 ]; then
9 X11=/usr/local/X11R6
10 elif [ -d /usr/X ]; then
11 X11=/usr/X
12 elif [ -d /usr/openwin ]; then # for Sun
13 X11=/usr/openwin
14 else
15 X11=noX11dir
16 fi
17 fi
19 if [ "x$WSYSTYPE" = "x" ]; then
20 if [ -d "$X11/include" ]; then
21 WSYSTYPE=x11
22 else
23 WSYSTYPE=nowsys
24 fi
25 fi
27 echo 'WSYSTYPE='$WSYSTYPE
28 echo 'X11='$X11
30 if [ $WSYSTYPE = x11 ]; then
31 echo 'CFLAGS=$CFLAGS -I$X11/include'
32 echo 'HFILES=$HFILES $XHFILES'
33 fi