Added Quinn OS bits.
This commit is contained in:
parent
8f0d6ea1e2
commit
76d00ae890
2
build-scripts/config.sub
vendored
2
build-scripts/config.sub
vendored
@ -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*)
|
||||||
|
9
configure
vendored
9
configure
vendored
@ -21698,6 +21698,15 @@ 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 $HOME/Quinn/src/quinn-os/programs/gui/libquinn/quinn.o $HOME/Quinn/src/quinn-os/programs/gui/libquinn/convertxpm.o -lpng -lz -lm -lfreetype"
|
||||||
|
;;
|
||||||
*-*-cygwin* | *-*-mingw32*)
|
*-*-cygwin* | *-*-mingw32*)
|
||||||
ARCH=win32
|
ARCH=win32
|
||||||
if test "$build" != "$host"; then # cross-compiling
|
if test "$build" != "$host"; then # cross-compiling
|
||||||
|
@ -2502,6 +2502,14 @@ 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 $HOME/Quinn/src/quinn-os/programs/gui/libquinn/quinn.o $HOME/Quinn/src/quinn-os/programs/gui/libquinn/convertxpm.o"
|
||||||
|
;;
|
||||||
*-*-cygwin* | *-*-mingw32*)
|
*-*-cygwin* | *-*-mingw32*)
|
||||||
ARCH=win32
|
ARCH=win32
|
||||||
if test "$build" != "$host"; then # cross-compiling
|
if test "$build" != "$host"; then # cross-compiling
|
||||||
|
@ -294,6 +294,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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
};
|
};
|
||||||
|
155
src/video/quinn/SDL_quinnevents.c
Normal file
155
src/video/quinn/SDL_quinnevents.c
Normal file
@ -0,0 +1,155 @@
|
|||||||
|
/*
|
||||||
|
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 sdl_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, 0,
|
||||||
|
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_HOME,
|
||||||
|
SDLK_UP, SDLK_PAGEUP, 0, SDLK_LEFT,
|
||||||
|
0, SDLK_RIGHT, 0, SDLK_END,
|
||||||
|
SDLK_DOWN, SDLK_PAGEDOWN, SDLK_INSERT, SDLK_DELETE,
|
||||||
|
0, 0, 0, SDLK_F11, SDLK_F12
|
||||||
|
};
|
||||||
|
|
||||||
|
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];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void QUINN_recv_event(struct window_update_req *req) {
|
||||||
|
memcpy(¤t_req, req, sizeof(struct window_update_req));
|
||||||
|
current_req_current = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void QUINN_PumpEvents(_THIS) {
|
||||||
|
int i;
|
||||||
|
|
||||||
|
if (current_req_current) {
|
||||||
|
if (current_req.lclick != _lmstate) {
|
||||||
|
if (current_req.lclick) {
|
||||||
|
SDL_PrivateMouseButton(SDL_PRESSED, 1, current_req.mousex, current_req.mousey);
|
||||||
|
} else {
|
||||||
|
SDL_PrivateMouseButton(SDL_RELEASED, 1, current_req.mousex, current_req.mousey);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (current_req.rclick != _rmstate) {
|
||||||
|
if (current_req.rclick) {
|
||||||
|
SDL_PrivateMouseButton(SDL_PRESSED, 3, current_req.mousex, current_req.mousey);
|
||||||
|
} else {
|
||||||
|
SDL_PrivateMouseButton(SDL_RELEASED, 3, current_req.mousex, current_req.mousey);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (current_req.mclick != _mmstate) {
|
||||||
|
if (current_req.mclick) {
|
||||||
|
SDL_PrivateMouseButton(SDL_PRESSED, 2, current_req.mousex, current_req.mousey);
|
||||||
|
} else {
|
||||||
|
SDL_PrivateMouseButton(SDL_RELEASED, 2, current_req.mousex, current_req.mousey);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_lmstate = current_req.lclick;
|
||||||
|
_rmstate = current_req.rclick;
|
||||||
|
_mmstate = current_req.mclick;
|
||||||
|
|
||||||
|
SDL_PrivateMouseMotion(0, 0, current_req.mousex, current_req.mousey);
|
||||||
|
|
||||||
|
SDL_keysym keysym;
|
||||||
|
|
||||||
|
for (i=0;i<88;i++) {
|
||||||
|
if (_k_last_state[i] != current_req.key_codes[i]) {
|
||||||
|
keysym.scancode = i;
|
||||||
|
keysym.unicode = 0;
|
||||||
|
keysym.mod = make_mod(current_req.key_codes);
|
||||||
|
if (current_req.key_codes[i] == 1) {
|
||||||
|
// key down
|
||||||
|
keysym.sym = sdl_keyset[i];
|
||||||
|
SDL_PrivateKeyboard(SDL_PRESSED, &keysym);
|
||||||
|
} else {
|
||||||
|
// key up
|
||||||
|
keysym.sym = sdl_keyset[i];
|
||||||
|
SDL_PrivateKeyboard(SDL_RELEASED, &keysym);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_k_last_state[i] = current_req.key_codes[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
current_req_current = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void QUINN_InitOSKeymap(_THIS)
|
||||||
|
{
|
||||||
|
/* do nothing. */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* end of SDL_nullevents.c ... */
|
32
src/video/quinn/SDL_quinnevents_c.h
Normal file
32
src/video/quinn/SDL_quinnevents_c.h
Normal 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 ... */
|
65
src/video/quinn/SDL_quinnmouse.c
Normal file
65
src/video/quinn/SDL_quinnmouse.c
Normal 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) {
|
||||||
|
|
||||||
|
}
|
33
src/video/quinn/SDL_quinnmouse_c.h
Normal file
33
src/video/quinn/SDL_quinnmouse_c.h
Normal 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);
|
268
src/video/quinn/SDL_quinnvideo.c
Normal file
268
src/video/quinn/SDL_quinnvideo.c
Normal file
@ -0,0 +1,268 @@
|
|||||||
|
/*
|
||||||
|
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"
|
||||||
|
|
||||||
|
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) {
|
||||||
|
fprintf(stderr, "I Should Quit\n");
|
||||||
|
__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) {
|
||||||
|
fprintf(stderr, "Resize request to %d x %d.\n", width, height);
|
||||||
|
// 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) {
|
||||||
|
fprintf(stderr, "Initializing without borders.\n");
|
||||||
|
req->flags = WIN_REQ_FLAG_NO_TITLE;
|
||||||
|
req->x = 0;
|
||||||
|
req->y = 0;
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "Initializing with borders.\n");
|
||||||
|
req->flags = 0;
|
||||||
|
req->x = 0;
|
||||||
|
req->y = 25;
|
||||||
|
}
|
||||||
|
|
||||||
|
fprintf(stderr, "Initializing window %dx%d (%d bpp)\n", width, height, bpp);
|
||||||
|
|
||||||
|
sprintf(req->name, "SDL Window");
|
||||||
|
|
||||||
|
req->width = width;
|
||||||
|
req->height = height;
|
||||||
|
req->icon = NULL;
|
||||||
|
|
||||||
|
this->hidden->bpp = bpp;
|
||||||
|
this->hidden->doexit = 0;
|
||||||
|
this->hidden->wh = quinn_req_window(req, QUINN_WinExit);
|
||||||
|
|
||||||
|
this->hidden->surface = quinn_add_sdl_surface(this->hidden->wh, 0, 0, width, height, QUINN_recv_event);
|
||||||
|
|
||||||
|
fprintf(stderr, "Window output initialized...\n");
|
||||||
|
|
||||||
|
/* 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_process();
|
||||||
|
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) {
|
||||||
|
// TODO...
|
||||||
|
}
|
43
src/video/quinn/SDL_quinnvideo.h
Normal file
43
src/video/quinn/SDL_quinnvideo.h
Normal 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
@ -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' )
|
|
||||||
);
|
|
||||||
|
|
@ -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])
|
|
Loading…
x
Reference in New Issue
Block a user