#exult@irc.freenode.net logs for 11 Jan 2015 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage


[00:03:12] <-- nutron has left IRC (Remote host closed the connection)
[00:09:15] --> nutron has joined #exult
[00:09:39] <-- nutron has left IRC (Changing host)
[00:09:40] --> nutron has joined #exult
[00:59:53] <-- Marzo has left IRC (Ping timeout: 240 seconds)
[02:47:54] --> DominusExult has joined #exult
[02:47:57] --- ChanServ gives channel operator status to DominusExult
[02:50:29] <-- Dominus has left IRC (Ping timeout: 264 seconds)
[02:50:30] --- DominusExult is now known as Dominus
[03:38:56] --> TheCycoONE has joined #exult
[05:03:12] <-- TheCycoONE has left IRC (Ping timeout: 244 seconds)
[05:32:55] --> TheCycoONE has joined #exult
[06:11:55] <-- Lightkey has left IRC (Ping timeout: 244 seconds)
[06:25:06] --> Lightkey has joined #exult
[06:30:39] <-- TheCycoONE has left IRC (Ping timeout: 245 seconds)
[07:12:23] --> TheCycoONE has joined #exult
[07:50:32] <Dominus> Wjp: what are your thoughts on this patch https://www.dropbox.com/s/2ncsktsst1izqrr/sdl2configure.diff?dl=0
[07:50:58] <Dominus> It's about making sdl2 easier to switch to
[08:47:42] <wjp> hm
[08:47:56] <wjp> why the --with-sdl2?
[08:49:55] <wjp> and I think you may have disabled the error if SDL is not found?
[08:53:37] <-- TheCycoONE has left IRC (Ping timeout: 265 seconds)
[08:54:45] <Dominus> Yeah, I need to fix the error
[08:55:25] <Dominus> The with-sdl2 is for choosing SDL2 if both SDL 1.2x and SDL2 exist
[08:56:21] <Dominus> Because they can be both installed since SDL decided to use SDL2 instead of SDL 1.3x
[09:01:59] <Dominus> Otherwise the elaborate acinclude.m4 wouldn't be needed.
[09:05:08] <wjp> ah, right, AM_PATH_SDL looks at with-sdl2
[09:05:46] <wjp> FWIW, --enable-sdl2 is probably the right type of option to use for that
[09:07:54] <Dominus> Hmm, yes, will change this
[09:09:02] <Dominus> I didn't do this all myself, i used a patch made by ny(something) over there in #dosbox
[09:09:28] <Dominus> Only made it to work for exult
[09:20:07] --> TheCycoONE has joined #exult
[13:00:28] <-- Kirben has left IRC ()
[15:22:51] <-- Dominus has left IRC (Ping timeout: 264 seconds)
[15:26:19] --> Dominus has joined #exult
[15:26:19] --- ChanServ gives channel operator status to Dominus
[15:31:40] <Dominus> wjp, the version check is in the acinclude.am file, btw
[15:35:36] <Dominus> m4...
[15:36:14] <wjp> hrm
[15:38:05] <wjp> it's not so good to have a custom version of the standard AM_PATH_SDL without giving it a different name
[15:38:26] <wjp> and actually I'm also not a big fan of the standard AM_PATH_SDL, since it behaves very poorly for cross-compilation
[15:38:36] <wjp> we rewrote it for pentagram years ago
[15:39:25] <wjp> is the only difference that it uses sdl2-config?
[15:40:42] <Dominus> I'm not entirely sure. but the headers are in include/sdl2 not include/sdl but if sdl-config is used then that could be it
[15:41:30] <Dominus> hmm, I may try tonight with a simple sdl-config variable setting in configure.ac
[15:41:42] <wjp> what would the ideal behaviour be?
[15:42:09] <wjp> detect SDL 1.2 or SDL 2 if only one is available, and have a switch if both are available?
[15:42:19] <Dominus> yes
[15:42:22] <wjp> probably defaulting to SDL 1.2 still?
[15:42:28] <Dominus> yes
[15:42:48] <wjp> this current check wouldn't pick up SDL2 by default, if that's the only one you have, I suppose
[15:43:43] <wjp> hm
[15:43:48] <Dominus> our current check, no, or at least will fail at sdl-config. but that patch does pick it up. I think
[15:44:06] <wjp> wouldn't you need the --with-sdl2 for it to find it?
[15:44:33] <Dominus> hmm, yes, you are right
[15:44:42] <Dominus> just checked
[15:46:35] <wjp> it shouldn't be too hard to adjust the pentagram version a bit
[15:48:15] <Dominus> hmm I'll take a look later
[15:48:55] <wjp> pondering what the best way of doing this is
[15:49:24] <wjp> probably split it into two parts, where the first finds either sdl-config or sdl2-config
[15:50:03] <wjp> and the second checks if everything's present and working with the found sdl-config/sdl2-config
[15:50:53] <wjp> and it would probably be good to also have the option to force sdl12
[15:51:09] <wjp> so maybe a --with-sdl=sdl12, --with-sdl=sdl2 selection?
[15:51:16] * wjp ponders some more
[16:06:32] --> Marzo has joined #exult
[16:11:31] <Dominus> Hmm, I imagine, similar to what is in that patch and the one in pentagram, first check for sdlprefix, then check for sdl-config, then if only one version use that if both check for with-sdl, if none set default to 1.2.x
[16:11:56] <Dominus> Sounds so easy without digging into the configure files...
[16:58:01] <-- TheCycoONE has left IRC (Ping timeout: 256 seconds)
[18:58:52] --> Baastuul_ has joined #exult
[19:02:17] <-- Rottingbeef has left IRC (Ping timeout: 252 seconds)
[20:00:51] <-- Marzo has left IRC (Ping timeout: 244 seconds)
[22:38:11] --> Kirben has joined #exult
[22:38:11] --- ChanServ gives channel operator status to Kirben