stub out things to get the beatles xbox site up and running
[moon.git] / configure.ac
blob42d93cd0f29e54a6a513ddd28c83d90ce33137b6
1 AC_INIT([moonlight], [2.9])
3 AC_DEFINE([PREVIEW_VERSION], ["9"], "")
5 AC_CONFIG_SRCDIR(README)
6 AC_CANONICAL_SYSTEM
8 AM_CONFIG_HEADER(config.h)
9 AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar no-dist-gzip foreign])
10 AM_MAINTAINER_MODE
12 AC_SUBST([ACLOCAL_AMFLAGS], ["-I m4 \${ACLOCAL_FLAGS}"])
14 AC_PROG_CXX
15 AC_HEADER_STDC
16 AC_DISABLE_STATIC
17 AC_PROG_LIBTOOL
18 DOLT
19 PKG_PROG_PKG_CONFIG
20 AC_LANG([C++])
22 AC_DEFINE(__STDC_CONSTANT_MACROS, [], [To make avformat work with C++])
23 AC_DEFINE(__STDC_LIMIT_MACROS, [], [To get limits of specified-width integer types])
25 AC_SEARCH_LIBS(clock_gettime,rt)
26 AC_CHECK_HEADERS(sys/time.h)
27 AC_CHECK_DECLS([basename])
29 changequote(,)dnl
30 dnl LIBTOOL="${LIBTOOL} \$(shell echo \"\$(MFLAGS)\" | awk '/^[^ ]*s/ { print \"--silent\" }')"
31 changequote([,])dnl
33 dnl
34 dnl Dependencies
35 dnl
37 PTHREAD_CHECK
38 MOONLIGHT_CHECK_C_COMPILER
39 MOONLIGHT_CHECK_LARGE_FILE
40 MOONLIGHT_CHECK_ZLIB
41 MOONLIGHT_CHECK_EXPAT
43 MOONLIGHT_CHECK_FFMPEG
44 MOONLIGHT_CHECK_CODECS
45 MOONLIGHT_CHECK_SOUND
47 MOONLIGHT_CHECK_GLIB
48 MOONLIGHT_CHECK_GTK
49 MOONLIGHT_CHECK_XRANDR
50 MOONLIGHT_CHECK_FONTS
51 MOONLIGHT_CHECK_CAIRO
53 MOONLIGHT_CHECK_MONO
54 MOONLIGHT_CHECK_MOZILLA
56 MOONLIGHT_CHECK_TESTING
57 MOONLIGHT_CHECK_EXAMPLES
58 MOONLIGHT_CHECK_BUILD_CONFIGURATION
59 MOONLIGHT_CHECK_FIREFOX_XPI
61 MOONLIGHT_CHECK_UNWIND
63 dnl
64 dnl Export Variables
65 dnl
67 AC_PATH_PROG(GACUTIL, gacutil)
68 AC_PATH_PROG(MONO, mono)
69 AC_PATH_PROG(ZIP, zip, no)
70 if test "x$ZIP" = "xno" ; then
71         AC_MSG_ERROR([No zip tool found])
74 PERF_TOOL_CFLAGS="$MONO_CFLAGS $GTK_CFLAGS $XULRUNNER_CFLAGS"
75 PERF_TOOL_LIBS="$MONO_LIBS $GTK_LIBS $XULRUNNER_LIBS"
76 AC_SUBST(PERF_TOOL_CFLAGS)
77 AC_SUBST(PERF_TOOL_LIBS)
79 MOON_CFLAGS="$CAIRO_CFLAGS $FREETYPE2_CFLAGS $FONTCONFIG_CFLAGS $GTK_CFLAGS $ALSA_CFLAGS $PULSEAUDIO_CFLAGS $FFMPEG_CFLAGS $MONO_CFLAGS"
80 dnl MOON_LIBS is partially defined above for the user-plugin build
81 MOON_LIBS="$MOON_LIBS $MONO_LIBS $FFMPEG_LIBS $CAIRO_LIBS $FREETYPE2_LIBS $FONTCONFIG_LIBS $GTK_LIBS $ZLIB $PTHREAD_LIBS $EXPAT_LIBS $UNWIND_LIBS"
83 dnl For MOON_XPI_LIBS, only link against libs which will be on all systems
84 MOON_XPI_LIBS="$CAIRO_LIBS $FREETYPE2_LIBS $FONTCONFIG_LIBS $GTK_LIBS $ZLIB $PTHREAD_LIBS $EXPAT_LIBS" 
86 # Remove glitz from the link flags (fixes Bug 338506)
87 MOON_LIBS="$(echo $MOON_LIBS | sed -e s/-lglitz//g)"
88 MOON_XPI_LIBS="$(echo $MOON_XPI_LIBS | sed -e s/-lglitz//g)"
90 AC_SUBST(MOON_CFLAGS)
91 AC_SUBST(MOON_LIBS)
92 AC_SUBST(MOON_XPI_LIBS)
94 MOON_EXTRA_CFLAGS="$GTK_CFLAGS $ALSA_CFLAGS $FFMPEG_CFLAGS $PULSEAUDIO_CFLAGS"
95 MOON_EXTRA_LIBS="$GTK_LIBS $FFMPEG_LIBS"
96 AC_SUBST(MOON_EXTRA_CFLAGS)
97 AC_SUBST(MOON_EXTRA_LIBS)
99 MOON_PROG_CFLAGS="$GTK_CFLAGS $ALSA_CFLAGS $FFMPEG_CFLAGS $PULSEAUDIO_CFLAGS $MONO_CFLAGS -I\$(top_srcdir)/src/"
100 MOON_PROG_LIBS="$GTK_LIBS $FFMPEG_LIBS $UNWIND_LIBS \$(top_builddir)/src/libmoon.la"
101 AC_SUBST(MOON_PROG_CFLAGS)
102 AC_SUBST(MOON_PROG_LIBS)
104 PLUGIN_CFLAGS="$GTK_CFLAGS $MONO_CFLAGS -DPLUGIN_DIR=\\\"\$(pkglibdir)\\\""
105 PLUGIN_LIBS="$GTK_LIBS $MONO_LIBS"
106 PLUGIN_XPI_LIBS="$GTK_LIBS"
108 AC_SUBST(PLUGIN_CFLAGS)
109 AC_SUBST(PLUGIN_LIBS)
110 AC_SUBST(PLUGIN_XPI_LIBS)
112 LOADER_LIBS="$GLIB_LIBS"
113 AC_SUBST(LOADER_LIBS)
115 DOCDIR=$(pkg-config --variable=sourcesdir monodoc)
117 # this hack will be dropped once we get this working:
118 # http://www.mono-project.com/Moonlight/SecurityStatus#Assembly_Loading
119 if test "x$MOON_A11Y_INTERNAL_HACK" = "x1"; then
120        AC_DEFINE([MOON_A11Y_INTERNAL_HACK_ENABLED], [1],
121                  [Whether Mono A11y is enabled for now])
123 AM_CONDITIONAL(MOON_A11Y_INTERNAL_HACK,test x$MOON_A11Y_INTERNAL_HACK = x1)
125 if test x$with_ff3 = xyes; then
126    MOZILLA_CFLAGS=$FF3_CFLAGS
127 else
128    MOZILLA_CFLAGS=$FF2_CFLAGS
130 SHOCKER_CFLAGS="$GTK_CFLAGS $MOZILLA_CFLAGS $IMAGEMAGICK_CFLAGS $XTST_CFLAGS"
131 SHOCKER_LIBS="$GTK_LIBS $IMAGEMAGICK_LIBS $XTST_LIBS $UNWIND_LIBS"
132 AC_SUBST(SHOCKER_CFLAGS)
133 AC_SUBST(SHOCKER_LIBS)
135 AC_SUBST(CFLAGS)
136 AC_SUBST(CXXFLAGS)
138 AC_OUTPUT([
139 moon.pc
140 Makefile
141 m4/Makefile
142 src/Makefile
143 src/codec-version.h
144 class/Makefile
145 class/tuning/Makefile
146 class/tuning/SecurityAttributes/Makefile
147 class/System.Windows/Makefile
148 class/System.Windows.Browser/Makefile
149 class/System.Windows.Controls/Makefile
150 class/System.Windows.Controls.Data/Makefile
151 class/Moon.Windows.Desktop/Makefile
152 scripts/Makefile
153 scripts/smcs
154 gtk/Makefile
155 man/Makefile
156 gtk/moonlight-gtk.pc
157 data/Makefile
158 test/Makefile
159 test/2.0/Makefile
160 test/2.0/moon-unit/Makefile
161 test/2.0/Mono.Moonlight.UnitTesting/Makefile
162 test/2.0/Microsoft.Silverlight.Testing/Makefile
163 test/2.0/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight/Makefile
164 test/2.0/Microsoft.SilverlightControls/Makefile
165 test/2.0/Microsoft.SilverlightControls/Controls.Test.Common/Makefile
166 test/2.0/Microsoft.SilverlightControls/Controls.Data.Test/Makefile
167 test/2.0/Microsoft.SilverlightControls/Controls.Extended.Test/Makefile
168 test/2.0/Microsoft.SilverlightControls/site/Makefile
169 test/harness/Makefile
170 test/harness/shocker/Makefile
171 test/parsertest/Makefile
172 test/sizes/Makefile
173 test/templates/Makefile
174 test/templates/managed/Makefile
175 test/cpp/Makefile
176 tools/Makefile
177 tools/generators/Makefile
178 tools/mopen/Makefile
179 tools/mxap/Makefile
180 tools/munxap/Makefile
181 tools/unsign/Makefile
182 tools/xamlg/Makefile
183 tools/xaml2html/Makefile
184 tools/respack/Makefile
185 tools/moonvisi/Makefile
186 tools/sockpol/Makefile
187 examples/Makefile
188 examples/desklet/Makefile
189 examples/desklet/calculator/Makefile
190 examples/desklet/cpumonitor/Makefile
191 examples/desklet/glassyclock/Makefile
192 examples/desklet/glassymonitor/Makefile
193 examples/desklet/glassyslides/Makefile
194 examples/desklet/ruler/Makefile
195 examples/desklet/simpleclock/Makefile
196 plugin/Makefile
197 plugin/firefox/Makefile
198 plugin/firefox/ff2/Makefile
199 plugin/firefox/ff3/Makefile
200 plugin/install/Makefile
201 plugin/install/install.rdf
202 plugin/test/Makefile
203 plugin/samples/Makefile
204 perf/Makefile
207 # general configuration info
208 cat <<EOF
209 Moonlight configuration
210 =======================
212   General configuration:
213         Using cairo: $with_cairo
214         Test Harness: $with_testing $testing_reason
215         Performance Suite: $with_performance $performance_reason
218 dnl debug info
219 cat <<EOF
221   Debug configuration: $with_debug
222         Sanity checks: $with_sanity_checks
223         Object tracking: $with_object_tracking
224         Logging support with MOONLIGHT_DEBUG: $with_logging
227 # media info
228 cat <<EOF
230   Media Support: $media_warning
231         FFmpeg: $with_ffmpeg $ffmpeg_reason
232         ALSA: $with_alsa $alsa_reason
233         PulseAudio: $with_pulseaudio $pulseaudio_reason
236 # silverlight version info
237 cat <<EOF
239   Silverlight Support:
240         Silverlight 1.0: yes
241         Silverlight 2.0: yes
244 cat <<EOF
245           Browser plugin assemblies: $browser_support $browser_reason
247 if test x$browser_support = xyes; then
248 cat <<EOF
249             Path to mcs tree: $with_mcspath
250             Path to mono-basic tree: $with_mono_basic_path
253 cat <<EOF
254           Desktop application assemblies: $desktop_support $desktop_reason
257 # plugin installer/bridge info
258 cat <<EOF
260   Browser Support:
261         Firefox: $with_mozilla
264 if test x$with_mozilla = xyes; then
265 cat <<EOF
266           Plugin Installer (.xpi): $user_plugin
267           Gecko 1.8 (Firefox 2): $with_ff2 $ff2_reason
268           Gecko 1.9 (Firefox 3): $with_ff3 $ff3_reason
272 # blank line
273 cat <<EOF