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