Skip to content
This repository
Browse code

remove sdl tests files

  • Loading branch information...
commit ba638deb45794af8cb5409bb2de9de0a47af6500 1 parent 48fe074
Mathieu Virbel authored December 24, 2012

Showing 196 changed files with 0 additions and 59,207 deletions. Show diff stats Hide diff stats

  1. 3  src/SDL/test/.gdbinit
  2. 8  src/SDL/test/COPYING
  3. 199  src/SDL/test/Makefile.in
  4. 27  src/SDL/test/README
  5. 359  src/SDL/test/acinclude.m4
  6. 359  src/SDL/test/aclocal.m4
  7. 12  src/SDL/test/autogen.sh
  8. 60  src/SDL/test/automated/Makefile
  9. 59  src/SDL/test/automated/README
  10. 331  src/SDL/test/automated/SDL_at.c
  11. 158  src/SDL/test/automated/SDL_at.h
  12. 89  src/SDL/test/automated/audio/audio.c
  13. 18  src/SDL/test/automated/audio/audio.h
  14. 110  src/SDL/test/automated/common/common.c
  15. 42  src/SDL/test/automated/common/common.h
  16. 22  src/SDL/test/automated/common/images.h
  17. 1,454  src/SDL/test/automated/common/img_blit.c
  18. 2,690  src/SDL/test/automated/common/img_blitblend.c
  19. 196  src/SDL/test/automated/common/img_face.c
  20. 463  src/SDL/test/automated/common/img_primitives.c
  21. 645  src/SDL/test/automated/common/img_primitivesblend.c
  22. 169  src/SDL/test/automated/platform/platform.c
  23. 18  src/SDL/test/automated/platform/platform.h
  24. 156  src/SDL/test/automated/rect/rect.c
  25. 18  src/SDL/test/automated/rect/rect.h
  26. 1,082  src/SDL/test/automated/render/render.c
  27. 18  src/SDL/test/automated/render/render.h
  28. 14  src/SDL/test/automated/rwops/TestSupportRWops.h
  29. 89  src/SDL/test/automated/rwops/TestSupportRWops_Cocoa.m
  30. 32  src/SDL/test/automated/rwops/TestSupportRWops_Generic.c
  31. 1  src/SDL/test/automated/rwops/read
  32. 272  src/SDL/test/automated/rwops/rwops.c
  33. 18  src/SDL/test/automated/rwops/rwops.h
  34. 449  src/SDL/test/automated/surface/surface.c
  35. 18  src/SDL/test/automated/surface/surface.h
  36. 185  src/SDL/test/automated/testsdl.c
  37. 200  src/SDL/test/checkkeys.c
  38. 1,245  src/SDL/test/common.c
  39. 92  src/SDL/test/common.h
  40. 5,057  src/SDL/test/configure
  41. 164  src/SDL/test/configure.in
  42. 110  src/SDL/test/gcc-fat.sh
  43. BIN  src/SDL/test/icon.bmp
  44. 128  src/SDL/test/loopwave.c
  45. BIN  src/SDL/test/moose.dat
  46. 7  src/SDL/test/nds-test-progs/Makefile
  47. 131  src/SDL/test/nds-test-progs/general/Makefile
  48. 89  src/SDL/test/nds-test-progs/general/source/main.c
  49. 147  src/SDL/test/nds-test-progs/testscale/Makefile
  50. 152  src/SDL/test/nds-test-progs/testsprite2/Makefile
  51. 147  src/SDL/test/nds-test-progs/testspriteminimal/Makefile
  52. 14  src/SDL/test/picture.xbm
  53. BIN  src/SDL/test/sample.bmp
  54. BIN  src/SDL/test/sample.wav
  55. BIN  src/SDL/test/shapes/p01_shape24.bmp
  56. BIN  src/SDL/test/shapes/p01_shape32alpha.bmp
  57. BIN  src/SDL/test/shapes/p01_shape8.bmp
  58. BIN  src/SDL/test/shapes/p02_shape24.bmp
  59. BIN  src/SDL/test/shapes/p02_shape32alpha.bmp
  60. BIN  src/SDL/test/shapes/p02_shape8.bmp
  61. BIN  src/SDL/test/shapes/p03_shape24.bmp
  62. BIN  src/SDL/test/shapes/p03_shape8.bmp
  63. BIN  src/SDL/test/shapes/p04_shape1.bmp
  64. BIN  src/SDL/test/shapes/p04_shape24.bmp
  65. BIN  src/SDL/test/shapes/p04_shape32alpha.bmp
  66. BIN  src/SDL/test/shapes/p04_shape8.bmp
  67. BIN  src/SDL/test/shapes/p05_shape8.bmp
  68. BIN  src/SDL/test/shapes/p06_shape1alpha.bmp
  69. BIN  src/SDL/test/shapes/p06_shape24.bmp
  70. BIN  src/SDL/test/shapes/p06_shape32alpha.bmp
  71. BIN  src/SDL/test/shapes/p06_shape8.bmp
  72. BIN  src/SDL/test/shapes/p07_shape24.bmp
  73. BIN  src/SDL/test/shapes/p07_shape32alpha.bmp
  74. BIN  src/SDL/test/shapes/p07_shape8.bmp
  75. BIN  src/SDL/test/shapes/p08_shape24.bmp
  76. BIN  src/SDL/test/shapes/p08_shape32alpha.bmp
  77. BIN  src/SDL/test/shapes/p08_shape8.bmp
  78. BIN  src/SDL/test/shapes/p09_shape24.bmp
  79. BIN  src/SDL/test/shapes/p09_shape32alpha.bmp
  80. BIN  src/SDL/test/shapes/p09_shape8.bmp
  81. BIN  src/SDL/test/shapes/p10_shape1.bmp
  82. BIN  src/SDL/test/shapes/p10_shape24.bmp
  83. BIN  src/SDL/test/shapes/p10_shape32alpha.bmp
  84. BIN  src/SDL/test/shapes/p10_shape8.bmp
  85. BIN  src/SDL/test/shapes/p11_shape24.bmp
  86. BIN  src/SDL/test/shapes/p11_shape32alpha.bmp
  87. BIN  src/SDL/test/shapes/p11_shape8.bmp
  88. BIN  src/SDL/test/shapes/p12_shape24.bmp
  89. BIN  src/SDL/test/shapes/p12_shape8.bmp
  90. BIN  src/SDL/test/shapes/p13_shape24.bmp
  91. BIN  src/SDL/test/shapes/p13_shape32alpha.bmp
  92. BIN  src/SDL/test/shapes/p13_shape8.bmp
  93. BIN  src/SDL/test/shapes/p14_shape24.bmp
  94. BIN  src/SDL/test/shapes/p14_shape8.bmp
  95. BIN  src/SDL/test/shapes/p15_shape24.bmp
  96. BIN  src/SDL/test/shapes/p15_shape32alpha.bmp
  97. BIN  src/SDL/test/shapes/p15_shape8.bmp
  98. BIN  src/SDL/test/shapes/p16_shape1.bmp
  99. BIN  src/SDL/test/shapes/p16_shape24.bmp
  100. BIN  src/SDL/test/shapes/p16_shape8.bmp
  101. BIN  src/SDL/test/shapes/trollface_24.bmp
  102. BIN  src/SDL/test/shapes/trollface_32alpha.bmp
  103. 0  src/SDL/test/test-automation/AUTHORS
  104. 24  src/SDL/test/test-automation/COPYING
  105. 0  src/SDL/test/test-automation/ChangeLog
  106. 1,473  src/SDL/test/test-automation/DoxyFile
  107. 18  src/SDL/test/test-automation/INSTALL
  108. 26  src/SDL/test/test-automation/Makefile.am
  109. 0  src/SDL/test/test-automation/NEWS
  110. 12  src/SDL/test/test-automation/README
  111. 11  src/SDL/test/test-automation/TODO
  112. 7,359  src/SDL/test/test-automation/acinclude/libtool.m4
  113. 368  src/SDL/test/test-automation/acinclude/ltoptions.m4
  114. 123  src/SDL/test/test-automation/acinclude/ltsugar.m4
  115. 23  src/SDL/test/test-automation/acinclude/ltversion.m4
  116. 92  src/SDL/test/test-automation/acinclude/lt~obsolete.m4
  117. 991  src/SDL/test/test-automation/aclocal.m4
  118. 11  src/SDL/test/test-automation/autogen.sh
  119. 143  src/SDL/test/test-automation/build-scripts/compile
  120. 1,502  src/SDL/test/test-automation/build-scripts/config.guess
  121. 1,714  src/SDL/test/test-automation/build-scripts/config.sub
  122. 630  src/SDL/test/test-automation/build-scripts/depcomp
  123. 17  src/SDL/test/test-automation/build-scripts/distclean.sh
  124. 13  src/SDL/test/test-automation/build-scripts/install-runner.sh
  125. 520  src/SDL/test/test-automation/build-scripts/install-sh
  126. 25  src/SDL/test/test-automation/build-scripts/install-tests.sh
  127. 8,406  src/SDL/test/test-automation/build-scripts/ltmain.sh
  128. 376  src/SDL/test/test-automation/build-scripts/missing
  129. 86  src/SDL/test/test-automation/config.h.in
  130. 57  src/SDL/test/test-automation/configure.ac
  131. BIN  src/SDL/test/test-automation/data/images/icon.bmp
  132. 123  src/SDL/test/test-automation/include/SDL_test.h
  133. 158  src/SDL/test/test-automation/skeleton.xsl
  134. 23  src/SDL/test/test-automation/src/libSDLtest/Makefile.am
  135. 187  src/SDL/test/test-automation/src/libSDLtest/SDL_test.c
  136. 110  src/SDL/test/test-automation/src/libSDLtest/common/common.c
  137. 43  src/SDL/test/test-automation/src/libSDLtest/common/common.h
  138. 22  src/SDL/test/test-automation/src/libSDLtest/common/images.h
  139. 1,456  src/SDL/test/test-automation/src/libSDLtest/common/img_blit.c
  140. 2,691  src/SDL/test/test-automation/src/libSDLtest/common/img_blitblend.c
  141. 197  src/SDL/test/test-automation/src/libSDLtest/common/img_face.c
  142. 464  src/SDL/test/test-automation/src/libSDLtest/common/img_primitives.c
  143. 646  src/SDL/test/test-automation/src/libSDLtest/common/img_primitivesblend.c
  144. 662  src/SDL/test/test-automation/src/libSDLtest/fuzzer/fuzzer.c
  145. 361  src/SDL/test/test-automation/src/libSDLtest/fuzzer/fuzzer.h
  146. 125  src/SDL/test/test-automation/src/libSDLtest/fuzzer/utl_crc32.c
  147. 113  src/SDL/test/test-automation/src/libSDLtest/fuzzer/utl_crc32.h
  148. 314  src/SDL/test/test-automation/src/libSDLtest/fuzzer/utl_md5.c
  149. 125  src/SDL/test/test-automation/src/libSDLtest/fuzzer/utl_md5.h
  150. 63  src/SDL/test/test-automation/src/libSDLtest/fuzzer/utl_random.c
  151. 112  src/SDL/test/test-automation/src/libSDLtest/fuzzer/utl_random.h
  152. 182  src/SDL/test/test-automation/src/libSDLtest/logger_helpers.c
  153. 40  src/SDL/test/test-automation/src/libSDLtest/logger_helpers.h
  154. 225  src/SDL/test/test-automation/src/libSDLtest/plain_logger.c
  155. 142  src/SDL/test/test-automation/src/libSDLtest/plain_logger.h
  156. 376  src/SDL/test/test-automation/src/libSDLtest/xml.c
  157. 76  src/SDL/test/test-automation/src/libSDLtest/xml.h
  158. 674  src/SDL/test/test-automation/src/libSDLtest/xml_logger.c
  159. 140  src/SDL/test/test-automation/src/libSDLtest/xml_logger.h
  160. 7  src/SDL/test/test-automation/src/runner/Makefile.am
  161. 91  src/SDL/test/test-automation/src/runner/logger.h
  162. 1,506  src/SDL/test/test-automation/src/runner/runner.c
  163. 75  src/SDL/test/test-automation/src/runner/support.c
  164. 39  src/SDL/test/test-automation/src/runner/support.h
  165. 248  src/SDL/test/test-automation/style.xsl
  166. 4  src/SDL/test/test-automation/tests/testaudio/Makefile.am
  167. 182  src/SDL/test/test-automation/tests/testaudio/testaudio.c
  168. 4  src/SDL/test/test-automation/tests/testclipboard/Makefile.am
  169. 168  src/SDL/test/test-automation/tests/testclipboard/testclipboard.c
  170. 4  src/SDL/test/test-automation/tests/testdummy/Makefile.am
  171. 172  src/SDL/test/test-automation/tests/testdummy/testdummy.c
  172. 4  src/SDL/test/test-automation/tests/testevents/Makefile.am
  173. 34  src/SDL/test/test-automation/tests/testevents/testevents.c
  174. 4  src/SDL/test/test-automation/tests/testkeyboard/Makefile.am
  175. 34  src/SDL/test/test-automation/tests/testkeyboard/testkeyboard.c
  176. 4  src/SDL/test/test-automation/tests/testplatform/Makefile.am
  177. 508  src/SDL/test/test-automation/tests/testplatform/testplatform.c
  178. 4  src/SDL/test/test-automation/tests/testrect/Makefile.am
  179. 1,600  src/SDL/test/test-automation/tests/testrect/testrect.c
  180. 4  src/SDL/test/test-automation/tests/testrender/Makefile.am
  181. 925  src/SDL/test/test-automation/tests/testrender/testrender.c
  182. 4  src/SDL/test/test-automation/tests/testrwops/Makefile.am
  183. 12  src/SDL/test/test-automation/tests/testrwops/TestSupportRWops.h
  184. 1  src/SDL/test/test-automation/tests/testrwops/read
  185. 284  src/SDL/test/test-automation/tests/testrwops/testrwops.c
  186. 4  src/SDL/test/test-automation/tests/testsurface/Makefile.am
  187. 675  src/SDL/test/test-automation/tests/testsurface/testsurface.c
  188. 4  src/SDL/test/test-automation/tests/testsyswm/Makefile.am
  189. 34  src/SDL/test/test-automation/tests/testsyswm/testsyswm.c
  190. 4  src/SDL/test/test-automation/tests/testvideo/Makefile.am
  191. 34  src/SDL/test/test-automation/tests/testvideo/testvideo.c
  192. 718  src/SDL/test/testatomic.c
  193. 65  src/SDL/test/testaudioinfo.c
  194. 276  src/SDL/test/testdraw2.c
  195. 75  src/SDL/test/testerror.c
