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