Mercurial > mplayer.hg
annotate configure @ 440:d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
author | gabucino |
---|---|
date | Sun, 15 Apr 2001 18:35:17 +0000 |
parents | 1afdd7a8eaf9 |
children | 198b46b739d8 |
rev | line source |
---|---|
1 | 1 #!/bin/sh |
2 | |
3 # | |
4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz | |
5 # pontscho@makacs.poliod.hu | |
6 # | |
4 | 7 # Changes in reversed order: |
1 | 8 # |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
9 # 2001/04/15 by Pontscho |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
10 # - added --disable-select option |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
11 # - added X11DIR variable in config.mak and fix syncfb Makefile -L/usr/X11/lib bug |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
12 # |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
13 # 2001/03/24 by Mike Graffam: |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
14 # - added autodetect code for XF86VidMode, along with explicit --enable-vm |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
15 # |
196 | 16 # 2001/03/22 by Bivanbi: |
17 # - new option: --cc (to specify C compiler path+name) | |
18 # | |
19 # 2001/03/08 by LGB: | |
59 | 20 # - DGA detection-o-matic :) |
21 # - '--disable-dga' option to force disabling DGA vo driver compiling into mplayer | |
22 # - line about '--enable-dga' is added to the help message | |
23 # | |
196 | 24 # 2001/02/26 by A'rpi: |
11 | 25 # - added DGA option: --enable-dga |
26 # - no notify if --with-win32libdir used [Tibcu] | |
27 # | |
196 | 28 # 2001/02/25 by LGB: |
4 | 29 # - TMPDIR or TEMPDIR variable is honored during tests for temporary files |
30 # - ChangeLog inside configure was reversed ;-) | |
1 | 31 # |
32 # some changes by A'rpi/ESP-team: | |
4 | 33 # - added 'athlon' target for the new athlongcc [Ian Kumlien] |
34 # - applied _win32libdir=-L patch by Magnus Pfeffer | |
1 | 35 # |
36 # some changes by LGB: | |
37 # - Ehhh, AMD K6-2 returns with cpuid 5 ;-) Changing back Arpi's last change :) | |
38 # More info: AMD K6-2 reports with family 5, duron with 6, so I attached | |
39 # much finer CPU type detection based on Linux kernel's one :) | |
40 # (k5: 5, model<6, k6: 5, model>=6, k7: 6, model=any) | |
41 # - On some exit point (error) temporary files were not deleted. Fixed. | |
42 # - $TMP and $TMP2 are renamed to $TMPC and $TMPO ;-) | |
43 # - Some useless { ... } are removed | |
44 # | |
45 # some changes by A'rpi/ESP-team: | |
11 | 46 # - the --with-win32libdir patch by Aaron Hope applied |
4 | 47 # - some english bugfix again :) |
48 # - cpu type selection changed: | |
49 # ( k7->k6->k5-> ) || (i686->pentiumpro-> ) pentium-> i486 -> i386 -> error! | |
50 # - cpu type for AMD/family=5 changed k6->k5 | |
51 # | |
52 # some changes by LGB (Gábor Lénárt): | |
53 # - SOME gcc may support 'k7', so I added tests for ALL CPU type optimization | |
54 # switches with the ability to find out the best optimization for your CPU. | |
55 # - Help moved to the begining to avoid tests if user only wants help. | |
56 # - A one lined help to indicate detailed help for users | |
57 # - Fixed /tmp race (PIDs can be predicted, I added random numbers as well) | |
58 # | |
59 # some changes by A'rpi/ESP-team: | |
60 # - some english bugfix :) | |
61 # - removed _??exists flags, _?? is enough... | |
62 # - creating only config.mak files instead of whole Makefiles | |
1 | 63 # |
64 # -- | |
65 | |
66 | |
67 # LGB: Help moved here. | |
68 | |
69 if [ "$1" = "--help" -o "$1" = "-help" -o "$1" = "-h" ]; then | |
70 cat << EOF | |
71 | |
72 usage: $0 [options] | |
73 | |
74 params: | |
196 | 75 --cc use this C compiler to build MPlayer [gcc] |
1 | 76 --enable-mmx build with mmx support [autodetect] |
350 | 77 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] |
1 | 78 --enable-3dnow build with 3dnow! support [autodetect] |
79 --enable-sse build with sse support [autodetect] | |
80 --enable-gl build with OpenGL render support [autodetect] | |
59 | 81 --enable-dga build with DGA support [autodetect] |
287 | 82 --enable-svga build with SVGAlib support [autodetect] |
1 | 83 --enable-sdl build with SDL render support [def.: disabled!] |
84 --enable-mga build with mga_vid support [autodetect, if /dev/mga_vid | |
85 is available] | |
86 --enable-xmga build with mga_vid X Window support [autodetect, | |
87 if both /dev/mga_vid and x11 are available] | |
88 --enable-xv build with Xv render support for X 4.x [autodetect] | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
89 --enable-vm build with XF86VidMode support for x11 driver |
1 | 90 --enable-x11 build with X11 render support [autodetect] |
225 | 91 --enable-fbdev build with FBDev render support [_not_ autodetected] |
1 | 92 --enable-mlib build with MLIB support ( only Solaris ) |
93 | |
94 --enable-termcap use termcap database for key codes | |
95 --enable-xmmp use XMMP audio drivers | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
96 --enable-lirc enable LIRC ( remote control ) support |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
97 |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
98 --disable-select disable audio select() support ( for example required this |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
99 option ALSA or Vortex2 driver ) |
1 | 100 |
101 --with-x11libdir=DIR X library files are in DIR | |
102 --with-win32libdir=DIR windows codec files | |
103 | |
104 --size-x=SIZE default screen width | |
105 --size-y=SIZE default screen height | |
106 EOF | |
107 exit 0 | |
108 fi | |
109 | |
110 # LGB: Some inital help | |
111 | |
112 echo "You can get detailed help on configure with: $0 --help" | |
113 echo "Please wait while ./configure discovers your software and hardware environment!" | |
114 | |
115 # LGB: temporary files | |
116 | |
4 | 117 TMPC="mplayer-conf-${RANDOM}-$$-${RANDOM}.c" |
118 TMPO="mplayer-conf-${RANDOM}-$$-${RANDOM}.o" | |
1 | 119 |
4 | 120 if [ ! -z $TMPDIR ]; then |
121 TMPC="${TMPDIR}/${TMPC}" | |
122 TMPO="${TMPDIR}/${TMPO}" | |
123 elif [ ! -z $TEMPDIR ]; then | |
124 TMPC="${TEMPDIR}/${TMPC}" | |
125 TMPO="${TEMPDIR}/${TMPO}" | |
126 else | |
127 TMPC="/tmp/${TMPC}" | |
128 TMPO="/tmp/${TMPO}" | |
129 fi | |
1 | 130 |
131 # --- | |
132 | |
133 # config files | |
134 CCONF='config.h' | |
135 MCONF='config.mak' | |
136 | |
196 | 137 # --- Check for C compiler: |
138 | |
139 _cc=gcc | |
140 | |
141 for ac_option | |
142 do | |
143 case "$ac_option" in | |
144 --cc=*) | |
145 _cc=`echo $ac_option | cut -d '=' -f 2` | |
146 ;; | |
147 esac | |
148 done | |
149 | |
1 | 150 # --- |
151 | |
152 TAB=`echo -n -e "\t"` | |
153 pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2` | |
154 pparam=`cat /proc/cpuinfo | grep 'features' | cut -d ':' -f 2` | |
155 if [ -z "$pparam" ]; then | |
156 pparam=`cat /proc/cpuinfo | grep 'flags' | cut -d ':' -f 2` | |
157 fi | |
158 pvendor=`cat /proc/cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2` | |
159 pfamily=`cat /proc/cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2` | |
160 pmodel=`cat /proc/cpuinfo | grep "model$TAB" | cut -d ':' -f 2 | cut -d ' ' -f 2` | |
161 pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2` | |
162 | |
163 _mmx=no | |
350 | 164 _mmx2=no |
1 | 165 _3dnow=no |
166 _mtrr=no | |
167 _sse=no | |
168 _mga=no | |
169 _gl=no | |
170 _sdl=no | |
171 _xv=no | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
172 _vm=no |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
173 _x11=no |
1 | 174 _3dfx=no |
175 _syncfb=no | |
176 _mlib=no | |
177 _mpg123=no | |
178 _xmga=no | |
11 | 179 _dga=no |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
180 _dga2=no |
287 | 181 _svga=no |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
182 _fbdev=no |
1 | 183 _lirc=no |
330 | 184 _xdpms=no |
1 | 185 |
186 _x=1 | |
187 _y=1 | |
188 | |
189 _gllib= | |
190 _sdllib= | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
191 _x11lib= |
417
1afdd7a8eaf9
small fixes, x11libdir and --disable-x11 works before the detection
arpi_esp
parents:
356
diff
changeset
|
192 _xvlib= |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
193 _xlibdir= |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
194 |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
195 _select='#define HAVE_AUDIO_SELECT' |
1 | 196 |
197 for i in `echo $pparam`; do | |
198 | |
199 case "$i" in | |
200 3dnow) | |
201 _3dnow=yes | |
202 _mpg123=yes | |
203 ;; | |
204 mmx) | |
205 _mmx=yes | |
206 ;; | |
350 | 207 mmxext) |
208 _mmx2=yes | |
209 ;; | |
1 | 210 mtrr) |
211 _mtrr=yes | |
212 ;; | |
213 k6_mtrr) | |
214 _mtrr=yes | |
215 ;; | |
216 xmm) | |
217 _sse=yes | |
356 | 218 _mmx2=yes |
1 | 219 ;; |
220 sse) | |
221 _sse=yes | |
356 | 222 _mmx2=yes |
1 | 223 ;; |
224 kni) | |
225 _sse=yes | |
356 | 226 _mmx2=yes |
1 | 227 ;; |
228 esac | |
229 | |
230 done | |
231 | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
232 if [ -e /usr/X11R6 ]; then |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
233 _x11libdir=-L/usr/X11R6/lib |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
234 else |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
235 if [ -e /usr/X11 ]; then |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
236 _x11libdir=-L/usr/X11/lib |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
237 fi |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
238 fi |
1 | 239 |
240 _win32libdirnotify=no | |
241 if [ -e /usr/lib/win32 ]; then | |
242 _win32libdir=/usr/lib/win32 | |
243 else | |
244 if [ -e /usr/local/lib/win32 ]; then | |
245 _win32libdir=/usr/local/lib/win32 | |
246 else | |
247 # This is our default: | |
248 _win32libdir=/usr/lib/win32 | |
249 _win32libdirnotify=yes | |
250 fi | |
251 fi | |
252 | |
253 | |
254 if [ -e /dev/mga_vid ]; then | |
255 _mga=yes | |
256 _syncfb=yes | |
257 fi | |
258 | |
259 proc=pentium | |
260 | |
261 case "$pvendor" in | |
262 AuthenticAMD) | |
263 case "$pfamily" in | |
264 3) | |
265 proc=i386 | |
266 ;; | |
267 4) | |
268 proc=i486 | |
269 ;; | |
270 5) | |
271 if [ $pmodel -ge 6 ]; then # LGB: models are: K5/SSA5 K5 K5 K5 ? ? K6 K6 K6-2 K6-3 | |
272 proc=k6 | |
273 else | |
274 proc=k5 | |
275 fi | |
276 ;; | |
277 6|7) # LGB: Though it seems Athlon CPUs returns with "6" | |
278 proc=k7 | |
279 ;; | |
280 *) | |
281 proc=pentium | |
282 ;; | |
283 esac | |
284 ;; | |
285 GenuineIntel) | |
286 case "$pfamily" in | |
287 3) | |
288 proc=i386 | |
289 ;; | |
290 4) | |
291 proc=i486 | |
292 ;; | |
293 5) | |
294 proc=pentium | |
295 ;; | |
296 6) | |
297 proc=i686 | |
298 ;; | |
299 *) | |
300 proc=pentium | |
301 ;; | |
302 esac | |
303 ;; | |
304 unknown) # added by Gabucino - upon Tibcu's request | |
305 case "$pfamily" in | |
306 3) | |
307 proc=i386 | |
308 ;; | |
309 4) | |
310 proc=i486 | |
311 ;; | |
312 *) | |
313 proc=pentium | |
314 ;; | |
315 esac | |
316 ;; | |
317 *) | |
318 proc=pentium | |
319 ;; | |
320 esac | |
321 | |
322 # --- | |
323 | |
324 cat > $TMPC << EOF | |
325 int main( void ) { return 0; } | |
326 EOF | |
327 | |
328 # check that gcc supports our cpu, if not, fallback to pentium | |
329 # LGB: check -mcpu and -march swithing step by step with enabling | |
330 # to fall back till 386. | |
331 | |
332 #echo -n "Checking your GCC CPU optimalization abilities: " | |
333 if [ "$proc" = "k7" ]; then | |
334 # echo -n "trying k7 " | |
196 | 335 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=athlon |
1 | 336 fi |
337 if [ "$proc" = "athlon" ]; then | |
338 # echo -n "trying athlon " | |
196 | 339 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=k6 |
1 | 340 fi |
341 if [ "$proc" = "k6" ]; then | |
342 # echo -n "trying k6 " | |
196 | 343 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=k5 |
1 | 344 fi |
345 if [ "$proc" = "k5" ]; then | |
346 # echo -n "trying k5 " | |
196 | 347 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=pentium |
1 | 348 fi |
349 if [ "$proc" = "i686" ]; then | |
350 # echo -n "trying i686 " | |
196 | 351 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=pentiumpro |
1 | 352 fi |
353 if [ "$proc" = "pentiumpro" ]; then | |
354 # echo -n "trying pentiumpro " | |
196 | 355 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=pentium |
1 | 356 fi |
357 if [ "$proc" = "pentium" ]; then | |
358 # echo -n "trying pentium " | |
196 | 359 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=i486 |
1 | 360 fi |
361 if [ "$proc" = "i486" ]; then | |
362 # echo -n "trying i486 " | |
196 | 363 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=i386 |
1 | 364 fi |
365 if [ "$proc" = "i386" ]; then | |
366 # echo -n "trying i386 " | |
196 | 367 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=error |
1 | 368 fi |
369 if [ "$proc" = "error" ]; then | |
370 echo | |
371 echo "Your gcc does not support even \"i386\" for '-march' and '-mcpu'." >&2 | |
372 rm -f $TMPC $TMPO | |
373 exit | |
374 fi | |
375 #echo "DONE (${proc})." | |
376 | |
377 | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
378 # check GL & X11 & Xext & Xv & SDL & termcap libs |
1 | 379 |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
380 $_cc $TMPC -o $TMPO $_x11libdir/ -lGL &> /dev/null && _gl=yes |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
381 $_cc $TMPC -o $TMPO $_x11libdir/ -lXxf86vm &> /dev/null && _vm=yes |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
382 $_cc $TMPC -o $TMPO -lvgagl -lvga &> /dev/null && _svga=yes |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
383 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
384 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms &> /dev/null && _xdpms=yes |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
385 $_cc $TMPC -o $TMPO $_x11libdir -lXv &> /dev/null && _xv=yes |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
386 $_cc $TMPC -o $TMPO $_x11libdir -L/usr/local/lib/ -lpthread &> /dev/null || \ |
1 | 387 { echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; } |
388 | |
389 # SDL disabled by default (0.11pre22-) because of the compilation problems | |
390 # this is very buggy & experimental code, use it only if you really need it!! | |
391 _have_sdl=no | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
392 $_cc $TMPC -o $TMPO $_x11libdir -L/usr/local/lib/ -lSDL -lpthread &> /dev/null && _have_sdl=yes |
1 | 393 |
394 _termcap=no | |
196 | 395 $_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes |
1 | 396 |
397 _binutils=no | |
398 as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes | |
399 | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
400 # LGB: Check DGA |
59 | 401 |
402 cat > $TMPC << EOF | |
403 #include <stdio.h> | |
404 #include <X11/Xlib.h> | |
405 #include <X11/extensions/xf86dga.h> | |
406 int main (void) { return 0;} | |
407 EOF | |
408 | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
409 _dga=no |
196 | 410 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga=yes |
59 | 411 # Note: the -lXxf86vm library is the VideoMode extension and though it's |
412 # not needed for DGA, AFAIK every distribution packages together with DGA | |
413 # stuffs named 'X extensions' or something similar. This check can be usefull | |
414 # for further mplayer versions to set resolution by mplayer itself. | |
415 # If you run into problems, remove '-lXxf86vm'. | |
416 | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
417 # --- |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
418 |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
419 # Check if DGA is 2.0 or greater |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
420 cat > $TMPC << EOF |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
421 #include <stdio.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
422 #include <X11/Xlib.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
423 #include <X11/extensions/xf86dga.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
424 int main (void) { XDGAMode mode; XDGADevice device; return 0;} |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
425 EOF |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
426 |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
427 _dga2=no |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
428 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga2=yes |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
429 |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
430 |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
431 cat > $TMPC << EOF |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
432 #include <GL/gl.h> |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
433 int main( void ) { return 0; } |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
434 EOF |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
435 |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
436 $_cc $TMPC -o $TMPO $_x11libdir/ -lGL &> /dev/null || \ |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
437 { _gl=no; echo "GL includes not found!";} |
1 | 438 |
439 rm -f $TMPC $TMPO | |
440 | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
441 |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
442 if [ $_x11 = 'yes' ]; then |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
443 if [ $_mga = 'yes' ]; then |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
444 _xmga=yes |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
445 fi |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
446 fi |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
447 |
1 | 448 # --- |
449 | |
450 # check for the parameters. | |
451 | |
452 for ac_option | |
453 do | |
454 case "$ac_option" in | |
455 --enable-sse) | |
456 _sse=yes | |
457 ;; | |
458 --enable-3dnow) | |
459 _3dnow=yes | |
460 ;; | |
461 --enable-mmx) | |
462 _mmx=yes | |
463 ;; | |
350 | 464 --enable-mmx2) |
465 _mmx2=yes | |
466 ;; | |
72 | 467 --enable-mtrr) |
468 _mtrr=yes | |
469 ;; | |
1 | 470 --enable-gl) |
471 _gl=yes | |
472 ;; | |
473 --enable-sdl) | |
474 _sdl=yes | |
475 ;; | |
476 --enable-mga) | |
477 _mga=yes | |
478 ;; | |
479 --enable-xmga) | |
480 _xmga=yes | |
481 ;; | |
287 | 482 --enable-svga) |
483 _svga=yes | |
484 ;; | |
11 | 485 --enable-dga) |
486 _dga=yes | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
487 ;; |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
488 --enable-dga2) |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
489 _dga2=yes |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
490 ;; |
1 | 491 --enable-xv) |
492 _xv=yes | |
493 ;; | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
494 --enable-vm) |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
495 _vm=yes |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
496 ;; |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
497 --enable-x11) |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
498 _x11=yes |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
499 ;; |
1 | 500 --enable-3dfx) |
501 _3dfx=yes | |
502 ;; | |
503 --enable-syncfb) | |
504 _syncfb=yes | |
505 ;; | |
225 | 506 --enable-fbdev) |
507 _fbdev=yes | |
508 ;; | |
1 | 509 --enable-mlib) |
510 _mlib=yes | |
511 ;; | |
512 --enable-termcap) | |
513 _termcap=yes | |
514 ;; | |
515 --enable-xmmp) | |
516 _xmmp=yes | |
517 ;; | |
518 --enable-lirc) | |
519 _lirc=yes | |
520 ;; | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
521 --enable-select) |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
522 _select='#define HAVE_AUDIO_SELECT' |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
523 ;; |
1 | 524 --disable-sse) |
525 _sse=no | |
526 ;; | |
527 --disable-3dnow) | |
528 _3dnow=no | |
529 ;; | |
530 --disable-mmx) | |
531 _mmx=no | |
350 | 532 _mmx2=no |
1 | 533 ;; |
72 | 534 --disable-mtrr) |
535 _mtrr=no | |
536 ;; | |
1 | 537 --disable-gl) |
538 _gl=no | |
539 ;; | |
540 --disable-sdl) | |
541 _sdl=no | |
542 ;; | |
543 --disable-mga) | |
544 _mga=no | |
545 ;; | |
546 --disable-xmga) | |
547 _xmga=no | |
548 ;; | |
549 --disable-xv) | |
550 _xv=no | |
551 ;; | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
552 --disable-vm) |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
553 _vm=no |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
554 ;; |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
555 --disable-x11) |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
556 _x11=no |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
557 ;; |
1 | 558 --disable-mlib) |
559 _mlib=no | |
560 ;; | |
287 | 561 --disable-svga) |
562 _svga=no | |
563 ;; | |
59 | 564 --disable-dga) |
565 _dga=no | |
566 ;; | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
567 --disable-dga2) |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
568 _dga2=no |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
569 ;; |
225 | 570 --disable-fbdev) |
571 _fbdev=no | |
572 ;; | |
1 | 573 --disable-termcap) |
574 _termcap=no | |
575 ;; | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
576 --disable-select) |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
577 _select='#undef HAVE_AUDIO_SELECT' |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
578 ;; |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
579 --with-x11libdir=*) |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
580 _x11libdir=-L`echo $ac_option | cut -d '=' -f 2` |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
581 ;; |
1 | 582 --with-win32libdir=*) |
583 _win32libdir=`echo $ac_option | cut -d '=' -f 2` | |
11 | 584 _win32libdirnotify=no |
1 | 585 ;; |
586 --size-x=*) | |
587 _x=`echo $ac_option | cut -d '=' -f 2` | |
588 ;; | |
589 --size-y=*) | |
590 _y=`echo $ac_option | cut -d '=' -f 2` | |
591 ;; | |
196 | 592 --cc=*) |
593 ;; | |
1 | 594 esac |
595 done | |
596 | |
597 # to screen. | |
196 | 598 echo "Using C compiler: $_cc" |
1 | 599 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )" |
600 echo "Checking for cpu type ... $pname" | |
601 echo "Optimizing to ... $proc" | |
602 echo "Checking for mmx support ... $_mmx" | |
350 | 603 echo "Checking for mmx2 support ... $_mmx2" |
1 | 604 echo "Checking for 3dnow support ... $_3dnow" |
605 echo "Checking for sse support ... $_sse" | |
606 echo "Checking for mtrr support ... $_mtrr" | |
607 echo "Screen size ... ${_x}x${_y}" | |
608 echo "Checking for X11 libs ... $_x11libdir" | |
609 echo "Checking mga_vid device ... $_mga" | |
610 echo "Checking for xmga ... $_xmga" | |
611 echo "Checking for SDL ... $_sdl" | |
612 echo "Checking for OpenGL ... $_gl" | |
613 echo "Checking for Xv ... $_xv" | |
614 echo "Checking for X11 ... $_x11" | |
59 | 615 echo "Checking for DGA ... $_dga" |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
616 echo "Checking for DGA 2.0 .. $_dga2" |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
617 echo "Checking for Xf86VM ... $_vm" |
287 | 618 echo "Checking for SVGAlib ... $_svga" |
225 | 619 echo "Checking for FBDev ... $_fbdev" |
1 | 620 # write conf files. |
621 | |
622 if [ $_gl = yes ]; then | |
623 _gllib='-lGL' | |
624 fi | |
625 | |
626 if [ $_x11 = yes ]; then | |
330 | 627 if [ $_xdpms = yes ]; then |
628 _x11lib='-lX11 -lXext -lXdpms' | |
629 else | |
630 _x11lib='-lX11 -lXext' | |
631 fi | |
1 | 632 fi |
633 | |
634 if [ $_xv = yes ]; then | |
635 _xvlib='-lXv' | |
636 fi | |
637 | |
638 if [ $_sdl = yes ]; then | |
639 _sdllib='-lSDL -lpthread' | |
640 fi | |
641 | |
14 | 642 if [ $_dga = yes ]; then |
643 _dgalib='-lXxf86dga' | |
644 fi | |
645 | |
287 | 646 if [ $_svga = yes ]; then |
289 | 647 _svgalib='-lvgagl -lvga' |
287 | 648 fi |
649 | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
650 if [ $_vm = yes ]; then |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
651 _vmlib='-lXxf86vm' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
652 fi |
14 | 653 |
1 | 654 if [ "$_termcap" = "yes" ]; then |
655 _termcap='#define USE_TERMCAP' | |
656 _libtermcap='-ltermcap' | |
657 else | |
658 _termcap='#undef USE_TERMCAP' | |
659 _libtermcap='' | |
660 fi | |
661 | |
662 if [ "$_xmmp" = "yes" ]; then | |
663 _xmmpaudio='#define USE_XMMP_AUDIO' | |
664 _xmmplibs='-Llibxmm -lxmm' | |
665 else | |
666 _xmmpaudio='#undef USE_XMMP_AUDIO' | |
667 fi | |
668 | |
669 if [ "$_lirc" = "yes" ]; then | |
670 _lircdefs='#define HAVE_LIRC' | |
671 _lirclibs='-llirc_client' | |
672 else | |
673 _lircdefs='#undef HAVE_LIRC' | |
674 _lirclibs='' | |
675 fi | |
676 | |
677 | |
678 echo | |
679 echo "Creating $MCONF" | |
680 cat > $MCONF << EOF | |
681 | |
682 # -------- Generated by ./configure ----------- | |
683 | |
684 AR=ar | |
196 | 685 CC=$_cc |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
686 X11DIR=$_x11libdir |
1 | 687 # OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math |
688 OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -ffast-math | |
14 | 689 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
690 # X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
691 X_LIBS=\$(X11DIR) $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib |
1 | 692 TERMCAP_LIB=$_libtermcap |
693 XMM_LIBS = $_xmmplibs | |
694 LIRC_LIBS = $_lirclibs | |
695 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" | |
696 | |
697 EOF | |
698 # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak | |
699 | |
700 echo "Creating $CCONF" | |
701 | |
702 if [ "$_mmx" = "yes" ]; then | |
703 _mmx='#define HAVE_MMX' | |
704 else | |
705 _mmx='#undef HAVE_MMX' | |
706 fi | |
707 | |
350 | 708 if [ "$_mmx2" = "yes" ]; then |
709 _mmx2='#define HAVE_MMX2' | |
710 else | |
711 _mmx2='#undef HAVE_MMX2' | |
712 fi | |
713 | |
1 | 714 if [ $_3dnow = yes ]; then |
715 _3dnowm='#define HAVE_3DNOW' | |
716 else | |
717 _3dnowm='#undef HAVE_3DNOW' | |
718 fi | |
719 | |
720 if [ $_sse = yes ]; then | |
721 _ssem='#define HAVE_SSE' | |
722 else | |
723 _ssem='#undef HAVE_SSE' | |
724 fi | |
725 | |
726 # --- | |
727 | |
728 _vosrc='' | |
729 | |
730 if [ $_mlib = yes ]; then | |
731 _mlib='#define HAVE_MLIB' | |
732 _vosrc=$_vosrc' yuv2rgb_mlib.c' | |
733 else | |
734 _mlib='#undef HAVE_MLIB' | |
735 fi | |
736 | |
737 # --- | |
738 | |
739 if [ $_gl = yes ]; then | |
740 _gl='#define HAVE_GL' | |
741 _vosrc=$_vosrc' vo_gl.c' | |
742 else | |
743 _gl='#undef HAVE_GL' | |
744 fi | |
745 | |
746 if [ $_sdl = yes ]; then | |
747 _sdldef='#define HAVE_SDL' | |
748 _vosrc=$_vosrc' vo_sdl.c' | |
749 else | |
750 _sdldef='#undef HAVE_SDL' | |
751 fi | |
752 | |
753 if [ $_x11 = yes ]; then | |
754 _x11='#define HAVE_X11' | |
755 _vosrc=$_vosrc' vo_x11.c' | |
756 else | |
757 _x11='#undef HAVE_X11' | |
758 fi | |
759 | |
760 if [ $_xv = yes ]; then | |
761 _xv='#define HAVE_XV' | |
762 _vosrc=$_vosrc' vo_xv.c' | |
763 else | |
764 _xv='#undef HAVE_XV' | |
765 fi | |
766 | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
767 if [ $_vm = yes ]; then |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
768 _vm='#define HAVE_XF86VM' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
769 else |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
770 _vm='#undef HAVE_XF86VM' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
771 fi |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
772 |
1 | 773 # --- |
774 | |
775 if [ $_mga = yes ]; then | |
776 _mga='#define HAVE_MGA' | |
777 _vosrc=$_vosrc' vo_mga.c' | |
778 else | |
779 _mga='#undef HAVE_MGA' | |
780 fi | |
781 if [ $_xmga = yes ]; then | |
782 _vosrc=$_vosrc' vo_xmga.c' | |
783 fi | |
784 | |
785 if [ $_syncfb = yes ]; then | |
786 _syncfb='#define HAVE_SYNCFB' | |
787 _vosrc=$_vosrc' vo_syncfb.c' | |
788 else | |
789 _syncfb='#undef HAVE_SYNCFB' | |
790 fi | |
791 | |
792 if [ $_3dfx = yes ]; then | |
793 _3dfx='#define HAVE_3DFX' | |
794 _vosrc=$_vosrc' vo_3dfx.c' | |
795 else | |
796 _3dfx='#undef HAVE_3DFX' | |
797 fi | |
798 | |
287 | 799 if [ $_svga = yes ]; then |
800 _svga='#define HAVE_SVGALIB' | |
801 _vosrc=$_vosrc' vo_svga.c' | |
802 else | |
803 _svga='#undef HAVE_SVGALIB' | |
804 fi | |
805 | |
11 | 806 if [ $_dga = yes ]; then |
807 _dga='#define HAVE_DGA' | |
38 | 808 _vosrc=$_vosrc' vo_dga.c vo_fsdga.c' |
11 | 809 else |
810 _dga='#undef HAVE_DGA' | |
811 fi | |
812 | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
813 if [ $_dga2 = yes ]; then |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
814 _dga2='#define HAVE_DGA2' |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
815 _vosrc=$_vosrc' vo_dga.c vo_fsdga.c' |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
816 else |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
817 _dga2='#undef HAVE_DGA2' |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
818 fi |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
819 |
225 | 820 if [ $_fbdev = yes ]; then |
821 _fbdev='#define HAVE_FBDEV' | |
822 _vosrc=$_vosrc' vo_fbdev.c' | |
823 else | |
824 _fbdev='#undef HAVE_FBDEV' | |
825 fi | |
826 | |
1 | 827 if [ $_mpg123 = yes ]; then |
828 _mpg123='#define DEFAULT_MPG123' | |
829 else | |
830 _mpg123='#undef DEFAULT_MPG123' | |
831 fi | |
832 | |
833 cat > $CCONF << EOF | |
834 | |
835 /* -------- Generated by ./configure ----------- */ | |
836 | |
837 /* Define this to enable avg. byte/sec-based AVI sync method by default: | |
838 (use -bps or -nobps commandline option for run-time method selection) */ | |
839 #undef AVI_SYNC_BPS | |
840 | |
841 /* Undefine this if you want soundcard-only timing by default: | |
842 You can still change this with the -alsa or -noalsa command-line option! | |
843 (This function was originally impemented to solve ALSA driver's big | |
844 buffer problems, but it seems to be useful for every soundcard drivers) */ | |
845 #define ALSA_TIMER | |
846 | |
847 /* Undefine this if your soundcard driver has no working select(). | |
848 If you have kernel Oops, player hangups, or just no audio, you should | |
849 try to recompile MPlayer with this option disabled! */ | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
850 $_select |
1 | 851 |
852 /* You have a choice for MP3 decoding: mp3lib(mpg123) or Win32(l3codeca.acm) | |
853 #define this if you prefer mpg123 (with 3Dnow! support) than l3codeca.acm | |
854 (with mmx/sse optimizations) | |
855 You can still change it runtime using -afm 1 (mpg123) or -afm 4 (l3codeca)*/ | |
856 $_mpg123 | |
857 | |
858 /* XMMP support: (test code) */ | |
859 $_xmmpaudio | |
860 #define LIBDIR "/usr/local/lib" | |
861 #define PLUGINDIR LIBDIR "/xmmp/Plugins" | |
862 #define XMMP_AUDIO_DRIVER PLUGINDIR "/Sound/oss.so" | |
863 | |
864 /* LIRC (remote control, see www.lirc.org) support: */ | |
865 $_lircdefs | |
866 | |
41 | 867 /* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */ |
868 #define MPEG12_POSTPROC | |
869 | |
1 | 870 /* Define if your processor stores words with the most significant |
871 byte first (like Motorola and SPARC, unlike Intel and VAX). */ | |
872 /* #define WORDS_BIGENDIAN */ | |
873 | |
874 #define ARCH_X86 | |
875 | |
876 ///////////////////////////////////////////////////////////////////////////// | |
877 // | |
878 // NOTE: Instead of modifying these here, use the --enable/--disable options | |
879 // of the ./configure script! See ./configure --help for details. | |
880 // | |
881 ///////////////////////////////////////////////////////////////////////////// | |
882 | |
883 /* termcap flag for getch2.c */ | |
884 $_termcap | |
885 | |
886 /* Extension defines */ | |
887 $_mlib // available only on solaris | |
888 $_3dnowm // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.) | |
889 $_mmx // only define if you have MMX | |
350 | 890 $_mmx2 // only define if you have MMX2 |
1 | 891 $_ssem // only define if you have SSE (Intel Pentium III or Celeron II) |
892 | |
893 /* libvo options */ | |
894 #define SCREEN_SIZE_X $_x | |
895 #define SCREEN_SIZE_Y $_y | |
896 $_x11 | |
897 $_xv | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
898 $_vm |
1 | 899 $_gl |
11 | 900 $_dga |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
901 $_dga2 |
1 | 902 $_sdldef |
903 $_3dfx | |
904 $_mga | |
905 $_syncfb | |
225 | 906 $_fbdev |
287 | 907 $_svga |
1 | 908 |
23 | 909 #if defined(HAVE_GL)||defined(HAVE_X11)||defined(HAVE_XV) |
1 | 910 #define X11_FULLSCREEN |
911 #endif | |
912 | |
913 EOF | |
914 | |
915 echo "Creating libvo/config.mak" | |
916 | |
917 _voobj=`echo $_vosrc | sed -e 's/\.c/\.o/g'` | |
918 | |
919 cat > libvo/config.mak << EOF | |
920 | |
921 include ../config.mak | |
922 | |
923 OPTIONAL_SRCS=$_vosrc | |
924 OPTIONAL_OBJS=$_voobj | |
925 | |
926 EOF | |
927 | |
928 echo "Creating libac3/config.mak" | |
929 | |
930 if [ $_sse = yes ]; then | |
931 _downmixc='downmix/downmix_kni.S' | |
932 _downmixo='downmix/downmix_kni.o' | |
933 else | |
934 if [ $_binutils = yes ]; then | |
935 _downmixc='downmix/downmix_i386.S' | |
936 _downmixo='downmix/downmix_i386.o' | |
937 else | |
938 _downmixc='downmix/downmix.c' | |
939 _downmixo='downmix/downmix.o' | |
940 cat << EOF | |
941 | |
942 !!! Warning! fallback to slow downmix.c due the old binutils. | |
943 !!! Upgrade for better audio decoding performance. | |
944 | |
945 EOF | |
946 fi | |
947 fi | |
948 | |
949 cat > libac3/config.mak << EOF | |
950 | |
951 include ../config.mak | |
952 | |
953 OPTIONAL_SRCS = $_downmixc | |
954 OPTIONAL_OBJS = $_downmixo | |
955 | |
956 EOF | |
957 | |
958 echo "Creating mp3lib/config.mak" | |
959 | |
960 if [ $_3dnow = yes ]; then | |
961 _3dnowobjectsrcs='dct36_3dnow.s dct64_3dnow.s decode_3dnow.s' | |
962 _3dnowobjectobjs='dct36_3dnow.o dct64_3dnow.o decode_3dnow.o' | |
963 else | |
964 _3dnowobjectsrcs= | |
965 _3dnowobjectobjs= | |
966 fi | |
967 | |
968 cat > mp3lib/config.mak << EOF | |
969 | |
970 include ../config.mak | |
971 | |
972 OPTIONAL_SRCS = $_3dnowobjectsrcs | |
973 OPTIONAL_OBJS = $_3dnowobjectobjs | |
974 | |
975 EOF | |
976 | |
977 cat << EOF | |
978 | |
979 Config files successfully generated by ./configure ! | |
980 Please check config.h and config.mak files, tune CPU | |
981 and optimization flags if you don't like these defaults. | |
982 You can compile the program with 'make dep;make' and | |
983 install with 'make install'. Good luck! | |
984 | |
985 EOF | |
986 | |
987 if [ $_mtrr = yes ]; then | |
988 echo "Please check mtrr settings at /proc/mtrr (see DOCS/MTRR)" | |
989 echo | |
990 fi | |
991 | |
992 if [ $_sdl = no ]; then | |
993 if [ $_have_sdl = yes ]; then | |
994 echo "You have libSDL installed, but SDL support is disabled by default." | |
995 echo "If you want to compile MPlayer with SDL support, re-run ./configure" | |
996 echo "with --enable-sdl. But it's very buggy & experimental code, use it" | |
997 echo "only if you really need it! And it works(?) *ONLY* with SDL v1.1.7 !" | |
998 echo "(SDL driver is NOT supported, so do NOT report bugs relating to SDL!)" | |
999 echo | |
1000 fi | |
1001 fi | |
1002 | |
1003 if [ $_win32libdirnotify = yes ]; then | |
1004 echo "Missing WIN32 codecs dir at $_win32libdir !" | |
1005 echo "Make it and copy DLL files to there! (You can get them from your windows" | |
1006 echo "directory or download ftp://thot.banki.hu/esp-team/linux/MPlayer/w32codec.zip" | |
1007 else | |
1008 echo "Ok, Win32 codecs directory at $_win32libdir already exists." | |
1009 fi | |
1010 |