Compare commits

...

10 Commits

Author SHA1 Message Date
Andrew Pamment
95166b5a35 Updates for libquinn 2021-12-25 10:25:38 +10:00
Andrew Pamment
175aab7647 Fixes for keyboard events 2021-12-21 16:52:15 +10:00
Andrew Pamment
418f03c4de Improvements for SDL & Quinn 2021-12-14 22:14:27 +10:00
Andrew Pamment
a7a7ed17b0 fix SDL_quinnevents. 2017-10-07 23:41:23 +10:00
Andrew Pamment
15837ff4e1 Added Keymap support 2016-02-14 14:27:50 +10:00
Andrew Pamment
896d6a14da :q 2016-02-13 18:09:39 +10:00
Andrew Pamment
8038efbcbc Added abilty to change window caption 2016-02-12 12:20:51 +10:00
Andrew Pamment
f6a7f37ecf Added Timer & dodgy unicode support (for basic latin) 2016-02-11 17:34:00 +10:00
Andrew Pamment
f440e2a105 Changed libquinn to a real library 2016-02-10 14:56:06 +10:00
Andrew Pamment
76d00ae890 Added Quinn OS bits. 2016-02-10 12:05:26 +10:00
17 changed files with 4455 additions and 5101 deletions

View File

@ -1298,7 +1298,7 @@ case $os in
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -quinn*)
# Remember, each alternative MUST END IN *, to match a version number. # Remember, each alternative MUST END IN *, to match a version number.
;; ;;
-qnx*) -qnx*)

3589
config.log Normal file

File diff suppressed because it is too large Load Diff

15
configure vendored
View File

@ -21698,6 +21698,21 @@ case "$host" in
SOURCES="$SOURCES $srcdir/src/video/toaru/*.c" SOURCES="$SOURCES $srcdir/src/video/toaru/*.c"
SDL_LIBS="$SDL_LIBS -ltoaru -lpng15 -lz -lm -lfreetype" SDL_LIBS="$SDL_LIBS -ltoaru -lpng15 -lz -lm -lfreetype"
;; ;;
*-*-quinn*)
ARCH=quinn
CheckDummyVideo
CheckDummyAudio
$as_echo "#define SDL_VIDEO_DRIVER_QUINN 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/video/quinn/*.c"
SDL_LIBS="$SDL_LIBS -lquinn -lpng -lz -lm -lfreetype"
if test x$enable_timers = xyes; then
$as_echo "#define SDL_TIMER_QUINN 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/quinn/*.c"
have_timers=yes
fi
;;
*-*-cygwin* | *-*-mingw32*) *-*-cygwin* | *-*-mingw32*)
ARCH=win32 ARCH=win32
if test "$build" != "$host"; then # cross-compiling if test "$build" != "$host"; then # cross-compiling

View File

@ -2502,6 +2502,20 @@ case "$host" in
SOURCES="$SOURCES $srcdir/src/video/toaru/*.c" SOURCES="$SOURCES $srcdir/src/video/toaru/*.c"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ltoaru" EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ltoaru"
;; ;;
*-*-quinn*)
ARCH=quinn
CheckDummyVideo
CheckDummyAudio
AC_DEFINE(SDL_VIDEO_DRIVER_QUINN)
SOURCES="$SOURCES $srcdir/src/video/quinn/*.c"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lquinn"
if test x$enable_timers = xyes; then
AC_DEFINE(SDL_TIMER_QUINN)
SOURCES="$SOURCES $srcdir/src/timer/quinn/*.c"
have_timers=yes
fi
;;
*-*-cygwin* | *-*-mingw32*) *-*-cygwin* | *-*-mingw32*)
ARCH=win32 ARCH=win32
if test "$build" != "$host"; then # cross-compiling if test "$build" != "$host"; then # cross-compiling

View File

@ -251,6 +251,7 @@
#undef SDL_TIMER_UNIX #undef SDL_TIMER_UNIX
#undef SDL_TIMER_WIN32 #undef SDL_TIMER_WIN32
#undef SDL_TIMER_WINCE #undef SDL_TIMER_WINCE
#undef SDL_TIMER_QUINN
/* Enable various video drivers */ /* Enable various video drivers */
#undef SDL_VIDEO_DRIVER_AALIB #undef SDL_VIDEO_DRIVER_AALIB
@ -294,6 +295,7 @@
#undef SDL_VIDEO_DRIVER_X11_XV #undef SDL_VIDEO_DRIVER_X11_XV
#undef SDL_VIDEO_DRIVER_XBIOS #undef SDL_VIDEO_DRIVER_XBIOS
#undef SDL_VIDEO_DRIVER_TOARU #undef SDL_VIDEO_DRIVER_TOARU
#undef SDL_VIDEO_DRIVER_QUINN
/* Enable OpenGL support */ /* Enable OpenGL support */
#undef SDL_VIDEO_OPENGL #undef SDL_VIDEO_OPENGL

View File

@ -0,0 +1,118 @@
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2012 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
#ifdef SDL_TIMER_QUINN
#include <stdio.h>
#include <time.h>
#include <string.h>
#include "SDL_timer.h"
#include "../SDL_timer_c.h"
static Uint32 start;
static Uint32 timerStart;
void SDL_StartTicks(void)
{
/* Set first ticks value */
__asm__ volatile ("int $0x30" : "=a" (start) : "0" (46));
}
Uint32 SDL_GetTicks (void)
{
Uint32 ticks;
Uint32 now;
__asm__ volatile ("int $0x30" : "=a" (now) : "0" (46));
ticks= now - start;
return(ticks);
}
void SDL_Delay (Uint32 ms)
{
Uint32 then, now, elapsed;
/* Set the timeout interval */
then = SDL_GetTicks();
do {
/* Calculate the time interval left (in case of interrupt) */
now = SDL_GetTicks();
elapsed = (now-then);
then = now;
if ( elapsed >= (ms / 10) ) {
break;
}
ms -= elapsed;
quinn_yield();
} while (1);
}
/* This is only called if the event thread is not running */
int SDL_SYS_TimerInit(void)
{
return 0;
}
void SDL_SYS_TimerQuit(void)
{
SDL_SetTimer(0, NULL);
}
int SDL_SYS_StartTimer(void)
{
timerStart = SDL_GetTicks();
return(0);
}
void SDL_SYS_StopTimer(void)
{
return;
}
void QUINN_CheckTimer()
{
if (SDL_timer_running && SDL_GetTicks() - timerStart >= SDL_alarm_interval)
{
Uint32 ms;
ms = SDL_alarm_callback(SDL_alarm_interval);
if ( ms != SDL_alarm_interval )
{
if ( ms )
{
SDL_alarm_interval = ROUND_RESOLUTION(ms);
} else
{
SDL_alarm_interval = 0;
SDL_timer_running = 0;
}
}
if (SDL_alarm_interval) timerStart = SDL_GetTicks();
}
}
#endif

