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