configure.ac 25.7 KB
Newer Older
1
AC_PREREQ([2.69])
Christian Hergert's avatar
Christian Hergert committed
2

3 4 5 6 7

dnl ***********************************************************************
dnl Define Versioning Information
dnl ***********************************************************************
m4_define([builder_major_version],[3])
Christian Hergert's avatar
Christian Hergert committed
8
m4_define([builder_minor_version],[22])
Christian Hergert's avatar
Christian Hergert committed
9
m4_define([builder_micro_version],[2])
10 11 12
m4_define([builder_version],[builder_major_version.builder_minor_version.builder_micro_version])
m4_define([builder_interface_age],[0])
m4_define([builder_bugreport_url],
13
	  [https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-builder])
14 15
m4_define([builder_debug_default],
          [m4_if(m4_eval(builder_minor_version % 2), [1], [yes], [minimum])])
Christian Hergert's avatar
Christian Hergert committed
16

17 18 19 20

dnl ***********************************************************************
dnl Initialize Autoconf
dnl ***********************************************************************
21 22 23
AC_INIT([gnome-builder],
        [builder_version],
        [builder_bugreport_url],
24
        [gnome-builder],
25
        [https://wiki.gnome.org/Apps/Builder])
Christian Hergert's avatar
Christian Hergert committed
26
AC_CONFIG_HEADERS([config.h])
27 28 29 30
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_MACRO_DIR([build/autotools])
AC_CONFIG_AUX_DIR([build])
AC_SUBST(ACLOCAL_AMFLAGS, "-I build/autotools")
31
AC_CANONICAL_HOST
32 33 34 35 36 37 38 39


dnl ***********************************************************************
dnl Make Version Info Available to .in Files
dnl ***********************************************************************
MAJOR_VERSION=builder_major_version
MINOR_VERSION=builder_minor_version
MICRO_VERSION=builder_micro_version
40
LIBIDE_VERSION=builder_version
41 42 43
AC_SUBST(MAJOR_VERSION)
AC_SUBST(MINOR_VERSION)
AC_SUBST(MICRO_VERSION)
44
AC_SUBST(LIBIDE_VERSION)
45

Christian Hergert's avatar
Christian Hergert committed
46

47 48 49 50
dnl ***********************************************************************
dnl Initialize Automake
dnl ***********************************************************************
AM_SILENT_RULES([yes])
51
AM_INIT_AUTOMAKE([1.11 foreign subdir-objects tar-ustar no-dist-gzip dist-xz])
52 53 54 55 56 57
AM_MAINTAINER_MODE([enable])


dnl ***********************************************************************
dnl Internationalization
dnl ***********************************************************************
58
GETTEXT_PACKAGE=AC_PACKAGE_TARNAME
59
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [GETTEXT package name])
60
AC_SUBST(GETTEXT_PACKAGE)
61
AM_GNU_GETTEXT_VERSION([0.19.8])
62
AM_GNU_GETTEXT([external])
63

Christian Hergert's avatar
Christian Hergert committed
64

Alexandre Franke's avatar
Alexandre Franke committed
65 66 67 68 69 70
dnl ***********************************************************************
dnl User documentation
dnl ***********************************************************************
YELP_HELP_INIT


71 72 73
dnl ***********************************************************************
dnl Check for Required Programs
dnl ***********************************************************************
74 75 76
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
77
AM_PROG_VALAC([0.30.0.55])
78
AC_PROG_INSTALL
Christian Hergert's avatar
Christian Hergert committed
79 80
AM_PROG_LEX
AC_PROG_YACC
81 82 83
AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
AC_PATH_PROG([GLIB_MKENUMS], [glib-mkenums])
AC_PATH_PROG([GLIB_COMPILE_RESOURCES], [glib-compile-resources])
84
AC_HEADER_STDC
85
PKG_PROG_PKG_CONFIG([0.22])
86 87 88 89
GOBJECT_INTROSPECTION_CHECK([1.42.0])
VAPIGEN_CHECK
GLIB_GSETTINGS
APPSTREAM_XML
90

91 92 93 94 95 96
AC_ARG_VAR([DESKTOP_FILE_VALIDATE], [the desktop-file-validate program])
AC_PATH_PROG([DESKTOP_FILE_VALIDATE], [desktop-file-validate], [])
if test -z "$DESKTOP_FILE_VALIDATE"; then
	AC_MSG_ERROR([desktop-file-validate not found])
fi

97

98 99 100
dnl ***********************************************************************
dnl Check for Required Headers
dnl ***********************************************************************
101 102 103 104 105 106 107 108 109 110 111 112 113
AC_ARG_ENABLE([editorconfig],
              AS_HELP_STRING([--enable-editorconfig],
                             [Enable editorconfig file settings.]),
              [enable_editorconfig=$enableval],
              [enable_editorconfig=auto])
AC_CHECK_HEADER([pcre.h],[have_pcre=yes],[have_pcre=no])
AS_IF([test "$enable_editorconfig" = yes && test "$have_pcre" != "yes"],[
       AC_MSG_ERROR([editorconfig requires pcre.h])
])
AS_IF([test "$enable_editorconfig" = "auto" && test "$have_pcre" = "yes"],[
       enable_editorconfig=yes
])
AM_CONDITIONAL([ENABLE_EDITORCONFIG],[test "$enable_editorconfig" = "yes"])
114 115


116 117 118
dnl ***********************************************************************
dnl Ensure C11 is Supported
dnl ***********************************************************************
Christian Hergert's avatar
Christian Hergert committed
119 120 121
AX_CHECK_COMPILE_FLAG([-std=gnu11],
                      [CFLAGS="$CFLAGS -std=gnu11"],
                      [AC_MSG_ERROR([C compiler cannot compile GNU C11 code])])
122 123


Patrick Griffis's avatar
Patrick Griffis committed
124 125 126 127 128
dnl ***********************************************************************
dnl Ensure C++11 is Supported
dnl ***********************************************************************
AX_CXX_COMPILE_STDCXX_11([noext], [mandatory])

129 130 131 132 133 134 135
dnl ***********************************************************************
dnl Find Path of GNU Make
dnl ***********************************************************************
AC_CHECK_PROG([GMAKE], [gmake], [gmake], [make])
AC_DEFINE_UNQUOTED([GNU_MAKE_NAME], ["$GMAKE"], [Name of GNU make on this system])


136
dnl ***********************************************************************
137 138 139
dnl Enable high-performance counters
dnl ***********************************************************************
GB_ENABLE_RDTSCP
140 141 142 143
AS_IF([test $enable_rdtscp = yes],[
	CFLAGS="$CFLAGS -DEGG_HAVE_RDTSCP"
])
AC_CHECK_FUNCS([sched_getcpu])
144 145


146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
dnl ***********************************************************************
dnl Setup Debug and Tracing Support
dnl ***********************************************************************
AC_ARG_ENABLE(tracing,
              AS_HELP_STRING([--enable-tracing=@<:@no/yes@:>@],
                             [add extra debugging information @<:@default=no@:>@]),
              ,
              enable_tracing=no)
AS_IF([test "x$enable_tracing" = "xyes"],[enable_debug=yes ENABLE_TRACING=1],[ENABLE_TRACING=0])
AC_SUBST(ENABLE_TRACING)

AC_ARG_ENABLE(debug,
              AS_HELP_STRING([--enable-debug=@<:@no/minimum/yes@:>@],
                             [turn on debugging @<:@default=builder_debug_default@:>@]),
              ,
              enable_debug=builder_debug_default)
162
AS_CASE(["$enable_debug"],
163
        [yes],[
164 165
            DEBUG_CFLAGS="$DEBUG_CFLAGS -O0"
            DEBUG_CFLAGS="$DEBUG_CFLAGS -g"
166 167 168 169 170 171 172 173 174 175 176 177
        ],
        [minimum],[
            DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_CAST_CHECKS"
        ],
        [no],[
            DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_ASSERT"
            DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_CHECKS"
            DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_CAST_CHECKS"
        ],
        [])
AC_SUBST(DEBUG_CFLAGS)

178 179 180
BUGREPORT_URL=builder_bugreport_url
AC_SUBST(BUGREPORT_URL)

181 182 183 184

dnl ***********************************************************************
dnl Check for Required Packages
dnl ***********************************************************************
Christian Hergert's avatar
Christian Hergert committed
185 186 187
m4_define([gtk_required_version], [3.22.1])
m4_define([glib_required_version], [2.50.0])
m4_define([gtksourceview_required_version], [3.22.0])
188
m4_define([gobject_introspection_version], [1.48.0])
Christian Hergert's avatar
Christian Hergert committed
189
m4_define([pygobject_required_version], [3.22.0])
190
m4_define([libxml_required_version], [2.9.0])
Marinus Schraal's avatar
Marinus Schraal committed
191
m4_define([pangoft2_required_version], [1.38.0])
192
m4_define([peas_required_version], [1.18.0])
193
m4_define([json_glib_required_version], [1.2.0])
194

195
PKG_CHECK_MODULES(EGG,      [glib-2.0 >= glib_required_version
196
                             gmodule-2.0 >= glib_required_version
Christian Hergert's avatar
Christian Hergert committed
197
                             gtk+-3.0 >= gtk_required_version])
198
PKG_CHECK_MODULES(GD,       [gtk+-3.0 >= gtk_required_version])
199 200
PKG_CHECK_MODULES(GEDIT,    [glib-2.0 >= glib_required_version
                             gtk+-3.0 >= gtk_required_version])
201 202 203
PKG_CHECK_MODULES(GSTYLE,   [glib-2.0 >= glib_required_version
                             gtk+-3.0 >= gtk_required_version
                             gtksourceview-3.0 >= gtksourceview_required_version])
204
PKG_CHECK_MODULES(ICONS,    [gio-2.0 >= glib_required_version])
205
PKG_CHECK_MODULES(JSONRPC,  [json-glib-1.0 >= json_glib_required_version])
206 207
PKG_CHECK_MODULES(LIBIDE,   [gio-2.0 >= glib_required_version
                             gio-unix-2.0 >= glib_required_version
208
                             gtk+-3.0 >= gtk_required_version
209
                             gtksourceview-3.0 >= gtksourceview_required_version
210
                             json-glib-1.0 >= json_glib_required_version
211
                             libpeas-1.0 >= peas_required_version
Marinus Schraal's avatar
Marinus Schraal committed
212
                             libxml-2.0 >= libxml_required_version
213
                             pangoft2 >= pangoft2_required_version])
214
PKG_CHECK_MODULES(NAUTILUS, [glib-2.0 >= glib_required_version
215
                             gtk+-3.0 >= gtk_required_version])
216
PKG_CHECK_MODULES(PANEL_GTK,[gtk+-3.0 >= gtk_required_version])
217 218 219
PKG_CHECK_MODULES(PYGOBJECT,[pygobject-3.0 >= pygobject_required_version],
                            [have_pygobject=yes],
                            [have_pygobject=no])
220 221
PKG_CHECK_MODULES(RG,       [gtk+-3.0 >= gtk_required_version])
PKG_CHECK_MODULES(SEARCH,   [glib-2.0 >= glib_required_version])
Christian Hergert's avatar
Christian Hergert committed
222 223
PKG_CHECK_MODULES(TMPL,     [gio-2.0 >= glib_required_version
			     gobject-introspection-1.0 >= gobject_introspection_version])
224 225
PKG_CHECK_MODULES(XML,      [gio-2.0 >= glib_required_version
                             libxml-2.0 >= libxml_required_version])
226

227

228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
dnl ***********************************************************************
dnl Check if we have WebKit support
dnl ***********************************************************************
m4_define([webkit_required_version], [2.12.0])
AC_ARG_ENABLE([webkit],
              [AS_HELP_STRING([--enable-webkit=@<:@yes/no/auto@:>@],
                              [Build with support for webkit.])],
              [enable_webkit=$enableval],
              [enable_webkit=auto])
AS_IF([test "$enable_webkit" != no],[
	PKG_CHECK_MODULES(WEBKIT,
	                  [webkit2gtk-4.0 >= webkit_required_version],
	                  [have_webkit=yes],
	                  [have_webkit=no])

243
	AS_IF([test "$enable_webkit" = "yes" && test "$have_webkit" = "no"],[
244 245 246 247 248 249 250 251
	       AC_MSG_ERROR([--enable-webkit requires webkit2gtk-4.0 >= webkit_required_version])
	])

	enable_webkit=$have_webkit
])
AM_CONDITIONAL(ENABLE_WEBKIT, [test "x$enable_webkit" = "xyes"])


252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
dnl ***********************************************************************
dnl Check for Required Python
dnl ***********************************************************************
enable_python_scripting=no
AS_IF([test "x$have_pygobject" = "xyes"],[
	AM_PATH_PYTHON([3.2.3])
	AC_PATH_TOOL(PYTHON3_CONFIG, "python3-config")
	AS_IF([test -z "${PYTHON3_CONFIG}"],[
		AC_MSG_RESULT([Failed to locate python3-config.])
	],[
		LIBIDE_CFLAGS="${LIBIDE_CFLAGS} `${PYTHON3_CONFIG} --includes`"
		LIBIDE_LIBS="${LIBIDE_LIBS} `${PYTHON3_CONFIG} --libs`"
		LIBIDE_LDFLAGS="${LIBIDE_LDFLAGS} `${PYTHON3_CONFIG} --ldflags`"
		enable_python_scripting=yes
	])

	pyoverridesdir="\$(pyexecdir)/gi/overrides"
	AC_SUBST(pyoverridesdir)
])


Marcin Kolny's avatar
Marcin Kolny committed
273
dnl ***********************************************************************
274
dnl Check for idemm
Marcin Kolny's avatar
Marcin Kolny committed
275 276 277 278
dnl ***********************************************************************
m4_include([libidemm/configure.ac])


279
dnl ***********************************************************************
280
dnl Check for supported plugins
281
dnl ***********************************************************************
282
m4_include([plugins/autotools/configure.ac])
283
m4_include([plugins/autotools-templates/configure.ac])
284
m4_include([plugins/build-tools/configure.ac])
285
m4_include([plugins/c-pack/configure.ac])
286
m4_include([plugins/cargo/configure.ac])
287
m4_include([plugins/clang/configure.ac])
288
m4_include([plugins/color-picker/configure.ac])
289
m4_include([plugins/command-bar/configure.ac])
290
m4_include([plugins/comment-code/configure.ac])
Christian Hergert's avatar
Christian Hergert committed
291
m4_include([plugins/contributing/configure.ac])
Christian Hergert's avatar
Christian Hergert committed
292
m4_include([plugins/create-project/configure.ac])
293 294 295
m4_include([plugins/ctags/configure.ac])
m4_include([plugins/devhelp/configure.ac])
m4_include([plugins/file-search/configure.ac])
296
m4_include([plugins/flatpak/configure.ac])
297
m4_include([plugins/fpaste/configure.ac])
298
m4_include([plugins/gcc/configure.ac])
299
m4_include([plugins/gettext/configure.ac])
300
m4_include([plugins/git/configure.ac])
301
m4_include([plugins/gnome-code-assistance/configure.ac])
302
m4_include([plugins/hello-cpp/configure.ac])
303 304 305
m4_include([plugins/html-completion/configure.ac])
m4_include([plugins/html-preview/configure.ac])
m4_include([plugins/jedi/configure.ac])
306
m4_include([plugins/jhbuild/configure.ac])
Patrick Griffis's avatar
Patrick Griffis committed
307
m4_include([plugins/meson/configure.ac])
308
m4_include([plugins/mingw/configure.ac])
309
m4_include([plugins/project-tree/configure.ac])
310 311
m4_include([plugins/python-gi-imports-completion/configure.ac])
m4_include([plugins/python-pack/configure.ac])
312
m4_include([plugins/quick-highlight/configure.ac])
313
m4_include([plugins/rust-langserv/configure.ac])
314
m4_include([plugins/support/configure.ac])
315 316
m4_include([plugins/symbol-tree/configure.ac])
m4_include([plugins/sysmon/configure.ac])
317
m4_include([plugins/sysprof/configure.ac])
318
m4_include([plugins/todo/configure.ac])
319
m4_include([plugins/terminal/configure.ac])
320
m4_include([plugins/vala-pack/configure.ac])
321
m4_include([plugins/xml-pack/configure.ac])
322 323


324 325 326 327
dnl ***********************************************************************
dnl Define automake conditionals based on what we found
dnl ***********************************************************************
AM_CONDITIONAL(ENABLE_PYTHON_SCRIPTING, test x$enable_python_scripting != xno)
328 329 330 331 332 333


dnl ***********************************************************************
dnl Initialize Libtool
dnl ***********************************************************************
LT_PREREQ([2.2])
334
LT_INIT
Patrick Griffis's avatar
Patrick Griffis committed
335
LT_LIB_M
336

337 338 339 340

dnl ***********************************************************************
dnl Additional C Compiler Flags
dnl ***********************************************************************
341 342 343 344 345
AX_CHECK_COMPILE_FLAG([-Werror=unknown-warning-option], [
	ax_compiler_flags_test="-Werror=unknown-warning-option"
], [
	ax_compiler_flags_test=""
])
346 347
AX_APPEND_COMPILE_FLAGS([ \
	-Wall \
348
	-Wcast-align \
349 350 351
	-Wdeclaration-after-statement \
	-Werror=format-security \
	-Werror=format=2 \
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367
	-Wextra \
	-Wformat-nonliteral \
	-Wformat-security \
	-Wmissing-include-dirs \
	-Wnested-externs \
	-Wno-missing-field-initializers \
	-Wno-sign-compare \
	-Wno-strict-aliasing \
	-Wno-uninitialized \
	-Wno-unused-parameter \
	-Wpointer-arith \
	-Wredundant-decls \
	-Wshadow \
	-Wswitch-default \
	-Wswitch-enum \
	-Wundef \
368
], [], [$ax_compiler_flags_test])
369
AC_C_CONST
370

371 372

dnl ***********************************************************************
373
dnl Always build tests
374
dnl ***********************************************************************
375 376 377 378 379 380
AC_ARG_ENABLE([tests],
              AS_HELP_STRING([--enable-tests],
                             [Enable always building tests during 'make all' [default=no]]),
              [enable_tests=$enableval], [enable_tests=no])

AM_CONDITIONAL([ENABLE_TESTS], test "$enable_tests" = "yes")
381 382 383 384 385


dnl ***********************************************************************
dnl Support for gtk-doc Documentation Engine
dnl ***********************************************************************
386 387 388 389 390 391 392 393
GTK_DOC_CHECK([1.11],[--flavour no-tmpl])
AM_CONDITIONAL(ENABLE_GTK_DOC, test "x$enable_gtk_doc" = "xyes")
AC_ARG_ENABLE(doc-cross-references,
              AS_HELP_STRING([--disable-doc-cross-references],
                             [cross reference symbols from other libraries @<:@default=yes@:>@]),
              enable_doc_cross_references=$enableval,
              enable_doc_cross_references=yes)
AM_CONDITIONAL(ENABLE_DOC_CROSS_REFERENCES, test x$enable_doc_cross_references != xno)
Christian Hergert's avatar
Christian Hergert committed
394

395

396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412
dnl ***********************************************************************
dnl Setup Various Compiler Optimizations
dnl ***********************************************************************
AC_MSG_CHECKING([whether to enable optimized builds])
AC_ARG_ENABLE(optimizations, 
              AC_HELP_STRING([--enable-optimizations],
                             [turn on build-time optimizations [default=yes]]),
              [enable_optimizations=$enableval],
              [AS_IF([test "x$enable_debug" = "xyes"],
		     [enable_optimizations="no"],
		     [enable_optimizations="yes"])])
AC_MSG_RESULT([$enable_optimizations])
OPTIMIZE_CFLAGS=""
OPTIMIZE_LDFLAGS=""
# Enable -Bsymbolic
AS_IF([test "$enable_optimizations" != "no"],
      [AX_CHECK_LINK_FLAG([-Wl,-Bsymbolic],
413 414 415
                          [OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -Wl,-Bsymbolic"])
       AX_CHECK_LINK_FLAG([-fno-plt],
                          [OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -fno-plt"])])
416 417 418 419
AC_SUBST(OPTIMIZE_CFLAGS)
AC_SUBST(OPTIMIZE_LDFLAGS)


420 421 422 423 424 425 426 427
dnl ***********************************************************************
dnl Check if shm_open Requires a Library
dnl ***********************************************************************
AC_CHECK_FUNCS([shm_open], [SHM_LIB=],
               [AC_CHECK_LIB([rt], [shm_open], [SHM_LIB=-lrt], [SHM_LIB=])])
AC_SUBST(SHM_LIB)


428 429 430 431 432 433 434
dnl ***********************************************************************
dnl Check if we should instrument our targets
dnl ***********************************************************************
AC_MSG_CHECKING([for --enable-profiling])
AC_ARG_ENABLE(profiling,
              AC_HELP_STRING([--enable-profiling],
                             [turn on runtime instrumentation [default=no]]),
435 436
              [enable_profiling=$enableval],
	      [enable_profiling=no])
437 438 439 440 441 442 443 444 445 446 447
AS_IF([test "$enable_profiling" = "yes"],[
	ac_save_cflags="$CFLAGS"
	CFLAGS="$CFLAGS -pg"
	AC_LINK_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],
	               [PROFILING_CFLAGS="-pg"],
		       [enable_profiling=no])
	CFLAGS="$ac_save_cflags $PROFILING_CFLAGS"
])
AC_MSG_RESULT([$enable_profiling])


448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463
dnl ***********************************************************************
dnl GCC/Clang sanitizer support
dnl ***********************************************************************
AC_ARG_WITH([sanitizer],
            [AS_HELP_STRING([--with-sanitizer=@<:@address/undefined/no@:>@],
                            [Use specific GCC/Clang analyzer])],
            [with_sanitizer=$withval],
            [with_sanitizer=no])
AS_IF([test "x$with_sanitizer" != "xno"],[
	AX_CHECK_COMPILE_FLAG([-fsanitize=$withval],
	                      [CFLAGS="$CFLAGS -fsanitize=$withval"
			       CXXFLAGS="$CXXFLAGS -fsanitize=$withval"],
	                      [AC_MSG_ERROR([-fsanitize=$withval is not supported])])
])


464 465 466 467
dnl ***********************************************************************
dnl Setup common cflags and ldflags for plugins
dnl ***********************************************************************
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_builddir)/contrib/egg"
468
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_builddir)/contrib/pnl"
469 470 471
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_builddir)/libide"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/contrib/egg"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/contrib/gd"
472
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/contrib/gstyle"
473
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/contrib/jsonrpc-glib"
474
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/contrib/nautilus"
475
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/contrib/pnl"
476 477 478 479 480 481
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/contrib/rg"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/contrib/search"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/contrib/xml"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/libide"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS $LIBIDE_CFLAGS"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS $DEBUG_CFLAGS"
Garrett Regier's avatar
Garrett Regier committed
482
PLUGIN_CFLAGS="$PLUGIN_CFLAGS $OPTIMIZE_CFLAGS"
483 484 485 486
AC_SUBST(PLUGIN_CFLAGS)

PLUGIN_LDFLAGS="$PLUGIN_LDFLAGS $OPTIMIZE_LDFLAGS"
PLUGIN_LDFLAGS="$PLUGIN_LDFLAGS -avoid-version"
487
PLUGIN_LDFLAGS="$PLUGIN_LDFLAGS -export-symbols-regex peas_register_types"
488 489 490 491 492 493 494
PLUGIN_LDFLAGS="$PLUGIN_LDFLAGS -module"
AC_SUBST(PLUGIN_LDFLAGS)

PLUGIN_VALAFLAGS="$PLUGIN_VALAFLAGS --target-glib=2.44"
PLUGIN_VALAFLAGS="$PLUGIN_VALAFLAGS --thread"
PLUGIN_VALAFLAGS="$PLUGIN_VALAFLAGS --vapidir \$(top_builddir)/libide"
PLUGIN_VALAFLAGS="$PLUGIN_VALAFLAGS --vapidir \$(top_builddir)/contrib/egg"
495
PLUGIN_VALAFLAGS="$PLUGIN_VALAFLAGS --vapidir \$(top_builddir)/contrib/gstyle"
496
PLUGIN_VALAFLAGS="$PLUGIN_VALAFLAGS --vapidir \$(top_builddir)/contrib/jsonrpc-glib"
497
PLUGIN_VALAFLAGS="$PLUGIN_VALAFLAGS --vapidir \$(top_builddir)/contrib/pnl"
498 499 500 501 502 503
PLUGIN_VALAFLAGS="$PLUGIN_VALAFLAGS --vapidir \$(top_builddir)/contrib/tmpl"
PLUGIN_VALAFLAGS="$PLUGIN_VALAFLAGS --pkg libide-1.0"
PLUGIN_VALAFLAGS="$PLUGIN_VALAFLAGS --pkg libpeas-1.0"
AC_SUBST(PLUGIN_VALAFLAGS)


504 505 506
dnl ***********************************************************************
dnl Process .in Files
dnl ***********************************************************************
507 508
AC_CONFIG_FILES([
	Makefile
509 510 511 512 513

	build/Makefile
	build/autotools/Makefile

	contrib/Makefile
514
	contrib/egg/Makefile
515
	contrib/gd/Makefile
516 517
	contrib/gstyle/Makefile
	contrib/gstyle/tests/Makefile
518 519
	contrib/jsonrpc-glib/Makefile
	contrib/jsonrpc-glib/jsonrpc-version.h
520
	contrib/libeditorconfig/Makefile
521
	contrib/nautilus/Makefile
522 523
	contrib/pnl/Makefile
	contrib/pnl/pnl-version.h
524
	contrib/rg/Makefile
525
	contrib/search/Makefile
Christian Hergert's avatar
Christian Hergert committed
526 527
	contrib/tmpl/Makefile
	contrib/tmpl/tmpl-debug.h
528
	contrib/xml/Makefile
529 530

	libide/Makefile
Christian Hergert's avatar
Christian Hergert committed
531
	libide/ide-debug.h
532

Christian Hergert's avatar
wip  
Christian Hergert committed
533 534
	plugins/Makefile

535
	data/Makefile
536
	data/fonts/Makefile
537
	data/gsettings/Makefile
538
	data/icons/Makefile
539
	data/icons/hicolor/Makefile
540
	data/libide-1.0.pc
541
	data/style-schemes/Makefile
Christian Hergert's avatar
Christian Hergert committed
542
	data/template-glib-1.0.pc
543
	data/org.gnome.Builder.desktop.in
544

545
	data/gsettings/org.gnome.builder.code-insight.gschema.xml
546 547 548
	doc/Makefile
	doc/examples/Makefile
	doc/examples/scripts/Makefile
549 550 551
	doc/reference/Makefile
	doc/reference/libide/Makefile
	doc/reference/libide/version.xml
552

Alexandre Franke's avatar
Alexandre Franke committed
553 554
	help/Makefile

555
	po/Makefile.in
Christian Hergert's avatar
Christian Hergert committed
556

557 558 559
	src/Makefile

	tests/Makefile
560 561

	tools/Makefile
562
])
Christian Hergert's avatar
Christian Hergert committed
563 564
AC_OUTPUT

565 566 567 568 569 570 571 572 573

echo ""
echo " ${PACKAGE} - ${VERSION}"
echo ""
echo " Options"
echo ""
echo "  Prefix ............................... : ${prefix}"
echo "  Libdir ............................... : ${libdir}"
echo "  Optimized Build ...................... : ${enable_optimizations}"
574
echo "  rdtscp ............................... : ${enable_rdtscp}"
575
echo "  WebKit ............................... : ${enable_webkit}"
576 577 578 579 580
echo ""
echo " Development Options"
echo ""
echo "  Enable Debug ......................... : ${enable_debug}"
echo "  Enable Tracing ....................... : ${enable_tracing}"
581
echo "  Enable Profiling (-pg)................ : ${enable_profiling}"
582 583 584
echo "  Build Test Suite ..................... : ${enable_tests}"
echo "  Build API reference .................. : ${enable_gtk_doc}"
echo "  Use cross-referencing in API docs .... : ${enable_doc_cross_references}"
585
echo "  Sanitizer ............................ : ${with_sanitizer}"
586
echo ""
Marcin Kolny's avatar
Marcin Kolny committed
587 588
echo " Optional libraries"
echo ""
Christian Hergert's avatar
Christian Hergert committed
589
echo "  idemm ................................ : ${enable_idemm}"
Marcin Kolny's avatar
Marcin Kolny committed
590
echo ""
591 592 593 594
echo " Scripting"
echo ""
echo "  Python ............................... : ${enable_python_scripting}"
echo ""
595 596
echo " Plugins"
echo ""
597
echo "  Autotools ............................ : ${enable_autotools_plugin}"
598
echo "  Build Tools .......................... : ${enable_build_tools_plugin}"
599
echo "  C Language Pack ...................... : ${enable_c_pack_plugin}"
600
echo "  Cargo ................................ : ${enable_cargo_plugin}"
601
echo "  Clang ................................ : ${enable_clang_plugin}"
602
echo "  Color picker.......................... : ${enable_color_picker_plugin}"
603
echo "  Command Bar .......................... : ${enable_command_bar_plugin}"
604
echo "  Comment Code.......................... : ${enable_comment_code_plugin}"
Christian Hergert's avatar
Christian Hergert committed
605
echo "  Contribute ........................... : ${enable_contributing_plugin}"
606
echo "  Ctags ................................ : ${enable_ctags_plugin}"
607
echo "  Devhelp .............................. : ${enable_devhelp_plugin}"
608
echo "  Editorconfig ......................... : ${enable_editorconfig}"
609
echo "  Fpaste.org ........................... : ${enable_fpaste_plugin}"
610
echo "  GCC .................................. : ${enable_gcc_plugin}"
611
echo "  Gettext .............................. : ${enable_gettext_plugin}"
612
echo "  Git Version Control .................. : ${enable_git_plugin}"
613
echo "  Global File Search ................... : ${enable_file_search_plugin}"
614
echo "  GNOME Code Assistance ................ : ${enable_gnome_code_assistance_plugin}"
615
echo "  HTML Autocompletion .................. : ${enable_html_completion_plugin}"
616
echo "  HTML and Markdown Preview ............ : ${enable_html_preview_plugin}"
617
echo "  JHBuild .............................. : ${enable_jhbuild_plugin}"
Patrick Griffis's avatar
Patrick Griffis committed
618
echo "  Meson ................................ : ${enable_meson_plugin}"
619
echo "  MinGW ................................ : ${enable_mingw_plugin}"
Christian Hergert's avatar
Christian Hergert committed
620
echo "  Project Creation ..................... : ${enable_create_project_plugin}"
621
echo "  Project Tree ......................... : ${enable_project_tree_plugin}"
622 623 624
echo "  Python GObject Introspection ......... : ${enable_python_gi_imports_completion_plugin}"
echo "  Python Jedi Autocompletion ........... : ${enable_jedi_plugin}"
echo "  Python Language Pack ................. : ${enable_python_pack_plugin}"
625
echo "  Quick Highlight ...................... : ${enable_quick_highlight_plugin}"
626
echo "  Rust Language Server ................. : ${enable_rust_langserv_plugin}"
627
echo "  Support .............................. : ${enable_support_plugin}"
628
echo "  System Monitor ....................... : ${enable_sysmon_plugin}"
629
echo "  Sysprof System Profiler .............. : ${enable_sysprof_plugin}"
630
echo "  Symbol Tree .......................... : ${enable_symbol_tree_plugin}"
631
echo "  Todo ................................. : ${enable_todo_plugin}"
632
echo "  Terminal ............................. : ${enable_terminal_plugin}"
633
echo "  Vala Language Pack ................... : ${enable_vala_pack_plugin}"
634
echo "  Flatpak .............................. : ${enable_flatpak_plugin}"
635
echo "  XML Language Pack .................... : ${enable_xml_pack_plugin}"
636
echo ""
637 638 639 640
echo " Example Plugins"
echo ""
echo "  Example C++ .......................... : ${enable_hello_cpp_plugin}"
echo ""
Christian Hergert's avatar
Christian Hergert committed
641 642
echo " Templates"
echo ""
643
echo "  Autotools ............................ : ${enable_autotools_templates}"
Christian Hergert's avatar
Christian Hergert committed
644
echo ""
645