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