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