There need to be some changes under OSX, like filed in other bug-reports. Those include #include <OpenGL/gl.h> .. etc. with #ifdef _APPLE_ this is easy manageable.
But referring to all header files I had errors about I now encounter the error as follows:
Undefined symbols for architecture x86_64:
"_XF86VidModeGetAllModeLines", referenced from:
_fghChangeDisplayMode in libglut_la-freeglut_gamemode.o
And one missing of this kind:
"_XISelectEvents", referenced from:
_fgRegisterDevices in libglut_la-freeglut_xinput.o
With various variables! Tried everything I found out there,.. but nothing worked for me. Please help!