1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
|
AC_INIT([monodevelop], 0.9, [monodevelop-list@lists.ximian.com])
AC_PREREQ(2.53)
AM_INIT_AUTOMAKE([1.9 tar-ustar])
AM_MAINTAINER_MODE
AC_PROG_INTLTOOL([0.25])
ASSEMBLY_VERSION=0.9.0.0
AC_PATH_PROG(MONO, mono)
AC_PATH_PROG(MCS, mcs)
if test "x$MONO" = "x" ; then
AC_PATH_PROG(MINT, mint)
if test "x$MINT" = "x" ; then
AC_MSG_ERROR([Can't find "mono" or "mint" in your PATH])
fi
fi
if test "x$MCS" = "x" ; then
AC_MSG_ERROR([Can't find "mcs" in your PATH])
fi
AC_SUBST(PATH)
AC_SUBST(LD_LIBRARY_PATH)
dnl to add MD's mimetypes
AC_PATH_PROG(UPDATE_MIME_DB, update-mime-database, no)
AC_SUBST(UPDATE_MIME_DB)
AC_PATH_PROG(UPDATE_DESKTOP_DB, update-desktop-database, no)
AC_SUBST(UPDATE_DESKTOP_DB)
dnl Find pkg-config
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
MONO_REQUIRED_VERSION=1.1.10
PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES_MONO,mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES_MINT,mint >= $MONO_REQUIRED_VERSION, has_mint=true, has_mint=false)
if test "x$has_mono" = "xfalse"; then
if test "x$has_mint" = "xfalse"; then
AC_MSG_ERROR([Please install mono version $MONO_REQUIRED_VERSION or later to install MonoDevelop.
Please see http://www.mono-project.org/ to download latest mono sources or packages])
fi
fi
if test "x$has_mono" = "xtrue"; then
if test `uname -s` = "Darwin"; then
AC_PATH_PROG(RUNTIME, mono, no)
AC_PATH_PROG(CSC, mcs, no)
LIB_PREFIX=
LIB_SUFFIX=.dylib
else
AC_PATH_PROG(RUNTIME, mono, no)
AC_PATH_PROG(CSC, mcs, no)
LIB_PREFIX=.so
LIB_SUFFIX=
fi
else
if test "x$has_mint" = "xtrue"; then
AC_PATH_PROG(RUNTIME, mint, no)
AC_PATH_PROG(CSC, mcs, no)
LIB_PREFIX=.so
LIB_SUFFIX=
fi
fi
dnl hard dependencies
GTKSHARP_REQUIRED_VERSION=2.4.0
GTKSOURCEVIEWSHARP_REQUIRED_VERSION=0.10
GECKOSHARP_REQUIRED_VERSION=0.10
MONODOC_REQUIRED_VERSION=1.0
PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
AC_SUBST(GTK_SHARP_LIBS)
PKG_CHECK_MODULES(GNOME_SHARP, gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
AC_SUBST(GNOME_SHARP_LIBS)
PKG_CHECK_MODULES(GNOME_VFS_SHARP, gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
AC_SUBST(GNOME_VFS_SHARP_LIBS)
PKG_CHECK_MODULES(GLADE_SHARP, glade-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
AC_SUBST(GLADE_SHARP_LIBS)
PKG_CHECK_MODULES(GCONF_SHARP, gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
AC_SUBST(GCONF_SHARP_LIBS)
PKG_CHECK_MODULES(GTKHTML_SHARP, gtkhtml-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
AC_SUBST(GTKHTML_SHARP_LIBS)
PKG_CHECK_MODULES(VTE_SHARP, vte-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
AC_SUBST(VTE_SHARP_LIBS)
PKG_CHECK_MODULES(GTKSOURCEVIEW_SHARP, gtksourceview-sharp-2.0 >= $GTKSOURCEVIEWSHARP_REQUIRED_VERSION)
AC_SUBST(GTKSOURCEVIEW_SHARP_LIBS)
PKG_CHECK_MODULES(GECKO_SHARP, gecko-sharp-2.0 >= $GECKOSHARP_REQUIRED_VERSION)
AC_SUBST(GECKO_SHARP_LIBS)
PKG_CHECK_MODULES(MONODOC, monodoc >= $MONODOC_REQUIRED_VERSION)
AC_SUBST(MONODOC_LIBS)
gtksharp_prefix="`$PKG_CONFIG --variable=prefix gtk-sharp-2.0`"
AC_SUBST(gtksharp_prefix)
dnl deal with the mono debugger
MONO_DEBUGGER_REQUIRED_VERSION=0.9
AC_ARG_ENABLE(debugger,
AC_HELP_STRING([--enable-debugger],
[enable support for the Mono Debugger [default=no]]),
[PKG_CHECK_MODULES(MONO_DEBUGGER, mono-debugger >= $MONO_DEBUGGER_REQUIRED_VERSION,
enable_debugger=yes, enable_debugger=no)],
enable_debugger=no)
AM_CONDITIONAL(ENABLE_DEBUGGER, test x$enable_debugger = xyes)
AC_SUBST(MONO_DEBUGGER_LIBS)
if test "x$enable_debugger" = "xyes"; then
AC_MSG_ERROR([The debugger add-in is not currently supported due to the API changes being done in the Mono debugger.])
fi
dnl java binding
dnl need to test for a java source to bytecode compiler
dnl and for ikvm
IKVM_REQUIRED_VERSION=0.10
AC_ARG_ENABLE(java,
AC_HELP_STRING([--enable-java],
[enable support for Java via ikvm [default=no]]),
[PKG_CHECK_MODULES(IKVM, ikvm >= $IKVM_REQUIRED_VERSION, enable_java=yes, enable_java=no)],
enable_java=no)
AM_CONDITIONAL(ENABLE_JAVA, test x$enable_java = xyes)
BOO_REQUIRED_VERSION=0.7.5.2013
AC_ARG_ENABLE(boo,
AC_HELP_STRING([--enable-boo],
[enable support for boo [default=no]]),
[PKG_CHECK_MODULES(BOO, boo >= $BOO_REQUIRED_VERSION, enable_boo=yes, enable_boo=no)],
enable_boo=no)
AM_CONDITIONAL(ENABLE_BOO, test x$enable_boo = xyes)
AC_SUBST(BOO_LIBS)
if test "x$enable_boo" = "xyes" ; then
AC_PATH_PROG(BOOC, booc)
fi
MONO_NUNIT_REQUIRED_VERSION=1.1.8
AC_ARG_ENABLE(nunit,
AC_HELP_STRING([--enable-nunit],
[enable support for NUnit [default=yes]]),
[PKG_CHECK_MODULES(MONO_NUNIT, mono-nunit >= $MONO_NUNIT_REQUIRED_VERSION, enable_nunit=${enableval}, enable_nunit=no)],
enable_nunit=yes)
AM_CONDITIONAL(ENABLE_NUNIT, test x$enable_nunit = xyes)
AC_ARG_ENABLE(monoextensions,
AC_HELP_STRING([--enable-monoextensions],
[enable extensions for Mono development [default=yes]]),
enable_monoextensions=${enableval}, enable_monoextensions=yes)
AM_CONDITIONAL(ENABLE_MONOEXTENSIONS, test x$enable_monoextensions = xyes)
if test "x$enable_monoextensions" = "xyes"; then
if test "x$enable_nunit" = "xno"; then
AC_MSG_ERROR([The NUnit addin is required to enable the extensions for Mono development (use --enable-nunit)])
fi
fi
AC_ARG_ENABLE(versioncontrol,
AC_HELP_STRING([--enable-versioncontrol],
[enable version control support [default=no]]),
enable_versioncontrol=yes, enable_versioncontrol=no)
AM_CONDITIONAL(ENABLE_VERSIONCONTROL, test x$enable_versioncontrol = xyes)
GLADEUI_REQUIRED_VERSION=0.1
AC_ARG_ENABLE(glade,
AC_HELP_STRING([--enable-glade],
[enable support for Glade-3 [default=no]]),
[PKG_CHECK_MODULES(GLADEUI, gladeui-sharp >= $GLADEUI_REQUIRED_VERSION, enable_glade=yes, enable_glade=no)],
enable_glade=no)
AM_CONDITIONAL(ENABLE_GLADE, test x$enable_glade = xyes)
MOZILLA_HOME="`$PKG_CONFIG --variable=libdir mozilla-gtkmozembed`"
AC_SUBST(MOZILLA_HOME)
AC_ARG_ENABLE(update-mimedb,
AC_HELP_STRING([--disable-update-mimedb],
[disable the update-mime-database after install [default=no]]),,
enable_update_mimedb=yes)
AM_CONDITIONAL(ENABLE_UPDATE_MIMEDB, test x$enable_update_mimedb = xyes)
AC_ARG_ENABLE(update-desktopdb,
AC_HELP_STRING([--disable-update-desktopdb],
[disable the update-desktop-database after install [default=np]]),,
enable_update_desktopdb=yes)
AM_CONDITIONAL(ENABLE_UPDATE_DESKTOPDB, test x$enable_update_desktopdb = xyes)
dnl Intl
ALL_LINGUAS="cs da de es fr ja_JP pt_BR tr pl it"
GETTEXT_PACKAGE=monodevelop
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
AM_GLIB_GNU_GETTEXT
CSC_FLAGS='-langversion:ISO-1'
AC_SUBST(LIB_SUFFIX)
AC_SUBST(LIB_PREFIX)
AC_SUBST(ASSEMBLY_VERSION)
AC_SUBST(SQLITE_XML)
AC_SUBST(CSC_FLAGS)
MD_DIR='$(prefix)/lib/monodevelop'
MD_ASSEMBLY_DIR="$MD_DIR/bin"
MD_ADDIN_DIR="$MD_DIR/AddIns"
AC_SUBST(MD_ASSEMBLY_DIR)
AC_SUBST(MD_ADDIN_DIR)
AC_SUBST(MD_DIR)
AC_OUTPUT([
build/data/Makefile
build/data/resources/css/Makefile
build/data/resources/Makefile
build/Makefile
contrib/Makefile
Core/Makefile
Core/src/ICSharpCode.SharpRefactory/Makefile
Core/src/Makefile
Core/src/MonoDevelop.Core/AssemblyInfo.cs
Core/src/MonoDevelop.Core/Makefile
Core/src/MonoDevelop.Core/MonoDevelop.Core/GettextCatalog.cs
Core/src/MonoDevelop.Core.Gui/AssemblyInfo.cs
Core/src/MonoDevelop.Core.Gui/Makefile
Core/src/MonoDevelop.Projects/AssemblyInfo.cs
Core/src/MonoDevelop.Projects/Makefile
Core/src/MonoDevelop.Projects.Gui/AssemblyInfo.cs
Core/src/MonoDevelop.Projects.Gui/Makefile
Core/src/MonoDevelop.Documentation/AssemblyInfo.cs
Core/src/MonoDevelop.Documentation/Makefile
Core/src/MonoDevelop.Ide/AssemblyInfo.cs
Core/src/MonoDevelop.Ide/Makefile
Core/src/MonoDevelop.Dock/Makefile
Core/src/MonoDevelop.Components/AssemblyInfo.cs
Core/src/MonoDevelop.Components/Makefile
Core/src/MonoDevelop.Startup/AssemblyInfo.cs
Core/src/MonoDevelop.Startup/Makefile
Core/src/Tools/Makefile
Core/src/Tools/mdhost/Makefile
Core/src/Tools/mdrun/Makefile
Core/src/Tools/SharpCoco/Makefile
Extras/BooBinding/Makefile
Extras/JavaBinding/Makefile
Extras/Makefile
Extras/MonoDeveloperExtensions/Makefile
Extras/MonoQuery/Makefile
Extras/MonoQuery/Mono.Data.Sql/Makefile
Extras/MonoQuery/MonoQuery/Makefile
Extras/NUnit/Makefile
Extras/VersionControl/AddIn/Makefile
Extras/VersionControl/Diff/Makefile
Extras/VersionControl/DiffWidget/Makefile
Extras/VersionControl/Makefile
Extras/VersionControl/VersionControl/Makefile
Extras/CSharpBinding/Makefile
Extras/ILAsmBinding/Makefile
Extras/NemerleBinding/Makefile
Extras/VBNetBinding/Makefile
Extras/VBNetBinding/SharpRefactoryVB/Makefile
Extras/DebuggerAddIn/AssemblyInfo.cs
Extras/DebuggerAddIn/Makefile
Extras/MonoDevelop.SourceEditor/AssemblyInfo.cs
Extras/MonoDevelop.SourceEditor/Makefile
Extras/MonoDevelop.SourceEditor/MonoDevelop.SourceEditor.dll.config
Extras/prj2make-sharp-lib/AssemblyInfo.cs
Extras/prj2make-sharp-lib/Makefile
Extras/WelcomePage/Makefile
Extras/GladeAddIn/Makefile
Extras/ChangeLogAddIn/Makefile
Extras/MonoDevelop.GtkCore/Makefile
Makefile
monodevelop
mdtool
monodevelop.pc
po/Makefile.in
])
echo ""
echo "Configuration summary"
echo ""
echo " * Installation prefix = $prefix"
echo " * C# compiler = $CSC"
echo " * mono-debugger: $enable_debugger"
echo " * MonoQuery Providers:"
echo " * PostgreSQL: yes"
echo " * MySQL: yes"
echo " * SQLite: yes"
echo " * Oracle: yes"
echo " * SQL Server: yes"
echo " * java support: $enable_java"
echo " * boo support: $enable_boo"
echo " * NUnit support: $enable_nunit"
echo " * Mono class library development extensions: $enable_monoextensions"
echo " * Version control support: $enable_versioncontrol"
echo " * Glade-3 support: $enable_glade"
echo ""
|