Mercurial > sdl-ios-xcode
annotate test/configure.in @ 1302:94643e9bad18
Date: Sat, 14 Jan 2006 15:16:01 -0500
From: Andrew Fuller
Subject: [SDL] [PATCH] ML-8866 PS2->USB converter
This converter seems to go by several names -- Super Dual Box, Dual
USB Joypad, and who knows what else. Also branded differently with
different colour cases, etc. But it seems to all be the same
internals. It is a common converter used for StepMania, with several
posts Googleable trying to make it work in Linux. I got mine
yesterday and wanted to play stepmania, so I went ahead and made a
crude patch for libsdl to split this baby into two logical joysticks.
A couple notes about the patch:
This patch works well for two dance mats hooked up and playing
stepmania, however the mapping of the other buttons may be off. I
have no joystick which uses all the buttons the converter reports, so
I have no way of testing them.
The name I used 0925:8866 which is the USB ID, and what SDLjoytest-GL
reported is the name, even though lsusb shows Wisegroup, Ltd MP-8866
Dual USB Joypad, and the existing virtual joystick mapping uses the
Wisegroup... name. Not sure why the discrepency.
I'm not subscribed to this mailing list, so please CC me on any
comments to this.
-Andrew
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 31 Jan 2006 14:59:43 +0000 |
parents | 12b13601a544 |
children | e440d5c488c1 |
rev | line source |
---|---|
0 | 1 dnl Process this file with autoconf to produce a configure script. |
2 AC_INIT(README) | |
3 | |
4 dnl Setup for automake | |
796
dec19b813b04
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
670
diff
changeset
|
5 SDL_VERSION=1.2.7 |
0 | 6 |
7 dnl Detect the canonical host and target build environment | |
978
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
796
diff
changeset
|
8 AC_CANONICAL_SYSTEM |
0 | 9 |
51
fba28d77901f
Disabled /dev/event joystick interface by default
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
10 dnl Setup for automake |
fba28d77901f
Disabled /dev/event joystick interface by default
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
11 AM_INIT_AUTOMAKE(SDL_tests, $SDL_VERSION) |
fba28d77901f
Disabled /dev/event joystick interface by default
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
12 |
0 | 13 dnl Check for tools |
14 | |
15 AC_PROG_CC | |
16 | |
17 dnl Check for compiler environment | |
18 | |
19 AC_C_CONST | |
20 | |
21 dnl Figure out which math library to use | |
22 case "$target" in | |
23 *-*-cygwin* | *-*-mingw32*) | |
24 MATHLIB="" | |
25 SYS_GL_LIBS="-lopengl32" | |
26 ;; | |
27 *-*-beos*) | |
28 MATHLIB="" | |
29 SYS_GL_LIBS="-lGL" | |
30 ;; | |
991
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
981
diff
changeset
|
31 *-*-darwin* ) |
0 | 32 MATHLIB="" |
33 SYS_GL_LIBS="" | |
34 ;; | |
35 *-*-aix*) | |
36 if test x$ac_cv_prog_gcc = xyes; then | |
37 CFLAGS="-mthreads" | |
978
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
796
diff
changeset
|
38 fi |
0 | 39 SYS_GL_LIBS="" |
40 ;; | |
991
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
981
diff
changeset
|
41 *-*-mint*) |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
981
diff
changeset
|
42 MATHLIB="" |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
981
diff
changeset
|
43 AC_PATH_PROG(OSMESA_CONFIG, osmesa-config, no) |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
981
diff
changeset
|
44 if test "x$OSMESA_CONFIG" = "xyes"; then |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
981
diff
changeset
|
45 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags` |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
981
diff
changeset
|
46 OSMESA_LIBS=`$OSMESA_CONFIG --libs` |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
981
diff
changeset
|
47 CFLAGS="$CFLAGS $OSMESA_CFLAGS" |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
981
diff
changeset
|
48 SYS_GL_LIBS="$OSMESA_LIBS" |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
981
diff
changeset
|
49 else |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
981
diff
changeset
|
50 SYS_GL_LIBS="-lOSMesa" |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
981
diff
changeset
|
51 fi |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
981
diff
changeset
|
52 ;; |
0 | 53 *) |
54 MATHLIB="-lm" | |
55 AC_PATH_X | |
56 AC_PATH_XTRA | |
57 if test x$have_x = xyes; then | |
58 CFLAGS="$CFLAGS $X_CFLAGS" | |
59 SYS_GL_LIBS="$X_LIBS -lGL" | |
60 else | |
61 SYS_GL_LIBS="-lGL" | |
62 fi | |
63 ;; | |
64 esac | |
65 AC_SUBST(MATHLIB) | |
66 | |
67 dnl Check for SDL | |
68 | |
69 AM_PATH_SDL($SDL_VERSION, | |
70 :, | |
71 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) | |
72 ) | |
73 CFLAGS="$CFLAGS $SDL_CFLAGS" | |
74 LIBS="$LIBS $SDL_LIBS" | |
75 | |
76 dnl Check for OpenGL | |
77 AC_MSG_CHECKING(for OpenGL support) | |
78 have_opengl=no | |
79 AC_TRY_COMPILE([ | |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
214
diff
changeset
|
80 #include "SDL_opengl.h" |
0 | 81 ],[ |
82 ],[ | |
83 have_opengl=yes | |
84 ]) | |
85 AC_MSG_RESULT($have_opengl) | |
86 if test x$have_opengl = xyes; then | |
87 CFLAGS="$CFLAGS -DHAVE_OPENGL" | |
88 GL_LIBS="$SYS_GL_LIBS" | |
89 else | |
90 GL_LIBS="" | |
91 fi | |
92 AC_SUBST(GL_LIBS) | |
93 | |
94 # Finally create all the generated files | |
95 AC_OUTPUT([Makefile]) |