Subject: | Module fails to build with X11 on OS X 10.10 |
The module looks for X11 headers in `/usr/X11R6/include`, but on OS X XQuartz is installed to `/opt/X11`:
```
cpan[1]> install X11::GUITest
Reading '/Users/alex/.cpan/Metadata'
Database was generated on Wed, 22 Jul 2015 19:53:33 GMT
Running install for module 'X11::GUITest'
Checksum for /Users/alex/.cpan/sources/authors/id/C/CT/CTRONDLP/X11-GUITest-0.28.tar.gz ok
Scanning cache /Users/alex/.cpan/build for sizes
...............................................................-------------DONE
...
'YAML' not installed, will not store persistent state
Configuring C/CT/CTRONDLP/X11-GUITest-0.28.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lXtst
Warning (mostly harmless): No library found for -lX11
Generating a Unix-style Makefile
Writing Makefile for X11::GUITest
Writing MYMETA.yml and MYMETA.json
CTRONDLP/X11-GUITest-0.28.tar.gz
/usr/local/Cellar/perl/5.22.0/bin/perl Makefile.PL -- OK
Running make for C/CT/CTRONDLP/X11-GUITest-0.28.tar.gz
cp GUITest.pm blib/lib/X11/GUITest.pm
Running Mkbootstrap for X11::GUITest ()
chmod 644 "GUITest.bs"
"/usr/local/Cellar/perl/5.22.0/bin/perl" "/usr/local/Cellar/perl/5.22.0/lib/5.22.0/ExtUtils/xsubpp" -typemap "/usr/local/Cellar/perl/5.22.0/lib/5.22.0/ExtUtils/typemap" -typemap "typemap" GUITest.xs > GUITest.xsc && mv GUITest.xsc GUITest.c
cc -c -I/usr/X11R6/include -I/usr/X/include -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -Wall -O2 -DVERSION=\"0.28\" -DXS_VERSION=\"0.28\" "-I/usr/local/Cellar/perl/5.22.0/lib/5.22.0/darwin-thread-multi-2level/CORE" -DNDEBUG -DX11_GUITEST_ALT_L_FALLBACK_META_L GUITest.c
GUITest.xs:38:10: fatal error: 'X11/Xlib.h' file not found
#include <X11/Xlib.h>
^
1 error generated.
make: *** [GUITest.o] Error 1
CTRONDLP/X11-GUITest-0.28.tar.gz
/usr/bin/make -- NOT OK
Failed during this command:
CTRONDLP/X11-GUITest-0.28.tar.gz : make NO
```
The headers would be in `/opt/X11/include`.