View File

@ -416,6 +416,9 @@ extern VideoBootStrap DUMMY_bootstrap;
#if SDL_VIDEO_DRIVER_TOARU #if SDL_VIDEO_DRIVER_TOARU
extern VideoBootStrap TOARU_bootstrap; extern VideoBootStrap TOARU_bootstrap;
#endif #endif
#if SDL_VIDEO_DRIVER_QUINN
extern VideoBootStrap QUINN_bootstrap;
#endif
/* This is the current video device */ /* This is the current video device */
extern SDL_VideoDevice *current_video; extern SDL_VideoDevice *current_video;

View File

@ -131,6 +131,9 @@ static VideoBootStrap *bootstrap[] = {
#endif #endif
#if SDL_VIDEO_DRIVER_TOARU #if SDL_VIDEO_DRIVER_TOARU
&TOARU_bootstrap, &TOARU_bootstrap,
#endif
#if SDL_VIDEO_DRIVER_QUINN
&QUINN_bootstrap,
#endif #endif
NULL NULL
}; };

View File

@ -0,0 +1,264 @@
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2012 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
#include "SDL.h"
#include "../../events/SDL_sysevents.h"
#include "../../events/SDL_events_c.h"
#include "SDL_quinnvideo.h"
#include "SDL_quinnevents_c.h"
#include "quinn.h"
static const int SDLK_unicode_shift[] = {
0, 0, 0x21, 0x40,
0x23, 0x24, 0x25, 0x5e,
0x26, 0x2a, 0x28, 0x29,
0x5f, 0x2b, 0x08, 0x09,
0x51, 0x57, 0x45, 0x52,
0x54, 0x59, 0x55, 0x49,
0x4F, 0x50, 0x7b, 0x7d,
0x0d, 0, 0x41, 0x53,
0x44, 0x46, 0x47, 0x48,
0x4a, 0x4b, 0x4c, 0x3A,
0x22, 0x7e, 0, 0x7c,
0x5a, 0x58, 0x43, 0x56,
0x42, 0x4e, 0x4d, 0x3c,
0x3e, 0x3f, 0, 0,
0, 0x20, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0, 0
};
static const int SDLK_unicode[] = {
0, 0, 0x31, 0x32,
0x33, 0x34, 0x35, 0x36,
0x37, 0x38, 0x39, 0x30,
0x2d, 0x3d, 0x08, 0x09,
0x71, 0x77, 0x65, 0x72,
0x74, 0x79, 0x75, 0x69,
0x6F, 0x70, 0x5b, 0x5d,
0x0d, 0, 0x61, 0x73,
0x64, 0x66, 0x67, 0x68,
0x6a, 0x6b, 0x6c, 0x3B,
0x27, 0x60, 0, 0x5c,
0x7a, 0x78, 0x63, 0x76,
0x62, 0x6e, 0x6d, 0x2c,
0x2e, 0x2f, 0, 0,
0, 0x20, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0, 0
};
#define KEYBOARD_KEY_ARROW_UP 0x48
#define KEYBOARD_KEY_ARROW_LEFT 0x4B
#define KEYBOARD_KEY_ARROW_RIGHT 0x4D
#define KEYBOARD_KEY_ARROW_DOWN 0x50
static const int SDLK_keyset[] = {
0, SDLK_ESCAPE, SDLK_1, SDLK_2,
SDLK_3, SDLK_4, SDLK_5, SDLK_6,
SDLK_7, SDLK_8, SDLK_9, SDLK_0,
SDLK_MINUS, SDLK_EQUALS, SDLK_BACKSPACE, SDLK_TAB,
SDLK_q, SDLK_w, SDLK_e, SDLK_r,
SDLK_t, SDLK_y, SDLK_u, SDLK_i,
SDLK_o, SDLK_p, SDLK_LEFTBRACKET, SDLK_RIGHTBRACKET,
SDLK_RETURN, SDLK_LCTRL, SDLK_a, SDLK_s,
SDLK_d, SDLK_f, SDLK_g, SDLK_h,
SDLK_j, SDLK_k, SDLK_l, SDLK_SEMICOLON,
SDLK_QUOTE, SDLK_BACKQUOTE, SDLK_LSHIFT, SDLK_BACKSLASH,
SDLK_z, SDLK_x, SDLK_c, SDLK_v,
SDLK_b, SDLK_n, SDLK_m, SDLK_COMMA,
SDLK_PERIOD, SDLK_SLASH, SDLK_RSHIFT, SDLK_KP_MULTIPLY,
SDLK_LALT, SDLK_SPACE, SDLK_CAPSLOCK, SDLK_F1,
SDLK_F2, SDLK_F3, SDLK_F4, SDLK_F5,
SDLK_F6, SDLK_F7, SDLK_F8, SDLK_F9,
SDLK_F10, 0, 0, SDLK_KP7,
SDLK_KP8, SDLK_KP9, SDLK_KP_MINUS, SDLK_KP4,
SDLK_KP5, SDLK_KP6, SDLK_KP_PLUS, SDLK_KP1,
SDLK_KP2, SDLK_KP3, SDLK_KP0, SDLK_KP_PERIOD,
0, 0, 0, SDLK_F11, SDLK_F12
};
static const int SDLK_keyset_e0[] = {
0, 0, 0, 0, //3
0, 0, 0, 0, //7
0, 0, 0, 0, //0b
0, 0, 0, 0, //0f
0, 0, 0, 0, //13
0, 0, 0, 0, //17
0, 0, 0, 0, //1b
SDLK_KP_ENTER, SDLK_RCTRL, 0, 0, //1f
0, 0, 0, 0, //23
0, 0, 0, 0, //27
0, 0, 0, 0, //2b
0, 0, 0, 0, //2f
0, 0, 0, 0, //33
0, SDLK_KP_DIVIDE, 0, 0, //37
SDLK_RALT, 0, 0, 0, //3b
0, 0, 0, 0, //3f
0, 0, 0, 0, //43
0, 0, 0, SDLK_HOME, //47
SDLK_UP, SDLK_PAGEUP, 0, SDLK_LEFT, //4b
0, SDLK_RIGHT, 0, SDLK_END, //4f
SDLK_DOWN, SDLK_PAGEDOWN, SDLK_INSERT, SDLK_DELETE, //53
0, 0, 0, 0, //57
0
};
static SDLKey keymap[256];
static SDLMod modstate = KMOD_NONE;
int mouse_state = 0;
static SDLMod make_mod(char *keycodes) {
SDLMod ret = KMOD_NONE;
if (keycodes[29]) ret |= KMOD_LCTRL;
if (keycodes[42]) ret |= KMOD_LSHIFT;
if (keycodes[56]) ret |= KMOD_LALT;
if (keycodes[54]) ret |= KMOD_RSHIFT;
return ret;
}
static struct window_update_req current_req;
static int current_req_current = 0;
static int _lmstate = 0;
static int _rmstate = 0;
static int _mmstate = 0;
static char _k_last_state[256];
static int _k_e0 = 0;
void QUINN_recv_event(struct window_update_req *req) {
memcpy(&current_req, req, sizeof(struct window_update_req));
current_req_current = 1;
}
void QUINN_PumpEvents(_THIS) {
int i;
int l;
if (this->hidden->doexit == 1) {
SDL_PrivateQuit();
}
if (current_req_current) {
for (l=0;l<current_req.event_msgs_count;l++) {
if (current_req.event_msgs[l].type == 1) {
// keyboard
SDL_keysym keysym;
if (_k_e0 == 0 && current_req.event_msgs[l].code == 0xe0) {
_k_e0 = 1;
continue;
}
if (_k_last_state[current_req.event_msgs[l].code] != current_req.event_msgs[l].state) {
keysym.scancode = current_req.event_msgs[l].code;
if (_k_last_state[42] == 1 || _k_last_state[54] == 1) {
keysym.unicode = SDLK_unicode_shift[current_req.event_msgs[l].code];
} else {
keysym.unicode = SDLK_unicode[current_req.event_msgs[l].code];
}
keysym.mod = make_mod(_k_last_state);
if (current_req.event_msgs[l].code < 0x57) {
if (_k_e0) {
keysym.sym = SDLK_keyset_e0[current_req.event_msgs[l].code];
} else {
keysym.sym = SDLK_keyset[current_req.event_msgs[l].code];
}
}
if (current_req.event_msgs[l].state == 1) {
SDL_PrivateKeyboard(SDL_PRESSED, &keysym);
} else {
// key up
SDL_PrivateKeyboard(SDL_RELEASED, &keysym);
}
}
_k_e0 = 0;
_k_last_state[current_req.event_msgs[l].code] = current_req.event_msgs[l].state;
} else if (current_req.event_msgs[l].type == 2) {
// mouse
if (current_req.event_msgs[l].code == 1) {
if (current_req.event_msgs[l].state != _lmstate) {
if (current_req.event_msgs[l].state == 1) {
SDL_PrivateMouseButton(SDL_PRESSED, 1, current_req.event_msgs[l].x, current_req.event_msgs[l].y);
} else {
SDL_PrivateMouseButton(SDL_RELEASED, 1, current_req.event_msgs[l].x, current_req.event_msgs[l].y);
}
}
_lmstate = current_req.event_msgs[l].state;
} else if (current_req.event_msgs[l].code == 2) {
if (current_req.event_msgs[l].state != _mmstate) {
if (current_req.event_msgs[l].state == 1) {
SDL_PrivateMouseButton(SDL_PRESSED, 2, current_req.event_msgs[l].x, current_req.event_msgs[l].y);
} else {
SDL_PrivateMouseButton(SDL_RELEASED, 2, current_req.event_msgs[l].x, current_req.event_msgs[l].y);
}
}
_mmstate = current_req.event_msgs[l].state;
} else if (current_req.event_msgs[l].code == 3) {
if (current_req.event_msgs[l].state != _rmstate) {
if (current_req.event_msgs[l].state == 1) {
SDL_PrivateMouseButton(SDL_PRESSED, 3, current_req.event_msgs[l].x, current_req.event_msgs[l].y);
} else {
SDL_PrivateMouseButton(SDL_RELEASED, 3, current_req.event_msgs[l].x, current_req.event_msgs[l].y);
}
}
_rmstate = current_req.event_msgs[l].state;
}
}
}
SDL_PrivateMouseMotion(0, 0, current_req.mousex, current_req.mousey);
current_req_current = 0;
}
quinn_process_input(0);
}
void QUINN_InitOSKeymap(_THIS)
{
/* do nothing. */
memset(_k_last_state, 0, 256);
}
/* end of SDLK_nullevents.c ... */

