Mercurial > mplayer.hg
annotate configure @ 1017:7e653295099c
updated
author | arpi_esp |
---|---|
date | Tue, 05 Jun 2001 01:18:20 +0000 |
parents | f736cf67a5ab |
children | 990047bcb1b8 |
rev | line source |
---|---|
850 | 1 #!/bin/bash |
1 | 2 |
3 # | |
4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz | |
5 # pontscho@makacs.poliod.hu | |
6 # | |
4 | 7 # Changes in reversed order: |
1 | 8 # |
987 | 9 # 2001/06/04 by Nick Kurshev |
10 # - added hard checking of gcc and soft of assembler | |
11 # | |
912 | 12 # 2001/05/40 by LGB |
13 # - added --prefix support | |
14 # | |
849 | 15 # 2001/05/22 by Nick Kurshev |
16 # - added definition of CPU clone | |
17 # | |
492 | 18 # 2001/04/16 by LGB |
19 # - added libcss stuffs | |
20 # | |
463 | 21 # 2001/04/15 by Pontscho |
22 # - added --disable-select option | |
23 # - added X11DIR variable in config.mak and fix syncfb Makefile -L/usr/X11/lib bug | |
24 # | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
25 # 2001/03/24 by Mike Graffam: |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
26 # - 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
|
27 # |
196 | 28 # 2001/03/22 by Bivanbi: |
29 # - new option: --cc (to specify C compiler path+name) | |
30 # | |
31 # 2001/03/08 by LGB: | |
492 | 32 # - DGA detect-o-matic :) |
59 | 33 # - '--disable-dga' option to force disabling DGA vo driver compiling into mplayer |
34 # - line about '--enable-dga' is added to the help message | |
35 # | |
196 | 36 # 2001/02/26 by A'rpi: |
11 | 37 # - added DGA option: --enable-dga |
38 # - no notify if --with-win32libdir used [Tibcu] | |
39 # | |
196 | 40 # 2001/02/25 by LGB: |
4 | 41 # - TMPDIR or TEMPDIR variable is honored during tests for temporary files |
42 # - ChangeLog inside configure was reversed ;-) | |
1 | 43 # |
44 # some changes by A'rpi/ESP-team: | |
4 | 45 # - added 'athlon' target for the new athlongcc [Ian Kumlien] |
46 # - applied _win32libdir=-L patch by Magnus Pfeffer | |
1 | 47 # |
48 # some changes by LGB: | |
49 # - Ehhh, AMD K6-2 returns with cpuid 5 ;-) Changing back Arpi's last change :) | |
50 # More info: AMD K6-2 reports with family 5, duron with 6, so I attached | |
51 # much finer CPU type detection based on Linux kernel's one :) | |
52 # (k5: 5, model<6, k6: 5, model>=6, k7: 6, model=any) | |
53 # - On some exit point (error) temporary files were not deleted. Fixed. | |
54 # - $TMP and $TMP2 are renamed to $TMPC and $TMPO ;-) | |
55 # - Some useless { ... } are removed | |
56 # | |
57 # some changes by A'rpi/ESP-team: | |
11 | 58 # - the --with-win32libdir patch by Aaron Hope applied |
4 | 59 # - some english bugfix again :) |
60 # - cpu type selection changed: | |
61 # ( k7->k6->k5-> ) || (i686->pentiumpro-> ) pentium-> i486 -> i386 -> error! | |
62 # - cpu type for AMD/family=5 changed k6->k5 | |
63 # | |
64 # some changes by LGB (Gábor Lénárt): | |
65 # - SOME gcc may support 'k7', so I added tests for ALL CPU type optimization | |
66 # switches with the ability to find out the best optimization for your CPU. | |
67 # - Help moved to the begining to avoid tests if user only wants help. | |
68 # - A one lined help to indicate detailed help for users | |
69 # - Fixed /tmp race (PIDs can be predicted, I added random numbers as well) | |
70 # | |
71 # some changes by A'rpi/ESP-team: | |
72 # - some english bugfix :) | |
73 # - removed _??exists flags, _?? is enough... | |
74 # - creating only config.mak files instead of whole Makefiles | |
1 | 75 # |
76 # -- | |
77 | |
78 | |
79 # LGB: Help moved here. | |
80 | |
81 if [ "$1" = "--help" -o "$1" = "-help" -o "$1" = "-h" ]; then | |
82 cat << EOF | |
83 | |
84 usage: $0 [options] | |
85 | |
86 params: | |
196 | 87 --cc use this C compiler to build MPlayer [gcc] |
912 | 88 --prefix=DIR use this prefix for installing mplayer [/usr/local] |
717 | 89 --enable-debug[=1-3] compile debugging information into mplayer [disable] |
90 --enable-profile compile profiling information into mplayer [disable] | |
1 | 91 --enable-mmx build with mmx support [autodetect] |
350 | 92 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] |
1 | 93 --enable-3dnow build with 3dnow! support [autodetect] |
734 | 94 --enable-3dnowex build with 3dnow-dsp! support (K7) [autodetect] |
1 | 95 --enable-sse build with sse support [autodetect] |
96 --enable-gl build with OpenGL render support [autodetect] | |
59 | 97 --enable-dga build with DGA support [autodetect] |
287 | 98 --enable-svga build with SVGAlib support [autodetect] |
548
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
99 --enable-sdl build with SDL render support [autodetect] |
1 | 100 --enable-mga build with mga_vid support [autodetect, if /dev/mga_vid |
101 is available] | |
102 --enable-xmga build with mga_vid X Window support [autodetect, | |
103 if both /dev/mga_vid and x11 are available] | |
104 --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
|
105 --enable-vm build with XF86VidMode support for x11 driver |
1 | 106 --enable-x11 build with X11 render support [autodetect] |
225 | 107 --enable-fbdev build with FBDev render support [_not_ autodetected] |
1 | 108 --enable-mlib build with MLIB support ( only Solaris ) |
109 | |
110 --enable-termcap use termcap database for key codes | |
111 --enable-xmmp use XMMP audio drivers | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
112 --enable-lirc enable LIRC (remote control) support |
1 | 113 |
1004 | 114 --disable-alsa disable alsa support [autodetect] |
115 | |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
116 --disable-gcc-checking disable gcc version checking |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
117 |
463 | 118 --disable-select disable audio select() support ( for example required this |
119 option ALSA or Vortex2 driver ) | |
120 | |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
121 --disable-dshow disable DirectShow support (if you don't have |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
122 C++ compiler&libs, or you've found dshow codecs |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
123 slower than old VfW ones) |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
124 |
642 | 125 --disable-fastmemcpy disable 3dnow/sse/mmx optimized memcpy() |
126 | |
1 | 127 --with-x11libdir=DIR X library files are in DIR |
128 --with-win32libdir=DIR windows codec files | |
492 | 129 --with-csslibdir=DIR directory contains libcss.so shared library |
130 --with-cssincdir=DIR directory contains libcss header file (css.h) | |
992
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
131 (--with-css* only needed, if libCSS autodetect fails) |
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
132 --with-sdl-config=PATH specify location of sdl-config if it's not in your PATH |
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
133 (example: --with-sdl-cofig=/usr/sdl/bin/sdl-config) |
1 | 134 |
135 --size-x=SIZE default screen width | |
136 --size-y=SIZE default screen height | |
137 EOF | |
138 exit 0 | |
139 fi | |
140 | |
141 # LGB: Some inital help | |
142 | |
143 echo "You can get detailed help on configure with: $0 --help" | |
144 echo "Please wait while ./configure discovers your software and hardware environment!" | |
145 | |
146 # LGB: temporary files | |
147 | |
4 | 148 TMPC="mplayer-conf-${RANDOM}-$$-${RANDOM}.c" |
149 TMPO="mplayer-conf-${RANDOM}-$$-${RANDOM}.o" | |
1 | 150 |
4 | 151 if [ ! -z $TMPDIR ]; then |
152 TMPC="${TMPDIR}/${TMPC}" | |
153 TMPO="${TMPDIR}/${TMPO}" | |
154 elif [ ! -z $TEMPDIR ]; then | |
155 TMPC="${TEMPDIR}/${TMPC}" | |
156 TMPO="${TEMPDIR}/${TMPO}" | |
157 else | |
158 TMPC="/tmp/${TMPC}" | |
159 TMPO="/tmp/${TMPO}" | |
160 fi | |
1 | 161 |
162 # --- | |
163 | |
164 # config files | |
165 CCONF='config.h' | |
166 MCONF='config.mak' | |
167 | |
196 | 168 # --- Check for C compiler: |
169 | |
170 _cc=gcc | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
171 _x11=auto |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
172 |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
173 _x11libdir= |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
174 if [ -e /usr/X11R6 ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
175 _x11libdir=-L/usr/X11R6/lib |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
176 else |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
177 if [ -e /usr/X11 ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
178 _x11libdir=-L/usr/X11/lib |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
179 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
180 fi |
196 | 181 |
990 | 182 _skip_cc_check=no |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
183 _skip_as_check=no |
992
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
184 _sdlconfig='sdl-config' |
990 | 185 |
196 | 186 for ac_option |
187 do | |
188 case "$ac_option" in | |
189 --cc=*) | |
190 _cc=`echo $ac_option | cut -d '=' -f 2` | |
191 ;; | |
990 | 192 --disable-gcc-checking) |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
193 _skip_cc_check=yes |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
194 ;; |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
195 --disable-as-checking) |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
196 _skip_as_check=yes |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
197 ;; |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
198 --with-x11libdir=*) |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
199 _x11libdir=-L`echo $ac_option | cut -d '=' -f 2` |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
200 ;; |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
201 --enable-x11) |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
202 _x11=yes |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
203 ;; |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
204 --disable-x11) |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
205 _x11=no |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
206 ;; |
992
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
207 --with-sdl-config=*) |
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
208 _sdlconfig=`echo $ac_option | cut -d '=' -f 2` |
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
209 ;; |
196 | 210 esac |
211 done | |
212 | |
990 | 213 # Checking CC version... what's with egcs, pgcc? - Atmos |
214 if test "$_skip_cc_check" != "yes"; then | |
215 echo -n "Checking version of $_cc ... " | |
987 | 216 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'` |
217 case $cc_version in | |
218 '') cc_version="v. ?.??, bad"; cc_verc_fail=yes;; | |
219 2.95.[2-9]|3.[0-9]) | |
220 cc_version="$cc_version, ok";; | |
221 *) cc_version="$cc_version, bad"; cc_verc_fail=yes;; | |
222 esac | |
223 echo "$cc_version" | |
224 if ! test -z "$cc_verc_fail"; then | |
225 echo "Please downgrade(upgrade) gcc compiler to gcc-2.95.2+ or gcc-3.0+ version" | |
226 exit | |
227 fi | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
228 else |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
229 echo "YOU'VE SELECTED '--disable-gcc-checking'. PLEASE DON'T SEND US ANY BUGREPORTS!" |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
230 fi |
1 | 231 # --- |
232 | |
233 pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2` | |
234 pparam=`cat /proc/cpuinfo | grep 'features' | cut -d ':' -f 2` | |
235 if [ -z "$pparam" ]; then | |
236 pparam=`cat /proc/cpuinfo | grep 'flags' | cut -d ':' -f 2` | |
237 fi | |
238 pvendor=`cat /proc/cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2` | |
239 pfamily=`cat /proc/cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2` | |
819 | 240 pmodel=`cat /proc/cpuinfo |grep -v 'model name'| grep "model" | cut -d ':' -f 2 | cut -d ' ' -f 2` |
1 | 241 pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2` |
242 | |
243 _mmx=no | |
350 | 244 _mmx2=no |
1 | 245 _3dnow=no |
734 | 246 _3dnowex=no |
1 | 247 _mtrr=no |
248 _sse=no | |
525 | 249 |
1 | 250 _mga=no |
251 _gl=no | |
252 _sdl=no | |
253 _xv=no | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
254 _vm=no |
525 | 255 _xdpms=no |
1 | 256 _3dfx=no |
257 _syncfb=no | |
258 _mlib=no | |
259 _mpg123=no | |
260 _xmga=no | |
11 | 261 _dga=no |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
262 _dga2=no |
287 | 263 _svga=no |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
264 _fbdev=yes |
1 | 265 _lirc=no |
525 | 266 _css=no |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
267 _dshow=yes |
642 | 268 _fastmemcpy=yes |
1 | 269 |
270 _x=1 | |
271 _y=1 | |
272 | |
273 _gllib= | |
274 _sdllib= | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
275 _xvlib= |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
276 _x11lib= |
1 | 277 |
463 | 278 _select='#define HAVE_AUDIO_SELECT' |
279 | |
723 | 280 _gui=no; |
281 | |
1004 | 282 _alsa=yes |
283 | |
1 | 284 for i in `echo $pparam`; do |
285 | |
286 case "$i" in | |
287 3dnow) | |
288 _3dnow=yes | |
289 _mpg123=yes | |
290 ;; | |
734 | 291 3dnowext) |
292 _3dnow=yes | |
293 _3dnowex=yes | |
294 _mpg123=yes | |
295 ;; | |
1 | 296 mmx) |
297 _mmx=yes | |
298 ;; | |
350 | 299 mmxext) |
300 _mmx2=yes | |
301 ;; | |
1 | 302 mtrr) |
303 _mtrr=yes | |
304 ;; | |
305 k6_mtrr) | |
306 _mtrr=yes | |
307 ;; | |
308 xmm) | |
309 _sse=yes | |
356 | 310 _mmx2=yes |
1 | 311 ;; |
312 sse) | |
313 _sse=yes | |
356 | 314 _mmx2=yes |
1 | 315 ;; |
316 kni) | |
317 _sse=yes | |
356 | 318 _mmx2=yes |
1 | 319 ;; |
320 esac | |
321 | |
322 done | |
323 | |
324 | |
325 _win32libdirnotify=no | |
326 if [ -e /usr/lib/win32 ]; then | |
327 _win32libdir=/usr/lib/win32 | |
328 else | |
329 if [ -e /usr/local/lib/win32 ]; then | |
330 _win32libdir=/usr/local/lib/win32 | |
331 else | |
332 # This is our default: | |
333 _win32libdir=/usr/lib/win32 | |
334 _win32libdirnotify=yes | |
335 fi | |
336 fi | |
337 | |
338 | |
339 if [ -e /dev/mga_vid ]; then | |
340 _mga=yes | |
341 _syncfb=yes | |
342 fi | |
343 | |
344 proc=pentium | |
849 | 345 iproc=586 |
1 | 346 |
347 case "$pvendor" in | |
348 AuthenticAMD) | |
349 case "$pfamily" in | |
350 3) | |
351 proc=i386 | |
849 | 352 iproc=386 |
1 | 353 ;; |
354 4) | |
355 proc=i486 | |
849 | 356 iproc=486 |
1 | 357 ;; |
358 5) | |
359 if [ $pmodel -ge 6 ]; then # LGB: models are: K5/SSA5 K5 K5 K5 ? ? K6 K6 K6-2 K6-3 | |
360 proc=k6 | |
361 else | |
362 proc=k5 | |
363 fi | |
849 | 364 iproc=586 |
1 | 365 ;; |
366 6|7) # LGB: Though it seems Athlon CPUs returns with "6" | |
367 proc=k7 | |
849 | 368 iproc=686 |
1 | 369 ;; |
370 *) | |
371 proc=pentium | |
849 | 372 iproc=586 |
1 | 373 ;; |
374 esac | |
375 ;; | |
376 GenuineIntel) | |
377 case "$pfamily" in | |
378 3) | |
379 proc=i386 | |
849 | 380 iproc=386 |
1 | 381 ;; |
382 4) | |
383 proc=i486 | |
849 | 384 iproc=486 |
1 | 385 ;; |
386 5) | |
387 proc=pentium | |
849 | 388 iproc=586 |
1 | 389 ;; |
390 6) | |
391 proc=i686 | |
849 | 392 iproc=686 |
1 | 393 ;; |
394 *) | |
395 proc=pentium | |
849 | 396 iproc=586 |
1 | 397 ;; |
398 esac | |
399 ;; | |
400 unknown) # added by Gabucino - upon Tibcu's request | |
401 case "$pfamily" in | |
402 3) | |
403 proc=i386 | |
849 | 404 iproc=386 |
1 | 405 ;; |
406 4) | |
407 proc=i486 | |
849 | 408 iproc=486 |
1 | 409 ;; |
410 *) | |
411 proc=pentium | |
849 | 412 iproc=586 |
1 | 413 ;; |
414 esac | |
415 ;; | |
416 *) | |
417 proc=pentium | |
849 | 418 iproc=586 |
1 | 419 ;; |
420 esac | |
421 | |
422 # --- | |
423 | |
424 cat > $TMPC << EOF | |
425 int main( void ) { return 0; } | |
426 EOF | |
427 | |
428 # check that gcc supports our cpu, if not, fallback to pentium | |
429 # LGB: check -mcpu and -march swithing step by step with enabling | |
430 # to fall back till 386. | |
431 | |
432 #echo -n "Checking your GCC CPU optimalization abilities: " | |
433 if [ "$proc" = "k7" ]; then | |
434 # echo -n "trying k7 " | |
196 | 435 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=athlon |
1 | 436 fi |
437 if [ "$proc" = "athlon" ]; then | |
438 # echo -n "trying athlon " | |
196 | 439 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=k6 |
1 | 440 fi |
441 if [ "$proc" = "k6" ]; then | |
442 # echo -n "trying k6 " | |
196 | 443 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=k5 |
1 | 444 fi |
445 if [ "$proc" = "k5" ]; then | |
446 # echo -n "trying k5 " | |
196 | 447 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=pentium |
1 | 448 fi |
449 if [ "$proc" = "i686" ]; then | |
450 # echo -n "trying i686 " | |
196 | 451 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=pentiumpro |
1 | 452 fi |
453 if [ "$proc" = "pentiumpro" ]; then | |
454 # echo -n "trying pentiumpro " | |
196 | 455 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=pentium |
1 | 456 fi |
457 if [ "$proc" = "pentium" ]; then | |
458 # echo -n "trying pentium " | |
196 | 459 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=i486 |
1 | 460 fi |
461 if [ "$proc" = "i486" ]; then | |
462 # echo -n "trying i486 " | |
196 | 463 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=i386 |
1 | 464 fi |
465 if [ "$proc" = "i386" ]; then | |
466 # echo -n "trying i386 " | |
196 | 467 $_cc $TMPC -o $TMPO -march=$proc -mcpu=$proc &> /dev/null || proc=error |
1 | 468 fi |
469 if [ "$proc" = "error" ]; then | |
470 echo | |
471 echo "Your gcc does not support even \"i386\" for '-march' and '-mcpu'." >&2 | |
472 rm -f $TMPC $TMPO | |
473 exit | |
474 fi | |
475 #echo "DONE (${proc})." | |
476 | |
477 | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
478 $_cc $TMPC -o $TMPO -lvgagl -lvga &> /dev/null && _svga=yes |
1 | 479 |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
480 $_cc $TMPC -o $TMPO -lpthread &> /dev/null || \ |
1 | 481 { echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; } |
482 | |
548
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
483 # Atmosfear: added SDL versioncheck and autodetect; removed warnings. |
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
484 _sdl=no |
992
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
485 if $_cc $TMPC -o $TMPO `$_sdlconfig --libs` &> /dev/null ; then |
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
486 if test `$_sdlconfig --version | sed s/[=[:punct:]=]//g` -gt 116 ; then |
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
487 if test `$_sdlconfig --version | sed s/[=[:punct:]=]//g` -lt 121 ; then |
704 | 488 _sdlbuggy='#define BUGGY_SDL' |
489 else | |
490 _sdlbuggy='#undef BUGGY_SDL' | |
491 fi | |
558
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
492 _sdl=yes |
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
493 else |
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
494 _sdl=outdated |
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
495 fi |
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
496 fi |
1 | 497 |
661 | 498 # Atmosfear: added libcss autodetect |
499 _css=no | |
500 if test -e "/usr/local/lib/libcss.so" ; then | |
501 _csslibdir="/usr/local/lib/" | |
502 if test -e "/usr/local/include/css.h" ; then | |
503 _cssincdir="/usr/local/include" | |
504 _css=yes | |
710 | 505 fi |
506 else | |
507 if test -e "/usr/lib/libcss.so" ; then | |
508 _csslibdir="/usr/lib/" | |
661 | 509 if test -e "/usr/include/css.h" ; then |
510 _cssincdir="/usr/include/" | |
511 _css=yes | |
512 fi | |
710 | 513 fi |
661 | 514 fi |
515 | |
1 | 516 _termcap=no |
196 | 517 $_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes |
1 | 518 |
525 | 519 _png=no |
660
29c9635aa144
Changed vo png to use -lz which is needed on some systems.
atmosfear
parents:
642
diff
changeset
|
520 $_cc $TMPC -o $TMPO -lpng -lz&> /dev/null && _png=yes |
525 | 521 |
1 | 522 _binutils=no |
523 as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes | |
524 | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
525 # echo binutils: $_binutils |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
526 |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
527 # ----------- Check X11 and related libs (GL, Xxf86vm, Xv, DGA) -------------- |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
528 |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
529 if [ $_x11 = auto ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
530 _x11=no |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
531 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
532 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
533 |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
534 if [ $_x11 = yes ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
535 |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
536 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms &> /dev/null && _xdpms=yes |
525 | 537 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXv &> /dev/null && _xv=yes |
590 | 538 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXxf86vm &> /dev/null && _vm=yes |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
539 |
525 | 540 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL &> /dev/null && _gl=yes |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
541 |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
542 cat > $TMPC << EOF |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
543 #include <GL/gl.h> |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
544 int main( void ) { return 0; } |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
545 EOF |
525 | 546 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL &> /dev/null || \ |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
547 { _gl=no; echo "GL includes not found!";} |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
548 |
59 | 549 cat > $TMPC << EOF |
550 #include <stdio.h> | |
551 #include <X11/Xlib.h> | |
552 #include <X11/extensions/xf86dga.h> | |
553 int main (void) { return 0;} | |
554 EOF | |
555 | |
196 | 556 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga=yes |
59 | 557 # Note: the -lXxf86vm library is the VideoMode extension and though it's |
558 # not needed for DGA, AFAIK every distribution packages together with DGA | |
559 # stuffs named 'X extensions' or something similar. This check can be usefull | |
560 # for further mplayer versions to set resolution by mplayer itself. | |
561 # If you run into problems, remove '-lXxf86vm'. | |
562 | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
563 # 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
|
564 cat > $TMPC << EOF |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
565 #include <stdio.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
566 #include <X11/Xlib.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
567 #include <X11/extensions/xf86dga.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
568 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
|
569 EOF |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
570 |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
571 _dga2=no |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
572 $_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
|
573 |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
574 fi |
1 | 575 |
576 rm -f $TMPC $TMPO | |
577 | |
578 # --- | |
579 | |
1004 | 580 cat > $TMPC << EOF |
581 #include <sys/asoundlib.h> | |
582 #include <soundcard.h> | |
583 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==5)return 1; return 0; } | |
584 EOF | |
585 | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
586 _alsaver='notfound' |
1004 | 587 $_cc -o $TMPO -lasound $TMPC &> /dev/null || _alsa=no |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
588 |
1004 | 589 [ $_alsa == "yes" ] && $TMPO && { _alsaver='0.5.x'; } |
590 | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
591 if [ $_alsaver = 'notfound' ]; then |
1004 | 592 cat > $TMPC << EOF |
593 #include <sys/asoundlib.h> | |
594 #include <soundcard.h> | |
595 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==9)return 1; return 0; } | |
596 EOF | |
597 | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
598 _alsaver='notfound' |
1004 | 599 $_cc -o $TMPO -lasound $TMPC &> /dev/null || _alsa=no |
600 [ $_alsa == "yes" ] && $TMPO && { _alsaver='0.9.x'; } | |
601 fi | |
602 | |
603 # --- | |
604 | |
1 | 605 # check for the parameters. |
606 | |
912 | 607 _prefix="/usr/local" |
608 | |
1 | 609 for ac_option |
610 do | |
611 case "$ac_option" in | |
717 | 612 --enable-profile) |
613 _profile='-p' | |
614 ;; | |
711
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
615 --enable-debug) |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
616 _debug='-g' |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
617 ;; |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
618 --enable-debug=*) |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
619 _debug=`echo -n '-g'; echo $ac_option | cut -d '=' -f 2` |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
620 ;; |
492 | 621 --enable-css) |
622 _css=yes | |
623 ;; | |
525 | 624 --enable-png) |
625 _png=yes | |
626 ;; | |
1 | 627 --enable-sse) |
628 _sse=yes | |
629 ;; | |
630 --enable-3dnow) | |
631 _3dnow=yes | |
632 ;; | |
734 | 633 --enable-3dnowex) |
634 _3dnow=yes | |
635 _3dnowex=yes | |
636 ;; | |
1 | 637 --enable-mmx) |
638 _mmx=yes | |
639 ;; | |
350 | 640 --enable-mmx2) |
641 _mmx2=yes | |
642 ;; | |
72 | 643 --enable-mtrr) |
644 _mtrr=yes | |
645 ;; | |
1 | 646 --enable-gl) |
647 _gl=yes | |
648 ;; | |
649 --enable-sdl) | |
650 _sdl=yes | |
651 ;; | |
652 --enable-mga) | |
653 _mga=yes | |
654 ;; | |
655 --enable-xmga) | |
656 _xmga=yes | |
657 ;; | |
287 | 658 --enable-svga) |
659 _svga=yes | |
660 ;; | |
11 | 661 --enable-dga) |
662 _dga=yes | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
663 ;; |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
664 --enable-dga2) |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
665 _dga2=yes |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
666 ;; |
1 | 667 --enable-xv) |
668 _xv=yes | |
669 ;; | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
670 --enable-vm) |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
671 _vm=yes |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
672 ;; |
1 | 673 --enable-3dfx) |
674 _3dfx=yes | |
675 ;; | |
676 --enable-syncfb) | |
677 _syncfb=yes | |
678 ;; | |
225 | 679 --enable-fbdev) |
680 _fbdev=yes | |
681 ;; | |
1 | 682 --enable-mlib) |
683 _mlib=yes | |
684 ;; | |
685 --enable-termcap) | |
686 _termcap=yes | |
687 ;; | |
688 --enable-xmmp) | |
689 _xmmp=yes | |
690 ;; | |
691 --enable-lirc) | |
692 _lirc=yes | |
693 ;; | |
463 | 694 --enable-select) |
695 _select='#define HAVE_AUDIO_SELECT' | |
696 ;; | |
723 | 697 --enable-gui) |
698 _gui=yes | |
699 ;; | |
492 | 700 --disable-css) |
701 _css=no | |
702 ;; | |
525 | 703 --disable-png) |
704 _png=no | |
705 ;; | |
1 | 706 --disable-sse) |
707 _sse=no | |
708 ;; | |
709 --disable-3dnow) | |
710 _3dnow=no | |
734 | 711 _3dnowex=no |
712 ;; | |
713 --disable-3dnowex) | |
714 _3dnowex=no | |
1 | 715 ;; |
716 --disable-mmx) | |
717 _mmx=no | |
350 | 718 _mmx2=no |
1 | 719 ;; |
696 | 720 --disable-mmx2) |
721 _mmx2=no | |
722 ;; | |
72 | 723 --disable-mtrr) |
724 _mtrr=no | |
725 ;; | |
1 | 726 --disable-gl) |
727 _gl=no | |
728 ;; | |
729 --disable-sdl) | |
730 _sdl=no | |
731 ;; | |
732 --disable-mga) | |
733 _mga=no | |
734 ;; | |
735 --disable-xmga) | |
736 _xmga=no | |
737 ;; | |
738 --disable-xv) | |
739 _xv=no | |
740 ;; | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
741 --disable-vm) |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
742 _vm=no |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
743 ;; |
1 | 744 --disable-mlib) |
745 _mlib=no | |
746 ;; | |
287 | 747 --disable-svga) |
748 _svga=no | |
749 ;; | |
59 | 750 --disable-dga) |
751 _dga=no | |
752 ;; | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
753 --disable-dga2) |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
754 _dga2=no |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
755 ;; |
225 | 756 --disable-fbdev) |
757 _fbdev=no | |
758 ;; | |
1 | 759 --disable-termcap) |
760 _termcap=no | |
761 ;; | |
463 | 762 --disable-select) |
763 _select='#undef HAVE_AUDIO_SELECT' | |
764 ;; | |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
765 --disable-dshow) |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
766 _dshow=no |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
767 ;; |
642 | 768 --disable-fastmemcpy) |
769 _fastmemcpy=no | |
770 ;; | |
723 | 771 --disable-gui) |
772 _gui=no | |
773 ;; | |
1004 | 774 --disable-alsa) |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
775 _alsaver='notfound' |
1004 | 776 _alsa=no |
777 ;; | |
1 | 778 --with-win32libdir=*) |
779 _win32libdir=`echo $ac_option | cut -d '=' -f 2` | |
11 | 780 _win32libdirnotify=no |
1 | 781 ;; |
492 | 782 --with-csslibdir=*) |
783 _csslibdir=`echo $ac_option | cut -d '=' -f 2` | |
784 _css='yes'; | |
785 ;; | |
786 --with-cssincdir=*) | |
787 _cssincdir=`echo $ac_option | cut -d '=' -f 2` | |
788 _css='yes'; | |
789 ;; | |
1 | 790 --size-x=*) |
791 _x=`echo $ac_option | cut -d '=' -f 2` | |
792 ;; | |
793 --size-y=*) | |
794 _y=`echo $ac_option | cut -d '=' -f 2` | |
795 ;; | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
796 --with-x11libdir=*) |
912 | 797 ;; |
798 --prefix=*) | |
799 _prefix=`echo $ac_option | cut -d '=' -f 2` | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
800 ;; |
196 | 801 --cc=*) |
802 ;; | |
1 | 803 esac |
804 done | |
805 | |
987 | 806 # Checking as compatibility... |
990 | 807 echo -n "Checking assembler (as) ... " |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
808 |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
809 ### this test disabled, see _binutils test above! --A'rpi |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
810 # cat > astest.S <<EOF |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
811 # filds -2(%ebp) |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
812 # EOF |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
813 # as astest.S -o astest.o &> /dev/null || as_verc_fail=yes |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
814 |
987 | 815 if [ $_mmx = 'yes' ]; then |
816 cat > astest.S <<EOF | |
817 emms | |
818 EOF | |
819 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | |
820 fi | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
821 |
987 | 822 if [ $_3dnow = 'yes' ]; then |
823 cat >> astest.S <<EOF | |
824 femms | |
825 EOF | |
826 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | |
827 fi | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
828 |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
829 if [ $_3dnowex = 'yes' ]; then |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
830 cat >> astest.S <<EOF |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
831 pswapd %mm0, %mm0 |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
832 EOF |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
833 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
834 fi |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
835 |
987 | 836 if [ $_mmx2 = 'yes' ]; then |
837 cat >> astest.S <<EOF | |
838 movntq %mm0, (%eax) | |
839 EOF | |
840 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | |
841 fi | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
842 |
987 | 843 if [ $_sse = 'yes' ]; then |
844 cat >> astest.S <<EOF | |
845 xorps %xmm0, %xmm0 | |
846 EOF | |
847 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes | |
848 rm -f astest.S astest.o | |
849 fi | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
850 |
990 | 851 if test "$as_verc_fail" != "yes"; then |
852 echo "ok" | |
853 else | |
854 echo "failed" | |
855 echo "Please upgrade binutils..." # to which version? - Atmos | |
856 exit | |
987 | 857 fi |
858 | |
859 | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
860 if [ $_x11 = 'yes' ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
861 if [ $_mga = 'yes' ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
862 _xmga=yes |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
863 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
864 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
865 |
1 | 866 # to screen. |
887 | 867 echo -n "Kernel: " |
868 uname -a | |
912 | 869 echo "Install prefix: $_prefix" |
1 | 870 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )" |
871 echo "Checking for cpu type ... $pname" | |
872 echo "Optimizing to ... $proc" | |
873 echo "Checking for mmx support ... $_mmx" | |
350 | 874 echo "Checking for mmx2 support ... $_mmx2" |
1 | 875 echo "Checking for 3dnow support ... $_3dnow" |
734 | 876 echo "Checking for 3dnowex support ... $_3dnowex" |
1 | 877 echo "Checking for sse support ... $_sse" |
878 echo "Checking for mtrr support ... $_mtrr" | |
879 echo "Screen size ... ${_x}x${_y}" | |
880 echo "Checking for X11 libs ... $_x11libdir" | |
881 echo "Checking mga_vid device ... $_mga" | |
882 echo "Checking for xmga ... $_xmga" | |
883 echo "Checking for SDL ... $_sdl" | |
884 echo "Checking for OpenGL ... $_gl" | |
885 echo "Checking for Xv ... $_xv" | |
886 echo "Checking for X11 ... $_x11" | |
59 | 887 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
|
888 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
|
889 echo "Checking for Xf86VM ... $_vm" |
287 | 890 echo "Checking for SVGAlib ... $_svga" |
225 | 891 echo "Checking for FBDev ... $_fbdev" |
492 | 892 echo "Checking for DeCSS support ... $_css" |
525 | 893 echo "Checking for PNG support ... $_png" |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
894 echo "Checking for DirectShow ... $_dshow" |
642 | 895 echo "Checking for fastmemcpy ... $_fastmemcpy" |
1004 | 896 echo "Checking for alsa ... $_alsaver" |
1 | 897 # write conf files. |
898 | |
899 if [ $_gl = yes ]; then | |
900 _gllib='-lGL' | |
901 fi | |
902 | |
492 | 903 if [ $_css = yes ]; then |
904 if [ ! -z $_csslibdir ]; then | |
905 _csslib="-L${_csslibdir} -lcss" | |
906 else | |
907 _csslib='-lcss' | |
908 fi | |
909 _css='#define HAVE_LIBCSS' | |
910 if [ ! -z $_cssincdir ]; then | |
911 _cssinc="-I${_cssincdir}" | |
912 else | |
913 _cssinc="" | |
914 fi | |
915 else | |
916 _css='#undef HAVE_LIBCSS' | |
917 _csslib='' | |
918 _cssinc='' | |
919 fi | |
920 | |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
921 if [ $_dshow = yes ]; then |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
922 _dshowlib='-Lloader/DirectShow -lDS_Filter -lstdc++' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
923 _dshowdep='loader/DirectShow/libDS_Filter.a' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
924 _dshow='#define USE_DIRECTSHOW' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
925 else |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
926 _dshowlib='' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
927 _dshowdep='' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
928 _dshow='#undef USE_DIRECTSHOW' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
929 fi |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
930 |
642 | 931 if [ $_fastmemcpy = yes ]; then |
932 _fastmemcpy='#define USE_FASTMEMCPY' | |
933 else | |
934 _fastmemcpy='#undef USE_FASTMEMCPY' | |
935 fi | |
936 | |
1 | 937 if [ $_x11 = yes ]; then |
330 | 938 if [ $_xdpms = yes ]; then |
939 _x11lib='-lX11 -lXext -lXdpms' | |
940 else | |
941 _x11lib='-lX11 -lXext' | |
942 fi | |
1 | 943 fi |
944 | |
945 if [ $_xv = yes ]; then | |
946 _xvlib='-lXv' | |
947 fi | |
948 | |
949 if [ $_sdl = yes ]; then | |
992
a5a3d936b116
Changed to detect sdl in non-standard location, as suggested by Martin Aumueller <lists@reserv.at>.
atmosfear
parents:
990
diff
changeset
|
950 _sdllib=`$_sdlconfig --libs` |
1 | 951 fi |
952 | |
14 | 953 if [ $_dga = yes ]; then |
954 _dgalib='-lXxf86dga' | |
955 fi | |
956 | |
287 | 957 if [ $_svga = yes ]; then |
289 | 958 _svgalib='-lvgagl -lvga' |
287 | 959 fi |
960 | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
961 if [ $_vm = yes ]; then |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
962 _vmlib='-lXxf86vm' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
963 fi |
14 | 964 |
1 | 965 if [ "$_termcap" = "yes" ]; then |
966 _termcap='#define USE_TERMCAP' | |
967 _libtermcap='-ltermcap' | |
968 else | |
969 _termcap='#undef USE_TERMCAP' | |
970 _libtermcap='' | |
971 fi | |
972 | |
973 if [ "$_xmmp" = "yes" ]; then | |
974 _xmmpaudio='#define USE_XMMP_AUDIO' | |
975 _xmmplibs='-Llibxmm -lxmm' | |
976 else | |
977 _xmmpaudio='#undef USE_XMMP_AUDIO' | |
978 fi | |
979 | |
980 if [ "$_lirc" = "yes" ]; then | |
981 _lircdefs='#define HAVE_LIRC' | |
982 _lirclibs='-llirc_client' | |
983 else | |
984 _lircdefs='#undef HAVE_LIRC' | |
985 _lirclibs='' | |
986 fi | |
987 | |
525 | 988 if [ $_png = yes ]; then |
660
29c9635aa144
Changed vo png to use -lz which is needed on some systems.
atmosfear
parents:
642
diff
changeset
|
989 _libpng='-lpng -lz' |
525 | 990 fi |
1 | 991 |
697 | 992 # Checking for CFLAGS |
717 | 993 if [ "$_profile" != "" ] || [ "$_debug" != "" ]; then |
994 CFLAGS="-O2 -march=$proc -mcpu=$proc $_debug $_profile" | |
995 else | |
996 if test -z "$CFLAGS"; then | |
997 CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math -fomit-frame-pointer" | |
697 | 998 fi |
717 | 999 fi |
1 | 1000 echo |
1001 echo "Creating $MCONF" | |
1002 cat > $MCONF << EOF | |
1003 | |
1004 # -------- Generated by ./configure ----------- | |
1005 | |
1006 AR=ar | |
196 | 1007 CC=$_cc |
518 | 1008 X11DIR=$_x11libdir |
717 | 1009 # OPTFLAGS=-O4 $_profile $_debug -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math |
697 | 1010 OPTFLAGS=$CFLAGS |
14 | 1011 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib |
525 | 1012 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng |
1 | 1013 TERMCAP_LIB=$_libtermcap |
1014 XMM_LIBS = $_xmmplibs | |
1015 LIRC_LIBS = $_lirclibs | |
492 | 1016 CSS_LIB = $_csslib |
1017 CSS_INC = $_cssinc | |
1 | 1018 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1019 DS_DEP = $_dshowdep |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1020 DS_LIB = $_dshowlib |
912 | 1021 prefix = $_prefix |
958
162a78d3cc08
FreeBSD support by Vladimir Kushnir vkushnir@Alfacom.net
arpi_esp
parents:
947
diff
changeset
|
1022 ARCH_LIBS = -ldl -lpthread |
1 | 1023 |
1024 EOF | |
1025 # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak | |
1026 | |
1027 echo "Creating $CCONF" | |
1028 | |
1029 if [ "$_mmx" = "yes" ]; then | |
1030 _mmx='#define HAVE_MMX' | |
1031 else | |
1032 _mmx='#undef HAVE_MMX' | |
1033 fi | |
1034 | |
350 | 1035 if [ "$_mmx2" = "yes" ]; then |
1036 _mmx2='#define HAVE_MMX2' | |
1037 else | |
1038 _mmx2='#undef HAVE_MMX2' | |
1039 fi | |
1040 | |
1 | 1041 if [ $_3dnow = yes ]; then |
1042 _3dnowm='#define HAVE_3DNOW' | |
1043 else | |
1044 _3dnowm='#undef HAVE_3DNOW' | |
1045 fi | |
1046 | |
734 | 1047 if [ $_3dnowex = yes ]; then |
1048 _3dnowexm='#define HAVE_3DNOWEX' | |
1049 else | |
1050 _3dnowexm='#undef HAVE_3DNOWEX' | |
1051 fi | |
1052 | |
1 | 1053 if [ $_sse = yes ]; then |
1054 _ssem='#define HAVE_SSE' | |
1055 else | |
1056 _ssem='#undef HAVE_SSE' | |
1057 fi | |
1058 | |
1059 # --- | |
1060 | |
1061 _vosrc='' | |
965 | 1062 _aosrc='' |
1 | 1063 |
525 | 1064 if [ $_png = yes ]; then |
1065 _png='#define HAVE_PNG' | |
1066 _vosrc=$_vosrc' vo_png.c' | |
1067 else | |
1068 _png='#undef HAVE_PNG' | |
1069 fi | |
1070 | |
1071 | |
1 | 1072 if [ $_mlib = yes ]; then |
1073 _mlib='#define HAVE_MLIB' | |
1074 _vosrc=$_vosrc' yuv2rgb_mlib.c' | |
1075 else | |
1076 _mlib='#undef HAVE_MLIB' | |
1077 fi | |
1078 | |
1079 # --- | |
1080 | |
1081 if [ $_gl = yes ]; then | |
1082 _gl='#define HAVE_GL' | |
1083 _vosrc=$_vosrc' vo_gl.c' | |
1084 else | |
1085 _gl='#undef HAVE_GL' | |
1086 fi | |
1087 | |
1088 if [ $_sdl = yes ]; then | |
1089 _sdldef='#define HAVE_SDL' | |
1090 _vosrc=$_vosrc' vo_sdl.c' | |
965 | 1091 _aosrc=$_aosrc' ao_sdl.c' |
1 | 1092 else |
1093 _sdldef='#undef HAVE_SDL' | |
1094 fi | |
1095 | |
1096 if [ $_x11 = yes ]; then | |
1097 _x11='#define HAVE_X11' | |
1098 _vosrc=$_vosrc' vo_x11.c' | |
1099 else | |
1100 _x11='#undef HAVE_X11' | |
1101 fi | |
1102 | |
1103 if [ $_xv = yes ]; then | |
1104 _xv='#define HAVE_XV' | |
1105 _vosrc=$_vosrc' vo_xv.c' | |
1106 else | |
1107 _xv='#undef HAVE_XV' | |
1108 fi | |
1109 | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1110 if [ $_vm = yes ]; then |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1111 _vm='#define HAVE_XF86VM' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1112 else |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1113 _vm='#undef HAVE_XF86VM' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1114 fi |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1115 |
1 | 1116 # --- |
1117 | |
1118 if [ $_mga = yes ]; then | |
1119 _mga='#define HAVE_MGA' | |
1120 _vosrc=$_vosrc' vo_mga.c' | |
1121 else | |
1122 _mga='#undef HAVE_MGA' | |
1123 fi | |
1124 if [ $_xmga = yes ]; then | |
1125 _vosrc=$_vosrc' vo_xmga.c' | |
1126 fi | |
1127 | |
1128 if [ $_syncfb = yes ]; then | |
1129 _syncfb='#define HAVE_SYNCFB' | |
1130 _vosrc=$_vosrc' vo_syncfb.c' | |
1131 else | |
1132 _syncfb='#undef HAVE_SYNCFB' | |
1133 fi | |
1134 | |
1135 if [ $_3dfx = yes ]; then | |
1136 _3dfx='#define HAVE_3DFX' | |
1137 _vosrc=$_vosrc' vo_3dfx.c' | |
1138 else | |
1139 _3dfx='#undef HAVE_3DFX' | |
1140 fi | |
1141 | |
287 | 1142 if [ $_svga = yes ]; then |
1143 _svga='#define HAVE_SVGALIB' | |
1144 _vosrc=$_vosrc' vo_svga.c' | |
1145 else | |
1146 _svga='#undef HAVE_SVGALIB' | |
1147 fi | |
1148 | |
11 | 1149 if [ $_dga = yes ]; then |
1150 _dga='#define HAVE_DGA' | |
38 | 1151 _vosrc=$_vosrc' vo_dga.c vo_fsdga.c' |
11 | 1152 else |
1153 _dga='#undef HAVE_DGA' | |
1154 fi | |
1155 | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1156 if [ $_dga2 = yes ]; then |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1157 _dga2='#define HAVE_DGA2' |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1158 _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
|
1159 else |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1160 _dga2='#undef HAVE_DGA2' |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1161 fi |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1162 |
225 | 1163 if [ $_fbdev = yes ]; then |
1164 _fbdev='#define HAVE_FBDEV' | |
1165 _vosrc=$_vosrc' vo_fbdev.c' | |
1166 else | |
1167 _fbdev='#undef HAVE_FBDEV' | |
1168 fi | |
1169 | |
1 | 1170 if [ $_mpg123 = yes ]; then |
1171 _mpg123='#define DEFAULT_MPG123' | |
1172 else | |
1173 _mpg123='#undef DEFAULT_MPG123' | |
1174 fi | |
1175 | |
723 | 1176 if [ $_gui = yes ]; then |
1177 _gui='#define HAVE_GUI' | |
1178 else | |
1179 _gui='#undef HAVE_GUI' | |
1180 fi | |
1181 | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1182 if [ "$_alsaver" != "notfound" ]; then |
1011
d1e70889094e
Fixing ./configure, please LEARN writing shell scripts before committing ...
lgb
parents:
1008
diff
changeset
|
1183 [ $_alsaver == '0.5.x' ] && { _aosrc="$_aosrc ao_alsa5.c"; $_alsa='#define HAVE_ALSA5'; } |
1004 | 1184 # [ $_alsaver == '0.9.x' ] && { _aosrc="$_aosrc ao_alsa9.c"; } |
1008 | 1185 else |
1186 _alsa=' ' | |
1004 | 1187 fi |
1188 | |
1 | 1189 cat > $CCONF << EOF |
1190 | |
1191 /* -------- Generated by ./configure ----------- */ | |
1192 | |
1193 /* Define this to enable avg. byte/sec-based AVI sync method by default: | |
1194 (use -bps or -nobps commandline option for run-time method selection) */ | |
1195 #undef AVI_SYNC_BPS | |
1196 | |
1197 /* Undefine this if you want soundcard-only timing by default: | |
1198 You can still change this with the -alsa or -noalsa command-line option! | |
1199 (This function was originally impemented to solve ALSA driver's big | |
1200 buffer problems, but it seems to be useful for every soundcard drivers) */ | |
1201 #define ALSA_TIMER | |
1202 | |
732
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1203 /* Undefine this if you don't want to select mono audio (left or right) |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1204 with a stereo MPEG layer 2/3 audio stream. The command-line option |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1205 -stereo has three possible values (0 for stereo, 1 for left-only, 2 for |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1206 right-only), with 0 being the default. |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1207 */ |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1208 #define USE_FAKE_MONO |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1209 |
1 | 1210 /* Undefine this if your soundcard driver has no working select(). |
1211 If you have kernel Oops, player hangups, or just no audio, you should | |
1212 try to recompile MPlayer with this option disabled! */ | |
463 | 1213 $_select |
1 | 1214 |
1215 /* You have a choice for MP3 decoding: mp3lib(mpg123) or Win32(l3codeca.acm) | |
1216 #define this if you prefer mpg123 (with 3Dnow! support) than l3codeca.acm | |
1217 (with mmx/sse optimizations) | |
1218 You can still change it runtime using -afm 1 (mpg123) or -afm 4 (l3codeca)*/ | |
1219 $_mpg123 | |
1220 | |
1221 /* XMMP support: (test code) */ | |
1222 $_xmmpaudio | |
1223 #define LIBDIR "/usr/local/lib" | |
1224 #define PLUGINDIR LIBDIR "/xmmp/Plugins" | |
1225 #define XMMP_AUDIO_DRIVER PLUGINDIR "/Sound/oss.so" | |
1226 | |
755 | 1227 /* set up max. outburst. use 65536 for ALSA 0.5, for others 16384 is enough */ |
1228 #define MAX_OUTBURST 65536 | |
1229 | |
586 | 1230 /* set up audio OUTBURST. Do not change this! */ |
1231 #ifdef USE_XMMP_AUDIO | |
1232 #define OUTBURST 4096 | |
1233 #else | |
1234 //#define OUTBURST 1024 | |
1235 #define OUTBURST 512 | |
1236 #endif | |
1237 | |
1 | 1238 /* LIRC (remote control, see www.lirc.org) support: */ |
1239 $_lircdefs | |
1240 | |
492 | 1241 /* DeCSS support using libcss */ |
1242 $_css | |
1243 | |
41 | 1244 /* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */ |
1245 #define MPEG12_POSTPROC | |
1246 | |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1247 /* DirectShow support */ |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1248 $_dshow |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1249 |
642 | 1250 /* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... signal 4]*/ |
1251 $_fastmemcpy | |
1252 | |
723 | 1253 /* gui support, please do not edit this option */ |
1254 $_gui | |
1004 | 1255 #define PREFIX "$_prefix" |
723 | 1256 |
1008 | 1257 /* ALSA support */ |
1258 $_alsa | |
1259 | |
947
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
1260 /* Enable fast OSD/SUB renderer (looks ugly, but uses less CPU power) */ |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
1261 #undef FAST_OSD |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
1262 #undef FAST_OSD_TABLE |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
1263 |
1 | 1264 /* Define if your processor stores words with the most significant |
1265 byte first (like Motorola and SPARC, unlike Intel and VAX). */ | |
1266 /* #define WORDS_BIGENDIAN */ | |
1267 | |
1268 #define ARCH_X86 | |
1269 | |
849 | 1270 /* Define this to any prefered value from 386 up to infinity with step 100 */ |
1271 #define __CPU__ $iproc | |
1272 | |
1273 /*---------------------------------------------------------------------------- | |
1274 ** | |
1275 ** NOTE: Instead of modifying these definitions here, use the | |
1276 ** --enable/--disable options of the ./configure script! | |
1277 ** See ./configure --help for details. | |
1278 ** | |
1279 *---------------------------------------------------------------------------*/ | |
1 | 1280 |
1281 /* termcap flag for getch2.c */ | |
1282 $_termcap | |
525 | 1283 $_png |
1 | 1284 |
1285 /* Extension defines */ | |
1286 $_mlib // available only on solaris | |
1287 $_3dnowm // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.) | |
734 | 1288 $_3dnowexm // only define if you have 3DNOWEX (AMD Athlon, etc.) |
1 | 1289 $_mmx // only define if you have MMX |
350 | 1290 $_mmx2 // only define if you have MMX2 |
1 | 1291 $_ssem // only define if you have SSE (Intel Pentium III or Celeron II) |
1292 | |
1293 /* libvo options */ | |
1294 #define SCREEN_SIZE_X $_x | |
1295 #define SCREEN_SIZE_Y $_y | |
1296 $_x11 | |
1297 $_xv | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1298 $_vm |
1 | 1299 $_gl |
11 | 1300 $_dga |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1301 $_dga2 |
1 | 1302 $_sdldef |
704 | 1303 /* defined for SDLlib with keyrepeat bugs (before 1.2.1) */ |
1304 $_sdlbuggy | |
1 | 1305 $_3dfx |
1306 $_mga | |
1307 $_syncfb | |
225 | 1308 $_fbdev |
287 | 1309 $_svga |
1 | 1310 |
23 | 1311 #if defined(HAVE_GL)||defined(HAVE_X11)||defined(HAVE_XV) |
1 | 1312 #define X11_FULLSCREEN |
1313 #endif | |
1314 | |
1315 EOF | |
1316 | |
1317 echo "Creating libvo/config.mak" | |
1318 | |
1319 _voobj=`echo $_vosrc | sed -e 's/\.c/\.o/g'` | |
1320 | |
1321 cat > libvo/config.mak << EOF | |
1322 | |
1323 include ../config.mak | |
1324 | |
1325 OPTIONAL_SRCS=$_vosrc | |
1326 OPTIONAL_OBJS=$_voobj | |
1327 | |
1328 EOF | |
1329 | |
965 | 1330 echo "Creating libao2/config.mak" |
1331 | |
1332 _aoobj=`echo $_aosrc | sed -e 's/\.c/\.o/g'` | |
1333 | |
1334 cat > libao2/config.mak << EOF | |
1335 | |
1336 include ../config.mak | |
1337 | |
1338 OPTIONAL_SRCS=$_aosrc | |
1339 OPTIONAL_OBJS=$_aoobj | |
1340 | |
1341 EOF | |
1342 | |
1 | 1343 echo "Creating libac3/config.mak" |
1344 | |
1345 if [ $_sse = yes ]; then | |
1346 _downmixc='downmix/downmix_kni.S' | |
1347 _downmixo='downmix/downmix_kni.o' | |
1348 else | |
825
67fe2eebe542
libac3 3dnow optimizations! It speed up my Duron from 4.5 up to 3.5 prcnts of cpu loading
nickols_k
parents:
819
diff
changeset
|
1349 if [ $_3dnow = yes ]; then |
67fe2eebe542
libac3 3dnow optimizations! It speed up my Duron from 4.5 up to 3.5 prcnts of cpu loading
nickols_k
parents:
819
diff
changeset
|
1350 _downmixc='downmix/downmix_3dnow.S' |
67fe2eebe542
libac3 3dnow optimizations! It speed up my Duron from 4.5 up to 3.5 prcnts of cpu loading
nickols_k
parents:
819
diff
changeset
|
1351 _downmixo='downmix/downmix_3dnow.o' |
67fe2eebe542
libac3 3dnow optimizations! It speed up my Duron from 4.5 up to 3.5 prcnts of cpu loading
nickols_k
parents:
819
diff
changeset
|
1352 else |
1 | 1353 if [ $_binutils = yes ]; then |
1354 _downmixc='downmix/downmix_i386.S' | |
1355 _downmixo='downmix/downmix_i386.o' | |
1356 else | |
1357 _downmixc='downmix/downmix.c' | |
1358 _downmixo='downmix/downmix.o' | |
1359 cat << EOF | |
1360 | |
1361 !!! Warning! fallback to slow downmix.c due the old binutils. | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1362 !!! Upgrade it for better AC3 audio decoding performance! |
1 | 1363 |
1364 EOF | |
1365 fi | |
1366 fi | |
825
67fe2eebe542
libac3 3dnow optimizations! It speed up my Duron from 4.5 up to 3.5 prcnts of cpu loading
nickols_k
parents:
819
diff
changeset
|
1367 fi |
1 | 1368 cat > libac3/config.mak << EOF |
1369 | |
1370 include ../config.mak | |
1371 | |
1372 OPTIONAL_SRCS = $_downmixc | |
1373 OPTIONAL_OBJS = $_downmixo | |
1374 | |
1375 EOF | |
1376 | |
1377 echo "Creating mp3lib/config.mak" | |
1378 | |
734 | 1379 if [ $_3dnowex = yes ]; then |
787 | 1380 _mp3libobjectsrcs='dct36_k7.s dct64_k7.s decode_k7.s dct36_3dnow.s dct64_3dnow.s decode_3dnow.s' |
1381 _mp3libobjectobjs='dct36_k7.o dct64_k7.o decode_k7.o dct36_3dnow.o dct64_3dnow.o decode_3dnow.o' | |
734 | 1382 else |
1 | 1383 if [ $_3dnow = yes ]; then |
787 | 1384 _mp3libobjectsrcs='dct36_3dnow.s dct64_3dnow.s decode_3dnow.s' |
1385 _mp3libobjectobjs='dct36_3dnow.o dct64_3dnow.o decode_3dnow.o' | |
1 | 1386 else |
787 | 1387 if [ $_sse = yes ]; then |
1388 _mp3libobjectsrcs='decode_sse.s' | |
1389 _mp3libobjectobjs='decode_sse.o' | |
1390 else | |
1391 _mp3libobjectsrcs= | |
1392 _mp3libobjectobjs= | |
1393 fi | |
1 | 1394 fi |
734 | 1395 fi |
1 | 1396 |
1397 cat > mp3lib/config.mak << EOF | |
1398 | |
1399 include ../config.mak | |
1400 | |
787 | 1401 OPTIONAL_SRCS = $_mp3libobjectsrcs |
1402 OPTIONAL_OBJS = $_mp3libobjectobjs | |
1 | 1403 |
1404 EOF | |
1405 | |
1406 cat << EOF | |
1407 | |
1408 Config files successfully generated by ./configure ! | |
1409 Please check config.h and config.mak files, tune CPU | |
1410 and optimization flags if you don't like these defaults. | |
1411 You can compile the program with 'make dep;make' and | |
1412 install with 'make install'. Good luck! | |
1413 | |
1414 EOF | |
1415 | |
1416 if [ $_mtrr = yes ]; then | |
1417 echo "Please check mtrr settings at /proc/mtrr (see DOCS/MTRR)" | |
1418 echo | |
1419 fi | |
1420 | |
548
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
1421 if [ $_sdl = outdated ]; then |
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
1422 echo "You have libSDL installed, but your version is outdated (earlier then" |
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
1423 echo "v.1.1.7), SDL support has been disabled please update, if you want to" |
965 | 1424 echo "use it (libSDL v1.1.8 and v1.2.0/1 are tested and known to work, recent" |
548
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
1425 echo "versions are available from http://www.libsdl.org/)." |
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
1426 echo "After updating you need to re-run ./configure and recompile to enable SDL." |
965 | 1427 echo "(If you only want to use SDLlib audio driver older versions might work, you" |
1428 echo "can use --enable-sdl to force using SDLlib)" | |
1 | 1429 echo |
1430 fi | |
1431 | |
1432 if [ $_win32libdirnotify = yes ]; then | |
1433 echo "Missing WIN32 codecs dir at $_win32libdir !" | |
1434 echo "Make it and copy DLL files to there! (You can get them from your windows" | |
1435 echo "directory or download ftp://thot.banki.hu/esp-team/linux/MPlayer/w32codec.zip" | |
1436 else | |
1437 echo "Ok, Win32 codecs directory at $_win32libdir already exists." | |
1438 fi | |
1439 |