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