View File

@ -0,0 +1,32 @@
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2012 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
#include "SDL_quinnvideo.h"
/* Variables and functions exported by SDL_sysevents.c to other parts
of the native video subsystem (SDL_sysvideo.c)
*/
extern void QUINN_InitOSKeymap(_THIS);
extern void QUINN_PumpEvents(_THIS);
/* end of SDL_nullevents_c.h ... */

View File

@ -0,0 +1,65 @@
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2012 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
#include "SDL_mouse.h"
#include "../../events/SDL_events_c.h"
#include "SDL_quinnmouse_c.h"
#include "../SDL_cursor_c.h"
/* The implementation dependent data for the window manager cursor */
struct WMcursor {
int unused;
};
/* There isn't any implementation dependent data */
void QUINN_FreeWMCursor(_THIS, WMcursor *cursor)
{
return;
}
/* There isn't any implementation dependent data */
WMcursor *QUINN_CreateWMCursor(_THIS,
Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y)
{
return((WMcursor *)0x01);
}
void QUINN_MoveWMCursor(_THIS, int x, int y)
{
/* do nothing */
}
void QUINN_WarpWMCursor(_THIS, Uint16 x, Uint16 y) {
}
int QUINN_ShowWMCursor(_THIS, WMcursor *wmcursor)
{
return (1);
}
void QUINN_CheckMouseMode(_THIS) {
}

