Mercurial > sdl-ios-xcode
annotate configure.in @ 3648:a9d830c05998
Fixed build problems with gcc __attribute__.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 13 Jan 2010 07:00:20 +0000 |
parents | c5925cd41955 |
children | 1e74d7984d0b |
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 |
3085
4800979de337
Updated libtool from version 1.5.22 to 2.2.6a, so it works on current QNX
Sam Lantinga <slouken@libsdl.org>
parents:
3083
diff
changeset
|
5 AC_CONFIG_AUX_DIRS($srcdir/build-scripts) |
0 | 6 |
3382
294fb5e6f301
A better solution to making the default build optimization -O3
Sam Lantinga <slouken@libsdl.org>
parents:
3372
diff
changeset
|
7 dnl Save the CFLAGS to see whether they were passed in or generated |
294fb5e6f301
A better solution to making the default build optimization -O3
Sam Lantinga <slouken@libsdl.org>
parents:
3372
diff
changeset
|
8 orig_CFLAGS="$CFLAGS" |
294fb5e6f301
A better solution to making the default build optimization -O3
Sam Lantinga <slouken@libsdl.org>
parents:
3372
diff
changeset
|
9 |
0 | 10 dnl Set various version strings - taken gratefully from the GTk sources |
11 # | |
12 # Making releases: | |
13 # Edit include/SDL/SDL_version.h and change the version, then: | |
14 # SDL_MICRO_VERSION += 1; | |
15 # SDL_INTERFACE_AGE += 1; | |
16 # SDL_BINARY_AGE += 1; | |
17 # if any functions have been added, set SDL_INTERFACE_AGE to 0. | |
18 # if backwards compatibility has been broken, | |
19 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0. | |
20 # | |
21 SDL_MAJOR_VERSION=1 | |
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
22 SDL_MINOR_VERSION=3 |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
23 SDL_MICRO_VERSION=0 |
1886
44635227a939
Updated the version to 1.2.11
Sam Lantinga <slouken@libsdl.org>
parents:
1879
diff
changeset
|
24 SDL_INTERFACE_AGE=0 |
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
25 SDL_BINARY_AGE=0 |
0 | 26 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION |
27 | |
28 AC_SUBST(SDL_MAJOR_VERSION) | |
29 AC_SUBST(SDL_MINOR_VERSION) | |
30 AC_SUBST(SDL_MICRO_VERSION) | |
31 AC_SUBST(SDL_INTERFACE_AGE) | |
32 AC_SUBST(SDL_BINARY_AGE) | |
33 AC_SUBST(SDL_VERSION) | |
34 | |
35 # libtool versioning | |
3085
4800979de337
Updated libtool from version 1.5.22 to 2.2.6a, so it works on current QNX
Sam Lantinga <slouken@libsdl.org>
parents:
3083
diff
changeset
|
36 LT_INIT([win32-dll]) |
4800979de337
Updated libtool from version 1.5.22 to 2.2.6a, so it works on current QNX
Sam Lantinga <slouken@libsdl.org>
parents:
3083
diff
changeset
|
37 |
0 | 38 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION |
39 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE` | |
40 LT_REVISION=$SDL_INTERFACE_AGE | |
41 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE` | |
3368 | 42 m4_pattern_allow([^LT_]) |
0 | 43 |
44 AC_SUBST(LT_RELEASE) | |
45 AC_SUBST(LT_CURRENT) | |
46 AC_SUBST(LT_REVISION) | |
47 AC_SUBST(LT_AGE) | |
48 | |
1550 | 49 dnl Detect the canonical build and host environments |
3368 | 50 dnl AC_CANONICAL_HOST |
0 | 51 |
3332
da1cb54d74ef
You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga <slouken@libsdl.org>
parents:
3307
diff
changeset
|
52 dnl Check for tools |
da1cb54d74ef
You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga <slouken@libsdl.org>
parents:
3307
diff
changeset
|
53 AC_PROG_LIBTOOL |
da1cb54d74ef
You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga <slouken@libsdl.org>
parents:
3307
diff
changeset
|
54 AC_PROG_CC |
da1cb54d74ef
You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga <slouken@libsdl.org>
parents:
3307
diff
changeset
|
55 AC_PROG_CXX |
da1cb54d74ef
You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga <slouken@libsdl.org>
parents:
3307
diff
changeset
|
56 AC_PROG_INSTALL |
da1cb54d74ef
You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga <slouken@libsdl.org>
parents:
3307
diff
changeset
|
57 AC_PROG_MAKE_SET |
da1cb54d74ef
You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga <slouken@libsdl.org>
parents:
3307
diff
changeset
|
58 if test -z "$host_alias"; then |
da1cb54d74ef
You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga <slouken@libsdl.org>
parents:
3307
diff
changeset
|
59 hostaliaswindres= |
da1cb54d74ef
You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga <slouken@libsdl.org>
parents:
3307
diff
changeset
|
60 else |
da1cb54d74ef
You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga <slouken@libsdl.org>
parents:
3307
diff
changeset
|
61 hostaliaswindres="$host_alias-windres" |
da1cb54d74ef
You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga <slouken@libsdl.org>
parents:
3307
diff
changeset
|
62 fi |
da1cb54d74ef
You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga <slouken@libsdl.org>
parents:
3307
diff
changeset
|
63 AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres]) |
da1cb54d74ef
You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga <slouken@libsdl.org>
parents:
3307
diff
changeset
|
64 |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
65 dnl Set up the compiler and linker flags |
1571
0160eb7cccee
Add /usr/local to the build paths by default
Sam Lantinga <slouken@libsdl.org>
parents:
1569
diff
changeset
|
66 INCLUDE="-I$srcdir/include" |
1373
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
67 if test x$srcdir != x.; then |
1742
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
68 # Remove SDL_config.h from the source directory, since it's the |
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
69 # default one, and we want to include the one that we generate. |
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
70 if test -f $srcdir/include/SDL_config.h; then |
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
71 rm $srcdir/include/SDL_config.h |
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
72 fi |
1571
0160eb7cccee
Add /usr/local to the build paths by default
Sam Lantinga <slouken@libsdl.org>
parents:
1569
diff
changeset
|
73 INCLUDE="-Iinclude $INCLUDE" |
1373
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
74 fi |
1550 | 75 case "$host" in |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
76 *-*-cygwin*) |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
77 # We build SDL on cygwin without the UNIX emulation layer |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
78 BASE_CFLAGS="-I/usr/include/mingw -mno-cygwin" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
79 BASE_LDFLAGS="-mno-cygwin" |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
80 ;; |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
81 *) |
3604 | 82 BASE_CFLAGS="" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
83 BASE_LDFLAGS="" |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
84 ;; |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
85 esac |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
86 BUILD_CFLAGS="$CFLAGS $CPPFLAGS" |
3382
294fb5e6f301
A better solution to making the default build optimization -O3
Sam Lantinga <slouken@libsdl.org>
parents:
3372
diff
changeset
|
87 # The default optimization for SDL 1.3 is -O3 (Bug #31) |
294fb5e6f301
A better solution to making the default build optimization -O3
Sam Lantinga <slouken@libsdl.org>
parents:
3372
diff
changeset
|
88 if test x$orig_CFLAGS = x; then |
294fb5e6f301
A better solution to making the default build optimization -O3
Sam Lantinga <slouken@libsdl.org>
parents:
3372
diff
changeset
|
89 BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'` |
294fb5e6f301
A better solution to making the default build optimization -O3
Sam Lantinga <slouken@libsdl.org>
parents:
3372
diff
changeset
|
90 fi |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
91 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
92 BUILD_LDFLAGS="$LDFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
93 EXTRA_LDFLAGS="$BASE_LDFLAGS" |
2163
5f96cf74b782
NAS dynamic loading is going to be have to looked at... *sigh*
Sam Lantinga <slouken@libsdl.org>
parents:
2158
diff
changeset
|
94 ## These are common directories to find software packages |
5f96cf74b782
NAS dynamic loading is going to be have to looked at... *sigh*
Sam Lantinga <slouken@libsdl.org>
parents:
2158
diff
changeset
|
95 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do |
1823
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
96 # if test -d $path/include; then |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
97 # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include" |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
98 # fi |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
99 # if test -d $path/lib; then |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
100 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib" |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
101 # fi |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
102 #done |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
103 SDL_CFLAGS="$BASE_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
104 SDL_LIBS="-lSDL $BASE_LDFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
105 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
106 CFLAGS="$CFLAGS $EXTRA_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
107 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS" |
1373
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
108 |
3391
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
109 dnl set this to use on systems that use lib64 instead of lib |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
110 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'` |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
111 |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
112 dnl Function to find a library in the compiler search path |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
113 find_lib() |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
114 { |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
115 gcc_bin_path=[`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`] |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
116 gcc_lib_path=[`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`] |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
117 env_lib_path=[`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`] |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
118 if test "$cross_compiling" = yes; then |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
119 host_lib_path="" |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
120 else |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
121 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir" |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
122 fi |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
123 for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
124 lib=[`ls -- $path/$1 2>/dev/null | sort | sed 's/.*\/\(.*\)/\1/; q'`] |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
125 if test x$lib != x; then |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
126 echo $lib |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
127 return |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
128 fi |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
129 done |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
130 } |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
131 |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
132 dnl Check for compiler characteristics |
1341
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
133 AC_C_CONST |
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
134 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
|
135 AC_C_VOLATILE |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
136 |
3647
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
137 dnl See whether we want assertions for debugging/sanity checking SDL itself. |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
138 AC_ARG_ENABLE(assertions, |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
139 AC_HELP_STRING([--enable-assertions], |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
140 [Enable internal sanity checks (yes/no/release/paranoid) [[default=release]]]), |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
141 , enable_assertions=release) |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
142 sdl_valid_assertion_level=no |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
143 if test x$enable_assertions = xno; then |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
144 sdl_valid_assertion_level=yes |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
145 AC_DEFINE(SDL_ASSERT_LEVEL, 0) |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
146 fi |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
147 if test x$enable_assertions = xrelease; then |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
148 sdl_valid_assertion_level=yes |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
149 AC_DEFINE(SDL_ASSERT_LEVEL, 1) |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
150 fi |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
151 if test x$enable_assertions = xyes; then |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
152 sdl_valid_assertion_level=yes |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
153 AC_DEFINE(SDL_ASSERT_LEVEL, 2) |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
154 fi |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
155 if test x$enable_assertions = xparanoid; then |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
156 sdl_valid_assertion_level=yes |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
157 AC_DEFINE(SDL_ASSERT_LEVEL, 3) |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
158 fi |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
159 if test x$sdl_valid_assertion_level = xno; then |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
160 AC_MSG_ERROR([*** unknown assertion level. stop.]) |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
161 fi |
c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
Sam Lantinga <slouken@libsdl.org>
parents:
3639
diff
changeset
|
162 |
3354 | 163 dnl See whether we can use gcc style dependency tracking |
164 AC_ARG_ENABLE(dependency-tracking, | |
165 AC_HELP_STRING([--enable-dependency-tracking], | |
166 [Use gcc -MMD -MT dependency tracking [[default=yes]]]), | |
167 , enable_dependency_tracking=yes) | |
168 if test x$enable_dependency_tracking = xyes; then | |
169 have_gcc_mmd_mt=no | |
170 AC_MSG_CHECKING(for GCC -MMD -MT option) | |
171 AC_TRY_COMPILE([ | |
172 #if !defined(__GNUC__) || __GNUC__ < 3 | |
173 #error Dependency tracking requires GCC 3.0 or newer | |
174 #endif | |
175 ],[ | |
176 ],[ | |
177 have_gcc_mmd_mt=yes | |
178 ]) | |
179 AC_MSG_RESULT($have_gcc_mmd_mt) | |
180 | |
181 if test x$have_gcc_mmd_mt = xyes; then | |
182 DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@" | |
183 fi | |
184 fi | |
185 | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
186 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
|
187 AC_ARG_ENABLE(libc, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
188 AC_HELP_STRING([--enable-libc], [Use the system C library [[default=yes]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
189 , 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
|
190 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
|
191 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
|
192 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
193 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
|
194 AC_HEADER_STDC |
1501
73dc5d39bbf8
Added UTF-8 <-> UTF-16 <-> UTF-32 <-> UCS-2 <-> UCS-4 conversion capability
Sam Lantinga <slouken@libsdl.org>
parents:
1477
diff
changeset
|
195 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 iconv.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
|
196 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
197 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
|
198 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
|
199 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
|
200 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
|
201 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
|
202 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
|
203 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
204 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
|
205 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
206 |
3012
7e30c2dc7783
Fixed Visual C++ release build for Visual C++ 2005
Sam Lantinga <slouken@libsdl.org>
parents:
3007
diff
changeset
|
207 dnl Check for defines |
7e30c2dc7783
Fixed Visual C++ release build for Visual C++ 2005
Sam Lantinga <slouken@libsdl.org>
parents:
3007
diff
changeset
|
208 AC_CHECK_DEFINE(M_PI, math.h) |
7e30c2dc7783
Fixed Visual C++ release build for Visual C++ 2005
Sam Lantinga <slouken@libsdl.org>
parents:
3007
diff
changeset
|
209 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
210 dnl Checks for library functions. |
2079 | 211 case "$host" in |
212 *-*-cygwin* | *-*-mingw32*) | |
213 ;; | |
214 *) | |
215 AC_FUNC_ALLOCA | |
216 ;; | |
217 esac | |
218 | |
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_FUNC_MEMCMP |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
220 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
|
221 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
|
222 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
223 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
|
224 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
|
225 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
|
226 fi |
3405
d5f2dd33f4eb
Merged improvements to SDL_SoftStretch() from SDL 1.2
Sam Lantinga <slouken@libsdl.org>
parents:
3394
diff
changeset
|
227 AC_CHECK_FUNC(mprotect, |
d5f2dd33f4eb
Merged improvements to SDL_SoftStretch() from SDL 1.2
Sam Lantinga <slouken@libsdl.org>
parents:
3394
diff
changeset
|
228 AC_TRY_COMPILE([ |
d5f2dd33f4eb
Merged improvements to SDL_SoftStretch() from SDL 1.2
Sam Lantinga <slouken@libsdl.org>
parents:
3394
diff
changeset
|
229 #include <sys/types.h> |
d5f2dd33f4eb
Merged improvements to SDL_SoftStretch() from SDL 1.2
Sam Lantinga <slouken@libsdl.org>
parents:
3394
diff
changeset
|
230 #include <sys/mman.h> |
d5f2dd33f4eb
Merged improvements to SDL_SoftStretch() from SDL 1.2
Sam Lantinga <slouken@libsdl.org>
parents:
3394
diff
changeset
|
231 ],[ |
d5f2dd33f4eb
Merged improvements to SDL_SoftStretch() from SDL 1.2
Sam Lantinga <slouken@libsdl.org>
parents:
3394
diff
changeset
|
232 ],[ |
d5f2dd33f4eb
Merged improvements to SDL_SoftStretch() from SDL 1.2
Sam Lantinga <slouken@libsdl.org>
parents:
3394
diff
changeset
|
233 AC_DEFINE(HAVE_MPROTECT) |
d5f2dd33f4eb
Merged improvements to SDL_SoftStretch() from SDL 1.2
Sam Lantinga <slouken@libsdl.org>
parents:
3394
diff
changeset
|
234 ]), |
d5f2dd33f4eb
Merged improvements to SDL_SoftStretch() from SDL 1.2
Sam Lantinga <slouken@libsdl.org>
parents:
3394
diff
changeset
|
235 ) |
3586
b6758aee0dd4
Added support for querying the number of CPUs available on Linux. This also happens to work on Mac OS X.
Sam Lantinga <slouken@libsdl.org>
parents:
3581
diff
changeset
|
236 AC_CHECK_FUNCS(malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf sigaction setjmp nanosleep sysconf sysctlbyname) |
1373
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
237 |
3014
cacb282192a1
Check for functions after including the libraries that they might be in.
Sam Lantinga <slouken@libsdl.org>
parents:
3012
diff
changeset
|
238 AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"]) |
3032 | 239 AC_CHECK_FUNCS(ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt) |
3014
cacb282192a1
Check for functions after including the libraries that they might be in.
Sam Lantinga <slouken@libsdl.org>
parents:
3012
diff
changeset
|
240 |
cacb282192a1
Check for functions after including the libraries that they might be in.
Sam Lantinga <slouken@libsdl.org>
parents:
3012
diff
changeset
|
241 AC_CHECK_LIB(iconv, libiconv_open, [LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"]) |
cacb282192a1
Check for functions after including the libraries that they might be in.
Sam Lantinga <slouken@libsdl.org>
parents:
3012
diff
changeset
|
242 AC_CHECK_FUNCS(iconv) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
243 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
244 |
3180
77d6336711fc
First commit for SDL atomic operations.
Bob Pendleton <bob@pendleton.com>
parents:
3173
diff
changeset
|
245 AC_CHECK_SIZEOF(void*) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
246 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
|
247 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
|
248 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
|
249 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
|
250 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
|
251 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
|
252 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
|
253 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
|
254 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
|
255 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
256 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
|
257 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
|
258 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
|
259 else |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
260 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
|
261 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
|
262 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
|
263 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
264 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
265 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
|
266 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
|
267 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
|
268 else |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
269 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
|
270 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
|
271 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
|
272 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
273 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
274 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
|
275 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
|
276 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
|
277 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
|
278 else |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
279 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
|
280 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
|
281 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
|
282 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
|
283 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
284 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
285 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
|
286 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
|
287 fi |
1341
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
288 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
289 # 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
|
290 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
|
291 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
|
292 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
|
293 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
|
294 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
|
295 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
|
296 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
|
297 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
|
298 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
|
299 |
0 | 300 dnl Enable/disable various subsystems of the SDL library |
301 | |
3199
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
302 AC_ARG_ENABLE(atomic, |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
303 AC_HELP_STRING([--enable-atomic], [Enable the atomic operations subsystem [[default=yes]]]), |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
304 , enable_atomic=yes) |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
305 if test x$enable_atomic != xyes; then |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
306 AC_DEFINE(SDL_ATOMIC_DISABLED) |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
307 fi |
0 | 308 AC_ARG_ENABLE(audio, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
309 AC_HELP_STRING([--enable-audio], [Enable the audio subsystem [[default=yes]]]), |
0 | 310 , 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
|
311 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
|
312 AC_DEFINE(SDL_AUDIO_DISABLED) |
0 | 313 fi |
314 AC_ARG_ENABLE(video, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
315 AC_HELP_STRING([--enable-video], [Enable the video subsystem [[default=yes]]]), |
0 | 316 , 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
|
317 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
|
318 AC_DEFINE(SDL_VIDEO_DISABLED) |
0 | 319 fi |
320 AC_ARG_ENABLE(events, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
321 AC_HELP_STRING([--enable-events], [Enable the events subsystem [[default=yes]]]), |
0 | 322 , 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
|
323 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
|
324 AC_DEFINE(SDL_EVENTS_DISABLED) |
0 | 325 fi |
326 AC_ARG_ENABLE(joystick, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
327 AC_HELP_STRING([--enable-joystick], [Enable the joystick subsystem [[default=yes]]]), |
0 | 328 , 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
|
329 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
|
330 AC_DEFINE(SDL_JOYSTICK_DISABLED) |
2103
4a010418f3b9
Merged r3009:3011 from branches/SDL-1.2: Skip subsystem on --disable-joysticks.
Ryan C. Gordon <icculus@icculus.org>
parents:
2093
diff
changeset
|
331 else |
4a010418f3b9
Merged r3009:3011 from branches/SDL-1.2: Skip subsystem on --disable-joysticks.
Ryan C. Gordon <icculus@icculus.org>
parents:
2093
diff
changeset
|
332 SOURCES="$SOURCES $srcdir/src/joystick/*.c" |
0 | 333 fi |
2713
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
334 AC_ARG_ENABLE(haptic, |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
335 AC_HELP_STRING([--enable-haptic], [Enable the haptic (force feedback) subsystem [[default=yes]]]), |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
336 , enable_haptic=yes) |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
337 if test x$enable_haptic != xyes; then |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
338 AC_DEFINE(SDL_HAPTIC_DISABLED) |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
339 else |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
340 SOURCES="$SOURCES $srcdir/src/haptic/*.c" |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
341 fi |
3170
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
342 AC_ARG_ENABLE(power, |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
343 AC_HELP_STRING([--enable-power], [Enable the power subsystem [[default=yes]]]), |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
344 , enable_power=yes) |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
345 if test x$enable_power != xyes; then |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
346 AC_DEFINE(SDL_POWER_DISABLED) |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
347 else |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
348 SOURCES="$SOURCES $srcdir/src/power/*.c" |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
349 fi |
0 | 350 AC_ARG_ENABLE(threads, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
351 AC_HELP_STRING([--enable-threads], [Enable the threading subsystem [[default=yes]]]), |
0 | 352 , enable_threads=yes) |
353 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
|
354 AC_DEFINE(SDL_THREADS_DISABLED) |
0 | 355 fi |
356 AC_ARG_ENABLE(timers, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
357 AC_HELP_STRING([--enable-timers], [Enable the timer subsystem [[default=yes]]]), |
0 | 358 , 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
|
359 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
|
360 AC_DEFINE(SDL_TIMERS_DISABLED) |
0 | 361 fi |
362 AC_ARG_ENABLE(file, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
363 AC_HELP_STRING([--enable-file], [Enable the file subsystem [[default=yes]]]), |
0 | 364 , 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
|
365 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
|
366 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
|
367 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
368 AC_ARG_ENABLE(loadso, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
369 AC_HELP_STRING([--enable-loadso], [Enable the shared object loading subsystem [[default=yes]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
370 , 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
|
371 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
|
372 AC_DEFINE(SDL_LOADSO_DISABLED) |
0 | 373 fi |
740
e70f80e98f60
Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
374 AC_ARG_ENABLE(cpuinfo, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
375 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
|
376 , 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
|
377 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
|
378 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
|
379 fi |
1402
d910939febfa
Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
1399
diff
changeset
|
380 AC_ARG_ENABLE(assembly, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
381 AC_HELP_STRING([--enable-assembly], [Enable assembly routines [[default=yes]]]), |
1402
d910939febfa
Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
1399
diff
changeset
|
382 , enable_assembly=yes) |
d910939febfa
Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
1399
diff
changeset
|
383 if test x$enable_assembly = xyes; then |
d910939febfa
Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
1399
diff
changeset
|
384 AC_DEFINE(SDL_ASSEMBLY_ROUTINES) |
2247
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
385 |
2856
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
386 # Make sure that we don't generate floating point code that would |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
387 # cause illegal instruction exceptions on older processors |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
388 case "$host" in |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
389 *-*-darwin*) |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
390 # Don't need to worry about Apple hardware, it's all SSE capable |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
391 default_ssemath=yes |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
392 ;; |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
393 *64-*-*) |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
394 # x86 64-bit architectures all have SSE instructions |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
395 default_ssemath=yes |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
396 ;; |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
397 *) |
2856
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
398 default_ssemath=no |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
399 ;; |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
400 esac |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
401 AC_ARG_ENABLE(ssemath, |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
402 AC_HELP_STRING([--enable-ssemath], [Allow GCC to use SSE floating point math [[default=no]]]), |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
403 , enable_ssemath=$default_ssemath) |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
404 if test x$enable_ssemath = xno; then |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
405 if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
406 EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387" |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
407 fi |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
408 fi |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
409 |
2247
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
410 dnl Check for various instruction support |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
411 AC_ARG_ENABLE(mmx, |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
412 AC_HELP_STRING([--enable-mmx], [use MMX assembly routines [[default=yes]]]), |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
413 , enable_mmx=yes) |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
414 if test x$enable_mmx = xyes; then |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
415 save_CFLAGS="$CFLAGS" |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
416 have_gcc_mmx=no |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
417 AC_MSG_CHECKING(for GCC -mmmx option) |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
418 mmx_CFLAGS="-mmmx" |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
419 CFLAGS="$save_CFLAGS $mmx_CFLAGS" |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
420 |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
421 AC_TRY_COMPILE([ |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
422 #include <mmintrin.h> |
2261
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
423 #ifndef __MMX__ |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
424 #error Assembler CPP flag not enabled |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
425 #endif |
2247
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
426 ],[ |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
427 ],[ |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
428 have_gcc_mmx=yes |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
429 ]) |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
430 AC_MSG_RESULT($have_gcc_mmx) |
2290
323a5af2924b
Christian Walther fixed bug #530
Sam Lantinga <slouken@libsdl.org>
parents:
2271
diff
changeset
|
431 CFLAGS="$save_CFLAGS" |
2247
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
432 |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
433 if test x$have_gcc_mmx = xyes; then |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
434 EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS" |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
435 fi |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
436 fi |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
437 |
2261
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
438 AC_ARG_ENABLE(3dnow, |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
439 AC_HELP_STRING([--enable-3dnow], [use MMX assembly routines [[default=yes]]]), |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
440 , enable_3dnow=yes) |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
441 if test x$enable_3dnow = xyes; then |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
442 save_CFLAGS="$CFLAGS" |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
443 have_gcc_3dnow=no |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
444 AC_MSG_CHECKING(for GCC -m3dnow option) |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
445 amd3dnow_CFLAGS="-m3dnow" |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
446 CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS" |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
447 |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
448 AC_TRY_COMPILE([ |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
449 #include <mm3dnow.h> |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
450 #ifndef __3dNOW__ |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
451 #error Assembler CPP flag not enabled |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
452 #endif |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
453 ],[ |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
454 ],[ |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
455 have_gcc_3dnow=yes |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
456 ]) |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
457 AC_MSG_RESULT($have_gcc_3dnow) |
2290
323a5af2924b
Christian Walther fixed bug #530
Sam Lantinga <slouken@libsdl.org>
parents:
2271
diff
changeset
|
458 CFLAGS="$save_CFLAGS" |
2261
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
459 |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
460 if test x$have_gcc_3dnow = xyes; then |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
461 EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS" |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
462 fi |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
463 fi |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
464 |
2247
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
465 AC_ARG_ENABLE(sse, |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
466 AC_HELP_STRING([--enable-sse], [use SSE assembly routines [[default=yes]]]), |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
467 , enable_sse=yes) |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
468 if test x$enable_sse = xyes; then |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
469 save_CFLAGS="$CFLAGS" |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
470 have_gcc_sse=no |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
471 AC_MSG_CHECKING(for GCC -msse option) |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
472 sse_CFLAGS="-msse" |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
473 CFLAGS="$save_CFLAGS $sse_CFLAGS" |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
474 |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
475 AC_TRY_COMPILE([ |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
476 #include <xmmintrin.h> |
2261
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
477 #ifndef __SSE__ |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
478 #error Assembler CPP flag not enabled |
c20476d7d7b3
Enabled 3DNow! intrinsic support
Sam Lantinga <slouken@libsdl.org>
parents:
2247
diff
changeset
|
479 #endif |
2247
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
480 ],[ |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
481 ],[ |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
482 have_gcc_sse=yes |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
483 ]) |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
484 AC_MSG_RESULT($have_gcc_sse) |
2290
323a5af2924b
Christian Walther fixed bug #530
Sam Lantinga <slouken@libsdl.org>
parents:
2271
diff
changeset
|
485 CFLAGS="$save_CFLAGS" |
2247
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
486 |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
487 if test x$have_gcc_sse = xyes; then |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
488 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS" |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
489 fi |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
490 fi |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
491 |
2264 | 492 AC_ARG_ENABLE(sse2, |
2856
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
493 AC_HELP_STRING([--enable-sse2], [use SSE2 assembly routines [[default=no]]]), |
c765f5fa4a2c
Default SSE2 off on iX86, since gcc will use it for floating point operations
Sam Lantinga <slouken@libsdl.org>
parents:
2820
diff
changeset
|
494 , enable_sse2=$default_ssemath) |
2264 | 495 if test x$enable_sse2 = xyes; then |
496 save_CFLAGS="$CFLAGS" | |
497 have_gcc_sse2=no | |
498 AC_MSG_CHECKING(for GCC -msse2 option) | |
499 sse2_CFLAGS="-msse2" | |
500 CFLAGS="$save_CFLAGS $sse2_CFLAGS" | |
501 | |
502 AC_TRY_COMPILE([ | |
503 #include <emmintrin.h> | |
504 #ifndef __SSE2__ | |
505 #error Assembler CPP flag not enabled | |
506 #endif | |
507 ],[ | |
508 ],[ | |
509 have_gcc_sse2=yes | |
510 ]) | |
511 AC_MSG_RESULT($have_gcc_sse2) | |
2290
323a5af2924b
Christian Walther fixed bug #530
Sam Lantinga <slouken@libsdl.org>
parents:
2271
diff
changeset
|
512 CFLAGS="$save_CFLAGS" |
2264 | 513 |
514 if test x$have_gcc_sse2 = xyes; then | |
515 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS" | |
516 fi | |
517 fi | |
518 | |
2247
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
519 AC_ARG_ENABLE(altivec, |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
520 AC_HELP_STRING([--enable-altivec], [use Altivec assembly routines [[default=yes]]]), |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
521 , enable_altivec=yes) |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
522 if test x$enable_altivec = xyes; then |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
523 save_CFLAGS="$CFLAGS" |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
524 have_gcc_altivec=no |
3390
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
525 have_altivec_h_hdr=no |
2247
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
526 altivec_CFLAGS="-maltivec" |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
527 CFLAGS="$save_CFLAGS $altivec_CFLAGS" |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
528 |
3390
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
529 AC_MSG_CHECKING(for Altivec with GCC altivec.h and -maltivec option) |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
530 AC_TRY_COMPILE([ |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
531 #include <altivec.h> |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
532 vector unsigned int vzero() { |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
533 return vec_splat_u32(0); |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
534 } |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
535 ],[ |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
536 ],[ |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
537 have_gcc_altivec=yes |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
538 have_altivec_h_hdr=yes |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
539 ]) |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
540 AC_MSG_RESULT($have_gcc_altivec) |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
541 |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
542 if test x$have_gcc_altivec = xno; then |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
543 AC_MSG_CHECKING(for Altivec with GCC -maltivec option) |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
544 AC_TRY_COMPILE([ |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
545 vector unsigned int vzero() { |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
546 return vec_splat_u32(0); |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
547 } |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
548 ],[ |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
549 ],[ |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
550 have_gcc_altivec=yes |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
551 ]) |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
552 AC_MSG_RESULT($have_gcc_altivec) |
2247
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
553 fi |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
554 |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
555 if test x$have_gcc_altivec = xno; then |
3390
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
556 AC_MSG_CHECKING(for Altivec with GCC altivec.h and -faltivec option) |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
557 altivec_CFLAGS="-faltivec" |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
558 CFLAGS="$save_CFLAGS $altivec_CFLAGS" |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
559 AC_TRY_COMPILE([ |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
560 #include <altivec.h> |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
561 vector unsigned int vzero() { |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
562 return vec_splat_u32(0); |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
563 } |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
564 ],[ |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
565 ],[ |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
566 have_gcc_altivec=yes |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
567 have_altivec_h_hdr=yes |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
568 ]) |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
569 AC_MSG_RESULT($have_gcc_altivec) |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
570 fi |
3390
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
571 |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
572 if test x$have_gcc_altivec = xno; then |
2247
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
573 AC_MSG_CHECKING(for Altivec with GCC -faltivec option) |
3390
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
574 AC_TRY_COMPILE([ |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
575 vector unsigned int vzero() { |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
576 return vec_splat_u32(0); |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
577 } |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
578 ],[ |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
579 ],[ |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
580 have_gcc_altivec=yes |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
581 ]) |
802e5d85b90c
Debian patch: 050_altivec_detection.diff
Sam Lantinga <slouken@libsdl.org>
parents:
3388
diff
changeset
|
582 AC_MSG_RESULT($have_gcc_altivec) |
2247
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
583 fi |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
584 CFLAGS="$save_CFLAGS" |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
585 |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
586 if test x$have_gcc_altivec = xyes; then |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
587 AC_DEFINE(SDL_ALTIVEC_BLITTERS) |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
588 if test x$have_altivec_h_hdr = xyes; then |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
589 AC_DEFINE(HAVE_ALTIVEC_H) |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
590 fi |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
591 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS" |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
592 fi |
93994f65c74c
Removed hermes since it's LGPL and not compatible with a commercial license.
Sam Lantinga <slouken@libsdl.org>
parents:
2238
diff
changeset
|
593 fi |
740
e70f80e98f60
Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
594 fi |
0 | 595 |
596 dnl See if the OSS audio interface is supported | |
597 CheckOSS() | |
598 { | |
599 AC_ARG_ENABLE(oss, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
600 AC_HELP_STRING([--enable-oss], [support the OSS audio API [[default=yes]]]), |
0 | 601 , enable_oss=yes) |
602 if test x$enable_audio = xyes -a x$enable_oss = xyes; then | |
603 AC_MSG_CHECKING(for OSS audio support) | |
604 have_oss=no | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
605 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
|
606 AC_TRY_COMPILE([ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
607 #include <sys/soundcard.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
608 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
609 int arg = SNDCTL_DSP_SETFRAGMENT; |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
610 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
611 have_oss=yes |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
612 ]) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
613 fi |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
614 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
|
615 AC_TRY_COMPILE([ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
616 #include <soundcard.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
617 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
618 int arg = SNDCTL_DSP_SETFRAGMENT; |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
619 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
620 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
|
621 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
|
622 ]) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
623 fi |
0 | 624 AC_MSG_RESULT($have_oss) |
625 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
|
626 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
|
627 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
|
628 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
|
629 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
|
630 |
1565 | 631 # We may need to link with ossaudio emulation library |
1550 | 632 case "$host" in |
1383 | 633 *-*-openbsd*|*-*-netbsd*) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
634 EXTRA_LDFLAGS="$EXTRA_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
|
635 esac |
0 | 636 fi |
637 fi | |
638 } | |
639 | |
640 dnl See if the ALSA audio interface is supported | |
641 CheckALSA() | |
642 { | |
643 AC_ARG_ENABLE(alsa, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
644 AC_HELP_STRING([--enable-alsa], [support the ALSA audio API [[default=yes]]]), |
0 | 645 , enable_alsa=yes) |
646 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
|
647 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
|
648 # 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
|
649 CFLAGS="$alsa_save_CFLAGS" |
027688378762
No really, don't link with the ALSA library!
Sam Lantinga <slouken@libsdl.org>
parents:
991
diff
changeset
|
650 LDFLAGS="$alsa_save_LDFLAGS" |
027688378762
No really, don't link with the ALSA library!
Sam Lantinga <slouken@libsdl.org>
parents:
991
diff
changeset
|
651 LIBS="$alsa_save_LIBS" |
354
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
652 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
|
653 AC_ARG_ENABLE(alsa-shared, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
654 AC_HELP_STRING([--enable-alsa-shared], [dynamically load ALSA audio support [[default=yes]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
655 , enable_alsa_shared=yes) |
3391
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
656 alsa_lib=[`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
657 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
658 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
|
659 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
660 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS" |
1361
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_loadso != xyes && \ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
662 test x$enable_alsa_shared = xyes; then |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
663 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ALSA loading]) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
664 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
665 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
|
666 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
667 echo "-- dynamic libasound -> $alsa_lib" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
668 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
|
669 else |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
670 EXTRA_LDFLAGS="$EXTRA_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
|
671 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
672 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
|
673 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
674 fi |
0 | 675 } |
676 | |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
677 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
|
678 CheckDMEDIA() |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
679 { |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
680 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
|
681 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
|
682 have_dmedia=no |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
683 AC_TRY_COMPILE([ |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
684 #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
|
685 ],[ |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
686 ALport audio_port; |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
687 ],[ |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
688 have_dmedia=yes |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
689 ]) |
935
f8d5ddc7aef1
Audio improvements from Max Horn, including a new CoreAudio driver for MacOSX
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
690 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
|
691 # 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
|
692 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
|
693 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
|
694 SOURCES="$SOURCES $srcdir/src/audio/dmedia/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
695 EXTRA_LDFLAGS="$EXTRA_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
|
696 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
|
697 fi |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
698 fi |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
699 } |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
700 |
1438
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
701 dnl Check whether we want to use Tru64 UNIX native audio or not |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
702 CheckMME() |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
703 { |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
704 dnl Make sure we are running on an Tru64 UNIX |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
705 case $ARCH in |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
706 osf) |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
707 ;; |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
708 *) |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
709 return |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
710 ;; |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
711 esac |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
712 if test x$enable_audio = xyes; then |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
713 AC_MSG_CHECKING(for MME audio support) |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
714 MME_CFLAGS="-I/usr/include/mme" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
715 MME_LIBS="-lmme" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
716 have_mme=no |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
717 save_CFLAGS="$CFLAGS" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
718 CFLAGS="$CFLAGS $MME_CFLAGS" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
719 AC_TRY_COMPILE([ |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
720 #include <mme_api.h> |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
721 ],[ |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
722 HWAVEOUT sound; |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
723 ],[ |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
724 have_mme=yes |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
725 ]) |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
726 CFLAGS="$save_CFLAGS" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
727 AC_MSG_RESULT($have_mme) |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
728 # Set up files for the audio library |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
729 if test x$have_mme = xyes; then |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
730 AC_DEFINE(SDL_AUDIO_DRIVER_MMEAUDIO) |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
731 SOURCES="$SOURCES $srcdir/src/audio/mme/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
732 EXTRA_CFLAGS="$EXTRA_CFLAGS $MME_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
733 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MME_LIBS" |
1438
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
734 have_audio=yes |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
735 fi |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
736 fi |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
737 } |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
738 |
0 | 739 dnl Find the ESD includes and libraries |
740 CheckESD() | |
741 { | |
742 AC_ARG_ENABLE(esd, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
743 AC_HELP_STRING([--enable-esd], [support the Enlightened Sound Daemon [[default=yes]]]), |
0 | 744 , enable_esd=yes) |
745 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
|
746 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
|
747 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
|
748 AC_ARG_ENABLE(esd-shared, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
749 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
|
750 , enable_esd_shared=yes) |
3391
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
751 esd_lib=[`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
752 |
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
753 AC_DEFINE(SDL_AUDIO_DRIVER_ESD) |
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
754 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
755 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS" |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
756 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
|
757 test x$enable_esd_shared = xyes; then |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
758 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ESD loading]) |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
759 fi |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
760 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
|
761 test x$enable_esd_shared = xyes && test x$esd_lib != x; then |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
762 echo "-- dynamic libesd -> $esd_lib" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
763 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ESD_DYNAMIC, "$esd_lib") |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
764 else |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
765 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS" |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
766 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
767 have_audio=yes |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
768 fi |
0 | 769 fi |
770 } | |
771 | |
2271
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
772 dnl Find PulseAudio |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
773 CheckPulseAudio() |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
774 { |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
775 AC_ARG_ENABLE(pulseaudio, |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
776 AC_HELP_STRING([--enable-pulseaudio], [use PulseAudio [[default=yes]]]), |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
777 , enable_pulseaudio=yes) |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
778 if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
779 audio_pulseaudio=no |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
780 |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
781 PULSEAUDIO_REQUIRED_VERSION=0.9 |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
782 |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
783 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
784 AC_MSG_CHECKING(for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support) |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
785 if test x$PKG_CONFIG != xno; then |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
786 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
787 PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple` |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
788 PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple` |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
789 audio_pulseaudio=yes |
3391
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
790 fi |
2271
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
791 fi |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
792 AC_MSG_RESULT($audio_pulseaudio) |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
793 |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
794 if test x$audio_pulseaudio = xyes; then |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
795 AC_ARG_ENABLE(pulseaudio-shared, |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
796 AC_HELP_STRING([--enable-pulseaudio-shared], [dynamically load PulseAudio support [[default=yes]]]), |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
797 , enable_pulseaudio_shared=yes) |
3391
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
798 pulseaudio_lib=[`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] |
2271
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
799 |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
800 AC_DEFINE(SDL_AUDIO_DRIVER_PULSEAUDIO) |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
801 SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c" |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
802 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS" |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
803 if test x$have_loadso != xyes && \ |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
804 test x$enable_pulseaudio_shared = xyes; then |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
805 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic PulseAudio loading]) |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
806 fi |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
807 if test x$have_loadso = xyes && \ |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
808 test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
809 echo "-- dynamic libpulse-simple -> $pulseaudio_lib" |
2271
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
810 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC, "$pulseaudio_lib") |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
811 else |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
812 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS" |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
813 fi |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
814 have_audio=yes |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
815 fi |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
816 fi |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
817 } |
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
818 |
0 | 819 CheckARTSC() |
820 { | |
821 AC_ARG_ENABLE(arts, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
822 AC_HELP_STRING([--enable-arts], [support the Analog Real Time Synthesizer [[default=yes]]]), |
0 | 823 , enable_arts=yes) |
824 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
|
825 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
|
826 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then |
0 | 827 : # arts isn't installed |
828 else | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
829 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
|
830 ARTS_LIBS=`$ARTSCONFIG --libs` |
0 | 831 AC_MSG_CHECKING(for aRts development environment) |
832 audio_arts=no | |
833 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
|
834 CFLAGS="$CFLAGS $ARTS_CFLAGS" |
0 | 835 AC_TRY_COMPILE([ |
836 #include <artsc.h> | |
837 ],[ | |
838 arts_stream_t stream; | |
839 ],[ | |
840 audio_arts=yes | |
841 ]) | |
842 CFLAGS="$save_CFLAGS" | |
843 AC_MSG_RESULT($audio_arts) | |
844 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
|
845 AC_ARG_ENABLE(arts-shared, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
846 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
|
847 , enable_arts_shared=yes) |
3391
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
848 arts_lib=[`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
849 |
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
850 AC_DEFINE(SDL_AUDIO_DRIVER_ARTS) |
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
851 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
852 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS" |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
853 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
|
854 test x$enable_arts_shared = xyes; then |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
855 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ARTS loading]) |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
856 fi |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
857 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
|
858 test x$enable_arts_shared = xyes && test x$arts_lib != x; then |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
859 echo "-- dynamic libartsc -> $arts_lib" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
860 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ARTS_DYNAMIC, "$arts_lib") |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
861 else |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
862 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS" |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
863 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
864 have_audio=yes |
0 | 865 fi |
866 fi | |
867 fi | |
868 } | |
869 | |
870 dnl See if the NAS audio interface is supported | |
871 CheckNAS() | |
872 { | |
873 AC_ARG_ENABLE(nas, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
874 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
|
875 , enable_nas=yes) |
0 | 876 if test x$enable_audio = xyes -a x$enable_nas = xyes; then |
2049
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
877 AC_CHECK_HEADER(audio/audiolib.h, have_nas_hdr=yes) |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
878 AC_CHECK_LIB(audio, AuOpenServer, have_nas_lib=yes) |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
879 |
41
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
880 AC_MSG_CHECKING(for NAS audio support) |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
881 have_nas=no |
2049
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
882 |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
883 if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
884 have_nas=yes |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
885 NAS_LIBS="-laudio" |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
886 |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
887 elif test -r /usr/X11R6/include/audio/audiolib.h; then |
41
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
888 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
|
889 NAS_CFLAGS="-I/usr/X11R6/include/" |
1520
5d264facfd03
Add the NAS library directory, since X11 is dynamically loaded now...
Sam Lantinga <slouken@libsdl.org>
parents:
1512
diff
changeset
|
890 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt" |
605
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
891 |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
892 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
|
893 dnl and libnas must be explicitly linked in |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
894 |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
895 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
|
896 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
|
897 NAS_LIBS="-lnas -lXt" |
41
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
898 fi |
2049
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
899 |
605
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
900 AC_MSG_RESULT($have_nas) |
2049
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
901 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
902 if test x$have_nas = xyes; then |
2049
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
903 AC_ARG_ENABLE(nas-shared, |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
904 AC_HELP_STRING([--enable-nas-shared], [dynamically load NAS audio support [[default=yes]]]), |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
905 , enable_nas_shared=yes) |
3391
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
906 nas_lib=[`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] |
2049
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
907 |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
908 if test x$have_loadso != xyes && \ |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
909 test x$enable_nas_shared = xyes; then |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
910 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic NAS loading]) |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
911 fi |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
912 if test x$have_loadso = xyes && \ |
2163
5f96cf74b782
NAS dynamic loading is going to be have to looked at... *sigh*
Sam Lantinga <slouken@libsdl.org>
parents:
2158
diff
changeset
|
913 test x$enable_nas_shared = xyes && test x$nas_lib != x; then |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
914 echo "-- dynamic libaudio -> $nas_lib" |
2049
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
915 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_NAS_DYNAMIC, "$nas_lib") |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
916 else |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
917 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS" |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
918 fi |
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
919 |
1361
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_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
|
921 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
922 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
923 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
|
924 fi |
0 | 925 fi |
926 } | |
927 | |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
928 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
|
929 CheckDiskAudio() |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
930 { |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
931 AC_ARG_ENABLE(diskaudio, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
932 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
|
933 , enable_diskaudio=yes) |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
934 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
|
935 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
|
936 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
|
937 fi |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
938 } |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
939 |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
940 dnl rcg03142006 See if the user wants the dummy audio driver... |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
941 CheckDummyAudio() |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
942 { |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
943 AC_ARG_ENABLE(dummyaudio, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
944 AC_HELP_STRING([--enable-dummyaudio], [support the dummy audio driver [[default=yes]]]), |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
945 , enable_dummyaudio=yes) |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
946 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
947 AC_DEFINE(SDL_AUDIO_DRIVER_DUMMY) |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
948 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c" |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
949 fi |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
950 } |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
951 |
1573
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
952 dnl See if GCC's -fvisibility=hidden is supported (gcc4 and later, usually). |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
953 dnl Details of this flag are here: http://gcc.gnu.org/wiki/Visibility |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
954 CheckVisibilityHidden() |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
955 { |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
956 AC_MSG_CHECKING(for GCC -fvisibility=hidden option) |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
957 have_gcc_fvisibility=no |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
958 |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
959 visibility_CFLAGS="-fvisibility=hidden" |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
960 save_CFLAGS="$CFLAGS" |
2292
4845eb8d4221
Merged -fvisibility detection fix from SDL 1.2 revision 3500
Sam Lantinga <slouken@libsdl.org>
parents:
2290
diff
changeset
|
961 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror" |
1573
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
962 AC_TRY_COMPILE([ |
1745
741dc4e89f3a
Only use -fvisibility=hidden if SDL will define some symbols as available. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1742
diff
changeset
|
963 #if !defined(__GNUC__) || __GNUC__ < 4 |
741dc4e89f3a
Only use -fvisibility=hidden if SDL will define some symbols as available. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1742
diff
changeset
|
964 #error SDL only uses visibility attributes in GCC 4 or newer |
741dc4e89f3a
Only use -fvisibility=hidden if SDL will define some symbols as available. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1742
diff
changeset
|
965 #endif |
1573
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
966 ],[ |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
967 ],[ |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
968 have_gcc_fvisibility=yes |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
969 ]) |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
970 AC_MSG_RESULT($have_gcc_fvisibility) |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
971 CFLAGS="$save_CFLAGS" |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
972 |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
973 if test x$have_gcc_fvisibility = xyes; then |
1574
0fd72308659e
Default to use the visibility attribute, on gcc (is this okay?)
Sam Lantinga <slouken@libsdl.org>
parents:
1573
diff
changeset
|
974 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS" |
1573
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
975 fi |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
976 } |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
977 |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
978 |
0 | 979 dnl Find the X11 include and library directories |
980 CheckX11() | |
981 { | |
982 AC_ARG_ENABLE(video-x11, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
983 AC_HELP_STRING([--enable-video-x11], [use X11 video driver [[default=yes]]]), |
0 | 984 , enable_video_x11=yes) |
985 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then | |
1806
8baf6641cd57
Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
Sam Lantinga <slouken@libsdl.org>
parents:
1799
diff
changeset
|
986 case "$host" in |
1807 | 987 *-*-darwin*) |
988 # This isn't necessary for X11, but fixes GLX detection | |
1808
3e5029051a6d
Only set Mac OS X default if both parameters are left default
Sam Lantinga <slouken@libsdl.org>
parents:
1807
diff
changeset
|
989 if test "x$x_includes" = xNONE && test "x$x_libraries" = xNONE; then |
1806
8baf6641cd57
Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
Sam Lantinga <slouken@libsdl.org>
parents:
1799
diff
changeset
|
990 x_includes="/usr/X11R6/include" |
8baf6641cd57
Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
Sam Lantinga <slouken@libsdl.org>
parents:
1799
diff
changeset
|
991 x_libraries="/usr/X11R6/lib" |
8baf6641cd57
Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
Sam Lantinga <slouken@libsdl.org>
parents:
1799
diff
changeset
|
992 fi |
8baf6641cd57
Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
Sam Lantinga <slouken@libsdl.org>
parents:
1799
diff
changeset
|
993 ;; |
8baf6641cd57
Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
Sam Lantinga <slouken@libsdl.org>
parents:
1799
diff
changeset
|
994 esac |
0 | 995 AC_PATH_X |
996 AC_PATH_XTRA | |
997 if test x$have_x = xyes; then | |
1879
cb232e63552c
Default the X11 dynamically loading on if the OS loader loads libraries
Sam Lantinga <slouken@libsdl.org>
parents:
1875
diff
changeset
|
998 # Only allow dynamically loaded X11 if the X11 function pointers |
cb232e63552c
Default the X11 dynamically loading on if the OS loader loads libraries
Sam Lantinga <slouken@libsdl.org>
parents:
1875
diff
changeset
|
999 # will not end up in the global namespace, which causes problems |
cb232e63552c
Default the X11 dynamically loading on if the OS loader loads libraries
Sam Lantinga <slouken@libsdl.org>
parents:
1875
diff
changeset
|
1000 # with other libraries calling X11 functions. |
cb232e63552c
Default the X11 dynamically loading on if the OS loader loads libraries
Sam Lantinga <slouken@libsdl.org>
parents:
1875
diff
changeset
|
1001 x11_symbols_private=$have_gcc_fvisibility |
cb232e63552c
Default the X11 dynamically loading on if the OS loader loads libraries
Sam Lantinga <slouken@libsdl.org>
parents:
1875
diff
changeset
|
1002 |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
1003 AC_ARG_ENABLE(x11-shared, |
1879
cb232e63552c
Default the X11 dynamically loading on if the OS loader loads libraries
Sam Lantinga <slouken@libsdl.org>
parents:
1875
diff
changeset
|
1004 AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [[default=maybe]]]), |
cb232e63552c
Default the X11 dynamically loading on if the OS loader loads libraries
Sam Lantinga <slouken@libsdl.org>
parents:
1875
diff
changeset
|
1005 , enable_x11_shared=maybe) |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
1006 |
1550 | 1007 case "$host" in |
1589
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1008 *-*-darwin*) # Latest Mac OS X actually ships with Xrandr/Xrender libs... |
1879
cb232e63552c
Default the X11 dynamically loading on if the OS loader loads libraries
Sam Lantinga <slouken@libsdl.org>
parents:
1875
diff
changeset
|
1009 x11_symbols_private=yes |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
1010 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
|
1011 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib' |
1592
802de24df8d9
Lines swapped to match ordering elsewhere
Sam Lantinga <slouken@libsdl.org>
parents:
1589
diff
changeset
|
1012 xrender_lib='/usr/X11R6/lib/libXrender.1.dylib' |
1589
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1013 xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib' |
2763
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1014 xinput_lib='/usr/X11R6/lib/libXi.6.dylib' |
3025
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1015 xss_lib='/usr/X11R6/lib/libXss.6.dylib' |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
1016 ;; |
1384
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
1017 *-*-osf*) |
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
1018 x11_lib='libX11.so' |
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
1019 x11ext_lib='libXext.so' |
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
1020 ;; |
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
1021 *-*-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
|
1022 x11_lib='libX11.so' |
2bf9dda618e5
Corrects dynamic X11 code on Tru64 systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
1251
diff
changeset
|
1023 x11ext_lib='libXext.so' |
2bf9dda618e5
Corrects dynamic X11 code on Tru64 systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
1251
diff
changeset
|
1024 ;; |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
1025 *) |
3391
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
1026 x11_lib=[`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`] |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
1027 x11ext_lib=[`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`] |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
1028 xrender_lib=[`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`] |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
1029 xrandr_lib=[`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`] |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
1030 xinput_lib=[`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`] |
188fc5ecc58c
Simplify and improve dynamic library detection, taken from SDL_image
Sam Lantinga <slouken@libsdl.org>
parents:
3390
diff
changeset
|
1031 xss_lib=[`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`] |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
1032 ;; |
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
1033 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
|
1034 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1035 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
|
1036 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
|
1037 fi |
1799
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1783
diff
changeset
|
1038 CFLAGS="$CFLAGS $X_CFLAGS" |
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1783
diff
changeset
|
1039 LDFLAGS="$LDFLAGS $X_LIBS" |
1468
fecfef92fc94
Don't put X_LIBS in the linker flags if we're dynamically loading X11
Sam Lantinga <slouken@libsdl.org>
parents:
1467
diff
changeset
|
1040 |
fecfef92fc94
Don't put X_LIBS in the linker flags if we're dynamically loading X11
Sam Lantinga <slouken@libsdl.org>
parents:
1467
diff
changeset
|
1041 AC_DEFINE(SDL_VIDEO_DRIVER_X11) |
fecfef92fc94
Don't put X_LIBS in the linker flags if we're dynamically loading X11
Sam Lantinga <slouken@libsdl.org>
parents:
1467
diff
changeset
|
1042 SOURCES="$SOURCES $srcdir/src/video/x11/*.c" |
2185
2032348afed1
This code adds support for DirectColor visuals to SDL 1.3. The support uses part of the Xmu library. To ensure that the library is
Bob Pendleton <bob@pendleton.com>
parents:
2163
diff
changeset
|
1043 SOURCES="$SOURCES $srcdir/src/video/Xext/XmuStdCmap/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1044 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS" |
1879
cb232e63552c
Default the X11 dynamically loading on if the OS loader loads libraries
Sam Lantinga <slouken@libsdl.org>
parents:
1875
diff
changeset
|
1045 |
cb232e63552c
Default the X11 dynamically loading on if the OS loader loads libraries
Sam Lantinga <slouken@libsdl.org>
parents:
1875
diff
changeset
|
1046 if test x$enable_x11_shared = xmaybe; then |
cb232e63552c
Default the X11 dynamically loading on if the OS loader loads libraries
Sam Lantinga <slouken@libsdl.org>
parents:
1875
diff
changeset
|
1047 enable_x11_shared=$x11_symbols_private |
cb232e63552c
Default the X11 dynamically loading on if the OS loader loads libraries
Sam Lantinga <slouken@libsdl.org>
parents:
1875
diff
changeset
|
1048 fi |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
1049 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
|
1050 test x$enable_x11_shared = xyes; then |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
1051 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic X11 loading]) |
1875
4627eca2c02b
Only allow dynamic X11 if gcc4 (-fvisibility=hidden) is used.
Ryan C. Gordon <icculus@icculus.org>
parents:
1871
diff
changeset
|
1052 enable_x11_shared=no |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
1053 fi |
1879
cb232e63552c
Default the X11 dynamically loading on if the OS loader loads libraries
Sam Lantinga <slouken@libsdl.org>
parents:
1875
diff
changeset
|
1054 if test x$x11_symbols_private != xyes && \ |
1875
4627eca2c02b
Only allow dynamic X11 if gcc4 (-fvisibility=hidden) is used.
Ryan C. Gordon <icculus@icculus.org>
parents:
1871
diff
changeset
|
1055 test x$enable_x11_shared = xyes; then |
4627eca2c02b
Only allow dynamic X11 if gcc4 (-fvisibility=hidden) is used.
Ryan C. Gordon <icculus@icculus.org>
parents:
1871
diff
changeset
|
1056 AC_MSG_WARN([You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading]) |
4627eca2c02b
Only allow dynamic X11 if gcc4 (-fvisibility=hidden) is used.
Ryan C. Gordon <icculus@icculus.org>
parents:
1871
diff
changeset
|
1057 enable_x11_shared=no |
4627eca2c02b
Only allow dynamic X11 if gcc4 (-fvisibility=hidden) is used.
Ryan C. Gordon <icculus@icculus.org>
parents:
1871
diff
changeset
|
1058 fi |
4627eca2c02b
Only allow dynamic X11 if gcc4 (-fvisibility=hidden) is used.
Ryan C. Gordon <icculus@icculus.org>
parents:
1871
diff
changeset
|
1059 |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
1060 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
|
1061 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
|
1062 echo "-- dynamic libX11 -> $x11_lib" |
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
1063 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
|
1064 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
|
1065 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
|
1066 else |
1589
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1067 enable_x11_shared=no |
2763
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1068 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext" |
0 | 1069 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1070 have_video=yes |
0 | 1071 |
1072 AC_ARG_ENABLE(video-x11-vm, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1073 AC_HELP_STRING([--enable-video-x11-vm], [use X11 VM extension for fullscreen [[default=yes]]]), |
0 | 1074 , enable_video_x11_vm=yes) |
1075 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
|
1076 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
|
1077 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c" |
0 | 1078 fi |
1079 AC_ARG_ENABLE(video-x11-xv, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1080 AC_HELP_STRING([--enable-video-x11-xv], [use X11 XvImage extension for video [[default=yes]]]), |
0 | 1081 , enable_video_x11_xv=yes) |
1082 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
|
1083 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
|
1084 SOURCES="$SOURCES $srcdir/src/video/Xext/Xv/*.c" |
0 | 1085 fi |
227
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
1086 AC_ARG_ENABLE(video-x11-xinerama, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1087 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
|
1088 , enable_video_x11_xinerama=yes) |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
1089 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
|
1090 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
|
1091 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
|
1092 fi |
1589
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1093 AC_ARG_ENABLE(video-x11-xrandr, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1094 AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [[default=yes]]]), |
1589
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1095 , enable_video_x11_xrandr=yes) |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1096 if test x$enable_video_x11_xrandr = xyes; then |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1097 definitely_enable_video_x11_xrandr=no |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1098 AC_CHECK_HEADER(X11/extensions/Xrandr.h, |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1099 have_xrandr_h_hdr=yes, |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1100 have_xrandr_h_hdr=no, |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1101 [#include <X11/Xlib.h> |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1102 ]) |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1103 if test x$have_xrandr_h_hdr = xyes; then |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1104 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1105 echo "-- dynamic libXrender -> $xrender_lib" |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1106 echo "-- dynamic libXrandr -> $xrandr_lib" |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1107 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER, "$xrender_lib") |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1108 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR, "$xrandr_lib") |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1109 definitely_enable_video_x11_xrandr=yes |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1110 else |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1111 AC_CHECK_LIB(Xrender, XRenderQueryExtension, have_xrender_lib=yes) |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1112 AC_CHECK_LIB(Xrandr, XRRQueryExtension, have_xrandr_lib=yes) |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1113 if test x$have_xrender_lib = xyes && test x$have_xrandr_lib = xyes ; then |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1114 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr -lXrender" |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1115 definitely_enable_video_x11_xrandr=yes |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1116 fi |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1117 fi |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1118 fi |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1119 fi |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1120 if test x$definitely_enable_video_x11_xrandr = xyes; then |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1121 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR) |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
1122 fi |
2763
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1123 AC_ARG_ENABLE(video-x11-xinput, |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1124 AC_HELP_STRING([--enable-video-x11-xinput], [enable X11 XInput extension for manymouse, tablets, etc [[default=yes]]]), |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1125 , enable_video_x11_xinput=yes) |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1126 if test x$enable_video_x11_xinput = xyes; then |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1127 definitely_enable_video_x11_xinput=no |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1128 AC_CHECK_HEADER(X11/extensions/XInput.h, |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1129 have_xinput_h_hdr=yes, |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1130 have_xinput_h_hdr=no, |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1131 [#include <X11/Xlib.h> |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1132 ]) |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1133 if test x$have_xinput_h_hdr = xyes; then |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1134 if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1135 echo "-- dynamic libXi -> $xinput_lib" |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1136 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT, "$xinput_lib") |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1137 definitely_enable_video_x11_xinput=yes |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1138 else |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1139 AC_CHECK_LIB(Xi, XOpenDevice, have_xinput_lib=yes) |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1140 if test x$have_xinput_lib = xyes ; then |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1141 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi" |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1142 definitely_enable_video_x11_xinput=yes |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1143 fi |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1144 fi |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1145 fi |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1146 fi |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1147 if test x$definitely_enable_video_x11_xinput = xyes; then |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1148 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT) |
6fc50bdd88c0
Some cleanups on the new XInput code.
Ryan C. Gordon <icculus@icculus.org>
parents:
2717
diff
changeset
|
1149 fi |
3025
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1150 AC_ARG_ENABLE(video-x11-scrnsaver, |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1151 AC_HELP_STRING([--enable-video-x11-scrnsaver], [enable X11 screensaver extension [[default=yes]]]), |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1152 , enable_video_x11_scrnsaver=yes) |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1153 if test x$enable_video_x11_scrnsaver = xyes; then |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1154 AC_CHECK_HEADER(X11/extensions/scrnsaver.h, |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1155 have_scrnsaver_h_hdr=yes, |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1156 have_scrnsaver_h_hdr=no, |
1783 | 1157 [#include <X11/Xlib.h> |
1158 ]) | |
3025
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1159 if test x$have_scrnsaver_h_hdr = xyes; then |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1160 if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1161 echo "-- dynamic libXss -> $xss_lib" |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1162 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS, "$xss_lib") |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1163 definitely_enable_video_x11_scrnsaver=yes |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1164 else |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1165 AC_CHECK_LIB(Xss, XScreenSaverSuspend, have_xss_lib=yes) |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1166 if test x$have_xss_lib = xyes ; then |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1167 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss" |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1168 definitely_enable_video_x11_scrnsaver=yes |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1169 fi |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1170 fi |
1783 | 1171 fi |
1172 fi | |
3025
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1173 if test x$definitely_enable_video_x11_scrnsaver = xyes; then |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1174 AC_DEFINE(SDL_VIDEO_DRIVER_X11_SCRNSAVER) |
54fac87e1f34
Added an API to enable/disable the screen saver.
Sam Lantinga <slouken@libsdl.org>
parents:
3014
diff
changeset
|
1175 fi |
2810
27cb878a278e
Implemented the X11 (non-OpenGL) renderer, no alpha or scaling available.
Sam Lantinga <slouken@libsdl.org>
parents:
2793
diff
changeset
|
1176 |
27cb878a278e
Implemented the X11 (non-OpenGL) renderer, no alpha or scaling available.
Sam Lantinga <slouken@libsdl.org>
parents:
2793
diff
changeset
|
1177 AC_ARG_ENABLE(render-x11, |
27cb878a278e
Implemented the X11 (non-OpenGL) renderer, no alpha or scaling available.
Sam Lantinga <slouken@libsdl.org>
parents:
2793
diff
changeset
|
1178 AC_HELP_STRING([--enable-render-x11], [enable the X11 render driver [[default=yes]]]), |
27cb878a278e
Implemented the X11 (non-OpenGL) renderer, no alpha or scaling available.
Sam Lantinga <slouken@libsdl.org>
parents:
2793
diff
changeset
|
1179 , enable_render_x11=yes) |
27cb878a278e
Implemented the X11 (non-OpenGL) renderer, no alpha or scaling available.
Sam Lantinga <slouken@libsdl.org>
parents:
2793
diff
changeset
|
1180 if test x$enable_render_x11 = xyes; then |
27cb878a278e
Implemented the X11 (non-OpenGL) renderer, no alpha or scaling available.
Sam Lantinga <slouken@libsdl.org>
parents:
2793
diff
changeset
|
1181 AC_DEFINE(SDL_VIDEO_RENDER_X11) |
27cb878a278e
Implemented the X11 (non-OpenGL) renderer, no alpha or scaling available.
Sam Lantinga <slouken@libsdl.org>
parents:
2793
diff
changeset
|
1182 fi |
0 | 1183 fi |
1184 fi | |
1185 } | |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1186 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1187 dnl Check for QNX photon video driver |
0 | 1188 CheckPHOTON() |
1189 { | |
1190 AC_ARG_ENABLE(video-photon, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1191 AC_HELP_STRING([--enable-video-photon], [use QNX Photon video driver [[default=yes]]]), |
0 | 1192 , enable_video_photon=yes) |
1193 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then | |
1194 AC_MSG_CHECKING(for QNX Photon support) | |
1195 video_photon=no | |
1196 AC_TRY_COMPILE([ | |
1197 #include <Ph.h> | |
1198 #include <Pt.h> | |
1199 #include <photon/Pg.h> | |
1200 #include <photon/PdDirect.h> | |
1201 ],[ | |
1202 PgDisplaySettings_t *visual; | |
1203 ],[ | |
1204 video_photon=yes | |
1205 ]) | |
1206 AC_MSG_RESULT($video_photon) | |
1207 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
|
1208 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
|
1209 SOURCES="$SOURCES $srcdir/src/video/photon/*.c" |
3372
dd11d2376e27
Added phrender library linkage for QNX target.
Mike Gorchak <lestat@i.com.ua>
parents:
3368
diff
changeset
|
1210 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lph -lphrender" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1211 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
|
1212 |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1213 CheckOpenGLQNX |
0 | 1214 fi |
1215 fi | |
1216 } | |
1217 | |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1218 dnl Check for QNX photon video driver |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1219 CheckQNXGF() |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1220 { |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1221 AC_ARG_ENABLE(video-qnxgf, |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1222 AC_HELP_STRING([--enable-video-qnxgf], [use QNX GF video driver [[default=yes]]]), |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1223 , enable_video_qnxgf=yes) |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1224 if test x$enable_video = xyes -a x$enable_video_qnxgf = xyes; then |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1225 AC_MSG_CHECKING(for QNX GF support) |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1226 video_qnxgf=no |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1227 AC_TRY_COMPILE([ |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1228 #include <gf/gf.h> |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1229 #include <gf/gf3d.h> |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1230 ],[ |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1231 gf_3d_config_info_t* gfinfo; |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1232 ],[ |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1233 video_qnxgf=yes |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1234 ]) |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1235 AC_MSG_RESULT($video_qnxgf) |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1236 if test x$video_qnxgf = xyes; then |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1237 AC_DEFINE(SDL_VIDEO_DRIVER_QNXGF) |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1238 SOURCES="$SOURCES $srcdir/src/video/qnxgf/*.c" |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1239 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lgf" |
3113
df2bb5735822
Added hiddi library linkage when GF target is available for QNX
Mike Gorchak <lestat@i.com.ua>
parents:
3104
diff
changeset
|
1240 |
df2bb5735822
Added hiddi library linkage when GF target is available for QNX
Mike Gorchak <lestat@i.com.ua>
parents:
3104
diff
changeset
|
1241 # Add HIDDI library for HID support using GF |
df2bb5735822
Added hiddi library linkage when GF target is available for QNX
Mike Gorchak <lestat@i.com.ua>
parents:
3104
diff
changeset
|
1242 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lhiddi" |
df2bb5735822
Added hiddi library linkage when GF target is available for QNX
Mike Gorchak <lestat@i.com.ua>
parents:
3104
diff
changeset
|
1243 |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1244 have_video=yes |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1245 |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1246 CheckOpenGLESQNX |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1247 fi |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1248 fi |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1249 } |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1250 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1251 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
|
1252 CheckBWINDOW() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1253 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1254 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
|
1255 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
|
1256 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
|
1257 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
|
1258 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1259 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1260 |
1931
103c6fec2a60
The Mac OS X Cocoa video driver is under construction...
Sam Lantinga <slouken@libsdl.org>
parents:
1910
diff
changeset
|
1261 dnl Set up the Cocoa video driver for Mac OS X (but not Darwin) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1262 CheckCOCOA() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1263 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1264 AC_ARG_ENABLE(video-cocoa, |
1931
103c6fec2a60
The Mac OS X Cocoa video driver is under construction...
Sam Lantinga <slouken@libsdl.org>
parents:
1910
diff
changeset
|
1265 AC_HELP_STRING([--enable-video-cocoa], [use Cocoa video driver [[default=yes]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1266 , 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
|
1267 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
|
1268 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
|
1269 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
|
1270 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
|
1271 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
|
1272 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
|
1273 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
|
1274 #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
|
1275 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1276 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1277 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
|
1278 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1279 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
|
1280 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
|
1281 if test x$have_cocoa = xyes; then |
1931
103c6fec2a60
The Mac OS X Cocoa video driver is under construction...
Sam Lantinga <slouken@libsdl.org>
parents:
1910
diff
changeset
|
1282 AC_DEFINE(SDL_VIDEO_DRIVER_COCOA) |
103c6fec2a60
The Mac OS X Cocoa video driver is under construction...
Sam Lantinga <slouken@libsdl.org>
parents:
1910
diff
changeset
|
1283 SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1284 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
|
1285 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1286 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1287 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1288 |
0 | 1289 dnl Find the framebuffer console includes |
1290 CheckFBCON() | |
1291 { | |
1292 AC_ARG_ENABLE(video-fbcon, | |
2021
4ddfbe55e105
Temporarily disabled framebuffer console support for SDL 1.3
Sam Lantinga <slouken@libsdl.org>
parents:
1981
diff
changeset
|
1293 AC_HELP_STRING([--enable-video-fbcon], [use framebuffer console video driver [[default=no]]]), |
4ddfbe55e105
Temporarily disabled framebuffer console support for SDL 1.3
Sam Lantinga <slouken@libsdl.org>
parents:
1981
diff
changeset
|
1294 , enable_video_fbcon=no) |
0 | 1295 if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then |
1296 AC_MSG_CHECKING(for framebuffer console support) | |
1297 video_fbcon=no | |
1298 AC_TRY_COMPILE([ | |
1299 #include <linux/fb.h> | |
1300 #include <linux/kd.h> | |
1301 #include <linux/keyboard.h> | |
1302 ],[ | |
1303 ],[ | |
1304 video_fbcon=yes | |
1305 ]) | |
1306 AC_MSG_RESULT($video_fbcon) | |
1307 if test x$video_fbcon = xyes; then | |
2093
cdaeb26ed66a
Merged r2981:2982 from branches/SDL-1.2: fbcon getpagesize() compile fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
2085
diff
changeset
|
1308 AC_CHECK_FUNCS(getpagesize) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1309 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
|
1310 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
|
1311 have_video=yes |
0 | 1312 fi |
1313 fi | |
1314 } | |
1315 | |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1316 dnl Find DirectFB |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1317 CheckDirectFB() |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1318 { |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1319 AC_ARG_ENABLE(video-directfb, |
2314
33052794de27
Disable DirectFB by default, since it hasn't been updated for the 1.3 API yet.
Sam Lantinga <slouken@libsdl.org>
parents:
2293
diff
changeset
|
1320 AC_HELP_STRING([--enable-video-directfb], [use DirectFB video driver [[default=no]]]), |
33052794de27
Disable DirectFB by default, since it hasn't been updated for the 1.3 API yet.
Sam Lantinga <slouken@libsdl.org>
parents:
2293
diff
changeset
|
1321 , enable_video_directfb=no) |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1322 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
|
1323 video_directfb=no |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1324 |
2998
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1325 DIRECTFB_REQUIRED_VERSION=1.0.0 |
1588
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1326 |
1602
cd97a8e39874
Fixed DirectFB detection
Sam Lantinga <slouken@libsdl.org>
parents:
1601
diff
changeset
|
1327 AC_PATH_PROG(DIRECTFBCONFIG, directfb-config, no) |
cd97a8e39874
Fixed DirectFB detection
Sam Lantinga <slouken@libsdl.org>
parents:
1601
diff
changeset
|
1328 if test x$DIRECTFBCONFIG = xno; then |
1588
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1329 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
1602
cd97a8e39874
Fixed DirectFB detection
Sam Lantinga <slouken@libsdl.org>
parents:
1601
diff
changeset
|
1330 if test x$PKG_CONFIG != xno; then |
cd97a8e39874
Fixed DirectFB detection
Sam Lantinga <slouken@libsdl.org>
parents:
1601
diff
changeset
|
1331 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then |
1588
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1332 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb` |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1333 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb` |
2998
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1334 DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb` |
1588
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1335 video_directfb=yes |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1336 fi |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1337 fi |
1588
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1338 else |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1339 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'` |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1340 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1341 set -- `directfb-config --version | sed 's/\./ /g'` |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1342 HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1343 if test $HAVE_VERSION -ge $NEED_VERSION; then |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1344 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags` |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1345 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs` |
2998
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1346 DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix` |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1347 video_directfb=yes |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1348 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1349 fi |
3351
8e0182c236d8
SuSE 11.1 installs directfb-config without directfb-devel, so check to
Sam Lantinga <slouken@libsdl.org>
parents:
3334
diff
changeset
|
1350 if test x$video_directfb = xyes; then |
8e0182c236d8
SuSE 11.1 installs directfb-config without directfb-devel, so check to
Sam Lantinga <slouken@libsdl.org>
parents:
3334
diff
changeset
|
1351 # SuSE 11.1 installs directfb-config without directfb-devel |
3639
6f4c5b0aba7c
Fix detection of directfb.h
Couriersud <couriersud@arcor.de>
parents:
3623
diff
changeset
|
1352 save_CPPFLAGS="$CPPFLAGS" |
6f4c5b0aba7c
Fix detection of directfb.h
Couriersud <couriersud@arcor.de>
parents:
3623
diff
changeset
|
1353 CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS" |
3351
8e0182c236d8
SuSE 11.1 installs directfb-config without directfb-devel, so check to
Sam Lantinga <slouken@libsdl.org>
parents:
3334
diff
changeset
|
1354 AC_CHECK_HEADER(directfb.h, have_directfb_hdr=yes, have_directfb_hdr=no) |
3639
6f4c5b0aba7c
Fix detection of directfb.h
Couriersud <couriersud@arcor.de>
parents:
3623
diff
changeset
|
1355 CPPFLAGS="$save_CPPFLAGS" |
3351
8e0182c236d8
SuSE 11.1 installs directfb-config without directfb-devel, so check to
Sam Lantinga <slouken@libsdl.org>
parents:
3334
diff
changeset
|
1356 video_directfb=$have_directfb_hdr |
8e0182c236d8
SuSE 11.1 installs directfb-config without directfb-devel, so check to
Sam Lantinga <slouken@libsdl.org>
parents:
3334
diff
changeset
|
1357 fi |
8e0182c236d8
SuSE 11.1 installs directfb-config without directfb-devel, so check to
Sam Lantinga <slouken@libsdl.org>
parents:
3334
diff
changeset
|
1358 AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support) |
8e0182c236d8
SuSE 11.1 installs directfb-config without directfb-devel, so check to
Sam Lantinga <slouken@libsdl.org>
parents:
3334
diff
changeset
|
1359 AC_MSG_RESULT($video_directfb) |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1360 |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1361 if test x$video_directfb = xyes; then |
2998
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1362 AC_ARG_ENABLE(directfb-shared, |
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1363 AC_HELP_STRING([--enable-directfb-shared], [dynamically load directfb support [[default=yes]]]), |
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1364 , enable_directfb_shared=yes) |
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1365 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1366 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
|
1367 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1368 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS" |
2998
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1369 |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1370 AC_MSG_CHECKING(for directfb dynamic loading support) |
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1371 directfb_shared=no |
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1372 directfb_lib=[`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] |
2998
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1373 |
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1374 if test x$have_loadso != xyes && \ |
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1375 test x$enable_directfb_shared = xyes; then |
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1376 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic directfb loading]) |
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1377 fi |
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1378 if test x$have_loadso = xyes && \ |
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1379 test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1380 directfb_shared=yes |
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1381 echo "-- $directfb_lib_spec -> $directfb_lib" |
2998
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1382 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC, "$directfb_lib") |
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1383 else |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1384 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS" |
2998
d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2947
diff
changeset
|
1385 fi |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1386 AC_MSG_RESULT($directfb_shared) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1387 have_video=yes |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1388 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1389 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1390 } |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1391 |
2947
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1392 dnl Find FusionSound |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1393 CheckFusionSound() |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1394 { |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1395 AC_ARG_ENABLE(fusionsound, |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1396 AC_HELP_STRING([--enable-fusionsound], [use FusionSound audio driver [[default=no]]]), |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1397 , enable_fusionsound=no) |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1398 if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1399 fusionsound=no |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1400 |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1401 FUSIONSOUND_REQUIRED_VERSION=1.1.1 |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1402 |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1403 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1404 AC_MSG_CHECKING(for FusionSound $FUSIONSOUND_REQUIRED_VERSION support) |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1405 if test x$PKG_CONFIG != xno; then |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1406 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1407 FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound` |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1408 FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound` |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1409 fusionsound=yes |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1410 fi |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1411 fi |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1412 AC_MSG_RESULT($fusionsound) |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1413 |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1414 if test x$fusionsound = xyes; then |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1415 AC_DEFINE(SDL_AUDIO_DRIVER_FUSIONSOUND) |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1416 SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c" |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1417 EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS" |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1418 |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1419 AC_ARG_ENABLE(fusionsound-shared, |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1420 AC_HELP_STRING([--enable-fusionsound-shared], [dynamically load fusionsound audio support [[default=yes]]]), |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1421 , enable_fusionsound_shared=yes) |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1422 fusionsound_shared=no |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1423 AC_MSG_CHECKING(for FusionSound dynamic loading support) |
2947
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1424 if test x$have_loadso != xyes && \ |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1425 test x$enable_fusionsound_shared = xyes; then |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1426 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic fusionsound loading]) |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1427 fi |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1428 if test x$have_loadso = xyes && \ |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1429 test x$enable_fusionsound_shared = xyes; then |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1430 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC, "libfusionsound.so") |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1431 fusionsound_shared=yes |
2947
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1432 else |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1433 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS" |
2947
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1434 fi |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1435 AC_MSG_RESULT($fusionsound_shared) |
2947
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1436 |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1437 have_audio=yes |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1438 fi |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1439 fi |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1440 } |
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
1441 |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1442 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
|
1443 CheckPS2GS() |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1444 { |
72
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
1445 AC_ARG_ENABLE(video-ps2gs, |
2793
b14f672b2857
RemDisabled some video drivers which are not converted to 1.3 yet
Sam Lantinga <slouken@libsdl.org>
parents:
2775
diff
changeset
|
1446 AC_HELP_STRING([--enable-video-ps2gs], [use PlayStation 2 GS video driver [[default=no]]]), |
b14f672b2857
RemDisabled some video drivers which are not converted to 1.3 yet
Sam Lantinga <slouken@libsdl.org>
parents:
2775
diff
changeset
|
1447 , enable_video_ps2gs=no) |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1448 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
|
1449 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
|
1450 video_ps2gs=no |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1451 AC_TRY_COMPILE([ |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1452 #include <linux/ps2/dev.h> |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1453 #include <linux/ps2/gs.h> |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1454 ],[ |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1455 ],[ |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1456 video_ps2gs=yes |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1457 ]) |
72
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
1458 AC_MSG_RESULT($video_ps2gs) |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1459 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
|
1460 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
|
1461 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
|
1462 have_video=yes |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1463 fi |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1464 fi |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1465 } |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1466 |
3257
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1467 dnl See if we're running on PlayStation 3 Cell hardware |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1468 CheckPS3() |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1469 { |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1470 AC_ARG_ENABLE(video-ps3, |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1471 AC_HELP_STRING([--enable-video-ps3], [use PlayStation 3 Cell driver [[default=yes]]]), |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1472 , enable_video_ps3=yes) |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1473 if test x$enable_video = xyes -a x$enable_video_ps3 = xyes; then |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1474 video_ps3=no |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1475 AC_CHECK_HEADER([linux/fb.h]) |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1476 AC_CHECK_HEADER([asm/ps3fb.h], [have_ps3fb_hdr=yes], [], |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1477 [#ifndef _LINUX_TYPES_H |
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1478 #include <linux/types.h> |
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
1479 #endif]) |
3257
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1480 AC_CHECK_HEADER([libspe2.h], have_libspe2_hdr=yes) |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1481 AC_CHECK_LIB([spe2], spe_context_create, have_spe2_lib=yes) |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1482 |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1483 AC_CHECK_PROGS(SPU_GCC, [spu-gcc]) |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1484 AC_CHECK_PROGS(EMBEDSPU, [embedspu]) |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1485 |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1486 have_spu_libs=yes |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1487 AC_CHECK_LIB([fb_writer_spu], [main], [], [have_spu_libs=no]) |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1488 AC_CHECK_LIB([yuv2rgb_spu], [main], [], [have_spu_libs=no]) |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1489 AC_CHECK_LIB([bilin_scaler_spu], [main], [], [have_spu_libs=no]) |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1490 if test x$have_ps3fb_hdr = xyes -a x$have_libspe2_hdr = xyes -a x$have_spe2_lib = xyes -a "$SPU_GCC" -a "$EMBEDSPU"; then |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1491 AC_DEFINE(SDL_VIDEO_DRIVER_PS3) |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1492 video_ps3=yes |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1493 have_video=yes |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1494 SOURCES="$SOURCES $srcdir/src/video/ps3/*.c" |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1495 EXTRA_CFLAGS="$EXTRA_CFLAGS -I/opt/cell/sdk/usr/include" |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1496 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/cell/sdk/usr/lib -lspe2 -lfb_writer_spu -lyuv2rgb_spu -lbilin_scaler_spu" |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1497 |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1498 if test x$have_spu_libs = xno; then |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1499 AC_MSG_WARN([ps3libs missing, please run make ps3libs]) |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1500 fi |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1501 fi |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1502 AC_MSG_CHECKING([for PlayStation 3 Cell support]) |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1503 AC_MSG_RESULT([$video_ps3]) |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1504 fi |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1505 } |
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
1506 |
0 | 1507 dnl Find the SVGAlib includes and libraries |
1508 CheckSVGA() | |
1509 { | |
1510 AC_ARG_ENABLE(video-svga, | |
2793
b14f672b2857
RemDisabled some video drivers which are not converted to 1.3 yet
Sam Lantinga <slouken@libsdl.org>
parents:
2775
diff
changeset
|
1511 AC_HELP_STRING([--enable-video-svga], [use SVGAlib video driver [[default=no]]]), |
b14f672b2857
RemDisabled some video drivers which are not converted to 1.3 yet
Sam Lantinga <slouken@libsdl.org>
parents:
2775
diff
changeset
|
1512 , enable_video_svga=no) |
0 | 1513 if test x$enable_video = xyes -a x$enable_video_svga = xyes; then |
1514 AC_MSG_CHECKING(for SVGAlib (1.4.0+) support) | |
1515 video_svga=no | |
1516 AC_TRY_COMPILE([ | |
1517 #include <vga.h> | |
1518 #include <vgamouse.h> | |
1519 #include <vgakeyboard.h> | |
1520 ],[ | |
1521 if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) { | |
1522 exit(0); | |
1523 } | |
1524 ],[ | |
1525 video_svga=yes | |
1526 ]) | |
1527 AC_MSG_RESULT($video_svga) | |
1528 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
|
1529 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
|
1530 SOURCES="$SOURCES $srcdir/src/video/svga/*.c" |
1556 | 1531 EXTRA_LDFLAGS="$EXTRA_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
|
1532 have_video=yes |
0 | 1533 fi |
1534 fi | |
1535 } | |
1536 | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1537 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
|
1538 CheckDummyVideo() |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1539 { |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1540 AC_ARG_ENABLE(video-dummy, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1541 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
|
1542 , enable_video_dummy=yes) |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1543 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
|
1544 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
|
1545 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
|
1546 have_video=yes |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1547 fi |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1548 } |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1549 |
0 | 1550 dnl Check to see if OpenGL support is desired |
1551 AC_ARG_ENABLE(video-opengl, | |
1952
420716272158
Implemented X11 OpenGL support.
Sam Lantinga <slouken@libsdl.org>
parents:
1945
diff
changeset
|
1552 AC_HELP_STRING([--enable-video-opengl], [include OpenGL support [[default=yes]]]), |
0 | 1553 , enable_video_opengl=yes) |
1554 | |
1555 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
|
1556 CheckOpenGLX11() |
0 | 1557 { |
1558 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | |
1559 AC_MSG_CHECKING(for OpenGL (GLX) support) | |
1560 video_opengl=no | |
1561 AC_TRY_COMPILE([ | |
1562 #include <GL/gl.h> | |
1563 #include <GL/glx.h> | |
2125
fab12febc0f9
Merge r3079:3080 from branches/SDL-1.2: disable glX if no glu.h header.
Ryan C. Gordon <icculus@icculus.org>
parents:
2112
diff
changeset
|
1564 #include <GL/glu.h> |
0 | 1565 ],[ |
1566 ],[ | |
1567 video_opengl=yes | |
1568 ]) | |
1569 AC_MSG_RESULT($video_opengl) | |
1570 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
|
1571 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
|
1572 AC_DEFINE(SDL_VIDEO_OPENGL_GLX) |
1952
420716272158
Implemented X11 OpenGL support.
Sam Lantinga <slouken@libsdl.org>
parents:
1945
diff
changeset
|
1573 AC_DEFINE(SDL_VIDEO_RENDER_OGL) |
0 | 1574 fi |
1575 fi | |
1576 } | |
1577 | |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1578 dnl Find QNX 6.x Software OpenGL |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1579 CheckOpenGLQNX() |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1580 { |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1581 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1582 AC_MSG_CHECKING(for QNX 6.x Photon OpenGL support) |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1583 video_opengl=no |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1584 AC_TRY_COMPILE([ |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1585 #include <GL/gl.h> |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1586 ],[ |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1587 ],[ |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1588 video_opengl=yes |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1589 ]) |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1590 AC_MSG_RESULT($video_opengl) |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1591 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
|
1592 AC_DEFINE(SDL_VIDEO_OPENGL) |
1952
420716272158
Implemented X11 OpenGL support.
Sam Lantinga <slouken@libsdl.org>
parents:
1945
diff
changeset
|
1593 AC_DEFINE(SDL_VIDEO_RENDER_OGL) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1594 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1595 fi |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1596 fi |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1597 } |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1598 |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1599 dnl Find QNX 6.3 and above OpenGL ES implementation |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1600 CheckOpenGLESQNX() |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1601 { |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1602 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1603 AC_MSG_CHECKING(for QNX OpenGL ES (CM) support) |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1604 video_opengl=no |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1605 AC_TRY_COMPILE([ |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1606 #include <GLES/egl.h> |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1607 ],[ |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1608 ],[ |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1609 video_opengl=yes |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1610 ]) |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1611 AC_MSG_RESULT($video_opengl) |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1612 if test x$video_opengl = xyes; then |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1613 AC_DEFINE(SDL_VIDEO_OPENGL_ES) |
3099
82e60908fab1
Date: Mon, 23 Mar 2009 09:17:24 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3097
diff
changeset
|
1614 AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES) |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1615 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGLES_CM" |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1616 else |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1617 AC_MSG_CHECKING(for QNX OpenGL ES (CL) support) |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1618 video_opengl=no |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1619 AC_TRY_COMPILE([ |
3087
0b6f51c29267
Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3085
diff
changeset
|
1620 #define COMMON_LITE |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1621 #include <GLES/egl.h> |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1622 ],[ |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1623 ],[ |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1624 video_opengl=yes |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1625 ]) |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1626 AC_MSG_RESULT($video_opengl) |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1627 if test x$video_opengl = xyes; then |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1628 AC_DEFINE(SDL_VIDEO_OPENGL_ES) |
3099
82e60908fab1
Date: Mon, 23 Mar 2009 09:17:24 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3097
diff
changeset
|
1629 AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES) |
82e60908fab1
Date: Mon, 23 Mar 2009 09:17:24 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3097
diff
changeset
|
1630 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGLES_CLS" |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1631 fi |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1632 fi |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1633 fi |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1634 } |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1635 |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
1636 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1637 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
|
1638 CheckWIN32GL() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1639 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1640 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
|
1641 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
|
1642 AC_DEFINE(SDL_VIDEO_OPENGL_WGL) |
1952
420716272158
Implemented X11 OpenGL support.
Sam Lantinga <slouken@libsdl.org>
parents:
1945
diff
changeset
|
1643 AC_DEFINE(SDL_VIDEO_RENDER_OGL) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1644 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1645 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1646 |
0 | 1647 dnl Check for BeOS OpenGL |
1648 CheckBeGL() | |
1649 { | |
1650 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
|
1651 AC_DEFINE(SDL_VIDEO_OPENGL) |
1952
420716272158
Implemented X11 OpenGL support.
Sam Lantinga <slouken@libsdl.org>
parents:
1945
diff
changeset
|
1652 AC_DEFINE(SDL_VIDEO_OPENGL_BGL) |
420716272158
Implemented X11 OpenGL support.
Sam Lantinga <slouken@libsdl.org>
parents:
1945
diff
changeset
|
1653 AC_DEFINE(SDL_VIDEO_RENDER_OGL) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1654 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" |
0 | 1655 fi |
1656 } | |
1657 | |
1658 dnl Check for MacOS OpenGL | |
1659 CheckMacGL() | |
1660 { | |
1661 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
|
1662 AC_DEFINE(SDL_VIDEO_OPENGL) |
1952
420716272158
Implemented X11 OpenGL support.
Sam Lantinga <slouken@libsdl.org>
parents:
1945
diff
changeset
|
1663 AC_DEFINE(SDL_VIDEO_OPENGL_CGL) |
420716272158
Implemented X11 OpenGL support.
Sam Lantinga <slouken@libsdl.org>
parents:
1945
diff
changeset
|
1664 AC_DEFINE(SDL_VIDEO_RENDER_OGL) |
1550 | 1665 case "$host" in |
0 | 1666 *-*-darwin*) |
1625 | 1667 if test x$enable_video_cocoa = xyes; then |
3623
9a73fecd9181
Reverted r5460 ... this was merged from 1.2, but was later reverted there.
Ryan C. Gordon <icculus@icculus.org>
parents:
3622
diff
changeset
|
1668 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL" |
1625 | 1669 fi |
0 | 1670 esac |
1671 fi | |
1672 } | |
1673 | |
1674 dnl See if we can use the new unified event interface in Linux 2.4 | |
1675 CheckInputEvents() | |
1676 { | |
1677 dnl Check for Linux 2.4 unified input event interface support | |
1678 AC_ARG_ENABLE(input-events, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1679 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
|
1680 , enable_input_events=yes) |
0 | 1681 if test x$enable_input_events = xyes; then |
1682 AC_MSG_CHECKING(for Linux 2.4 unified input interface) | |
1683 use_input_events=no | |
1684 AC_TRY_COMPILE([ | |
1685 #include <linux/input.h> | |
1686 ],[ | |
1687 #ifndef EVIOCGNAME | |
1688 #error EVIOCGNAME() ioctl not available | |
1689 #endif | |
1690 ],[ | |
1691 use_input_events=yes | |
1692 ]) | |
1693 AC_MSG_RESULT($use_input_events) | |
1694 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
|
1695 AC_DEFINE(SDL_INPUT_LINUXEV) |
0 | 1696 fi |
1697 fi | |
1698 } | |
1699 | |
1201
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1700 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
|
1701 CheckTslib() |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1702 { |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1703 AC_ARG_ENABLE(input-tslib, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1704 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
|
1705 , enable_input_tslib=yes) |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1706 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
|
1707 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
|
1708 enable_input_tslib=no |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1709 AC_TRY_COMPILE([ |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1710 #include "tslib.h" |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1711 ],[ |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1712 ],[ |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1713 enable_input_tslib=yes |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1714 ]) |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1715 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
|
1716 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
|
1717 AC_DEFINE(SDL_INPUT_TSLIB) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1718 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts" |
1201
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1719 fi |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1720 fi |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1721 } |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1722 |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1723 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
|
1724 CheckPTH() |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1725 { |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1726 dnl Check for pth support |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1727 AC_ARG_ENABLE(pth, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1728 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
|
1729 , enable_pth=yes) |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1730 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
|
1731 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
|
1732 if test "$PTH_CONFIG" = "no"; then |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1733 use_pth=no |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1734 else |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1735 use_pth=yes |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1736 fi |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1737 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
|
1738 AC_MSG_RESULT($use_pth) |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1739 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
|
1740 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
|
1741 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
|
1742 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
|
1743 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
|
1744 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
|
1745 have_threads=yes |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1746 fi |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1747 fi |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1748 } |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1749 |
0 | 1750 dnl See what type of thread model to use on Linux and Solaris |
1751 CheckPTHREAD() | |
1752 { | |
1753 dnl Check for pthread support | |
1754 AC_ARG_ENABLE(pthreads, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1755 AC_HELP_STRING([--enable-pthreads], [use POSIX threads for multi-threading [[default=yes]]]), |
0 | 1756 , enable_pthreads=yes) |
1757 dnl This is used on Linux for glibc binary compatibility (Doh!) | |
1758 AC_ARG_ENABLE(pthread-sem, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1759 AC_HELP_STRING([--enable-pthread-sem], [use pthread semaphores [[default=yes]]]), |
0 | 1760 , enable_pthread_sem=yes) |
1550 | 1761 case "$host" in |
1820
133d55b02d51
Date: Thu, 11 May 2006 17:09:17 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1813
diff
changeset
|
1762 *-*-linux*|*-*-uclinux*) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1763 pthread_cflags="-D_REENTRANT" |
1324
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1764 pthread_lib="-lpthread" |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1765 ;; |
0 | 1766 *-*-bsdi*) |
1767 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" | |
1768 pthread_lib="" | |
1769 ;; | |
1770 *-*-darwin*) | |
1771 pthread_cflags="-D_THREAD_SAFE" | |
1772 # causes Carbon.p complaints? | |
1773 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" | |
1774 ;; | |
1565 | 1775 *-*-freebsd*|*-*-dragonfly*) |
0 | 1776 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" |
1777 pthread_lib="-pthread" | |
1778 ;; | |
43
8cc154626be9
I found the pthread package for NetBSD
Sam Lantinga <slouken@lokigames.com>
parents:
42
diff
changeset
|
1779 *-*-netbsd*) |
1383 | 1780 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" |
2158
eff395617ed8
Merged part of NetBSD pkgsrc patch-aj:
Sam Lantinga <slouken@libsdl.org>
parents:
2148
diff
changeset
|
1781 pthread_lib="-lpthread" |
43
8cc154626be9
I found the pthread package for NetBSD
Sam Lantinga <slouken@lokigames.com>
parents:
42
diff
changeset
|
1782 ;; |
0 | 1783 *-*-openbsd*) |
1784 pthread_cflags="-D_REENTRANT" | |
1785 pthread_lib="-pthread" | |
1786 ;; | |
1787 *-*-solaris*) | |
1788 pthread_cflags="-D_REENTRANT" | |
1789 pthread_lib="-lpthread -lposix4" | |
1790 ;; | |
1791 *-*-sysv5*) | |
1792 pthread_cflags="-D_REENTRANT -Kthread" | |
1793 pthread_lib="" | |
1794 ;; | |
1795 *-*-irix*) | |
1796 pthread_cflags="-D_SGI_MP_SOURCE" | |
1797 pthread_lib="-lpthread" | |
1798 ;; | |
1799 *-*-aix*) | |
1800 pthread_cflags="-D_REENTRANT -mthreads" | |
1801 pthread_lib="-lpthread" | |
1802 ;; | |
425
edbbe5775244
Fixed (?) semaphore support on HPUX 11.x ...
Ryan C. Gordon <icculus@icculus.org>
parents:
419
diff
changeset
|
1803 *-*-hpux11*) |
edbbe5775244
Fixed (?) semaphore support on HPUX 11.x ...
Ryan C. Gordon <icculus@icculus.org>
parents:
419
diff
changeset
|
1804 pthread_cflags="-D_REENTRANT" |
edbbe5775244
Fixed (?) semaphore support on HPUX 11.x ...
Ryan C. Gordon <icculus@icculus.org>
parents:
419
diff
changeset
|
1805 pthread_lib="-L/usr/lib -lpthread" |
edbbe5775244
Fixed (?) semaphore support on HPUX 11.x ...
Ryan C. Gordon <icculus@icculus.org>
parents:
419
diff
changeset
|
1806 ;; |
0 | 1807 *-*-qnx*) |
1808 pthread_cflags="" | |
1809 pthread_lib="" | |
1810 ;; | |
873
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1811 *-*-osf*) |
1019
e3b3130f3af8
Date: Fri, 31 Dec 2004 04:14:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1009
diff
changeset
|
1812 pthread_cflags="-D_REENTRANT" |
873
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1813 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
|
1814 pthread_lib="-lpthread -lrt" |
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1815 else |
1019
e3b3130f3af8
Date: Fri, 31 Dec 2004 04:14:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1009
diff
changeset
|
1816 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
|
1817 fi |
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1818 ;; |
0 | 1819 *) |
1820 pthread_cflags="-D_REENTRANT" | |
1821 pthread_lib="-lpthread" | |
1822 ;; | |
1823 esac | |
3268
82ce350be859
Removed outdated iPodLinux support
Sam Lantinga <slouken@libsdl.org>
parents:
3257
diff
changeset
|
1824 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then |
415
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1825 # 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
|
1826 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
|
1827 # 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
|
1828 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
|
1829 # Check to see if we have pthread support on this system |
0 | 1830 AC_MSG_CHECKING(for pthreads) |
1831 use_pthreads=no | |
1832 AC_TRY_LINK([ | |
1833 #include <pthread.h> | |
1834 ],[ | |
1835 pthread_attr_t type; | |
1836 pthread_attr_init(&type); | |
1837 ],[ | |
1838 use_pthreads=yes | |
1839 ]) | |
1840 AC_MSG_RESULT($use_pthreads) | |
415
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1841 # Restore the compiler flags and libraries |
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1842 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
|
1843 |
415
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1844 # Do futher testing if we have pthread support... |
0 | 1845 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
|
1846 AC_DEFINE(SDL_THREAD_PTHREAD) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1847 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1848 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib" |
0 | 1849 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags" |
1850 SDL_LIBS="$SDL_LIBS $pthread_lib" | |
1851 | |
1438
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1852 # Save the original compiler flags and libraries |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1853 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1854 # Add the pthread compiler flags and libraries |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1855 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1856 |
0 | 1857 # Check to see if recursive mutexes are available |
1858 AC_MSG_CHECKING(for recursive mutexes) | |
1859 has_recursive_mutexes=no | |
1324
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1860 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
|
1861 AC_TRY_COMPILE([ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1862 #include <pthread.h> |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1863 ],[ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1864 pthread_mutexattr_t attr; |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1865 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1866 ],[ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1867 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
|
1868 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
|
1869 ]) |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1870 fi |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1871 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
|
1872 AC_TRY_COMPILE([ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1873 #include <pthread.h> |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1874 ],[ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1875 pthread_mutexattr_t attr; |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1876 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
|
1877 ],[ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1878 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
|
1879 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
|
1880 ]) |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1881 fi |
0 | 1882 AC_MSG_RESULT($has_recursive_mutexes) |
1883 | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1884 # 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
|
1885 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
|
1886 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
|
1887 have_pthread_sem=no |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1888 AC_TRY_COMPILE([ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1889 #include <pthread.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1890 #include <semaphore.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1891 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1892 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1893 have_pthread_sem=yes |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1894 ]) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1895 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
|
1896 fi |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1897 |
1438
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1898 # Restore the compiler flags and libraries |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1899 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1900 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1901 # 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
|
1902 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c" |
0 | 1903 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1904 # Semaphores |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1905 # 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
|
1906 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
|
1907 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
|
1908 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1909 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
|
1910 fi |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1911 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1912 # Mutexes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1913 # 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
|
1914 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
|
1915 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1916 # Condition variables |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1917 # 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
|
1918 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
|
1919 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1920 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
|
1921 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1922 CheckPTH |
814
5a417d2a8603
Use sigaction instead of signal to preserve handler flags (thanks Matthew!)
Sam Lantinga <slouken@libsdl.org>
parents:
807
diff
changeset
|
1923 fi |
5a417d2a8603
Use sigaction instead of signal to preserve handler flags (thanks Matthew!)
Sam Lantinga <slouken@libsdl.org>
parents:
807
diff
changeset
|
1924 fi |
5a417d2a8603
Use sigaction instead of signal to preserve handler flags (thanks Matthew!)
Sam Lantinga <slouken@libsdl.org>
parents:
807
diff
changeset
|
1925 } |
5a417d2a8603
Use sigaction instead of signal to preserve handler flags (thanks Matthew!)
Sam Lantinga <slouken@libsdl.org>
parents:
807
diff
changeset
|
1926 |
0 | 1927 dnl Determine whether the compiler can produce Win32 executables |
1928 CheckWIN32() | |
1929 { | |
1930 AC_MSG_CHECKING(Win32 compiler) | |
1931 have_win32_gcc=no | |
1932 AC_TRY_COMPILE([ | |
1933 #include <windows.h> | |
1934 ],[ | |
1935 ],[ | |
1936 have_win32_gcc=yes | |
1937 ]) | |
1938 AC_MSG_RESULT($have_win32_gcc) | |
1939 if test x$have_win32_gcc != xyes; then | |
1940 AC_MSG_ERROR([ | |
1941 *** Your compiler ($CC) does not produce Win32 executables! | |
1942 ]) | |
1943 fi | |
1944 | |
3168 | 1945 AC_MSG_CHECKING(Windows CE) |
1946 have_wince=no | |
1947 AC_TRY_COMPILE([ | |
1948 #ifndef _WIN32_WCE | |
1949 #error This is not Windows CE | |
1950 #endif | |
1951 ],[ | |
1952 ],[ | |
1953 have_wince=yes | |
1954 ]) | |
1955 AC_MSG_RESULT($have_wince) | |
1956 | |
0 | 1957 dnl See if the user wants to redirect standard output to files |
1958 AC_ARG_ENABLE(stdio-redirect, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1959 AC_HELP_STRING([--enable-stdio-redirect], [Redirect STDIO to files on Win32 [[default=yes]]]), |
0 | 1960 , enable_stdio_redirect=yes) |
1961 if test x$enable_stdio_redirect != xyes; then | |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1962 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_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
|
1963 fi |
0 | 1964 } |
1965 | |
1966 dnl Find the DirectX includes and libraries | |
1967 CheckDIRECTX() | |
1968 { | |
1969 AC_ARG_ENABLE(directx, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1970 AC_HELP_STRING([--enable-directx], [use DirectX for Win32 audio/video [[default=yes]]]), |
0 | 1971 , enable_directx=yes) |
1972 if test x$enable_directx = xyes; then | |
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
1973 AC_CHECK_HEADER(d3d9.h, have_d3d=yes) |
3168 | 1974 AC_CHECK_HEADER(ddraw.h, have_ddraw=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1975 AC_CHECK_HEADER(dsound.h, have_dsound=yes) |
2714
1d1be6137875
Merged last minute fixes from force feedback branch (r4031, r4033, r4034)
Sam Lantinga <slouken@libsdl.org>
parents:
2713
diff
changeset
|
1976 AC_CHECK_HEADER(dinput.h, have_dinput=yes) |
1187 | 1977 fi |
1978 } | |
1979 | |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1980 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
|
1981 CheckDLOPEN() |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1982 { |
731
faaa676b20ef
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
724
diff
changeset
|
1983 AC_ARG_ENABLE(sdl-dlopen, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1984 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
|
1985 , enable_sdl_dlopen=yes) |
faaa676b20ef
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
724
diff
changeset
|
1986 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
|
1987 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
|
1988 have_dlopen=no |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1989 AC_TRY_COMPILE([ |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1990 #include <dlfcn.h> |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1991 ],[ |
1638
ebd1aedb1292
Miscellaneous Mac OS X fixes
Sam Lantinga <slouken@libsdl.org>
parents:
1637
diff
changeset
|
1992 #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1020 |
ebd1aedb1292
Miscellaneous Mac OS X fixes
Sam Lantinga <slouken@libsdl.org>
parents:
1637
diff
changeset
|
1993 #error Use dlcompat for Mac OS X 10.2 compatibility |
ebd1aedb1292
Miscellaneous Mac OS X fixes
Sam Lantinga <slouken@libsdl.org>
parents:
1637
diff
changeset
|
1994 #endif |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1995 ],[ |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1996 have_dlopen=yes |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1997 ]) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1998 AC_MSG_RESULT($have_dlopen) |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1999 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2000 if test x$have_dlopen = xyes; then |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2001 AC_CHECK_LIB(c, dlopen, EXTRA_LDFLAGS="$EXTRA_LDFLAGS", |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2002 AC_CHECK_LIB(dl, dlopen, EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl", |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2003 AC_CHECK_LIB(ltdl, dlopen, EXTRA_LDFLAGS="$EXTRA_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
|
2004 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
|
2005 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
|
2006 have_loadso=yes |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
2007 fi |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
2008 fi |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
2009 } |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
2010 |
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
|
2011 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
|
2012 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
|
2013 { |
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
|
2014 if test x$enable_joystick = xyes; then |
1565 | 2015 AC_CHECK_LIB(usbhid, hid_init, have_libusbhid=yes) |
2016 if test x$have_libusbhid = xyes; then | |
2017 AC_CHECK_HEADER(usbhid.h, [USB_CFLAGS="-DHAVE_USBHID_H"]) | |
2018 AC_CHECK_HEADER(libusbhid.h, [USB_CFLAGS="-DHAVE_LIBUSBHID_H"]) | |
2019 USB_LIBS="$USB_LIBS -lusbhid" | |
2020 else | |
2021 AC_CHECK_HEADER(usb.h, [USB_CFLAGS="-DHAVE_USB_H"]) | |
2022 AC_CHECK_HEADER(libusb.h, [USB_CFLAGS="-DHAVE_LIBUSB_H"]) | |
2023 AC_CHECK_LIB(usb, hid_init, [USB_LIBS="$USB_LIBS -lusb"]) | |
2024 fi | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2025 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2026 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
|
2027 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
|
2028 |
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
|
2029 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
|
2030 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
|
2031 AC_TRY_COMPILE([ |
404
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
2032 #include <sys/types.h> |
403
8d431937739d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
402
diff
changeset
|
2033 #if defined(HAVE_USB_H) |
8d431937739d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
402
diff
changeset
|
2034 #include <usb.h> |
8d431937739d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
402
diff
changeset
|
2035 #endif |
1565 | 2036 #ifdef __DragonFly__ |
2037 # include <bus/usb/usb.h> | |
2038 # include <bus/usb/usbhid.h> | |
2039 #else | |
2040 # include <dev/usb/usb.h> | |
2041 # include <dev/usb/usbhid.h> | |
2042 #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
|
2043 #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
|
2044 #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
|
2045 #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
|
2046 #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
|
2047 #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
|
2048 #include <libusbhid.h> |
404
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
2049 #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
|
2050 ],[ |
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
|
2051 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
|
2052 struct usb_ctl_report *repbuf; |
402
7efee6e36f00
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
401
diff
changeset
|
2053 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
|
2054 ],[ |
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
|
2055 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
|
2056 ]) |
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
|
2057 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
|
2058 |
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
|
2059 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
|
2060 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
|
2061 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
|
2062 AC_TRY_COMPILE([ |
404
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
2063 #include <sys/types.h> |
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
2064 #if defined(HAVE_USB_H) |
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
2065 #include <usb.h> |
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
2066 #endif |
1565 | 2067 #ifdef __DragonFly__ |
2068 # include <bus/usb/usb.h> | |
2069 # include <bus/usb/usbhid.h> | |
2070 #else | |
2071 # include <dev/usb/usb.h> | |
2072 # include <dev/usb/usbhid.h> | |
2073 #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
|
2074 #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
|
2075 #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
|
2076 #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
|
2077 #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
|
2078 #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
|
2079 #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
|
2080 #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
|
2081 ],[ |
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
|
2082 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
|
2083 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
|
2084 ],[ |
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
|
2085 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
|
2086 ]) |
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
|
2087 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
|
2088 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
|
2089 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
|
2090 AC_MSG_RESULT($have_usbhid_ucr_data) |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2091 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2092 AC_MSG_CHECKING(for new usbhid API) |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2093 have_usbhid_new=no |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2094 AC_TRY_COMPILE([ |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2095 #include <sys/types.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2096 #if defined(HAVE_USB_H) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2097 #include <usb.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2098 #endif |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
2099 #ifdef __DragonFly__ |
2158
eff395617ed8
Merged part of NetBSD pkgsrc patch-aj:
Sam Lantinga <slouken@libsdl.org>
parents:
2148
diff
changeset
|
2100 #include <bus/usb/usb.h> |
eff395617ed8
Merged part of NetBSD pkgsrc patch-aj:
Sam Lantinga <slouken@libsdl.org>
parents:
2148
diff
changeset
|
2101 #include <bus/usb/usbhid.h> |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
2102 #else |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2103 #include <dev/usb/usb.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2104 #include <dev/usb/usbhid.h> |
3392
efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Sam Lantinga <slouken@libsdl.org>
parents:
3391
diff
changeset
|
2105 #endif |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2106 #if defined(HAVE_USBHID_H) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2107 #include <usbhid.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2108 #elif defined(HAVE_LIBUSB_H) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2109 #include <libusb.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2110 #elif defined(HAVE_LIBUSBHID_H) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2111 #include <libusbhid.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2112 #endif |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2113 ],[ |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2114 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
|
2115 hid_start_parse(d, 1, 1); |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2116 ],[ |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2117 have_usbhid_new=yes |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2118 ]) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2119 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
|
2120 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW" |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2121 fi |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2122 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
|
2123 |
1565 | 2124 AC_MSG_CHECKING(for struct joystick in machine/joystick.h) |
2125 have_machine_joystick=no | |
2126 AC_TRY_COMPILE([ | |
2127 #include <machine/joystick.h> | |
2128 ],[ | |
2129 struct joystick t; | |
2130 ],[ | |
2131 have_machine_joystick=yes | |
2132 ]) | |
2133 if test x$have_machine_joystick = xyes; then | |
2134 AC_DEFINE(SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H) | |
2135 fi | |
2136 AC_MSG_RESULT($have_machine_joystick) | |
2137 | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2138 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
|
2139 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2140 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2141 EXTRA_LDFLAGS="$EXTRA_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
|
2142 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
|
2143 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2144 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
|
2145 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
|
2146 } |
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
|
2147 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2148 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
|
2149 CheckClockGettime() |
795
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
2150 { |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2151 AC_ARG_ENABLE(clock_gettime, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
2152 AC_HELP_STRING([--enable-clock_gettime], [use clock_gettime() instead of gettimeofday() on UNIX [[default=no]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2153 , 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
|
2154 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
|
2155 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
|
2156 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
|
2157 AC_DEFINE(HAVE_CLOCK_GETTIME) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2158 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt" |
3087
0b6f51c29267
Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3085
diff
changeset
|
2159 else |
0b6f51c29267
Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3085
diff
changeset
|
2160 AC_CHECK_LIB(c, clock_gettime, have_clock_gettime=yes) |
0b6f51c29267
Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3085
diff
changeset
|
2161 if test x$have_clock_gettime = xyes; then |
0b6f51c29267
Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3085
diff
changeset
|
2162 AC_DEFINE(HAVE_CLOCK_GETTIME) |
0b6f51c29267
Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3085
diff
changeset
|
2163 EXTRA_LDFLAGS="$EXTRA_LDFLAGS" |
0b6f51c29267
Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3085
diff
changeset
|
2164 fi |
1175
867f521591e5
Fixed Altivec support on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1174
diff
changeset
|
2165 fi |
795
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
2166 fi |
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
2167 } |
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
2168 |
1062
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2169 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
|
2170 CheckLinuxVersion() |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2171 { |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2172 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
|
2173 if test x$have_linux_version_h = xyes; then |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2174 EXTRA_CFLAGS="$EXTRA_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
|
2175 fi |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2176 } |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2177 |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2178 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
|
2179 CheckRPATH() |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2180 { |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2181 AC_ARG_ENABLE(rpath, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
2182 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
|
2183 , enable_rpath=yes) |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2184 } |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2185 |
1550 | 2186 dnl Set up the configuration based on the host platform! |
2187 case "$host" in | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2188 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
|
2189 ARCH=linux |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2190 CheckDummyVideo |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2191 CheckIPod |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2192 # Set up files for the timer library |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
2193 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
|
2194 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
|
2195 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
|
2196 have_timers=yes |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
2197 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2198 ;; |
2775
6d7baec32718
We'd never port SDL to Minix... would we? :)
Sam Lantinga <slouken@libsdl.org>
parents:
2763
diff
changeset
|
2199 *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-irix*|*-*-aix*|*-*-osf*|*-*-minix*) |
1550 | 2200 case "$host" in |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2201 *-*-linux*) ARCH=linux ;; |
1820
133d55b02d51
Date: Thu, 11 May 2006 17:09:17 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1813
diff
changeset
|
2202 *-*-uclinux*) ARCH=linux ;; |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2203 *-*-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
|
2204 *-*-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
|
2205 *-*-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
|
2206 *-*-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
|
2207 *-*-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
|
2208 *-*-freebsd*) ARCH=freebsd ;; |
1565 | 2209 *-*-dragonfly*) ARCH=freebsd ;; |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2210 *-*-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
|
2211 *-*-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
|
2212 *-*-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
|
2213 *-*-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
|
2214 *-*-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
|
2215 *-*-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
|
2216 *-*-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
|
2217 *-*-osf*) ARCH=osf ;; |
2775
6d7baec32718
We'd never port SDL to Minix... would we? :)
Sam Lantinga <slouken@libsdl.org>
parents:
2763
diff
changeset
|
2218 *-*-minix*) ARCH=minix ;; |
795
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
2219 esac |
1573
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
2220 CheckVisibilityHidden |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2221 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2222 CheckDiskAudio |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
2223 CheckDummyAudio |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
2224 CheckDLOPEN |
0 | 2225 CheckOSS |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2226 CheckDMEDIA |
1438
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
2227 CheckMME |
0 | 2228 CheckALSA |
2271
60b4c52a7906
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2264
diff
changeset
|
2229 CheckPulseAudio |
0 | 2230 CheckARTSC |
2231 CheckESD | |
2232 CheckNAS | |
2233 CheckX11 | |
2234 CheckFBCON | |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
2235 CheckDirectFB |
2947
fec0db6c44b7
Date: Thu, 01 Jan 2009 21:32:12 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
2857
diff
changeset
|
2236 CheckFusionSound |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
2237 CheckPS2GS |
3257
94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
Sam Lantinga <slouken@libsdl.org>
parents:
3243
diff
changeset
|
2238 CheckPS3 |
0 | 2239 CheckSVGA |
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
|
2240 CheckOpenGLX11 |
0 | 2241 CheckInputEvents |
1201
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
2242 CheckTslib |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2243 CheckUSBHID |
0 | 2244 CheckPTHREAD |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2245 CheckClockGettime |
1062
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2246 CheckLinuxVersion |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2247 CheckRPATH |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2248 # 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
|
2249 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
|
2250 case $ARCH in |
1565 | 2251 sysv5|solaris|hpux) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2252 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
|
2253 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
|
2254 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
|
2255 ;; |
1565 | 2256 netbsd|openbsd) |
1567
12b6d331d82a
Good idea, renaming OpenBSD audio to BSD audio.
Sam Lantinga <slouken@libsdl.org>
parents:
1566
diff
changeset
|
2257 AC_DEFINE(SDL_AUDIO_DRIVER_BSD) |
12b6d331d82a
Good idea, renaming OpenBSD audio to BSD audio.
Sam Lantinga <slouken@libsdl.org>
parents:
1566
diff
changeset
|
2258 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2259 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
|
2260 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2261 aix) |
2049
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
2262 AC_DEFINE(SDL_AUDIO_DRIVER_PAUDIO) |
1361
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/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
|
2264 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
|
2265 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2266 esac |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
2267 fi |
3199
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
2268 # Set up files for the atomic operations library |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
2269 if test x$enable_atomic = xyes; then |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
2270 case $ARCH in |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
2271 linux) |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
2272 AC_DEFINE(SDL_ATOMIC_LINUX) |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
2273 SOURCES="$SOURCES $srcdir/src/atomic/linux/*.c" |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
2274 have_atomic=yes |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
2275 ;; |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
2276 esac |
3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com>
parents:
3180
diff
changeset
|
2277 fi |
0 | 2278 # Set up files for the joystick library |
2279 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
|
2280 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
|
2281 linux) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2282 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
|
2283 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
|
2284 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
|
2285 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2286 esac |
0 | 2287 fi |
2713
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2288 # Set up files for the haptic library |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2289 if test x$enable_haptic = xyes; then |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2290 if test x$use_input_events = xyes; then |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2291 case $ARCH in |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2292 linux) |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2293 AC_DEFINE(SDL_HAPTIC_LINUX) |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2294 SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c" |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2295 have_haptic=yes |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2296 ;; |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2297 esac |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2298 fi |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2299 fi |
3170
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2300 # Set up files for the power library |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2301 if test x$enable_power = xyes; then |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2302 case $ARCH in |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2303 linux) |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2304 AC_DEFINE(SDL_POWER_LINUX) |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2305 SOURCES="$SOURCES $srcdir/src/power/linux/*.c" |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2306 have_power=yes |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2307 ;; |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2308 esac |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2309 fi |
0 | 2310 # 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
|
2311 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
|
2312 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
|
2313 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
|
2314 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
|
2315 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
|
2316 have_threads=yes |
0 | 2317 fi |
2318 # Set up files for the timer library | |
2319 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
|
2320 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
|
2321 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
|
2322 have_timers=yes |
0 | 2323 fi |
2324 ;; | |
2325 *-*-qnx*) | |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2326 |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2327 EXTRA_CFLAGS="-I/usr/include $CFLAGS" |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2328 EXTRA_LDLAGS="-L/usr/lib $LDFLAGS" |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2329 |
0 | 2330 ARCH=qnx |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2331 CheckVisibilityHidden |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2332 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2333 CheckDiskAudio |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
2334 CheckDummyAudio |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
2335 CheckDLOPEN |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2336 CheckPulseAudio |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2337 CheckESD |
0 | 2338 CheckNAS |
2339 CheckPHOTON | |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2340 CheckQNXGF |
0 | 2341 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
|
2342 CheckOpenGLX11 |
0 | 2343 CheckPTHREAD |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2344 CheckClockGettime |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2345 |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2346 |
0 | 2347 # Set up files for the audio library |
2348 if test x$enable_audio = xyes; then | |
3099
82e60908fab1
Date: Mon, 23 Mar 2009 09:17:24 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3097
diff
changeset
|
2349 AC_DEFINE(SDL_AUDIO_DRIVER_QSA) |
82e60908fab1
Date: Mon, 23 Mar 2009 09:17:24 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3097
diff
changeset
|
2350 SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2351 EXTRA_LDFLAGS="$EXTRA_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
|
2352 have_audio=yes |
0 | 2353 fi |
2354 # Set up files for the timer library | |
2355 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
|
2356 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
|
2357 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
|
2358 have_timers=yes |
0 | 2359 fi |
3217
26ce0b98f2fb
Support for native and emulated atomic operations has been added.
Mike Gorchak <lestat@i.com.ua>
parents:
3214
diff
changeset
|
2360 # Setup files for the atomic operations |
26ce0b98f2fb
Support for native and emulated atomic operations has been added.
Mike Gorchak <lestat@i.com.ua>
parents:
3214
diff
changeset
|
2361 if test x$enable_atomic = xyes; then |
26ce0b98f2fb
Support for native and emulated atomic operations has been added.
Mike Gorchak <lestat@i.com.ua>
parents:
3214
diff
changeset
|
2362 AC_DEFINE(SDL_ATOMIC_QNX) |
26ce0b98f2fb
Support for native and emulated atomic operations has been added.
Mike Gorchak <lestat@i.com.ua>
parents:
3214
diff
changeset
|
2363 SOURCES="$SOURCES $srcdir/src/atomic/qnx/*.c" |
26ce0b98f2fb
Support for native and emulated atomic operations has been added.
Mike Gorchak <lestat@i.com.ua>
parents:
3214
diff
changeset
|
2364 have_atomic=yes |
26ce0b98f2fb
Support for native and emulated atomic operations has been added.
Mike Gorchak <lestat@i.com.ua>
parents:
3214
diff
changeset
|
2365 fi |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2366 # Set up dummy files for the joystick for now |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2367 if test x$enable_joystick = xyes; then |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2368 AC_DEFINE(SDL_JOYSTICK_DUMMY) |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2369 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2370 have_joystick=yes |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2371 fi |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2372 # Set up dummy files for the haptic for now |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2373 if test x$enable_haptic = xyes; then |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2374 AC_DEFINE(SDL_HAPTIC_DUMMY) |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2375 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c" |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2376 have_haptic=yes |
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2377 fi |
0 | 2378 ;; |
3097
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2379 *-wince* | *-mingw32ce) |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2380 ARCH=win32 |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2381 CheckDummyVideo |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2382 CheckDiskAudio |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2383 CheckDummyAudio |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2384 CheckWIN32 |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2385 if test x$enable_video = xyes; then |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2386 AC_DEFINE(SDL_VIDEO_DRIVER_WIN32) |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2387 SOURCES="$SOURCES $srcdir/src/video/win32/*.c" |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2388 have_video=yes |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2389 AC_ARG_ENABLE(render-gdi, |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2390 AC_HELP_STRING([--enable-render-gdi], [enable the GDI render driver [[default=yes]]]), |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2391 , enable_render_gdi=yes) |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2392 if test x$enable_render_gdi = xyes; then |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2393 AC_DEFINE(SDL_VIDEO_RENDER_GDI) |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2394 fi |
3168 | 2395 AC_ARG_ENABLE(render-gapi, |
2396 AC_HELP_STRING([--enable-render-gapi], [enable the GAPI/RAWFRAMEBUFFER render driver [[default=yes]]]), | |
2397 , enable_render_gapi=yes) | |
2398 if test x$enable_render_gapi = xyes -a x$have_wince = xyes; then | |
2399 AC_DEFINE(SDL_VIDEO_RENDER_GAPI) | |
2400 fi | |
2401 AC_ARG_ENABLE(render-ddraw, | |
2402 AC_HELP_STRING([--enable-render-ddraw], [enable the Mobile DirectDraw render driver [[default=yes]]]), | |
2403 , enable_render_ddraw=yes) | |
2404 if test x$enable_render_ddraw = xyes -a x$have_wince = xyes -a x$have_ddraw = xyes; then | |
2405 AC_DEFINE(SDL_VIDEO_RENDER_DDRAW) | |
2406 fi | |
3097
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2407 AC_ARG_ENABLE(render-d3d, |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2408 AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[default=yes]]]), |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2409 , enable_render_d3d=yes) |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2410 enable_render_d3d=no |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2411 if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2412 AC_DEFINE(SDL_VIDEO_RENDER_D3D) |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2413 fi |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2414 fi |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2415 # Set up files for the audio library |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2416 if test x$enable_audio = xyes; then |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2417 AC_DEFINE(SDL_AUDIO_DRIVER_WINWAVEOUT) |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2418 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c" |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2419 if test x$have_dsound = xyes; then |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2420 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND) |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2421 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c" |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2422 fi |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2423 have_audio=yes |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2424 fi |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2425 # Set up files for the thread library |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2426 if test x$enable_threads = xyes; then |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2427 AC_DEFINE(SDL_THREAD_WIN32) |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2428 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c" |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2429 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c" |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2430 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c" |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2431 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2432 have_threads=yes |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2433 fi |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2434 # Set up files for the timer library |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2435 if test x$enable_timers = xyes; then |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2436 AC_DEFINE(SDL_TIMER_WINCE) |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2437 SOURCES="$SOURCES $srcdir/src/timer/wince/*.c" |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2438 have_timers=yes |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2439 fi |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2440 # Set up files for the shared object loading library |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2441 if test x$enable_loadso = xyes; then |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2442 AC_DEFINE(SDL_LOADSO_WIN32) |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2443 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c" |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2444 have_loadso=yes |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2445 fi |
3170
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2446 # Set up files for the system power library |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2447 if test x$enable_power = xyes; then |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2448 AC_DEFINE(SDL_POWER_WINDOWS) |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2449 SOURCES="$SOURCES $srcdir/src/power/windows/*.c" |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2450 have_power=yes |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2451 fi |
3097
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2452 # Set up the system libraries we need |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2453 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl -lmmtimer" |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2454 # The Win32 platform requires special setup |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2455 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c" |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2456 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420" |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2457 SDL_LIBS="-lSDLmain $SDL_LIBS" |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2458 ;; |
0 | 2459 *-*-cygwin* | *-*-mingw32*) |
2460 ARCH=win32 | |
1550 | 2461 if test "$build" != "$host"; then # cross-compiling |
0 | 2462 # Default cross-compile location |
2148
b93d0b4625f6
I'm not sure this is a good idea yet, since it adds a unicows.dll redistribution requirement on windows, but adding unicows allows SDL 1.3 to run on Windows 98.
Sam Lantinga <slouken@libsdl.org>
parents:
2139
diff
changeset
|
2463 ac_default_prefix=/usr/local/cross-tools/i386-mingw32 |
0 | 2464 else |
2465 # 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
|
2466 if test "$BUILD_PREFIX" != ""; then |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2467 ac_default_prefix=$BUILD_PREFIX |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2468 fi |
0 | 2469 fi |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2470 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2471 CheckDiskAudio |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
2472 CheckDummyAudio |
0 | 2473 CheckWIN32 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2474 CheckWIN32GL |
0 | 2475 CheckDIRECTX |
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2476 # Set up files for the video library |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2477 if test x$enable_video = xyes; then |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2478 AC_DEFINE(SDL_VIDEO_DRIVER_WIN32) |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2479 SOURCES="$SOURCES $srcdir/src/video/win32/*.c" |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2480 have_video=yes |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2481 AC_ARG_ENABLE(render-gdi, |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2482 AC_HELP_STRING([--enable-render-gdi], [enable the GDI render driver [[default=yes]]]), |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2483 , enable_render_gdi=yes) |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2484 if test x$enable_render_gdi = xyes; then |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2485 AC_DEFINE(SDL_VIDEO_RENDER_GDI) |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2486 fi |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2487 AC_ARG_ENABLE(render-d3d, |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2488 AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[default=yes]]]), |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2489 , enable_render_d3d=yes) |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2490 if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2491 AC_DEFINE(SDL_VIDEO_RENDER_D3D) |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2492 fi |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2493 fi |
0 | 2494 # Set up files for the audio library |
2495 if test x$enable_audio = xyes; then | |
2070
dbfa1ebd73b0
Fixed building of Windows waveout audio.
Ryan C. Gordon <icculus@icculus.org>
parents:
2066
diff
changeset
|
2496 AC_DEFINE(SDL_AUDIO_DRIVER_WINWAVEOUT) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2497 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c" |
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2498 if test x$have_dsound = 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
|
2499 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
|
2500 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c" |
0 | 2501 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2502 have_audio=yes |
0 | 2503 fi |
3307
6fb7f38d20b6
Changed to include SDL_atomic.c in the windows version of SDL 1.3
Bob Pendleton <bob@pendleton.com>
parents:
3301
diff
changeset
|
2504 # Set up files for the atomic operations library |
6fb7f38d20b6
Changed to include SDL_atomic.c in the windows version of SDL 1.3
Bob Pendleton <bob@pendleton.com>
parents:
3301
diff
changeset
|
2505 if test x$enable_atomic = xyes; then |
6fb7f38d20b6
Changed to include SDL_atomic.c in the windows version of SDL 1.3
Bob Pendleton <bob@pendleton.com>
parents:
3301
diff
changeset
|
2506 AC_DEFINE(SDL_ATOMIC_WIN32) |
6fb7f38d20b6
Changed to include SDL_atomic.c in the windows version of SDL 1.3
Bob Pendleton <bob@pendleton.com>
parents:
3301
diff
changeset
|
2507 SOURCES="$SOURCES $srcdir/src/atomic/win32/*.c" |
6fb7f38d20b6
Changed to include SDL_atomic.c in the windows version of SDL 1.3
Bob Pendleton <bob@pendleton.com>
parents:
3301
diff
changeset
|
2508 have_atomic=yes |
6fb7f38d20b6
Changed to include SDL_atomic.c in the windows version of SDL 1.3
Bob Pendleton <bob@pendleton.com>
parents:
3301
diff
changeset
|
2509 fi |
0 | 2510 # Set up files for the joystick library |
2511 if test x$enable_joystick = xyes; then | |
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2512 if test x$have_dinput = xyes; then |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2513 AC_DEFINE(SDL_JOYSTICK_DINPUT) |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2514 SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_dxjoystick.c" |
2717
50bc882455e5
Merge of force feedback branch r4039.
Edgar Simo <bobbens@gmail.com>
parents:
2714
diff
changeset
|
2515 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8 -lole32" |
1895
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2516 else |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2517 AC_DEFINE(SDL_JOYSTICK_WINMM) |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2518 SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_mmjoystick.c" |
c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents:
1891
diff
changeset
|
2519 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2520 have_joystick=yes |
0 | 2521 fi |
2713
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2522 if test x$enable_haptic = xyes; then |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2523 if test x$have_dinput = xyes; then |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2524 AC_DEFINE(SDL_HAPTIC_DINPUT) |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2525 SOURCES="$SOURCES $srcdir/src/haptic/win32/SDL_syshaptic.c" |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2526 have_haptic=yes |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2527 fi |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2528 fi |
3170
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2529 if test x$enable_power = xyes; then |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2530 AC_DEFINE(SDL_POWER_WINDOWS) |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2531 SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c" |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2532 have_power=yes |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2533 fi |
0 | 2534 # Set up files for the thread library |
2535 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
|
2536 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
|
2537 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
|
2538 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
|
2539 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
|
2540 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
|
2541 have_threads=yes |
0 | 2542 fi |
2543 # Set up files for the timer library | |
2544 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
|
2545 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
|
2546 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
|
2547 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
|
2548 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2549 # 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
|
2550 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
|
2551 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
|
2552 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
|
2553 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
|
2554 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2555 # Set up the system libraries we need |
3082
1c85c44557de
Removed unicows dependency, at least for now...
Sam Lantinga <slouken@libsdl.org>
parents:
3049
diff
changeset
|
2556 # SDL 1.3 is unicode, and unicows emulates this on Windows 98/ME |
1c85c44557de
Removed unicows dependency, at least for now...
Sam Lantinga <slouken@libsdl.org>
parents:
3049
diff
changeset
|
2557 # You can get this here: http://libunicows.sourceforge.net/ |
1c85c44557de
Removed unicows dependency, at least for now...
Sam Lantinga <slouken@libsdl.org>
parents:
3049
diff
changeset
|
2558 #EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lunicows" |
1c85c44557de
Removed unicows dependency, at least for now...
Sam Lantinga <slouken@libsdl.org>
parents:
3049
diff
changeset
|
2559 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lmsimg32 -lwinmm" |
0 | 2560 # The Win32 platform requires special setup |
3334
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2561 VERSION_SOURCES="$srcdir/src/main/win32/*.rc" |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2562 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c" |
0 | 2563 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" |
1363
dc623bb58c9a
Fixed building with cygwin
Sam Lantinga <slouken@libsdl.org>
parents:
1361
diff
changeset
|
2564 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows" |
0 | 2565 ;; |
3292 | 2566 *-*-beos* | *-*-haiku*) |
0 | 2567 ARCH=beos |
2568 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
|
2569 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2570 CheckDiskAudio |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
2571 CheckDummyAudio |
0 | 2572 CheckBWINDOW |
2573 CheckBeGL | |
2574 # Set up files for the audio library | |
2575 if test x$enable_audio = xyes; then | |
2049
5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
Ryan C. Gordon <icculus@icculus.org>
parents:
2040
diff
changeset
|
2576 AC_DEFINE(SDL_AUDIO_DRIVER_BEOSAUDIO) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2577 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
|
2578 have_audio=yes |
0 | 2579 fi |
2580 # Set up files for the joystick library | |
2581 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
|
2582 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
|
2583 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
|
2584 have_joystick=yes |
0 | 2585 fi |
2586 # Set up files for the thread library | |
2587 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
|
2588 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
|
2589 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
|
2590 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
|
2591 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
|
2592 have_threads=yes |
0 | 2593 fi |
2594 # Set up files for the timer library | |
2595 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
|
2596 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
|
2597 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
|
2598 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
|
2599 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2600 # 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
|
2601 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
|
2602 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
|
2603 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
|
2604 have_loadso=yes |
0 | 2605 fi |
3173
510e3f36c04a
BeOS support for power subsystem.
Ryan C. Gordon <icculus@icculus.org>
parents:
3170
diff
changeset
|
2606 # Set up files for the system power library |
510e3f36c04a
BeOS support for power subsystem.
Ryan C. Gordon <icculus@icculus.org>
parents:
3170
diff
changeset
|
2607 if test x$enable_power = xyes; then |
510e3f36c04a
BeOS support for power subsystem.
Ryan C. Gordon <icculus@icculus.org>
parents:
3170
diff
changeset
|
2608 AC_DEFINE(SDL_POWER_BEOS) |
510e3f36c04a
BeOS support for power subsystem.
Ryan C. Gordon <icculus@icculus.org>
parents:
3170
diff
changeset
|
2609 SOURCES="$SOURCES $srcdir/src/power/beos/*.c" |
510e3f36c04a
BeOS support for power subsystem.
Ryan C. Gordon <icculus@icculus.org>
parents:
3170
diff
changeset
|
2610 have_power=yes |
510e3f36c04a
BeOS support for power subsystem.
Ryan C. Gordon <icculus@icculus.org>
parents:
3170
diff
changeset
|
2611 fi |
1367
e440d5c488c1
Fixes for BeOS and Solaris builds
Sam Lantinga <slouken@libsdl.org>
parents:
1366
diff
changeset
|
2612 # The BeOS platform requires special setup. |
e440d5c488c1
Fixes for BeOS and Solaris builds
Sam Lantinga <slouken@libsdl.org>
parents:
1366
diff
changeset
|
2613 SOURCES="$srcdir/src/main/beos/*.cc $SOURCES" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2614 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding" |
0 | 2615 ;; |
2616 *-*-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
|
2617 # 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
|
2618 # 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
|
2619 # 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
|
2620 ARCH=macosx |
1624 | 2621 |
1628 | 2622 # Mac OS X builds with both the Carbon and OSX APIs at the moment |
1638
ebd1aedb1292
Miscellaneous Mac OS X fixes
Sam Lantinga <slouken@libsdl.org>
parents:
1637
diff
changeset
|
2623 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON" |
ebd1aedb1292
Miscellaneous Mac OS X fixes
Sam Lantinga <slouken@libsdl.org>
parents:
1637
diff
changeset
|
2624 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX" |
1628 | 2625 |
2626 # HACK: Reset EXTRA_LDFLAGS; the only thing it contains at this point | |
2627 # is -lm which is not needed under Mac OS X. But for some reasons it | |
2628 # also tends to contain spurious -L switches, which we don't want to | |
2629 # use here or in sdl-config. Hence we reset it. | |
1624 | 2630 EXTRA_LDFLAGS="" |
2631 | |
1742
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
2632 CheckVisibilityHidden |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2633 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2634 CheckDiskAudio |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
2635 CheckDummyAudio |
1638
ebd1aedb1292
Miscellaneous Mac OS X fixes
Sam Lantinga <slouken@libsdl.org>
parents:
1637
diff
changeset
|
2636 CheckDLOPEN |
1889
5225a9cc25a2
Almost added Mac OS X nasm support
Sam Lantinga <slouken@libsdl.org>
parents:
1886
diff
changeset
|
2637 |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2638 # Set up files for the shared object loading library |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2639 # (this needs to be done before the dynamic X11 check) |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2640 if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2641 AC_DEFINE(SDL_LOADSO_DLCOMPAT) |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2642 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c" |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2643 have_loadso=yes |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2644 fi |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2645 |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2646 CheckCOCOA |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
2647 CheckX11 |
0 | 2648 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
|
2649 CheckOpenGLX11 |
0 | 2650 CheckPTHREAD |
1445
0133f0ca5de7
Need this or things might misbuild on G3 Mac OS, I think.
Ryan C. Gordon <icculus@icculus.org>
parents:
1438
diff
changeset
|
2651 |
2238 | 2652 # Good optimization on Mac OS X, yes... |
2653 EXTRA_CFLAGS="$EXTRA_CFLAGS -falign-loops=16" | |
2654 | |
1445
0133f0ca5de7
Need this or things might misbuild on G3 Mac OS, I think.
Ryan C. Gordon <icculus@icculus.org>
parents:
1438
diff
changeset
|
2655 # Need this or things might misbuild on a G3. |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2656 EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL" |
1445
0133f0ca5de7
Need this or things might misbuild on G3 Mac OS, I think.
Ryan C. Gordon <icculus@icculus.org>
parents:
1438
diff
changeset
|
2657 |
0 | 2658 # Set up files for the audio library |
2659 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
|
2660 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
|
2661 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
|
2662 have_audio=yes |
0 | 2663 fi |
3214
5625ba0a1e25
Applied patch from bug id=762 provided by Pierre Phaneuf
Bob Pendleton <bob@pendleton.com>
parents:
3199
diff
changeset
|
2664 # Set up files for the atomic operations library |
5625ba0a1e25
Applied patch from bug id=762 provided by Pierre Phaneuf
Bob Pendleton <bob@pendleton.com>
parents:
3199
diff
changeset
|
2665 if test x$enable_atomic = xyes; then |
5625ba0a1e25
Applied patch from bug id=762 provided by Pierre Phaneuf
Bob Pendleton <bob@pendleton.com>
parents:
3199
diff
changeset
|
2666 AC_DEFINE(SDL_ATOMIC_MACOSX) |
5625ba0a1e25
Applied patch from bug id=762 provided by Pierre Phaneuf
Bob Pendleton <bob@pendleton.com>
parents:
3199
diff
changeset
|
2667 SOURCES="$SOURCES $srcdir/src/atomic/macosx/*.c" |
5625ba0a1e25
Applied patch from bug id=762 provided by Pierre Phaneuf
Bob Pendleton <bob@pendleton.com>
parents:
3199
diff
changeset
|
2668 have_atomic=yes |
5625ba0a1e25
Applied patch from bug id=762 provided by Pierre Phaneuf
Bob Pendleton <bob@pendleton.com>
parents:
3199
diff
changeset
|
2669 fi |
0 | 2670 # Set up files for the joystick library |
2671 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
|
2672 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
|
2673 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2674 have_joystick=yes |
0 | 2675 fi |
2713
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2676 # Set up files for the haptic library |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2677 if test x$enable_haptic = xyes; then |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2678 AC_DEFINE(SDL_HAPTIC_IOKIT) |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2679 SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c" |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2680 have_haptic=yes |
3623
9a73fecd9181
Reverted r5460 ... this was merged from 1.2, but was later reverted there.
Ryan C. Gordon <icculus@icculus.org>
parents:
3622
diff
changeset
|
2681 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback" |
2713
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2682 fi |
3170
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2683 # Set up files for the power library |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2684 if test x$enable_power = xyes; then |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2685 AC_DEFINE(SDL_POWER_MACOSX) |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2686 SOURCES="$SOURCES $srcdir/src/power/macosx/*.c" |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2687 have_power=yes |
b7a48f533966
Initial work on power subsystem for SDL 1.3.
Ryan C. Gordon <icculus@icculus.org>
parents:
3168
diff
changeset
|
2688 fi |
0 | 2689 # Set up files for the timer library |
2690 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
|
2691 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
|
2692 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
|
2693 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
|
2694 fi |
1621 | 2695 # The Mac OS X platform requires special setup. |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2696 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings" |
3049
ed67e93944b1
More Mac OS X 10.3.9 fixes
Sam Lantinga <slouken@libsdl.org>
parents:
3032
diff
changeset
|
2697 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc" |
3623
9a73fecd9181
Reverted r5460 ... this was merged from 1.2, but was later reverted there.
Ryan C. Gordon <icculus@icculus.org>
parents:
3622
diff
changeset
|
2698 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa" |
9a73fecd9181
Reverted r5460 ... this was merged from 1.2, but was later reverted there.
Ryan C. Gordon <icculus@icculus.org>
parents:
3622
diff
changeset
|
2699 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon" |
9a73fecd9181
Reverted r5460 ... this was merged from 1.2, but was later reverted there.
Ryan C. Gordon <icculus@icculus.org>
parents:
3622
diff
changeset
|
2700 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit" |
3621
2fbe6995b2a2
Made the comment more readable
Sam Lantinga <slouken@libsdl.org>
parents:
3619
diff
changeset
|
2701 # If audio is used, add the AudioUnit framework |
3243
5db962a9a991
CD-ROM support is so passé :)
Sam Lantinga <slouken@libsdl.org>
parents:
3242
diff
changeset
|
2702 if test x$enable_audio = xyes; then |
3623
9a73fecd9181
Reverted r5460 ... this was merged from 1.2, but was later reverted there.
Ryan C. Gordon <icculus@icculus.org>
parents:
3622
diff
changeset
|
2703 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-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
|
2704 fi |
0 | 2705 ;; |
1035
974ba6ae0fa3
Date: Wed, 26 Jan 2005 13:37:09 GMT
Sam Lantinga <slouken@libsdl.org>
parents:
1024
diff
changeset
|
2706 *-riscos) |
687
91400ecf307d
Date: Mon, 11 Aug 2003 22:49:06 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
684
diff
changeset
|
2707 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
|
2708 CheckOSS |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2709 CheckPTHREAD |
955
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2710 # 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
|
2711 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
|
2712 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
|
2713 SOURCES="$SOURCES $srcdir/src/video/riscos/*.c" |
1459
1e8582152d44
Date: Wed, 01 Mar 2006 10:14:31 +0000
Sam Lantinga <slouken@libsdl.org>
parents:
1456
diff
changeset
|
2714 SOURCES="$SOURCES $srcdir/src/video/riscos/*.S" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2715 have_video=yes |
955
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2716 fi |
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2717 # 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
|
2718 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
|
2719 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
|
2720 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
|
2721 have_joystick=yes |
955
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2722 fi |
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2723 # 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
|
2724 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
|
2725 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
|
2726 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
|
2727 have_timers=yes |
955
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2728 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2729 # The RISC OS platform requires special setup. |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2730 EXTRA_LDFLAGS="$EXTRA_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
|
2731 ;; |
0 | 2732 *) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2733 AC_MSG_ERROR([ |
1550 | 2734 *** Unsupported host: Please add to configure.in |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2735 ]) |
0 | 2736 ;; |
2737 esac | |
2738 | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2739 # Verify that we have all the platform specific files we need |
2066
8f8066b84b3e
Use dummy joystick backend if subsystem is enabled but no better driver was
Ryan C. Gordon <icculus@icculus.org>
parents:
2049
diff
changeset
|
2740 |
3104
86ea6c073d87
Fixed undefined references to joystick code
Sam Lantinga <slouken@libsdl.org>
parents:
3099
diff
changeset
|
2741 if test x$have_joystick != xyes; then |
86ea6c073d87
Fixed undefined references to joystick code
Sam Lantinga <slouken@libsdl.org>
parents:
3099
diff
changeset
|
2742 if test x$enable_joystick = xyes; then |
3097
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2743 AC_DEFINE(SDL_JOYSTICK_DISABLED) |
0d12e8f1de3c
Date: Thu, 05 Feb 2009 18:07:35 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
3087
diff
changeset
|
2744 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2745 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
|
2746 fi |
2713
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2747 if test x$have_haptic != xyes; then |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2748 if test x$enable_haptic = xyes; then |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2749 AC_DEFINE(SDL_HAPTIC_DISABLED) |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2750 fi |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2751 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c" |
0906692aa6a4
Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents:
2710
diff
changeset
|
2752 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2753 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
|
2754 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
|
2755 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
|
2756 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2757 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
|
2758 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2759 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
|
2760 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
|
2761 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
|
2762 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2763 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
|
2764 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2765 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
|
2766 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
|
2767 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
|
2768 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2769 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
|
2770 fi |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2771 if test x$SDLMAIN_SOURCES = x; then |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2772 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c" |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2773 fi |
0 | 2774 |
3334
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2775 OBJECTS=`echo $SOURCES` |
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2776 DEPENDS=`echo $SOURCES` |
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2777 for EXT in asm cc m c S; do |
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2778 OBJECTS=`echo "$OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.'$EXT',$(objects)/\1.lo,g'` |
3415 | 2779 DEPENDS=`echo "$DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.$EXT,\\\\ |
2780 \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\ | |
2781 \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` | |
3334
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2782 done |
0 | 2783 |
3334
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2784 VERSION_OBJECTS=`echo $VERSION_SOURCES` |
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2785 VERSION_DEPENDS=`echo $VERSION_SOURCES` |
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2786 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'` |
3415 | 2787 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.rc,\\\\ |
2788 \\$(objects)/\\2.o: \\1/\\2.rc\\\\ | |
2789 \\$(WINDRES) \\$< \\$@,g"` | |
3334
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2790 |
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2791 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES` |
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2792 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES` |
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2793 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'` |
3415 | 2794 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\ |
2795 \\$(objects)/\\2.o: \\1/\\2.c\\\\ | |
2796 \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` | |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2797 |
0 | 2798 # Set runtime shared library paths as needed |
2799 | |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2800 if test "x$enable_rpath" = "xyes"; then |
1565 | 2801 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then |
2040 | 2802 SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}" |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2803 fi |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2804 if test $ARCH = solaris; then |
2040 | 2805 SDL_RLD_FLAGS="-R\${libdir}" |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2806 fi |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2807 else |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2808 SDL_RLD_FLAGS="" |
0 | 2809 fi |
387
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2810 |
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2811 case "$ARCH" in |
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2812 macosx) |
807
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2813 # Evil hack to allow static linking on Mac OS X |
2040 | 2814 SDL_STATIC_LIBS="\${libdir}/libSDL.a $EXTRA_LDFLAGS" |
807
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2815 ;; |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2816 *) |
2293
824f6dee6648
Merged fix for bug #531 from SDL 1.2 revision 3511
Sam Lantinga <slouken@libsdl.org>
parents:
2292
diff
changeset
|
2817 SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS" |
807
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2818 ;; |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2819 esac |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2820 |
0 | 2821 dnl Expand the cflags and libraries needed by apps using SDL |
2822 AC_SUBST(SDL_CFLAGS) | |
2823 AC_SUBST(SDL_LIBS) | |
807
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2824 AC_SUBST(SDL_STATIC_LIBS) |
0 | 2825 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
|
2826 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
|
2827 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
|
2828 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
|
2829 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2830 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
|
2831 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
|
2832 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2833 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
|
2834 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
|
2835 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
|
2836 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2837 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
|
2838 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
|
2839 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2840 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
|
2841 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
|
2842 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
|
2843 AC_SUBST(ENABLE_STATIC_FALSE) |
0 | 2844 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2845 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
|
2846 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
|
2847 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
|
2848 AC_SUBST(OBJECTS) |
3334
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2849 AC_SUBST(DEPENDS) |
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2850 AC_SUBST(VERSION_OBJECTS) |
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2851 AC_SUBST(VERSION_DEPENDS) |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2852 AC_SUBST(SDLMAIN_OBJECTS) |
3334
61ea9005fddf
Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga <slouken@libsdl.org>
parents:
3332
diff
changeset
|
2853 AC_SUBST(SDLMAIN_DEPENDS) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2854 AC_SUBST(BUILD_CFLAGS) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2855 AC_SUBST(EXTRA_CFLAGS) |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
2856 AC_SUBST(BUILD_LDFLAGS) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2857 AC_SUBST(EXTRA_LDFLAGS) |
2204
9f64d06fa168
Added support for building version.rc in Windows build.
Sam Lantinga <slouken@libsdl.org>
parents:
2185
diff
changeset
|
2858 AC_SUBST(WINDRES) |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2859 |
0 | 2860 AC_OUTPUT([ |
3083
0bc41e0361d3
Date: Mon, 2 Mar 2009 16:27:42 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
3082
diff
changeset
|
2861 Makefile sdl-config SDL.spec sdl.pc |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2862 ]) |