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