View File

@ -0,0 +1,33 @@
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2012 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
#include "SDL_quinnvideo.h"
/* Functions to be exported */
extern void QUINN_FreeWMCursor(_THIS, WMcursor *cursor);
extern WMcursor *QUINN_CreateWMCursor(_THIS,
Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);
extern void QUINN_MoveWMCursor(_THIS, int x, int y);
extern void QUINN_WarpWMCursor(_THIS, Uint16 x, Uint16 y);
extern int QUINN_ShowWMCursor(_THIS, WMcursor *cursor);
extern void QUINN_CheckMouseMode(_THIS);

View File

@ -0,0 +1,273 @@
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2012 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
/* Dummy SDL video driver implementation; this is just enough to make an
* SDL-based application THINK it's got a working video driver, for
* applications that call SDL_Init(SDL_INIT_VIDEO) when they don't need it,
* and also for use as a collection of stubs when porting SDL to a new
* platform for which you haven't yet written a valid video driver.
*
* This is also a great way to determine bottlenecks: if you think that SDL
* is a performance problem for a given platform, enable this driver, and
* then see if your application runs faster without video overhead.
*
* Initial work by Ryan C. Gordon (icculus@icculus.org). A good portion
* of this was cut-and-pasted from Stephane Peter's work in the AAlib
* SDL video driver. Renamed to "QUINN" by Kevin Lange.
*/
#include "SDL_video.h"
#include "SDL_mouse.h"
#include "../SDL_sysvideo.h"
#include "../SDL_pixels_c.h"
#include "../../events/SDL_events_c.h"
#include "SDL_quinnvideo.h"
#include "SDL_quinnevents_c.h"
#include "SDL_quinnmouse_c.h"
#include "quinn.h"
#define QUINNVID_DRIVER_NAME "quinn"
unsigned char *QUINN_Icon = NULL;
extern QUINN_recv_event(struct window_req_t *req);
struct SDL_VideoDevice *__quinn_device;
/* Initialization/Query functions */
static int QUINN_VideoInit(_THIS, SDL_PixelFormat *vformat);
static SDL_Rect **QUINN_ListModes(_THIS, SDL_PixelFormat *format, Uint32 flags);
static SDL_Surface *QUINN_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
static int QUINN_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
static void QUINN_VideoQuit(_THIS);
/* Hardware surface functions */
static int QUINN_AllocHWSurface(_THIS, SDL_Surface *surface);
static int QUINN_LockHWSurface(_THIS, SDL_Surface *surface);
static void QUINN_UnlockHWSurface(_THIS, SDL_Surface *surface);
static void QUINN_FreeHWSurface(_THIS, SDL_Surface *surface);
static void QUINN_SetCaption(_THIS, const char *title, const char *icon);
/* etc. */
static void QUINN_UpdateRects(_THIS, int numrects, SDL_Rect *rects);
/* QUINN driver bootstrap functions */
static int QUINN_Available(void)
{
return 1;
}
static void QUINN_DeleteDevice(SDL_VideoDevice *device)
{
SDL_free(device->hidden);
SDL_free(device);
}
static SDL_VideoDevice *QUINN_CreateDevice(int devindex)
{
SDL_VideoDevice *device;
/* Initialize all variables that we clean on shutdown */
device = (SDL_VideoDevice *)SDL_malloc(sizeof(SDL_VideoDevice));
if ( device ) {
SDL_memset(device, 0, (sizeof *device));
device->hidden = (struct SDL_PrivateVideoData *)
SDL_malloc((sizeof *device->hidden));
}
if ( (device == NULL) || (device->hidden == NULL) ) {
SDL_OutOfMemory();
if ( device ) {
SDL_free(device);
}
return(0);
}
SDL_memset(device->hidden, 0, (sizeof *device->hidden));
/* Set the function pointers */
device->VideoInit = QUINN_VideoInit;
device->ListModes = QUINN_ListModes;
device->SetVideoMode = QUINN_SetVideoMode;
device->CreateYUVOverlay = NULL;
device->SetColors = QUINN_SetColors;
device->UpdateRects = QUINN_UpdateRects;
device->VideoQuit = QUINN_VideoQuit;
device->AllocHWSurface = QUINN_AllocHWSurface;
device->CheckHWBlit = NULL;
device->FillHWRect = NULL;
device->SetHWColorKey = NULL;
device->SetHWAlpha = NULL;
device->LockHWSurface = QUINN_LockHWSurface;
device->UnlockHWSurface = QUINN_UnlockHWSurface;
device->FlipHWSurface = NULL;
device->FreeHWSurface = QUINN_FreeHWSurface;
device->SetCaption = NULL;
device->SetIcon = NULL;
device->IconifyWindow = NULL;
device->GrabInput = NULL;
device->GetWMInfo = NULL;
device->FreeWMCursor = QUINN_FreeWMCursor;
device->CreateWMCursor = QUINN_CreateWMCursor;
device->ShowWMCursor = QUINN_ShowWMCursor;
device->WarpWMCursor = QUINN_WarpWMCursor;
device->InitOSKeymap = QUINN_InitOSKeymap;
device->PumpEvents = QUINN_PumpEvents;
device->SetCaption = QUINN_SetCaption;
device->CheckMouseMode = QUINN_CheckMouseMode;
device->free = QUINN_DeleteDevice;
return device;
}
VideoBootStrap QUINN_bootstrap = {
QUINNVID_DRIVER_NAME, "SDL Quinn OS video driver",
QUINN_Available, QUINN_CreateDevice
};
int QUINN_VideoInit(_THIS, SDL_PixelFormat *vformat)
{
vformat->BitsPerPixel = 32;
vformat->BytesPerPixel = 4;
quinn_init();
this->hidden->wh = -1;
__quinn_device = this;
/* We're done! */
return(0);
}
SDL_Rect **QUINN_ListModes(_THIS, SDL_PixelFormat *format, Uint32 flags)
{
return (SDL_Rect **) -1;
}
void QUINN_WinExit(int wh) {
__quinn_device->hidden->doexit = 1;
}
SDL_Surface *QUINN_SetVideoMode(_THIS, SDL_Surface *current,
int width, int height, int bpp, Uint32 flags)
{
if ( this->hidden->wh != -1) {
// close window and open a new one the requested sizeo
quinn_remove_window(this->hidden->wh);
}
struct window_req_t *req;
req = (struct window_req_t *)malloc(sizeof(struct window_req_t));
if (flags & SDL_NOFRAME) {
req->flags = WIN_REQ_FLAG_NO_TITLE;
req->x = 0;
req->y = 0;
} else {
req->flags = 0;
req->x = 0;
req->y = 25;
}
sprintf(req->name, "SDL Window");
req->width = width;
req->height = height;
if (QUINN_Icon == NULL) {
req->icon = NULL;
} else {
req->icon = QUINN_Icon;
}
this->hidden->bpp = bpp;
this->hidden->doexit = 0;
this->hidden->wh = quinn_req_window(req, QUINN_WinExit);
if (QUINN_Icon == NULL) {
free(QUINN_Icon);
QUINN_Icon = NULL;
}
this->hidden->surface = quinn_add_sdl_surface(this->hidden->wh, 0, 0, width, height, QUINN_recv_event);
/* Set up the new mode framebuffer */
current->flags = flags;
current->w = width;
current->h = height;
current->pitch = current->w * (4);
current->pixels = this->hidden->surface;
/* We're done */
return(current);
}
/* We don't actually allow hardware surfaces other than the main one */
static int QUINN_AllocHWSurface(_THIS, SDL_Surface *surface)
{
return(-1);
}
static void QUINN_FreeHWSurface(_THIS, SDL_Surface *surface)
{
return;
}
/* We need to wait for vertical retrace on page flipped displays */
static int QUINN_LockHWSurface(_THIS, SDL_Surface *surface)
{
return(0);
}
static void QUINN_UnlockHWSurface(_THIS, SDL_Surface *surface)
{
return;
}
static void QUINN_UpdateRects(_THIS, int numrects, SDL_Rect *rects)
{
quinn_update_window();
// quinn_yield();
}
int QUINN_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors)
{
/* We don't support palettes... */
return(1);
}
/* Note: If we are terminated, this could be called in the middle of
another SDL video routine -- notably UpdateRects.
*/
void QUINN_VideoQuit(_THIS)
{
/* XXX close windows */
}
static void QUINN_SetCaption(_THIS, const char *title, const char *icon) {
quinn_set_win_caption(this->hidden->wh, title);
return;
}

