DISABLE_X11 and cross-build on MacOSX

Hey folks,

I’m trying to build SDL (cvs) on OS X 10.4 targetting
10.2 (using Apple’s SDK). In particular, I need to
completely disable X11 since the headers aren’t
available from the SDK. It looks like somebody put in
preliminary support, since I see references to
DISABLE_X11, but it’s never actually set by the
configure script. Where would be the right place to do
this?

Secondly, in include/SDL_syswm.h, if APPLE and MACH
are defined, Cursor is defined as X11Cursor, which
seems wrong. Perhaps conditionalize on !DISABLE_X11?

Finally, joystick/darwin/Makefile.am makes unwarranted
assumptions about the location of frameworks (so do a
few other spots). I think AC_CHECK_FRAMEWORK in
configure could probably better ascertain that
location.

Cheers,

Dara__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

I’m trying to build SDL (cvs) on OS X 10.4 targetting
10.2 (using Apple’s SDK). In particular, I need to
completely disable X11 since the headers aren’t
available from the SDK. It looks like somebody put in
preliminary support, since I see references to
DISABLE_X11, but it’s never actually set by the
configure script. Where would be the right place to do
this?

Secondly, in include/SDL_syswm.h, if APPLE and MACH
are defined, Cursor is defined as X11Cursor, which
seems wrong. Perhaps conditionalize on !DISABLE_X11?

Yep, I’m in the process of completely rewriting the configure
support which will take care of this.

Finally, joystick/darwin/Makefile.am makes unwarranted
assumptions about the location of frameworks (so do a
few other spots). I think AC_CHECK_FRAMEWORK in
configure could probably better ascertain that
location.

Could you provide an example? I didn’t know about AC_CHECK_FRAMEWORK

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment