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