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