Mercurial > mplayer.hg
annotate configure @ 1117:7e86f5809d33
*** empty log message ***
author | gabucino |
---|---|
date | Tue, 12 Jun 2001 18:03:19 +0000 |
parents | ce92a1d0c60c |
children | cd6a163d8273 |
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 |
1103
d0f59ca7346f
Fixed sdl detect on systems without sdl installed.
atmosfear
parents:
1102
diff
changeset
|
530 if test ! -z "`$_sdlconfig --version 2>/dev/null`" ; then |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
531 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
|
532 _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
|
533 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
|
534 if test "$_sdlversion" -lt 121 ; then |
1020
72cacd3b8f30
Solaris 8 support - patch by Marcus Comstedt <marcus@idonex.se>
arpi_esp
parents:
1019
diff
changeset
|
535 |
704 | 536 _sdlbuggy='#define BUGGY_SDL' |
537 else | |
538 _sdlbuggy='#undef BUGGY_SDL' | |
539 fi | |
558
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
540 _sdl=yes |
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
541 else |
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
542 _sdl=outdated |
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
543 fi |
30d9f61e9c0b
fixed sdl detection (showed outdated even if not detected)
atmosfear
parents:
548
diff
changeset
|
544 fi |
1103
d0f59ca7346f
Fixed sdl detect on systems without sdl installed.
atmosfear
parents:
1102
diff
changeset
|
545 fi |
1 | 546 |
661 | 547 # Atmosfear: added libcss autodetect |
548 _css=no | |
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/lib/libcss.so" ; then |
661 | 550 _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
|
551 if test -s "/usr/local/include/css.h" ; then |
661 | 552 _cssincdir="/usr/local/include" |
553 _css=yes | |
710 | 554 fi |
555 else | |
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/lib/libcss.so" ; then |
710 | 557 _csslibdir="/usr/lib/" |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
558 if test -s "/usr/include/css.h" ; then |
661 | 559 _cssincdir="/usr/include/" |
560 _css=yes | |
561 fi | |
710 | 562 fi |
661 | 563 fi |
564 | |
1 | 565 _termcap=no |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
566 $_cc $TMPC -o $TMPO -ltermcap > /dev/null 2>&1 && _termcap=yes |
1 | 567 |
525 | 568 _png=no |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
569 $_cc $TMPC -o $TMPO -lpng -lz -lm > /dev/null 2>&1 && _png=yes |
525 | 570 |
1 | 571 _binutils=no |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
572 $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes |
1 | 573 |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
574 # echo binutils: $_binutils |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
575 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
576 |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
577 # ----------- 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
|
578 |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
579 # 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
|
580 _socklib= |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
581 $_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
|
582 $_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
|
583 |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
584 if [ $_x11 = auto ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
585 _x11=no |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
586 $_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
|
587 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
588 |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
589 if [ $_x11 = yes ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
590 |
1038
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 -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
|
592 $_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
|
593 $_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
|
594 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
595 $_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
|
596 |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
597 cat > $TMPC << EOF |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
598 #include <GL/gl.h> |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
599 int main( void ) { return 0; } |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
600 EOF |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
601 $_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
|
602 { _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
|
603 |
59 | 604 cat > $TMPC << EOF |
605 #include <stdio.h> | |
606 #include <X11/Xlib.h> | |
607 #include <X11/extensions/xf86dga.h> | |
608 int main (void) { return 0;} | |
609 EOF | |
610 | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
611 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm $_socklib > /dev/null 2>&1 && _dga=yes |
59 | 612 # Note: the -lXxf86vm library is the VideoMode extension and though it's |
613 # not needed for DGA, AFAIK every distribution packages together with DGA | |
614 # stuffs named 'X extensions' or something similar. This check can be usefull | |
615 # for further mplayer versions to set resolution by mplayer itself. | |
616 # If you run into problems, remove '-lXxf86vm'. | |
617 | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
618 # 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
|
619 cat > $TMPC << EOF |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
620 #include <stdio.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
621 #include <X11/Xlib.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
622 #include <X11/extensions/xf86dga.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
623 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
|
624 EOF |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
625 |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
626 _dga2=no |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
627 $_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
|
628 |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
629 fi |
1 | 630 |
631 rm -f $TMPC $TMPO | |
632 | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
633 |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
634 # --- |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
635 # 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
|
636 |
1042
b333271f4e7c
Solaris 8 DVD support and other fixes by Juergen Keil <jk@tools.de>
arpi_esp
parents:
1038
diff
changeset
|
637 cat > $TMPC << EOF |
b333271f4e7c
Solaris 8 DVD support and other fixes by Juergen Keil <jk@tools.de>
arpi_esp
parents:
1038
diff
changeset
|
638 #include <sys/soundcard.h> |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
639 int main( void ) { return 0; } |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
640 EOF |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
641 |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
642 _sys_soundcard_h=no |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
643 $_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
|
644 |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
645 |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
646 cat > $TMPC << EOF |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
647 #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
|
648 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
|
649 EOF |
b333271f4e7c
Solaris 8 DVD support and other fixes by Juergen Keil <jk@tools.de>
arpi_esp
parents:
1038
diff
changeset
|
650 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
651 _oss_audio=no |
1042
b333271f4e7c
Solaris 8 DVD support and other fixes by Juergen Keil <jk@tools.de>
arpi_esp
parents:
1038
diff
changeset
|
652 $_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
|
653 |
b333271f4e7c
Solaris 8 DVD support and other fixes by Juergen Keil <jk@tools.de>
arpi_esp
parents:
1038
diff
changeset
|
654 |
b333271f4e7c
Solaris 8 DVD support and other fixes by Juergen Keil <jk@tools.de>
arpi_esp
parents:
1038
diff
changeset
|
655 cat > $TMPC << EOF |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
656 #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
|
657 #include <sys/audioio.h> |
b333271f4e7c
Solaris 8 DVD support and other fixes by Juergen Keil <jk@tools.de>
arpi_esp
parents:
1038
diff
changeset
|
658 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
|
659 EOF |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
660 |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
661 _sun_audio=no |
1042
b333271f4e7c
Solaris 8 DVD support and other fixes by Juergen Keil <jk@tools.de>
arpi_esp
parents:
1038
diff
changeset
|
662 $_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
|
663 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
664 |
1 | 665 # --- |
666 | |
1004 | 667 cat > $TMPC << EOF |
668 #include <sys/asoundlib.h> | |
1029 | 669 #include <sys/soundcard.h> |
670 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==5)return 0; return 1; } | |
1004 | 671 EOF |
672 | |
1029 | 673 _alsaver='not found' |
674 $_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
|
675 [ $_alsa = 'yes' ] && $TMPO && { _alsaver='0.5.x'; } |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
676 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
677 if [ "$_alsaver" = 'not found' ]; then |
1004 | 678 cat > $TMPC << EOF |
679 #include <sys/asoundlib.h> | |
1029 | 680 #include <sys/soundcard.h> |
681 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==9)return 0; return 1; } | |
1004 | 682 EOF |
683 | |
1029 | 684 _alsaver='not found' |
685 $_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
|
686 [ $_alsa = 'yes' ] && $TMPO && { _alsaver='0.9.x'; } |
1004 | 687 fi |
688 | |
689 # --- | |
690 | |
1029 | 691 cat > $TMPC << EOF |
692 #include <esd.h> | |
693 int main( void ){ return 0; } | |
694 EOF | |
695 | |
696 $_cc -o $TMPO -lesd $TMPC 2> /dev/null || { _esd=no; } | |
697 | |
698 # --- | |
699 | |
1 | 700 # check for the parameters. |
701 | |
912 | 702 _prefix="/usr/local" |
703 | |
1 | 704 for ac_option |
705 do | |
706 case "$ac_option" in | |
717 | 707 --enable-profile) |
708 _profile='-p' | |
709 ;; | |
711
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
710 --enable-debug) |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
711 _debug='-g' |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
712 ;; |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
713 --enable-debug=*) |
1065 | 714 _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
|
715 ;; |
492 | 716 --enable-css) |
717 _css=yes | |
718 ;; | |
525 | 719 --enable-png) |
720 _png=yes | |
721 ;; | |
1 | 722 --enable-sse) |
723 _sse=yes | |
724 ;; | |
725 --enable-3dnow) | |
726 _3dnow=yes | |
727 ;; | |
734 | 728 --enable-3dnowex) |
729 _3dnow=yes | |
730 _3dnowex=yes | |
731 ;; | |
1 | 732 --enable-mmx) |
733 _mmx=yes | |
734 ;; | |
350 | 735 --enable-mmx2) |
736 _mmx2=yes | |
737 ;; | |
72 | 738 --enable-mtrr) |
739 _mtrr=yes | |
740 ;; | |
1 | 741 --enable-gl) |
742 _gl=yes | |
743 ;; | |
744 --enable-sdl) | |
745 _sdl=yes | |
746 ;; | |
747 --enable-mga) | |
748 _mga=yes | |
749 ;; | |
750 --enable-xmga) | |
751 _xmga=yes | |
752 ;; | |
287 | 753 --enable-svga) |
754 _svga=yes | |
755 ;; | |
11 | 756 --enable-dga) |
757 _dga=yes | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
758 ;; |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
759 --enable-dga2) |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
760 _dga2=yes |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
761 ;; |
1 | 762 --enable-xv) |
763 _xv=yes | |
764 ;; | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
765 --enable-vm) |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
766 _vm=yes |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
767 ;; |
1 | 768 --enable-3dfx) |
769 _3dfx=yes | |
770 ;; | |
771 --enable-syncfb) | |
772 _syncfb=yes | |
773 ;; | |
225 | 774 --enable-fbdev) |
775 _fbdev=yes | |
776 ;; | |
1 | 777 --enable-mlib) |
778 _mlib=yes | |
779 ;; | |
780 --enable-termcap) | |
781 _termcap=yes | |
782 ;; | |
783 --enable-xmmp) | |
784 _xmmp=yes | |
785 ;; | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
786 --enable-ossaudio) |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
787 _oss_audio=yes |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
788 ;; |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
789 --enable-sunaudio) |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
790 _sun_audio=yes |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
791 ;; |
1 | 792 --enable-lirc) |
793 _lirc=yes | |
794 ;; | |
463 | 795 --enable-select) |
796 _select='#define HAVE_AUDIO_SELECT' | |
797 ;; | |
723 | 798 --enable-gui) |
799 _gui=yes | |
800 ;; | |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
801 --enable-streaming) |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
802 _streaming=yes |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
803 ;; |
492 | 804 --disable-css) |
805 _css=no | |
806 ;; | |
525 | 807 --disable-png) |
808 _png=no | |
809 ;; | |
1 | 810 --disable-sse) |
811 _sse=no | |
812 ;; | |
813 --disable-3dnow) | |
814 _3dnow=no | |
734 | 815 _3dnowex=no |
816 ;; | |
817 --disable-3dnowex) | |
818 _3dnowex=no | |
1 | 819 ;; |
820 --disable-mmx) | |
821 _mmx=no | |
350 | 822 _mmx2=no |
1 | 823 ;; |
696 | 824 --disable-mmx2) |
825 _mmx2=no | |
826 ;; | |
72 | 827 --disable-mtrr) |
828 _mtrr=no | |
829 ;; | |
1 | 830 --disable-gl) |
831 _gl=no | |
832 ;; | |
833 --disable-sdl) | |
834 _sdl=no | |
835 ;; | |
836 --disable-mga) | |
837 _mga=no | |
838 ;; | |
839 --disable-xmga) | |
840 _xmga=no | |
841 ;; | |
842 --disable-xv) | |
843 _xv=no | |
844 ;; | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
845 --disable-vm) |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
846 _vm=no |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
847 ;; |
1 | 848 --disable-mlib) |
849 _mlib=no | |
850 ;; | |
287 | 851 --disable-svga) |
852 _svga=no | |
853 ;; | |
59 | 854 --disable-dga) |
855 _dga=no | |
856 ;; | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
857 --disable-dga2) |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
858 _dga2=no |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
859 ;; |
225 | 860 --disable-fbdev) |
861 _fbdev=no | |
862 ;; | |
1 | 863 --disable-termcap) |
864 _termcap=no | |
865 ;; | |
463 | 866 --disable-select) |
867 _select='#undef HAVE_AUDIO_SELECT' | |
868 ;; | |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
869 --disable-dshow) |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
870 _dshow=no |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
871 ;; |
642 | 872 --disable-fastmemcpy) |
873 _fastmemcpy=no | |
874 ;; | |
723 | 875 --disable-gui) |
876 _gui=no | |
877 ;; | |
1004 | 878 --disable-alsa) |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
879 _alsaver='notfound' |
1004 | 880 _alsa=no |
881 ;; | |
1029 | 882 --disable-esd) |
883 _esd=no | |
884 ;; | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
885 --disable-ossaudio) |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
886 _oss_audio=no |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
887 ;; |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
888 --disable-sunaudio) |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
889 _sun_audio=no |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
890 ;; |
1 | 891 --with-win32libdir=*) |
892 _win32libdir=`echo $ac_option | cut -d '=' -f 2` | |
11 | 893 _win32libdirnotify=no |
1 | 894 ;; |
492 | 895 --with-csslibdir=*) |
896 _csslibdir=`echo $ac_option | cut -d '=' -f 2` | |
897 _css='yes'; | |
898 ;; | |
899 --with-cssincdir=*) | |
900 _cssincdir=`echo $ac_option | cut -d '=' -f 2` | |
901 _css='yes'; | |
902 ;; | |
1 | 903 --size-x=*) |
904 _x=`echo $ac_option | cut -d '=' -f 2` | |
905 ;; | |
906 --size-y=*) | |
907 _y=`echo $ac_option | cut -d '=' -f 2` | |
908 ;; | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
909 --with-x11libdir=*) |
912 | 910 ;; |
911 --prefix=*) | |
912 _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
|
913 ;; |
196 | 914 --cc=*) |
915 ;; | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
916 --as=*) |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
917 ;; |
1 | 918 esac |
919 done | |
920 | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
921 # Checking assembler (_as) compatibility... |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
922 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
|
923 echo $_echo_n "Checking assembler (as) ... $as_version, $_echo_c" |
1023 | 924 _pref_as_version='2.9.1' |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
925 ### 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
|
926 # cat > astest.S <<EOF |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
927 # filds -2(%ebp) |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
928 # EOF |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
929 # $_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
|
930 |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
931 cat > $TMPS <<EOF |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
932 nop |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
933 EOF |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
934 |
987 | 935 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
|
936 cat >> $TMPS <<EOF |
987 | 937 emms |
938 EOF | |
939 fi | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
940 |
987 | 941 if [ $_3dnow = 'yes' ]; then |
1023 | 942 _pref_as_version='2.10.1' |
1019 | 943 cat >> $TMPS <<EOF |
987 | 944 femms |
945 EOF | |
946 fi | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
947 |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
948 if [ $_3dnowex = 'yes' ]; then |
1023 | 949 _pref_as_version='2.10.1' |
1019 | 950 cat >> $TMPS <<EOF |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
951 pswapd %mm0, %mm0 |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
952 EOF |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
953 fi |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
954 |
987 | 955 if [ $_mmx2 = 'yes' ]; then |
1023 | 956 _pref_as_version='2.10.1' |
1019 | 957 cat >> $TMPS <<EOF |
987 | 958 movntq %mm0, (%eax) |
959 EOF | |
960 fi | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
961 |
987 | 962 if [ $_sse = 'yes' ]; then |
1023 | 963 _pref_as_version='2.10.1' |
1019 | 964 cat >> $TMPS <<EOF |
987 | 965 xorps %xmm0, %xmm0 |
966 EOF | |
1023 | 967 fi |
968 # Note: for SSE2 assembler v2.11 should be preferred --Nick | |
969 #if [ $_sse2 = 'yes' ]; then | |
970 #_pref_as_version='2.11' | |
971 #cat >> $TMPS <<EOF | |
972 #xorpd %xmm0, %xmm0 | |
973 #EOF | |
974 #fi | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
975 $_as $TMPS -o $TMPO > /dev/null 2>&1 || as_verc_fail=yes |
1023 | 976 rm -f $TMPS $TMPO $TMPC |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
977 |
990 | 978 if test "$as_verc_fail" != "yes"; then |
979 echo "ok" | |
980 else | |
981 echo "failed" | |
1023 | 982 echo "Please upgrade(downgrade) binutils to "$_pref_as_version"..." |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
983 if [ $_skip_as_check = 'no' ]; then |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
984 exit |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
985 else |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
986 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
|
987 fi |
987 | 988 fi |
989 | |
1024 | 990 # Checking kernel version... |
991 _k_verc_problem=no | |
1025 | 992 system_name=`uname -s 2>&1` |
1024 | 993 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
|
994 echo $_echo_n "Checking $system_name kernel version ... $_echo_c" |
1024 | 995 case $kernel_version in |
996 '') kernel_version="?.??"; _k_verc_fail=yes;; | |
1025 | 997 [0-1].[0-99].[0-99]|2.[0-3].[0-99]) |
1024 | 998 _k_verc_problem=yes;; |
999 esac | |
1000 if [ $_k_verc_problem = 'yes' ] && [ $_sse = 'yes' ]; then | |
1001 _k_verc_fail=yes | |
1002 fi | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1003 if [ ! -z "$_k_verc_fail" ]; then |
1025 | 1004 echo "$kernel_version, fail" |
1024 | 1005 echo "WARNING! You want to run mplayer on this system then be prepared for problems" |
1006 else | |
1025 | 1007 echo "$kernel_version, ok" |
1024 | 1008 fi |
987 | 1009 |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1010 if [ $_x11 = 'yes' ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1011 if [ $_mga = 'yes' ]; then |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1012 _xmga=yes |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1013 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1014 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1015 |
1 | 1016 # to screen. |
912 | 1017 echo "Install prefix: $_prefix" |
1 | 1018 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )" |
1019 echo "Checking for cpu type ... $pname" | |
1020 echo "Optimizing to ... $proc" | |
1021 echo "Checking for mmx support ... $_mmx" | |
350 | 1022 echo "Checking for mmx2 support ... $_mmx2" |
1 | 1023 echo "Checking for 3dnow support ... $_3dnow" |
734 | 1024 echo "Checking for 3dnowex support ... $_3dnowex" |
1 | 1025 echo "Checking for sse support ... $_sse" |
1026 echo "Checking for mtrr support ... $_mtrr" | |
1027 echo "Screen size ... ${_x}x${_y}" | |
1028 echo "Checking for X11 libs ... $_x11libdir" | |
1029 echo "Checking mga_vid device ... $_mga" | |
1030 echo "Checking for xmga ... $_xmga" | |
1031 echo "Checking for SDL ... $_sdl" | |
1032 echo "Checking for OpenGL ... $_gl" | |
1033 echo "Checking for Xv ... $_xv" | |
1034 echo "Checking for X11 ... $_x11" | |
59 | 1035 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
|
1036 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
|
1037 echo "Checking for Xf86VM ... $_vm" |
287 | 1038 echo "Checking for SVGAlib ... $_svga" |
225 | 1039 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
|
1040 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
|
1041 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
|
1042 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
|
1043 echo "Checking for Sun Audio ... $_sun_audio" |
492 | 1044 echo "Checking for DeCSS support ... $_css" |
525 | 1045 echo "Checking for PNG support ... $_png" |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1046 echo "Checking for DirectShow ... $_dshow" |
642 | 1047 echo "Checking for fastmemcpy ... $_fastmemcpy" |
1 | 1048 # write conf files. |
1049 | |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1050 _streamingdef='#undef STREAMING' |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1051 if [ $_streaming = yes ]; then |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1052 _streamingsrcs='asf_streaming.c network.c url.c http.c' |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1053 _streamingdef='#define STREAMING' |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1054 fi |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1055 |
1 | 1056 if [ $_gl = yes ]; then |
1057 _gllib='-lGL' | |
1058 fi | |
1059 | |
492 | 1060 if [ $_css = yes ]; then |
1020
72cacd3b8f30
Solaris 8 support - patch by Marcus Comstedt <marcus@idonex.se>
arpi_esp
parents:
1019
diff
changeset
|
1061 if [ ! -z "$_csslibdir" ]; then |
492 | 1062 _csslib="-L${_csslibdir} -lcss" |
1063 else | |
1064 _csslib='-lcss' | |
1065 fi | |
1066 _css='#define HAVE_LIBCSS' | |
1020
72cacd3b8f30
Solaris 8 support - patch by Marcus Comstedt <marcus@idonex.se>
arpi_esp
parents:
1019
diff
changeset
|
1067 if [ ! -z "$_cssincdir" ]; then |
492 | 1068 _cssinc="-I${_cssincdir}" |
1069 else | |
1070 _cssinc="" | |
1071 fi | |
1072 else | |
1073 _css='#undef HAVE_LIBCSS' | |
1074 _csslib='' | |
1075 _cssinc='' | |
1076 fi | |
1077 | |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1078 if [ $_dshow = yes ]; then |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1079 _dshowlib='-Lloader/DirectShow -lDS_Filter -lstdc++' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1080 _dshowdep='loader/DirectShow/libDS_Filter.a' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1081 _dshow='#define USE_DIRECTSHOW' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1082 else |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1083 _dshowlib='' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1084 _dshowdep='' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1085 _dshow='#undef USE_DIRECTSHOW' |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1086 fi |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1087 |
642 | 1088 if [ $_fastmemcpy = yes ]; then |
1089 _fastmemcpy='#define USE_FASTMEMCPY' | |
1090 else | |
1091 _fastmemcpy='#undef USE_FASTMEMCPY' | |
1092 fi | |
1093 | |
1 | 1094 if [ $_x11 = yes ]; then |
330 | 1095 if [ $_xdpms = yes ]; then |
1096 _x11lib='-lX11 -lXext -lXdpms' | |
1097 else | |
1098 _x11lib='-lX11 -lXext' | |
1099 fi | |
1 | 1100 fi |
1101 | |
1102 if [ $_xv = yes ]; then | |
1103 _xvlib='-lXv' | |
1104 fi | |
1105 | |
1106 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
|
1107 _sdllib=`$_sdlconfig --libs` |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1108 _sdlcflags=`$_sdlconfig --cflags` |
1 | 1109 fi |
1110 | |
14 | 1111 if [ $_dga = yes ]; then |
1112 _dgalib='-lXxf86dga' | |
1113 fi | |
1114 | |
287 | 1115 if [ $_svga = yes ]; then |
289 | 1116 _svgalib='-lvgagl -lvga' |
287 | 1117 fi |
1118 | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1119 if [ $_vm = yes ]; then |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1120 _vmlib='-lXxf86vm' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1121 fi |
14 | 1122 |
1 | 1123 if [ "$_termcap" = "yes" ]; then |
1124 _termcap='#define USE_TERMCAP' | |
1125 _libtermcap='-ltermcap' | |
1126 else | |
1127 _termcap='#undef USE_TERMCAP' | |
1128 _libtermcap='' | |
1129 fi | |
1130 | |
1131 if [ "$_xmmp" = "yes" ]; then | |
1132 _xmmpaudio='#define USE_XMMP_AUDIO' | |
1133 _xmmplibs='-Llibxmm -lxmm' | |
1134 else | |
1135 _xmmpaudio='#undef USE_XMMP_AUDIO' | |
1136 fi | |
1137 | |
1138 if [ "$_lirc" = "yes" ]; then | |
1139 _lircdefs='#define HAVE_LIRC' | |
1140 _lirclibs='-llirc_client' | |
1141 else | |
1142 _lircdefs='#undef HAVE_LIRC' | |
1143 _lirclibs='' | |
1144 fi | |
1145 | |
525 | 1146 if [ $_png = yes ]; then |
660
29c9635aa144
Changed vo png to use -lz which is needed on some systems.
atmosfear
parents:
642
diff
changeset
|
1147 _libpng='-lpng -lz' |
525 | 1148 fi |
1 | 1149 |
1034 | 1150 _aosrc='' |
1151 | |
1033 | 1152 _alsa5='#undef HAVE_ALSA5' |
1153 _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
|
1154 if [ $_alsa = 'yes' ]; then |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1155 [ $_alsaver = '0.5.x' ] && { _aosrc="$_aosrc ao_alsa5.c"; _alsa5='#define HAVE_ALSA5'; _alsalib='-lasound'; } |
1114 | 1156 [ $_alsaver = '0.9.x' ] && { _aosrc="$_aosrc ao_alsa9.c"; _alsa9='#define HAVE_ALSA9'; _alsalib='-lasound'; } |
1033 | 1157 fi |
1158 | |
1159 _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
|
1160 #if [ $_esd = 'yes' ]; then |
1033 | 1161 # _esdd='#define HAVE_ESD' |
1034 | 1162 # _aosrc="$_aosrc ao_esd.c" |
1033 | 1163 # _esdlib='-lesd' |
1164 #fi | |
1165 | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1166 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
|
1167 _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
|
1168 _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
|
1169 else |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1170 _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
|
1171 fi |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1172 |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1173 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
|
1174 _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
|
1175 _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
|
1176 else |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1177 _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
|
1178 fi |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1179 |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1180 if [ "$_sys_soundcard_h" = "yes" ]; then |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1181 _have_soundcard_h='#define HAVE_SYS_SOUNDCARD_H 1' |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1182 else |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1183 _have_soundcard_h='#undef HAVE_SYS_SOUNDCARD_H' |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1184 fi |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1185 |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1186 |
697 | 1187 # Checking for CFLAGS |
717 | 1188 if [ "$_profile" != "" ] || [ "$_debug" != "" ]; then |
1069
844e266c4ea9
For future development - the most warnings are enabled for --debug or --profile
nickols_k
parents:
1065
diff
changeset
|
1189 CFLAGS="-W -Wall -O2 -march=$proc -mcpu=$proc $_debug $_profile" |
717 | 1190 else |
1191 if test -z "$CFLAGS"; then | |
1192 CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math -fomit-frame-pointer" | |
697 | 1193 fi |
717 | 1194 fi |
1 | 1195 echo |
1196 echo "Creating $MCONF" | |
1197 cat > $MCONF << EOF | |
1198 | |
1199 # -------- Generated by ./configure ----------- | |
1200 | |
1201 AR=ar | |
196 | 1202 CC=$_cc |
518 | 1203 X11DIR=$_x11libdir |
717 | 1204 # OPTFLAGS=-O4 $_profile $_debug -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math |
697 | 1205 OPTFLAGS=$CFLAGS |
14 | 1206 # 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
|
1207 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib |
1 | 1208 TERMCAP_LIB=$_libtermcap |
1209 XMM_LIBS = $_xmmplibs | |
1210 LIRC_LIBS = $_lirclibs | |
492 | 1211 CSS_LIB = $_csslib |
1212 CSS_INC = $_cssinc | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1213 SDL_LIB = $_sdllib |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1214 SDL_INC = $_sdlcflags |
1 | 1215 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1216 DS_DEP = $_dshowdep |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1217 DS_LIB = $_dshowlib |
1033 | 1218 ALSA_LIB = $_alsalib |
1219 ESD_LIB = $_esdlib | |
912 | 1220 prefix = $_prefix |
958
162a78d3cc08
FreeBSD support by Vladimir Kushnir vkushnir@Alfacom.net
arpi_esp
parents:
947
diff
changeset
|
1221 ARCH_LIBS = -ldl -lpthread |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1222 STREAM_SRCS = $_streamingsrcs |
1 | 1223 |
1224 EOF | |
1225 # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak | |
1226 | |
1227 echo "Creating $CCONF" | |
1228 | |
1229 if [ "$_mmx" = "yes" ]; then | |
1230 _mmx='#define HAVE_MMX' | |
1231 else | |
1232 _mmx='#undef HAVE_MMX' | |
1233 fi | |
1234 | |
350 | 1235 if [ "$_mmx2" = "yes" ]; then |
1236 _mmx2='#define HAVE_MMX2' | |
1237 else | |
1238 _mmx2='#undef HAVE_MMX2' | |
1239 fi | |
1240 | |
1 | 1241 if [ $_3dnow = yes ]; then |
1242 _3dnowm='#define HAVE_3DNOW' | |
1243 else | |
1244 _3dnowm='#undef HAVE_3DNOW' | |
1245 fi | |
1246 | |
734 | 1247 if [ $_3dnowex = yes ]; then |
1248 _3dnowexm='#define HAVE_3DNOWEX' | |
1249 else | |
1250 _3dnowexm='#undef HAVE_3DNOWEX' | |
1251 fi | |
1252 | |
1 | 1253 if [ $_sse = yes ]; then |
1254 _ssem='#define HAVE_SSE' | |
1255 else | |
1256 _ssem='#undef HAVE_SSE' | |
1257 fi | |
1258 | |
1259 # --- | |
1260 | |
1261 _vosrc='' | |
1034 | 1262 #_aosrc='' |
1 | 1263 |
525 | 1264 if [ $_png = yes ]; then |
1265 _png='#define HAVE_PNG' | |
1266 _vosrc=$_vosrc' vo_png.c' | |
1267 else | |
1268 _png='#undef HAVE_PNG' | |
1269 fi | |
1270 | |
1271 | |
1 | 1272 if [ $_mlib = yes ]; then |
1273 _mlib='#define HAVE_MLIB' | |
1274 _vosrc=$_vosrc' yuv2rgb_mlib.c' | |
1275 else | |
1276 _mlib='#undef HAVE_MLIB' | |
1277 fi | |
1278 | |
1279 # --- | |
1280 | |
1281 if [ $_gl = yes ]; then | |
1282 _gl='#define HAVE_GL' | |
1283 _vosrc=$_vosrc' vo_gl.c' | |
1284 else | |
1285 _gl='#undef HAVE_GL' | |
1286 fi | |
1287 | |
1288 if [ $_sdl = yes ]; then | |
1289 _sdldef='#define HAVE_SDL' | |
1290 _vosrc=$_vosrc' vo_sdl.c' | |
965 | 1291 _aosrc=$_aosrc' ao_sdl.c' |
1 | 1292 else |
1293 _sdldef='#undef HAVE_SDL' | |
1294 fi | |
1295 | |
1296 if [ $_x11 = yes ]; then | |
1297 _x11='#define HAVE_X11' | |
1298 _vosrc=$_vosrc' vo_x11.c' | |
1299 else | |
1300 _x11='#undef HAVE_X11' | |
1301 fi | |
1302 | |
1303 if [ $_xv = yes ]; then | |
1304 _xv='#define HAVE_XV' | |
1305 _vosrc=$_vosrc' vo_xv.c' | |
1306 else | |
1307 _xv='#undef HAVE_XV' | |
1308 fi | |
1309 | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1310 if [ $_vm = yes ]; then |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1311 _vm='#define HAVE_XF86VM' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1312 else |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1313 _vm='#undef HAVE_XF86VM' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1314 fi |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1315 |
1 | 1316 # --- |
1317 | |
1318 if [ $_mga = yes ]; then | |
1319 _mga='#define HAVE_MGA' | |
1320 _vosrc=$_vosrc' vo_mga.c' | |
1321 else | |
1322 _mga='#undef HAVE_MGA' | |
1323 fi | |
1324 if [ $_xmga = yes ]; then | |
1325 _vosrc=$_vosrc' vo_xmga.c' | |
1326 fi | |
1327 | |
1328 if [ $_syncfb = yes ]; then | |
1329 _syncfb='#define HAVE_SYNCFB' | |
1330 _vosrc=$_vosrc' vo_syncfb.c' | |
1331 else | |
1332 _syncfb='#undef HAVE_SYNCFB' | |
1333 fi | |
1334 | |
1335 if [ $_3dfx = yes ]; then | |
1336 _3dfx='#define HAVE_3DFX' | |
1337 _vosrc=$_vosrc' vo_3dfx.c' | |
1338 else | |
1339 _3dfx='#undef HAVE_3DFX' | |
1340 fi | |
1341 | |
287 | 1342 if [ $_svga = yes ]; then |
1343 _svga='#define HAVE_SVGALIB' | |
1344 _vosrc=$_vosrc' vo_svga.c' | |
1345 else | |
1346 _svga='#undef HAVE_SVGALIB' | |
1347 fi | |
1348 | |
11 | 1349 if [ $_dga = yes ]; then |
1350 _dga='#define HAVE_DGA' | |
38 | 1351 _vosrc=$_vosrc' vo_dga.c vo_fsdga.c' |
11 | 1352 else |
1353 _dga='#undef HAVE_DGA' | |
1354 fi | |
1355 | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1356 if [ $_dga2 = yes ]; then |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1357 _dga2='#define HAVE_DGA2' |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1358 _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
|
1359 else |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1360 _dga2='#undef HAVE_DGA2' |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1361 fi |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1362 |
225 | 1363 if [ $_fbdev = yes ]; then |
1364 _fbdev='#define HAVE_FBDEV' | |
1365 _vosrc=$_vosrc' vo_fbdev.c' | |
1366 else | |
1367 _fbdev='#undef HAVE_FBDEV' | |
1368 fi | |
1369 | |
1 | 1370 if [ $_mpg123 = yes ]; then |
1371 _mpg123='#define DEFAULT_MPG123' | |
1372 else | |
1373 _mpg123='#undef DEFAULT_MPG123' | |
1374 fi | |
1375 | |
723 | 1376 if [ $_gui = yes ]; then |
1377 _gui='#define HAVE_GUI' | |
1378 else | |
1379 _gui='#undef HAVE_GUI' | |
1380 fi | |
1381 | |
1029 | 1382 |
1 | 1383 cat > $CCONF << EOF |
1384 | |
1385 /* -------- Generated by ./configure ----------- */ | |
1386 | |
1387 /* Define this to enable avg. byte/sec-based AVI sync method by default: | |
1388 (use -bps or -nobps commandline option for run-time method selection) */ | |
1389 #undef AVI_SYNC_BPS | |
1390 | |
1391 /* Undefine this if you want soundcard-only timing by default: | |
1392 You can still change this with the -alsa or -noalsa command-line option! | |
1393 (This function was originally impemented to solve ALSA driver's big | |
1394 buffer problems, but it seems to be useful for every soundcard drivers) */ | |
1395 #define ALSA_TIMER | |
1396 | |
732
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1397 /* 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
|
1398 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
|
1399 -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
|
1400 right-only), with 0 being the default. |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1401 */ |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1402 #define USE_FAKE_MONO |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
1403 |
1 | 1404 /* Undefine this if your soundcard driver has no working select(). |
1405 If you have kernel Oops, player hangups, or just no audio, you should | |
1406 try to recompile MPlayer with this option disabled! */ | |
463 | 1407 $_select |
1 | 1408 |
1409 /* You have a choice for MP3 decoding: mp3lib(mpg123) or Win32(l3codeca.acm) | |
1410 #define this if you prefer mpg123 (with 3Dnow! support) than l3codeca.acm | |
1411 (with mmx/sse optimizations) | |
1412 You can still change it runtime using -afm 1 (mpg123) or -afm 4 (l3codeca)*/ | |
1413 $_mpg123 | |
1414 | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1415 |
1 | 1416 /* XMMP support: (test code) */ |
1417 $_xmmpaudio | |
1418 #define LIBDIR "/usr/local/lib" | |
1419 #define PLUGINDIR LIBDIR "/xmmp/Plugins" | |
1420 #define XMMP_AUDIO_DRIVER PLUGINDIR "/Sound/oss.so" | |
1421 | |
755 | 1422 /* set up max. outburst. use 65536 for ALSA 0.5, for others 16384 is enough */ |
1423 #define MAX_OUTBURST 65536 | |
1424 | |
586 | 1425 /* set up audio OUTBURST. Do not change this! */ |
1426 #ifdef USE_XMMP_AUDIO | |
1427 #define OUTBURST 4096 | |
1428 #else | |
1429 //#define OUTBURST 1024 | |
1430 #define OUTBURST 512 | |
1431 #endif | |
1432 | |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1433 /* 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
|
1434 $_have_soundcard_h |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1435 |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1436 |
1 | 1437 /* LIRC (remote control, see www.lirc.org) support: */ |
1438 $_lircdefs | |
1439 | |
492 | 1440 /* DeCSS support using libcss */ |
1441 $_css | |
1442 | |
41 | 1443 /* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */ |
1444 #define MPEG12_POSTPROC | |
1445 | |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1446 /* DirectShow support */ |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1447 $_dshow |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1448 |
642 | 1449 /* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... signal 4]*/ |
1450 $_fastmemcpy | |
1451 | |
723 | 1452 /* gui support, please do not edit this option */ |
1453 $_gui | |
1004 | 1454 #define PREFIX "$_prefix" |
723 | 1455 |
1029 | 1456 /* Audio lib drivers */ |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1457 $_ossaudio |
1029 | 1458 $_alsa5 |
1459 $_alsa9 | |
1460 $_esdd | |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1461 $_sunaudio |
1008 | 1462 |
947
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
1463 /* 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
|
1464 #undef FAST_OSD |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
1465 #undef FAST_OSD_TABLE |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
1466 |
1 | 1467 /* Define if your processor stores words with the most significant |
1468 byte first (like Motorola and SPARC, unlike Intel and VAX). */ | |
1469 /* #define WORDS_BIGENDIAN */ | |
1470 | |
1471 #define ARCH_X86 | |
1472 | |
849 | 1473 /* Define this to any prefered value from 386 up to infinity with step 100 */ |
1474 #define __CPU__ $iproc | |
1475 | |
1476 /*---------------------------------------------------------------------------- | |
1477 ** | |
1478 ** NOTE: Instead of modifying these definitions here, use the | |
1479 ** --enable/--disable options of the ./configure script! | |
1480 ** See ./configure --help for details. | |
1481 ** | |
1482 *---------------------------------------------------------------------------*/ | |
1 | 1483 |
1484 /* termcap flag for getch2.c */ | |
1485 $_termcap | |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1486 |
525 | 1487 $_png |
1 | 1488 |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1489 $_streamingdef |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1490 |
1 | 1491 /* Extension defines */ |
1492 $_mlib // available only on solaris | |
1493 $_3dnowm // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.) | |
734 | 1494 $_3dnowexm // only define if you have 3DNOWEX (AMD Athlon, etc.) |
1 | 1495 $_mmx // only define if you have MMX |
350 | 1496 $_mmx2 // only define if you have MMX2 |
1 | 1497 $_ssem // only define if you have SSE (Intel Pentium III or Celeron II) |
1498 | |
1499 /* libvo options */ | |
1500 #define SCREEN_SIZE_X $_x | |
1501 #define SCREEN_SIZE_Y $_y | |
1502 $_x11 | |
1503 $_xv | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1504 $_vm |
1 | 1505 $_gl |
11 | 1506 $_dga |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1507 $_dga2 |
1 | 1508 $_sdldef |
704 | 1509 /* defined for SDLlib with keyrepeat bugs (before 1.2.1) */ |
1510 $_sdlbuggy | |
1 | 1511 $_3dfx |
1512 $_mga | |
1513 $_syncfb | |
225 | 1514 $_fbdev |
287 | 1515 $_svga |
1 | 1516 |
23 | 1517 #if defined(HAVE_GL)||defined(HAVE_X11)||defined(HAVE_XV) |
1 | 1518 #define X11_FULLSCREEN |
1519 #endif | |
1520 | |
1521 EOF | |
1522 | |
1523 echo "Creating libvo/config.mak" | |
1524 | |
1525 _voobj=`echo $_vosrc | sed -e 's/\.c/\.o/g'` | |
1526 | |
1527 cat > libvo/config.mak << EOF | |
1528 | |
1529 include ../config.mak | |
1530 | |
1531 OPTIONAL_SRCS=$_vosrc | |
1532 OPTIONAL_OBJS=$_voobj | |
1533 | |
1534 EOF | |
1535 | |
965 | 1536 echo "Creating libao2/config.mak" |
1537 | |
1538 _aoobj=`echo $_aosrc | sed -e 's/\.c/\.o/g'` | |
1539 | |
1540 cat > libao2/config.mak << EOF | |
1541 | |
1542 include ../config.mak | |
1543 | |
1544 OPTIONAL_SRCS=$_aosrc | |
1545 OPTIONAL_OBJS=$_aoobj | |
1546 | |
1547 EOF | |
1548 | |
1 | 1549 echo "Creating libac3/config.mak" |
1550 | |
1551 if [ $_sse = yes ]; then | |
1552 _downmixc='downmix/downmix_kni.S' | |
1553 _downmixo='downmix/downmix_kni.o' | |
1554 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
|
1555 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
|
1556 _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
|
1557 _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
|
1558 else |
1 | 1559 if [ $_binutils = yes ]; then |
1560 _downmixc='downmix/downmix_i386.S' | |
1561 _downmixo='downmix/downmix_i386.o' | |
1562 else | |
1563 _downmixc='downmix/downmix.c' | |
1564 _downmixo='downmix/downmix.o' | |
1565 cat << EOF | |
1566 | |
1567 !!! 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
|
1568 !!! Upgrade it for better AC3 audio decoding performance! |
1 | 1569 |
1570 EOF | |
1571 fi | |
1572 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
|
1573 fi |
1 | 1574 cat > libac3/config.mak << EOF |
1575 | |
1576 include ../config.mak | |
1577 | |
1578 OPTIONAL_SRCS = $_downmixc | |
1579 OPTIONAL_OBJS = $_downmixo | |
1580 | |
1581 EOF | |
1582 | |
1583 echo "Creating mp3lib/config.mak" | |
1584 | |
734 | 1585 if [ $_3dnowex = yes ]; then |
787 | 1586 _mp3libobjectsrcs='dct36_k7.s dct64_k7.s decode_k7.s dct36_3dnow.s dct64_3dnow.s decode_3dnow.s' |
1587 _mp3libobjectobjs='dct36_k7.o dct64_k7.o decode_k7.o dct36_3dnow.o dct64_3dnow.o decode_3dnow.o' | |
734 | 1588 else |
1 | 1589 if [ $_3dnow = yes ]; then |
787 | 1590 _mp3libobjectsrcs='dct36_3dnow.s dct64_3dnow.s decode_3dnow.s' |
1591 _mp3libobjectobjs='dct36_3dnow.o dct64_3dnow.o decode_3dnow.o' | |
1 | 1592 else |
787 | 1593 if [ $_sse = yes ]; then |
1594 _mp3libobjectsrcs='decode_sse.s' | |
1595 _mp3libobjectobjs='decode_sse.o' | |
1596 else | |
1597 _mp3libobjectsrcs= | |
1598 _mp3libobjectobjs= | |
1599 fi | |
1 | 1600 fi |
734 | 1601 fi |
1 | 1602 |
1603 cat > mp3lib/config.mak << EOF | |
1604 | |
1605 include ../config.mak | |
1606 | |
787 | 1607 OPTIONAL_SRCS = $_mp3libobjectsrcs |
1608 OPTIONAL_OBJS = $_mp3libobjectobjs | |
1 | 1609 |
1610 EOF | |
1611 | |
1612 cat << EOF | |
1613 | |
1614 Config files successfully generated by ./configure ! | |
1615 Please check config.h and config.mak files, tune CPU | |
1616 and optimization flags if you don't like these defaults. | |
1102 | 1617 You can compile the program with 'make' and |
1 | 1618 install with 'make install'. Good luck! |
1619 | |
1620 EOF | |
1621 | |
1622 if [ $_mtrr = yes ]; then | |
1623 echo "Please check mtrr settings at /proc/mtrr (see DOCS/MTRR)" | |
1624 echo | |
1625 fi | |
1626 | |
548
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
1627 if [ $_sdl = outdated ]; then |
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
1628 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
|
1629 echo "v.1.1.7), SDL support has been disabled please update, if you want to" |
965 | 1630 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
|
1631 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
|
1632 echo "After updating you need to re-run ./configure and recompile to enable SDL." |
965 | 1633 echo "(If you only want to use SDLlib audio driver older versions might work, you" |
1634 echo "can use --enable-sdl to force using SDLlib)" | |
1 | 1635 echo |
1636 fi | |
1637 | |
1638 if [ $_win32libdirnotify = yes ]; then | |
1639 echo "Missing WIN32 codecs dir at $_win32libdir !" | |
1640 echo "Make it and copy DLL files to there! (You can get them from your windows" | |
1641 echo "directory or download ftp://thot.banki.hu/esp-team/linux/MPlayer/w32codec.zip" | |
1642 else | |
1643 echo "Ok, Win32 codecs directory at $_win32libdir already exists." | |
1644 fi | |
1645 | |
1021 | 1646 # Last move: |
1647 | |
1648 rm -f $TMPO $TMPC $TMPS |