3  src/SDL/test/.gdbinit
... ...
@@ -1,3 +0,0 @@
1  
-handle SIGUSR1 pass noprint
2  
-handle SIGUSR2 pass noprint
3  
-break main
8  src/SDL/test/COPYING
... ...
@@ -1,8 +0,0 @@
1  
-
2  
-The test programs in this directory tree are for demonstrating and
3  
-testing the functionality of the SDL library, and are placed in the
4  
-public domain.
5  
-
6  
-October 28, 1997
7  
---
8  
-	Sam Lantinga				(slouken@libsdl.org)
199  src/SDL/test/Makefile.in
... ...
@@ -1,199 +0,0 @@
1  
-# Makefile to build the SDL tests
2  
-
3  
-srcdir  = @srcdir@
4  
-
5  
-CC      = @CC@
6  
-EXE	= @EXE@
7  
-CFLAGS  = @CFLAGS@
8  
-LIBS	= @LIBS@
9  
-
10  
-TARGETS = \
11  
-	checkkeys$(EXE) \
12  
-	loopwave$(EXE) \
13  
-	testaudioinfo$(EXE) \
14  
-	testdraw2$(EXE) \
15  
-	testerror$(EXE) \
16  
-	testfile$(EXE) \
17  
-	testgesture$(EXE) \
18  
-	testgl2$(EXE) \
19  
-	testgles$(EXE) \
20  
-	testhaptic$(EXE) \
21  
-	testrumble$(EXE) \
22  
-	testthread$(EXE) \
23  
-	testiconv$(EXE) \
24  
-	testime$(EXE) \
25  
-	testintersections$(EXE) \
26  
-	testrelative$(EXE) \
27  
-	testjoystick$(EXE) \
28  
-	testkeys$(EXE) \
29  
-	testloadso$(EXE) \
30  
-	testlock$(EXE) \
31  
-	testmultiaudio$(EXE) \
32  
-	testnative$(EXE) \
33  
-	testoverlay2$(EXE) \
34  
-	testplatform$(EXE) \
35  
-	testpower$(EXE) \
36  
-	testrendertarget$(EXE) \
37  
-	testresample$(EXE) \
38  
-	testscale$(EXE) \
39  
-	testsem$(EXE) \
40  
-	testshader$(EXE) \
41  
-	testshape$(EXE) \
42  
-	testsprite2$(EXE) \
43  
-	testspriteminimal$(EXE) \
44  
-	teststreaming$(EXE) \
45  
-	testtimer$(EXE) \
46  
-	testver$(EXE) \
47  
-	testwm2$(EXE) \
48  
-	torturethread$(EXE) \
49  
-	testrendercopyex$(EXE) \
50  
-
51  
-all: Makefile $(TARGETS)
52  
-
53  
-Makefile: $(srcdir)/Makefile.in
54  
-	$(SHELL) config.status $@
55  
-
56  
-checkkeys$(EXE): $(srcdir)/checkkeys.c
57  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
58  
-
59  
-loopwave$(EXE): $(srcdir)/loopwave.c
60  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
61  
-
62  
-testresample$(EXE): $(srcdir)/testresample.c
63  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
64  
-
65  
-testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
66  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
67  
-
68  
-testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
69  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
70  
-
71  
-testatomic$(EXE): $(srcdir)/testatomic.c
72  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
73  
-
74  
-testintersections$(EXE): $(srcdir)/testintersections.c $(srcdir)/common.c
75  
-	$(CC) -o $@ $(srcdir)/testintersections.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
76  
-
77  
-testrelative$(EXE): $(srcdir)/testrelative.c $(srcdir)/common.c
78  
-	$(CC) -o $@ $(srcdir)/testrelative.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
79  
-
80  
-testdraw2$(EXE): $(srcdir)/testdraw2.c $(srcdir)/common.c
81  
-	$(CC) -o $@ $(srcdir)/testdraw2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
82  
-
83  
-testerror$(EXE): $(srcdir)/testerror.c
84  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
85  
-
86  
-testfile$(EXE): $(srcdir)/testfile.c
87  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
88  
-
89  
-testgesture$(EXE): $(srcdir)/testgesture.c
90  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
91  
- 
92  
-testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
93  
-	$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
94  
-
95  
-testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c
96  
-	$(CC) -o $@ $(srcdir)/testgles.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
97  
-
98  
-testhaptic$(EXE): $(srcdir)/testhaptic.c
99  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
100  
-
101  
-testrumble$(EXE): $(srcdir)/testrumble.c
102  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
103  
-
104  
-testthread$(EXE): $(srcdir)/testthread.c
105  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
106  
-
107  
-testiconv$(EXE): $(srcdir)/testiconv.c
108  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
109  
-
110  
-testime$(EXE): $(srcdir)/testime.c $(srcdir)/common.c
111  
-	$(CC) -o $@ $(srcdir)/testime.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
112  
-
113  
-testjoystick$(EXE): $(srcdir)/testjoystick.c $(srcdir)/common.c
114  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
115  
-
116  
-testkeys$(EXE): $(srcdir)/testkeys.c
117  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
118  
-
119  
-testloadso$(EXE): $(srcdir)/testloadso.c
120  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
121  
-
122  
-testlock$(EXE): $(srcdir)/testlock.c
123  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
124  
-
125  
-ifeq (@ISMACOSX@,true)
126  
-testnative$(EXE): $(srcdir)/testnative.c \
127  
-			$(srcdir)/testnativecocoa.m \
128  
-			$(srcdir)/testnativew32.c \
129  
-			$(srcdir)/testnativex11.c
130  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
131  
-endif
132  
-
133  
-ifeq (@ISWINDOWS@,true)
134  
-testnative$(EXE): $(srcdir)/testnative.c \
135  
-			$(srcdir)/testnativew32.c
136  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
137  
-endif
138  
-
139  
-ifeq (@ISUNIX@,true)
140  
-testnative$(EXE): $(srcdir)/testnative.c \
141  
-			$(srcdir)/testnativex11.c
142  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11
143  
-endif
144  
-
145  
-testoverlay2$(EXE): $(srcdir)/testoverlay2.c
146  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
147  
-
148  
-testplatform$(EXE): $(srcdir)/testplatform.c
149  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
150  
-
151  
-testpower$(EXE): $(srcdir)/testpower.c
152  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
153  
-
154  
-testrendertarget$(EXE): $(srcdir)/testrendertarget.c $(srcdir)/common.c
155  
-	$(CC) -o $@ $(srcdir)/testrendertarget.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
156  
-
157  
-testscale$(EXE): $(srcdir)/testscale.c $(srcdir)/common.c
158  
-	$(CC) -o $@ $(srcdir)/testscale.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
159  
-
160  
-testsem$(EXE): $(srcdir)/testsem.c
161  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
162  
-
163  
-testshader$(EXE): $(srcdir)/testshader.c
164  
-	$(CC) -o $@ $(srcdir)/testshader.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
165  
-
166  
-testshape$(EXE): $(srcdir)/testshape.c
167  
-	$(CC) -o $@ $? -std=c99 $(CFLAGS) $(LIBS)
168  
-
169  
-testsprite2$(EXE): $(srcdir)/testsprite2.c $(srcdir)/common.c
170  
-	$(CC) -o $@ $(srcdir)/testsprite2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
171  
-
172  
-testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
173  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
174  
-
175  
-teststreaming$(EXE): $(srcdir)/teststreaming.c
176  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
177  
-
178  
-testtimer$(EXE): $(srcdir)/testtimer.c
179  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
180  
-
181  
-testver$(EXE): $(srcdir)/testver.c
182  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
183  
-
184  
-testwm2$(EXE): $(srcdir)/testwm2.c $(srcdir)/common.c
185  
-	$(CC) -o $@ $(srcdir)/testwm2.c $(srcdir)/common.c $(CFLAGS) $(LIBS)
186  
-
187  
-torturethread$(EXE): $(srcdir)/torturethread.c
188  
-	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
189  
-
190  
-testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c $(srcdir)/common.c
191  
-	$(CC) -o $@ $(srcdir)/testrendercopyex.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @MATHLIB@
192  
-	
193  
-clean:
194  
-	rm -f $(TARGETS)
195  
-
196  
-distclean: clean
197  
-	rm -f Makefile
198  
-	rm -f config.status config.cache config.log
199  
-	rm -rf $(srcdir)/autom4te*
27  src/SDL/test/README
... ...
@@ -1,27 +0,0 @@
1  
-
2  
-These are test programs for the SDL library:
3  
-
4  
-	checkkeys	Watch the key events to check the keyboard
5  
-	loopwave	Audio test -- loop playing a WAV file
6  
-	testaudioinfo	Lists audio device capabilities
7  
-	testcdrom	Sample audio CD control program
8  
-	testerror	Tests multi-threaded error handling
9  
-	testfile	Tests RWops layer
10  
-	testgl2		A very simple example of using OpenGL with SDL
11  
-	testhread	Hacked up test of multi-threading
12  
-	testiconv	Tests international string conversion
13  
-	testjoystick	List joysticks and watch joystick events
14  
-	testkeys	List the available keyboard keys
15  
-	testloadso	Tests the loadable library layer
16  
-	testlock	Hacked up test of multi-threading and locking
17  
-	testmultiaudio	Tests using several audio devices
18  
-	testoverlay2	Tests the overlay flickering/scaling during playback.
19  
-	testpalette	Tests palette color cycling
20  
-	testplatform	Tests types, endianness and cpu capabilities
21  
-	testsem		Tests SDL's semaphore implementation
22  
-	testshape	Tests shaped windows
23  
-	testsprite2	Example of fast sprite movement on the screen
24  
-	testtimer	Test the timer facilities
25  
-	testver		Check the version and dynamic loading and endianness
26  
-	testwm2		Test window manager -- title, icon, events
27  
-	torturethread	Simple test for thread creation/destruction
359  src/SDL/test/acinclude.m4
... ...
@@ -1,359 +0,0 @@
1  
-# Configure paths for SDL
2  
-# Sam Lantinga 9/21/99
3  
-# stolen from Manish Singh
4  
-# stolen back from Frank Belew
5  
-# stolen from Manish Singh
6  
-# Shamelessly stolen from Owen Taylor
7  
-
8  
-# serial 1
9  
-
10  
-dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
11  
-dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
12  
-dnl
13  
-AC_DEFUN([AM_PATH_SDL2],
14  
-[dnl 
15  
-dnl Get the cflags and libraries from the sdl2-config script
16  
-dnl
17  
-AC_ARG_WITH(sdl-prefix,[  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)],
18  
-            sdl_prefix="$withval", sdl_prefix="")
19  
-AC_ARG_WITH(sdl-exec-prefix,[  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
20  
-            sdl_exec_prefix="$withval", sdl_exec_prefix="")
21  
-AC_ARG_ENABLE(sdltest, [  --disable-sdltest       Do not try to compile and run a test SDL program],
22  
-		    , enable_sdltest=yes)
23  
-
24  
-  min_sdl_version=ifelse([$1], ,0.9.0,$1)
25  
-
26  
-  if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
27  
-    PKG_CHECK_MODULES([SDL], [sdl2 >= $min_sdl_version],
28  
-           [sdl_pc=yes],
29  
-           [sdl_pc=no])
30  
-  else
31  
-    sdl_pc=no
32  
-    if test x$sdl_exec_prefix != x ; then
33  
-      sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
34  
-      if test x${SDL_CONFIG+set} != xset ; then
35  
-        SDL_CONFIG=$sdl_exec_prefix/bin/sdl2-config
36  
-      fi
37  
-    fi
38  
-    if test x$sdl_prefix != x ; then
39  
-      sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
40  
-      if test x${SDL_CONFIG+set} != xset ; then
41  
-        SDL_CONFIG=$sdl_prefix/bin/sdl2-config
42  
-      fi
43  
-    fi
44  
-  fi
45  
-
46  
-  if test "x$sdl_pc" = xyes ; then
47  
-    no_sdl=""
48  
-    SDL_CONFIG="pkg-config sdl2"
49  
-  else
50  
-    as_save_PATH="$PATH"
51  
-    if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
52  
-      PATH="$prefix/bin:$prefix/usr/bin:$PATH"
53  
-    fi
54  
-    AC_PATH_PROG(SDL_CONFIG, sdl2-config, no, [$PATH])
55  
-    PATH="$as_save_PATH"
56  
-    AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
57  
-    no_sdl=""
58  
-
59  
-    if test "$SDL_CONFIG" = "no" ; then
60  
-      no_sdl=yes
61  
-    else
62  
-      SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
63  
-      SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
64  
-
65  
-      sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
66  
-             sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
67  
-      sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
68  
-             sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
69  
-      sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
70  
-             sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
71  
-      if test "x$enable_sdltest" = "xyes" ; then
72  
-        ac_save_CFLAGS="$CFLAGS"
73  
-        ac_save_CXXFLAGS="$CXXFLAGS"
74  
-        ac_save_LIBS="$LIBS"
75  
-        CFLAGS="$CFLAGS $SDL_CFLAGS"
76  
-        CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
77  
-        LIBS="$LIBS $SDL_LIBS"
78  
-dnl
79  
-dnl Now check if the installed SDL is sufficiently new. (Also sanity
80  
-dnl checks the results of sdl2-config to some extent
81  
-dnl
82  
-      rm -f conf.sdltest
83  
-      AC_TRY_RUN([
84  
-#include <stdio.h>
85  
-#include <stdlib.h>
86  
-#include <string.h>
87  
-#include "SDL.h"
88  
-
89  
-char*
90  
-my_strdup (char *str)
91  
-{
92  
-  char *new_str;
93  
-  
94  
-  if (str)
95  
-    {
96  
-      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
97  
-      strcpy (new_str, str);
98  
-    }
99  
-  else
100  
-    new_str = NULL;
101  
-  
102  
-  return new_str;
103  
-}
104  
-
105  
-int main (int argc, char *argv[])
106  
-{
107  
-  int major, minor, micro;
108  
-  char *tmp_version;
109  
-
110  
-  /* This hangs on some systems (?)
111  
-  system ("touch conf.sdltest");
112  
-  */
113  
-  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
114  
-
115  
-  /* HP/UX 9 (%@#!) writes to sscanf strings */
116  
-  tmp_version = my_strdup("$min_sdl_version");
117  
-  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
118  
-     printf("%s, bad version string\n", "$min_sdl_version");
119  
-     exit(1);
120  
-   }
121  
-
122  
-   if (($sdl_major_version > major) ||
123  
-      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
124  
-      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
125  
-    {
126  
-      return 0;
127  
-    }
128  
-  else
129  
-    {
130  
-      printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
131  
-      printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
132  
-      printf("*** best to upgrade to the required version.\n");
133  
-      printf("*** If sdl2-config was wrong, set the environment variable SDL_CONFIG\n");
134  
-      printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
135  
-      printf("*** config.cache before re-running configure\n");
136  
-      return 1;
137  
-    }
138  
-}
139  
-
140  
-],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
141  
-        CFLAGS="$ac_save_CFLAGS"
142  
-        CXXFLAGS="$ac_save_CXXFLAGS"
143  
-        LIBS="$ac_save_LIBS"
144  
-      fi
145  
-    fi
146  
-    if test "x$no_sdl" = x ; then
147  
-      AC_MSG_RESULT(yes)
148  
-    else
149  
-      AC_MSG_RESULT(no)
150  
-    fi
151  
-  fi
152  
-  if test "x$no_sdl" = x ; then
153  
-     ifelse([$2], , :, [$2])
154  
-  else
155  
-     if test "$SDL_CONFIG" = "no" ; then
156  
-       echo "*** The sdl2-config script installed by SDL could not be found"
157  
-       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
158  
-       echo "*** your path, or set the SDL_CONFIG environment variable to the"
159  
-       echo "*** full path to sdl2-config."
160  
-     else
161  
-       if test -f conf.sdltest ; then
162  
-        :
163  
-       else
164  
-          echo "*** Could not run SDL test program, checking why..."
165  
-          CFLAGS="$CFLAGS $SDL_CFLAGS"
166  
-          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
167  
-          LIBS="$LIBS $SDL_LIBS"
168  
-          AC_TRY_LINK([
169  
-#include <stdio.h>
170  
-#include "SDL.h"
171  
-
172  
-int main(int argc, char *argv[])
173  
-{ return 0; }
174  
-#undef  main
175  
-#define main K_and_R_C_main
176  
-],      [ return 0; ],
177  
-        [ echo "*** The test program compiled, but did not run. This usually means"
178  
-          echo "*** that the run-time linker is not finding SDL or finding the wrong"
179  
-          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
180  
-          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
181  
-          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
182  
-          echo "*** is required on your system"
183  
-	  echo "***"
184  
-          echo "*** If you have an old version installed, it is best to remove it, although"
185  
-          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
186  
-        [ echo "*** The test program failed to compile or link. See the file config.log for the"
187  
-          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
188  
-          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
189  
-          echo "*** may want to edit the sdl2-config script: $SDL_CONFIG" ])
190  
-          CFLAGS="$ac_save_CFLAGS"
191  
-          CXXFLAGS="$ac_save_CXXFLAGS"
192  
-          LIBS="$ac_save_LIBS"
193  
-       fi
194  
-     fi
195  
-     SDL_CFLAGS=""
196  
-     SDL_LIBS=""
197  
-     ifelse([$3], , :, [$3])
198  
-  fi
199  
-  AC_SUBST(SDL_CFLAGS)
200  
-  AC_SUBST(SDL_LIBS)
201  
-  rm -f conf.sdltest
202  
-])
203  
-# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
204  
-# serial 1 (pkg-config-0.24)
205  
-# 
206  
-# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
207  
-#
208  
-# This program is free software; you can redistribute it and/or modify
209  
-# it under the terms of the GNU General Public License as published by
210  
-# the Free Software Foundation; either version 2 of the License, or
211  
-# (at your option) any later version.
212  
-#
213  
-# This program is distributed in the hope that it will be useful, but
214  
-# WITHOUT ANY WARRANTY; without even the implied warranty of
215  
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
216  
-# General Public License for more details.
217  
-#
218  
-# You should have received a copy of the GNU General Public License
219  
-# along with this program; if not, write to the Free Software
220  
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
221  
-#
222  
-# As a special exception to the GNU General Public License, if you
223  
-# distribute this file as part of a program that contains a
224  
-# configuration script generated by Autoconf, you may include it under
225  
-# the same distribution terms that you use for the rest of that program.
226  
-
227  
-# PKG_PROG_PKG_CONFIG([MIN-VERSION])
228  
-# ----------------------------------
229  
-AC_DEFUN([PKG_PROG_PKG_CONFIG],
230  
-[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
231  
-m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
232  
-AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
233  
-AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
234  
-AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
235  
-
236  
-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
237  
-	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
238  
-fi
239  
-if test -n "$PKG_CONFIG"; then
240  
-	_pkg_min_version=m4_default([$1], [0.9.0])
241  
-	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
242  
-	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
243  
-		AC_MSG_RESULT([yes])
244  
-	else
245  
-		AC_MSG_RESULT([no])
246  
-		PKG_CONFIG=""
247  
-	fi
248  
-fi[]dnl
249  
-])# PKG_PROG_PKG_CONFIG
250  
-
251  
-# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
252  
-#
253  
-# Check to see whether a particular set of modules exists.  Similar
254  
-# to PKG_CHECK_MODULES(), but does not set variables or print errors.
255  
-#
256  
-# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
257  
-# only at the first occurence in configure.ac, so if the first place
258  
-# it's called might be skipped (such as if it is within an "if", you
259  
-# have to call PKG_CHECK_EXISTS manually
260  
-# --------------------------------------------------------------
261  
-AC_DEFUN([PKG_CHECK_EXISTS],
262  
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
263  
-if test -n "$PKG_CONFIG" && \
264  
-    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
265  
-  m4_default([$2], [:])
266  
-m4_ifvaln([$3], [else
267  
-  $3])dnl
268  
-fi])
269  
-
270  
-# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
271  
-# ---------------------------------------------
272  
-m4_define([_PKG_CONFIG],
273  
-[if test -n "$$1"; then
274  
-    pkg_cv_[]$1="$$1"
275  
- elif test -n "$PKG_CONFIG"; then
276  
-    PKG_CHECK_EXISTS([$3],
277  
-                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
278  
-		     [pkg_failed=yes])
279  
- else
280  
-    pkg_failed=untried
281  
-fi[]dnl
282  
-])# _PKG_CONFIG
283  
-
284  
-# _PKG_SHORT_ERRORS_SUPPORTED
285  
-# -----------------------------
286  
-AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
287  
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
288  
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
289  
-        _pkg_short_errors_supported=yes
290  
-else
291  
-        _pkg_short_errors_supported=no
292  
-fi[]dnl
293  
-])# _PKG_SHORT_ERRORS_SUPPORTED
294  
-
295  
-
296  
-# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
297  
-# [ACTION-IF-NOT-FOUND])
298  
-#
299  
-#
300  
-# Note that if there is a possibility the first call to
301  
-# PKG_CHECK_MODULES might not happen, you should be sure to include an
302  
-# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
303  
-#
304  
-#
305  
-# --------------------------------------------------------------
306  
-AC_DEFUN([PKG_CHECK_MODULES],
307  
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
308  
-AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
309  
-AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
310  
-
311  
-pkg_failed=no
312  
-AC_MSG_CHECKING([for $1])
313  
-
314  
-_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
315  
-_PKG_CONFIG([$1][_LIBS], [libs], [$2])
316  
-
317  
-m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
318  
-and $1[]_LIBS to avoid the need to call pkg-config.
319  
-See the pkg-config man page for more details.])
320  
-
321  
-if test $pkg_failed = yes; then
322  
-   	AC_MSG_RESULT([no])
323  
-        _PKG_SHORT_ERRORS_SUPPORTED
324  
-        if test $_pkg_short_errors_supported = yes; then
325  
-	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
326  
-        else 
327  
-	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
328  
-        fi
329  
-	# Put the nasty error message in config.log where it belongs
330  
-	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
331  
-
332  
-	m4_default([$4], [AC_MSG_ERROR(
333  
-[Package requirements ($2) were not met:
334  
-
335  
-$$1_PKG_ERRORS
336  
-
337  
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
338  
-installed software in a non-standard prefix.
339  
-
340  
-_PKG_TEXT])dnl
341  
-        ])
342  
-elif test $pkg_failed = untried; then
343  
-     	AC_MSG_RESULT([no])
344  
-	m4_default([$4], [AC_MSG_FAILURE(
345  
-[The pkg-config script could not be found or is too old.  Make sure it
346  
-is in your PATH or set the PKG_CONFIG environment variable to the full
347  
-path to pkg-config.
348  
-
349  
-_PKG_TEXT
350  
-
351  
-To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
352  
-        ])
353  
-else
354  
-	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
355  
-	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
356  
-        AC_MSG_RESULT([yes])
357  
-	$3
358  
-fi[]dnl
359  
-])# PKG_CHECK_MODULES
359  src/SDL/test/aclocal.m4
... ...
@@ -1,359 +0,0 @@
1  
-# Configure paths for SDL
2  
-# Sam Lantinga 9/21/99
3  
-# stolen from Manish Singh
4  
-# stolen back from Frank Belew
5  
-# stolen from Manish Singh
6  
-# Shamelessly stolen from Owen Taylor
7  
-
8  
-# serial 1
9  
-
10  
-dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
11  
-dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
12  
-dnl
13  
-AC_DEFUN([AM_PATH_SDL2],
14  
-[dnl 
15  
-dnl Get the cflags and libraries from the sdl2-config script
16  
-dnl
17  
-AC_ARG_WITH(sdl-prefix,[  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)],
18  
-            sdl_prefix="$withval", sdl_prefix="")
19  
-AC_ARG_WITH(sdl-exec-prefix,[  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
20  
-            sdl_exec_prefix="$withval", sdl_exec_prefix="")
21  
-AC_ARG_ENABLE(sdltest, [  --disable-sdltest       Do not try to compile and run a test SDL program],
22  
-		    , enable_sdltest=yes)
23  
-
24  
-  min_sdl_version=ifelse([$1], ,0.9.0,$1)
25  
-
26  
-  if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
27  
-    PKG_CHECK_MODULES([SDL], [sdl2 >= $min_sdl_version],
28  
-           [sdl_pc=yes],
29  
-           [sdl_pc=no])
30  
-  else
31  
-    sdl_pc=no
32  
-    if test x$sdl_exec_prefix != x ; then
33  
-      sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
34  
-      if test x${SDL_CONFIG+set} != xset ; then
35  
-        SDL_CONFIG=$sdl_exec_prefix/bin/sdl2-config
36  
-      fi
37  
-    fi
38  
-    if test x$sdl_prefix != x ; then
39  
-      sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
40  
-      if test x${SDL_CONFIG+set} != xset ; then
41  
-        SDL_CONFIG=$sdl_prefix/bin/sdl2-config
42  
-      fi
43  
-    fi
44  
-  fi
45  
-
46  
-  if test "x$sdl_pc" = xyes ; then
47  
-    no_sdl=""
48  
-    SDL_CONFIG="pkg-config sdl2"
49  
-  else
50  
-    as_save_PATH="$PATH"
51  
-    if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
52  
-      PATH="$prefix/bin:$prefix/usr/bin:$PATH"
53  
-    fi
54  
-    AC_PATH_PROG(SDL_CONFIG, sdl2-config, no, [$PATH])
55  
-    PATH="$as_save_PATH"
56  
-    AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
57  
-    no_sdl=""
58  
-
59  
-    if test "$SDL_CONFIG" = "no" ; then
60  
-      no_sdl=yes
61  
-    else
62  
-      SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
63  
-      SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
64  
-
65  
-      sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
66  
-             sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
67  
-      sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
68  
-             sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
69  
-      sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
70  
-             sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
71  
-      if test "x$enable_sdltest" = "xyes" ; then
72  
-        ac_save_CFLAGS="$CFLAGS"
73  
-        ac_save_CXXFLAGS="$CXXFLAGS"
74  
-        ac_save_LIBS="$LIBS"
75  
-        CFLAGS="$CFLAGS $SDL_CFLAGS"
76  
-        CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
77  
-        LIBS="$LIBS $SDL_LIBS"
78  
-dnl
79  
-dnl Now check if the installed SDL is sufficiently new. (Also sanity
80  
-dnl checks the results of sdl2-config to some extent
81  
-dnl
82  
-      rm -f conf.sdltest
83  
-      AC_TRY_RUN([
84  
-#include <stdio.h>
85  
-#include <stdlib.h>
86  
-#include <string.h>
87  
-#include "SDL.h"
88  
-
89  
-char*
90  
-my_strdup (char *str)
91  
-{
92  
-  char *new_str;
93  
-  
94  
-  if (str)
95  
-    {
96  
-      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
97  
-      strcpy (new_str, str);
98  
-    }
99  
-  else
100  
-    new_str = NULL;
101  
-  
102  
-  return new_str;
103  
-}
104  
-
105  
-int main (int argc, char *argv[])
106  
-{
107  
-  int major, minor, micro;
108  
-  char *tmp_version;
109  
-
110  
-  /* This hangs on some systems (?)
111  
-  system ("touch conf.sdltest");
112  
-  */
113  
-  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
114  
-
115  
-  /* HP/UX 9 (%@#!) writes to sscanf strings */
116  
-  tmp_version = my_strdup("$min_sdl_version");
117  
-  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
118  
-     printf("%s, bad version string\n", "$min_sdl_version");
119  
-     exit(1);
120  
-   }
121  
-
122  
-   if (($sdl_major_version > major) ||
123  
-      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
124  
-      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
125  
-    {
126  
-      return 0;
127  
-    }
128  
-  else
129  
-    {
130  
-      printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
131  
-      printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
132  
-      printf("*** best to upgrade to the required version.\n");
133  
-      printf("*** If sdl2-config was wrong, set the environment variable SDL_CONFIG\n");
134  
-      printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
135  
-      printf("*** config.cache before re-running configure\n");
136  
-      return 1;
137  
-    }
138  
-}
139  
-
140  
-],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
141  
-        CFLAGS="$ac_save_CFLAGS"
142  
-        CXXFLAGS="$ac_save_CXXFLAGS"
143  
-        LIBS="$ac_save_LIBS"
144  
-      fi
145  
-    fi
146  
-    if test "x$no_sdl" = x ; then
147  
-      AC_MSG_RESULT(yes)
148  
-    else
149  
-      AC_MSG_RESULT(no)
150  
-    fi
151  
-  fi
152  
-  if test "x$no_sdl" = x ; then
153  
-     ifelse([$2], , :, [$2])
154  
-  else
155  
-     if test "$SDL_CONFIG" = "no" ; then
156  
-       echo "*** The sdl2-config script installed by SDL could not be found"
157  
-       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
158  
-       echo "*** your path, or set the SDL_CONFIG environment variable to the"
159  
-       echo "*** full path to sdl2-config."
160  
-     else
161  
-       if test -f conf.sdltest ; then
162  
-        :
163  
-       else
164  
-          echo "*** Could not run SDL test program, checking why..."
165  
-          CFLAGS="$CFLAGS $SDL_CFLAGS"
166  
-          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
167  
-          LIBS="$LIBS $SDL_LIBS"
168  
-          AC_TRY_LINK([
169  
-#include <stdio.h>
170  
-#include "SDL.h"
171  
-
172  
-int main(int argc, char *argv[])
173  
-{ return 0; }
174  
-#undef  main
175  
-#define main K_and_R_C_main
176  
-],      [ return 0; ],
177  
-        [ echo "*** The test program compiled, but did not run. This usually means"
178  
-          echo "*** that the run-time linker is not finding SDL or finding the wrong"
179  
-          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
180  
-          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
181  
-          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
182  
-          echo "*** is required on your system"
183  
-	  echo "***"
184  
-          echo "*** If you have an old version installed, it is best to remove it, although"
185  
-          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
186  
-        [ echo "*** The test program failed to compile or link. See the file config.log for the"
187  
-          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
188  
-          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
189  
-          echo "*** may want to edit the sdl2-config script: $SDL_CONFIG" ])
190  
-          CFLAGS="$ac_save_CFLAGS"
191  
-          CXXFLAGS="$ac_save_CXXFLAGS"
192  
-          LIBS="$ac_save_LIBS"
193  
-       fi
194  
-     fi
195  
-     SDL_CFLAGS=""
196  
-     SDL_LIBS=""
197  
-     ifelse([$3], , :, [$3])
198  
-  fi
199  
-  AC_SUBST(SDL_CFLAGS)
200  
-  AC_SUBST(SDL_LIBS)
201  
-  rm -f conf.sdltest
202  
-])
203  
-# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
204  
-# serial 1 (pkg-config-0.24)
205  
-# 
206  
-# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
207  
-#
208  
-# This program is free software; you can redistribute it and/or modify
209  
-# it under the terms of the GNU General Public License as published by
210  
-# the Free Software Foundation; either version 2 of the License, or
211  
-# (at your option) any later version.
212  
-#
213  
-# This program is distributed in the hope that it will be useful, but
214  
-# WITHOUT ANY WARRANTY; without even the implied warranty of
215  
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
216  
-# General Public License for more details.
217  
-#
218  
-# You should have received a copy of the GNU General Public License
219  
-# along with this program; if not, write to the Free Software
220  
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
221  
-#
222  
-# As a special exception to the GNU General Public License, if you
223  
-# distribute this file as part of a program that contains a
224  
-# configuration script generated by Autoconf, you may include it under
225  
-# the same distribution terms that you use for the rest of that program.
226  
-
227  
-# PKG_PROG_PKG_CONFIG([MIN-VERSION])
228  
-# ----------------------------------
229  
-AC_DEFUN([PKG_PROG_PKG_CONFIG],
230  
-[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
231  
-m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
232  
-AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
233  
-AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
234  
-AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
235  
-
236  
-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
237  
-	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
238  
-fi
239  
-if test -n "$PKG_CONFIG"; then
240  
-	_pkg_min_version=m4_default([$1], [0.9.0])
241  
-	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
242  
-	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
243  
-		AC_MSG_RESULT([yes])
244  
-	else
245  
-		AC_MSG_RESULT([no])
246  
-		PKG_CONFIG=""
247  
-	fi
248  
-fi[]dnl
249  
-])# PKG_PROG_PKG_CONFIG
250  
-
251  
-# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
252  
-#
253  
-# Check to see whether a particular set of modules exists.  Similar
254  
-# to PKG_CHECK_MODULES(), but does not set variables or print errors.
255  
-#
256  
-# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
257  
-# only at the first occurence in configure.ac, so if the first place
258  
-# it's called might be skipped (such as if it is within an "if", you
259  
-# have to call PKG_CHECK_EXISTS manually
260  
-# --------------------------------------------------------------
261  
-AC_DEFUN([PKG_CHECK_EXISTS],
262  
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
263  
-if test -n "$PKG_CONFIG" && \
264  
-    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
265  
-  m4_default([$2], [:])
266  
-m4_ifvaln([$3], [else
267  
-  $3])dnl
268  
-fi])
269  
-
270  
-# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
271  
-# ---------------------------------------------
272  
-m4_define([_PKG_CONFIG],
273  
-[if test -n "$$1"; then
274  
-    pkg_cv_[]$1="$$1"
275  
- elif test -n "$PKG_CONFIG"; then
276  
-    PKG_CHECK_EXISTS([$3],
277  
-                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
278  
-		     [pkg_failed=yes])
279  
- else
280  
-    pkg_failed=untried
281  
-fi[]dnl
282  
-])# _PKG_CONFIG
283  
-
284  
-# _PKG_SHORT_ERRORS_SUPPORTED
285  
-# -----------------------------
286  
-AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
287  
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
288  
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
289  
-        _pkg_short_errors_supported=yes
290  
-else
291  
-        _pkg_short_errors_supported=no
292  
-fi[]dnl
293  
-])# _PKG_SHORT_ERRORS_SUPPORTED
294  
-
295  
-
296  
-# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
297  
-# [ACTION-IF-NOT-FOUND])
298  
-#
299  
-#
300  
-# Note that if there is a possibility the first call to
301  
-# PKG_CHECK_MODULES might not happen, you should be sure to include an
302  
-# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
303  
-#
304  
-#
305  
-# --------------------------------------------------------------
306  
-AC_DEFUN([PKG_CHECK_MODULES],
307  
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
308  
-AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
309  
-AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
310  
-
311  
-pkg_failed=no
312  
-AC_MSG_CHECKING([for $1])
313  
-
314  
-_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
315  
-_PKG_CONFIG([$1][_LIBS], [libs], [$2])
316  
-
317  
-m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
318  
-and $1[]_LIBS to avoid the need to call pkg-config.
319  
-See the pkg-config man page for more details.])
320  
-
321  
-if test $pkg_failed = yes; then
322  
-   	AC_MSG_RESULT([no])
323  
-        _PKG_SHORT_ERRORS_SUPPORTED
324  
-        if test $_pkg_short_errors_supported = yes; then
325  
-	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
326  
-        else 
327  
-	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
328  
-        fi
329  
-	# Put the nasty error message in config.log where it belongs
330  
-	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
331  
-
332  
-	m4_default([$4], [AC_MSG_ERROR(
333  
-[Package requirements ($2) were not met:
334  
-
335  
-$$1_PKG_ERRORS
336  
-
337  
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
338  
-installed software in a non-standard prefix.
339  
-
340  
-_PKG_TEXT])dnl
341  
-        ])
342  
-elif test $pkg_failed = untried; then
343  
-     	AC_MSG_RESULT([no])
344  
-	m4_default([$4], [AC_MSG_FAILURE(
345  
-[The pkg-config script could not be found or is too old.  Make sure it
346  
-is in your PATH or set the PKG_CONFIG environment variable to the full
347  
-path to pkg-config.
348  
-
349  
-_PKG_TEXT
350  
-
351  
-To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
352  
-        ])
353  
-else
354  
-	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
355  
-	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
356  
-        AC_MSG_RESULT([yes])
357  
-	$3
358  
-fi[]dnl
359  
-])# PKG_CHECK_MODULES
12  src/SDL/test/autogen.sh
... ...
@@ -1,12 +0,0 @@
1  
-#!/bin/sh
2  
-#
3  
-# Regenerate configuration files
4  
-cp acinclude.m4 aclocal.m4
5  
-found=false
6  
-for autoconf in autoconf autoconf259 autoconf-2.59
7  
-do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi
8  
-done
9  
-if test x$found = xfalse; then
10  
-    echo "Couldn't find autoconf, aborting"
11  
-    exit 1
12  
-fi
60  src/SDL/test/automated/Makefile
... ...
@@ -1,60 +0,0 @@
1  
-
2  
-
3  
-CFLAGS  := -W -Wall -Wextra -g `sdl2-config --prefix=/usr/local --cflags` -DSDL_NO_COMPAT
4  
-LDFLAGS := `sdl2-config --prefix=/usr/local --libs`
5  
-
6  
-# If it doesn't pick up defaults
7  
-#CFLAGS  := -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL2
8  
-#LDFLAGS := -lm -ldl -lesd -lpthread
9  
-
10  
-SRC         	:= testsdl.c \
11  
-						platform/platform.c \
12  
-						rect/rect.c \
13  
-						surface/surface.c \
14  
-						render/render.c \
15  
-						audio/audio.c
16  
-COMMON_SRC     := SDL_at.c common/common.c
17  
-COMMON_INCLUDE := SDL_at.h
18  
-
19  
-RWOPS_SRC      := rwops/rwops.c rwops/TestSupportRWops_Generic.c
20  
-
21  
-TESTS_ALL := testsdl \
22  
-	platform/platform \
23  
-	rwops/rwops \
24  
-	rect/rect \
25  
-	surface/surface \
26  
-	render/render \
27  
-	audio/audio
28  
-
29  
-
30  
-.PHONY: all clean test
31  
-
32  
-
33  
-all: $(TESTS_ALL)
34  
-
35  
-test: all
36  
-	@./testsdl
37  
-
38  
-testsdl: $(SRC) $(RWOPS_SRC) $(COMMON_SRC)
39  
-	$(CC) $(CFLAGS) -o $@ $(SRC) $(RWOPS_SRC) $(COMMON_SRC) $(LDFLAGS)
40  
-
41  
-platform/platform: platform/platform.c $(COMMON_INCLUDE) $(COMMON_SRC)
42  
-	$(CC) $(CFLAGS) -o $@ platform/platform.c $(COMMON_SRC) -DTEST_STANDALONE $(LDFLAGS)
43  
-
44  
-rwops/rwops: $(RWOPS_SRC) $(COMMON_INCLUDE) $(COMMON_SRC)
45  
-	$(CC) $(CFLAGS) -o $@ $(RWOPS_SRC) $(COMMON_SRC) -DTEST_STANDALONE $(LDFLAGS)
46  
-
47  
-rect/rect: rect/rect.c $(COMMON_INCLUDE) $(COMMON_SRC)
48  
-	$(CC) $(CFLAGS) -o $@ rect/rect.c $(COMMON_SRC) -DTEST_STANDALONE $(LDFLAGS)
49  
-
50  
-surface/surface: surface/surface.c $(COMMON_INCLUDE) $(COMMON_SRC)
51  
-	$(CC) $(CFLAGS) -o $@ surface/surface.c $(COMMON_SRC) -DTEST_STANDALONE $(LDFLAGS)
52  
-
53  
-render/render: render/render.c $(COMMON_INCLUDE) $(COMMON_SRC)
54  
-	$(CC) $(CFLAGS) -o $@ render/render.c $(COMMON_SRC) -DTEST_STANDALONE $(LDFLAGS)
55  
-
56  
-audio/audio: audio/audio.c $(COMMON_INCLUDE) $(COMMON_SRC)
57  
-	$(CC) $(CFLAGS) -o $@ audio/audio.c $(COMMON_SRC) -DTEST_STANDALONE $(LDFLAGS)
58  
-
59  
-clean:
60  
-	$(RM) $(TESTS_ALL)
59  src/SDL/test/automated/README
... ...
@@ -1,59 +0,0 @@
1  
-
2  
-
3  
-   SDL Automated Testing Framework User Documentation
4  
-   by Edgar Simo Serra
5  
-
6  
-
7  
-
8  
-   Abstract
9  
-
10  
-   The SDL Automated Testing Framework, hereby after called SDL_AT, is a meant
11  
-to test the SDL code for regressions and other possible failures. It can also
12  
-be used to display what your SDL set up supports.
13  
-
14  
-
15  
-
16  
-   Basics
17  
-
18  
-   The main way to use the framework is to compile it and run it, that can be
19  
-done with the following command:
20  
-
21  
-  $> make test
22  
-  
23  
-  It should then display something like:
24  
-
25  
-  Platform : All tests successful (2)
26  
-  SDL_RWops : All tests successful (5)
27  
-  SDL_Surface : All tests successful (6)
28  
-  Rendering with x11 driver : All tests successful (4)
29  
-
30  
-  Indicating that all tests were successful. If however a test fails output it
31  
-will report the failure to stderr indicating where and why it happened. This
32  
-output can then be sent to the developers so they can attempt to fix the
33  
-problem.
34  
-
35  
-
36  
-
37  
-   Advanced
38  
-
39  
-   By passing the "-h" or "--help" parameter to testsdl you can get an overview