* modules/video_output/x11/glx.c: new OpenGL vout for X11.
[vlc.git] / build-vlc
1 #!/bin/sh
2
3 FEATURES="
4 SKINS skins
5 SKINS skins2
6 FAMILIAR familiar
7 WXWINDOWS wxwindows
8 OPIE opie
9 MACOSX macosx
10 QNX qnx
11 NCURSES ncurses
12 XOSD xosd
13 VISUAL visual
14 GOOM goom
15 SLP slp
16 LIRC lirc
17 JOYSTICK joystick
18 CORBA corba
19 LIVEDOTCOM livedotcom
20 DVDREAD dvdread
21 DVDNAV dvdnav
22 DSHOW dshow
23 DVBPSI dvbpsi
24 V4L v4l
25 PVR pvr
26 VCD vcd
27 SATELLITE satellite
28 DVB dvb
29 OGG ogg
30 MKV mkv
31 MOD mod
32 X11 x11
33 XVIDEO xvideo
34 GLX glx
35 FB fb
36 MGA mga
37 SDL sdl
38 FREETYPE freetype
39 FRIBIDI fribidi
40 SVG svg
41 QTE qte
42 HD1000V hd1000v
43 DIRECTX directx
44 WINGDI wingdi
45 SVGALIB svgalib
46 GGI ggi
47 GLIDE glide
48 AA aa
49 CACA caca
50 OSS oss
51 ESD esd
52 ARTS arts
53 ALSA alsa
54 WAVEOUT waveout
55 COREAUDIO coreaudio
56 HD1000A hd1000a
57 MAD mad
58 FFMPEG ffmpeg
59 FAAD faad
60 QUICKTIME quicktime
61 A52 a52
62 DTS dts
63 FLAC flac
64 LIBMPEG2 libmpeg2
65 VORBIS vorbis
66 TREMOR tremor
67 SPEEX speex
68 TARKIN tarkin
69 THEORA theora
70 CMML cmml
71 UTF8 utf8
72 PTH pth
73 ST st
74 GPROF gprof
75 CPROF cprof
76 MOZILLA mozilla
77 TESTSUITE testsuite
78 OPTIMIZATIONS optimizations
79 ALTIVEC altivec
80 DEBUG debug
81 RELEASE release
82 SOUT sout
83 WITHFFMPEGMP3LAME ffmpeg-mp3lame
84 WITHFFMPEGFAAC ffmpeg-faac
85 GALAKTOS galaktos
86 "
87 PATHS="
88 WITHXML2CONFIGPATH xml2-config-path
89 WITHWXCONFIGPATH wx-config-path
90 WITHQTE qte
91 WITHGOOMTREE goom-tree
92 WITHSLP slp
93 WITHLIVEDOTCOMTREE livedotcom-tree
94 WITHDVDREAD dvdread
95 WITHDVDREADTREEE dvdread-tree
96 WITHDVDNAVCONFIGPATH dvdnav-config-path
97 WITHDVBPSI dvbpsi
98 WITHDVBPSITREE dvbpsi-tree
99 WITHV4L v4l
100 WITHDVB dvb
101 WITHSDLCONFIGPATH sdl-config-path
102 WITHSDLPREFIX sdl-prefix
103 WITHFREETYPECONFIGPATH freetype-config-path
104 WITHFRIBIDICONFIGPATH fribidi-config-path
105 WITHQTE qte
106 WITHDIRECTX directx
107 WITHGGI ggi
108 WITHGLIDE glide
109 WITHCACACONFIGPATH caca-config-path
110 WITHMAD mad
111 WITHMADTREE mad-tree
112 WITHFFMPEGTREE ffmpeg-tree
113 WITHFAADTREE faad-tree
114 WITHA52 a52
115 WITHA52TREE a52-tree
116 WITHDTSTREE dts-tree
117 WITHLIBMPEG2TREE libmpeg2-tree
118 WITHTARKINTREE tarkin-tree
119 WITHMOZILLASDKPATH mozilla-sdk-path
120 ENDIANNESS words
121 "
122 if [ ! -e .config ]
123 then
124    ./menuconfig
125 fi
126
127 if [ -e .cmd ]
128 then
129    echo ".cmd still exist. Removing it."
130    rm -f .cmd
131 fi
132
133 echo -n "./configure " > .cmd
134 source .config
135
136 check_features () {
137 while [ -n "$1" ]
138 do
139    eval x="\$CONFIG_$1"
140    if [ "$x" == "y" ]
141    then
142       if [ "$1" == "WITHFFMPEGMP3LAME" ] || [ "$1" == "WITHFFMPEGFAAC" ]
143       then
144          echo -n "--with-$2 " >> .cmd
145       else
146          echo -n "--enable-$2 " >> .cmd
147       fi
148    else
149       if [ "$1" != "WITHFFMPEGMP3LAME" ] && [ "$1" != "WITHFFMPEGFAAC" ]
150       then
151          echo -n "--disable-$2 " >> .cmd
152       fi
153    fi
154    shift; shift
155 done
156 }
157
158 check_paths () {
159 while [ -n "$1" ]
160 do
161    if [ -n $1 ]
162    then
163       eval x="\$CONFIG_$1"
164       if [ "$x" != "" ]
165       then
166          echo -n "--with-$2=$x " >> .cmd
167       fi
168    fi
169    shift; shift
170 done
171 }
172
173 check_features $FEATURES
174 check_paths $PATHS
175
176 if [ ! -e configure ]
177 then
178    ./bootstrap
179 fi
180
181 source .cmd
182 make
183 rm -f .cmd