Mercurial > sdl-ios-xcode
annotate configure.in @ 1397:b189a73aa335
Added rules to build libSDLmain.a
Reverted Patrice's mint changes - you should fix the source files, not
add include paths to the build process.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 20 Feb 2006 22:15:38 +0000 |
parents | 428c8690cf73 |
children | 27b719501eb4 |
rev | line source |
---|---|
0 | 1 dnl Process this file with autoconf to produce a configure script. |
2 AC_INIT(README) | |
1341
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
3 AC_CONFIG_HEADER(include/SDL_config.h) |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
4 AC_GNU_SOURCE |
0 | 5 |
6 dnl Set various version strings - taken gratefully from the GTk sources | |
7 # | |
8 # Making releases: | |
9 # Edit include/SDL/SDL_version.h and change the version, then: | |
10 # SDL_MICRO_VERSION += 1; | |
11 # SDL_INTERFACE_AGE += 1; | |
12 # SDL_BINARY_AGE += 1; | |
13 # if any functions have been added, set SDL_INTERFACE_AGE to 0. | |
14 # if backwards compatibility has been broken, | |
15 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0. | |
16 # | |
17 SDL_MAJOR_VERSION=1 | |
18 SDL_MINOR_VERSION=2 | |
1222
09c1408645df
Bumped the version number for the next release
Sam Lantinga <slouken@libsdl.org>
parents:
1203
diff
changeset
|
19 SDL_MICRO_VERSION=10 |
09c1408645df
Bumped the version number for the next release
Sam Lantinga <slouken@libsdl.org>
parents:
1203
diff
changeset
|
20 SDL_INTERFACE_AGE=3 |
09c1408645df
Bumped the version number for the next release
Sam Lantinga <slouken@libsdl.org>
parents:
1203
diff
changeset
|
21 SDL_BINARY_AGE=10 |
0 | 22 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION |
23 | |
24 AC_SUBST(SDL_MAJOR_VERSION) | |
25 AC_SUBST(SDL_MINOR_VERSION) | |
26 AC_SUBST(SDL_MICRO_VERSION) | |
27 AC_SUBST(SDL_INTERFACE_AGE) | |
28 AC_SUBST(SDL_BINARY_AGE) | |
29 AC_SUBST(SDL_VERSION) | |
30 | |
31 # libtool versioning | |
32 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION | |
33 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE` | |
34 LT_REVISION=$SDL_INTERFACE_AGE | |
35 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE` | |
36 | |
37 AC_SUBST(LT_RELEASE) | |
38 AC_SUBST(LT_CURRENT) | |
39 AC_SUBST(LT_REVISION) | |
40 AC_SUBST(LT_AGE) | |
41 | |
42 dnl Detect the canonical host and target build environment | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
43 AC_CONFIG_AUX_DIRS($srcdir/build-scripts) |
557
0ce5a68278fd
Updated Atari port for new system headers (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
546
diff
changeset
|
44 AC_CANONICAL_SYSTEM |
1354
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1353
diff
changeset
|
45 AC_C_BIGENDIAN |
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1353
diff
changeset
|
46 if test x$ac_cv_c_bigendian = xyes; then |
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1353
diff
changeset
|
47 AC_DEFINE(SDL_BYTEORDER, 4321) |
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1353
diff
changeset
|
48 else |
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1353
diff
changeset
|
49 AC_DEFINE(SDL_BYTEORDER, 1234) |
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1353
diff
changeset
|
50 fi |
0 | 51 |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
52 dnl Set up the compiler and linker flags |
1373
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
53 INCLUDE="-I$srcdir/include" |
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
54 if test x$srcdir != x.; then |
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
55 INCLUDE="-Iinclude $INCLUDE" |
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
56 fi |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
57 case "$target" in |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
58 *-*-cygwin*) |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
59 # We build SDL on cygwin without the UNIX emulation layer |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
60 CFLAGS="$CFLAGS -I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin" |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
61 BUILD_CFLAGS="$CFLAGS \$(INCLUDE)" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
62 BUILD_LDFLAGS="$LDFLAGS -mno-cygwin" |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
63 SDL_CFLAGS="-I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin" |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
64 SDL_LIBS="-lSDL -mno-cygwin" |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
65 ;; |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
66 *) |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
67 CFLAGS="$CFLAGS -D_GNU_SOURCE=1" |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
68 BUILD_CFLAGS="$CFLAGS \$(INCLUDE)" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
69 BUILD_LDFLAGS="$LDFLAGS" |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
70 SDL_CFLAGS="" |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
71 SDL_LIBS="-lSDL" |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
72 ;; |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
73 esac |
1373
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
74 |
0 | 75 dnl Check for tools |
76 AC_LIBTOOL_WIN32_DLL | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
77 AC_PROG_LIBTOOL |
0 | 78 AC_PROG_CC |
200 | 79 AC_PROG_CXX |
0 | 80 AC_PROG_INSTALL |
1380
d94b080ff6ce
Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
1379
diff
changeset
|
81 AC_PROG_MAKE_SET |
1341
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
82 |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
83 dnl Check for compiler characteristics |
1341
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
84 AC_C_CONST |
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
85 AC_C_INLINE |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
86 AC_C_VOLATILE |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
87 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
88 dnl See whether we are allowed to use the system C library |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
89 AC_ARG_ENABLE(libc, |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
90 AC_HELP_STRING([--enable-libc], [Use the system C library [default=yes]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
91 , enable_libc=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
92 if test x$enable_libc = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
93 AC_DEFINE(HAVE_LIBC) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
94 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
95 dnl Check for C library headers |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
96 AC_HEADER_STDC |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
97 AC_CHECK_HEADERS(sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h signal.h) |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
98 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
99 dnl Check for typedefs, structures, etc. |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
100 AC_TYPE_SIZE_T |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
101 if test x$ac_cv_header_inttypes_h = xyes -o x$ac_cv_header_stdint_h = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
102 AC_CHECK_TYPE(int64_t) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
103 if test x$ac_cv_type_int64_t = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
104 AC_DEFINE(SDL_HAS_64BIT_TYPE) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
105 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
106 have_inttypes=yes |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
107 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
108 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
109 dnl Checks for library functions. |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
110 AC_FUNC_ALLOCA |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
111 AC_FUNC_MEMCMP |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
112 if test x$ac_cv_func_memcmp_working = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
113 AC_DEFINE(HAVE_MEMCMP) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
114 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
115 AC_FUNC_STRTOD |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
116 if test x$ac_cv_func_strtod = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
117 AC_DEFINE(HAVE_STRTOD) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
118 fi |
1379
c0a74f199ecf
Use only safe string functions
Sam Lantinga <slouken@libsdl.org>
parents:
1377
diff
changeset
|
119 AC_CHECK_FUNCS(malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol _i64toa _ui64toa strtoll atoi atof strcmp strncmp stricmp strcasecmp sscanf snprintf vsnprintf sigaction setjmp nanosleep) |
1373
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
120 |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
121 AC_CHECK_LIB(m, pow, [BUILD_LDFLAGS="$BUILD_LDFLAGS -lm"]) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
122 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
123 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
124 if test x$have_inttypes != xyes; then |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
125 AC_CHECK_SIZEOF(char, 1) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
126 AC_CHECK_SIZEOF(short, 2) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
127 AC_CHECK_SIZEOF(int, 4) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
128 AC_CHECK_SIZEOF(long, 4) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
129 AC_CHECK_SIZEOF(long long, 8) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
130 if test x$ac_cv_sizeof_char = x1; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
131 AC_DEFINE(int8_t, signed char) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
132 AC_DEFINE(uint8_t, unsigned char) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
133 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
134 if test x$ac_cv_sizeof_short = x2; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
135 AC_DEFINE(int16_t, signed short) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
136 AC_DEFINE(uint16_t, unsigned short) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
137 else |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
138 if test x$ac_cv_sizeof_int = x2; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
139 AC_DEFINE(int16_t, signed int) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
140 AC_DEFINE(uint16_t, unsigned int) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
141 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
142 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
143 if test x$ac_cv_sizeof_int = x4; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
144 AC_DEFINE(int32_t, signed int) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
145 AC_DEFINE(uint32_t, unsigned int) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
146 else |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
147 if test x$ac_cv_sizeof_long = x4; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
148 AC_DEFINE(int32_t, signed long) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
149 AC_DEFINE(uint32_t, unsigned long) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
150 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
151 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
152 if test x$ac_cv_sizeof_long = x8; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
153 AC_DEFINE(int64_t, signed long) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
154 AC_DEFINE(uint64_t, unsigned long) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
155 AC_DEFINE(SDL_HAS_64BIT_TYPE) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
156 else |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
157 if test x$ac_cv_sizeof_long_long = x8; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
158 AC_DEFINE(int64_t, signed long long) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
159 AC_DEFINE(uint64_t, unsigned long long) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
160 AC_DEFINE(SDL_HAS_64BIT_TYPE) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
161 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
162 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
163 AC_DEFINE(size_t, unsigned int) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
164 AC_DEFINE(uintptr_t, unsigned long) |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
165 fi |
1341
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
166 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
167 # Standard C sources |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
168 SOURCES="$SOURCES $srcdir/src/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
169 SOURCES="$SOURCES $srcdir/src/audio/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
170 SOURCES="$SOURCES $srcdir/src/cdrom/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
171 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
172 SOURCES="$SOURCES $srcdir/src/events/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
173 SOURCES="$SOURCES $srcdir/src/file/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
174 SOURCES="$SOURCES $srcdir/src/joystick/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
175 SOURCES="$SOURCES $srcdir/src/stdlib/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
176 SOURCES="$SOURCES $srcdir/src/thread/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
177 SOURCES="$SOURCES $srcdir/src/timer/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
178 SOURCES="$SOURCES $srcdir/src/video/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
179 |
0 | 180 dnl Enable/disable various subsystems of the SDL library |
181 | |
182 AC_ARG_ENABLE(audio, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
183 AC_HELP_STRING([--enable-audio], [Enable the audio subsystem [default=yes]]), |
0 | 184 , enable_audio=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
185 if test x$enable_audio != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
186 AC_DEFINE(SDL_AUDIO_DISABLED) |
0 | 187 fi |
188 AC_ARG_ENABLE(video, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
189 AC_HELP_STRING([--enable-video], [Enable the video subsystem [default=yes]]), |
0 | 190 , enable_video=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
191 if test x$enable_video != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
192 AC_DEFINE(SDL_VIDEO_DISABLED) |
0 | 193 fi |
194 AC_ARG_ENABLE(events, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
195 AC_HELP_STRING([--enable-events], [Enable the events subsystem [default=yes]]), |
0 | 196 , enable_events=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
197 if test x$enable_events != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
198 AC_DEFINE(SDL_EVENTS_DISABLED) |
0 | 199 fi |
200 AC_ARG_ENABLE(joystick, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
201 AC_HELP_STRING([--enable-joystick], [Enable the joystick subsystem [default=yes]]), |
0 | 202 , enable_joystick=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
203 if test x$enable_joystick != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
204 AC_DEFINE(SDL_JOYSTICK_DISABLED) |
0 | 205 fi |
206 AC_ARG_ENABLE(cdrom, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
207 AC_HELP_STRING([--enable-cdrom], [Enable the cdrom subsystem [default=yes]]), |
0 | 208 , enable_cdrom=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
209 if test x$enable_cdrom != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
210 AC_DEFINE(SDL_CDROM_DISABLED) |
0 | 211 fi |
212 AC_ARG_ENABLE(threads, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
213 AC_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]]), |
0 | 214 , enable_threads=yes) |
215 if test x$enable_threads != xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
216 AC_DEFINE(SDL_THREADS_DISABLED) |
0 | 217 fi |
218 AC_ARG_ENABLE(timers, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
219 AC_HELP_STRING([--enable-timers], [Enable the timer subsystem [default=yes]]), |
0 | 220 , enable_timers=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
221 if test x$enable_timers != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
222 AC_DEFINE(SDL_TIMERS_DISABLED) |
0 | 223 fi |
224 AC_ARG_ENABLE(file, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
225 AC_HELP_STRING([--enable-file], [Enable the file subsystem [default=yes]]), |
0 | 226 , enable_file=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
227 if test x$enable_file != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
228 AC_DEFINE(SDL_FILE_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
229 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
230 AC_ARG_ENABLE(loadso, |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
231 AC_HELP_STRING([--enable-loadso], [Enable the shared object loading subsystem [default=yes]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
232 , enable_loadso=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
233 if test x$enable_loadso != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
234 AC_DEFINE(SDL_LOADSO_DISABLED) |
0 | 235 fi |
740
e70f80e98f60
Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
236 AC_ARG_ENABLE(cpuinfo, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
237 AC_HELP_STRING([--enable-cpuinfo], [Enable the cpuinfo subsystem [default=yes]]), |
740
e70f80e98f60
Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
238 , enable_cpuinfo=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
239 if test x$enable_cpuinfo != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
240 AC_DEFINE(SDL_CPUINFO_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
241 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
242 AC_ARG_ENABLE(assembly-blit, |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
243 AC_HELP_STRING([--enable-asm-blit], [Enable assembly blitters [default=yes]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
244 , enable_asm_blit=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
245 if test x$enable_asm_blit = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
246 AC_DEFINE(SDL_ASSEMBLY_BLITTERS) |
740
e70f80e98f60
Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
247 fi |
0 | 248 |
249 dnl See if the OSS audio interface is supported | |
250 CheckOSS() | |
251 { | |
252 AC_ARG_ENABLE(oss, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
253 AC_HELP_STRING([--enable-oss], [support the OSS audio API [default=yes]]), |
0 | 254 , enable_oss=yes) |
255 if test x$enable_audio = xyes -a x$enable_oss = xyes; then | |
256 AC_MSG_CHECKING(for OSS audio support) | |
257 have_oss=no | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
258 if test x$have_oss != xyes; then |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
259 AC_TRY_COMPILE([ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
260 #include <sys/soundcard.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
261 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
262 int arg = SNDCTL_DSP_SETFRAGMENT; |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
263 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
264 have_oss=yes |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
265 ]) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
266 fi |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
267 if test x$have_oss != xyes; then |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
268 AC_TRY_COMPILE([ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
269 #include <soundcard.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
270 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
271 int arg = SNDCTL_DSP_SETFRAGMENT; |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
272 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
273 have_oss=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
274 AC_DEFINE(SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H) |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
275 ]) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
276 fi |
0 | 277 AC_MSG_RESULT($have_oss) |
278 if test x$have_oss = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
279 AC_DEFINE(SDL_AUDIO_DRIVER_OSS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
280 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
281 SOURCES="$SOURCES $srcdir/src/audio/dma/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
282 have_audio=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
283 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
284 # OpenBSD needs linking with ossaudio emulation library |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
285 case "$target" in |
1383 | 286 *-*-openbsd*|*-*-netbsd*) |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
287 BUILD_LDFLAGS="$BUILD_LDFLAGS -lossaudio";; |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
288 esac |
0 | 289 fi |
290 fi | |
291 } | |
292 | |
293 dnl See if the ALSA audio interface is supported | |
294 CheckALSA() | |
295 { | |
296 AC_ARG_ENABLE(alsa, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
297 AC_HELP_STRING([--enable-alsa], [support the ALSA audio API [default=yes]]), |
0 | 298 , enable_alsa=yes) |
299 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then | |
948
ac488ad4ef1d
Don't fail if we don't have ALSA available
Sam Lantinga <slouken@libsdl.org>
parents:
939
diff
changeset
|
300 AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no) |
1009
027688378762
No really, don't link with the ALSA library!
Sam Lantinga <slouken@libsdl.org>
parents:
991
diff
changeset
|
301 # Restore all flags from before the ALSA detection runs |
027688378762
No really, don't link with the ALSA library!
Sam Lantinga <slouken@libsdl.org>
parents:
991
diff
changeset
|
302 CFLAGS="$alsa_save_CFLAGS" |
027688378762
No really, don't link with the ALSA library!
Sam Lantinga <slouken@libsdl.org>
parents:
991
diff
changeset
|
303 LDFLAGS="$alsa_save_LDFLAGS" |
027688378762
No really, don't link with the ALSA library!
Sam Lantinga <slouken@libsdl.org>
parents:
991
diff
changeset
|
304 LIBS="$alsa_save_LIBS" |
354
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
305 if test x$have_alsa = xyes; then |
865
92615154bb68
Date: Sun, 29 Feb 2004 15:14:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
856
diff
changeset
|
306 AC_ARG_ENABLE(alsa-shared, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
307 AC_HELP_STRING([--enable-alsa-shared], [dynamically load ALSA audio support [default=yes]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
308 , enable_alsa_shared=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
309 if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
310 if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
311 ALSA_LIBS="-L/lib $ALSA_LIBS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
312 elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
313 ALSA_LIBS="-L/usr/lib $ALSA_LIBS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
314 elif test "x`ls /usr/local/lib/libasound.so.* 2> /dev/null`" != "x"; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
315 ALSA_LIBS="-L/usr/local/lib $ALSA_LIBS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
316 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
317 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
318 alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libasound.so.*/'` |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
319 alsa_lib=`ls $alsa_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
320 echo "-- $alsa_lib_spec -> $alsa_lib" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
321 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
322 AC_DEFINE(SDL_AUDIO_DRIVER_ALSA) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
323 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
324 BUILD_CFLAGS="$BUILD_CFLAGS $ALSA_CFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
325 if test x$have_loadso != xyes && \ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
326 test x$enable_alsa_shared = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
327 AC_MSG_ERROR([You must have SDL_LoadObject() support]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
328 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
329 if test x$have_loadso = xyes && \ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
330 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
331 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ALSA_DYNAMIC, "$alsa_lib") |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
332 else |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
333 BUILD_LDFLAGS="$BUILD_LDFLAGS $ALSA_LIBS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
334 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
335 have_audio=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
336 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
337 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
338 if test x$have_alsa = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
339 AC_ARG_ENABLE(alsa-shared, |
865
92615154bb68
Date: Sun, 29 Feb 2004 15:14:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
856
diff
changeset
|
340 [ --enable-alsa-shared dynamically load ALSA audio support [default=yes]], |
92615154bb68
Date: Sun, 29 Feb 2004 15:14:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
856
diff
changeset
|
341 , enable_alsa_shared=yes) |
939
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
342 if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then |
973
795ac5fbe260
Fedora Core 3 has libasound.so in /lib
Sam Lantinga <slouken@libsdl.org>
parents:
955
diff
changeset
|
343 if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then |
795ac5fbe260
Fedora Core 3 has libasound.so in /lib
Sam Lantinga <slouken@libsdl.org>
parents:
955
diff
changeset
|
344 ALSA_LIBS="-L/lib $ALSA_LIBS" |
795ac5fbe260
Fedora Core 3 has libasound.so in /lib
Sam Lantinga <slouken@libsdl.org>
parents:
955
diff
changeset
|
345 elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then |
939
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
346 ALSA_LIBS="-L/usr/lib $ALSA_LIBS" |
973
795ac5fbe260
Fedora Core 3 has libasound.so in /lib
Sam Lantinga <slouken@libsdl.org>
parents:
955
diff
changeset
|
347 elif test "x`ls /usr/local/lib/libasound.so.* 2> /dev/null`" != "x"; then |
939
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
348 ALSA_LIBS="-L/usr/local/lib $ALSA_LIBS" |
973
795ac5fbe260
Fedora Core 3 has libasound.so in /lib
Sam Lantinga <slouken@libsdl.org>
parents:
955
diff
changeset
|
349 fi |
939
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
350 fi |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
351 alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libasound.so.*/'` |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
352 alsa_lib=`ls $alsa_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
353 echo "-- $alsa_lib_spec -> $alsa_lib" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
354 |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
355 if test x$have_loadso != xyes && \ |
865
92615154bb68
Date: Sun, 29 Feb 2004 15:14:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
856
diff
changeset
|
356 test x$enable_alsa_shared = xyes; then |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
357 AC_MSG_ERROR([You must have SDL_LoadObject() support]) |
865
92615154bb68
Date: Sun, 29 Feb 2004 15:14:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
856
diff
changeset
|
358 fi |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
359 if test x$have_loadso = xyes && \ |
865
92615154bb68
Date: Sun, 29 Feb 2004 15:14:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
856
diff
changeset
|
360 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then |
939
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
361 CFLAGS="$CFLAGS -DALSA_SUPPORT -DALSA_DYNAMIC=\$(alsa_lib) $ALSA_CFLAGS" |
865
92615154bb68
Date: Sun, 29 Feb 2004 15:14:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
856
diff
changeset
|
362 AC_SUBST(alsa_lib) |
939
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
363 |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
364 use_dlvsym=no |
1136
d16c010d5d98
Fix dlvsym() detection in the configure script.
Ryan C. Gordon <icculus@icculus.org>
parents:
1133
diff
changeset
|
365 AC_CHECK_LIB(dl, dlvsym, [use_dlvsym=yes]) |
939
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
366 if test x$use_dlvsym = xyes; then |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
367 CFLAGS="$CFLAGS -DUSE_DLVSYM" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
368 fi |
865
92615154bb68
Date: Sun, 29 Feb 2004 15:14:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
856
diff
changeset
|
369 else |
939
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
370 CFLAGS="$CFLAGS -DALSA_SUPPORT $ALSA_CFLAGS" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
936
diff
changeset
|
371 SYSTEM_LIBS="$SYSTEM_LIBS $ALSA_LIBS" |
865
92615154bb68
Date: Sun, 29 Feb 2004 15:14:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
856
diff
changeset
|
372 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
373 SDL_SRCS="$SDL_SRCS `(cd $srcdir && ls audio/alsa/*.c)`" |
0 | 374 fi |
375 } | |
376 | |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
377 dnl Check whether we want to use IRIX 6.5+ native audio or not |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
378 CheckDMEDIA() |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
379 { |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
380 if test x$enable_audio = xyes; then |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
381 AC_MSG_CHECKING(for dmedia audio support) |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
382 have_dmedia=no |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
383 AC_TRY_COMPILE([ |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
384 #include <dmedia/audio.h> |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
385 ],[ |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
386 ALport audio_port; |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
387 ],[ |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
388 have_dmedia=yes |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
389 ]) |
935
f8d5ddc7aef1
Audio improvements from Max Horn, including a new CoreAudio driver for MacOSX
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
390 AC_MSG_RESULT($have_dmedia) |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
391 # Set up files for the audio library |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
392 if test x$have_dmedia = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
393 AC_DEFINE(SDL_AUDIO_DRIVER_DMEDIA) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
394 SOURCES="$SOURCES $srcdir/src/audio/dmedia/*.c" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
395 BUILD_LDFLAGS="$BUILD_LDFLAGS -laudio" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
396 have_audio=yes |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
397 fi |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
398 fi |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
399 } |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
400 |
0 | 401 dnl Find the ESD includes and libraries |
402 CheckESD() | |
403 { | |
404 AC_ARG_ENABLE(esd, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
405 AC_HELP_STRING([--enable-esd], [support the Enlightened Sound Daemon [default=yes]]), |
0 | 406 , enable_esd=yes) |
407 if test x$enable_audio = xyes -a x$enable_esd = xyes; then | |
948
ac488ad4ef1d
Don't fail if we don't have ALSA available
Sam Lantinga <slouken@libsdl.org>
parents:
939
diff
changeset
|
408 AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no) |
ac488ad4ef1d
Don't fail if we don't have ALSA available
Sam Lantinga <slouken@libsdl.org>
parents:
939
diff
changeset
|
409 if test x$have_esd = xyes; then |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
410 AC_ARG_ENABLE(esd-shared, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
411 AC_HELP_STRING([--enable-esd-shared], [dynamically load ESD audio support [default=yes]]), |
678
7f691fa4c1c7
Turn dynamic loading of esd and arts on by default
Sam Lantinga <slouken@libsdl.org>
parents:
675
diff
changeset
|
412 , enable_esd_shared=yes) |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
413 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'` |
868
e805075f6d94
sed, it's two, two commands in one!
Sam Lantinga <slouken@libsdl.org>
parents:
865
diff
changeset
|
414 esd_lib=`ls $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
415 echo "-- $esd_lib_spec -> $esd_lib" |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
416 if test x$have_loadso != xyes && \ |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
417 test x$enable_esd_shared = xyes; then |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
418 AC_MSG_ERROR([You must have SDL_LoadObject() support]) |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
419 fi |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
420 if test x$have_loadso = xyes && \ |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
421 test x$enable_esd_shared = xyes && test x$esd_lib != x; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
422 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ESD_DYNAMIC, "$esd_lib") |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
423 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
424 AC_DEFINE(SDL_AUDIO_DRIVER_ESD) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
425 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
426 BUILD_CFLAGS="$BUILD_CFLAGS $ESD_CFLAGS" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
427 BUILD_LDFLAGS="$BUILD_LDFLAGS $ESD_LIBS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
428 have_audio=yes |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
429 fi |
0 | 430 fi |
431 } | |
432 | |
433 CheckARTSC() | |
434 { | |
435 AC_ARG_ENABLE(arts, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
436 AC_HELP_STRING([--enable-arts], [support the Analog Real Time Synthesizer [default=yes]]), |
0 | 437 , enable_arts=yes) |
438 if test x$enable_audio = xyes -a x$enable_arts = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
439 AC_PATH_PROG(ARTSCONFIG, artsc-config) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
440 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then |
0 | 441 : # arts isn't installed |
442 else | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
443 ARTS_CFLAGS=`$ARTSCONFIG --cflags` |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
444 ARTS_LIBS=`$ARTSCONFIG --libs` |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
445 ARTS_PREFIX=`$ARTSCONFIG --arts-prefix` |
0 | 446 AC_MSG_CHECKING(for aRts development environment) |
447 audio_arts=no | |
448 save_CFLAGS="$CFLAGS" | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
449 CFLAGS="$CFLAGS $ARTS_CFLAGS" |
0 | 450 AC_TRY_COMPILE([ |
451 #include <artsc.h> | |
452 ],[ | |
453 arts_stream_t stream; | |
454 ],[ | |
455 audio_arts=yes | |
456 ]) | |
457 CFLAGS="$save_CFLAGS" | |
458 AC_MSG_RESULT($audio_arts) | |
459 if test x$audio_arts = xyes; then | |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
460 AC_ARG_ENABLE(arts-shared, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
461 AC_HELP_STRING([--enable-arts-shared], [dynamically load aRts audio support [default=yes]]), |
678
7f691fa4c1c7
Turn dynamic loading of esd and arts on by default
Sam Lantinga <slouken@libsdl.org>
parents:
675
diff
changeset
|
462 , enable_arts_shared=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
463 arts_lib_spec="$ARTS_PREFIX/lib/libartsc.so.*" |
868
e805075f6d94
sed, it's two, two commands in one!
Sam Lantinga <slouken@libsdl.org>
parents:
865
diff
changeset
|
464 arts_lib=`ls $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
465 echo "-- $arts_lib_spec -> $arts_lib" |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
466 if test x$have_loadso != xyes && \ |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
467 test x$enable_arts_shared = xyes; then |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
468 AC_MSG_ERROR([You must have SDL_LoadObject() support]) |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
469 fi |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
470 if test x$have_loadso = xyes && \ |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
471 test x$enable_arts_shared = xyes && test x$arts_lib != x; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
472 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ARTS_DYNAMIC, "$arts_lib") |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
473 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
474 AC_DEFINE(SDL_AUDIO_DRIVER_ARTS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
475 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
476 BUILD_CFLAGS="$BUILD_CFLAGS $ARTS_CFLAGS" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
477 BUILD_LDFLAGS="$BUILD_LDFLAGS $ARTS_LIBS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
478 have_audio=yes |
0 | 479 fi |
480 fi | |
481 fi | |
482 } | |
483 | |
484 dnl See if the NAS audio interface is supported | |
485 CheckNAS() | |
486 { | |
487 AC_ARG_ENABLE(nas, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
488 AC_HELP_STRING([--enable-nas], [support the NAS audio API [default=yes]]), |
41
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
489 , enable_nas=yes) |
0 | 490 if test x$enable_audio = xyes -a x$enable_nas = xyes; then |
41
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
491 AC_MSG_CHECKING(for NAS audio support) |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
492 have_nas=no |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
493 if test -r /usr/X11R6/include/audio/audiolib.h; then |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
494 have_nas=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
495 NAS_CFLAGS="-I/usr/X11R6/include/" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
496 NAS_LIBS="-laudio -lXt" |
605
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
497 |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
498 dnl On IRIX, the NAS includes are in a different directory, |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
499 dnl and libnas must be explicitly linked in |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
500 |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
501 elif test -r /usr/freeware/include/nas/audiolib.h; then |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
502 have_nas=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
503 NAS_LIBS="-lnas -lXt" |
41
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
504 fi |
605
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
505 AC_MSG_RESULT($have_nas) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
506 if test x$have_nas = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
507 AC_DEFINE(SDL_AUDIO_DRIVER_NAS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
508 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
509 BUILD_CFLAGS="$BUILD_CFLAGS $NAS_CFLAGS" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
510 BUILD_LDFLAGS="$BUILD_LDFLAGS $NAS_LIBS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
511 have_audio=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
512 fi |
0 | 513 fi |
514 } | |
515 | |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
516 dnl rcg07142001 See if the user wants the disk writer audio driver... |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
517 CheckDiskAudio() |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
518 { |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
519 AC_ARG_ENABLE(diskaudio, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
520 AC_HELP_STRING([--enable-diskaudio], [support the disk writer audio driver [default=yes]]), |
86
13e4c612098d
Dummy audio and video drivers are enabled (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
76
diff
changeset
|
521 , enable_diskaudio=yes) |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
522 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
523 AC_DEFINE(SDL_AUDIO_DRIVER_DISK) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
524 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c" |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
525 fi |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
526 } |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
527 |
398
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
528 dnl Set up the Atari Audio driver |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
529 CheckAtariAudio() |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
530 { |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
531 AC_ARG_ENABLE(mintaudio, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
532 AC_HELP_STRING([--enable-mintaudio], [support Atari audio driver [default=yes]]), |
398
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
533 , enable_mintaudio=yes) |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
534 if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
535 mintaudio=no |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
536 AC_CHECK_HEADER(mint/falcon.h, have_mint_falcon_hdr=yes) |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
537 if test x$have_mint_falcon_hdr = xyes; then |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
538 mintaudio=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
539 AC_DEFINE(SDL_AUDIO_DRIVER_MINT) |
1364 | 540 SOURCES="$SOURCES $srcdir/src/audio/mint/*.c" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
541 have_audio=yes |
398
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
542 fi |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
543 fi |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
544 } |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
545 |
0 | 546 dnl See if we can use x86 assembly blitters |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
547 # NASM is available from: http://nasm.sourceforge.net |
0 | 548 CheckNASM() |
549 { | |
550 dnl Make sure we are running on an x86 platform | |
551 case $target in | |
552 i?86*) | |
553 ;; | |
554 *) | |
555 # Nope, bail early. | |
556 return | |
557 ;; | |
558 esac | |
559 dnl Check for NASM (for assembly blit routines) | |
560 AC_ARG_ENABLE(nasm, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
561 AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [default=yes]]), |
0 | 562 , enable_nasm=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
563 if test x$enable_video = xyes -a x$enable_asm_blit = xyes -a x$enable_nasm = xyes; then |
0 | 564 AC_PATH_PROG(NASM, nasm) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
565 if test x$NASM != x -a x$NASM != x'"$NASM"'; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
566 AC_DEFINE(SDL_HERMES_BLITTERS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
567 SOURCES="$SOURCES $srcdir/src/hermes/*.asm" |
0 | 568 case $ARCH in |
569 win32) | |
570 NASMFLAGS="-f win32" | |
571 ;; | |
360
8c1f8c4d2dd1
Configure fixes from Wilbern Cobb for FreeBSD joystick support.
Sam Lantinga <slouken@libsdl.org>
parents:
354
diff
changeset
|
572 openbsd) |
8c1f8c4d2dd1
Configure fixes from Wilbern Cobb for FreeBSD joystick support.
Sam Lantinga <slouken@libsdl.org>
parents:
354
diff
changeset
|
573 NASMFLAGS="-f aoutb" |
8c1f8c4d2dd1
Configure fixes from Wilbern Cobb for FreeBSD joystick support.
Sam Lantinga <slouken@libsdl.org>
parents:
354
diff
changeset
|
574 ;; |
0 | 575 *) |
754
623b453a3219
Fixed "dist" make target for newer versions of automake
Sam Lantinga <slouken@libsdl.org>
parents:
753
diff
changeset
|
576 NASMFLAGS="-f elf" |
0 | 577 ;; |
578 esac | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
579 AC_SUBST(NASM) |
0 | 580 AC_SUBST(NASMFLAGS) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
581 |
886
05c551e5bc64
Date: Sat, 24 Apr 2004 15:13:32 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
884
diff
changeset
|
582 case "$target" in |
05c551e5bc64
Date: Sat, 24 Apr 2004 15:13:32 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
884
diff
changeset
|
583 # this line is needed for QNX, because it's not defined the __ELF__ |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
584 *-*-qnx*) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
585 BUILD_CFLAGS="$BUILD_CFLAGS -D__ELF__";; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
586 *-*-solaris*) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
587 BUILD_CFLAGS="$BUILD_CFLAGS -D__ELF__";; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
588 esac |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
589 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
590 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
591 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
592 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
593 dnl Check for altivec instruction support using gas syntax |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
594 CheckAltivec() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
595 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
596 AC_ARG_ENABLE(altivec, |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
597 AC_HELP_STRING([--enable-altivec], [use altivec assembly blitters on PPC [default=yes]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
598 , enable_altivec=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
599 if test x$enable_video = xyes -a x$enable_asm_blit = xyes -a x$enable_altivec = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
600 have_altivec_h_hdr=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
601 AC_CHECK_HEADER(altivec.h, have_altivec_h_hdr=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
602 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
603 save_CFLAGS="$CFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
604 have_gcc_altivec=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
605 AC_MSG_CHECKING(for Altivec with GCC -maltivec option) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
606 altivec_CFLAGS="-maltivec" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
607 CFLAGS="$save_CFLAGS $altivec_CFLAGS" |
886
05c551e5bc64
Date: Sat, 24 Apr 2004 15:13:32 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
884
diff
changeset
|
608 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
609 if test x$have_altivec_h_hdr = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
610 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
611 #include <altivec.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
612 vector unsigned int vzero() { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
613 return vec_splat_u32(0); |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
614 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
615 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
616 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
617 have_gcc_altivec=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
618 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
619 AC_MSG_RESULT($have_gcc_altivec) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
620 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
621 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
622 vector unsigned int vzero() { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
623 return vec_splat_u32(0); |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
624 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
625 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
626 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
627 have_gcc_altivec=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
628 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
629 AC_MSG_RESULT($have_gcc_altivec) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
630 fi |
886
05c551e5bc64
Date: Sat, 24 Apr 2004 15:13:32 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
884
diff
changeset
|
631 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
632 if test x$have_gcc_altivec = xno; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
633 AC_MSG_CHECKING(for Altivec with GCC -faltivec option) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
634 altivec_CFLAGS="-faltivec" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
635 CFLAGS="$save_CFLAGS $altivec_CFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
636 if test x$have_altivec_h_hdr = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
637 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
638 #include <altivec.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
639 vector unsigned int vzero() { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
640 return vec_splat_u32(0); |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
641 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
642 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
643 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
644 have_gcc_altivec=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
645 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
646 AC_MSG_RESULT($have_gcc_altivec) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
647 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
648 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
649 vector unsigned int vzero() { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
650 return vec_splat_u32(0); |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
651 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
652 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
653 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
654 have_gcc_altivec=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
655 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
656 AC_MSG_RESULT($have_gcc_altivec) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
657 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
658 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
659 CFLAGS="$save_CFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
660 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
661 if test x$have_gcc_altivec = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
662 AC_DEFINE(SDL_ALTIVEC_BLITTERS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
663 if test x$have_altivec_h_hdr = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
664 AC_DEFINE(HAVE_ALTIVEC_H) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
665 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
666 BUILD_CFLAGS="$BUILD_CFLAGS $altivec_CFLAGS" |
0 | 667 fi |
668 fi | |
669 } | |
670 | |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
671 dnl Do the iPod thing |
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
672 CheckIPod() |
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
673 { |
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
674 AC_ARG_ENABLE(ipod, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
675 AC_HELP_STRING([--enable-ipod], [configure SDL to work with iPodLinux [default=yes on arm-elf]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
676 , enable_ipod=yes) |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
677 |
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
678 if test x$enable_ipod = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
679 BUILD_CFLAGS="$BUILD_CFLAGS -DIPOD" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
680 AC_DEFINE(SDL_VIDEO_DRIVER_IPOD) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
681 SOURCES="$SOURCES $srcdir/src/video/ipod/*.c" |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
682 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
683 } |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
684 |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
685 dnl Find the nanox include and library directories |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
686 CheckNANOX() |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
687 { |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
688 AC_ARG_ENABLE(video-nanox, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
689 AC_HELP_STRING([--enable-video-nanox], [use nanox video driver [default=no]]), |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
690 , enable_video_nanox=no) |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
691 |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
692 if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
693 AC_ARG_ENABLE(nanox-debug, |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
694 AC_HELP_STRING([--enable-nanox-debug], [print debug messages [default=no]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
695 , enable_nanox_debug=no) |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
696 if test x$enable_nanox_debug = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
697 BUILD_CFLAGS="$BUILD_CFLAGS -DENABLE_NANOX_DEBUG" |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
698 fi |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
699 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
700 AC_ARG_ENABLE(nanox-share-memory, |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
701 AC_HELP_STRING([--enable-nanox-share-memory], [use share memory [default=no]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
702 , enable_nanox_share_memory=no) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
703 if test x$enable_nanox_share_memory = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
704 BUILD_CFLAGS="$BUILD_CFLAGS -DNANOX_SHARE_MEMORY" |
471
26dafefeebb2
Date: Sat, 24 Aug 2002 22:20:01 -0600
Sam Lantinga <slouken@libsdl.org>
parents:
436
diff
changeset
|
705 fi |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
706 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
707 AC_ARG_ENABLE(nanox_direct_fb, |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
708 AC_HELP_STRING([--enable-nanox-direct-fb], [use direct framebuffer access [default=no]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
709 , enable_nanox_direct_fb=no) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
710 if test x$enable_nanox_direct_fb = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
711 BUILD_CFLAGS="$BUILD_CFLAGS -DENABLE_NANOX_DIRECT_FB" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
712 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
713 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
714 AC_DEFINE(SDL_VIDEO_DRIVER_NANOX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
715 SOURCES="$SOURCES $srcdir/src/video/nanox/*.c" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
716 BUILD_LDFLAGS="$BUILD_LDFLAGS -lnano-X" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
717 have_video=yes |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
718 fi |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
719 } |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
720 |
0 | 721 dnl Find the X11 include and library directories |
722 CheckX11() | |
723 { | |
724 AC_ARG_ENABLE(video-x11, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
725 AC_HELP_STRING([--enable-video-x11], [use X11 video driver [default=yes]]), |
0 | 726 , enable_video_x11=yes) |
727 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then | |
728 AC_PATH_X | |
729 AC_PATH_XTRA | |
730 if test x$have_x = xyes; then | |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
731 AC_ARG_ENABLE(x11-shared, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
732 AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [default=yes]]), |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
733 , enable_x11_shared=yes) |
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
734 |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
735 case "$target" in |
1384
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
736 *-*-darwin*) |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
737 x11_lib='/usr/X11R6/lib/libX11.6.dylib' |
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
738 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib' |
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
739 ;; |
1384
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
740 *-*-osf*) |
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
741 x11_lib='libX11.so' |
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
742 x11ext_lib='libXext.so' |
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
743 ;; |
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
744 *-*-irix*) # IRIX 6.5 requires that we use /usr/lib32 |
1299
2bf9dda618e5
Corrects dynamic X11 code on Tru64 systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
1251
diff
changeset
|
745 x11_lib='libX11.so' |
2bf9dda618e5
Corrects dynamic X11 code on Tru64 systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
1251
diff
changeset
|
746 x11ext_lib='libXext.so' |
2bf9dda618e5
Corrects dynamic X11 code on Tru64 systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
1251
diff
changeset
|
747 ;; |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
748 *) |
1370
00fc57bb5dc4
Detect the X11 library on Solaris x86
Sam Lantinga <slouken@libsdl.org>
parents:
1367
diff
changeset
|
749 if test x$X_LIBS = x; then X_LIBS="-L/usr/lib"; fi |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
750 x11_lib_spec=[`echo $X_LIBS | sed 's/.*-L\([^ ]*\).*/\1\/libX11.so.[0-9]/'`] |
1384
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
751 x11_lib=`ls $x11_lib_spec 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'` |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
752 x11ext_lib_spec=[`echo $X_LIBS | sed 's/.*-L\([^ ]*\).*/\1\/libXext.so.[0-9]/'`] |
1384
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
753 x11ext_lib=`ls $x11ext_lib_spec 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'` |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
754 ;; |
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
755 esac |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
756 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
757 X_CFLAGS="$X_CFLAGS -DXTHREADS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
758 if test x$ac_cv_func_shmat != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
759 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
760 fi |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
761 if test x$have_loadso != xyes && \ |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
762 test x$enable_x11_shared = xyes; then |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
763 AC_MSG_ERROR([You must have SDL_LoadObject() support]) |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
764 fi |
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
765 |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
766 if test x$have_loadso = xyes && \ |
1170
bb1a52a8d3d6
Use the right libs in dynamic X11 loading.
Ryan C. Gordon <icculus@icculus.org>
parents:
1168
diff
changeset
|
767 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
768 echo "-- dynamic libX11 -> $x11_lib" |
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
769 echo "-- dynamic libX11ext -> $x11ext_lib" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
770 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib") |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
771 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT, "$x11ext_lib") |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
772 else |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
773 X_LIBS="$X_LIBS -lX11 -lXext" |
0 | 774 fi |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
775 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
776 AC_DEFINE(SDL_VIDEO_DRIVER_X11) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
777 SOURCES="$SOURCES $srcdir/src/video/x11/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
778 BUILD_CFLAGS="$BUILD_CFLAGS $X_CFLAGS" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
779 BUILD_LDFLAGS="$BUILD_LDFLAGS $X_LIBS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
780 have_video=yes |
0 | 781 |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
782 AC_ARG_ENABLE(dga, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
783 AC_HELP_STRING([--enable-dga], [allow use of X11 DGA code [default=yes]]), |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
784 , enable_dga=yes) |
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
785 if test x$enable_dga = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
786 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86dga/*.c" |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
787 fi |
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
788 AC_ARG_ENABLE(video-dga, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
789 AC_HELP_STRING([--enable-video-dga], [use DGA 2.0 video driver [default=yes]]), |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
790 , enable_video_dga=yes) |
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
791 if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
792 AC_DEFINE(SDL_VIDEO_DRIVER_DGA) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
793 SOURCES="$SOURCES $srcdir/src/video/dga/*.c" |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
794 fi |
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
795 AC_ARG_ENABLE(video-x11-dgamouse, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
796 AC_HELP_STRING([--enable-video-x11-dgamouse], [use X11 DGA for mouse events [default=yes]]), |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
797 , enable_video_x11_dgamouse=yes) |
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
798 if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
799 AC_DEFINE(SDL_VIDEO_DRIVER_X11_DGAMOUSE) |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
800 fi |
0 | 801 AC_ARG_ENABLE(video-x11-vm, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
802 AC_HELP_STRING([--enable-video-x11-vm], [use X11 VM extension for fullscreen [default=yes]]), |
0 | 803 , enable_video_x11_vm=yes) |
804 if test x$enable_video_x11_vm = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
805 AC_DEFINE(SDL_VIDEO_DRIVER_X11_VIDMODE) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
806 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c" |
0 | 807 fi |
808 AC_ARG_ENABLE(video-x11-xv, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
809 AC_HELP_STRING([--enable-video-x11-xv], [use X11 XvImage extension for video [default=yes]]), |
0 | 810 , enable_video_x11_xv=yes) |
811 if test x$enable_video_x11_xv = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
812 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XV) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
813 SOURCES="$SOURCES $srcdir/src/video/Xext/Xv/*.c" |
0 | 814 fi |
227
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
815 AC_ARG_ENABLE(video-x11-xinerama, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
816 AC_HELP_STRING([--enable-video-x11-xinerama], [enable X11 Xinerama support [default=yes]]), |
227
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
817 , enable_video_x11_xinerama=yes) |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
818 if test x$enable_video_x11_xinerama = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
819 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
820 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c" |
227
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
821 fi |
242
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
822 AC_ARG_ENABLE(video-x11-xme, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
823 AC_HELP_STRING([--enable-video-x11-xme], [enable Xi Graphics XME for fullscreen [default=yes]]), |
242
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
824 , enable_video_x11_xme=yes) |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
825 if test x$enable_video_x11_xme = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
826 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XME) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
827 SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c" |
242
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
828 fi |
0 | 829 fi |
830 fi | |
831 } | |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
832 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
833 dnl Check for QNX photon video driver |
0 | 834 CheckPHOTON() |
835 { | |
836 AC_ARG_ENABLE(video-photon, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
837 AC_HELP_STRING([--enable-video-photon], [use QNX Photon video driver [default=yes]]), |
0 | 838 , enable_video_photon=yes) |
839 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then | |
840 AC_MSG_CHECKING(for QNX Photon support) | |
841 video_photon=no | |
842 AC_TRY_COMPILE([ | |
843 #include <Ph.h> | |
844 #include <Pt.h> | |
845 #include <photon/Pg.h> | |
846 #include <photon/PdDirect.h> | |
847 ],[ | |
848 PgDisplaySettings_t *visual; | |
849 ],[ | |
850 video_photon=yes | |
851 ]) | |
852 AC_MSG_RESULT($video_photon) | |
853 if test x$video_photon = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
854 AC_DEFINE(SDL_VIDEO_DRIVER_PHOTON) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
855 SOURCES="$SOURCES $srcdir/src/video/photon/*.c" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
856 BUILD_LDFLAGS="$BUILD_LDFLAGS -lph" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
857 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
858 |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
859 CheckOpenGLQNX |
0 | 860 fi |
861 fi | |
862 } | |
863 | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
864 dnl Set up the BWindow video driver if enabled |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
865 CheckBWINDOW() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
866 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
867 if test x$enable_video = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
868 AC_DEFINE(SDL_VIDEO_DRIVER_BWINDOW) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
869 SOURCES="$SOURCES $srcdir/src/video/bwindow/*.cc" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
870 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
871 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
872 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
873 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
874 dnl Set up the Carbon/QuickDraw video driver for Mac OS X (but not Darwin) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
875 CheckCARBON() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
876 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
877 AC_ARG_ENABLE(video-carbon, |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
878 AC_HELP_STRING([--enable-video-carbon], [use Carbon/QuickDraw video driver [default=no]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
879 , enable_video_carbon=no) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
880 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
881 AC_MSG_CHECKING(for Carbon framework) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
882 have_carbon=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
883 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
884 #include <Carbon/Carbon.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
885 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
886 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
887 have_carbon=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
888 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
889 AC_MSG_RESULT($have_carbon) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
890 if test x$have_carbon = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
891 AC_DEFINE(SDL_VIDEO_DRIVER_TOOLBOX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
892 SOURCES="$SOURCES $srcdir/src/video/maccommon/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
893 SOURCES="$SOURCES $srcdir/src/video/macrom/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
894 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
895 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
896 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
897 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
898 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
899 dnl Set up the Cocoa/Quartz video driver for Mac OS X (but not Darwin) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
900 CheckCOCOA() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
901 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
902 AC_ARG_ENABLE(video-cocoa, |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
903 AC_HELP_STRING([--enable-video-cocoa], [use Cocoa/Quartz video driver [default=yes]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
904 , enable_video_cocoa=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
905 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
906 save_CFLAGS="$CFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
907 dnl work around that we don't have Objective-C support in autoconf |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
908 CFLAGS="$CFLAGS -x objective-c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
909 AC_MSG_CHECKING(for Cocoa framework) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
910 have_cocoa=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
911 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
912 #import <Cocoa/Cocoa.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
913 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
914 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
915 have_cocoa=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
916 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
917 AC_MSG_RESULT($have_cocoa) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
918 CFLAGS="$save_CFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
919 if test x$have_cocoa = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
920 AC_DEFINE(SDL_VIDEO_DRIVER_QUARTZ) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
921 SOURCES="$SOURCES $srcdir/src/video/quartz/*.m" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
922 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
923 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
924 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
925 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
926 |
0 | 927 dnl Find the framebuffer console includes |
928 CheckFBCON() | |
929 { | |
930 AC_ARG_ENABLE(video-fbcon, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
931 AC_HELP_STRING([--enable-video-fbcon], [use framebuffer console video driver [default=yes]]), |
0 | 932 , enable_video_fbcon=yes) |
933 if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then | |
934 AC_MSG_CHECKING(for framebuffer console support) | |
935 video_fbcon=no | |
936 AC_TRY_COMPILE([ | |
937 #include <linux/fb.h> | |
938 #include <linux/kd.h> | |
939 #include <linux/keyboard.h> | |
940 ],[ | |
941 ],[ | |
942 video_fbcon=yes | |
943 ]) | |
944 AC_MSG_RESULT($video_fbcon) | |
945 if test x$video_fbcon = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
946 AC_DEFINE(SDL_VIDEO_DRIVER_FBCON) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
947 SOURCES="$SOURCES $srcdir/src/video/fbcon/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
948 have_video=yes |
0 | 949 fi |
950 fi | |
951 } | |
952 | |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
953 dnl Find DirectFB |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
954 CheckDirectFB() |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
955 { |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
956 AC_ARG_ENABLE(video-directfb, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
957 AC_HELP_STRING([--enable-video-directfb], [use DirectFB video driver [default=no]]), |
678
7f691fa4c1c7
Turn dynamic loading of esd and arts on by default
Sam Lantinga <slouken@libsdl.org>
parents:
675
diff
changeset
|
958 , enable_video_directfb=no) |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
959 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
960 video_directfb=no |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
961 |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
962 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
963 if test x$PKG_CONFIG = xno ; then |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
964 AC_MSG_WARN([*** pkg-config is required to build the DirectFB video driver.]) |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
965 else |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
966 AC_MSG_CHECKING(for DirectFB support) |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
967 |
477
22581630aab7
Date: Tue, 27 Aug 2002 16:14:11 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
471
diff
changeset
|
968 if ! $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then |
22581630aab7
Date: Tue, 27 Aug 2002 16:14:11 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
471
diff
changeset
|
969 AC_MSG_ERROR([*** pkg-config too old; version 0.7 or better required.]) |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
970 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
971 |
546
0009aadb3d01
Updated for DirectDB 0.9.15 (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
520
diff
changeset
|
972 DIRECTFB_REQUIRED_VERSION=0.9.15 |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
973 |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
974 if $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
975 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb` |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
976 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb` |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
977 video_directfb=yes |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
978 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
979 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
980 |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
981 AC_MSG_RESULT($video_directfb) |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
982 if test x$video_directfb = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
983 AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
984 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
985 BUILD_CFLAGS="$BUILD_CFLAGS $DIRECTFB_CFLAGS" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
986 BUILD_LDFLAGS="$BUILD_LDFLAGS $DIRECTFB_LIBS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
987 have_video=yes |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
988 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
989 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
990 } |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
991 |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
992 dnl See if we're running on PlayStation 2 hardware |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
993 CheckPS2GS() |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
994 { |
72
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
995 AC_ARG_ENABLE(video-ps2gs, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
996 AC_HELP_STRING([--enable-video-ps2gs], [use PlayStation 2 GS video driver [default=yes]]), |
72
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
997 , enable_video_ps2gs=yes) |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
998 if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then |
72
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
999 AC_MSG_CHECKING(for PlayStation 2 GS support) |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1000 video_ps2gs=no |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1001 AC_TRY_COMPILE([ |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1002 #include <linux/ps2/dev.h> |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1003 #include <linux/ps2/gs.h> |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1004 ],[ |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1005 ],[ |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1006 video_ps2gs=yes |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1007 ]) |
72
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
1008 AC_MSG_RESULT($video_ps2gs) |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1009 if test x$video_ps2gs = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1010 AC_DEFINE(SDL_VIDEO_DRIVER_PS2GS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1011 SOURCES="$SOURCES $srcdir/src/video/ps2gs/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1012 have_video=yes |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1013 fi |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1014 fi |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1015 } |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1016 |
0 | 1017 dnl Find the GGI includes |
1018 CheckGGI() | |
1019 { | |
1020 AC_ARG_ENABLE(video-ggi, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1021 AC_HELP_STRING([--enable-video-ggi], [use GGI video driver [default=no]]), |
0 | 1022 , enable_video_ggi=no) |
1023 if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then | |
1024 AC_MSG_CHECKING(for GGI support) | |
1025 video_ggi=no | |
1026 AC_TRY_COMPILE([ | |
1027 #include <ggi/ggi.h> | |
1028 #include <ggi/gii.h> | |
1029 ],[ | |
1030 ],[ | |
1031 video_ggi=yes | |
1032 ]) | |
1033 AC_MSG_RESULT($video_ggi) | |
1034 if test x$video_ggi = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1035 AC_DEFINE(SDL_VIDEO_DRIVER_GGI) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1036 SOURCES="$SOURCES $srcdir/src/video/ggi/*.c" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1037 BUILD_LDFLAGS="$BUILD_LDFLAGS -lggi -lgii -lgg" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1038 have_video=yes |
0 | 1039 fi |
1040 fi | |
1041 } | |
1042 | |
1043 dnl Find the SVGAlib includes and libraries | |
1044 CheckSVGA() | |
1045 { | |
1046 AC_ARG_ENABLE(video-svga, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1047 AC_HELP_STRING([--enable-video-svga], [use SVGAlib video driver [default=no]]), |
0 | 1048 , enable_video_svga=no) |
1049 if test x$enable_video = xyes -a x$enable_video_svga = xyes; then | |
1050 AC_MSG_CHECKING(for SVGAlib (1.4.0+) support) | |
1051 video_svga=no | |
1052 AC_TRY_COMPILE([ | |
1053 #include <vga.h> | |
1054 #include <vgamouse.h> | |
1055 #include <vgakeyboard.h> | |
1056 ],[ | |
1057 if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) { | |
1058 exit(0); | |
1059 } | |
1060 ],[ | |
1061 video_svga=yes | |
1062 ]) | |
1063 AC_MSG_RESULT($video_svga) | |
1064 if test x$video_svga = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1065 AC_DEFINE(SDL_VIDEO_DRIVER_SVGALIB) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1066 SOURCES="$SOURCES $srcdir/src/video/svga/*.c" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1067 BUILD_LDFLAGS="$BUILD_LDFLAGS -lvga" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1068 have_video=yes |
0 | 1069 fi |
1070 fi | |
1071 } | |
1072 | |
75
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1073 dnl Find the VGL includes and libraries |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1074 CheckVGL() |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1075 { |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1076 AC_ARG_ENABLE(video-vgl, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1077 AC_HELP_STRING([--enable-video-vgl], [use VGL video driver [default=no]]), |
75
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1078 , enable_video_vgl=no) |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1079 if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1080 AC_MSG_CHECKING(for libVGL support) |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1081 video_vgl=no |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1082 AC_TRY_COMPILE([ |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1083 #include <sys/fbio.h> |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1084 #include <sys/consio.h> |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1085 #include <sys/kbio.h> |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1086 #include <vgl.h> |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1087 ],[ |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1088 VGLBitmap bitmap; |
144
1cfa4282f2eb
Fixed VGL detection on FreeBSD (thanks David!)
Sam Lantinga <slouken@libsdl.org>
parents:
129
diff
changeset
|
1089 exit(bitmap.Bitmap); |
75
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1090 ],[ |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1091 video_vgl=yes |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1092 ]) |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1093 AC_MSG_RESULT($video_vgl) |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1094 if test x$video_vgl = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1095 AC_DEFINE(SDL_VIDEO_DRIVER_VGL) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1096 SOURCES="$SOURCES $srcdir/src/video/vgl/*.c" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1097 BUILD_LDFLAGS="$BUILD_LDFLAGS -lvgl" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1098 have_video=yes |
75
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1099 fi |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1100 fi |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1101 } |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1102 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1103 dnl Set up the wscons video driver if enabled |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1104 CheckWscons() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1105 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1106 AC_ARG_ENABLE(video-wscons, |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1107 AC_HELP_STRING([--enable-video-wscons], [use wscons video driver [default=yes]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1108 , enable_video_wscons=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1109 if test x$enable_video = xyes -a x$enable_video_wscons = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1110 AC_MSG_CHECKING(for wscons support) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1111 video_wscons=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1112 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1113 #include <sys/time.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1114 #include <dev/wscons/wsconsio.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1115 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1116 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1117 video_wscons=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1118 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1119 AC_MSG_RESULT($video_wscons) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1120 if test x$video_wscons = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1121 AC_DEFINE(SDL_VIDEO_DRIVER_WSCONS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1122 SOURCES="$SOURCES $srcdir/src/video/wscons/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1123 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1124 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1125 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1126 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1127 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1128 |
0 | 1129 dnl Find the AAlib includes |
1130 CheckAAlib() | |
1131 { | |
1132 AC_ARG_ENABLE(video-aalib, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1133 AC_HELP_STRING([--enable-video-aalib], [use AAlib video driver [default=no]]), |
0 | 1134 , enable_video_aalib=no) |
1135 if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then | |
1136 AC_MSG_CHECKING(for AAlib support) | |
1137 video_aalib=no | |
1138 AC_TRY_COMPILE([ | |
1139 #include <aalib.h> | |
1140 ],[ | |
1141 ],[ | |
1142 video_aalib=yes | |
1143 ]) | |
1144 AC_MSG_RESULT($video_aalib) | |
1145 if test x$video_aalib = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1146 AC_DEFINE(SDL_VIDEO_DRIVER_AALIB) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1147 SOURCES="$SOURCES $srcdir/src/video/aalib/*.c" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1148 BUILD_LDFLAGS="$BUILD_LDFLAGS -laa" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1149 have_video=yes |
0 | 1150 fi |
1151 fi | |
1152 } | |
1153 | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1154 dnl Set up the QTopia video driver if enabled |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1155 CheckQtopia() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1156 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1157 AC_ARG_ENABLE(video-qtopia, |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1158 AC_HELP_STRING([--enable-video-qtopia], [use Qtopia video driver [default=no]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1159 , enable_video_qtopia=no) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1160 if test x$enable_video = xyes -a x$enable_video_qtopia = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1161 AC_MSG_CHECKING(for Qtopia support) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1162 video_qtopia=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1163 QTOPIA_FLAGS="-DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -I${QPEDIR}/include -I${QTDIR}/include/ -DNO_DEBUG -fno-rtti -fno-exceptions" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1164 AC_LANG_CPLUSPLUS |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1165 OLD_CXX="$CXXFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1166 CXXFLAGS="$QTOPIA_FLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1167 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1168 #include <qpe/qpeapplication.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1169 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1170 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1171 video_qtopia=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1172 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1173 CXXFLAGS="$OLD_CXX" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1174 AC_MSG_RESULT($video_qtopia) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1175 if test x$video_qtopia = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1176 AC_DEFINE(SDL_VIDEO_DRIVER_QTOPIA) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1177 SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc" |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
1178 SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1179 BUILD_CFLAGS="$BUILD_CFLAGS $QTOPIA_FLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1180 SDL_CFLAGS="$SDL_CFLAGS -DQWS -Dmain=SDL_main" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1181 SDL_LIBS="-lSDLmain $SDL_LIBS -L${QPEDIR}/lib -L${QTDIR}/lib/ -lqpe -lqte" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1182 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1183 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1184 AC_LANG_C |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1185 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1186 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1187 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1188 dnl Set up the PicoGUI video driver if enabled |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1189 CheckPicoGUI() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1190 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1191 AC_ARG_ENABLE(video-picogui, |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1192 AC_HELP_STRING([--enable-video-picogui], [use PicoGUI video driver [default=no]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1193 , enable_video_picogui=no) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1194 if test x$enable_video = xyes -a x$enable_video_picogui = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1195 AC_MSG_CHECKING(for PicoGUI support) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1196 video_picogui=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1197 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1198 #include <picogui.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1199 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1200 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1201 video_picogui=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1202 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1203 AC_MSG_RESULT($video_picogui) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1204 if test x$video_picogui = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1205 AC_DEFINE(SDL_VIDEO_DRIVER_PICOGUI) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1206 SOURCES="$SOURCES $srcdir/src/video/picogui/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1207 SDL_LIBS="$SDL_LIBS -lpgui" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1208 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1209 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1210 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1211 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1212 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1213 dnl Set up the Atari Bios keyboard driver |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1214 CheckAtariBiosEvent() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1215 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1216 SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1217 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1218 |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1219 dnl Set up the Atari Xbios driver |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1220 CheckAtariXbiosVideo() |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1221 { |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1222 AC_ARG_ENABLE(xbios, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1223 AC_HELP_STRING([--enable-video-xbios], [use Atari Xbios video driver [default=yes]]), |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1224 , enable_video_xbios=yes) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1225 video_xbios=no |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1226 if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1227 video_xbios=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1228 AC_DEFINE(SDL_VIDEO_DRIVER_XBIOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1229 SOURCES="$SOURCES $srcdir/src/video/xbios/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1230 have_video=yes |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1231 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1232 } |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1233 |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1234 dnl Set up the Atari Gem driver |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1235 CheckAtariGemVideo() |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1236 { |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1237 AC_ARG_ENABLE(gem, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1238 AC_HELP_STRING([--enable-video-gem], [use Atari Gem video driver [default=yes]]), |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1239 , enable_video_gem=yes) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1240 if test x$enable_video = xyes -a x$enable_video_gem = xyes; then |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1241 video_gem=no |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1242 AC_CHECK_HEADER(gem.h, have_gem_hdr=yes) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1243 AC_CHECK_LIB(gem, appl_init, have_gem_lib=yes) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1244 if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then |
1366 | 1245 video_gem=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1246 AC_DEFINE(SDL_VIDEO_DRIVER_GEM) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1247 SOURCES="$SOURCES $srcdir/src/video/gem/*.c" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1248 BUILD_LDFLAGS="$BUILD_LDFLAGS -lgem" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1249 have_video=yes |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1250 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1251 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1252 } |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1253 |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1254 dnl rcg04172001 Set up the Null video driver. |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1255 CheckDummyVideo() |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1256 { |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1257 AC_ARG_ENABLE(video-dummy, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1258 AC_HELP_STRING([--enable-video-dummy], [use dummy video driver [default=yes]]), |
86
13e4c612098d
Dummy audio and video drivers are enabled (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
76
diff
changeset
|
1259 , enable_video_dummy=yes) |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1260 if test x$enable_video_dummy = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1261 AC_DEFINE(SDL_VIDEO_DRIVER_DUMMY) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1262 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1263 have_video=yes |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1264 fi |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1265 } |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1266 |
0 | 1267 dnl Check to see if OpenGL support is desired |
1268 AC_ARG_ENABLE(video-opengl, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1269 AC_HELP_STRING([--enable-video-opengl], [include OpenGL context creation [default=yes]]), |
0 | 1270 , enable_video_opengl=yes) |
1271 | |
1272 dnl Find OpenGL | |
1191
2bd4cec0de63
Seperate glX from HAVE_OPENGL, for platforms that have both an X server and
Ryan C. Gordon <icculus@icculus.org>
parents:
1187
diff
changeset
|
1273 CheckOpenGLX11() |
0 | 1274 { |
1275 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | |
1276 AC_MSG_CHECKING(for OpenGL (GLX) support) | |
1277 video_opengl=no | |
1278 AC_TRY_COMPILE([ | |
1279 #include <GL/gl.h> | |
1280 #include <GL/glx.h> | |
1281 ],[ | |
1282 ],[ | |
1283 video_opengl=yes | |
1284 ]) | |
1285 AC_MSG_RESULT($video_opengl) | |
1286 if test x$video_opengl = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1287 AC_DEFINE(SDL_VIDEO_OPENGL) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1288 AC_DEFINE(SDL_VIDEO_OPENGL_GLX) |
0 | 1289 fi |
1290 fi | |
1291 } | |
1292 | |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1293 dnl Find QNX RtP OpenGL |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1294 CheckOpenGLQNX() |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1295 { |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1296 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1297 AC_MSG_CHECKING(for OpenGL (Photon) support) |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1298 video_opengl=no |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1299 AC_TRY_COMPILE([ |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1300 #include <GL/gl.h> |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1301 ],[ |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1302 ],[ |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1303 video_opengl=yes |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1304 ]) |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1305 AC_MSG_RESULT($video_opengl) |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1306 if test x$video_opengl = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1307 AC_DEFINE(SDL_VIDEO_OPENGL) |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1308 BUILD_LDFLAGS="$BUILD_LDFLAGS -lGL" |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1309 fi |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1310 fi |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1311 } |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1312 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1313 dnl Check for Win32 OpenGL |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1314 CheckWIN32GL() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1315 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1316 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1317 AC_DEFINE(SDL_VIDEO_OPENGL) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1318 AC_DEFINE(SDL_VIDEO_OPENGL_WGL) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1319 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1320 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1321 |
0 | 1322 dnl Check for BeOS OpenGL |
1323 CheckBeGL() | |
1324 { | |
1325 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1326 AC_DEFINE(SDL_VIDEO_OPENGL) |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1327 BUILD_LDFLAGS="$BUILD_LDFLAGS -lGL" |
0 | 1328 fi |
1329 } | |
1330 | |
1331 dnl Check for MacOS OpenGL | |
1332 CheckMacGL() | |
1333 { | |
1334 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1335 AC_DEFINE(SDL_VIDEO_OPENGL) |
0 | 1336 case "$target" in |
1337 *-*-darwin*) | |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1338 BUILD_LDFLAGS="$BUILD_LDFLAGS -framework OpenGL" |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
1339 # The following is probably not available in Darwin: |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1340 BUILD_LDFLAGS="$BUILD_LDFLAGS -framework AGL" |
0 | 1341 esac |
1342 fi | |
1343 } | |
1344 | |
978
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
973
diff
changeset
|
1345 dnl Check for Mesa offscreen rendering |
989
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1346 CheckAtariOSMesa() |
978
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
973
diff
changeset
|
1347 { |
989
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1348 if test "x$enable_video" = "xyes" -a "x$enable_video_opengl" = "xyes"; then |
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:
989
diff
changeset
|
1349 AC_CHECK_HEADER(GL/osmesa.h, have_osmesa_hdr=yes) |
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:
989
diff
changeset
|
1350 AC_CHECK_LIB(OSMesa, OSMesaCreateContext, have_osmesa_lib=yes, have_osmesa_lib=no, -lm) |
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:
989
diff
changeset
|
1351 |
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:
989
diff
changeset
|
1352 # Static linking to -lOSMesa |
989
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1353 AC_PATH_PROG(OSMESA_CONFIG, osmesa-config, no) |
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1354 if test "x$OSMESA_CONFIG" = "xno" -o "x$enable_atari_ldg" = "xno"; then |
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:
989
diff
changeset
|
1355 # -lOSMesa is really the static library |
989
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1356 if test "x$have_osmesa_hdr" = "xyes" -a "x$have_osmesa_lib" = "xyes"; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1357 OSMESA_LIBS="-lOSMesa" |
989
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1358 fi |
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1359 else |
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:
989
diff
changeset
|
1360 # -lOSMesa is a loader for OSMesa.ldg |
989
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1361 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags` |
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1362 OSMESA_LIBS=`$OSMESA_CONFIG --libs` |
978
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
973
diff
changeset
|
1363 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1364 AC_DEFINE(SDL_VIDEO_OPENGL) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1365 AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1366 BUILD_CFLAGS="$BUILD_CFLAGS $OSMESA_CFLAGS" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1367 BUILD_LDFLAGS="$BUILD_LDFLAGS $OSMESA_LIBS" |
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:
989
diff
changeset
|
1368 |
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:
989
diff
changeset
|
1369 AC_ARG_ENABLE(osmesa-shared, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1370 AC_HELP_STRING([--enable-osmesa-shared], [dynamically load OSMesa OpenGL support [default=yes]]), |
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:
989
diff
changeset
|
1371 , enable_osmesa_shared=yes) |
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:
989
diff
changeset
|
1372 if test "x$enable_osmesa_shared" = "xyes" -a "x$enable_atari_ldg" = "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:
989
diff
changeset
|
1373 # Dynamic linking |
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:
989
diff
changeset
|
1374 if test "x$have_osmesa_hdr" = "xyes"; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1375 AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA_DYNAMIC) |
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:
989
diff
changeset
|
1376 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1377 fi |
978
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
973
diff
changeset
|
1378 fi |
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
973
diff
changeset
|
1379 } |
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
973
diff
changeset
|
1380 |
0 | 1381 dnl See if we can use the new unified event interface in Linux 2.4 |
1382 CheckInputEvents() | |
1383 { | |
1384 dnl Check for Linux 2.4 unified input event interface support | |
1385 AC_ARG_ENABLE(input-events, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1386 AC_HELP_STRING([--enable-input-events], [use Linux 2.4 unified input interface [default=yes]]), |
211
0cc95f442f3a
If we're looking at the /dev/input event devices, and we found
Sam Lantinga <slouken@libsdl.org>
parents:
200
diff
changeset
|
1387 , enable_input_events=yes) |
0 | 1388 if test x$enable_input_events = xyes; then |
1389 AC_MSG_CHECKING(for Linux 2.4 unified input interface) | |
1390 use_input_events=no | |
1391 AC_TRY_COMPILE([ | |
1392 #include <linux/input.h> | |
1393 ],[ | |
1394 #ifndef EVIOCGNAME | |
1395 #error EVIOCGNAME() ioctl not available | |
1396 #endif | |
1397 ],[ | |
1398 use_input_events=yes | |
1399 ]) | |
1400 AC_MSG_RESULT($use_input_events) | |
1401 if test x$use_input_events = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1402 AC_DEFINE(SDL_INPUT_LINUXEV) |
0 | 1403 fi |
1404 fi | |
1405 } | |
1406 | |
1201
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1407 dnl See if we can use the Touchscreen input library |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1408 CheckTslib() |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1409 { |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1410 AC_ARG_ENABLE(input-tslib, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1411 AC_HELP_STRING([--enable-input-tslib], [use the Touchscreen library for input [default=yes]]), |
1201
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1412 , enable_input_tslib=yes) |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1413 if test x$enable_input_tslib = xyes; then |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1414 AC_MSG_CHECKING(for Touchscreen library support) |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1415 enable_input_tslib=no |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1416 AC_TRY_COMPILE([ |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1417 #include "tslib.h" |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1418 ],[ |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1419 ],[ |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1420 enable_input_tslib=yes |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1421 ]) |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1422 AC_MSG_RESULT($enable_input_tslib) |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1423 if test x$enable_input_tslib = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1424 AC_DEFINE(SDL_INPUT_TSLIB) |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1425 BUILD_LDFLAGS="$BUILD_LDFLAGS -lts" |
1201
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1426 fi |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1427 fi |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1428 } |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1429 |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1430 dnl See if we can use GNU pth library for threads |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1431 CheckPTH() |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1432 { |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1433 dnl Check for pth support |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1434 AC_ARG_ENABLE(pth, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1435 AC_HELP_STRING([--enable-pth], [use GNU pth library for multi-threading [default=yes]]), |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1436 , enable_pth=yes) |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1437 if test x$enable_threads = xyes -a x$enable_pth = xyes; then |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1438 AC_PATH_PROG(PTH_CONFIG, pth-config, no) |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1439 if test "$PTH_CONFIG" = "no"; then |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1440 use_pth=no |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1441 else |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1442 use_pth=yes |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1443 fi |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1444 AC_MSG_CHECKING(pth) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1445 AC_MSG_RESULT($use_pth) |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1446 if test "x$use_pth" = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1447 AC_DEFINE(SDL_THREAD_PTH) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1448 SOURCES="$SOURCES $srcdir/src/thread/pth/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1449 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1450 SDL_CFLAGS="$SDL_CFLAGS `$PTH_CONFIG --cflags`" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1451 SDL_LIBS="$SDL_LIBS `$PTH_CONFIG --libs --all`" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1452 have_threads=yes |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1453 fi |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1454 fi |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1455 } |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1456 |
0 | 1457 dnl See what type of thread model to use on Linux and Solaris |
1458 CheckPTHREAD() | |
1459 { | |
1460 dnl Check for pthread support | |
1461 AC_ARG_ENABLE(pthreads, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1462 AC_HELP_STRING([--enable-pthreads], [use POSIX threads for multi-threading [default=yes]]), |
0 | 1463 , enable_pthreads=yes) |
1464 dnl This is used on Linux for glibc binary compatibility (Doh!) | |
1465 AC_ARG_ENABLE(pthread-sem, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1466 AC_HELP_STRING([--enable-pthread-sem], [use pthread semaphores [default=yes]]), |
0 | 1467 , enable_pthread_sem=yes) |
1468 case "$target" in | |
1324
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1469 *-*-linux*) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1470 pthread_cflags="-D_REENTRANT" |
1324
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1471 pthread_lib="-lpthread" |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1472 ;; |
0 | 1473 *-*-bsdi*) |
1474 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" | |
1475 pthread_lib="" | |
1476 ;; | |
1477 *-*-darwin*) | |
1478 pthread_cflags="-D_THREAD_SAFE" | |
1479 # causes Carbon.p complaints? | |
1480 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" | |
1481 ;; | |
1482 *-*-freebsd*) | |
1483 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" | |
1484 pthread_lib="-pthread" | |
1485 ;; | |
43
8cc154626be9
I found the pthread package for NetBSD
Sam Lantinga <slouken@lokigames.com>
parents:
42
diff
changeset
|
1486 *-*-netbsd*) |
1383 | 1487 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" |
1200
8f418dce02b2
Date: Sun, 11 Dec 2005 20:37:04 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1193
diff
changeset
|
1488 pthread_lib="-L/usr/lib -lpthread" |
43
8cc154626be9
I found the pthread package for NetBSD
Sam Lantinga <slouken@lokigames.com>
parents:
42
diff
changeset
|
1489 ;; |
0 | 1490 *-*-openbsd*) |
1491 pthread_cflags="-D_REENTRANT" | |
1492 pthread_lib="-pthread" | |
1493 ;; | |
1494 *-*-solaris*) | |
1495 pthread_cflags="-D_REENTRANT" | |
1496 pthread_lib="-lpthread -lposix4" | |
1497 ;; | |
1498 *-*-sysv5*) | |
1499 pthread_cflags="-D_REENTRANT -Kthread" | |
1500 pthread_lib="" | |
1501 ;; | |
1502 *-*-irix*) | |
1503 pthread_cflags="-D_SGI_MP_SOURCE" | |
1504 pthread_lib="-lpthread" | |
1505 ;; | |
1506 *-*-aix*) | |
1507 pthread_cflags="-D_REENTRANT -mthreads" | |
1508 pthread_lib="-lpthread" | |
1509 ;; | |
425
edbbe5775244
Fixed (?) semaphore support on HPUX 11.x ...
Ryan C. Gordon <icculus@icculus.org>
parents:
419
diff
changeset
|
1510 *-*-hpux11*) |
edbbe5775244
Fixed (?) semaphore support on HPUX 11.x ...
Ryan C. Gordon <icculus@icculus.org>
parents:
419
diff
changeset
|
1511 pthread_cflags="-D_REENTRANT" |
edbbe5775244
Fixed (?) semaphore support on HPUX 11.x ...
Ryan C. Gordon <icculus@icculus.org>
parents:
419
diff
changeset
|
1512 pthread_lib="-L/usr/lib -lpthread" |
edbbe5775244
Fixed (?) semaphore support on HPUX 11.x ...
Ryan C. Gordon <icculus@icculus.org>
parents:
419
diff
changeset
|
1513 ;; |
0 | 1514 *-*-qnx*) |
1515 pthread_cflags="" | |
1516 pthread_lib="" | |
1517 ;; | |
873
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1518 *-*-osf*) |
1019
e3b3130f3af8
Date: Fri, 31 Dec 2004 04:14:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1009
diff
changeset
|
1519 pthread_cflags="-D_REENTRANT" |
873
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1520 if test x$ac_cv_prog_gcc = xyes; then |
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1521 pthread_lib="-lpthread -lrt" |
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1522 else |
1019
e3b3130f3af8
Date: Fri, 31 Dec 2004 04:14:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1009
diff
changeset
|
1523 pthread_lib="-lpthread -lexc -lrt" |
873
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1524 fi |
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1525 ;; |
0 | 1526 *) |
1527 pthread_cflags="-D_REENTRANT" | |
1528 pthread_lib="-lpthread" | |
1529 ;; | |
1530 esac | |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
1531 if test x$enable_threads = xyes -a x$enable_pthreads = xyes -a x$enable_ipod != xyes; then |
415
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1532 # Save the original compiler flags and libraries |
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1533 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" |
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1534 # Add the pthread compiler flags and libraries |
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1535 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" |
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1536 # Check to see if we have pthread support on this system |
0 | 1537 AC_MSG_CHECKING(for pthreads) |
1538 use_pthreads=no | |
1539 AC_TRY_LINK([ | |
1540 #include <pthread.h> | |
1541 ],[ | |
1542 pthread_attr_t type; | |
1543 pthread_attr_init(&type); | |
1544 ],[ | |
1545 use_pthreads=yes | |
1546 ]) | |
1547 AC_MSG_RESULT($use_pthreads) | |
415
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1548 # Restore the compiler flags and libraries |
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1549 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1550 |
415
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1551 # Do futher testing if we have pthread support... |
0 | 1552 if test x$use_pthreads = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1553 AC_DEFINE(SDL_THREAD_PTHREAD) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1554 BUILD_CFLAGS="$BUILD_CFLAGS $pthread_cflags" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1555 BUILD_LDFLAGS="$BUILD_LDFLAGS $pthread_lib" |
0 | 1556 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags" |
1557 SDL_LIBS="$SDL_LIBS $pthread_lib" | |
1558 | |
1559 # Check to see if recursive mutexes are available | |
1560 AC_MSG_CHECKING(for recursive mutexes) | |
1561 has_recursive_mutexes=no | |
1324
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1562 if test x$has_recursive_mutexes = xno; then |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1563 AC_TRY_COMPILE([ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1564 #include <pthread.h> |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1565 ],[ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1566 pthread_mutexattr_t attr; |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1567 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1568 ],[ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1569 has_recursive_mutexes=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1570 AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX) |
1324
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1571 ]) |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1572 fi |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1573 if test x$has_recursive_mutexes = xno; then |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1574 AC_TRY_COMPILE([ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1575 #include <pthread.h> |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1576 ],[ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1577 pthread_mutexattr_t attr; |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1578 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP); |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1579 ],[ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1580 has_recursive_mutexes=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1581 AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP) |
1324
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1582 ]) |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1583 fi |
0 | 1584 AC_MSG_RESULT($has_recursive_mutexes) |
1585 | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1586 # Check to see if pthread semaphore support is missing |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1587 if test x$enable_pthread_sem = xyes; then |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1588 AC_MSG_CHECKING(for pthread semaphores) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1589 have_pthread_sem=no |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1590 AC_TRY_COMPILE([ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1591 #include <pthread.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1592 #include <semaphore.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1593 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1594 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1595 have_pthread_sem=yes |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1596 ]) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1597 AC_MSG_RESULT($have_pthread_sem) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1598 fi |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1599 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1600 # Basic thread creation functions |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1601 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c" |
0 | 1602 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1603 # Semaphores |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1604 # We can fake these with mutexes and condition variables if necessary |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1605 if test x$have_pthread_sem = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1606 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1607 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1608 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1609 fi |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1610 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1611 # Mutexes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1612 # We can fake these with semaphores if necessary |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1613 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c" |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1614 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1615 # Condition variables |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1616 # We can fake these with semaphores and mutexes if necessary |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1617 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c" |
185
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1618 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1619 have_threads=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1620 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1621 CheckPTH |
814
5a417d2a8603
Use sigaction instead of signal to preserve handler flags (thanks Matthew!)
Sam Lantinga <slouken@libsdl.org>
parents:
807
diff
changeset
|
1622 fi |
5a417d2a8603
Use sigaction instead of signal to preserve handler flags (thanks Matthew!)
Sam Lantinga <slouken@libsdl.org>
parents:
807
diff
changeset
|
1623 fi |
5a417d2a8603
Use sigaction instead of signal to preserve handler flags (thanks Matthew!)
Sam Lantinga <slouken@libsdl.org>
parents:
807
diff
changeset
|
1624 } |
5a417d2a8603
Use sigaction instead of signal to preserve handler flags (thanks Matthew!)
Sam Lantinga <slouken@libsdl.org>
parents:
807
diff
changeset
|
1625 |
0 | 1626 dnl Determine whether the compiler can produce Win32 executables |
1627 CheckWIN32() | |
1628 { | |
1629 AC_MSG_CHECKING(Win32 compiler) | |
1630 have_win32_gcc=no | |
1631 AC_TRY_COMPILE([ | |
1632 #include <windows.h> | |
1633 ],[ | |
1634 ],[ | |
1635 have_win32_gcc=yes | |
1636 ]) | |
1637 AC_MSG_RESULT($have_win32_gcc) | |
1638 if test x$have_win32_gcc != xyes; then | |
1639 AC_MSG_ERROR([ | |
1640 *** Your compiler ($CC) does not produce Win32 executables! | |
1641 ]) | |
1642 fi | |
1643 | |
1644 dnl See if the user wants to redirect standard output to files | |
1645 AC_ARG_ENABLE(stdio-redirect, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1646 AC_HELP_STRING([--enable-stdio-redirect], [Redirect STDIO to files on Win32 [default=yes]]), |
0 | 1647 , enable_stdio_redirect=yes) |
1648 if test x$enable_stdio_redirect != xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1649 BUILD_CFLAGS="$BUILD_CFLAGS -DNO_STDIO_REDIRECT" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1650 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1651 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1652 if test x$enable_video = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1653 AC_DEFINE(SDL_VIDEO_DRIVER_WINDIB) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1654 SOURCES="$SOURCES $srcdir/src/video/wincommon/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1655 SOURCES="$SOURCES $srcdir/src/video/windib/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1656 have_video=yes |
0 | 1657 fi |
1658 } | |
1659 | |
1660 dnl Find the DirectX includes and libraries | |
1661 CheckDIRECTX() | |
1662 { | |
1663 AC_ARG_ENABLE(directx, | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1664 AC_HELP_STRING([--enable-directx], [use DirectX for Win32 audio/video [default=yes]]), |
0 | 1665 , enable_directx=yes) |
1666 if test x$enable_directx = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1667 have_directx=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1668 AC_CHECK_HEADER(ddraw.h, have_ddraw=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1669 AC_CHECK_HEADER(dsound.h, have_dsound=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1670 AC_CHECK_HEADER(dinput.h, use_dinput=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1671 if test x$have_ddraw = xyes -a x$have_dsound = xyes -a x$use_dinput = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1672 have_directx=yes |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
1673 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1674 if test x$enable_video = xyes -a x$have_directx = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1675 AC_DEFINE(SDL_VIDEO_DRIVER_DDRAW) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1676 SOURCES="$SOURCES $srcdir/src/video/windx5/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1677 have_video=yes |
1187 | 1678 fi |
1679 fi | |
1680 } | |
1681 | |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1682 dnl Check for the dlfcn.h interface for dynamically loading objects |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1683 CheckDLOPEN() |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1684 { |
731
faaa676b20ef
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
724
diff
changeset
|
1685 AC_ARG_ENABLE(sdl-dlopen, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1686 AC_HELP_STRING([--enable-sdl-dlopen], [use dlopen for shared object loading [default=yes]]), |
731
faaa676b20ef
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
724
diff
changeset
|
1687 , enable_sdl_dlopen=yes) |
faaa676b20ef
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
724
diff
changeset
|
1688 if test x$enable_sdl_dlopen = xyes; then |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1689 AC_MSG_CHECKING(for dlopen) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1690 have_dlopen=no |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1691 AC_TRY_COMPILE([ |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1692 #include <dlfcn.h> |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1693 ],[ |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1694 ],[ |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1695 have_dlopen=yes |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1696 ]) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1697 AC_MSG_RESULT($have_dlopen) |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1698 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1699 if test x$have_dlopen = xyes; then |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1700 AC_CHECK_LIB(c, dlopen, BUILD_LDFLAGS="$BUILD_LDFLAGS", |
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1701 AC_CHECK_LIB(dl, dlopen, BUILD_LDFLAGS="$BUILD_LDFLAGS -ldl", |
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1702 AC_CHECK_LIB(ltdl, dlopen, BUILD_LDFLAGS="$BUILD_LDFLAGS -lltdl"))) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1703 AC_CHECK_LIB(dl, dlvsym, have_dlvsym=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1704 if test x$have_dlvsym = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1705 AC_DEFINE(HAVE_DLVSYM) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1706 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1707 AC_DEFINE(SDL_LOADSO_DLOPEN) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1708 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1709 have_loadso=yes |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1710 fi |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1711 fi |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1712 } |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1713 |
651
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1714 dnl Set up the Atari LDG (shared object loader) |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1715 CheckAtariLdg() |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1716 { |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1717 AC_ARG_ENABLE(atari-ldg, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1718 AC_HELP_STRING([--enable-atari-ldg], [use Atari LDG for shared object loading [default=yes]]), |
651
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1719 , enable_atari_ldg=yes) |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1720 if test x$video_gem = xyes -a x$enable_atari_ldg = xyes; then |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1721 AC_CHECK_HEADER(ldg.h, have_ldg_hdr=yes) |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1722 AC_CHECK_LIB(ldg, ldg_open, have_ldg_lib=yes, have_ldg_lib=no, -lgem) |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1723 if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1724 AC_DEFINE(SDL_LOADSO_LDG) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1725 SOURCES="$SOURCES $srcdir/src/loadso/mint/*.c" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1726 BUILD_LDFLAGS="$BUILD_LDFLAGS -lldg -lgem" |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
1727 have_loadso=yes |
651
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1728 fi |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1729 fi |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1730 } |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1731 |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1732 dnl Check for the usbhid(3) library on *BSD |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1733 CheckUSBHID() |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1734 { |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1735 if test x$enable_joystick = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1736 AC_CHECK_HEADER(usb.h, [USB_CFLAGS="-DHAVE_USB_H"]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1737 AC_CHECK_HEADER(usbhid.h, [USB_CFLAGS="-DHAVE_USBHID_H"]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1738 AC_CHECK_HEADER(libusb.h, [USB_CFLAGS="-DHAVE_LIBUSB_H"]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1739 AC_CHECK_HEADER(libusbhid.h, [USB_CFLAGS="-DHAVE_LIBUSBHID_H"]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1740 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1741 AC_CHECK_LIB(usbhid, hid_init, [USB_LIBS="$USB_LIBS -lusbhid"]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1742 AC_CHECK_LIB(usb, hid_init, [USB_LIBS="$USB_LIBS -lusb"]) |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1743 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1744 save_CFLAGS="$CFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1745 CFLAGS="$CFLAGS $USB_CFLAGS" |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1746 |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1747 AC_MSG_CHECKING(for usbhid) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1748 have_usbhid=no |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1749 AC_TRY_COMPILE([ |
404
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
1750 #include <sys/types.h> |
403
8d431937739d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
402
diff
changeset
|
1751 #if defined(HAVE_USB_H) |
8d431937739d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
402
diff
changeset
|
1752 #include <usb.h> |
8d431937739d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
402
diff
changeset
|
1753 #endif |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1754 #include <dev/usb/usb.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1755 #include <dev/usb/usbhid.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1756 #if defined(HAVE_USBHID_H) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1757 #include <usbhid.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1758 #elif defined(HAVE_LIBUSB_H) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1759 #include <libusb.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1760 #elif defined(HAVE_LIBUSBHID_H) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1761 #include <libusbhid.h> |
404
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
1762 #endif |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1763 ],[ |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1764 struct report_desc *repdesc; |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1765 struct usb_ctl_report *repbuf; |
402
7efee6e36f00
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
401
diff
changeset
|
1766 hid_kind_t hidkind; |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1767 ],[ |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1768 have_usbhid=yes |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1769 ]) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1770 AC_MSG_RESULT($have_usbhid) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1771 |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1772 if test x$have_usbhid = xyes; then |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1773 AC_MSG_CHECKING(for ucr_data member of usb_ctl_report) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1774 have_usbhid_ucr_data=no |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1775 AC_TRY_COMPILE([ |
404
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
1776 #include <sys/types.h> |
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
1777 #if defined(HAVE_USB_H) |
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
1778 #include <usb.h> |
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
1779 #endif |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1780 #include <dev/usb/usb.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1781 #include <dev/usb/usbhid.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1782 #if defined(HAVE_USBHID_H) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1783 #include <usbhid.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1784 #elif defined(HAVE_LIBUSB_H) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1785 #include <libusb.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1786 #elif defined(HAVE_LIBUSBHID_H) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1787 #include <libusbhid.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1788 #endif |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1789 ],[ |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1790 struct usb_ctl_report buf; |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1791 if (buf.ucr_data) { } |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1792 ],[ |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1793 have_usbhid_ucr_data=yes |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1794 ]) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1795 if test x$have_usbhid_ucr_data = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1796 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA" |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1797 fi |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1798 AC_MSG_RESULT($have_usbhid_ucr_data) |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1799 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1800 AC_MSG_CHECKING(for new usbhid API) |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1801 have_usbhid_new=no |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1802 AC_TRY_COMPILE([ |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1803 #include <sys/types.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1804 #if defined(HAVE_USB_H) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1805 #include <usb.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1806 #endif |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1807 #include <dev/usb/usb.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1808 #include <dev/usb/usbhid.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1809 #if defined(HAVE_USBHID_H) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1810 #include <usbhid.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1811 #elif defined(HAVE_LIBUSB_H) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1812 #include <libusb.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1813 #elif defined(HAVE_LIBUSBHID_H) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1814 #include <libusbhid.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1815 #endif |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1816 ],[ |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1817 report_desc_t d; |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1818 hid_start_parse(d, 1, 1); |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1819 ],[ |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1820 have_usbhid_new=yes |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1821 ]) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1822 if test x$have_usbhid_new = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1823 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW" |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1824 fi |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1825 AC_MSG_RESULT($have_usbhid_new) |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1826 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1827 AC_DEFINE(SDL_JOYSTICK_USBHID) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1828 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1829 BUILD_CFLAGS="$BUILD_CFLAGS $USB_CFLAGS" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1830 BUILD_LDFLAGS="$BUILD_LDFLAGS $USB_LIBS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1831 have_joystick=yes |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1832 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1833 CFLAGS="$save_CFLAGS" |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1834 fi |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1835 } |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1836 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1837 dnl Check for clock_gettime() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1838 CheckClockGettime() |
795
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
1839 { |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1840 AC_ARG_ENABLE(clock_gettime, |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1841 AC_HELP_STRING([--enable-clock_gettime], [use clock_gettime() instead of gettimeofday() on UNIX [default=no]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1842 , enable_clock_gettime=no) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1843 if test x$enable_clock_gettime = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1844 AC_CHECK_LIB(rt, clock_gettime, have_clock_gettime=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1845 if test x$have_clock_gettime = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1846 AC_DEFINE(HAVE_CLOCK_GETTIME) |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1847 BUILD_LDFLAGS="$BUILD_LDFLAGS -lrt" |
1175
867f521591e5
Fixed Altivec support on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1174
diff
changeset
|
1848 fi |
795
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
1849 fi |
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
1850 } |
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
1851 |
1062
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
1852 dnl Check for a valid linux/version.h |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
1853 CheckLinuxVersion() |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
1854 { |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
1855 AC_CHECK_HEADER(linux/version.h, have_linux_version_h=yes) |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
1856 if test x$have_linux_version_h = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1857 BUILD_CFLAGS="$BUILD_CFLAGS -DHAVE_LINUX_VERSION_H" |
1062
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
1858 fi |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
1859 } |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
1860 |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
1861 dnl Check if we want to use RPATH |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
1862 CheckRPATH() |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
1863 { |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
1864 AC_ARG_ENABLE(rpath, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1865 AC_HELP_STRING([--enable-rpath], [use an rpath when linking SDL [default=yes]]), |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
1866 , enable_rpath=yes) |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
1867 } |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
1868 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1869 dnl Set up the configuration based on the target platform! |
0 | 1870 case "$target" in |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1871 arm-*-elf*) # FIXME: Can we get more specific for iPodLinux? |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1872 ARCH=linux |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1873 CheckDummyVideo |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1874 CheckIPod |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1875 # Set up files for the timer library |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
1876 if test x$enable_timers = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1877 AC_DEFINE(SDL_TIMER_UNIX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1878 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1879 have_timers=yes |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
1880 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1881 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1882 *-*-linux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-irix*|*-*-aix*|*-*-osf*) |
719
269c97e24da6
Date: Fri, 12 Sep 2003 18:04:19 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
714
diff
changeset
|
1883 case "$target" in |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1884 *-*-linux*) ARCH=linux ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1885 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1886 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1887 *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1888 *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1889 *-*-bsdi*) ARCH=bsdi ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1890 *-*-freebsd*) ARCH=freebsd ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1891 *-*-netbsd*) ARCH=netbsd ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1892 *-*-openbsd*) ARCH=openbsd ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1893 *-*-sysv5*) ARCH=sysv5 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1894 *-*-solaris*) ARCH=solaris ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1895 *-*-hpux*) ARCH=hpux ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1896 *-*-irix*) ARCH=irix ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1897 *-*-aix*) ARCH=aix ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1898 *-*-osf*) ARCH=osf ;; |
795
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
1899 esac |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1900 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
1901 CheckDiskAudio |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
1902 CheckDLOPEN |
0 | 1903 CheckNASM |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1904 CheckAltivec |
0 | 1905 CheckOSS |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1906 CheckDMEDIA |
0 | 1907 CheckALSA |
1908 CheckARTSC | |
1909 CheckESD | |
1910 CheckNAS | |
1911 CheckX11 | |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
1912 CheckNANOX |
0 | 1913 CheckFBCON |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1914 CheckDirectFB |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1915 CheckPS2GS |
0 | 1916 CheckGGI |
1917 CheckSVGA | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1918 CheckVGL |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1919 CheckWscons |
0 | 1920 CheckAAlib |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
1921 CheckQtopia |
433
706de3956894
Added initial support for PicoGUI (thanks Micah!)
Sam Lantinga <slouken@libsdl.org>
parents:
428
diff
changeset
|
1922 CheckPicoGUI |
1191
2bd4cec0de63
Seperate glX from HAVE_OPENGL, for platforms that have both an X server and
Ryan C. Gordon <icculus@icculus.org>
parents:
1187
diff
changeset
|
1923 CheckOpenGLX11 |
0 | 1924 CheckInputEvents |
1201
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1925 CheckTslib |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1926 CheckUSBHID |
0 | 1927 CheckPTHREAD |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1928 CheckClockGettime |
1062
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
1929 CheckLinuxVersion |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
1930 CheckRPATH |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1931 # Set up files for the audio library |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1932 if test x$enable_audio = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1933 case $ARCH in |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1934 netbsd|sysv5|solaris|hpux) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1935 AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1936 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1937 have_audio=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1938 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1939 openbsd) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1940 AC_DEFINE(SDL_AUDIO_DRIVER_OPENBSD) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1941 SOURCES="$SOURCES $srcdir/src/audio/openbsd/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1942 have_audio=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1943 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1944 aix) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1945 AC_DEFINE(SDL_AUDIO_DRIVER_PAUD) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1946 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1947 have_audio=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1948 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1949 osf) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1950 AC_DEFINE(SDL_AUDIO_DRIVER_MMEAUDIO) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1951 SOURCES="$SOURCES $srcdir/src/audio/mme/*.c" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
1952 BUILD_LDFLAGS="$BUILD_LDFLAGS -lmme" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1953 have_audio=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1954 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1955 esac |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
1956 fi |
0 | 1957 # Set up files for the joystick library |
1958 if test x$enable_joystick = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1959 case $ARCH in |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1960 linux) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1961 AC_DEFINE(SDL_JOYSTICK_LINUX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1962 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1963 have_joystick=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1964 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1965 esac |
0 | 1966 fi |
1967 # Set up files for the cdrom library | |
1968 if test x$enable_cdrom = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1969 case $ARCH in |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1970 linux|solaris) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1971 AC_DEFINE(SDL_CDROM_LINUX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1972 SOURCES="$SOURCES $srcdir/src/cdrom/linux/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1973 have_cdrom=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1974 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1975 *freebsd*) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1976 AC_DEFINE(SDL_CDROM_FREEBSD) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1977 SOURCES="$SOURCES $srcdir/src/cdrom/freebsd/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1978 have_cdrom=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1979 ;; |
1383 | 1980 *openbsd*|*netbsd*) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1981 AC_DEFINE(SDL_CDROM_OPENBSD) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1982 SOURCES="$SOURCES $srcdir/src/cdrom/openbsd/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1983 have_cdrom=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1984 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1985 bsdi) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1986 AC_DEFINE(SDL_CDROM_BSDI) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1987 SOURCES="$SOURCES $srcdir/src/cdrom/bsdi/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1988 have_cdrom=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1989 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1990 aix) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1991 AC_DEFINE(SDL_CDROM_AIX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1992 SOURCES="$SOURCES $srcdir/src/cdrom/aix/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1993 have_cdrom=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1994 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1995 osf) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1996 AC_DEFINE(SDL_CDROM_OSF) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1997 SOURCES="$SOURCES $srcdir/src/cdrom/osf/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1998 have_cdrom=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1999 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2000 esac |
0 | 2001 fi |
2002 # Set up files for the thread library | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2003 if test x$enable_threads = xyes -a x$use_pthreads != xyes -a x$use_pth != xyes -a x$ARCH = xirix; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2004 AC_DEFINE(SDL_THREAD_SPROC) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2005 SOURCES="$SOURCES $srcdir/src/thread/irix/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2006 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2007 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2008 have_threads=yes |
0 | 2009 fi |
2010 # Set up files for the timer library | |
2011 if test x$enable_timers = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2012 AC_DEFINE(SDL_TIMER_UNIX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2013 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2014 have_timers=yes |
0 | 2015 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2016 # Do any final platform setup |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2017 case $ARCH in |
1383 | 2018 openbsd|netbsd) |
2019 # OpenBSD and NetBSD do not define "unix" | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2020 BUILD_CFLAGS="$BUILD_CFLAGS -Dunix" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2021 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2022 esac |
0 | 2023 ;; |
2024 *-*-qnx*) | |
2025 ARCH=qnx | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2026 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2027 CheckDiskAudio |
886
05c551e5bc64
Date: Sat, 24 Apr 2004 15:13:32 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
884
diff
changeset
|
2028 # CheckNASM |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
2029 CheckDLOPEN |
0 | 2030 CheckNAS |
2031 CheckPHOTON | |
2032 CheckX11 | |
1191
2bd4cec0de63
Seperate glX from HAVE_OPENGL, for platforms that have both an X server and
Ryan C. Gordon <icculus@icculus.org>
parents:
1187
diff
changeset
|
2033 CheckOpenGLX11 |
0 | 2034 CheckPTHREAD |
2035 # Set up files for the audio library | |
2036 if test x$enable_audio = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2037 AC_DEFINE(SDL_AUDIO_DRIVER_QNXNTO) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2038 SOURCES="$SOURCES $srcdir/src/audio/nto/*.c" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
2039 BUILD_LDFLAGS="$BUILD_LDFLAGS -lasound" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2040 have_audio=yes |
0 | 2041 fi |
2042 # Set up files for the cdrom library | |
2043 if test x$enable_cdrom = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2044 AC_DEFINE(SDL_CDROM_QNX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2045 SOURCES="$SOURCES $srcdir/src/cdrom/qnx/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2046 have_cdrom=yes |
0 | 2047 fi |
2048 # Set up files for the timer library | |
2049 if test x$enable_timers = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2050 AC_DEFINE(SDL_TIMER_UNIX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2051 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2052 have_timers=yes |
0 | 2053 fi |
2054 ;; | |
2055 *-*-cygwin* | *-*-mingw32*) | |
2056 ARCH=win32 | |
2057 if test "$build" != "$target"; then # cross-compiling | |
2058 # Default cross-compile location | |
2059 ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc | |
2060 else | |
2061 # Look for the location of the tools and install there | |
750
ce48d14ca5bf
Date: Mon, 24 Nov 2003 20:11:31 +0000
Sam Lantinga <slouken@libsdl.org>
parents:
742
diff
changeset
|
2062 if test "$BUILD_PREFIX" != ""; then |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2063 ac_default_prefix=$BUILD_PREFIX |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2064 fi |
0 | 2065 fi |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2066 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2067 CheckDiskAudio |
0 | 2068 CheckWIN32 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2069 CheckWIN32GL |
0 | 2070 CheckDIRECTX |
2071 CheckNASM | |
2072 # Set up files for the audio library | |
2073 if test x$enable_audio = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2074 AC_DEFINE(SDL_AUDIO_DRIVER_WAVEOUT) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2075 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2076 if test x$have_directx = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2077 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2078 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c" |
0 | 2079 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2080 have_audio=yes |
0 | 2081 fi |
2082 # Set up files for the joystick library | |
2083 if test x$enable_joystick = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2084 AC_DEFINE(SDL_JOYSTICK_WINMM) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2085 SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2086 have_joystick=yes |
0 | 2087 fi |
2088 # Set up files for the cdrom library | |
2089 if test x$enable_cdrom = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2090 AC_DEFINE(SDL_CDROM_WIN32) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2091 SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2092 have_cdrom=yes |
0 | 2093 fi |
2094 # Set up files for the thread library | |
2095 if test x$enable_threads = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2096 AC_DEFINE(SDL_THREAD_WIN32) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2097 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2098 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2099 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2100 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2101 have_threads=yes |
0 | 2102 fi |
2103 # Set up files for the timer library | |
2104 if test x$enable_timers = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2105 AC_DEFINE(SDL_TIMER_WIN32) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2106 SOURCES="$SOURCES $srcdir/src/timer/win32/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2107 have_timers=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2108 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2109 # Set up files for the shared object loading library |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2110 if test x$enable_loadso = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2111 AC_DEFINE(SDL_LOADSO_WIN32) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2112 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2113 have_loadso=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2114 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2115 # Set up the system libraries we need |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
2116 BUILD_LDFLAGS="$BUILD_LDFLAGS -luser32 -lgdi32 -lwinmm" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2117 if test x$have_directx = xyes; then |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
2118 BUILD_LDFLAGS="$BUILD_LDFLAGS -ldxguid" |
0 | 2119 fi |
2120 # The Win32 platform requires special setup | |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2121 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c" |
0 | 2122 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" |
1363
dc623bb58c9a
Fixed building with cygwin
Sam Lantinga <slouken@libsdl.org>
parents:
1361
diff
changeset
|
2123 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows" |
0 | 2124 ;; |
2125 *-*-beos*) | |
2126 ARCH=beos | |
2127 ac_default_prefix=/boot/develop/tools/gnupro | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2128 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2129 CheckDiskAudio |
0 | 2130 CheckNASM |
2131 CheckBWINDOW | |
2132 CheckBeGL | |
2133 # Set up files for the audio library | |
2134 if test x$enable_audio = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2135 AC_DEFINE(SDL_AUDIO_DRIVER_BAUDIO) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2136 SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2137 have_audio=yes |
0 | 2138 fi |
2139 # Set up files for the joystick library | |
2140 if test x$enable_joystick = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2141 AC_DEFINE(SDL_JOYSTICK_BEOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2142 SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2143 have_joystick=yes |
0 | 2144 fi |
2145 # Set up files for the cdrom library | |
2146 if test x$enable_cdrom = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2147 AC_DEFINE(SDL_CDROM_BEOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2148 SOURCES="$SOURCES $srcdir/src/cdrom/beos/*.cc" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2149 have_cdrom=yes |
0 | 2150 fi |
2151 # Set up files for the thread library | |
2152 if test x$enable_threads = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2153 AC_DEFINE(SDL_THREAD_BEOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2154 SOURCES="$SOURCES $srcdir/src/thread/beos/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2155 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2156 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2157 have_threads=yes |
0 | 2158 fi |
2159 # Set up files for the timer library | |
2160 if test x$enable_timers = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2161 AC_DEFINE(SDL_TIMER_BEOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2162 SOURCES="$SOURCES $srcdir/src/timer/beos/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2163 have_timers=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2164 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2165 # Set up files for the shared object loading library |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2166 if test x$enable_loadso = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2167 AC_DEFINE(SDL_LOADSO_BEOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2168 SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2169 have_loadso=yes |
0 | 2170 fi |
1367
e440d5c488c1
Fixes for BeOS and Solaris builds
Sam Lantinga <slouken@libsdl.org>
parents:
1366
diff
changeset
|
2171 # The BeOS platform requires special setup. |
e440d5c488c1
Fixes for BeOS and Solaris builds
Sam Lantinga <slouken@libsdl.org>
parents:
1366
diff
changeset
|
2172 SOURCES="$srcdir/src/main/beos/*.cc $SOURCES" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
2173 BUILD_LDFLAGS="$BUILD_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding" |
0 | 2174 ;; |
2175 *-*-darwin* ) | |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2176 # This could be either full "Mac OS X", or plain "Darwin" which is |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2177 # just the OS X kernel sans upper layers like Carbon and Cocoa. |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2178 # Next line is broken, and a few files below require Mac OS X (full) |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2179 ARCH=macosx |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2180 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2181 CheckDiskAudio |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2182 CheckDLOPEN |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2183 CheckCOCOA |
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2184 CheckCARBON |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
2185 CheckX11 |
0 | 2186 CheckMacGL |
1191
2bd4cec0de63
Seperate glX from HAVE_OPENGL, for platforms that have both an X server and
Ryan C. Gordon <icculus@icculus.org>
parents:
1187
diff
changeset
|
2187 CheckOpenGLX11 |
0 | 2188 CheckPTHREAD |
1047
ffaaf7ecf685
Altivec-optimized blitters!
Ryan C. Gordon <icculus@icculus.org>
parents:
1035
diff
changeset
|
2189 CheckAltivec |
0 | 2190 # Set up files for the audio library |
2191 if test x$enable_audio = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2192 AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2193 SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2194 AC_DEFINE(SDL_AUDIO_DRIVER_SNDMGR) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2195 SOURCES="$SOURCES $srcdir/src/audio/macrom/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2196 have_audio=yes |
0 | 2197 fi |
2198 # Set up files for the joystick library | |
2199 if test x$enable_joystick = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2200 AC_DEFINE(SDL_JOYSTICK_IOKIT) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2201 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c" |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
2202 BUILD_LDFLAGS="$BUILD_LDFLAGS -framework IOKit" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2203 have_joystick=yes |
0 | 2204 fi |
2205 # Set up files for the cdrom library | |
2206 if test x$enable_cdrom = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2207 AC_DEFINE(SDL_CDROM_MACOSX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2208 SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2209 have_cdrom=yes |
0 | 2210 fi |
2211 # Set up files for the timer library | |
2212 if test x$enable_timers = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2213 AC_DEFINE(SDL_TIMER_UNIX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2214 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2215 have_timers=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2216 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2217 # Set up files for the shared object loading library |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2218 if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2219 AC_DEFINE(SDL_LOADSO_DLCOMPAT) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2220 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2221 have_loadso=yes |
0 | 2222 fi |
387
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2223 # The MacOS X platform requires special setup. |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2224 SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2225 AC_DEFINE(TARGET_API_MAC_CARBON) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2226 BUILD_CFLAGS="$BUILD_CFLAGS -fpascal-strings -DMACOSX" |
387
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2227 SDL_LIBS="-lSDLmain $SDL_LIBS" |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2228 if test x$enable_video_cocoa = xyes; then |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
2229 BUILD_LDFLAGS="$BUILD_LDFLAGS -framework Cocoa" |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2230 fi |
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2231 if test x$enable_video_carbon = xyes -o x$enable_video_cocoa = xyes; then |
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2232 # The Cocoa backend still needs Carbon, and the YUV code QuickTime |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
2233 BUILD_LDFLAGS="$BUILD_LDFLAGS -framework QuickTime -framework ApplicationServices" |
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
2234 BUILD_LDFLAGS="$BUILD_LDFLAGS -framework Carbon" |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2235 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2236 # If either the audio or CD driver is used, add the AudioUnit framework |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2237 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
2238 BUILD_LDFLAGS="$BUILD_LDFLAGS -framework AudioToolbox -framework AudioUnit" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2239 fi |
0 | 2240 ;; |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2241 *-*-mint*) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2242 ARCH=mint |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2243 CheckDummyVideo |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2244 CheckDiskAudio |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2245 CheckAtariBiosEvent |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2246 CheckAtariXbiosVideo |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2247 CheckAtariGemVideo |
398
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
2248 CheckAtariAudio |
651
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
2249 CheckAtariLdg |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2250 CheckAtariOSMesa |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2251 CheckPTH |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2252 # Set up files for the audio library |
398
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
2253 if test x$enable_threads = xyes -a x$enable_pth = xyes; then |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
2254 if test x$enable_audio = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2255 AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2256 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2257 have_audio=yes |
398
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
2258 fi |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2259 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2260 # Set up files for the joystick library |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2261 if test x$enable_joystick = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2262 AC_DEFINE(SDL_JOYSTICK_MINT) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2263 SOURCES="$SOURCES $srcdir/src/joystick/mint/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2264 have_joystick=yes |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2265 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2266 # Set up files for the cdrom library |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2267 if test x$enable_cdrom = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2268 AC_DEFINE(SDL_CDROM_MINT) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2269 SOURCES="$SOURCES $srcdir/src/cdrom/mint/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2270 have_cdrom=yes |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2271 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2272 # Set up files for the timer library |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2273 if test x$enable_timers = xyes; then |
557
0ce5a68278fd
Updated Atari port for new system headers (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
546
diff
changeset
|
2274 if test x$enable_threads = xyes -a x$enable_pth = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2275 AC_DEFINE(SDL_TIMER_UNIX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2276 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" |
557
0ce5a68278fd
Updated Atari port for new system headers (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
546
diff
changeset
|
2277 else |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2278 AC_DEFINE(SDL_TIMER_MINT) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2279 SOURCES="$SOURCES $srcdir/src/timer/mint/*.c" |
557
0ce5a68278fd
Updated Atari port for new system headers (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
546
diff
changeset
|
2280 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2281 have_timers=yes |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2282 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2283 # MiNT does not define "unix" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2284 BUILD_CFLAGS="$BUILD_CFLAGS -Dunix" |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2285 ;; |
1035
974ba6ae0fa3
Date: Wed, 26 Jan 2005 13:37:09 GMT
Sam Lantinga <slouken@libsdl.org>
parents:
1024
diff
changeset
|
2286 *-riscos) |
687
91400ecf307d
Date: Mon, 11 Aug 2003 22:49:06 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
684
diff
changeset
|
2287 ARCH=riscos |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2288 CheckOSS |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2289 CheckPTHREAD |
955
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2290 # Set up files for the video library |
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2291 if test x$enable_video = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2292 AC_DEFINE(SDL_VIDEO_DRIVER_RISCOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2293 SOURCES="$SOURCES $srcdir/src/video/riscos/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2294 have_video=yes |
955
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2295 fi |
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2296 # Set up files for the joystick library |
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2297 if test x$enable_joystick = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2298 AC_DEFINE(SDL_JOYSTICK_RISCOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2299 SOURCES="$SOURCES $srcdir/src/joystick/riscos/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2300 have_joystick=yes |
955
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2301 fi |
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2302 # Set up files for the timer library |
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2303 if test x$enable_timers = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2304 AC_DEFINE(SDL_TIMER_RISCOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2305 SOURCES="$SOURCES $srcdir/src/timer/riscos/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2306 have_timers=yes |
955
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2307 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2308 # The RISC OS platform requires special setup. |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
2309 BUILD_LDFLAGS="$BUILD_LDFLAGS -ljpeg -ltiff -lpng -lz" |
687
91400ecf307d
Date: Mon, 11 Aug 2003 22:49:06 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
684
diff
changeset
|
2310 ;; |
0 | 2311 *) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2312 AC_MSG_ERROR([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2313 *** Unsupported target: Please add to configure.in |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2314 ]) |
0 | 2315 ;; |
2316 esac | |
2317 | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2318 # Verify that we have all the platform specific files we need |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2319 if test x$have_joystick != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2320 if test x$enable_joystick = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2321 AC_DEFINE(SDL_JOYSTICK_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2322 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2323 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2324 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2325 if test x$have_cdrom != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2326 if test x$enable_cdrom = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2327 AC_DEFINE(SDL_CDROM_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2328 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2329 SOURCES="$SOURCES $srcdir/src/cdrom/dummy/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2330 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2331 if test x$have_threads != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2332 if test x$enable_threads = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2333 AC_DEFINE(SDL_THREADS_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2334 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2335 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2336 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2337 if test x$have_timers != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2338 if test x$enable_timers = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2339 AC_DEFINE(SDL_TIMERS_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2340 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2341 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2342 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2343 if test x$have_loadso != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2344 if test x$enable_loadso = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2345 AC_DEFINE(SDL_LOADSO_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2346 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2347 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2348 fi |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2349 if test x$SDLMAIN_SOURCES = x; then |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2350 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c" |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2351 fi |
0 | 2352 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2353 OBJECTS=`echo $SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.asm,$(objects)/\1.lo,g'` |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2354 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.lo,g'` |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2355 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.lo,g'` |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2356 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'` |
0 | 2357 |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2358 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.o,g'` |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2359 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.o,g'` |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2360 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'` |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2361 |
0 | 2362 # Set runtime shared library paths as needed |
2363 | |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2364 if test "x$enable_rpath" = "xyes"; then |
1384
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
2365 if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi -o $ARCH = irix; then |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2366 SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2367 fi |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2368 if test $ARCH = solaris; then |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2369 SDL_RLD_FLAGS="-R\${exec_prefix}/lib" |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2370 fi |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2371 else |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2372 SDL_RLD_FLAGS="" |
0 | 2373 fi |
387
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2374 |
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2375 case "$ARCH" in |
401
19f9079728f9
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
400
diff
changeset
|
2376 openbsd | netbsd | bsdi) |
257
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2377 SHARED_SYSTEM_LIBS="$SYSTEM_LIBS" |
387
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2378 ;; |
663
8bedd6d61642
Date: Sat, 2 Aug 2003 16:22:51 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
654
diff
changeset
|
2379 qnx) |
8bedd6d61642
Date: Sat, 2 Aug 2003 16:22:51 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
654
diff
changeset
|
2380 SHARED_SYSTEM_LIBS="$SYSTEM_LIBS" |
8bedd6d61642
Date: Sat, 2 Aug 2003 16:22:51 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
654
diff
changeset
|
2381 ;; |
387
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2382 macosx) |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2383 SHARED_SYSTEM_LIBS="" |
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2384 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then |
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2385 SHARED_SYSTEM_LIBS="$SHARED_SYSTEM_LIBS -framework Cocoa" |
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2386 fi |
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2387 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then |
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2388 SHARED_SYSTEM_LIBS="$SHARED_SYSTEM_LIBS -framework Carbon" |
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2389 fi |
387
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2390 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then |
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2391 SHARED_SYSTEM_LIBS="$SHARED_SYSTEM_LIBS -framework OpenGL" |
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2392 fi |
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2393 ;; |
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2394 *) |
257
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2395 SHARED_SYSTEM_LIBS="" |
387
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2396 ;; |
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2397 esac |
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2398 |
807
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2399 case "$ARCH" in |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2400 macosx) |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2401 # Evil hack to allow static linking on Mac OS X |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2402 SDL_STATIC_LIBS="\${exec_prefix}/lib/libSDLmain.a \${exec_prefix}/lib/libSDL.a" |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2403 ;; |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2404 *) |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2405 SDL_STATIC_LIBS="$SDL_LIBS" |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2406 ;; |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2407 esac |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2408 |
257
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2409 STATIC_SYSTEM_LIBS="$SYSTEM_LIBS" |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2410 |
0 | 2411 dnl Expand the cflags and libraries needed by apps using SDL |
2412 AC_SUBST(SDL_CFLAGS) | |
2413 AC_SUBST(SDL_LIBS) | |
807
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2414 AC_SUBST(SDL_STATIC_LIBS) |
0 | 2415 AC_SUBST(SDL_RLD_FLAGS) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2416 if test x$enable_shared = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2417 ENABLE_SHARED_TRUE= |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2418 ENABLE_SHARED_FALSE="#" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2419 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2420 ENABLE_SHARED_TRUE="#" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2421 ENABLE_SHARED_FALSE= |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2422 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2423 if test x$enable_static = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2424 ENABLE_STATIC_TRUE= |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2425 ENABLE_STATIC_FALSE="#" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2426 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2427 ENABLE_STATIC_TRUE="#" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2428 ENABLE_STATIC_FALSE= |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2429 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2430 AC_SUBST(ENABLE_SHARED_TRUE) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2431 AC_SUBST(ENABLE_SHARED_FALSE) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2432 AC_SUBST(ENABLE_STATIC_TRUE) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2433 AC_SUBST(ENABLE_STATIC_FALSE) |
0 | 2434 |
257
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2435 dnl Expand the libraries needed for static and dynamic linking |
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2436 AC_SUBST(STATIC_SYSTEM_LIBS) |
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2437 AC_SUBST(SHARED_SYSTEM_LIBS) |
261
1c5f68da5fc2
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
259
diff
changeset
|
2438 AC_SUBST(SYSTEM_LIBS) |
257
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2439 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2440 dnl Expand the sources and objects needed to build the library |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2441 AC_SUBST(ac_aux_dir) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2442 AC_SUBST(INCLUDE) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2443 AC_SUBST(SOURCES) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2444 AC_SUBST(OBJECTS) |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2445 AC_SUBST(SDLMAIN_SOURCES) |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2446 AC_SUBST(SDLMAIN_OBJECTS) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2447 AC_SUBST(BUILD_CFLAGS) |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
2448 AC_SUBST(BUILD_LDFLAGS) |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2449 |
0 | 2450 AC_OUTPUT([ |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2451 Makefile sdl-config SDL.spec SDL.qpg |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2452 ], [ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2453 : >build-deps |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2454 make depend |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2455 ]) |