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