The dependency should be on having an X client, rather than an X server installed locally. Use `xterm -version`, which is also portable to both Mac OS and Linux.

```
$ X -version

Fatal server error:
PAM authentication failed, cannot start X server.
	Perhaps you do not have console ownership?

$ xterm -version
XTerm(215)
```