View File

@ -0,0 +1,43 @@
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2012 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
#ifndef _SDL_quinnvideo_h
#define _SDL_quinnvideo_h
#include "../SDL_sysvideo.h"
/* Hidden "this" pointer for the video functions */
#define _THIS SDL_VideoDevice *this
#include "quinn.h"
/* Private display data */
struct SDL_PrivateVideoData {
int wh;
char *surface;
int bpp;
int doexit;
};
#endif /* _SDL_nullvideo_h */

File diff suppressed because it is too large Load Diff

View File

@ -1,76 +0,0 @@
# This file was generated by Autom4te Sun Nov 6 20:57:04 UTC 2011.
# It contains the lists of macros which have been traced.
# It can be safely removed.
@request = (
bless( [
'0',
1,
[
'/usr/share/autoconf'
],
[
'/usr/share/autoconf/autoconf/autoconf.m4f',
'aclocal.m4',
'configure.in'
],
{
'AM_PROG_F77_C_O' => 1,
'_LT_AC_TAGCONFIG' => 1,
'm4_pattern_forbid' => 1,
'AC_INIT' => 1,
'AC_CANONICAL_TARGET' => 1,
'_AM_COND_IF' => 1,
'AC_CONFIG_LIBOBJ_DIR' => 1,
'AC_SUBST' => 1,
'AC_CANONICAL_HOST' => 1,
'AC_FC_SRCEXT' => 1,
'AC_PROG_LIBTOOL' => 1,
'AM_INIT_AUTOMAKE' => 1,
'AC_CONFIG_SUBDIRS' => 1,
'AM_PATH_GUILE' => 1,
'AM_AUTOMAKE_VERSION' => 1,
'LT_CONFIG_LTDL_DIR' => 1,
'AC_CONFIG_LINKS' => 1,
'AC_REQUIRE_AUX_FILE' => 1,
'LT_SUPPORTED_TAG' => 1,
'm4_sinclude' => 1,
'AM_MAINTAINER_MODE' => 1,
'AM_NLS' => 1,
'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
'_m4_warn' => 1,
'AM_MAKEFILE_INCLUDE' => 1,
'AM_PROG_CXX_C_O' => 1,
'_AM_MAKEFILE_INCLUDE' => 1,
'_AM_COND_ENDIF' => 1,
'AM_ENABLE_MULTILIB' => 1,
'AM_SILENT_RULES' => 1,
'AM_PROG_MOC' => 1,
'AC_CONFIG_FILES' => 1,
'LT_INIT' => 1,
'include' => 1,
'AM_GNU_GETTEXT' => 1,
'AM_PROG_AR' => 1,
'AC_LIBSOURCE' => 1,
'AC_CANONICAL_BUILD' => 1,
'AM_PROG_FC_C_O' => 1,
'AC_FC_FREEFORM' => 1,
'AH_OUTPUT' => 1,
'AC_CONFIG_AUX_DIR' => 1,
'_AM_SUBST_NOTMAKE' => 1,
'm4_pattern_allow' => 1,
'AM_PROG_CC_C_O' => 1,
'sinclude' => 1,
'AM_CONDITIONAL' => 1,
'AC_CANONICAL_SYSTEM' => 1,
'AM_XGETTEXT_OPTION' => 1,
'AC_CONFIG_HEADERS' => 1,
'AC_DEFINE_TRACE_LITERAL' => 1,
'AM_POT_TOOLS' => 1,
'm4_include' => 1,
'_AM_COND_ELSE' => 1,
'AC_SUBST_TRACE' => 1
}
], 'Autom4te::Request' )
);

View File

