This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 93
/
configure.in
338 lines (297 loc) · 10 KB
/
configure.in
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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
AC_INIT([mono-tools], [4.2])
AC_CONFIG_SRCDIR([README])
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([tar-ustar -Wno-portability])
AM_MAINTAINER_MODE
AC_PROG_INSTALL
#capture aclocal flags for autoreconf
AC_SUBST(ACLOCAL_FLAGS)
dnl C# compiler
AC_PATH_PROG(MCS, mcs, no)
AC_PATH_PROG(GMCS, gmcs, no)
AC_PATH_PROG(DMCS, dmcs, no)
AC_PATH_PROG(RUNTIME, mono, no)
AC_PATH_PROG(GACUTIL, gacutil, no)
CS="C#"
if test "x$MCS" = "xno" ; then
dnl AC_MSG_ERROR([You need to install a C# compiler])
AC_MSG_ERROR([No $CS compiler found])
fi
AM_CONDITIONAL(DMCS_PRESENT, test ! "x$DMCS" = "xno")
if test "x$RUNTIME" = "xno" ; then
AC_MSG_ERROR([No runtime found])
fi
dnl resgen
AC_PATH_PROG(RESGEN, resgen, no)
if test "x$RESGEN" = "xno" ; then
AC_MSG_ERROR([resgen not found in $PATH])
fi
AC_SUBST(MCS)
AC_SUBST(GMCS)
AC_SUBST(DMCS)
AC_SUBST(RUNTIME)
AC_SUBST(RESGEN)
AC_SUBST(GACUTIL)
PKG_CHECK_MODULES(NUNIT, mono-nunit)
AC_SUBST(NUNIT_LIBS)
PKG_CHECK_MODULES(MONODOC, monodoc)
AC_SUBST(MONODOC_LIBS)
AC_PATH_PROG(MDOC, mdoc, no)
AC_SUBST(MDOC)
PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 glade-sharp-2.0)
AC_SUBST(GTK_SHARP_LIBS)
CSHARP_FLAGS=""
PKG_CHECK_MODULES(GNOME_SHARP, gnome-sharp-2.0 gconf-sharp-2.0, enable_gnome=yes, enable_gnome=no)
if test "x$enable_gnome" = "xyes"; then
CSHARP_FLAGS="-d:GNOME"
fi
AC_SUBST(GNOME_SHARP_LIBS)
AM_CONDITIONAL(ENABLE_GNOME, test "x$enable_gnome" = "xyes")
AC_ARG_ENABLE(gtkhtml,
AC_HELP_STRING([--enable-gtkhtml], [Use GTKHTML Browser]),,
enable_gtkhtml=yes)
if test "x$enable_gtkhtml" = "xyes" ; then
PKG_CHECK_MODULES([GTKHTML_SHARP],
[gtkhtml-sharp-3.14],
[CSHARP_FLAGS="-d:GTKHTML_SHARP_3_14"],
[
PKG_CHECK_MODULES([GTKHTML_SHARP],
[gtkhtml-sharp-2.0],
[CSHARP_FLAGS=""],
[])
]
)
AC_SUBST(GTKHTML_SHARP_LIBS)
AC_SUBST(CSHARP_FLAGS)
fi
AM_CONDITIONAL(ENABLE_GTKHTML, test "x$enable_gtkhtml" = "xyes")
AC_ARG_ENABLE(gecko,
AC_HELP_STRING([--enable-gecko], [Use Gecko / Xulrunner-1.8 browser libs]),,
enable_gecko=yes)
if test "x$enable_gecko" = "xyes" ; then
PKG_CHECK_MODULES(GECKO_SHARP, gecko-sharp-2.0)
AC_SUBST(GECKO_SHARP_LIBS)
# get the mozilla home directory
MOZILLA_HOME="`$PKG_CONFIG --variable=libdir mozilla-gtkmozembed`"
AC_SUBST(MOZILLA_HOME)
fi
AM_CONDITIONAL(ENABLE_GECKO, test "x$enable_gecko" = "xyes")
AC_ARG_ENABLE(webkit,
AC_HELP_STRING([--enable-webkit], [Use Webkit browser]),,
enable_webkit=yes)
if test "x$enable_webkit" = "xyes" ; then
PKG_CHECK_MODULES(WEBKIT_SHARP, webkit-sharp-1.0)
AC_SUBST(WEBKIT_SHARP_LIBS)
fi
AM_CONDITIONAL(ENABLE_WEBKIT, test "x$enable_webkit" = "xyes")
# PKG_CHECK_MODULES(MONOWEBBROWSER, mono-webbrowser, enable_monowebbrowser=yes, enable_monowebbrowser=no)
# AC_SUBST(MONOWEBBROWSER_LIBS)
AC_ARG_ENABLE(monowebbrowser,
AC_HELP_STRING([--enable-monowebbrowser], [Use Mono.Webbrowser]),,
enable_monowebbrowser=yes)
if test "x$enable_monowebbrowser" = "xyes" ; then
AC_MSG_CHECKING([for Mono.WebBrowser])
if test "x$GACUTIL" = "xno"
then
AC_MSG_RESULT([no])
if test "x$enable_monowebbrowser" = "x" ; then enable_monowebbrowser=no ; fi
else
if $GACUTIL -l Mono.WebBrowser | grep -q "Mono.WebBrowser"
then
AC_MSG_RESULT([yes])
enable_monowebbrowser=yes
MONOWEBBROWSER_LIBS=-r:Mono.WebBrowser
else
AC_MSG_RESULT([no])
enable_monowebbrowser=no
fi
fi
fi
AM_CONDITIONAL(ENABLE_MONOWEBBROWSER, test "x$enable_monowebbrowser" = "xyes")
if test "x$enable_gtkhtml$enable_gecko$enable_monowebbrowser$enable_webkit" = "xnononono" ; then
AC_MSG_ERROR([no HTML display found. You need either gtkhtml, gecko, WebKit or Mono.WebBrowser])
fi
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],
[Use 'DEBUG' Configuration [default=YES]]),
enable_debug=yes, enable_debug=no)
AM_CONDITIONAL(ENABLE_DEBUG, test x$enable_debug = xyes)
if test "x$enable_debug" = "xyes" ; then
CONFIG_REQUESTED="yes"
fi
AC_ARG_ENABLE(release,
AC_HELP_STRING([--enable-release],
[Use 'RELEASE' Configuration [default=NO]]),
enable_release=yes, enable_release=no)
AM_CONDITIONAL(ENABLE_RELEASE, test x$enable_release = xyes)
if test "x$enable_release" = "xyes" ; then
CONFIG_REQUESTED="yes"
fi
if test -z "$CONFIG_REQUESTED" ; then
AM_CONDITIONAL(ENABLE_DEBUG, true)
enable_debug=yes
fi
if test `uname -s` = "Darwin"; then
LIB_PREFIX=
LIB_SUFFIX=.dylib
else
LIB_PREFIX=.so
LIB_SUFFIX=
fi
AC_SUBST(LIB_PREFIX)
AC_SUBST(LIB_SUFFIX)
dnl
dnl I hate PKG_CONFIG_MODULES, that is for the weak
dnl
if pkg-config --modversion cecil>/dev/null; then
AC_MSG_RESULT("Found cecil.pc")
else
AC_MSG_ERROR([You are missing Cecil (cecil.pc for packageconfig) required for gui-compare and minvoke])
fi
CECIL_ASM=`pkg-config --variable=Libraries cecil`
AC_SUBST(CECIL_ASM)
dnl Intl
GETTEXT_PACKAGE=mono-tools
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
ALL_LINGUAS="da es fr ca pt_BR"
AM_GLIB_GNU_GETTEXT
GNUNIT_VERSION=0.5
AC_SUBST(GNUNIT_VERSION)
AC_PROG_AWK
export VERSION
[TOOLS_VERSION=$($AWK 'BEGIN {
split (ENVIRON["VERSION"] ".0.0.0", vsplit, ".")
if(length(vsplit [1]) > 4) {
split (substr(ENVIRON["VERSION"], 0, 4) "." substr(ENVIRON["VERSION"], 5) ".0.0", vsplit, ".")
}
print vsplit [1] "." vsplit [2] "." vsplit [3] "." vsplit [4]
}')]
AC_SUBST(TOOLS_VERSION)
GENDARME_VERSION=$TOOLS_VERSION
AC_SUBST(GENDARME_VERSION)
AC_OUTPUT([
mono-tools.spec
Makefile
gsharp/Makefile
gsharp/gsharp
gsharp/gsharp.exe.config
gui-compare/Makefile
gui-compare/gui-compare
minvoke/Makefile
minvoke/minvoke
mperfmon/Makefile
mperfmon/mperfmon
docbrowser/Makefile
docbrowser/theme-icons/Makefile
docbrowser/monodoc
docbrowser/AssemblyInfo.cs
po/Makefile.in
asn1view/Makefile
asn1view/art/Makefile
asn1view/gtk/Makefile
asn1view/common/Makefile
ilcontrast/Makefile
ilcontrast/ilcontrast
create-native-map/Makefile
create-native-map/bin/Makefile
create-native-map/lib/Makefile
create-native-map/lib/create-native-map/Makefile
create-native-map/lib/pkgconfig/Makefile
create-native-map/lib/pkgconfig/create-native-map.pc
create-native-map/man/Makefile
create-native-map/src/Makefile
gendarme/Makefile
gendarme/AssemblyInfo.cs
gendarme/gendarme
gendarme/gendarme-wizard
gendarme/gd2i
gendarme/man/Makefile
gendarme/man/gendarme.1
gendarme/man/gendarme.5
gendarme/man/gd2i.1
gendarme/console/Makefile
gendarme/console/gendarme.exe.config
gendarme/framework/Makefile
gendarme/framework/gendarme-framework.pc
gendarme/framework/Test/Makefile
gendarme/rules/Makefile
gendarme/rules/Test.Rules/Makefile
gendarme/rules/Gendarme.Rules.Security/Makefile
gendarme/rules/Gendarme.Rules.Security/Test/Makefile
gendarme/rules/Gendarme.Rules.Security.Cas/Makefile
gendarme/rules/Gendarme.Rules.Security.Cas/Test/Makefile
gendarme/rules/Gendarme.Rules.Performance/Makefile
gendarme/rules/Gendarme.Rules.Performance/Test/Makefile
gendarme/rules/Gendarme.Rules.Concurrency/Makefile
gendarme/rules/Gendarme.Rules.Concurrency/Test/Makefile
gendarme/rules/Gendarme.Rules.Correctness/Makefile
gendarme/rules/Gendarme.Rules.Correctness/Test/Makefile
gendarme/rules/Gendarme.Rules.Portability/Makefile
gendarme/rules/Gendarme.Rules.Portability/Test/Makefile
gendarme/rules/Gendarme.Rules.Exceptions/Makefile
gendarme/rules/Gendarme.Rules.Exceptions/Test/Makefile
gendarme/rules/Gendarme.Rules.Ui/Makefile
gendarme/rules/Gendarme.Rules.Ui/Test/Makefile
gendarme/rules/Gendarme.Rules.Naming/Makefile
gendarme/rules/Gendarme.Rules.Naming/Test/Makefile
gendarme/rules/Gendarme.Rules.Smells/Makefile
gendarme/rules/Gendarme.Rules.Smells/Test/Makefile
gendarme/rules/Gendarme.Rules.BadPractice/Makefile
gendarme/rules/Gendarme.Rules.BadPractice/Test/Makefile
gendarme/rules/Gendarme.Rules.Design/Makefile
gendarme/rules/Gendarme.Rules.Design/Test/Makefile
gendarme/rules/Gendarme.Rules.Design.Generic/Makefile
gendarme/rules/Gendarme.Rules.Design.Generic/Test/Makefile
gendarme/rules/Gendarme.Rules.Design.Linq/Makefile
gendarme/rules/Gendarme.Rules.Design.Linq/Test/Makefile
gendarme/rules/Gendarme.Rules.Interoperability/Makefile
gendarme/rules/Gendarme.Rules.Interoperability/Test/Makefile
gendarme/rules/Gendarme.Rules.Interoperability.Com/Makefile
gendarme/rules/Gendarme.Rules.Interoperability.Com/Test/Makefile
gendarme/rules/Gendarme.Rules.NUnit/Makefile
gendarme/rules/Gendarme.Rules.NUnit/Test/Makefile
gendarme/rules/Gendarme.Rules.Serialization/Makefile
gendarme/rules/Gendarme.Rules.Serialization/Test/Makefile
gendarme/rules/Gendarme.Rules.Maintainability/Makefile
gendarme/rules/Gendarme.Rules.Maintainability/Test/Makefile
gendarme/rules/Gendarme.Rules.Globalization/Makefile
gendarme/rules/Gendarme.Rules.Globalization/Test/Makefile
gendarme/rules/Gendarme.Rules.Gendarme/Makefile
gendarme/rules/Gendarme.Rules.Gendarme/Test/Makefile
gendarme/swf-wizard-runner/Makefile
gendarme/tools/Makefile
gendarme/tools/supported/Makefile
gendarme/tools/supported/gd2i/Makefile
gendarme/tools/supported/templates/Makefile
gendarme/tools/unsupported/Makefile
gendarme/tools/unsupported/mapper/Makefile
gendarme/tools/unsupported/typeref/Makefile
gendarme/tools/unsupported/xmldoc2wiki/Makefile
gendarme/wix/Makefile
Mono.Profiler/profiler-file-decoder/Makefile
Mono.Profiler/Makefile
Mono.Profiler/heap-snapshot-viewer/mprof-heap-viewer
Mono.Profiler/heap-snapshot-viewer/Makefile
Mono.Profiler/profiler-decoder-library/Makefile
Mono.Profiler/profiler-file-decoder/mprof-decoder
Mono.Profiler/heap-snapshot-explorer/Makefile
Mono.Profiler/Mono.Profiler.Widgets/Makefile
Mono.Profiler/mprof-gui/Makefile
Mono.Profiler/mprof-gui/emveepee
webdoc/Makefile
])
echo "---"
echo "Configuration summary"
echo ""
echo " * Installation prefix = $prefix"
echo " * Using Gecko = $enable_gecko"
echo " * Using GtkHtml = $enable_gtkhtml"
echo " * Using Mono.WebBrowser = $enable_monowebbrowser"
echo " * Using WebKit = $enable_webkit"
echo " * Using Gnome = $enable_gnome"
echo ""
echo " NOTE: if any of the above say 'no' you may install the"
echo " corresponding development packages for them, rerun"
echo " autogen.sh to include them in the build."
echo ""