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