Mercurial > mplayer.hg
annotate configure @ 2479:93a7eef13072
typo fix
author | nexus |
---|---|
date | Fri, 26 Oct 2001 09:50:04 +0000 |
parents | 1e0a75f83c9c |
children | 4733bb1a9b72 |
rev | line source |
---|---|
2463 | 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 # |
2421 | 9 # 2001/10/22 by Jeroen Dobbelaere |
10 # - added selection of libmad | |
11 # | |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
12 # 2001/08/27 by Johannes Feigl |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
13 # - added manual selection of language |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
14 # |
1618 | 15 # 2001/08/22 by Nick Kurshev |
16 # - added autodetection of local language | |
17 # | |
1428
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
18 # 2001/07/31 by Steve Davies |
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
19 # - added --enable-largefiles |
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
20 # |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
21 # 2001/07/12 by Juergen Keil |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
22 # - add support for non-x86 targets |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
23 # - add autoconf checks for loader/wine |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
24 # - fix linux 2.2.x kernel check vs. SSE usage |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
25 # |
1272
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
26 # 2001/07/04 by Juergen Keil |
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
27 # - autodetect the assembler binary used by the GCC C compiler |
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
28 # |
1258 | 29 # 2001/07/03 by Nick Kurshev |
30 # - added universal way of configuring SUBDIRS | |
31 # - moved configurable stuff of depended SUBDIRS to SUBDIRS | |
32 # | |
1029 | 33 # 2001/06/05 by Pontscho |
34 # - added alsa and esd detection | |
1025 | 35 # |
36 # 2001/06/05 by Nick Kurshev | |
37 # - added checking of kernel version | |
38 # | |
987 | 39 # 2001/06/04 by Nick Kurshev |
40 # - added hard checking of gcc and soft of assembler | |
41 # | |
1272
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
42 # 2001/05/30 by LGB |
912 | 43 # - added --prefix support |
44 # | |
1272
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
45 # 2001/05/?? by Juergen Keil |
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
46 # - autodetect OSS & Sun style audio |
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
47 # - cpu feature detection for non-linux x86 systems |
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
48 # - converted from bash to bourne shell script |
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
49 # |
849 | 50 # 2001/05/22 by Nick Kurshev |
51 # - added definition of CPU clone | |
52 # | |
492 | 53 # 2001/04/16 by LGB |
54 # - added libcss stuffs | |
55 # | |
463 | 56 # 2001/04/15 by Pontscho |
57 # - added --disable-select option | |
58 # - added X11DIR variable in config.mak and fix syncfb Makefile -L/usr/X11/lib bug | |
59 # | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
60 # 2001/03/24 by Mike Graffam: |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
61 # - 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
|
62 # |
196 | 63 # 2001/03/22 by Bivanbi: |
64 # - new option: --cc (to specify C compiler path+name) | |
65 # | |
66 # 2001/03/08 by LGB: | |
492 | 67 # - DGA detect-o-matic :) |
59 | 68 # - '--disable-dga' option to force disabling DGA vo driver compiling into mplayer |
69 # - line about '--enable-dga' is added to the help message | |
70 # | |
196 | 71 # 2001/02/26 by A'rpi: |
11 | 72 # - added DGA option: --enable-dga |
73 # - no notify if --with-win32libdir used [Tibcu] | |
74 # | |
196 | 75 # 2001/02/25 by LGB: |
4 | 76 # - TMPDIR or TEMPDIR variable is honored during tests for temporary files |
77 # - ChangeLog inside configure was reversed ;-) | |
1 | 78 # |
79 # some changes by A'rpi/ESP-team: | |
4 | 80 # - added 'athlon' target for the new athlongcc [Ian Kumlien] |
81 # - applied _win32libdir=-L patch by Magnus Pfeffer | |
1 | 82 # |
83 # some changes by LGB: | |
84 # - Ehhh, AMD K6-2 returns with cpuid 5 ;-) Changing back Arpi's last change :) | |
85 # More info: AMD K6-2 reports with family 5, duron with 6, so I attached | |
86 # much finer CPU type detection based on Linux kernel's one :) | |
87 # (k5: 5, model<6, k6: 5, model>=6, k7: 6, model=any) | |
88 # - On some exit point (error) temporary files were not deleted. Fixed. | |
89 # - $TMP and $TMP2 are renamed to $TMPC and $TMPO ;-) | |
90 # - Some useless { ... } are removed | |
91 # | |
92 # some changes by A'rpi/ESP-team: | |
11 | 93 # - the --with-win32libdir patch by Aaron Hope applied |
4 | 94 # - some english bugfix again :) |
95 # - cpu type selection changed: | |
96 # ( k7->k6->k5-> ) || (i686->pentiumpro-> ) pentium-> i486 -> i386 -> error! | |
97 # - cpu type for AMD/family=5 changed k6->k5 | |
98 # | |
99 # some changes by LGB (Gábor Lénárt): | |
100 # - SOME gcc may support 'k7', so I added tests for ALL CPU type optimization | |
101 # switches with the ability to find out the best optimization for your CPU. | |
102 # - Help moved to the begining to avoid tests if user only wants help. | |
103 # - A one lined help to indicate detailed help for users | |
104 # - Fixed /tmp race (PIDs can be predicted, I added random numbers as well) | |
105 # | |
106 # some changes by A'rpi/ESP-team: | |
107 # - some english bugfix :) | |
108 # - removed _??exists flags, _?? is enough... | |
109 # - creating only config.mak files instead of whole Makefiles | |
1 | 110 # |
111 # -- | |
112 | |
2190 | 113 # SOME MACROS/USEFUL FUNCTIONS |
114 # Returns error code only - NO displaye | |
2193 | 115 cc_check() { |
2190 | 116 "$_cc" "$TMPC" -o "$TMPO" "$@" >/dev/null 2>&1 |
117 return "$?" | |
118 } | |
119 | |
120 # Display error message, flushes tempfile, exit | |
2193 | 121 die () { |
2190 | 122 echo |
123 echo "Error: $@" >&2 | |
124 echo >&2 | |
125 rm -f "$TMPO" "$TMPC" "$TMPS" "$TMPCPP" | |
126 exit 1 | |
127 } | |
128 | |
2193 | 129 linux() { |
2190 | 130 test "$system_name" = "Linux" |
131 return "$?" | |
132 } | |
2193 | 133 freebsd() { |
2190 | 134 test "$system_name" = "FreeBSD" |
135 return "$?" | |
136 } | |
2193 | 137 openbsd() { |
2190 | 138 test "$system_name" = "OpenBSD" |
139 return "$?" | |
140 } | |
2193 | 141 bsdos() { |
2190 | 142 test "$system_name" = "BSD/OS" |
143 return "$?" | |
144 } | |
2193 | 145 bsd() { |
2190 | 146 freebsd || openbsd || bsdos |
147 return "$?" | |
148 } | |
2463 | 149 irix64() { |
150 test "$system_name" = "IRIX64" | |
151 return "$?" | |
152 } | |
2190 | 153 |
1 | 154 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
155 # 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
|
156 case `echo -n` in |
1323 | 157 -n) _echo_n= _echo_c='\c';; # seems to be a SysV echo |
158 *) _echo_n=-n _echo_c=;; # OK, a BSD style echo | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
159 esac |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
160 |
2435 | 161 LANGUAGES=`echo help_mp-??.h | sed "s/help_mp-\(..\).h/\1/g"` |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
162 |
1384
5665219136ce
Applied patch by pl <p_l@tfz.net> (help switch anywhere).
atmos4
parents:
1383
diff
changeset
|
163 for parm in "$@" ; do |
2435 | 164 if test "$parm" = "--help" || test "$parm" = "-help" || test "$parm" = "-h" ; then |
165 cat << EOF | |
166 | |
167 Usage: `basename $0` [OPTIONS]... | |
1 | 168 |
2435 | 169 Configuration: |
170 -h, --help display this help and exit | |
1 | 171 |
2435 | 172 Installation directories: |
2190 | 173 --prefix=DIR use this prefix for installing mplayer [/usr/local] |
174 --datadir=DIR use this prefix for installing machine independent | |
175 data [/usr/local/share/mplayer] | |
2435 | 176 |
177 Optional features: | |
178 --enable-largefiles enable support for files >2^32 bytes long [disable] | |
179 --enable-termcap use termcap database for key codes [disable] | |
180 --enable-xmmp use XMMP audio drivers [disable] | |
181 --enable-lirc enable LIRC (remote control) support [disable] | |
182 --enable-gui enable GUI [disable] | |
183 --disable-win32 disable Win32 DLL support [autodetect] | |
184 --disable-dshow disable DirectShow support (if no C++ compiler and | |
185 libs are available or find the dshow codecs slower | |
186 than the old VfW ones) [autodetect] | |
187 --enable-vorbis build with OggVorbis support [autodetect] | |
188 --disable-iconv do not use iconv(3) function [autodetect] | |
189 | |
190 Video: | |
2190 | 191 --enable-gl build with OpenGL render support [autodetect] |
192 --enable-dga build with DGA support [autodetect] | |
193 --enable-svga build with SVGAlib support [autodetect] | |
194 --enable-sdl build with SDL render support [autodetect] | |
195 --enable-aa build with AAlib render support [autodetect] | |
196 --enable-ggi build with GGI render support [autodetect] | |
2435 | 197 --enable-mga build with mga_vid support |
198 (check for /dev/mga_vid) [autodetect] | |
199 --enable-xmga build with mga_vid X Window support | |
200 (check for X & /dev/mga_vid) [autodetect] | |
2190 | 201 --enable-xv build with Xv render support for X 4.x [autodetect] |
2435 | 202 --enable-vm build with XF86VidMode support for x11 driver [disable] |
2190 | 203 --enable-xinerama build with Xinerama support for x11 driver [autodetect] |
204 --enable-x11 build with X11 render support [autodetect] | |
2435 | 205 --enable-fbdev build with FBDev render support [disable] |
206 --enable-mlib build with MLIB support (Solaris only) [disable] | |
1 | 207 |
2435 | 208 Audio: |
2190 | 209 --disable-ossaudio disable OSS sound support [autodetect] |
210 --disable-alsa disable alsa sound support [autodetect] | |
211 --disable-esd disable esd sound support [autodetect] | |
212 --disable-sunaudio disable Sun sound support [autodetect] | |
2435 | 213 --disable-mad disable mad audio support [autodetect] |
642 | 214 |
2435 | 215 Miscellaneous features: |
2458 | 216 --cc=COMPILER use this C compiler to build MPlayer [gcc] |
2435 | 217 --target=PLATFORM target platform (i386-linux, arm-linux, etc) |
218 --language=xx select a language [en] | |
219 (Available: $LANGUAGES) | |
220 --disable-select disable audio select() support (for example, required | |
221 for ALSA or Vortex2 driver) [enable] | |
2190 | 222 --size-x=SIZE default screen width |
223 --size-y=SIZE default screen height | |
2435 | 224 |
225 Advanced options: | |
226 --enable-mmx build with mmx support [autodetect] | |
227 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] | |
228 --enable-3dnow build with 3dnow! support [autodetect] | |
229 --enable-3dnowex build with 3dnow-dsp! support (K7) [autodetect] | |
230 --enable-sse build with sse support [autodetect] | |
231 --disable-fastmemcpy disable 3dnow/sse/mmx optimized memcpy() [enable] | |
232 --enable-debug[=1-3] compile debugging information into mplayer [disable] | |
233 --enable-profile compile profiling information into mplayer [disable] | |
234 | |
235 Hazardous options: | |
236 If you ever use one of these options, DO NOT BUGREPORT ANYTHING ! | |
237 --disable-gcc-checking disable gcc version checking | |
238 --disable-kernel-extchk disables checking for CPU extension support in | |
239 your kernel (MMX, SSE, ...) | |
240 | |
241 Use these options if autodetection fails: | |
242 --with-x11libdir=DIR X library files in DIR | |
243 --with-x11incdir=DIR X headers in DIR | |
244 --with-win32libdir=DIR W*ndows DLL files in DIR | |
245 --with-csslibdir=DIR 'libcss.so' (libcss shared lib.) in DIR | |
246 --with-cssincdir=DIR 'css.h' (libcss header file) in DIR | |
247 --with-sdl-config=PATH path to 'sdl-config' | |
248 --with-extralibdir=DIR extra library files (png, SDL, ...) in DIR | |
249 --with-extraincdir=DIR extra headers (png, SDL) are in DIR | |
250 --with-madlibdir=DIR 'libmad.so' (libmad shared lib.) in DIR | |
251 --with-madincdir=DIR 'mad.h' (libmad header file) in DIR | |
252 | |
1 | 253 EOF |
2435 | 254 exit 0 |
255 fi | |
1384
5665219136ce
Applied patch by pl <p_l@tfz.net> (help switch anywhere).
atmos4
parents:
1383
diff
changeset
|
256 done # for parm in ... |
1 | 257 |
2435 | 258 _cc=gcc |
259 test "$CC" && _cc="$CC" | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
260 |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
261 _as=auto |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
262 _x11=auto |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
263 |
1424
2fcccb831d72
Solaris /bin/sh does not like the extra ; in a "for var do ... done" loop
jkeil
parents:
1422
diff
changeset
|
264 for ac_option do |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
265 case "$ac_option" in |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
266 --target=*) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
267 _target=`echo $ac_option | cut -d '=' -f 2` |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
268 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
269 --cc=*) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
270 _cc=`echo $ac_option | cut -d '=' -f 2` |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
271 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
272 --as=*) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
273 _as=`echo $ac_option | cut -d '=' -f 2` |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
274 ;; |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
275 --language=*) |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
276 LINGUAS=`echo $ac_option | cut -d '=' -f 2` |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
277 ;; |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
278 --disable-gcc-checking) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
279 _skip_cc_check=yes |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
280 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
281 --disable-as-checking) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
282 _skip_as_check=yes |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
283 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
284 --with-x11libdir=*) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
285 _x11libdir=-L`echo $ac_option | cut -d '=' -f 2` |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
286 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
287 --with-x11incdir=*) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
288 _x11incdir=-I`echo $ac_option | cut -d '=' -f 2` |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
289 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
290 --enable-x11) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
291 _x11=yes |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
292 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
293 --disable-x11) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
294 _x11=no |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
295 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
296 --with-sdl-config=*) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
297 _sdlconfig=`echo $ac_option | cut -d '=' -f 2` |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
298 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
299 --with-extralibdir=*) |
1475
1a4c9a7e9b67
Applied vladimirs freebsd patch (largefile default on freebsd and misc)
atmos4
parents:
1452
diff
changeset
|
300 _extralibdir=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
301 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
302 --with-extraincdir=*) |
1475
1a4c9a7e9b67
Applied vladimirs freebsd patch (largefile default on freebsd and misc)
atmos4
parents:
1452
diff
changeset
|
303 _extraincdir=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
304 ;; |
2421 | 305 --with-madlibdir=*) |
306 _madlibdir=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` | |
307 ;; | |
308 --with-madincdir=*) | |
309 _madincdir=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` | |
310 ;; | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
311 esac |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
312 done |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
313 |
1 | 314 # LGB: Some inital help |
315 | |
2435 | 316 cat <<EOF |
317 | |
318 You can get detailed help on configure with: `basename $0` --help | |
319 | |
320 Please wait while ./configure discovers your software and hardware environment! | |
321 | |
322 EOF | |
1 | 323 |
1323 | 324 # Determine our OS name and CPU architecture |
2171 | 325 if test -z "$_target" ; then |
1451
267264560623
Start OpenBSD support and fix detection of older GNU as.
atmos4
parents:
1450
diff
changeset
|
326 system_name=`uname -s 2>&1` # name of operating system: Linux, FreeBSD, NetBSD, OpenBSD, SunOS |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
327 host_arch=`uname -p 2>&1` # host's instruction set or processor type |
1323 | 328 |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
329 case "$host_arch" in |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
330 i386|sparc|ppc|alpha|arm) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
331 # fine, uname -p output looks good, it has returned |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
332 # something this configure script recognizes |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
333 ;; |
1335
71c0f15c4712
Detect cpu architecture for a few more linux variants (linux/sparc, linux/ppc,
jkeil
parents:
1329
diff
changeset
|
334 |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
335 *) # uname -p on Linux returns 'unknown' for the processor type, |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
336 # OpenBSD returns 'Intel Pentium/MMX ("Genuine Intel" 586-class)' |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
337 |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
338 # Maybe uname -m (machine hardware name) returns something we |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
339 # recognize. |
1335
71c0f15c4712
Detect cpu architecture for a few more linux variants (linux/sparc, linux/ppc,
jkeil
parents:
1329
diff
changeset
|
340 |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
341 case "`uname -m 2>&1`" in |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
342 i[3-9]86) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
343 host_arch=i386;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
344 ppc) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
345 host_arch=ppc;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
346 alpha) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
347 host_arch=alpha;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
348 sparc*) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
349 host_arch=sparc;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
350 arm*) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
351 host_arch=arm;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
352 esac |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
353 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
354 esac |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
355 else |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
356 system_name=`echo $_target | cut -d '-' -f 2` |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
357 host_arch=`echo $_target | cut -d '-' -f 1` |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
358 fi |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
359 |
1412 | 360 echo "Detected operating system: $system_name" |
361 echo "Detected host architecture: $host_arch" | |
362 | |
1323 | 363 # Determine OS dependent libs |
1436
42bd7f4c500b
Pre commit so I won't have to sync with later configure changes (cygwin stuff)
atmos4
parents:
1428
diff
changeset
|
364 _confcygwin="TARGET_CYGWIN=no" |
1441
039bd84a6c33
Make cygwin define WIN32 for compatibility with mingw and visualc, ...
atmos4
parents:
1438
diff
changeset
|
365 _confwin32= |
2190 | 366 if bsd ; then |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
367 _archlibs="-rdynamic -pthread" |
2171 | 368 elif test `echo $system_name | sed 's/[cC][yY][gG][wW][iI][nN].*/CYGWIN/'` = "CYGWIN" ; then |
1436
42bd7f4c500b
Pre commit so I won't have to sync with later configure changes (cygwin stuff)
atmos4
parents:
1428
diff
changeset
|
369 _confcygwin="TARGET_CYGWIN=yes" |
1441
039bd84a6c33
Make cygwin define WIN32 for compatibility with mingw and visualc, ...
atmos4
parents:
1438
diff
changeset
|
370 _confwin32="#define WIN32" |
1436
42bd7f4c500b
Pre commit so I won't have to sync with later configure changes (cygwin stuff)
atmos4
parents:
1428
diff
changeset
|
371 _archlibs="-lpthread" |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
372 else |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
373 _archlibs="-ldl -lpthread" |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
374 fi |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
375 |
2190 | 376 if bsdos ; then |
2089 | 377 _archlibs="$_archlibs -ldvd" |
378 fi | |
379 | |
1 | 380 # LGB: temporary files |
2190 | 381 for I in "$TMPDIR" "$TEMPDIR" "/tmp" ; do |
382 test "$I" && break | |
383 done | |
384 TMPC="$I/mplayer-conf-$RANDOM-$RANDOM-$$.c" | |
385 TMPCPP="$I/mplayer-conf-$RANDOM-$RANDOM-$$.cpp" | |
386 TMPO="$I/mplayer-conf-$RANDOM-$RANDOM-$$.o" | |
387 TMPS="$I/mplayer-conf-$RANDOM-$RANDOM-$$.S" | |
1 | 388 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
389 cat > $TMPC << EOF |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
390 int main( void ) { return 0; } |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
391 EOF |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
392 |
1 | 393 # --- |
394 | |
395 # config files | |
396 CCONF='config.h' | |
397 MCONF='config.mak' | |
1618 | 398 CHELP='help_mp.h' |
196 | 399 # --- Check for C compiler: |
400 | |
2171 | 401 if test -z "$_x11libdir" ; then |
2464
4296c47ff209
The last irix64 patch looks broken to me, trying to fix.
jkeil
parents:
2463
diff
changeset
|
402 for I in /usr/X11R6/lib /usr/X11/lib /usr/lib32 /usr/openwin/lib ; do |
2463 | 403 if test -d "$I" ; then |
404 _x11libdir="-L$I" | |
405 break; | |
406 fi | |
407 done | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
408 fi |
196 | 409 |
2171 | 410 if test -z "$_x11incdir" ; then |
2464
4296c47ff209
The last irix64 patch looks broken to me, trying to fix.
jkeil
parents:
2463
diff
changeset
|
411 for I in /usr/include /usr/X11R6/include /usr/X11/include /usr/openwin/include ; do |
4296c47ff209
The last irix64 patch looks broken to me, trying to fix.
jkeil
parents:
2463
diff
changeset
|
412 if test -d "$I/X11" ; then |
4296c47ff209
The last irix64 patch looks broken to me, trying to fix.
jkeil
parents:
2463
diff
changeset
|
413 if test "$I" != /usr/include; then |
4296c47ff209
The last irix64 patch looks broken to me, trying to fix.
jkeil
parents:
2463
diff
changeset
|
414 _x11incdir="-I$I" |
4296c47ff209
The last irix64 patch looks broken to me, trying to fix.
jkeil
parents:
2463
diff
changeset
|
415 fi |
4296c47ff209
The last irix64 patch looks broken to me, trying to fix.
jkeil
parents:
2463
diff
changeset
|
416 break |
4296c47ff209
The last irix64 patch looks broken to me, trying to fix.
jkeil
parents:
2463
diff
changeset
|
417 fi |
4296c47ff209
The last irix64 patch looks broken to me, trying to fix.
jkeil
parents:
2463
diff
changeset
|
418 done |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
419 fi |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
420 |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
421 # Lots of stuff are installed under /usr/local |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
422 |
2171 | 423 if test -z "$_extralibdir" ; then |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
424 _extralibdir=-L/usr/local/lib |
1475
1a4c9a7e9b67
Applied vladimirs freebsd patch (largefile default on freebsd and misc)
atmos4
parents:
1452
diff
changeset
|
425 fi |
2171 | 426 if test -z "$_extraincdir" ; then |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
427 _extraincdir=-I/usr/local/include |
1475
1a4c9a7e9b67
Applied vladimirs freebsd patch (largefile default on freebsd and misc)
atmos4
parents:
1452
diff
changeset
|
428 fi |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
429 |
2171 | 430 if test -z "$_sdlconfig" ; then |
2190 | 431 if freebsd ; then |
1425 | 432 _sdlconfig='sdl11-config' |
433 else | |
434 _sdlconfig='sdl-config' | |
435 fi | |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
436 fi |
990 | 437 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
438 # --- |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
439 |
1023 | 440 # Checking CC version... |
2435 | 441 # gcc-3.0 merges optimizations coming from egcs, pgcc, agcc, ... |
2171 | 442 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
|
443 echo $_echo_n "Checking version of $_cc ... $_echo_c" |
987 | 444 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'` |
445 case $cc_version in | |
446 '') cc_version="v. ?.??, bad"; cc_verc_fail=yes;; | |
1388 | 447 2.95.[2-9]|2.95.[2-9].[0-9]|3.[0-9]|3.[0-9].[0-9]) |
987 | 448 cc_version="$cc_version, ok";; |
449 *) cc_version="$cc_version, bad"; cc_verc_fail=yes;; | |
450 esac | |
451 echo "$cc_version" | |
2171 | 452 if test "$cc_verc_fail" ; then |
1766 | 453 cat <<EOF |
2443 | 454 Please downgrade/upgrade gcc compiler to gcc-2.95.x or gcc-3.x version! |
1766 | 455 |
2442 | 456 Note: gcc 2.96 is RedHat's UNOFFICIAL (it can be found only in RedHat, |
457 Mandrake sites or distributions) and BUGGY gcc release. gcc 2.96 is TOTALLY | |
458 UNSUPPORTED by us. *** For details please read DOCS/gcc-2.96-3.0.html *** | |
2443 | 459 |
1766 | 460 EOF |
2190 | 461 die "Bad gcc version" |
987 | 462 fi |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
463 else |
2111 | 464 # echo "YOU'VE SELECTED '--disable-gcc-checking'. PLEASE DON'T SEND US ANY BUGREPORTS!" |
465 | |
466 cat <<EOF | |
467 | |
468 | |
2442 | 469 |
470 | |
471 Hmm. You really want to compile MPlayer with gcc 2.96? Ok. You know. Do it. | |
472 | |
473 But did you already read DOCS/gcc-2.96-3.0.html ??? | |
2111 | 474 |
475 *** BUT WE DO NOT RECOMMEND SENDING ANY MAIL TO THE *** | |
476 *** MAILING LISTS OR DIRECTLY TO THE AUTHORS! *** | |
477 | |
478 *** gcc 2.96 is broken. nobody will help you! *** | |
479 | |
480 If you have any problem, then install 2.95.x or 3.0 version and try again. | |
2442 | 481 If the problem _still_ exists, then read DOCS/bugreports.html. |
482 | |
483 DO NOT SEND BUGREPORTS OR COMPLAIN, it's *YOUR* fault! (exactly gcc 2.96's) | |
484 Get ready for mysterious crashes, no-picture bugs, strange noises... REALLY! | |
485 | |
2111 | 486 |
487 EOF | |
488 | |
489 read _answer | |
490 | |
2442 | 491 # if test "$_answer" != "gcc 2.96 is broken" ; then |
492 # die "Wrong answer. Next time try 'gcc 2.96 is broken'. But you'd better to downgrade." | |
493 # fi | |
2111 | 494 |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
495 fi |
1 | 496 # --- |
497 | |
1272
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
498 # now that we know what compiler should be used for compilation, try to find |
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
499 # out which assembler is used by the $_cc compiler |
2171 | 500 if test "$_as" = auto ; then |
1272
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
501 _as=`$_cc -print-prog-name=as` |
2171 | 502 if test -z "$_as" ; then |
1272
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
503 _as=as |
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
504 fi |
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
505 fi |
89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
jkeil
parents:
1264
diff
changeset
|
506 |
2171 | 507 if test "$host_arch" = i386 ; then |
508 if test -r /proc/cpuinfo ; then | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
509 # 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
|
510 _cpuinfo="cat /proc/cpuinfo" |
2171 | 511 elif test -r /compat/linux/proc/cpuinfo ; then |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
512 # FreeBSD with linux emulation /proc mounted, |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
513 # extract cpu information from it |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
514 _cpuinfo="cat /compat/linux/proc/cpuinfo" |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
515 else |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
516 # 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
|
517 # program TOOLS/cpuinfo instead |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
518 $_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
|
519 _cpuinfo="TOOLS/cpuinfo" |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
520 fi |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
521 |
1314
cbbc5bc64c46
Handle linux SMP machines (suggested by Martin Aumueller)
jkeil
parents:
1310
diff
changeset
|
522 pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | head -1` |
cbbc5bc64c46
Handle linux SMP machines (suggested by Martin Aumueller)
jkeil
parents:
1310
diff
changeset
|
523 pparam=`$_cpuinfo | grep 'features' | cut -d ':' -f 2 | head -1` |
2171 | 524 if test -z "$pparam" ; then |
1314
cbbc5bc64c46
Handle linux SMP machines (suggested by Martin Aumueller)
jkeil
parents:
1310
diff
changeset
|
525 pparam=`$_cpuinfo | grep 'flags' | cut -d ':' -f 2 | head -1` |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
526 fi |
1314
cbbc5bc64c46
Handle linux SMP machines (suggested by Martin Aumueller)
jkeil
parents:
1310
diff
changeset
|
527 pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` |
cbbc5bc64c46
Handle linux SMP machines (suggested by Martin Aumueller)
jkeil
parents:
1310
diff
changeset
|
528 pfamily=`$_cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` |
cbbc5bc64c46
Handle linux SMP machines (suggested by Martin Aumueller)
jkeil
parents:
1310
diff
changeset
|
529 pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` |
cbbc5bc64c46
Handle linux SMP machines (suggested by Martin Aumueller)
jkeil
parents:
1310
diff
changeset
|
530 pstepping=`$_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
531 else |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
532 # not an x86 host, cpuinfo stuff is not relevant |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
533 pname= pparam= pvendor= pfamily= pmodel= pstepping= |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
534 fi |
1 | 535 |
536 _mmx=no | |
350 | 537 _mmx2=no |
1 | 538 _3dnow=no |
734 | 539 _3dnowex=no |
1 | 540 _mtrr=no |
541 _sse=no | |
525 | 542 |
1 | 543 _mga=no |
544 _gl=no | |
545 _sdl=no | |
1511 | 546 _aa=no |
1133
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
547 _ggi=no |
1 | 548 _xv=no |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
549 _vm=no |
2149
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
550 _xinerama=no |
1902 | 551 _xdpms_3=no |
552 _xdpms_4=no | |
1 | 553 _3dfx=no |
1979
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1933
diff
changeset
|
554 _tdfxfb=no |
1 | 555 _syncfb=no |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
556 _mlib=no _mlibdir=/opt/SUNWmlib |
1178 | 557 _xmga=autodetect |
11 | 558 _dga=no |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
559 _dga2=no |
287 | 560 _svga=no |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
561 _fbdev=no |
2190 | 562 linux && _fbdev=yes |
1 | 563 _lirc=no |
525 | 564 _css=no |
1596 | 565 _dvdread=no |
2425 | 566 _win32=yes _dshow=yes |
567 test "$host_arch" != i386 && _dshow=no _win32=no | |
642 | 568 _fastmemcpy=yes |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
569 _streaming=no |
1279 | 570 _libavcodec=no |
1404
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
571 _kernelextcheck=yes |
1 | 572 |
573 _x=1 | |
574 _y=1 | |
575 | |
576 _gllib= | |
577 _sdllib= | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
578 _sdlcflags= |
1511 | 579 _aalib= |
1133
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
580 _ggilib= |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
581 _xvlib= |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
417
diff
changeset
|
582 _x11lib= |
2149
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
583 _xineramalib= |
2164 | 584 _iconvlib= |
1 | 585 |
463 | 586 _select='#define HAVE_AUDIO_SELECT' |
587 | |
2435 | 588 _gui=no |
723 | 589 |
1004 | 590 _alsa=yes |
1029 | 591 _esd=yes |
2435 | 592 _mad=yes |
1004 | 593 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
594 for i in $pparam; do |
1 | 595 |
596 case "$i" in | |
597 3dnow) | |
598 _3dnow=yes | |
599 ;; | |
734 | 600 3dnowext) |
601 _3dnow=yes | |
602 _3dnowex=yes | |
603 ;; | |
1 | 604 mmx) |
605 _mmx=yes | |
606 ;; | |
350 | 607 mmxext) |
608 _mmx2=yes | |
609 ;; | |
1178 | 610 mtrr|k6_mtrr) |
1 | 611 _mtrr=yes |
612 ;; | |
1178 | 613 xmm|sse|kni) |
1 | 614 _sse=yes |
356 | 615 _mmx2=yes |
1 | 616 ;; |
617 esac | |
618 | |
619 done | |
620 | |
621 | |
2425 | 622 # XXX check codecs presence |
623 _win32libdir= | |
624 if test "$_win32" = yes ; then | |
625 for I in /usr/local/lib/win32 /usr/lib/win32 ; do | |
2427 | 626 if test -d "$I" ; then |
2425 | 627 _win32libdir="$I" |
628 break; | |
629 fi; | |
630 done | |
2427 | 631 fi |
1 | 632 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
633 |
2171 | 634 if test -d libavcodec && test -f libavcodec/Makefile ; then |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
635 _libavcodec=yes |
1279 | 636 fi |
1 | 637 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
638 |
2171 | 639 if test -c /dev/mga_vid ; then |
1 | 640 _mga=yes |
641 _syncfb=yes | |
642 fi | |
643 | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
644 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
645 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
646 case "$host_arch" in |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
647 i386) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
648 _arch="#define ARCH_X86 1" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
649 _target_arch="TARGET_ARCH_X86=yes" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
650 _words_endian="#undef WORDS_BIGENDIAN" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
651 proc=pentium |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
652 iproc=586 |
1 | 653 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
654 case "$pvendor" in |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
655 AuthenticAMD) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
656 case "$pfamily" in |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
657 3) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
658 proc=i386 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
659 iproc=386 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
660 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
661 4) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
662 proc=i486 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
663 iproc=486 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
664 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
665 5) |
2171 | 666 if test "$pmodel" -ge 6 ; then # LGB: models are: K5/SSA5 K5 K5 K5 ? ? K6 K6 K6-2 K6-3 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
667 proc=k6 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
668 else |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
669 proc=k5 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
670 fi |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
671 iproc=586 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
672 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
673 6|7) # LGB: Though it seems Athlon CPUs returns with "6" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
674 proc=k7 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
675 iproc=686 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
676 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
677 *) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
678 proc=pentium |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
679 iproc=586 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
680 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
681 esac |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
682 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
683 GenuineIntel) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
684 case "$pfamily" in |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
685 3) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
686 proc=i386 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
687 iproc=386 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
688 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
689 4) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
690 proc=i486 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
691 iproc=486 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
692 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
693 5) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
694 proc=pentium |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
695 iproc=586 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
696 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
697 6) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
698 proc=i686 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
699 iproc=686 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
700 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
701 *) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
702 proc=pentium |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
703 iproc=586 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
704 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
705 esac |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
706 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
707 unknown) # added by Gabucino - upon Tibcu's request |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
708 case "$pfamily" in |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
709 3) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
710 proc=i386 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
711 iproc=386 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
712 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
713 4) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
714 proc=i486 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
715 iproc=486 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
716 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
717 *) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
718 proc=pentium |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
719 iproc=586 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
720 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
721 esac |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
722 ;; |
1 | 723 *) |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
724 proc=pentium |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
725 iproc=586 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
726 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
727 esac |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
728 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
729 # check that gcc supports our cpu, if not, fallback to pentium |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
730 # LGB: check -mcpu and -march swithing step by step with enabling |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
731 # to fall back till 386. |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
732 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
733 #echo -n "Checking your GCC CPU optimalization abilities: " |
2171 | 734 if test "$proc" = "k7" ; then |
2190 | 735 cc_check -march=$proc -mcpu=$proc || proc=athlon |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
736 fi |
2171 | 737 if test "$proc" = "athlon" ; then |
2190 | 738 cc_check -march=$proc -mcpu=$proc || proc=pentiumpro |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
739 fi |
2171 | 740 if test "$proc" = "k6" ; then |
2190 | 741 cc_check -march=$proc -mcpu=$proc || proc=k5 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
742 fi |
2171 | 743 if test "$proc" = "k5" ; then |
2190 | 744 cc_check -march=$proc -mcpu=$proc || proc=pentium |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
745 fi |
2171 | 746 if test "$proc" = "i686" ; then |
2190 | 747 cc_check -march=$proc -mcpu=$proc || proc=pentiumpro |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
748 fi |
2171 | 749 if test "$proc" = "pentiumpro" ; then |
2190 | 750 cc_check -march=$proc -mcpu=$proc || proc=pentium |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
751 fi |
2171 | 752 if test "$proc" = "pentium" ; then |
2190 | 753 cc_check -march=$proc -mcpu=$proc || proc=i486 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
754 fi |
2171 | 755 if test "$proc" = "i486" ; then |
2190 | 756 cc_check -march=$proc -mcpu=$proc || proc=i386 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
757 fi |
2171 | 758 if test "$proc" = "i386" ; then |
2190 | 759 cc_check -march=$proc -mcpu=$proc || proc=error |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
760 fi |
2171 | 761 if test "$proc" = "error" ; then |
2190 | 762 die "Your gcc does not support even \"i386\" for '-march' and '-mcpu'." |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
763 fi |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
764 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
765 _march="-march=$proc" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
766 _mcpu="-mcpu=$proc" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
767 #echo "DONE (${proc})." |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
768 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
769 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
770 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
771 sparc) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
772 _arch="#define ARCH_SPARC 1" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
773 _target_arch="TARGET_ARCH_SPARC=yes" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
774 _words_endian="#define WORDS_BIGENDIAN 1" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
775 iproc=sparc |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
776 proc=v8 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
777 _march="" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
778 _mcpu="-mcpu=$proc" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
779 ;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
780 |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
781 arm) |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
782 _arch="#define ARCH_ARM 1" |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
783 _target_arch="TARGET_ARCH_ARM=yes" |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
784 _words_endian="#undef WORDS_BIGENDIAN" |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
785 iproc=arm |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
786 proc= |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
787 _march="" |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
788 _mcpu="" |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
789 ;; |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
790 |
1739
064c0acb7c39
Added C++ compiler/runtime enviroment detection and enabled ppc detection.
atmos4
parents:
1718
diff
changeset
|
791 ppc) |
064c0acb7c39
Added C++ compiler/runtime enviroment detection and enabled ppc detection.
atmos4
parents:
1718
diff
changeset
|
792 _arch="#define ARCH_PPC 1" |
064c0acb7c39
Added C++ compiler/runtime enviroment detection and enabled ppc detection.
atmos4
parents:
1718
diff
changeset
|
793 _target_arch="TARGET_ARCH_PPC=yes" |
064c0acb7c39
Added C++ compiler/runtime enviroment detection and enabled ppc detection.
atmos4
parents:
1718
diff
changeset
|
794 _words_endian="#define WORDS_BIGENDIAN 1" |
064c0acb7c39
Added C++ compiler/runtime enviroment detection and enabled ppc detection.
atmos4
parents:
1718
diff
changeset
|
795 iproc=ppc |
064c0acb7c39
Added C++ compiler/runtime enviroment detection and enabled ppc detection.
atmos4
parents:
1718
diff
changeset
|
796 proc= |
064c0acb7c39
Added C++ compiler/runtime enviroment detection and enabled ppc detection.
atmos4
parents:
1718
diff
changeset
|
797 _march="" |
064c0acb7c39
Added C++ compiler/runtime enviroment detection and enabled ppc detection.
atmos4
parents:
1718
diff
changeset
|
798 _mcpu="" |
064c0acb7c39
Added C++ compiler/runtime enviroment detection and enabled ppc detection.
atmos4
parents:
1718
diff
changeset
|
799 ;; |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
800 |
1908 | 801 alpha) |
802 _arch="#define ARCH_ALPHA 1" | |
803 _target_arch="TARGET_ARCH_ALPHA=yes" | |
804 _words_endian="#undef WORDS_BIGENDIAN" | |
805 iproc=alpha | |
806 proc= | |
807 _march="" | |
808 _mcpu="-mcpu=ev56" | |
809 ;; | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
810 |
2450 | 811 mips) |
812 _arch="#define ARCH_SGI_MIPS 1" | |
813 _target_arch="TARGET_ARCH_SGI_MIPS=yes" | |
814 _words_endian="#define WORDS_BIGENDIAN 1" | |
815 iproc=sgi-mips | |
816 proc=default | |
817 _march="" | |
818 _mcpu="-mcpu=$proc" | |
819 _skip_as_check=yes | |
820 # _png=no | |
821 # CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer" | |
822 ;; | |
823 | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
824 *) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
825 echo "The architecture of your CPU ($host_arch) is not supported by this configure script" |
2190 | 826 echo "It seems noone has ported MPlayer to your OS or CPU type yet." |
827 die "unsupported architecture $host_arch" | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
828 ;; |
1 | 829 esac |
830 | |
831 # --- | |
832 | |
1618 | 833 # Checking for localization ... |
2171 | 834 if test -z "$LINGUAS" ; then |
1618 | 835 LINGUAS="en" |
836 fi | |
837 echo Checking for language ... "$LINGUAS" | |
2467 | 838 _mp_help="help_mp-${LINGUAS}.h" |
839 | |
840 test -f "$_mp_help" || { | |
841 echo "Language file (${_mp_help}) not found!" | |
842 LINGUAS="en" | |
843 _mp_help="help_mp-"$LINGUAS".h" | |
844 } | |
1618 | 845 echo Using ... "$_mp_help" file |
1 | 846 |
2190 | 847 cc_check $_extraincdir $_extralibdir -lvgagl -lvga && _svga=yes |
1 | 848 |
2190 | 849 if bsd ; then |
850 cc_check -pthread || die "Lib pthread not found." | |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
851 else |
2190 | 852 cc_check -lpthread || die "Lib pthread not found." |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
853 fi |
1 | 854 |
548
c5c2d4e41a4a
added sdl versiondetect and removed sdl warning (it's autodetect now)
atmosfear
parents:
525
diff
changeset
|
855 # 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
|
856 _sdl=no |
2190 | 857 if "$_sdlconfig" --version >/dev/null 2>&1 ; then |
858 if cc_check `$_sdlconfig --cflags` `$_sdlconfig --libs` ; then | |
859 _sdlversion=`$_sdlconfig --version | sed 's/[^0-9]//g'` | |
860 if test "$_sdlversion" -gt 116 ; then | |
861 if test "$_sdlversion" -lt 121 ; then | |
862 _sdlbuggy='#define BUGGY_SDL' | |
863 else | |
864 _sdlbuggy='#undef BUGGY_SDL' | |
865 fi | |
866 _sdl=yes | |
867 else | |
868 _sdl=outdated | |
869 fi | |
870 fi | |
1103
d0f59ca7346f
Fixed sdl detect on systems without sdl installed.
atmosfear
parents:
1102
diff
changeset
|
871 fi |
1 | 872 |
1511 | 873 |
661 | 874 # Atmosfear: added libcss autodetect |
875 _css=no | |
2190 | 876 for I in "/usr/local" "/usr" ; do |
877 if test -s "$I/lib/libcss.so" && test -s "$I/include/css.h" ; then | |
878 _csslibdir="$I/lib/" | |
879 _cssincdir="$I/include" | |
880 _css=yes | |
881 break; | |
882 fi | |
883 done | |
1515
624c9d5dad20
Use the standard mplayer config test for finding libraries, so that it can
jkeil
parents:
1511
diff
changeset
|
884 |
624c9d5dad20
Use the standard mplayer config test for finding libraries, so that it can
jkeil
parents:
1511
diff
changeset
|
885 _aa=no |
2190 | 886 cc_check $_extraincdir $_extralibdir -laa && _aa=yes |
1515
624c9d5dad20
Use the standard mplayer config test for finding libraries, so that it can
jkeil
parents:
1511
diff
changeset
|
887 |
1427 | 888 _divx4linux=no |
2190 | 889 cc_check $_extraincdir $_extralibdir -ldivxdecore -lm && _divx4linux=yes |
1427 | 890 |
1 | 891 _termcap=no |
2190 | 892 cc_check $_extraincdir $_extralibdir -ltermcap && _termcap=yes |
1 | 893 |
525 | 894 _png=no |
2464
4296c47ff209
The last irix64 patch looks broken to me, trying to fix.
jkeil
parents:
2463
diff
changeset
|
895 if irix64 ; then |
2467 | 896 # Don't check for -lpng on irix since it has its own libpng |
897 # incompatible with the GNU libpng | |
898 : | |
2464
4296c47ff209
The last irix64 patch looks broken to me, trying to fix.
jkeil
parents:
2463
diff
changeset
|
899 else |
2463 | 900 cc_check $_extraincdir $_extralibdir -lpng -lz -lm && _png=yes |
901 fi | |
525 | 902 |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
903 _vorbis=no |
2190 | 904 cc_check $_extraincdir $_extralibdir -lvorbis -lm && _vorbis=yes |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
905 |
1133
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
906 _ggi=no |
2190 | 907 cc_check $_extraincdir $_extralibdir -lggi && _ggi=yes |
1133
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
908 |
1261
5bb83ed0db33
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
jkeil
parents:
1258
diff
changeset
|
909 _kstat=no |
2190 | 910 cc_check -lkstat && _kstat=yes _archlibs="-lkstat $_archlibs" |
911 cc_check -lposix4 && _archlibs="-lposix4 $_archlibs" | |
1261
5bb83ed0db33
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
jkeil
parents:
1258
diff
changeset
|
912 |
1 | 913 _binutils=no |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
914 $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes |
1 | 915 |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
916 # echo binutils: $_binutils |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
917 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
918 |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
919 # ----------- 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
|
920 |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
921 # 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
|
922 _socklib= |
2190 | 923 cc_check $_socklib -lsocket && _socklib="$_socklib -lsocket" |
924 cc_check $_socklib -lnsl && _socklib="$_socklib -lnsl" | |
1020
72cacd3b8f30
Solaris 8 support - patch by Marcus Comstedt <marcus@idonex.se>
arpi_esp
parents:
1019
diff
changeset
|
925 |
2171 | 926 if test "$_x11" = auto ; then |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
927 _x11=no |
2190 | 928 cc_check $_x11libdir -lX11 -lXext $_socklib && _x11=yes |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
929 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
930 |
2171 | 931 if test "$_x11" = yes ; then |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
932 |
2190 | 933 cc_check $_x11libdir -lX11 -lXext -lXdpms $_socklib && _xdpms_3=yes |
2089 | 934 nm `echo $_x11libdir|cut -c 3-`/libXext.a | grep DPMSQueryExtension > /dev/null 2>&1 && _xdpms_4=yes |
2190 | 935 cc_check $_x11libdir -lX11 -lXext -lXv $_socklib && _xv=yes |
936 cc_check $_x11libdir -lX11 -lXext -lXxf86vm $_socklib && _vm=yes | |
937 cc_check $_x11libdir -lX11 -lXext -lXinerama $_socklib && _xinerama=yes | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
938 |
2190 | 939 # XXX this is not yet checked with OpenBSD - atmos |
940 if freebsd || openbsd ; then | |
941 cc_check $_x11libdir -lX11 -lXext -lGL -lm -pthread $_socklib && _gl=yes | |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
942 else |
2190 | 943 cc_check $_x11libdir -lX11 -lXext -lGL -lm $_socklib && _gl=yes |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
944 fi |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
945 |
2358 | 946 if freebsd ; then |
947 _iconv_tmp='#include <giconv.h>' | |
948 else | |
949 _iconv_tmp='#include <iconv.h>' | |
950 fi | |
951 | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
952 cat > $TMPC << EOF |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
953 #include <stdio.h> |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
954 #include <unistd.h> |
2358 | 955 $_iconv_tmp |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
956 |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
957 #define INBUFSIZE 1024 |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
958 #define OUTBUFSIZE 4096 |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
959 |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
960 char inbuffer[INBUFSIZE]; |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
961 char outbuffer[OUTBUFSIZE]; |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
962 |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
963 main() |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
964 { ssize_t numread; |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
965 iconv_t icdsc; |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
966 char *tocode="UTF-8"; |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
967 char *fromcode="cp1250"; |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
968 if ((icdsc = iconv_open (tocode, fromcode)) != (iconv_t)(-1)){ |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
969 while ((numread = read (0, inbuffer, INBUFSIZE))){ |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
970 char *iptr=inbuffer; |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
971 char *optr=outbuffer; |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
972 size_t inleft=numread; |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
973 size_t outleft=OUTBUFSIZE; |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
974 if (iconv (icdsc, |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
975 (const char **)&iptr, &inleft, &optr, &outleft) |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
976 !=(size_t)(-1)){ |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
977 write (1, outbuffer, OUTBUFSIZE - outleft); |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
978 } |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
979 } |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
980 if (iconv_close (icdsc) == -1) ; |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
981 } |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
982 } |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
983 |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
984 EOF |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
985 _iconv=yes |
2358 | 986 if freebsd ; then |
987 cc_check $_extraincdir $_extralibdir -lm -lgiconv >/dev/null 2>&1 || \ | |
988 { _iconv=no ; echo "iconv(3) function not detected!" ;} | |
989 elif bsdos ; then | |
2190 | 990 cc_check $_extraincdir $_extralibdir -lm -liconv >/dev/null 2>&1 || \ |
2164 | 991 { _iconv=no ; echo "iconv(3) function not detected!" ;} |
992 else | |
2190 | 993 cc_check -lm || \ |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
994 { _iconv=no ; echo "iconv(3) function not detected!" ;} |
2164 | 995 fi |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
996 cat > $TMPC << EOF |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
997 #include <GL/gl.h> |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
998 int main( void ) { return 0; } |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
999 EOF |
2190 | 1000 # XXX check this for OpenBSD and BSD/OS |
1001 if freebsd || openbsd ; then | |
1002 cc_check $_x11incdir $_x11libdir -lX11 -lXext -lGL -lm -pthread $_socklib || \ | |
1003 { _gl=no; echo "GL includes not found!"; } | |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1004 else |
2190 | 1005 cc_check $_x11libdir -lX11 -lXext -lGL -lm $_socklib || \ |
1006 { _gl=no; echo "GL includes not found!"; } | |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1007 fi |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1008 |
59 | 1009 cat > $TMPC << EOF |
1010 #include <stdio.h> | |
1011 #include <X11/Xlib.h> | |
1012 #include <X11/extensions/xf86dga.h> | |
1013 int main (void) { return 0;} | |
1014 EOF | |
1015 | |
2190 | 1016 cc_check $_x11incdir -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm && _dga=yes |
59 | 1017 # Note: the -lXxf86vm library is the VideoMode extension and though it's |
1018 # not needed for DGA, AFAIK every distribution packages together with DGA | |
1019 # stuffs named 'X extensions' or something similar. This check can be usefull | |
1020 # for further mplayer versions to set resolution by mplayer itself. | |
1021 # If you run into problems, remove '-lXxf86vm'. | |
1022 | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1023 # 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
|
1024 cat > $TMPC << EOF |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1025 #include <stdio.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1026 #include <X11/Xlib.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1027 #include <X11/extensions/xf86dga.h> |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1028 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
|
1029 EOF |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1030 |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1031 _dga2=no |
2190 | 1032 cc_check $_x11incdir -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm $_socklib && _dga2=yes |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1033 |
1694 | 1034 # --- checkin X11 XShape extension |
1035 | |
1036 # echo -en 'Checking XShape extension ... ' | |
1037 | |
1038 cat > $TMPC << EOF | |
1039 #include <X11/Xlib.h> | |
1040 #include <X11/Xproto.h> | |
1041 #include <X11/Xutil.h> | |
1042 #include <X11/extensions/shape.h> | |
1043 #include <stdlib.h> | |
1044 int main( void ) | |
1045 { | |
1046 char * name = ":0.0"; | |
1047 Display * wsDisplay; | |
1048 int exitvar = 0; | |
1049 int eventbase,errorbase; | |
1050 | |
1051 if ( getenv( "DISPLAY" ) ) name=getenv( "DISPLAY" ); | |
1052 wsDisplay=XOpenDisplay( name ); | |
1053 if ( !XShapeQueryExtension( wsDisplay,&eventbase,&errorbase ) ) exitvar=1; | |
1054 XCloseDisplay( wsDisplay ); | |
1055 return exitvar; | |
1056 } | |
1057 EOF | |
1058 | |
1059 _xshape=no | |
2190 | 1060 cc_check $_x11incdir -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext $_socklib && _xshape=yes |
1694 | 1061 |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1062 fi |
1 | 1063 |
1443 | 1064 cat > $TMPC << EOF |
1065 #include <decore.h> | |
1444 | 1066 int main( void ) { return DEC_OPT_FRAME_311; } |
1443 | 1067 EOF |
2190 | 1068 cc_check $_extraincdir $_extralibdir -ldivxdecore -lm || \ |
1069 { _divx4linux=no; echo "DivX4Linux includes (decore.h) not found!"; } | |
1443 | 1070 |
1596 | 1071 cat > $TMPC << EOF |
1072 #include <dvdread/dvd_reader.h> | |
1073 #include <dvdread/ifo_types.h> | |
1074 #include <dvdread/ifo_read.h> | |
1075 #include <dvdread/nav_read.h> | |
1076 int main( void ) { return 0; } | |
1077 EOF | |
2190 | 1078 cc_check $_extraincdir $_extralibdir -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -ldvdread && \ |
1079 { _dvdread=yes; _largefiles=yes; } | |
1596 | 1080 |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1081 |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1082 cat > $TMPC << EOF |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1083 #include <mlib.h> |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1084 int main( void ) { mlib_VideoColorYUV2ABGR420(0,0,0,0,0,0,0,0,0); return 0; } |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1085 EOF |
2190 | 1086 cc_check $_extraincdir $_extralibdir -I$_mlibdir/include -L$_mlibdir/lib -lmlib && _mlib=yes |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1087 |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1088 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1089 |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1090 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1091 # --- |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1092 # check availability of some header files |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1093 |
2190 | 1094 # check for malloc.h and memalign() in it |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1095 cat > $TMPC << EOF |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1096 #include <malloc.h> |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1097 int main( void ) { return 0; } |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1098 EOF |
1678 | 1099 _memalign_def= |
1890 | 1100 _memalign=no |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1101 _malloc_h=no |
2190 | 1102 if cc_check ; then |
1103 _malloc_h=yes | |
1104 # check for memalign - atmos | |
1105 # should this be restricted to x86, or customized for cpu types (opt for cacheline sizes)? | |
1106 cat > $TMPC << EOF | |
1678 | 1107 #include <malloc.h> |
1108 int main ( void ) { | |
1109 char *string = NULL; | |
1110 string = memalign(64, sizeof(char)); | |
1111 return 0; | |
1112 } | |
1113 EOF | |
2190 | 1114 if cc_check ; then |
1115 _memalign_def='/* #define memalign(a,b) malloc(b) */' | |
1116 _memalign=yes | |
1117 else | |
1118 _memalign_def='#define memalign(a,b) malloc(b)' | |
1119 _memalign=no | |
1120 fi | |
1678 | 1121 fi |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1122 |
2190 | 1123 # check for alloca.h |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1124 cat > $TMPC << EOF |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1125 #include <alloca.h> |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1126 int main( void ) { return 0; } |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1127 EOF |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1128 _alloca_h=no |
2190 | 1129 cc_check && _alloca_h=yes |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1130 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1131 |
2190 | 1132 # check for mman.h |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1133 cat > $TMPC << EOF |
1310
db4cfb480538
Fix sys/mman.h header test for netbsd (may work no freebsd, too)
jkeil
parents:
1309
diff
changeset
|
1134 #include <sys/types.h> |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1135 #include <sys/mman.h> |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1136 int main( void ) { return 0; } |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1137 EOF |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1138 _sys_mman_h=no |
2190 | 1139 cc_check && _sys_mman_h=yes |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1140 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1141 |
2190 | 1142 # check for dlfcn.h |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1143 cat > $TMPC << EOF |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1144 #include <dlfcn.h> |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1145 int main( void ) { return 0; } |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1146 EOF |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1147 _libdl=no |
2190 | 1148 cc_check -ldl && _libdl=yes |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1149 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1150 |
2190 | 1151 # check for sys/soundcard.h |
1042
b333271f4e7c
Solaris 8 DVD support and other fixes by Juergen Keil <jk@tools.de>
arpi_esp
parents:
1038
diff
changeset
|
1152 cat > $TMPC << EOF |
b333271f4e7c
Solaris 8 DVD support and other fixes by Juergen Keil <jk@tools.de>
arpi_esp
parents:
1038
diff
changeset
|
1153 #include <sys/soundcard.h> |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1154 int main( void ) { return 0; } |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1155 EOF |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1156 _sys_soundcard_h=no |
2190 | 1157 cc_check && _sys_soundcard_h=yes |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1158 |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1159 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1160 # --- |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1161 # try to detect type of audio supported on this machine |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1162 |
2463 | 1163 |
2190 | 1164 # check for OSS audio |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1165 cat > $TMPC << EOF |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1166 #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
|
1167 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
|
1168 EOF |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1169 _oss_audio=no |
2190 | 1170 cc_check && _oss_audio=yes |
1042
b333271f4e7c
Solaris 8 DVD support and other fixes by Juergen Keil <jk@tools.de>
arpi_esp
parents:
1038
diff
changeset
|
1171 |
b333271f4e7c
Solaris 8 DVD support and other fixes by Juergen Keil <jk@tools.de>
arpi_esp
parents:
1038
diff
changeset
|
1172 |
2190 | 1173 # check for ALSA audio: 0.5.x then 0.9.x |
1174 if test "$_alsa" = yes ; then | |
1175 _alsaver=no | |
1176 cat > $TMPC << EOF | |
1004 | 1177 #include <sys/asoundlib.h> |
1029 | 1178 #include <sys/soundcard.h> |
1179 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==5)return 0; return 1; } | |
1004 | 1180 EOF |
2190 | 1181 cc_check -lasound -ldl -lpthread && $TMPO && _alsaver='0.5.x' |
1004 | 1182 |
2190 | 1183 cat > $TMPC << EOF |
1004 | 1184 #include <sys/asoundlib.h> |
1029 | 1185 #include <sys/soundcard.h> |
1186 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==9)return 0; return 1; } | |
1004 | 1187 EOF |
2190 | 1188 cc_check -lasound -ldl -lpthread && $TMPO && _alsaver='0.9.x' |
1189 fi | |
1190 test "$_alsaver" || _alsa=no | |
1004 | 1191 |
1192 | |
2190 | 1193 # check for ESD audio |
1029 | 1194 cat > $TMPC << EOF |
1195 #include <esd.h> | |
1196 int main( void ){ return 0; } | |
1197 EOF | |
2190 | 1198 cc_check $_extraincdir $_extralibdir -lesd || _esd=no |
1029 | 1199 |
2463 | 1200 |
1201 # check for SUN audio | |
1202 cat > $TMPC << EOF | |
1203 #include <sys/types.h> | |
1204 #include <sys/audioio.h> | |
1205 int main( void ) { audio_info_t info; AUDIO_INITINFO(&info); } | |
1206 EOF | |
1207 _sun_audio=no | |
1208 cc_check && _sun_audio=yes | |
1209 | |
1210 | |
2450 | 1211 # check for SGI audio |
1212 cat > $TMPC << EOF | |
1213 #include <dmedia/audio.h> | |
1214 int main( void ) { return 0; } | |
1215 EOF | |
1216 _sgi_audio=no | |
2463 | 1217 cc_check && _sgi_audio=yes |
1218 | |
1029 | 1219 |
2435 | 1220 # check for mad library |
1221 cat > $TMPC << EOF | |
1222 #include <mad.h> | |
1223 int main(void) { return 0; } | |
1224 EOF | |
1225 cc_check $_extraincdir $_extralibdir $_madlibdir $_madincdir -lmad || _mad=no | |
1226 | |
1227 | |
1029 | 1228 # --- |
1229 | |
1 | 1230 # check for the parameters. |
1231 | |
912 | 1232 _prefix="/usr/local" |
1233 | |
1424
2fcccb831d72
Solaris /bin/sh does not like the extra ; in a "for var do ... done" loop
jkeil
parents:
1422
diff
changeset
|
1234 for ac_option do |
1 | 1235 case "$ac_option" in |
717 | 1236 --enable-profile) |
1237 _profile='-p' | |
1238 ;; | |
711
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
1239 --enable-debug) |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
1240 _debug='-g' |
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
1241 ;; |
1428
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
1242 --enable-largefiles) |
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
1243 _largefiles=yes |
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
1244 ;; |
711
d73d1b2a565a
Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
atmosfear
parents:
710
diff
changeset
|
1245 --enable-debug=*) |
1133
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
1246 _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
|
1247 ;; |
492 | 1248 --enable-css) |
1249 _css=yes | |
1250 ;; | |
525 | 1251 --enable-png) |
1252 _png=yes | |
1253 ;; | |
1 | 1254 --enable-sse) |
1255 _sse=yes | |
1256 ;; | |
1257 --enable-3dnow) | |
1258 _3dnow=yes | |
1259 ;; | |
734 | 1260 --enable-3dnowex) |
1261 _3dnow=yes | |
1262 _3dnowex=yes | |
1263 ;; | |
1 | 1264 --enable-mmx) |
1265 _mmx=yes | |
1266 ;; | |
350 | 1267 --enable-mmx2) |
1268 _mmx2=yes | |
1269 ;; | |
72 | 1270 --enable-mtrr) |
1271 _mtrr=yes | |
1272 ;; | |
1 | 1273 --enable-gl) |
1274 _gl=yes | |
1275 ;; | |
1276 --enable-sdl) | |
1277 _sdl=yes | |
1278 ;; | |
1511 | 1279 --enable-aa) |
1280 _aa=yes | |
1281 ;; | |
1133
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
1282 --enable-ggi) |
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
1283 _ggi=yes |
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
1284 ;; |
1 | 1285 --enable-mga) |
1286 _mga=yes | |
1287 ;; | |
1288 --enable-xmga) | |
1289 _xmga=yes | |
1290 ;; | |
287 | 1291 --enable-svga) |
1292 _svga=yes | |
1293 ;; | |
11 | 1294 --enable-dga) |
1295 _dga=yes | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1296 ;; |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1297 --enable-dga2) |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1298 _dga2=yes |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1299 ;; |
1 | 1300 --enable-xv) |
1301 _xv=yes | |
1302 ;; | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1303 --enable-vm) |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1304 _vm=yes |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1305 ;; |
2149
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
1306 --enable-xinerama) |
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
1307 _xinerama=yes |
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
1308 ;; |
1 | 1309 --enable-3dfx) |
1310 _3dfx=yes | |
1311 ;; | |
1979
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1933
diff
changeset
|
1312 --enable-tdfxfb) |
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1933
diff
changeset
|
1313 _tdfxfb=yes |
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1933
diff
changeset
|
1314 ;; |
1 | 1315 --enable-syncfb) |
1316 _syncfb=yes | |
1317 ;; | |
225 | 1318 --enable-fbdev) |
1319 _fbdev=yes | |
1320 ;; | |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1321 --enable-iconv) |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1322 _iconv=yes |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1323 ;; |
1 | 1324 --enable-mlib) |
1325 _mlib=yes | |
1326 ;; | |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1327 --enable-vorbis) |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1328 _vorbis=yes |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1329 ;; |
1 | 1330 --enable-termcap) |
1331 _termcap=yes | |
1332 ;; | |
1333 --enable-xmmp) | |
1334 _xmmp=yes | |
1335 ;; | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1336 --enable-ossaudio) |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1337 _oss_audio=yes |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1338 ;; |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1339 --enable-sunaudio) |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1340 _sun_audio=yes |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1341 ;; |
1 | 1342 --enable-lirc) |
1343 _lirc=yes | |
1344 ;; | |
463 | 1345 --enable-select) |
1346 _select='#define HAVE_AUDIO_SELECT' | |
1347 ;; | |
723 | 1348 --enable-gui) |
1991
dee4b2ea5e5b
add gui support to config scripts, and fixed some warning.
pontscho
parents:
1979
diff
changeset
|
1349 _gui=yes |
dee4b2ea5e5b
add gui support to config scripts, and fixed some warning.
pontscho
parents:
1979
diff
changeset
|
1350 ;; |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1351 --enable-streaming) |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1352 _streaming=yes |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1353 ;; |
1991
dee4b2ea5e5b
add gui support to config scripts, and fixed some warning.
pontscho
parents:
1979
diff
changeset
|
1354 --enable-divx4) |
dee4b2ea5e5b
add gui support to config scripts, and fixed some warning.
pontscho
parents:
1979
diff
changeset
|
1355 _divx4linux=yes |
dee4b2ea5e5b
add gui support to config scripts, and fixed some warning.
pontscho
parents:
1979
diff
changeset
|
1356 ;; |
2421 | 1357 --enable-mad) |
2435 | 1358 _mad=yes |
2421 | 1359 ;; |
1360 --disable-mad) | |
2435 | 1361 _mad=no |
2421 | 1362 ;; |
492 | 1363 --disable-css) |
1364 _css=no | |
1365 ;; | |
525 | 1366 --disable-png) |
1367 _png=no | |
1368 ;; | |
1404
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1369 --disable-kernel-extchk) |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1370 _kernelextcheck=no |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1371 ;; |
1 | 1372 --disable-sse) |
1373 _sse=no | |
1374 ;; | |
1375 --disable-3dnow) | |
1376 _3dnow=no | |
734 | 1377 _3dnowex=no |
1378 ;; | |
1379 --disable-3dnowex) | |
1380 _3dnowex=no | |
1 | 1381 ;; |
1382 --disable-mmx) | |
1316 | 1383 # without mmx 3Dnow! and stuff is also not possible |
1384 _3dnow=no | |
1385 _3dnowex=no | |
1 | 1386 _mmx=no |
350 | 1387 _mmx2=no |
1 | 1388 ;; |
696 | 1389 --disable-mmx2) |
1390 _mmx2=no | |
1391 ;; | |
72 | 1392 --disable-mtrr) |
1393 _mtrr=no | |
1394 ;; | |
1 | 1395 --disable-gl) |
1396 _gl=no | |
1397 ;; | |
1398 --disable-sdl) | |
1399 _sdl=no | |
1400 ;; | |
1539 | 1401 --disable-aa) |
1511 | 1402 _aa=no |
1403 ;; | |
1133
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
1404 --disable-ggi) |
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
1405 _ggi=no |
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
1406 ;; |
1 | 1407 --disable-mga) |
1408 _mga=no | |
1409 ;; | |
1410 --disable-xmga) | |
1411 _xmga=no | |
1412 ;; | |
1413 --disable-xv) | |
1414 _xv=no | |
1415 ;; | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1416 --disable-vm) |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1417 _vm=no |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1418 ;; |
2149
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
1419 --disable-xinerama) |
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
1420 _xinerama=no |
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
1421 ;; |
1 | 1422 --disable-mlib) |
1423 _mlib=no | |
1424 ;; | |
287 | 1425 --disable-svga) |
1426 _svga=no | |
1427 ;; | |
59 | 1428 --disable-dga) |
1429 _dga=no | |
1430 ;; | |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1431 --disable-dga2) |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1432 _dga2=no |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
1433 ;; |
225 | 1434 --disable-fbdev) |
1435 _fbdev=no | |
1436 ;; | |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1437 --disable-iconv) |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1438 _iconv=no |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1439 ;; |
1 | 1440 --disable-termcap) |
1441 _termcap=no | |
1442 ;; | |
463 | 1443 --disable-select) |
1444 _select='#undef HAVE_AUDIO_SELECT' | |
1445 ;; | |
1517
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
1446 --disable-win32) |
2425 | 1447 _win32libdir= |
1448 _win32=no | |
1517
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
1449 _dshow=no # no dshow without win32dlls |
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
1450 ;; |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1451 --disable-dshow) |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1452 _dshow=no |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1453 ;; |
642 | 1454 --disable-fastmemcpy) |
1455 _fastmemcpy=no | |
1456 ;; | |
723 | 1457 --disable-gui) |
1458 _gui=no | |
1459 ;; | |
1004 | 1460 --disable-alsa) |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1461 _alsaver='notfound' |
1004 | 1462 _alsa=no |
1463 ;; | |
1029 | 1464 --disable-esd) |
1465 _esd=no | |
1466 ;; | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1467 --disable-ossaudio) |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1468 _oss_audio=no |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1469 ;; |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1470 --disable-sunaudio) |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1471 _sun_audio=no |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1472 ;; |
1443 | 1473 --disable-divx4) |
1474 _divx4linux=no | |
1475 ;; | |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1476 --disable-vorbis) |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1477 _vorbis=no |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1478 ;; |
1 | 1479 --with-win32libdir=*) |
1480 _win32libdir=`echo $ac_option | cut -d '=' -f 2` | |
2425 | 1481 _win32=yes |
1 | 1482 ;; |
492 | 1483 --with-csslibdir=*) |
1484 _csslibdir=`echo $ac_option | cut -d '=' -f 2` | |
2425 | 1485 _css=yes |
492 | 1486 ;; |
1487 --with-cssincdir=*) | |
1488 _cssincdir=`echo $ac_option | cut -d '=' -f 2` | |
2425 | 1489 _css=yes |
492 | 1490 ;; |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1491 --with-mlibdir=*) |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1492 _mlibdir=`echo $ac_option | cut -d '=' -f 2` |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1493 _mlib=yes |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1494 ;; |
1 | 1495 --size-x=*) |
1496 _x=`echo $ac_option | cut -d '=' -f 2` | |
1497 ;; | |
1498 --size-y=*) | |
1499 _y=`echo $ac_option | cut -d '=' -f 2` | |
1500 ;; | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1501 --with-x11libdir=*) |
912 | 1502 ;; |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1503 --with-x11incdir=*) |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1504 ;; |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1505 --with-extralibdir=*) |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1506 ;; |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1507 --with-extraincdir=*) |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1508 ;; |
912 | 1509 --prefix=*) |
1510 _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
|
1511 ;; |
1353 | 1512 --datadir=*) |
1513 _datadir=`echo $ac_option | cut -d '=' -f 2` | |
1514 ;; | |
196 | 1515 --cc=*) |
1516 ;; | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1517 --as=*) |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1518 ;; |
1 | 1519 esac |
1520 done | |
1521 | |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
1522 # Atmos: moved this here, to be correct, if --prefix is specified |
2171 | 1523 if test -z "$_datadir" ; then |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
1524 _datadir=$_prefix"/share/mplayer" |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
1525 fi |
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
1388
diff
changeset
|
1526 |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1527 # Checking assembler (_as) compatibility... |
1451
267264560623
Start OpenBSD support and fix detection of older GNU as.
atmos4
parents:
1450
diff
changeset
|
1528 # Added workaround for older as that reads from stdin by default - atmos |
267264560623
Start OpenBSD support and fix detection of older GNU as.
atmos4
parents:
1450
diff
changeset
|
1529 as_version=`echo '' | $_as -version 2>&1 | sed -n 's/^.*assembler \(version \)*\([0-9.]*\).*$/\2/p'` |
1261
5bb83ed0db33
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
jkeil
parents:
1258
diff
changeset
|
1530 echo $_echo_n "Checking assembler ($_as) ... $as_version, $_echo_c" |
1023 | 1531 _pref_as_version='2.9.1' |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1532 ### 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
|
1533 # cat > astest.S <<EOF |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1534 # filds -2(%ebp) |
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1535 # EOF |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1536 # $_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
|
1537 |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1538 cat > $TMPS <<EOF |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1539 nop |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1540 EOF |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1541 |
2171 | 1542 if test "$_mmx" = yes ; then |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1543 cat >> $TMPS <<EOF |
987 | 1544 emms |
1545 EOF | |
1546 fi | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1547 |
2171 | 1548 if test "$_3dnow" = yes ; then |
1023 | 1549 _pref_as_version='2.10.1' |
1019 | 1550 cat >> $TMPS <<EOF |
987 | 1551 femms |
1552 EOF | |
1553 fi | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1554 |
2171 | 1555 if test "$_3dnowex" = yes ; then |
1023 | 1556 _pref_as_version='2.10.1' |
1019 | 1557 cat >> $TMPS <<EOF |
988
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
1558 pswapd %mm0, %mm0 |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
1559 EOF |
c6f88600d409
Enable to avoid checking version of gcc. New tests of as
nickols_k
parents:
987
diff
changeset
|
1560 fi |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1561 |
2171 | 1562 if test "$_mmx2" = yes ; then |
1023 | 1563 _pref_as_version='2.10.1' |
1019 | 1564 cat >> $TMPS <<EOF |
987 | 1565 movntq %mm0, (%eax) |
1566 EOF | |
1567 fi | |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1568 |
2174 | 1569 if test "$_sse" = yes ; then |
1023 | 1570 _pref_as_version='2.10.1' |
1019 | 1571 cat >> $TMPS <<EOF |
987 | 1572 xorps %xmm0, %xmm0 |
1573 EOF | |
1023 | 1574 fi |
1575 # Note: for SSE2 assembler v2.11 should be preferred --Nick | |
2171 | 1576 #if test "$_sse2" = yes ; then |
1023 | 1577 #_pref_as_version='2.11' |
1578 #cat >> $TMPS <<EOF | |
1579 #xorpd %xmm0, %xmm0 | |
1580 #EOF | |
1581 #fi | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1582 $_as $TMPS -o $TMPO > /dev/null 2>&1 || as_verc_fail=yes |
1012
f736cf67a5ab
various changes, second filds test disabled, alsa tests fixed
arpi_esp
parents:
1011
diff
changeset
|
1583 |
2171 | 1584 if test "$as_verc_fail" != yes ; then |
990 | 1585 echo "ok" |
1586 else | |
1587 echo "failed" | |
1023 | 1588 echo "Please upgrade(downgrade) binutils to "$_pref_as_version"..." |
2171 | 1589 if test "$_skip_as_check" != yes ; then |
2190 | 1590 die "Bad binutils version" |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1591 else |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1592 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
|
1593 fi |
987 | 1594 fi |
1595 | |
1404
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1596 # Atmosfear: Checking kernel support for cpu extensions ... |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1597 extcheck() { |
2171 | 1598 if test "$1" = yes ; then |
1404
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1599 echo $_echo_n "Checking $2 support in Kernel ... $_echo_c" |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1600 cat > $TMPC <<EOF |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1601 int main(void){__asm__ __volatile__ ("$3":::"memory");return(0);} |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1602 EOF |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1603 |
2190 | 1604 if (cc_check && $TMPO) > /dev/null 2>&1 ; then |
1404
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1605 echo "ok" |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1606 return 1 |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1607 else |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1608 echo "failed" |
2190 | 1609 echo "It seems that your kernel does not correctly support $2." |
1610 echo "To use $2 extensions in MPlayer, you have to upgrade/recompile your kernel!" | |
1404
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1611 return 0 |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1612 fi |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1613 fi |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1614 return 1 |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1615 } |
2171 | 1616 if test "$_kernelextcheck" = yes ; then |
1404
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1617 if extcheck $_mmx "mmx" "emms" ; then _mmx=no ; fi |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1618 if extcheck $_3dnow "3dnow" "femms" ; then _3dnow=no ; fi |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1619 if extcheck $_3dnowex "3dnowex" "pswapd %%mm0, %%mm0" ; then _3dnowex=no ; fi |
1413 | 1620 if extcheck $_mmx2 "mmx2" "sfence" ; then _mmx2=no ; fi |
1404
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1621 if extcheck $_sse "sse" "xorps %%xmm0, %%xmm0" ; then _sse=no ; fi |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1622 #if extcheck $_sse2 "sse2" "xorpd %%xmm0, %%xmm0" ; then _sse2=no ; fi |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1623 fi |
1752eedd4f97
Added checking for x86 cpu extensions using test-programs.
atmos4
parents:
1399
diff
changeset
|
1624 |
1024 | 1625 # Checking kernel version... |
2190 | 1626 if linux ; then |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1627 _k_verc_problem=no |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1628 kernel_version=`uname -r 2>&1` |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1629 echo $_echo_n "Checking $system_name kernel version ... $_echo_c" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1630 case "$kernel_version" in |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1631 '') kernel_version="?.??"; _k_verc_fail=yes;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1632 [0-1].[0-9].[0-9]*|2.[0-3].[0-9]*) |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1633 _k_verc_problem=yes;; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1634 esac |
2171 | 1635 if test "$_k_verc_problem" = yes && test "$_sse" = yes ; then |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1636 _k_verc_fail=yes |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1637 fi |
2171 | 1638 if test "$_k_verc_fail" ; then |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1639 echo "$kernel_version, fail" |
1329 | 1640 echo "WARNING! If you want to run mplayer on this system, be prepared for problems!" |
1641 echo "(SSE support of 2.2.x series is limited. Upgrade kernel or use --disable-sse)" | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1642 else |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1643 echo "$kernel_version, ok" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1644 fi |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1645 fi |
987 | 1646 |
2171 | 1647 if test "$_xmga" = "autodetect" ; then |
1648 if test "$_x11" = yes && test "$_mga" = yes ; then | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1649 _xmga=yes |
1178 | 1650 else |
1651 _xmga=no | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1652 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1653 fi |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
440
diff
changeset
|
1654 |
1 | 1655 # to screen. |
912 | 1656 echo "Install prefix: $_prefix" |
1353 | 1657 echo "Data directory: $_datadir" |
2171 | 1658 if test "$host_arch" = i386 ; then |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1659 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1660 echo "Checking for cpu type ... $pname" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1661 fi |
1 | 1662 echo "Optimizing to ... $proc" |
2171 | 1663 if test "$host_arch" = i386 ; then |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1664 echo "Checking for mmx support ... $_mmx" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1665 echo "Checking for mmx2 support ... $_mmx2" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1666 echo "Checking for 3dnow support ... $_3dnow" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1667 echo "Checking for 3dnowex support ... $_3dnowex" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1668 echo "Checking for sse support ... $_sse" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1669 echo "Checking for mtrr support ... $_mtrr" |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1670 fi |
1 | 1671 echo "Screen size ... ${_x}x${_y}" |
1672 echo "Checking for X11 libs ... $_x11libdir" | |
1234 | 1673 echo "Checking for X11 headers ... $_x11incdir" |
1 | 1674 echo "Checking mga_vid device ... $_mga" |
1675 echo "Checking for xmga ... $_xmga" | |
1676 echo "Checking for SDL ... $_sdl" | |
1511 | 1677 echo "Checking for AA ... $_aa" |
1133
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
1678 echo "Checking for GGI ... $_ggi" |
1 | 1679 echo "Checking for OpenGL ... $_gl" |
1680 echo "Checking for Xv ... $_xv" | |
2149
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
1681 echo "Checking for Xinerama ... $_xinerama" |
1 | 1682 echo "Checking for X11 ... $_x11" |
59 | 1683 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
|
1684 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
|
1685 echo "Checking for Xf86VM ... $_vm" |
287 | 1686 echo "Checking for SVGAlib ... $_svga" |
225 | 1687 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
|
1688 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
|
1689 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
|
1690 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
|
1691 echo "Checking for Sun Audio ... $_sun_audio" |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
1692 echo "Checking for Sun mediaLib ... $_mlib" |
2450 | 1693 echo "Checking for SGI Audio ... $_sgi_audio" |
492 | 1694 echo "Checking for DeCSS support ... $_css" |
1596 | 1695 echo "Checking for DVDread support ... $_dvdread" |
525 | 1696 echo "Checking for PNG support ... $_png" |
2435 | 1697 echo "Checking for mad support ... $_mad" |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1698 echo "Checking for OggVorbis support ... $_vorbis" |
2479 | 1699 echo "Checking for Win32 DLL support ... $_win32" |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1700 echo "Checking for DirectShow ... $_dshow" |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1701 echo "Checking for iconv function ... $_iconv" |
1740 | 1702 |
1703 # check if compiler supports C++ and C++-libs are installed correctly | |
2425 | 1704 if test "$_win32" = yes && test "$_dshow" = yes ; then |
1740 | 1705 cat > $TMPCPP << EOF |
1706 /* very useful C++ test program by atmos */ | |
1707 #include <string> | |
1708 | |
1709 class myclass { | |
1710 private: | |
1711 int ret; | |
1712 public: | |
1713 int myreturn(void); | |
1714 }; | |
1715 | |
1716 int myclass::myreturn(void) { | |
1717 ret = 0; | |
1718 return ret; | |
1719 } | |
1720 | |
1721 int main(void) { | |
1722 myclass myobject; | |
1723 return myobject.myreturn(); | |
1724 } | |
1725 EOF | |
1726 echo $_echo_n "Checking if your compiler '$_cc' supports C++ ... $_echo_c" | |
1727 if $_cc $TMPCPP -o $TMPO > /dev/null 2>&1 ; then | |
2171 | 1728 echo yes |
1740 | 1729 echo $_echo_n "Checking for proper C++ runtime enviroment ... $_echo_c" |
1730 if $TMPO ; then | |
2171 | 1731 echo yes |
1740 | 1732 else |
2171 | 1733 echo no |
1740 | 1734 cat << EOF |
1735 Your C++ runtime enviroment is broken, make sure you correctly install the | |
1736 C++ libraries (libstdc++) and that the library path containing them is in | |
1737 your (/etc/)ld.so.conf! | |
1738 If you don't need DirectShow support, you can also use: | |
1739 ./configure --disable-dshow <your-normal-configure-options> | |
1740 to disable building of the C++ based DirectShow code. | |
1741 EOF | |
2190 | 1742 die "C++ runtime enviroment broken" |
1740 | 1743 fi |
1744 else | |
2171 | 1745 echo no |
1740 | 1746 cat << EOF |
1747 Your C++ compiler does not support C++, make sure you have enabled it on | |
1748 compiler compilation or for binary packages, make sure the appropriate | |
1749 packages are installed! | |
1750 If you don't need DirectShow support, you can also use: | |
1751 ./configure --disable-dshow <your-normal-configure-options> | |
1752 to disable building of the C++ based DirectShow code. | |
1753 EOF | |
2190 | 1754 die "C++ compiler not supporting C++" |
1740 | 1755 fi |
1756 fi | |
1757 | |
1279 | 1758 echo "Checking for libavcodec ... $_libavcodec" |
1427 | 1759 echo "Checking for divx4linux ... $_divx4linux" |
642 | 1760 echo "Checking for fastmemcpy ... $_fastmemcpy" |
1234 | 1761 echo "Extra libs : $_extralibdir" |
1762 echo "Extra headers : $_extraincdir" | |
1 | 1763 # write conf files. |
1764 | |
2171 | 1765 if test "$_gui" = yes ; then |
1694 | 1766 # --------------- GUI begin ------------------- |
1767 | |
1718
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
1768 echo |
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
1769 echo $_echo_n "Checking for gtk version ... $_echo_c" |
1694 | 1770 _gtk=`gtk-config --version 2>&1` |
2190 | 1771 test -z "$_gtk" && die "gtk not found." |
1694 | 1772 echo "$_gtk" |
1773 | |
1718
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
1774 echo $_echo_n "Checking for gtk includes ... $_echo_c" |
1694 | 1775 _gtkinc=`gtk-config --cflags 2>&1` |
2190 | 1776 test -z "$_gtkinc" && die "gtk not found." |
1694 | 1777 echo "done" |
1778 | |
1718
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
1779 echo $_echo_n "Checking for gtk libs ... $_echo_c" |
1694 | 1780 _gtklib=`gtk-config --libs 2>&1` |
2190 | 1781 test -z "$_gtklib" && die "gtk not found." |
1694 | 1782 echo "done" |
1783 | |
1718
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
1784 echo |
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
1785 echo $_echo_n "Checking for glib version ... $_echo_c" |
1694 | 1786 _glib=`glib-config --version 2>&1` |
2190 | 1787 test -z "$_glib" && die "glib not found." |
1694 | 1788 echo "$_glib" |
1789 | |
1718
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
1790 echo $_echo_n "Checking for glib includes ... $_echo_c" |
1694 | 1791 _glibinc=`glib-config --cflags 2>&1` |
2190 | 1792 test -z "$_glibinc" && die "glib not found." |
1694 | 1793 echo "done" |
1794 | |
1718
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
1795 echo $_echo_n "Checking for glib libs ... $_echo_c" |
1694 | 1796 _gliblib=`glib-config --libs 2>&1` |
2190 | 1797 test -z "$_gliblib" && die "glib not found." |
1694 | 1798 echo "done" |
1799 | |
1800 cat > Gui/config.mak << EOF | |
1801 | |
1802 # -------- Generated by ./configure ----------- | |
1803 | |
1804 GTKINC=$_gtkinc | |
1805 GTKLIBS=$_gtklib | |
1806 GLIBINC=$_glibinc | |
1807 GLIBLIBS=$_gliblib | |
1808 | |
1809 EOF | |
1810 | |
2190 | 1811 |
1694 | 1812 # --------------- GUI end ------------------- |
1813 fi | |
1814 | |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1815 _streamingdef='#undef STREAMING' |
2171 | 1816 if test "$_streaming" = yes ; then |
2310 | 1817 # _streamingsrcs='asf_streaming.c network.c url.c http.c' |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1818 _streamingdef='#define STREAMING' |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1819 fi |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
1820 |
2171 | 1821 if test "$_gl" = yes ; then |
2190 | 1822 # XXX check this for OpenBSD & BSD/OS |
1823 if freebsd || openbsd ; then | |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1824 # Under XFree86 4.x GL port is poorly designed |
2171 | 1825 if test -r /usr/X11R6/bin/XFree86 ; then |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1826 _gllib='-lGL -pthread' |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1827 else |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1828 _gllib='-lGL' |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1829 fi |
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1830 else |
1 | 1831 _gllib='-lGL' |
1177
f2516027a346
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
arpi_esp
parents:
1136
diff
changeset
|
1832 fi |
1 | 1833 fi |
1834 | |
2093
d2bed9c43e3b
compile and install fibmap_mplayer ofly if libcss is used. gmplayer link is created
arpi
parents:
2090
diff
changeset
|
1835 _cssdef='#undef HAVE_LIBCSS' |
1596 | 1836 _csslib='' |
1837 _cssinc='' | |
1838 | |
2171 | 1839 if test "$_dvdread" = yes ; then |
1596 | 1840 _csslib='-ldvdread' |
1841 _dvdreaddef='#define USE_DVDREAD' | |
2171 | 1842 _css=no |
1596 | 1843 else |
1844 _dvdreaddef='#undef USE_DVDREAD' | |
1845 | |
2171 | 1846 if test "$_css" = yes ; then |
1847 if test "$_csslibdir" ; then | |
492 | 1848 _csslib="-L${_csslibdir} -lcss" |
1849 else | |
1850 _csslib='-lcss' | |
1851 fi | |
2093
d2bed9c43e3b
compile and install fibmap_mplayer ofly if libcss is used. gmplayer link is created
arpi
parents:
2090
diff
changeset
|
1852 _cssdef='#define HAVE_LIBCSS' |
2171 | 1853 if test "$_cssincdir" ; then |
492 | 1854 _cssinc="-I${_cssincdir}" |
1855 else | |
1856 _cssinc="" | |
1857 fi | |
1596 | 1858 fi |
1859 | |
492 | 1860 fi |
1861 | |
1517
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
1862 |
2425 | 1863 if test "$_win32" = yes ; then |
1864 _use_win32dll="#define USE_WIN32DLL 1" | |
1865 _win32lib="-Lloader -lloader" | |
1866 _win32dep="loader/libloader.a" | |
1867 if test "$_dshow" = yes ; then | |
1868 _use_directshow="#define USE_DIRECTSHOW" | |
1869 _dshowlib="-Lloader/DirectShow -lDS_Filter -lstdc++" | |
1870 _dshowdep="loader/DirectShow/libDS_Filter.a" | |
1871 else | |
1872 _dshow="#undef USE_DIRECTSHOW" | |
1873 _dshowlib= | |
1874 _dshowdep= | |
1875 fi | |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1876 else |
2425 | 1877 _use_win32dll="#undef USE_WIN32DLL" |
1878 _win32lib= | |
1879 _win32dep= | |
1880 _use_directshow="#undef USE_DIRECTSHOW" | |
1881 _dshowlib= | |
1882 _dshowdep= | |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1883 fi |
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
1884 |
1517
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
1885 |
2171 | 1886 if test "$_libavcodec" = yes ; then |
1279 | 1887 _lavclib='-Llibavcodec -lavcodec' |
1888 _lavcdep='libavcodec/libavcodec.a' | |
1889 _libavcodec='#define USE_LIBAVCODEC' | |
1890 else | |
1891 _lavclib='' | |
1892 _lavcdep='' | |
1893 _libavcodec='#undef USE_LIBAVCODEC' | |
1894 fi | |
1895 | |
2171 | 1896 if test "$_fastmemcpy" = yes ; then |
642 | 1897 _fastmemcpy='#define USE_FASTMEMCPY' |
1898 else | |
1899 _fastmemcpy='#undef USE_FASTMEMCPY' | |
1900 fi | |
1901 | |
2171 | 1902 if test "$_x11" = yes ; then |
1903 if test "$_xdpms_3" = yes ; then | |
330 | 1904 _x11lib='-lX11 -lXext -lXdpms' |
1344
bb1f389a002c
Remove "sdl-config: not found" error message during configure, when the system
jkeil
parents:
1335
diff
changeset
|
1905 _have_xdpms='#define HAVE_XDPMS 1' |
2171 | 1906 elif test "$_xdpms_4" = yes ; then |
1902 | 1907 _x11lib='-lX11 -lXext' |
1908 _have_xdpms='#define HAVE_XDPMS 1' | |
330 | 1909 else |
1910 _x11lib='-lX11 -lXext' | |
1344
bb1f389a002c
Remove "sdl-config: not found" error message during configure, when the system
jkeil
parents:
1335
diff
changeset
|
1911 _have_xdpms='#undef HAVE_XDPMS' |
330 | 1912 fi |
1 | 1913 fi |
1914 | |
2171 | 1915 if test "$_xv" = yes ; then |
1 | 1916 _xvlib='-lXv' |
1917 fi | |
1918 | |
2171 | 1919 if test "$_xinerama" = yes ; then |
2152 | 1920 _xineramalib='-lXinerama' |
2149
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
1921 fi |
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
1922 |
2171 | 1923 if test "$_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
|
1924 _sdllib=`$_sdlconfig --libs` |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
1925 _sdlcflags=`$_sdlconfig --cflags` |
1 | 1926 fi |
1927 | |
2171 | 1928 if test "$_ggi" = yes ; then |
1133
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
1929 _ggilib='-lggi' |
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
1930 fi |
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
1931 |
2171 | 1932 if test "$_dga" = yes ; then |
14 | 1933 _dgalib='-lXxf86dga' |
1934 fi | |
1935 | |
2171 | 1936 if test "$_svga" = yes ; then |
289 | 1937 _svgalib='-lvgagl -lvga' |
287 | 1938 fi |
1939 | |
2171 | 1940 if test "$_vm" = yes ; then |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1941 _vmlib='-lXxf86vm' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
1942 fi |
14 | 1943 |
2171 | 1944 if test "$_termcap" = yes ; then |
1 | 1945 _termcap='#define USE_TERMCAP' |
1946 _libtermcap='-ltermcap' | |
1947 else | |
1948 _termcap='#undef USE_TERMCAP' | |
1949 _libtermcap='' | |
1950 fi | |
1951 | |
2171 | 1952 if test "$_kstat" = yes ; then |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1953 _have_libkstat="#define HAVE_LIBKSTAT 1" |
1261
5bb83ed0db33
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
jkeil
parents:
1258
diff
changeset
|
1954 else |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
1955 _have_libkstat="#undef HAVE_LIBKSTAT" |
1261
5bb83ed0db33
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
jkeil
parents:
1258
diff
changeset
|
1956 fi |
5bb83ed0db33
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
jkeil
parents:
1258
diff
changeset
|
1957 |
2171 | 1958 if test "$_xmmp" = yes ; then |
1 | 1959 _xmmpaudio='#define USE_XMMP_AUDIO' |
1960 _xmmplibs='-Llibxmm -lxmm' | |
1961 else | |
1962 _xmmpaudio='#undef USE_XMMP_AUDIO' | |
1963 fi | |
1964 | |
2171 | 1965 if test "$_iconv" = yes ; then |
2190 | 1966 _iconv='#define USE_ICONV' |
2358 | 1967 if freebsd ; then |
1968 _iconvlib="-lgiconv" | |
1969 elif bsdos ; then | |
2190 | 1970 _iconvlib="-liconv" |
1971 fi | |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1972 else |
2190 | 1973 _iconv='#undef USE_ICONV' |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1974 fi |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
1975 |
2171 | 1976 if test "$_lirc" = yes ; then |
1 | 1977 _lircdefs='#define HAVE_LIRC' |
1978 _lirclibs='-llirc_client' | |
1979 else | |
1980 _lircdefs='#undef HAVE_LIRC' | |
1981 _lirclibs='' | |
1982 fi | |
1983 | |
2171 | 1984 if test "$_png" = yes ; then |
660
29c9635aa144
Changed vo png to use -lz which is needed on some systems.
atmosfear
parents:
642
diff
changeset
|
1985 _libpng='-lpng -lz' |
525 | 1986 fi |
1 | 1987 |
2421 | 1988 |
2171 | 1989 if test "$_vorbis" = yes ; then |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1990 _vorbis='#define HAVE_OGGVORBIS' |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1991 _libvorbis='-lvorbis -lm' |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1992 else |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1993 _vorbis='#undef HAVE_OGGVORBIS' |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1994 fi |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
1995 |
1034 | 1996 _aosrc='' |
1997 | |
1033 | 1998 _alsa5='#undef HAVE_ALSA5' |
1999 _alsa9='#undef HAVE_ALSA9' | |
2171 | 2000 if test "$_alsa" = yes ; then |
2190 | 2001 if test "$_alsaver" = '0.5.x' ; then |
2002 _aosrc="$_aosrc ao_alsa5.c" | |
2003 _alsa5='#define HAVE_ALSA5' | |
2004 _alsalib='-lasound'; | |
2005 elif test "$_alsaver" = '0.9.x' ; then | |
2006 _aosrc="$_aosrc ao_alsa9.c" | |
2007 _alsa9='#define HAVE_ALSA9' | |
2008 _alsalib='-lasound' | |
2009 fi | |
1033 | 2010 fi |
2011 | |
2012 _esdd='#undef HAVE_ESD' | |
2171 | 2013 #if test "$_esd" = yes ; then |
1033 | 2014 # _esdd='#define HAVE_ESD' |
1034 | 2015 # _aosrc="$_aosrc ao_esd.c" |
1033 | 2016 # _esdlib='-lesd' |
2017 #fi | |
2018 | |
2171 | 2019 if test "$_oss_audio" = yes ; then |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
2020 _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
|
2021 _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
|
2022 else |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
2023 _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
|
2024 fi |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
2025 |
2171 | 2026 if test "$_sun_audio" = yes ; then |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
2027 _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
|
2028 _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
|
2029 else |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
2030 _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
|
2031 fi |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by JŤärgen Keil <jk@tools.de>
arpi_esp
parents:
1034
diff
changeset
|
2032 |
2450 | 2033 if [ "$_sgi_audio" = "yes" ]; then |
2034 _sgiaudio='#define USE_SGI_AUDIO' | |
2035 _aosrc="$_aosrc ao_sgi.c" | |
2036 _sgi_audio_lib='-laudio' | |
2037 else | |
2038 _sgiaudio='#undef USE_SGI_AUDIO' | |
2039 fi | |
2040 | |
2171 | 2041 if test "$_sys_soundcard_h" = yes ; then |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2042 _have_soundcard_h='#define HAVE_SYS_SOUNDCARD_H 1' |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2043 else |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2044 _have_soundcard_h='#undef HAVE_SYS_SOUNDCARD_H' |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2045 fi |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2046 |
2467 | 2047 if test "$_malloc_h" = yes ; then |
2193 | 2048 _have_malloc_h='#define HAVE_MALLOC_H 1' |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2049 else |
2193 | 2050 _have_malloc_h='#undef HAVE_MALLOC_H' |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2051 fi |
2467 | 2052 # malloc.h useless in FreeBSD |
2053 freebsd && _have_malloc_h='#undef HAVE_MALLOC_H' | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2054 |
2171 | 2055 if test "$_memalign" = yes ; then |
1890 | 2056 _have_memalign='#define HAVE_MEMALIGN 1' |
2057 else | |
2058 _have_memalign='#undef HAVE_MEMALIGN' | |
2059 fi | |
2060 | |
2171 | 2061 if test "$_alloca_h" = yes ; then |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2062 _have_alloca_h='#define HAVE_ALLOCA_H 1' |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2063 else |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2064 _have_alloca_h='#undef HAVE_ALLOCA_H' |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2065 fi |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2066 |
2171 | 2067 if test "$_sys_mman_h" = yes ; then |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2068 _have_mman_h='#define HAVE_SYS_MMAN_H 1' |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2069 else |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2070 _have_mman_h='#undef HAVE_SYS_MMAN_H' |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2071 fi |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2072 |
2171 | 2073 if test "$_libdl" = yes ; then |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2074 _have_libdl='#define HAVE_LIBDL 1' |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2075 else |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2076 _have_libdl='#undef HAVE_LIBDL' |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2077 fi |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2078 |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2079 |
697 | 2080 # Checking for CFLAGS |
2171 | 2081 if test "$_profile" || test "$_debug" ; then |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2082 CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" |
2450 | 2083 elif test -z "$CFLAGS" ; then |
2084 if [ "$host_arch" != "mips" ]; then | |
2085 CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer" | |
2086 else | |
2087 CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer" | |
2088 fi | |
2239
9525c7d29543
Added notice about CFLAGS and added -fomit-frame-pointer to be always used.
atmos4
parents:
2228
diff
changeset
|
2089 else |
9525c7d29543
Added notice about CFLAGS and added -fomit-frame-pointer to be always used.
atmos4
parents:
2228
diff
changeset
|
2090 cat <<EOF |
9525c7d29543
Added notice about CFLAGS and added -fomit-frame-pointer to be always used.
atmos4
parents:
2228
diff
changeset
|
2091 MPlayer is using custom CFLAGS set by you, it is strongly recommended that you |
9525c7d29543
Added notice about CFLAGS and added -fomit-frame-pointer to be always used.
atmos4
parents:
2228
diff
changeset
|
2092 let MPlayer choose the correct CFLAGS! |
9525c7d29543
Added notice about CFLAGS and added -fomit-frame-pointer to be always used.
atmos4
parents:
2228
diff
changeset
|
2093 To do so execute CFLAGS= ./configure <your options> |
9525c7d29543
Added notice about CFLAGS and added -fomit-frame-pointer to be always used.
atmos4
parents:
2228
diff
changeset
|
2094 EOF |
697 | 2095 fi |
2190 | 2096 |
2097 # XXX check this for OpenBSD and BSD/OS | |
2098 # Mandatory for MT applications on Linux & FreeBSD | |
2099 if linux ; then | |
2100 CFLAGS="$CFLAGS -D_REENTRANT" | |
2101 elif bsd ; then | |
2102 CFLAGS="$CFLAGS -D_THREAD_SAFE" | |
1182 | 2103 fi |
2104 | |
2164 | 2105 |
1428
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
2106 # 64 bit file offsets? |
2190 | 2107 if test "$_largefiles" = yes || freebsd ; then |
2108 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" | |
2171 | 2109 if test "$_dvdread" = yes ; then |
2190 | 2110 # dvdread support requires this (for off64_t) |
2111 CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" | |
1596 | 2112 fi |
1428
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
2113 fi |
a90d889eb649
largefile patch by Stephen Davies <steve@daviesfam.org>
arpi
parents:
1427
diff
changeset
|
2114 |
1 | 2115 # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak |
2116 | |
2117 echo "Creating $CCONF" | |
2118 | |
2171 | 2119 if test "$_mmx" = yes ; then |
1 | 2120 _mmx='#define HAVE_MMX' |
2171 | 2121 _cfg_mmx=yes |
1 | 2122 else |
2123 _mmx='#undef HAVE_MMX' | |
2171 | 2124 _cfg_mmx=no |
1 | 2125 fi |
2126 | |
2171 | 2127 if test "$_mmx2" = yes ; then |
350 | 2128 _mmx2='#define HAVE_MMX2' |
2171 | 2129 _cfg_mmx2=yes |
350 | 2130 else |
2131 _mmx2='#undef HAVE_MMX2' | |
2171 | 2132 _cfg_mmx2=no |
350 | 2133 fi |
2134 | |
2171 | 2135 if test "$_3dnow" = yes ; then |
1 | 2136 _3dnowm='#define HAVE_3DNOW' |
2171 | 2137 _cfg_3dnow=yes |
1 | 2138 else |
2139 _3dnowm='#undef HAVE_3DNOW' | |
2171 | 2140 _cfg_3dnow=no |
1 | 2141 fi |
2142 | |
2171 | 2143 if test "$_3dnowex" = yes ; then |
734 | 2144 _3dnowexm='#define HAVE_3DNOWEX' |
2171 | 2145 _cfg_3dnowex=yes |
734 | 2146 else |
2147 _3dnowexm='#undef HAVE_3DNOWEX' | |
2171 | 2148 _cfg_3dnowex=no |
734 | 2149 fi |
2150 | |
2171 | 2151 if test "$_sse" = yes ; then |
1 | 2152 _ssem='#define HAVE_SSE' |
2171 | 2153 _cfg_sse=yes |
1 | 2154 else |
2155 _ssem='#undef HAVE_SSE' | |
2171 | 2156 _cfg_sse=no |
1 | 2157 fi |
2158 | |
2159 # --- | |
2160 | |
2161 _vosrc='' | |
1034 | 2162 #_aosrc='' |
1 | 2163 |
2171 | 2164 if test "$_aa" = yes ; then |
1511 | 2165 _aa='#define HAVE_AA' |
2166 _vosrc=$_vosrc' vo_aa.c' | |
2167 _aalib='-laa' | |
2168 else | |
2169 _aa='#undef HAVE_AA' | |
2170 _aalib='' | |
2171 fi | |
2172 | |
2171 | 2173 if test "$_png" = yes ; then |
525 | 2174 _png='#define HAVE_PNG' |
2175 _vosrc=$_vosrc' vo_png.c' | |
2176 else | |
2177 _png='#undef HAVE_PNG' | |
2178 fi | |
2179 | |
2435 | 2180 if test "$_mad" = yes ; then |
2181 _madlibrary='#define USE_LIBMAD' | |
2182 _libmad='-lmad' | |
2421 | 2183 else |
2435 | 2184 _madlibrary='#undef USE_LIBMAD' |
2185 _libmad= | |
2421 | 2186 fi |
525 | 2187 |
2171 | 2188 if test "$_mlib" = yes ; then |
1718
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
2189 _mlibdef='#define HAVE_MLIB' |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2190 _mlibinc="-I$_mlibdir/include" |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2191 _mliblib="-L$_mlibdir/lib -R$_mlibdir/lib -lmlib" |
1 | 2192 _vosrc=$_vosrc' yuv2rgb_mlib.c' |
2193 else | |
1718
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
2194 _mlibdef='#undef HAVE_MLIB' |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2195 _mlibinc= _mliblib= |
1 | 2196 fi |
2197 | |
2198 # --- | |
2199 | |
2171 | 2200 if test "$_gl" = yes ; then |
1 | 2201 _gl='#define HAVE_GL' |
2125 | 2202 _vosrc=$_vosrc' vo_gl.c vo_gl2.c' |
1 | 2203 else |
2204 _gl='#undef HAVE_GL' | |
2205 fi | |
2206 | |
2171 | 2207 if test "$_sdl" = yes ; then |
1 | 2208 _sdldef='#define HAVE_SDL' |
2209 _vosrc=$_vosrc' vo_sdl.c' | |
965 | 2210 _aosrc=$_aosrc' ao_sdl.c' |
1 | 2211 else |
2212 _sdldef='#undef HAVE_SDL' | |
2213 fi | |
2214 | |
2171 | 2215 if test "$_ggi" = yes ; then |
1133
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
2216 _ggi='#define HAVE_GGI' |
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
2217 _vosrc=$_vosrc' vo_ggi.c' |
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
2218 else |
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
2219 _ggi='#undef HAVE_GGI' |
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
2220 fi |
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
2221 |
2171 | 2222 if test "$_x11" = yes ; then |
1 | 2223 _x11='#define HAVE_X11' |
2224 _vosrc=$_vosrc' vo_x11.c' | |
2225 else | |
2226 _x11='#undef HAVE_X11' | |
2227 fi | |
2228 | |
2171 | 2229 if test "$_xv" = yes ; then |
1 | 2230 _xv='#define HAVE_XV' |
2231 _vosrc=$_vosrc' vo_xv.c' | |
2232 else | |
2233 _xv='#undef HAVE_XV' | |
2234 fi | |
2235 | |
2171 | 2236 if test "$_vm" = yes ; then |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
2237 _vm='#define HAVE_XF86VM' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
2238 else |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
2239 _vm='#undef HAVE_XF86VM' |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
2240 fi |
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
2241 |
2171 | 2242 if test "$_xinerama" = yes ; then |
2149
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
2243 _xinerama='#define HAVE_XINERAMA' |
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
2244 else |
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
2245 _xinerama='#undef HAVE_XINERAMA' |
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
2246 fi |
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
2247 |
2171 | 2248 if test "$_mga" = yes ; then |
1 | 2249 _mga='#define HAVE_MGA' |
2250 _vosrc=$_vosrc' vo_mga.c' | |
2251 else | |
2252 _mga='#undef HAVE_MGA' | |
2253 fi | |
1178 | 2254 |
2171 | 2255 if test "$_xmga" = yes ; then |
1 | 2256 _vosrc=$_vosrc' vo_xmga.c' |
1178 | 2257 _xmga='#define HAVE_XMGA' |
2258 else | |
2259 _xmga='#undef HAVE_XMGA' | |
1 | 2260 fi |
2261 | |
2171 | 2262 if test "$_syncfb" = yes ; then |
1 | 2263 _syncfb='#define HAVE_SYNCFB' |
2264 _vosrc=$_vosrc' vo_syncfb.c' | |
2265 else | |
2266 _syncfb='#undef HAVE_SYNCFB' | |
2267 fi | |
2268 | |
2171 | 2269 if test "$_3dfx" = yes ; then |
1 | 2270 _3dfx='#define HAVE_3DFX' |
2271 _vosrc=$_vosrc' vo_3dfx.c' | |
2272 else | |
2273 _3dfx='#undef HAVE_3DFX' | |
2274 fi | |
2275 | |
2171 | 2276 if test "$_tdfxfb" = yes ; then |
1979
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1933
diff
changeset
|
2277 _tdfxfb='#define HAVE_TDFXFB' |
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1933
diff
changeset
|
2278 _vosrc=$_vosrc' vo_tdfxfb.c' |
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1933
diff
changeset
|
2279 else |
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1933
diff
changeset
|
2280 _tdfxfb='#undef HAVE_TDFXFB' |
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1933
diff
changeset
|
2281 fi |
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1933
diff
changeset
|
2282 |
2171 | 2283 if test "$_svga" = yes ; then |
287 | 2284 _svga='#define HAVE_SVGALIB' |
2285 _vosrc=$_vosrc' vo_svga.c' | |
2286 else | |
2287 _svga='#undef HAVE_SVGALIB' | |
2288 fi | |
2289 | |
2171 | 2290 if test "$_dga" = yes ; then |
11 | 2291 _dga='#define HAVE_DGA' |
1235 | 2292 # _vosrc=$_vosrc' vo_dga.c vo_fsdga.c' |
2293 _vosrc=$_vosrc' vo_dga.c' | |
11 | 2294 else |
2295 _dga='#undef HAVE_DGA' | |
2296 fi | |
2297 | |
2171 | 2298 if test "$_dga2" = yes ; then |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
2299 _dga2='#define HAVE_DGA2' |
1235 | 2300 # _vosrc=$_vosrc' vo_dga.c vo_fsdga.c' |
2301 _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
|
2302 else |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
2303 _dga2='#undef HAVE_DGA2' |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
2304 fi |
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
2305 |
2171 | 2306 if test "$_xshape" = yes ; then |
1694 | 2307 _xshape_def='#define HAVE_XSHAPE' |
2308 else | |
2309 _xshape_def='#undef HAVE_XSHAPE' | |
2310 fi | |
2311 | |
2171 | 2312 if test "$_fbdev" = yes ; then |
225 | 2313 _fbdev='#define HAVE_FBDEV' |
2314 _vosrc=$_vosrc' vo_fbdev.c' | |
2315 else | |
2316 _fbdev='#undef HAVE_FBDEV' | |
2317 fi | |
2318 | |
2171 | 2319 if test "$_gui" = yes ; then |
1694 | 2320 _gui_def='#define HAVE_NEW_GUI' |
2321 _gui_lib='-LGui -lgui $(GTKLIB) $(GLIBLIB)' | |
723 | 2322 else |
2435 | 2323 _gui_def='#undef HAVE_NEW_GUI' |
2324 _gui_lib= | |
723 | 2325 fi |
2326 | |
2171 | 2327 if test "$_divx4linux" = yes ; then |
1427 | 2328 _divx4def='#define NEW_DECORE' |
2329 _decorelibs='-ldivxdecore opendivx/postprocess.o' | |
2330 else | |
2331 _divx4def='#undef NEW_DECORE' | |
2332 _decorelibs='-Lopendivx -ldecore' | |
2333 fi | |
2334 | |
2171 | 2335 if test "$_debug" ; then |
1565 | 2336 _debugdef='#define MP_DEBUG' |
2337 else | |
2338 _debugdef='#undef MP_DEBUG' | |
2339 fi | |
1258 | 2340 |
2242 | 2341 if test "$system_name" = "Linux" ; then |
2342 _linux_def='#define TARGET_LINUX' | |
2343 else | |
2344 _linux_def='#undef TARGET_LINUX' | |
2345 fi | |
1258 | 2346 echo |
2347 echo "Creating $MCONF" | |
2348 cat > $MCONF << EOF | |
2349 | |
2350 # -------- Generated by ./configure ----------- | |
2351 | |
2164 | 2352 LANG=C |
2242 | 2353 TARGET_OS=$system_name |
1258 | 2354 prefix = $_prefix |
2355 AR=ar | |
2356 CC=$_cc | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2357 # OPTFLAGS=-O4 $_profile $_debug $_march $_mcpu -pipe -fomit-frame-pointer -ffast-math |
2239
9525c7d29543
Added notice about CFLAGS and added -fomit-frame-pointer to be always used.
atmos4
parents:
2228
diff
changeset
|
2358 OPTFLAGS=$CFLAGS -fomit-frame-pointer # make sure -fomit-frame-pointer is always used |
1933 | 2359 EXTRA_INC=$_extraincdir $_gtkinc |
1452
5cc5d09fc9d4
Fixes WIN32_PATH on OpenBSD and possibly others (seems to be ok with linux too).
atmos4
parents:
1451
diff
changeset
|
2360 WIN32_PATH=-DWIN32_PATH=\\"$_win32libdir\\" |
1258 | 2361 |
2362 X11_INC=$_x11incdir | |
2363 X11DIR=$_x11libdir | |
2421 | 2364 X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib $_aalib $_libvorbis $_xineramalib $_libmad |
1258 | 2365 |
2366 TERMCAP_LIB=$_libtermcap | |
2367 XMM_LIBS = $_xmmplibs | |
2368 LIRC_LIBS = $_lirclibs | |
2093
d2bed9c43e3b
compile and install fibmap_mplayer ofly if libcss is used. gmplayer link is created
arpi
parents:
2090
diff
changeset
|
2369 CSS_USE=$_css |
1258 | 2370 CSS_LIB = $_csslib |
2371 CSS_INC = $_cssinc | |
2372 SDL_INC = $_sdlcflags | |
1517
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
2373 W32_DEP = $_win32dep |
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
2374 W32_LIB = $_win32lib |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2375 DS_DEP = $_dshowdep |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2376 DS_LIB = $_dshowlib |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2377 AV_DEP = $_lavcdep |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2378 AV_LIB = $_lavclib |
1258 | 2379 ALSA_LIB = $_alsalib |
2380 ESD_LIB = $_esdlib | |
2450 | 2381 SGI_AUDIO_LIB = $_sgi_audio_lib |
2164 | 2382 ARCH_LIBS = $_archlibs $_iconvlib |
2310 | 2383 STREAMING=$_streaming |
1427 | 2384 DECORE_LIBS = $_decorelibs |
2385 DIVX4LINUX=$_divx4linux | |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2386 MLIB_INC = $_mlibinc |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2387 MLIB_LIB = $_mliblib |
2421 | 2388 MADLIB_INC = $_madincdir |
2389 MADLIB_LIB = $_madlibdir | |
1258 | 2390 |
2391 # --- Some stuff for autoconfigure ---- | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2392 $_target_arch |
1436
42bd7f4c500b
Pre commit so I won't have to sync with later configure changes (cygwin stuff)
atmos4
parents:
1428
diff
changeset
|
2393 $_confcygwin |
1258 | 2394 TARGET_CPU=$iproc |
2395 TARGET_MMX=$_cfg_mmx | |
2396 TARGET_MMX2=$_cfg_mmx2 | |
2397 TARGET_3DNOW=$_cfg_3dnow | |
2398 TARGET_3DNOWEX=$_cfg_3dnowex | |
2399 TARGET_SSE=$_cfg_sse | |
2400 | |
2401 BINUTILS=$_binutils | |
1694 | 2402 |
1718
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
2403 HAVE_MLIB=$_mlib |
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
2404 |
1694 | 2405 # --- GUI stuff --- |
2406 GTKLIB=$_gtklib | |
2407 GLIBLIB=$_gliblib | |
2408 GUI_LIBS = $_gui_lib | |
1991
dee4b2ea5e5b
add gui support to config scripts, and fixed some warning.
pontscho
parents:
1979
diff
changeset
|
2409 GUI=$_gui |
1694 | 2410 DEBUG=-DDEBUG |
2411 | |
1258 | 2412 EOF |
1029 | 2413 |
1 | 2414 cat > $CCONF << EOF |
2415 | |
2416 /* -------- Generated by ./configure ----------- */ | |
2417 | |
2323 | 2418 #undef USE_STREAM_CACHE |
2419 | |
1422 | 2420 #define USE_OSD |
2421 #define USE_SUB | |
2422 | |
1565 | 2423 $_debugdef |
2424 | |
1596 | 2425 $_dvdreaddef |
2426 | |
1353 | 2427 /* Common data directory (for fonts, etc) */ |
2428 #define DATADIR "$_datadir" | |
2429 | |
1349 | 2430 /* Define for using new DivX4Linux library, instead of open-source OpenDivX */ |
2431 /* You have to change DECORE_LIBS in config.mak too! */ | |
1427 | 2432 $_divx4def |
1349 | 2433 |
1 | 2434 /* Define this to enable avg. byte/sec-based AVI sync method by default: |
1599 | 2435 (use -bps or -nobps commandline option for run-time method selection) |
2436 -bps gives better sync for vbr mp3 audio, it is now default */ | |
2437 #define AVI_SYNC_BPS | |
1 | 2438 |
2439 /* Undefine this if you want soundcard-only timing by default: | |
2440 You can still change this with the -alsa or -noalsa command-line option! | |
2441 (This function was originally impemented to solve ALSA driver's big | |
2442 buffer problems, but it seems to be useful for every soundcard drivers) */ | |
2443 #define ALSA_TIMER | |
2444 | |
732
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
2445 /* 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
|
2446 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
|
2447 -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
|
2448 right-only), with 0 being the default. |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
2449 */ |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
2450 #define USE_FAKE_MONO |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
723
diff
changeset
|
2451 |
1 | 2452 /* Undefine this if your soundcard driver has no working select(). |
2453 If you have kernel Oops, player hangups, or just no audio, you should | |
2454 try to recompile MPlayer with this option disabled! */ | |
463 | 2455 $_select |
1 | 2456 |
2151
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
2457 /* define this to use iconv(3) function to codepage conversions */ |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
2458 $_iconv |
a9d91476085a
modifications to use iconv(3) function to recode text of subs (autodetect)
atlka
parents:
2149
diff
changeset
|
2459 |
1 | 2460 /* XMMP support: (test code) */ |
2461 $_xmmpaudio | |
2462 #define LIBDIR "/usr/local/lib" | |
2463 #define PLUGINDIR LIBDIR "/xmmp/Plugins" | |
2464 #define XMMP_AUDIO_DRIVER PLUGINDIR "/Sound/oss.so" | |
2465 | |
755 | 2466 /* set up max. outburst. use 65536 for ALSA 0.5, for others 16384 is enough */ |
2467 #define MAX_OUTBURST 65536 | |
2468 | |
586 | 2469 /* set up audio OUTBURST. Do not change this! */ |
2470 #ifdef USE_XMMP_AUDIO | |
2471 #define OUTBURST 4096 | |
2472 #else | |
2473 //#define OUTBURST 1024 | |
2474 #define OUTBURST 512 | |
2475 #endif | |
2476 | |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2477 /* 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
|
2478 $_have_soundcard_h |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2479 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2480 /* Define this if your system has the "malloc.h" header file */ |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2481 $_have_malloc_h |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2482 |
1678 | 2483 /* memalign is mapped to malloc here, if unsupported */ |
2484 $_memalign_def | |
1890 | 2485 $_have_memalign |
1678 | 2486 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2487 /* Define this if your system has the "alloca.h" header file */ |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2488 $_have_alloca_h |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2489 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2490 /* Define this if your system has the "sys/mman.h" header file */ |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2491 $_have_mman_h |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2492 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2493 |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2494 /* Define this if you have the elf dynamic linker -ldl library */ |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2495 $_have_libdl |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2496 |
1261
5bb83ed0db33
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
jkeil
parents:
1258
diff
changeset
|
2497 /* Define this if you have the kstat kernel statistics library */ |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2498 $_have_libkstat |
1261
5bb83ed0db33
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
jkeil
parents:
1258
diff
changeset
|
2499 |
1 | 2500 /* LIRC (remote control, see www.lirc.org) support: */ |
2501 $_lircdefs | |
2502 | |
492 | 2503 /* DeCSS support using libcss */ |
2093
d2bed9c43e3b
compile and install fibmap_mplayer ofly if libcss is used. gmplayer link is created
arpi
parents:
2090
diff
changeset
|
2504 $_cssdef |
492 | 2505 |
41 | 2506 /* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */ |
1443 | 2507 #define MPEG12_POSTPROC |
41 | 2508 |
2228 | 2509 /* Define this to enable image postprocessing in libavcodec (requires FAST cpu!) */ |
2510 #define FF_POSTPROCESS | |
2511 | |
2184 | 2512 #define HAVE_ODIVX_POSTPROCESS |
2513 | |
1517
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
2514 /* Win32 DLL support */ |
2425 | 2515 $_use_win32dll |
1517
0e9c29538a86
Use USE_WIN32DLL define instead of ARCH_X86 to decide whether or not to compile
jkeil
parents:
1515
diff
changeset
|
2516 |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
2517 /* DirectShow support */ |
2425 | 2518 $_use_directshow |
627
f03f9ae6303a
DShow support selection is now by ./configure --disable-dshow
arpi_esp
parents:
590
diff
changeset
|
2519 |
1279 | 2520 /* ffmpeg's libavcodec support (requires libavcodec source) */ |
2521 $_libavcodec | |
1383
d15d60e12bd3
added #define CONFIG_DECODERS to support latest ffmpeg CVS
arpi
parents:
1353
diff
changeset
|
2522 /* use only decoders from libavcodec: */ |
d15d60e12bd3
added #define CONFIG_DECODERS to support latest ffmpeg CVS
arpi
parents:
1353
diff
changeset
|
2523 #define CONFIG_DECODERS |
1279 | 2524 |
642 | 2525 /* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... signal 4]*/ |
2526 $_fastmemcpy | |
2527 | |
723 | 2528 /* gui support, please do not edit this option */ |
1694 | 2529 $_gui_def |
1004 | 2530 #define PREFIX "$_prefix" |
723 | 2531 |
1029 | 2532 /* Audio lib drivers */ |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2533 $_ossaudio |
1029 | 2534 $_alsa5 |
2535 $_alsa9 | |
2536 $_esdd | |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2537 $_sunaudio |
2450 | 2538 $_sgiaudio |
1008 | 2539 |
947
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
2540 /* 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
|
2541 #undef FAST_OSD |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
2542 #undef FAST_OSD_TABLE |
76fd9463b9d3
FAST_OSD option to disable font outline antialiasing
arpi_esp
parents:
912
diff
changeset
|
2543 |
1 | 2544 /* Define if your processor stores words with the most significant |
2545 byte first (like Motorola and SPARC, unlike Intel and VAX). */ | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2546 $_words_endian |
1 | 2547 |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1284
diff
changeset
|
2548 $_arch |
1 | 2549 |
1441
039bd84a6c33
Make cygwin define WIN32 for compatibility with mingw and visualc, ...
atmos4
parents:
1438
diff
changeset
|
2550 $_confwin32 |
039bd84a6c33
Make cygwin define WIN32 for compatibility with mingw and visualc, ...
atmos4
parents:
1438
diff
changeset
|
2551 |
849 | 2552 /* Define this to any prefered value from 386 up to infinity with step 100 */ |
2553 #define __CPU__ $iproc | |
2554 | |
2242 | 2555 $_linux_def |
2556 | |
1495 | 2557 #ifdef sun |
2558 #define DEFAULT_CDROM_DEVICE "/vol/dev/aliases/cdrom0" | |
1608
3005f75b82fd
Provide a better default for the DVD device on solaris.
jkeil
parents:
1601
diff
changeset
|
2559 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE |
1495 | 2560 #else |
2561 #define DEFAULT_CDROM_DEVICE "/dev/cdrom" | |
1608
3005f75b82fd
Provide a better default for the DVD device on solaris.
jkeil
parents:
1601
diff
changeset
|
2562 #define DEFAULT_DVD_DEVICE "/dev/dvd" |
1495 | 2563 #endif |
2564 | |
1596 | 2565 |
849 | 2566 /*---------------------------------------------------------------------------- |
2567 ** | |
2568 ** NOTE: Instead of modifying these definitions here, use the | |
2569 ** --enable/--disable options of the ./configure script! | |
2570 ** See ./configure --help for details. | |
2571 ** | |
2572 *---------------------------------------------------------------------------*/ | |
1 | 2573 |
2574 /* termcap flag for getch2.c */ | |
2575 $_termcap | |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2576 |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
2577 /* enable PNG support */ |
525 | 2578 $_png |
1 | 2579 |
2421 | 2580 /* libmad support */ |
2581 $_madlibrary | |
2582 | |
1826
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
2583 /* enable OggVorbis support */ |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
2584 $_vorbis |
fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
atmos4
parents:
1767
diff
changeset
|
2585 |
1057
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2586 $_streamingdef |
555f58131861
fixed --disable-as-checking, added --enable-streaming
arpi_esp
parents:
1042
diff
changeset
|
2587 |
1 | 2588 /* Extension defines */ |
2589 $_3dnowm // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.) | |
734 | 2590 $_3dnowexm // only define if you have 3DNOWEX (AMD Athlon, etc.) |
1316 | 2591 $_mmx // only define if you have MMX (newer x86 chips, not P54C/PPro) |
2592 $_mmx2 // only define if you have MMX2 (Athlon/PIII/4/CelII) | |
2593 $_ssem // only define if you have SSE (Intel Pentium III/4 or Celeron II) | |
1 | 2594 |
1438 | 2595 #ifdef HAVE_MMX |
2596 #define USE_MMX_IDCT | |
2597 #endif | |
2598 | |
1718
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
2599 $_mlibdef // Sun mediaLib, available only on solaris |
3df3982c2c36
Fix "echo -n" problems on solaris for the new GUI stuff.
jkeil
parents:
1694
diff
changeset
|
2600 |
1680
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2601 /* libmpeg2 uses a different feature test macro for mediaLib */ |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2602 #ifdef HAVE_MLIB |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2603 #define LIBMPEG2_MLIB |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2604 #endif |
f6d2a4bc9bb5
Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents:
1678
diff
changeset
|
2605 |
1 | 2606 /* libvo options */ |
2607 #define SCREEN_SIZE_X $_x | |
2608 #define SCREEN_SIZE_Y $_y | |
2609 $_x11 | |
2610 $_xv | |
209
26d2d4d3331a
Addes autodetection of XF86VidMode to configure, and adds a description of
mgraffam
parents:
196
diff
changeset
|
2611 $_vm |
2149
6358db6ad3d0
Xinerama screen size fix by Lev Babiev <harley@hosers.org>
arpi
parents:
2125
diff
changeset
|
2612 $_xinerama |
1 | 2613 $_gl |
11 | 2614 $_dga |
233
f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
mgraffam
parents:
225
diff
changeset
|
2615 $_dga2 |
1 | 2616 $_sdldef |
704 | 2617 /* defined for SDLlib with keyrepeat bugs (before 1.2.1) */ |
2618 $_sdlbuggy | |
1133
4d7e3d711f44
Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
atmosfear
parents:
1120
diff
changeset
|
2619 $_ggi |
1 | 2620 $_3dfx |
1979
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1933
diff
changeset
|
2621 $_tdfxfb |
1 | 2622 $_mga |
1178 | 2623 $_xmga |
1 | 2624 $_syncfb |
225 | 2625 $_fbdev |
287 | 2626 $_svga |
1344
bb1f389a002c
Remove "sdl-config: not found" error message during configure, when the system
jkeil
parents:
1335
diff
changeset
|
2627 $_have_xdpms |
1511 | 2628 $_aa |
1 | 2629 |
1694 | 2630 /* used by GUI: */ |
2631 $_xshape_def | |
2632 | |
23 | 2633 #if defined(HAVE_GL)||defined(HAVE_X11)||defined(HAVE_XV) |
1 | 2634 #define X11_FULLSCREEN |
2635 #endif | |
2636 | |
2637 EOF | |
2638 | |
2639 echo "Creating libvo/config.mak" | |
2640 | |
2641 _voobj=`echo $_vosrc | sed -e 's/\.c/\.o/g'` | |
2642 | |
2643 cat > libvo/config.mak << EOF | |
2644 | |
2645 include ../config.mak | |
2646 | |
2647 OPTIONAL_SRCS=$_vosrc | |
2648 OPTIONAL_OBJS=$_voobj | |
2649 | |
2650 EOF | |
2651 | |
965 | 2652 echo "Creating libao2/config.mak" |
2653 | |
2654 _aoobj=`echo $_aosrc | sed -e 's/\.c/\.o/g'` | |
2655 | |
2656 cat > libao2/config.mak << EOF | |
2657 | |
2658 include ../config.mak | |
2659 | |
2660 OPTIONAL_SRCS=$_aosrc | |
2661 OPTIONAL_OBJS=$_aoobj | |
2662 | |
2663 EOF | |
2664 | |
1 | 2665 cat << EOF |
2666 | |
2667 Config files successfully generated by ./configure ! | |
2190 | 2668 Please check config.h and config.mak files, tune CPU and optimization flags if |
2669 you don't like these defaults. | |
2670 You can compile the program with 'make' and install with 'make install'. Good | |
2671 luck! | |
2672 | |
2673 Note: On non-Linux systems you might need to use 'gmake' instead of 'make'. | |
1 | 2674 |
2675 EOF | |
2676 | |
1618 | 2677 echo Creating $CHELP |
2678 cat > $CHELP << EOF | |
2679 #include "$_mp_help" | |
2680 EOF | |
2681 | |
2171 | 2682 if test "$_mtrr" = yes ; then |
2090 | 2683 echo "Please check mtrr settings at /proc/mtrr (see DOCS/video.html#2.2.1.1)" |
1 | 2684 echo |
2685 fi | |
2686 | |
2171 | 2687 if test "$_sdl" = "outdated" ; then |
2190 | 2688 cat <<EOF |
2689 You have an outdated version of libSDL installed (older than v1.1.7) and SDL | |
2690 support has therefore been disabled. | |
2691 | |
2692 Please upgrade to a more recent version (version 1.1.8 and above are known to | |
2693 work). You may get this library from: http://www.libsdl.org | |
2694 | |
2695 You need to re-run ./configure and recompile after updating SDL. If you are | |
2696 only interested in the libSDL audio drivers, then older version might work. | |
2697 | |
2698 Use --enable-sdl to force usage of libSDL. | |
2699 EOF | |
1 | 2700 fi |
2701 | |
2171 | 2702 if test "$host_arch" = "i386" ; then |
2425 | 2703 if test "$_win32" = no ; then |
2704 if test "$_win32libdir" ; then | |
2705 cat <<EOF | |
2190 | 2706 Failed to find a WIN32 codecs dir at $_win32libdir! |
2707 Create it and copy the DLL files there! (You can get them from your windows | |
2708 directory or download them from: | |
2225 | 2709 ftp://ftp.MPlayerHQ.hu/MPlayer/releases/w32codec.zip |
2190 | 2710 EOF |
2425 | 2711 fi |
2190 | 2712 else |
2427 | 2713 if test "$_win32libdir" ; then |
2714 echo "Ok, found Win32 codecs directory at $_win32libdir." | |
2715 else | |
2716 cat <<EOF | |
2717 Failed to find a WIN32 codecs dir at $_win32libdir! | |
2718 Create it and copy the DLL files there! (You can get them from your windows | |
2719 directory or download them from: | |
2720 ftp://ftp.MPlayerHQ.hu/MPlayer/releases/w32codec.zip | |
2721 EOF | |
2722 fi | |
2190 | 2723 fi |
1 | 2724 else |
2190 | 2725 cat <<EOF |
2726 NOTE: WIN32 codec DLLs are not supported on your CPU ($host_arch). | |
2727 You may encounter a few AVI files that cannot be played due to missing | |
2728 opensource video/audio codec support. | |
2729 EOF | |
1 | 2730 fi |
2731 | |
1021 | 2732 # Last move: |
2190 | 2733 rm -f "$TMPO" "$TMPC" "$TMPS" "$TMPCPP" |
1021 | 2734 |