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