@ -1,281 +0,0 @@
m4trace:configure.in:2: -1- AC_INIT([README])
m4trace:configure.in:2: -1- m4_pattern_forbid([^_?A[CHUM]_])
m4trace:configure.in:2: -1- m4_pattern_forbid([_AC_])
m4trace:configure.in:2: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
m4trace:configure.in:2: -1- m4_pattern_allow([^AS_FLAGS$])
m4trace:configure.in:2: -1- m4_pattern_forbid([^_?m4_])
m4trace:configure.in:2: -1- m4_pattern_forbid([^dnl$])
m4trace:configure.in:2: -1- m4_pattern_forbid([^_?AS_])
m4trace:configure.in:2: -1- AC_SUBST([SHELL])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([SHELL])
m4trace:configure.in:2: -1- m4_pattern_allow([^SHELL$])
m4trace:configure.in:2: -1- AC_SUBST([PATH_SEPARATOR])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([PATH_SEPARATOR])
m4trace:configure.in:2: -1- m4_pattern_allow([^PATH_SEPARATOR$])
m4trace:configure.in:2: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([PACKAGE_NAME])
m4trace:configure.in:2: -1- m4_pattern_allow([^PACKAGE_NAME$])
m4trace:configure.in:2: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([PACKAGE_TARNAME])
m4trace:configure.in:2: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
m4trace:configure.in:2: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([PACKAGE_VERSION])
m4trace:configure.in:2: -1- m4_pattern_allow([^PACKAGE_VERSION$])
m4trace:configure.in:2: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([PACKAGE_STRING])
m4trace:configure.in:2: -1- m4_pattern_allow([^PACKAGE_STRING$])
m4trace:configure.in:2: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT])
m4trace:configure.in:2: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
m4trace:configure.in:2: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL], ['AC_PACKAGE_URL'])])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([PACKAGE_URL])
m4trace:configure.in:2: -1- m4_pattern_allow([^PACKAGE_URL$])
m4trace:configure.in:2: -1- AC_SUBST([exec_prefix], [NONE])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([exec_prefix])
m4trace:configure.in:2: -1- m4_pattern_allow([^exec_prefix$])
m4trace:configure.in:2: -1- AC_SUBST([prefix], [NONE])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([prefix])
m4trace:configure.in:2: -1- m4_pattern_allow([^prefix$])
m4trace:configure.in:2: -1- AC_SUBST([program_transform_name], [s,x,x,])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([program_transform_name])
m4trace:configure.in:2: -1- m4_pattern_allow([^program_transform_name$])
m4trace:configure.in:2: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([bindir])
m4trace:configure.in:2: -1- m4_pattern_allow([^bindir$])
m4trace:configure.in:2: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([sbindir])
m4trace:configure.in:2: -1- m4_pattern_allow([^sbindir$])
m4trace:configure.in:2: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([libexecdir])
m4trace:configure.in:2: -1- m4_pattern_allow([^libexecdir$])
m4trace:configure.in:2: -1- AC_SUBST([datarootdir], ['${prefix}/share'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([datarootdir])
m4trace:configure.in:2: -1- m4_pattern_allow([^datarootdir$])
m4trace:configure.in:2: -1- AC_SUBST([datadir], ['${datarootdir}'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([datadir])
m4trace:configure.in:2: -1- m4_pattern_allow([^datadir$])
m4trace:configure.in:2: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([sysconfdir])
m4trace:configure.in:2: -1- m4_pattern_allow([^sysconfdir$])
m4trace:configure.in:2: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([sharedstatedir])
m4trace:configure.in:2: -1- m4_pattern_allow([^sharedstatedir$])
m4trace:configure.in:2: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([localstatedir])
m4trace:configure.in:2: -1- m4_pattern_allow([^localstatedir$])
m4trace:configure.in:2: -1- AC_SUBST([includedir], ['${prefix}/include'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([includedir])
m4trace:configure.in:2: -1- m4_pattern_allow([^includedir$])
m4trace:configure.in:2: -1- AC_SUBST([oldincludedir], ['/usr/include'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([oldincludedir])
m4trace:configure.in:2: -1- m4_pattern_allow([^oldincludedir$])
m4trace:configure.in:2: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME],
['${datarootdir}/doc/${PACKAGE_TARNAME}'],
['${datarootdir}/doc/${PACKAGE}'])])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([docdir])
m4trace:configure.in:2: -1- m4_pattern_allow([^docdir$])
m4trace:configure.in:2: -1- AC_SUBST([infodir], ['${datarootdir}/info'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([infodir])
m4trace:configure.in:2: -1- m4_pattern_allow([^infodir$])
m4trace:configure.in:2: -1- AC_SUBST([htmldir], ['${docdir}'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([htmldir])
m4trace:configure.in:2: -1- m4_pattern_allow([^htmldir$])
m4trace:configure.in:2: -1- AC_SUBST([dvidir], ['${docdir}'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([dvidir])
m4trace:configure.in:2: -1- m4_pattern_allow([^dvidir$])
m4trace:configure.in:2: -1- AC_SUBST([pdfdir], ['${docdir}'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([pdfdir])
m4trace:configure.in:2: -1- m4_pattern_allow([^pdfdir$])
m4trace:configure.in:2: -1- AC_SUBST([psdir], ['${docdir}'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([psdir])
m4trace:configure.in:2: -1- m4_pattern_allow([^psdir$])
m4trace:configure.in:2: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([libdir])
m4trace:configure.in:2: -1- m4_pattern_allow([^libdir$])
m4trace:configure.in:2: -1- AC_SUBST([localedir], ['${datarootdir}/locale'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([localedir])
m4trace:configure.in:2: -1- m4_pattern_allow([^localedir$])
m4trace:configure.in:2: -1- AC_SUBST([mandir], ['${datarootdir}/man'])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([mandir])
m4trace:configure.in:2: -1- m4_pattern_allow([^mandir$])
m4trace:configure.in:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
m4trace:configure.in:2: -1- m4_pattern_allow([^PACKAGE_NAME$])
m4trace:configure.in:2: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
@%:@undef PACKAGE_NAME])
m4trace:configure.in:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
m4trace:configure.in:2: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
m4trace:configure.in:2: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
@%:@undef PACKAGE_TARNAME])
m4trace:configure.in:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
m4trace:configure.in:2: -1- m4_pattern_allow([^PACKAGE_VERSION$])
m4trace:configure.in:2: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
@%:@undef PACKAGE_VERSION])
m4trace:configure.in:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
m4trace:configure.in:2: -1- m4_pattern_allow([^PACKAGE_STRING$])
m4trace:configure.in:2: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
@%:@undef PACKAGE_STRING])
m4trace:configure.in:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
m4trace:configure.in:2: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
m4trace:configure.in:2: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
@%:@undef PACKAGE_BUGREPORT])
m4trace:configure.in:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL])
m4trace:configure.in:2: -1- m4_pattern_allow([^PACKAGE_URL$])
m4trace:configure.in:2: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */
@%:@undef PACKAGE_URL])
m4trace:configure.in:2: -1- AC_SUBST([DEFS])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([DEFS])
m4trace:configure.in:2: -1- m4_pattern_allow([^DEFS$])
m4trace:configure.in:2: -1- AC_SUBST([ECHO_C])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([ECHO_C])
m4trace:configure.in:2: -1- m4_pattern_allow([^ECHO_C$])
m4trace:configure.in:2: -1- AC_SUBST([ECHO_N])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([ECHO_N])
m4trace:configure.in:2: -1- m4_pattern_allow([^ECHO_N$])
m4trace:configure.in:2: -1- AC_SUBST([ECHO_T])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([ECHO_T])
m4trace:configure.in:2: -1- m4_pattern_allow([^ECHO_T$])
m4trace:configure.in:2: -1- AC_SUBST([LIBS])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([LIBS])
m4trace:configure.in:2: -1- m4_pattern_allow([^LIBS$])
m4trace:configure.in:2: -1- AC_SUBST([build_alias])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([build_alias])
m4trace:configure.in:2: -1- m4_pattern_allow([^build_alias$])
m4trace:configure.in:2: -1- AC_SUBST([host_alias])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([host_alias])
m4trace:configure.in:2: -1- m4_pattern_allow([^host_alias$])
m4trace:configure.in:2: -1- AC_SUBST([target_alias])
m4trace:configure.in:2: -1- AC_SUBST_TRACE([target_alias])
m4trace:configure.in:2: -1- m4_pattern_allow([^target_alias$])
m4trace:configure.in:6: -1- AC_CANONICAL_HOST
m4trace:configure.in:6: -1- AC_CANONICAL_BUILD
m4trace:configure.in:6: -1- AC_REQUIRE_AUX_FILE([config.sub])
m4trace:configure.in:6: -1- AC_REQUIRE_AUX_FILE([config.guess])
m4trace:configure.in:6: -1- AC_SUBST([build], [$ac_cv_build])
m4trace:configure.in:6: -1- AC_SUBST_TRACE([build])
m4trace:configure.in:6: -1- m4_pattern_allow([^build$])
m4trace:configure.in:6: -1- AC_SUBST([build_cpu], [$[1]])
m4trace:configure.in:6: -1- AC_SUBST_TRACE([build_cpu])
m4trace:configure.in:6: -1- m4_pattern_allow([^build_cpu$])
m4trace:configure.in:6: -1- AC_SUBST([build_vendor], [$[2]])
m4trace:configure.in:6: -1- AC_SUBST_TRACE([build_vendor])
m4trace:configure.in:6: -1- m4_pattern_allow([^build_vendor$])
m4trace:configure.in:6: -1- AC_SUBST([build_os])
m4trace:configure.in:6: -1- AC_SUBST_TRACE([build_os])
m4trace:configure.in:6: -1- m4_pattern_allow([^build_os$])
m4trace:configure.in:6: -1- AC_SUBST([host], [$ac_cv_host])
m4trace:configure.in:6: -1- AC_SUBST_TRACE([host])
m4trace:configure.in:6: -1- m4_pattern_allow([^host$])
m4trace:configure.in:6: -1- AC_SUBST([host_cpu], [$[1]])
m4trace:configure.in:6: -1- AC_SUBST_TRACE([host_cpu])
m4trace:configure.in:6: -1- m4_pattern_allow([^host_cpu$])
m4trace:configure.in:6: -1- AC_SUBST([host_vendor], [$[2]])
m4trace:configure.in:6: -1- AC_SUBST_TRACE([host_vendor])
m4trace:configure.in:6: -1- m4_pattern_allow([^host_vendor$])
m4trace:configure.in:6: -1- AC_SUBST([host_os])
m4trace:configure.in:6: -1- AC_SUBST_TRACE([host_os])
m4trace:configure.in:6: -1- m4_pattern_allow([^host_os$])
m4trace:configure.in:10: -1- AC_SUBST([CC])
m4trace:configure.in:10: -1- AC_SUBST_TRACE([CC])
m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
m4trace:configure.in:10: -1- AC_SUBST([CFLAGS])
m4trace:configure.in:10: -1- AC_SUBST_TRACE([CFLAGS])
m4trace:configure.in:10: -1- m4_pattern_allow([^CFLAGS$])
m4trace:configure.in:10: -1- AC_SUBST([LDFLAGS])
m4trace:configure.in:10: -1- AC_SUBST_TRACE([LDFLAGS])
m4trace:configure.in:10: -1- m4_pattern_allow([^LDFLAGS$])
m4trace:configure.in:10: -1- AC_SUBST([LIBS])
m4trace:configure.in:10: -1- AC_SUBST_TRACE([LIBS])
m4trace:configure.in:10: -1- m4_pattern_allow([^LIBS$])
m4trace:configure.in:10: -1- AC_SUBST([CPPFLAGS])
m4trace:configure.in:10: -1- AC_SUBST_TRACE([CPPFLAGS])
m4trace:configure.in:10: -1- m4_pattern_allow([^CPPFLAGS$])
m4trace:configure.in:10: -1- AC_SUBST([CC])
m4trace:configure.in:10: -1- AC_SUBST_TRACE([CC])
m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
m4trace:configure.in:10: -1- AC_SUBST([CC])
m4trace:configure.in:10: -1- AC_SUBST_TRACE([CC])
m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
m4trace:configure.in:10: -1- AC_SUBST([CC])
m4trace:configure.in:10: -1- AC_SUBST_TRACE([CC])
m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
m4trace:configure.in:10: -1- AC_SUBST([CC])
m4trace:configure.in:10: -1- AC_SUBST_TRACE([CC])
m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
m4trace:configure.in:10: -1- AC_SUBST([ac_ct_CC])
m4trace:configure.in:10: -1- AC_SUBST_TRACE([ac_ct_CC])
m4trace:configure.in:10: -1- m4_pattern_allow([^ac_ct_CC$])
m4trace:configure.in:10: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
m4trace:configure.in:10: -1- AC_SUBST_TRACE([EXEEXT])
m4trace:configure.in:10: -1- m4_pattern_allow([^EXEEXT$])
m4trace:configure.in:10: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
m4trace:configure.in:10: -1- AC_SUBST_TRACE([OBJEXT])
m4trace:configure.in:10: -1- m4_pattern_allow([^OBJEXT$])
m4trace:configure.in:14: -1- AC_DEFINE_TRACE_LITERAL([const])
m4trace:configure.in:14: -1- m4_pattern_allow([^const$])
m4trace:configure.in:14: -1- AH_OUTPUT([const], [/* Define to empty if `const\' does not conform to ANSI C. */
@%:@undef const])
m4trace:configure.in:35: -1- _m4_warn([obsolete], [The macro `ac_cv_prog_gcc' is obsolete.
You should run autoupdate.], [../../lib/autoconf/c.m4:436: ac_cv_prog_gcc is expanded from...
configure.in:35: the top level])
m4trace:configure.in:43: -1- AC_SUBST([OSMESA_CONFIG])
m4trace:configure.in:43: -1- AC_SUBST_TRACE([OSMESA_CONFIG])
m4trace:configure.in:43: -1- m4_pattern_allow([^OSMESA_CONFIG$])
m4trace:configure.in:59: -1- AC_SUBST([EXE])
m4trace:configure.in:59: -1- AC_SUBST_TRACE([EXE])
m4trace:configure.in:59: -1- m4_pattern_allow([^EXE$])
m4trace:configure.in:60: -1- AC_SUBST([MATHLIB])
m4trace:configure.in:60: -1- AC_SUBST_TRACE([MATHLIB])
m4trace:configure.in:60: -1- m4_pattern_allow([^MATHLIB$])
m4trace:configure.in:64: -1- AC_SUBST([SDL_CONFIG])
m4trace:configure.in:64: -1- AC_SUBST_TRACE([SDL_CONFIG])
m4trace:configure.in:64: -1- m4_pattern_allow([^SDL_CONFIG$])
m4trace:configure.in:64: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2765: AC_TRY_RUN is expanded from...
aclocal.m4:11: AM_PATH_SDL is expanded from...
configure.in:64: the top level])
m4trace:configure.in:64: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2688: AC_TRY_LINK is expanded from...
aclocal.m4:11: AM_PATH_SDL is expanded from...
configure.in:64: the top level])
m4trace:configure.in:64: -1- AC_SUBST([SDL_CFLAGS])
m4trace:configure.in:64: -1- AC_SUBST_TRACE([SDL_CFLAGS])
m4trace:configure.in:64: -1- m4_pattern_allow([^SDL_CFLAGS$])
m4trace:configure.in:64: -1- AC_SUBST([SDL_LIBS])
m4trace:configure.in:64: -1- AC_SUBST_TRACE([SDL_LIBS])
m4trace:configure.in:64: -1- m4_pattern_allow([^SDL_LIBS$])
m4trace:configure.in:72: -1- AC_SUBST([XMKMF])
m4trace:configure.in:72: -1- AC_SUBST_TRACE([XMKMF])
m4trace:configure.in:72: -1- m4_pattern_allow([^XMKMF$])
m4trace:configure.in:72: -1- AC_SUBST([CPP])
m4trace:configure.in:72: -1- AC_SUBST_TRACE([CPP])
m4trace:configure.in:72: -1- m4_pattern_allow([^CPP$])
m4trace:configure.in:72: -1- AC_SUBST([CPPFLAGS])
m4trace:configure.in:72: -1- AC_SUBST_TRACE([CPPFLAGS])
m4trace:configure.in:72: -1- m4_pattern_allow([^CPPFLAGS$])
m4trace:configure.in:72: -1- AC_SUBST([CPP])
m4trace:configure.in:72: -1- AC_SUBST_TRACE([CPP])
m4trace:configure.in:72: -1- m4_pattern_allow([^CPP$])
m4trace:configure.in:89: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2615: AC_TRY_COMPILE is expanded from...
configure.in:89: the top level])
m4trace:configure.in:102: -1- AC_SUBST([GLLIB])
m4trace:configure.in:102: -1- AC_SUBST_TRACE([GLLIB])
m4trace:configure.in:102: -1- m4_pattern_allow([^GLLIB$])
m4trace:configure.in:105: -1- AC_CONFIG_FILES([Makefile])
m4trace:configure.in:105: -1- _m4_warn([obsolete], [AC_OUTPUT should be used without arguments.
You should run autoupdate.], [])
m4trace:configure.in:105: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
m4trace:configure.in:105: -1- AC_SUBST_TRACE([LIB@&t@OBJS])
m4trace:configure.in:105: -1- m4_pattern_allow([^LIB@&t@OBJS$])
m4trace:configure.in:105: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
m4trace:configure.in:105: -1- AC_SUBST_TRACE([LTLIBOBJS])
m4trace:configure.in:105: -1- m4_pattern_allow([^LTLIBOBJS$])
m4trace:configure.in:105: -1- AC_SUBST_TRACE([top_builddir])
m4trace:configure.in:105: -1- AC_SUBST_TRACE([top_build_prefix])
m4trace:configure.in:105: -1- AC_SUBST_TRACE([srcdir])
m4trace:configure.in:105: -1- AC_SUBST_TRACE([abs_srcdir])
m4trace:configure.in:105: -1- AC_SUBST_TRACE([top_srcdir])
m4trace:configure.in:105: -1- AC_SUBST_TRACE([abs_top_srcdir])
m4trace:configure.in:105: -1- AC_SUBST_TRACE([builddir])
m4trace:configure.in:105: -1- AC_SUBST_TRACE([abs_builddir])
m4trace:configure.in:105: -1- AC_SUBST_TRACE([abs_top_builddir])