configure.ac 31.3 KB
Newer Older
1
dnl Process this file with autoconf to produce a configure script.
2

3
AC_PREREQ(2.65)
4

5
m4_define(anjuta_major_version,  3)
6
m4_define(anjuta_minor_version,  28)
7
m4_define(anjuta_micro_version,  0)
8
m4_define(anjuta_version, anjuta_major_version.anjuta_minor_version.anjuta_micro_version)
9
m4_define(bugzilla_version, anjuta_major_version.anjuta_minor_version.anjuta_micro_version)
10

11
AC_INIT([Anjuta],[anjuta_version],[http://bugzilla.gnome.org/enter_bug.cgi?product=anjuta],[anjuta],[http://www.anjuta.org/])
12 13 14 15 16

AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_MACRO_DIR([m4])

17 18 19 20 21 22 23 24 25

AC_DEFINE(ANJUTA_MAJOR_VERSION, anjuta_major_version, [Anjuta major version])
AC_SUBST(ANJUTA_MAJOR_VERSION, anjuta_major_version)
AC_DEFINE(ANJUTA_MINOR_VERSION, anjuta_minor_version, [Anjuta minor version])
AC_SUBST(ANJUTA_MINOR_VERSION, anjuta_minor_version)
AC_DEFINE(ANJUTA_MICRO_VERSION, anjuta_micro_version, [Anjuta micro version])
AC_SUBST(ANJUTA_MICRO_VERSION, anjuta_micro_version)
AC_DEFINE(ANJUTA_VERSION, anjuta_version, [Anjuta version])
AC_SUBST(ANJUTA_VERSION)
26

27 28 29
ANJUTA_VERSION=anjuta_version
AC_SUBST(ANJUTA_VERSION)

30 31 32
BUGZILLA_VERSION=bugzilla_version
AC_SUBST(BUGZILLA_VERSION)

33
dnl Anjuta core
34
GLIB_REQUIRED=2.34.0
35
GTK_REQUIRED=3.10.0
36 37
GTHREAD_REQUIRED=2.22.0
GDK_PIXBUF_REQUIRED=2.0.0
38
GDA4_REQUIRED=4.2.0
39
GDA5_REQUIRED=5.0.0
40
GDA6_REQUIRED=5.99.0
41
LIBXML_REQUIRED=2.4.23
42
GDL_REQUIRED=3.5.5
43 44 45
LIBWNCK_REQUIRED=2.12

dnl GtkSourceView
46
GTKSOURCEVIEW_REQUIRED=3.0.0
47

48 49 50
dnl Terminal
VTE_REQUIRED=0.27.6

51
dnl Devhelp
52
LIBDEVHELP_REQUIRED=3.7.4
53 54

dnl Glade
55
GLADEUI_REQUIRED=3.12.0
56 57

dnl Introspection
58
GI_REQUIRED=0.9.5
59 60

dnl Subversion plugin
James Liggett's avatar
James Liggett committed
61
NEON_REQUIRED=0.28.2
62
SERF_REQUIRED=1.2.0
63
SVN_MAJOR=1
James Liggett's avatar
James Liggett committed
64
SVN_MINOR=5
65 66
SVN_PATCH=0
SUBVERSION_REQUIRED=$SVN_MAJOR.$SVN_MINOR.$SVN_PATCH
67

68
AM_INIT_AUTOMAKE([1.10 dist-xz no-dist-gzip tar-ustar])
69 70
AM_MAINTAINER_MODE([enable])

71
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
Stéphane Démurget's avatar
Stéphane Démurget committed
72

73
dnl Check for C Compiler
74 75
AC_PROG_CC
AC_PROG_CPP
76
AC_PROG_LEX
77
if test "$LEX" != "flex"; then
78 79 80
	AC_MSG_ERROR(flex is required)
fi
AC_PROG_YACC
81
if test "$YACC" != "bison -y"; then
82 83
	AC_MSG_ERROR(bison is required)
fi
84 85
AC_LANG([C])
AC_LANG([C++])
86
AC_PROG_CXX
87 88
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],,
   AC_MSG_ERROR([C++ Compiler required to compile Anjuta]))
89
AM_PROG_CC_C_O
90

91
GNOME_COMPILE_WARNINGS([yes])
92
AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS"
93
AM_CXXFLAGS="$AM_CXXFLAGS $WARN_CXXFLAGS"
94

95 96
dnl Enable debugging mode
AC_ARG_ENABLE(debug,
97
  AS_HELP_STRING([--enable-debug],[Enable debug messages]),
98 99 100
  [if test "x$enableval" = "xyes"; then
      AM_CFLAGS="$AM_CFLAGS -DDEBUG"
  fi]
101
  AM_CXXFLAGS="$AM_CXXFLAGS -DDEBUG")
102
AC_SUBST(AM_CFLAGS)
103
AC_SUBST(AM_CXXFLAGS)
104

105 106
ANJUTA_LDFLAGS="-no-undefined"
ANJUTA_PLUGIN_LDFLAGS="-module -avoid-version -no-undefined"
107
AC_SUBST(ANJUTA_LDFLAGS)
108 109
AC_SUBST(ANJUTA_PLUGIN_LDFLAGS)

110 111 112
dnl GSettings
GLIB_GSETTINGS

113
dnl Disable deprecated APIs
114 115 116 117
dnl if test x$MAINT = x; then
dnl 	DEPRECATED_FLAGS="-DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
dnl	AC_SUBST(DEPRECATED_FLAGS)
dnl fi
Naba Kumar's avatar
Naba Kumar committed
118

119 120 121
dnl Check for pkg-config
PKG_PROG_PKG_CONFIG([0.22])

Naba Kumar's avatar
Naba Kumar committed
122 123
dnl Enable versioned user preferences directory
AC_ARG_WITH(pref-suffix,
124
  AS_HELP_STRING([--with-pref-suffix=VALUE],[Suffix to add to user preferences dir.]),
125
  PREF_SUFFIX="$withval")
Naba Kumar's avatar
Naba Kumar committed
126 127 128 129 130

AC_SUBST(PREF_SUFFIX)
AC_DEFINE_UNQUOTED(PREF_SUFFIX,
      "${PREF_SUFFIX}",
	  [Suffix to add to preferences directory])
131

132 133 134 135
# Initialize libtool
LT_PREREQ([2.2])
LT_INIT([disable-static])

Maxim Ermilov's avatar
Maxim Ermilov committed
136
dnl ***************************************************************************
137 138
dnl Check for GObject-Introspection
dnl ***************************************************************************
139
m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [GOBJECT_INTROSPECTION_CHECK([0.6.7])],
140
[AM_CONDITIONAL(HAVE_INTROSPECTION, false)])
141 142 143

dnl ***************************************************************************
dnl Set gjsdir
Maxim Ermilov's avatar
Maxim Ermilov committed
144 145 146 147
dnl ***************************************************************************
gjsdir=`pkg-config --variable=jsdir gjs-1.0`
AC_SUBST(gjsdir)

148
dnl Check base modules
149

150 151
PKG_CHECK_MODULES([ANJUTA],
   [gthread-2.0 >= $GTHREAD_REQUIRED
152 153
	glib-2.0 >= $GLIB_REQUIRED
	gio-2.0 >= $GLIB_REQUIRED
154
	gmodule-2.0 >= $GLIB_REQUIRED
155
	gtk+-3.0 >= $GTK_REQUIRED
156 157 158 159 160 161 162 163 164
	gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED])

PKG_CHECK_MODULES([XML],
   [libxml-2.0 >= $LIBXML_REQUIRED])

PKG_CHECK_MODULES([GDL],
   [gdl-3.0 >= $GDL_REQUIRED])

PKG_CHECK_MODULES([GDA],
165 166 167
   [libgda-6.0 >= $GDA6_REQUIRED], [
		AC_DEFINE(HAVE_GDA6,[1],[libgda-6.0 support])
	],
168
   [PKG_CHECK_MODULES([GDA],
169 170 171
      [libgda-5.0 >= $GDA5_REQUIRED],,
         [PKG_CHECK_MODULES([GDA],
            [libgda-4.0 >= $GDA4_REQUIRED])])])
172

Naba Kumar's avatar
Naba Kumar committed
173 174 175 176
dnl Check for autogen
dnl -----------------
AC_PATH_PROG(AUTOGEN_PATH, autogen,no)
if test x$AUTOGEN_PATH = xno; then
177 178
   AC_MSG_WARN([Couldn't find autogen. You will be able to build anjuta without autogen \
                but several things won't work. You can get it from http://autogen.sourceforge.net/])
Naba Kumar's avatar
Naba Kumar committed
179 180
fi

181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
dnl Check for Terminal
dnl ---------------------

AC_ARG_ENABLE(plugin-terminal,
  AS_HELP_STRING([--disable-plugin-terminal],[Disable terminal plugin support in Anjuta.]),
  [ if test "$enableval" = "no"; then
       user_disabled_terminal=1
    fi ],
  [ user_disabled_terminal=0 ] )

AC_MSG_CHECKING(if terminal plugin is disabled)
if test "$user_disabled_terminal" = 1; then
	AC_MSG_RESULT(yes)
	terminal_enabled="no"
else
	AC_MSG_RESULT(no)
197 198 199 200 201 202 203 204 205 206 207 208 209 210
	PKG_CHECK_EXISTS([vte-2.91 >= $VTE_REQUIRED],
		 [vte_2_91_enabled=yes],
		 [vte_2_91_enabled=no])
	if test $vte_2_91_enabled = yes; then
		PKG_CHECK_MODULES(PLUGIN_TERMINAL, [vte-2.91 >= $VTE_REQUIRED],
	    		[terminal_enabled=yes],
			[terminal_enabled=no])
		AC_DEFINE(HAVE_VTE_2_91,1,[libvte 2.91 support])
	else
		PKG_CHECK_MODULES(PLUGIN_TERMINAL, [vte-2.90 >= $VTE_REQUIRED],
	    		[terminal_enabled=yes],
			[terminal_enabled=no])
		AC_DEFINE(HAVE_VTE_2_90,1,[libvte 2.90 support])
	fi
211 212 213 214
fi

AM_CONDITIONAL(HAVE_PLUGIN_TERMINAL, [test x$terminal_enabled = xyes])

215 216
dnl Check for Devhelp
dnl -----------------
217 218

AC_ARG_ENABLE(plugin-devhelp,
219
  AS_HELP_STRING([--disable-plugin-devhelp],[Disable devhelp plugin support in Anjuta.]),
220 221
  [ if test "$enableval" = "no"; then
       user_disabled_devhelp=1
222
    fi ],
223
  [ user_disabled_devhelp=0 ] )
224 225 226 227 228 229 230

AC_MSG_CHECKING(if devhelp plugin is disabled)
if test "$user_disabled_devhelp" = 1; then
	AC_MSG_RESULT(yes)
	devhelp_enabled="no"
else
	AC_MSG_RESULT(no)
231
	PKG_CHECK_MODULES(PLUGIN_DEVHELP,
232
				[libdevhelp-3.0 >= $LIBDEVHELP_REQUIRED],
233 234 235 236 237
				[
				    devhelp_enabled=yes
				], [
				    devhelp_enabled=no
				])
238 239
fi

240 241 242 243 244
if test "x$devhelp_enabled" = "xyes"; then
	case "$PLUGIN_DEVHELP_LIBS" in
		*webkit2gtk-3.0*)
			AC_DEFINE([HAVE_WEBKIT2], [1], [Defined if devhelp is built against webkitgtk2])
			;;
245 246 247
		*webkit2gtk-4.0*)
			AC_DEFINE([HAVE_WEBKIT2], [1], [Defined if devhelp is built against webkitgtk2])
			;;
248 249
		esac
fi
250
AM_CONDITIONAL(HAVE_PLUGIN_DEVHELP, [test x$devhelp_enabled = xyes])
251

252 253
dnl Check for Glade3
dnl ---------------------
254

255
AC_ARG_ENABLE(plugin-glade,
256
  AS_HELP_STRING([--disable-plugin-glade],[Disable glade plugin support in Anjuta.]),
257 258 259 260
  [ if test "$enableval" = "no"; then
       user_disabled_glade=1
    fi ],
  [ user_disabled_glade=0 ] )
261 262 263 264

AC_MSG_CHECKING(if glade plugin is disabled)
if test "$user_disabled_glade" = 1; then
	AC_MSG_RESULT(yes)
265
	gladeui_found="no"
266 267
else
	AC_MSG_RESULT(no)
268
	gladeui_version=0
269
	PKG_CHECK_MODULES(PLUGIN_GLADE, gladeui-2.0 >= $GLADEUI_REQUIRED,
270
	    [
271
		gladeui_found=yes
272
	    ], [
273
		gladeui_found=no
274
	    ])
275 276
fi

277
AM_CONDITIONAL(HAVE_PLUGIN_GLADE, [test x$gladeui_found = xyes])
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
dnl Glade catalog
dnl ---------------------

AC_ARG_ENABLE(glade-catalog,
  AS_HELP_STRING([--enable-glade-catalog], [Enable glade catalog. Glade UI libraries must be installed]),
  [ user_enabled_glade_catalog=1 ],
  [ user_enabled_glade_catalog=0 ])

glade_catalog_enabled="no"

AC_MSG_CHECKING(if glade catalog is enabled)
if test "$gladeui_found" = "yes"; then
  if test "$user_enabled_glade_catalog" = 1; then
    AC_MSG_RESULT(yes)
    glade_catalog_enabled="yes"
    GLADE_CATALOG_PATH=`pkg-config --variable=catalogdir gladeui-2.0`
    GLADE_PLUGINS_PATH=`pkg-config --variable=moduledir gladeui-2.0`

    AC_SUBST(GLADE_CATALOG_PATH)
    AC_SUBST(GLADE_PLUGINS_PATH)
  else
    AC_MSG_RESULT(no) 
  fi
else
  AC_MSG_RESULT(no)
fi

AM_CONDITIONAL(ENABLE_GLADE_CATALOG, [test x$glade_catalog_enabled = xyes])

308
dnl Check for gtksourceview
309
dnl -------------------------------------------------------------
310
PKG_CHECK_MODULES(SOURCEVIEW,
311
		[gtksourceview-3.0 >= $GTKSOURCEVIEW_REQUIRED])
312

313 314 315 316 317 318 319

dnl Check for libsqlite3 used in symbol-db benchmarks
dnl -------------------------------------------------------------
PKG_CHECK_MODULES(SQLITE, sqlite3, sqlite3_found=yes, sqlite3_found=no)
AM_CONDITIONAL(HAVE_SQLITE, [test x$sqlite3_found = xyes])


320 321 322
dnl Check for vala
dnl -------------------------------------------------------------

323
AC_ARG_ENABLE(vala,
324
	AS_HELP_STRING([--disable-vala],[Disable vala support]),
325 326 327 328 329 330 331 332 333 334
	[ if test "$enableval" = "no"; then
		user_disabled_vala=1
	  fi ],
	[ user_disabled_vala=0 ])

AC_MSG_CHECKING(if vala support is disabled)
if test "$user_disabled_vala" = 1; then
        AC_MSG_RESULT(yes)
	enable_vala="no"
else
335 336
        AC_MSG_RESULT(no)
	AC_MSG_CHECKING(if libvala is available)
337
	m4_foreach([VERSION], [[0.42], [0.40], [0.38], [0.36], [0.34], [0.32], [0.30], [0.28], [0.26], [0.24], [0.22], [0.20], [0.18]],
338 339
		[PKG_CHECK_EXISTS([ libvala-VERSION ],
			 [ valaver="-VERSION" ])
340 341
			 ])
	if test "x$valaver" != "x"; then
342 343
		AC_MSG_RESULT(yes)
		enable_vala="yes"
344 345
		LIBVALA="libvala${valaver}"
		PKG_CHECK_MODULES([VALA], ${LIBVALA})
346 347 348
	else
		AC_MSG_RESULT(no)
		enable_vala="no"
349
		VALA_REQUIRED=0.18.0
350
	fi
351
	AC_SUBST(LIBVALA)
352
fi
353

354
if test x$enable_vala = xyes; then
355
	AC_PATH_PROGS(VALAC, [valac${valaver} valac], valac)
356 357 358
	AC_SUBST(VALAC)
fi

359 360
AM_CONDITIONAL(ENABLE_VALA, [test x$enable_vala = xyes])

361 362 363 364 365 366 367 368 369 370 371 372 373
dnl Check for Python
dnl -------------------------------------------------------------

AM_PATH_PYTHON([],
	[have_python="yes"],
	[have_python="no"])

if test x$have_python = xyes; then
	if test -x $PYTHON-config; then
		PYTHON_CFLAGS=`$PYTHON-config --cflags`
		PYTHON_LIBS=`$PYTHON-config --libs`
		AC_SUBST(PYTHON_CFLAGS)
		AC_SUBST(PYTHON_LIBS)
374 375 376 377 378
	elif test -x $PYTHON$PYTHON_VERSION-config; then
		PYTHON_CFLAGS=`$PYTHON$PYTHON_VERSION-config --cflags`
		PYTHON_LIBS=`$PYTHON$PYTHON_VERSION-config --libs`
		AC_SUBST(PYTHON_CFLAGS)
		AC_SUBST(PYTHON_LIBS)		
379 380
	else
		have_python="no"
381
		echo "$PYTHON-config or $PYTHON$PYTHON_VERSION-config not found - disabling python"
382 383 384 385 386
	fi
fi

AM_CONDITIONAL(HAVE_PYTHON, [test x$have_python = xyes])

387 388 389 390 391 392 393 394 395
dnl Disable packagekit support
dnl -----------------------------------
AC_ARG_ENABLE(packagekit,
  [AC_HELP_STRING([--disable-packagekit],[build without PackageKit support])],,
  [enable_packagekit=yes])
if test "x$enable_packagekit" != "xno"; then
  AC_DEFINE(ENABLE_PACKAGEKIT, 1, [define to enable PackageKit installer])
fi

396 397
dnl Setup Anjuta Library flags
dnl --------------------------
398
LIBANJUTA_CFLAGS='$(ANJUTA_CFLAGS) $(GDL_CFLAGS) $(DEPRECATED_FLAGS) -I$(top_srcdir) -I$(top_builddir)/libanjuta -DPACKAGE_PIXMAPS_DIR=\""$(datadir)/pixmaps/$(PACKAGE)"\" -DPACKAGE_LIB_DIR=\""$(pkglibdir)"\" -DPACKAGE_DATA_DIR=\""$(datadir)/$(PACKAGE)"\"'
399
LIBANJUTA_LIBS='$(top_builddir)/libanjuta/libanjuta-3.la'
400 401 402
AC_SUBST(LIBANJUTA_CFLAGS)
AC_SUBST(LIBANJUTA_LIBS)

403 404 405
dnl Setup FooCanvas Library flags
dnl --------------------------
LIBFOOCANVAS_CFLAGS='-I$(top_srcdir)'
406
LIBFOOCANVAS_LIBS='$(top_builddir)/libfoocanvas/libanjuta-foocanvas.la'
407 408 409 410 411
AC_SUBST(LIBFOOCANVAS_CFLAGS)
AC_SUBST(LIBFOOCANVAS_LIBS)

dnl Checks for Xft/XRender for foocanvas
dnl
412
AC_CHECK_LIB(Xrender, XRenderFindFormat,
413 414 415 416 417
	[AC_SUBST(RENDER_LIBS, "-lXrender -lXext")
	 AC_DEFINE(HAVE_RENDER, 1, [Define if libXrender is available.])],
	[AC_SUBST(RENDER_LIBS, "")],
	[-lXext])

418 419 420 421 422 423 424 425 426 427 428 429 430
dnl Setup Plugin directories
dnl ------------------------
anjuta_plugin_dir='$(libdir)/anjuta'
anjuta_data_dir='$(datadir)/anjuta'
anjuta_ui_dir='$(datadir)/anjuta/ui'
anjuta_glade_dir='$(datadir)/anjuta/glade'
anjuta_image_dir='$(datadir)/pixmaps/anjuta'
AC_SUBST(anjuta_plugin_dir)
AC_SUBST(anjuta_data_dir)
AC_SUBST(anjuta_ui_dir)
AC_SUBST(anjuta_glade_dir)
AC_SUBST(anjuta_image_dir)

Naba Kumar's avatar
Naba Kumar committed
431 432 433
dnl ***************************************************************************
dnl Check for marshal and enum generators
dnl ***************************************************************************
434 435 436 437 438
GLIB_GENMARSHAL="`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`"
AC_SUBST(GLIB_GENMARSHAL)
GLIB_MKENUMS="`$PKG_CONFIG --variable=glib_mkenums glib-2.0`"
AC_SUBST(GLIB_MKENUMS)

Naba Kumar's avatar
Naba Kumar committed
439 440 441
dnl ***************************************************************************
dnl Internatinalization
dnl ***************************************************************************
442 443 444 445 446
IT_PROG_INTLTOOL([0.40.1])

AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.17])

447 448
GETTEXT_PACKAGE=anjuta
AC_SUBST(GETTEXT_PACKAGE)
449
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
Naba Kumar's avatar
Naba Kumar committed
450

451 452
BISON_I18N

453 454 455
dnl ***************************************************************************
dnl Check for gtk-doc.
dnl ***************************************************************************
456
GTK_DOC_CHECK([1.4])
457

458 459 460
dnl ***************************************************************************
dnl User manual
dnl ***************************************************************************
461
YELP_HELP_INIT
462

463 464 465
dnl Define convenience macros
dnl -------------------------
dnl CHECK_HEADER_DEFINE(LABEL, HEADER [,ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ] ])
466
AC_DEFUN([CHECK_HEADER_DEFINE],
467 468 469 470 471 472 473 474 475 476 477 478 479 480
[
	AC_MSG_CHECKING("if $1 is defined in $2")
	AC_EGREP_CPP(yes,
[#include <$2>
#ifdef $1
  yes
#endif
], [
	AC_MSG_RESULT(yes)
	$3
], [
	AC_MSG_RESULT(no)
	$4
]) ])
481

Stéphane Démurget's avatar
Stéphane Démurget committed
482
dnl Checks for header files.
Johannes Schmid's avatar
Johannes Schmid committed
483
AC_CHECK_HEADERS(dirent.h fcntl.h fnmatch.h stat.h stdlib.h string.h stdint.h)
484 485
AC_CHECK_HEADERS(time.h types.h unistd.h)
AC_CHECK_HEADERS(sys/dir.h sys/stat.h sys/times.h sys/types.h)
Naba Kumar's avatar
Naba Kumar committed
486

Stéphane Démurget's avatar
Stéphane Démurget committed
487
dnl Checks for typedefs, structures, and compiler characteristics.
488

489 490 491
AC_CANONICAL_HOST
CYGWIN=no
MINGW32=no
492
MACOSX=no
493 494 495
case $host_os in
  *cygwin* ) CYGWIN=yes;;
  *mingw32* ) MINGW32=yes;;
496
  *darwin* ) MACOSX=yes;;
497 498
esac

499

500 501 502
dnl Check for bind in libsocket (needed on Solaris)
AC_CHECK_LIB(socket, bind)

503 504 505
dnl Check for function forkpty and related headers
AC_SEARCH_LIBS(forkpty, util, , AC_DEFINE(EMULATE_FORKPTY, [], [Need  to implement our own forkpty()]))
AC_CHECK_HEADERS(libutil.h util.h pty.h)
506

Stéphane Démurget's avatar
Stéphane Démurget committed
507
dnl Checks for library functions.
508 509 510 511
AC_CHECK_FUNCS(fnmatch)
AC_CHECK_FUNCS(strstr)
AC_CHECK_FUNCS(stricmp)
AC_CHECK_FUNCS(strnicmp)
512
AC_CHECK_FUNCS(getline)
513

514 515 516 517
dnl for libegg/egg-recent-model.c
AC_CHECK_DECLS([lockf])
AC_CHECK_FUNCS([lockf])

518 519 520 521 522 523
AC_CHECK_FUNCS(fgetpos, have_fgetpos=yes)

dnl SEEK_SET should be in stdio.h, but may be in unistd.h on SunOS 4.1.x
if test "$have_fgetpos" != yes ; then
    CHECK_HEADER_DEFINE(SEEK_SET, stdio.h,,
        CHECK_HEADER_DEFINE(SEEK_SET, unistd.h,,
524
            AC_DEFINE(SEEK_SET, 0, [Seek set 0])))
525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540
fi

AC_CHECK_FUNCS(mkstemp, have_mkstemp=yes)
if test "$have_mkstemp" != yes ; then
    AC_CHECK_FUNCS(chmod)
    if test "$tmpdir_specified" = yes ; then
        AC_MSG_RESULT(use of tmpnam overrides temporary directory selection)
    fi
else
    AC_MSG_CHECKING(directory to use for temporary files)
    if test -z "$enable_tmpdir" -o "$enable_tmpdir" = no -o "$enable_tmpdir" = yes ;
        then tmpdir=/tmp
        else tmpdir="$enable_tmpdir"
    fi
    if test -d $tmpdir ; then
        AC_MSG_RESULT($tmpdir)
541
        AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir", [Directory for temporary files])
542 543 544 545 546
    else
        AC_MSG_WARN($tmpdir does not exist)
    fi
fi

Naba Kumar's avatar
Naba Kumar committed
547 548 549 550 551 552 553 554 555 556 557
dnl -----------------------------
dnl Checks for FreeBSD Build
dnl -----------------------------
AC_MSG_CHECKING(if building on FreeBSD)

if test `uname -s` = "FreeBSD" ; then
        AC_MSG_RESULT(yes)
        FREEBSD_BUILD=-DFREEBSD
        AC_SUBST(FREEBSD_BUILD)
	AC_PATH_PROG(GMAKE, gmake, no)
	if test "x$GMAKE" = "xno"; then
558
		AC_MSG_ERROR(You need gmake installed to build Anjuta!)
Naba Kumar's avatar
Naba Kumar committed
559 560 561 562 563
	fi
else
        AC_MSG_RESULT(no)
	GMAKE="make"
fi
564

Naba Kumar's avatar
Naba Kumar committed
565
AC_SUBST(GMAKE)
566

567 568
dnl Checks for missing prototypes
dnl -----------------------------
569
AC_MSG_NOTICE([checking for missing prototypes...])
570

571
AC_DEFUN([CHECK_PROTO], [AC_EGREP_HEADER([[^A-Za-z0-9_]$1([   ]+[A-Za-z0-9_]*)?\(], $2,, AC_DEFINE(patsubst([NEED_PROTO_NAME], [NAME], translit($1, [a-z], [A-Z])),,[Do not know]) AC_MSG_RESULT(adding prototype for $1))])
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590

if test "$have_remove" = yes ; then
    CHECK_PROTO(remove, stdio.h)
else
    CHECK_PROTO(unlink, unistd.h)
fi
CHECK_PROTO(malloc, stdlib.h)
CHECK_PROTO(getenv, stdlib.h)
CHECK_PROTO(stat,   sys/stat.h)
CHECK_PROTO(lstat,  sys/stat.h)
if test "$have_fgetpos" = yes ; then
    CHECK_PROTO(fgetpos, stdio.h)
fi
if test "$have_truncate" = yes ; then
    CHECK_PROTO(truncate, unistd.h)
fi
if test "$have_ftruncate" = yes ; then
    CHECK_PROTO(ftruncate, unistd.h)
fi
Naba Kumar's avatar
Naba Kumar committed
591

Johannes Schmid's avatar
Johannes Schmid committed
592 593 594 595 596 597 598
dnl  **********************************************************
dnl  check if we have svn libraries to build subversion plugin
dnl  (stolen from kdevelop ;-)
dnl  **********************************************************

AC_MSG_CHECKING(for Subversion svn-config)
AC_ARG_WITH(subversion-dir,
599
		AS_HELP_STRING([--with-subversion-dir=DIR],[Where Subversion is installed ]),
Johannes Schmid's avatar
Johannes Schmid committed
600 601 602 603 604 605 606 607 608 609 610 611 612
		[
				SVNCONFIG="$withval/bin/svn-config"
		])

if test -z "$SVNCONFIG"; then
		_SVNCONFIG="`svn-config --prefix 2> /dev/null`"
		if test -n "$_SVNCONFIG"; then
				SVNCONFIG="$_SVNCONFIG/bin/svn-config"
		fi
fi

AC_SUBST(SVNCONFIG)
if test -x "$SVNCONFIG"; then
613
		SVNLD="`$SVNCONFIG --ldflags 2> /dev/null`"
614
		SVN_LIB="`$SVNCONFIG --libs --cflags 2> /dev/null` -lsvn_client-1 -lsvn_subr-1"
Johannes Schmid's avatar
Johannes Schmid committed
615
		dnl ugly hack for subversion svn-config problems in 0.14.x, to be removed when svn-config is fixed
616
		SVN_INCLUDE="`$SVNCONFIG --includes 2> /dev/null` -I$_SVNCONFIG/include/subversion-1/"
Johannes Schmid's avatar
Johannes Schmid committed
617 618 619
		AC_MSG_RESULT(yes)
else
		AC_MSG_RESULT(not found)
620

Johannes Schmid's avatar
Johannes Schmid committed
621 622 623 624 625 626 627 628 629 630 631 632 633 634 635
		dnl just a fallback to debian's config so that it works for me :)
		AC_ARG_WITH(svn-include,
								[[  --with-svn-include=DIR   Use the given path to the subversion headers.]],
								[
								if test "$withval" != "yes" -a "$withval" != ""; then
										SVN_INCLUDES=$withval
								fi
								])
		if test -z "$SVN_INCLUDES"; then
			SVN_INCLUDES="/usr/local/include /usr/include"
		fi
		AC_MSG_CHECKING([for Subversion headers])
		SVN_INCLUDE=""
		for VALUE in $SVN_INCLUDES ; do
				if test -f $VALUE/subversion-1/svn_types.h ; then
Naba Kumar's avatar
Naba Kumar committed
636 637 638 639
						SVN_INCLUDE=$VALUE/subversion-1
						break
				fi
				if test -f $VALUE/svn_types.h ; then
Johannes Schmid's avatar
Johannes Schmid committed
640 641 642 643 644 645 646 647 648
						SVN_INCLUDE=$VALUE
						break
				fi
		done
		if test $SVN_INCLUDE ; then
				AC_MSG_RESULT([found])
		else
				AC_MSG_RESULT([not found])
		fi
649
		SVN_LIBS="/usr/local/lib64 /usr/local/lib /usr/lib64 /usr/lib"
Johannes Schmid's avatar
Johannes Schmid committed
650 651 652 653 654 655 656 657 658 659
		AC_ARG_WITH(svn-lib,
						[[  --with-svn-lib=DIR  Use the given path to the subversion libraries.]],
						[
							if test "$withval" != "yes" -a "$withval" != ""; then
								SVN_LIBS=$withval
							fi
						])
		AC_MSG_CHECKING([for Subversion libraries])
		SVN_LIB=""
		for VALUE in $SVN_LIBS ; do
660
				if ls $VALUE/libsvn_client-1.* 1>/dev/null 2>&1; then
Johannes Schmid's avatar
Johannes Schmid committed
661 662 663 664 665 666 667 668 669 670 671
						SVN_LIB=$VALUE
						break
				fi
		done
		if test $SVN_LIB ; then
				AC_MSG_RESULT([found])
		else
				AC_MSG_RESULT([not found])
		fi
fi

672 673 674
dnl ******************************************************************
dnl Check for extra libs required by subversion.
dnl FIXME: This should actually be done by subversion and not by us.
675
dnl        See http://subversion.tigris.org/issues/show_bug.cgi?id=4435
676
dnl ******************************************************************
Johannes Schmid's avatar
Johannes Schmid committed
677

678
AC_ARG_ENABLE(plugin-subversion,
679
  AS_HELP_STRING([--disable-plugin-subversion],[Disable subversion support in Anjuta.]),
680 681 682 683 684
  [ if test "$enableval" = "no"; then
        user_disabled_subversion=1
    fi ],
  [ user_disabled_subversion=0 ] )

685 686 687 688 689 690 691 692 693 694 695 696 697 698
AC_ARG_ENABLE(neon,
	AS_HELP_STRING([--disable-neon],[Disable neon support in Subversion plugin]),
	[ if test "$enableval" = "no"; then
		user_disabled_neon=1
	  fi ],
	[ user_disabled_neon=0 ])

AC_ARG_ENABLE(serf,
	AS_HELP_STRING([--disable-serf],[Disable serf support in Subversion plugin]),
	[ if test "$enableval" = "no"; then
		user_disabled_serf=1
	  fi ],
	[ user_disabled_serf=0 ])

699 700 701 702 703 704 705 706 707 708 709 710 711
AC_MSG_CHECKING(if subversion support is disabled)
if test "$user_disabled_subversion" = 1; then
	AC_MSG_RESULT(yes)
	SVN_INCLUDE=""
	SVN_LIB=""
else
	AC_MSG_RESULT(no)
fi

if test -n "$SVN_INCLUDE" ; then
	dnl ------------------------------------
	dnl APR. Required by subversion (devel)
	dnl ------------------------------------
712 713 714 715 716
	have_atr=no
	PKG_CHECK_MODULES(APR,                            \
		apr-1, have_apr=yes, have_apr=no)
	if test x"$have_apr" = "xno"; then
		SVN_INCLUDE=""
717
	fi
718

719 720 721
	dnl -----------------------------------------
	dnl APR util. Required by subversion (devel)
	dnl------------------------------------------
722 723 724 725 726
	have_atr_util=no
	PKG_CHECK_MODULES(APR_UTILS,                            \
		apr-util-1, have_apr_util=yes, have_apr_util=no)
	if test x"$have_apr_util" = "xno"; then
		SVN_INCLUDE=""
727
	fi
728

729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747
	dnl ----------------------------------------------------------
	dnl NEON/SERF. Required by subversion (devel) for HTTP support
	dnl-----------------------------------------------------------
	# Subversion <= 1.7 relies on neon (recommended) or serf.
	# Subversion 1.8 dropped neon support and uses serf to talk
	# to HTTP servers.
	#
	# Subversion can be built without HTTP client support so neon and
	# serf aren't hard requirements. But if present on the system
	# it is reasonable to assume that Subversion is linked to them.
	if test "$user_disabled_neon" = 0; then
		have_neon=no
		PKG_CHECK_MODULES(NEON,                            \
			neon, have_neon=yes, have_neon=no)
	fi
	if test "$user_disabled_serf" = 0; then
		have_serf=no
		PKG_CHECK_MODULES(SERF,                            \
			serf-1, have_serf=yes, have_serf=no)
748
	fi
749

750 751 752
	dnl Make sure our SVN version is high enough
	dnl Eww, eww, eww, this is dirty
	AC_MSG_CHECKING([for subversion >= $SUBVERSION_REQUIRED])
753
	AC_LANG([C])
754 755 756 757 758 759 760 761 762 763 764 765
	dnl Temporarily set CFLAGS so that include dirs are found
	CFLAGS_TMP=$CFLAGS
	CFLAGS="-I$SVN_INCLUDE $APR_CFLAGS"
	AC_COMPILE_IFELSE(
		[AC_LANG_PROGRAM([[#include <svn_version.h>]],
			[[
				#if (SVN_VER_MAJOR < $SVN_MAJOR) || (SVN_VER_MINOR < $SVN_MINOR) || (SVN_VER_PATCH < $SVN_PATCH)
				#	error "Version too low"
				#endif
			]])], AC_MSG_RESULT(yes), have_svn_version=no)
	if test x"$have_svn_version" = "xno"; then
		AC_MSG_RESULT(no)
766 767
		SVN_INCLUDE=""
	fi
768
	CFLAGS=$CFLAGS_TMP
Johannes Schmid's avatar
Johannes Schmid committed
769 770
fi

771 772 773
dnl ------------------------------------------
dnl Finally prepare subversion build flags
dnl ------------------------------------------
Johannes Schmid's avatar
Johannes Schmid committed
774

775
if test -n "$SVN_INCLUDE" ; then
776
	SVN_INCLUDE="-I$SVN_INCLUDE"
777
	if test x != "x$SVN_LIB" ; then
778
	    SVN_LIB="-L$SVN_LIB $APR_LIBS $APR_UTILS_LIBS $NEON_LIBS $SERF_LIBS -lsvn_client-1 -lsvn_subr-1"
779
	else
780
	    SVN_LIB="$APR_LIBS $APR_UTILS_LIBS $NEON_LIBS $SERF_LIBS -lsvn_client-1 -lsvn_subr-1"
781
	fi
782
	SVN_CFLAGS="$APR_CFLAGS $APR_UTILS_CFLAGS $NEON_CFLAGS $SERF_CFLAGS"
783
fi
Johannes Schmid's avatar
Johannes Schmid committed
784

785
AM_CONDITIONAL(BUILD_SVN, [test -n "$SVN_INCLUDE"])
Johannes Schmid's avatar
Johannes Schmid committed
786 787 788 789
AC_SUBST(SVN_INCLUDE)
AC_SUBST(SVN_LIB)
AC_SUBST(SVN_CFLAGS)

790 791 792 793 794 795 796 797
dnl ------------------------------------------
dnl Symbol-db shared memory checks
dnl ------------------------------------------

SYMBOL_DB_SHM="/dev/shm"
user_specified_shm=0
AC_MSG_CHECKING(for symbol-db shared memory)
AC_ARG_WITH(symbol-db-shm,
798
		AS_HELP_STRING([--with-symbol-db-shm=DIR],[Where shared memory is placed ]),
799 800 801 802 803 804 805 806 807 808 809 810
		[
				user_specified_shm=1
				SYMBOL_DB_SHM="$withval"
		])
if test "$user_specified_shm" = 1; then
	AC_MSG_RESULT(yes)
else
	AC_MSG_RESULT(no)
fi

AC_SUBST(SYMBOL_DB_SHM)

811 812 813 814 815 816
dnl On Linux, need librt for shm_open/shm_unlink
bck_LIBS="$LIBS"
AC_SEARCH_LIBS(shm_open, rt, [SHM_LIBS="$LIBS"], [AC_MSG_ERROR([Failed to find library with shm_open()])])
AC_SUBST(SHM_LIBS)
LIBS="$bck_LIBS"

817 818 819 820 821
dnl Test using autotest
dnl -----------------------------
AC_CONFIG_TESTDIR(plugins/am-project/tests)
AM_MISSING_PROG([AUTOM4TE], [autom4te])

822
AC_CONFIG_FILES([
Stéphane Démurget's avatar
Stéphane Démurget committed
823 824
Makefile
po/Makefile.in
825
libanjuta/Makefile
826
libanjuta/tests/Makefile
827
libanjuta/interfaces/Makefile
828
libanjuta/libanjuta-3.0.pc
829
libanjuta/anjuta-version.h
Stéphane Démurget's avatar
Stéphane Démurget committed
830 831
src/Makefile
pixmaps/Makefile
832 833 834 835 836 837 838
pixmaps/hicolor/Makefile
pixmaps/hicolor/16x16/Makefile
pixmaps/hicolor/22x22/Makefile
pixmaps/hicolor/24x24/Makefile
pixmaps/hicolor/32x32/Makefile
pixmaps/hicolor/48x48/Makefile
pixmaps/hicolor/scalable/Makefile
839
pixmaps/hicolor/symbolic/Makefile
Stéphane Démurget's avatar
Stéphane Démurget committed
840
data/Makefile
841
data/welcome.txt
842
data/templates/Makefile
843
doc/anjuta.1
844
doc/anjuta-launcher.1
Stéphane Démurget's avatar
Stéphane Démurget committed
845
doc/Makefile
846
scripts/Makefile
Stéphane Démurget's avatar
Stéphane Démurget committed
847
launcher/Makefile
848
plugins/Makefile
849
plugins/class-gen/Makefile
850
plugins/class-gen/templates/Makefile
851
plugins/patch/Makefile
852
plugins/document-manager/Makefile
853
plugins/document-manager/images/Makefile
854
plugins/message-view/Makefile
855
plugins/gdb/Makefile
856
plugins/gdb/images/Makefile
Johannes Schmid's avatar
Johannes Schmid committed
857
plugins/debug-manager/Makefile
858
plugins/debug-manager/images/Makefile
859
plugins/devhelp/Makefile
860
plugins/devhelp/images/Makefile
861
plugins/glade/Makefile
862
plugins/glade/images/Makefile
Maxim Ermilov's avatar
Maxim Ermilov committed
863
plugins/js-debugger/Makefile
864
plugins/file-manager/Makefile
865
plugins/file-loader/Makefile
Naba Kumar's avatar
Naba Kumar committed
866
plugins/file-wizard/Makefile
867
plugins/build-basic-autotools/Makefile
Naba Kumar's avatar
Naba Kumar committed
868
plugins/project-manager/Makefile
869
plugins/symbol-db/benchmark/Makefile
870 871
plugins/symbol-db/benchmark/symbol-db/Makefile
plugins/symbol-db/benchmark/libgda/Makefile
872
plugins/symbol-db/benchmark/sqlite/Makefile
873
plugins/symbol-db/images/Makefile
874
plugins/symbol-db/Makefile
875
plugins/symbol-db/anjuta-tags/Makefile
876
plugins/project-wizard/Makefile
877
plugins/snippets-manager/Makefile
878
plugins/cvs-plugin/Makefile
879
plugins/subversion/Makefile
880
plugins/git/Makefile
881
plugins/git/images/Makefile
882
plugins/git/tests/Makefile
883
plugins/sourceview/Makefile
884
plugins/terminal/Makefile
885
plugins/tools/Makefile
Naba Kumar's avatar
Naba Kumar committed
886
plugins/tools/scripts/Makefile
887
plugins/language-manager/Makefile
Johannes Schmid's avatar
Johannes Schmid committed
888
plugins/project-import/Makefile
889
plugins/project-wizard/templates/Makefile
Naba Kumar's avatar
Naba Kumar committed
890 891 892
plugins/project-wizard/templates/mkfile/Makefile
plugins/project-wizard/templates/mkfile/src/Makefile
plugins/project-wizard/templates/mkfile/po/Makefile
893
plugins/project-wizard/templates/minimal/Makefile
Maxim Ermilov's avatar
Maxim Ermilov committed
894 895
plugins/project-wizard/templates/js_minimal/Makefile
plugins/project-wizard/templates/js_minimal/src/Makefile
896 897
plugins/project-wizard/templates/terminal/Makefile
plugins/project-wizard/templates/terminal/src/Makefile
898
plugins/project-wizard/templates/terminal/po/Makefile
899 900 901
plugins/project-wizard/templates/cpp/Makefile
plugins/project-wizard/templates/cpp/src/Makefile
plugins/project-wizard/templates/cpp/po/Makefile
902 903
plugins/project-wizard/templates/gtk/Makefile
plugins/project-wizard/templates/gtk/src/Makefile
Jean-Noel Guiheneuf's avatar
Jean-Noel Guiheneuf committed
904
plugins/project-wizard/templates/gtk/po/Makefile
905 906 907
plugins/project-wizard/templates/gtkapplication/Makefile
plugins/project-wizard/templates/gtkapplication/src/Makefile
plugins/project-wizard/templates/gtkapplication/po/Makefile
908 909
plugins/project-wizard/templates/anjuta-plugin/Makefile
plugins/project-wizard/templates/anjuta-plugin/src/Makefile
910
plugins/project-wizard/templates/anjuta-plugin/po/Makefile
911 912 913
plugins/project-wizard/templates/gtkmm/Makefile
plugins/project-wizard/templates/gtkmm/src/Makefile
plugins/project-wizard/templates/gtkmm/po/Makefile
914 915 916 917 918 919 920 921
plugins/project-wizard/templates/gcj/Makefile
plugins/project-wizard/templates/gcj/src/Makefile
plugins/project-wizard/templates/java/Makefile
plugins/project-wizard/templates/java/src/Makefile
plugins/project-wizard/templates/java/po/Makefile
plugins/project-wizard/templates/python/Makefile
plugins/project-wizard/templates/python/src/Makefile
plugins/project-wizard/templates/python/po/Makefile
922 923 924
plugins/project-wizard/templates/pygtk/Makefile
plugins/project-wizard/templates/pygtk/src/Makefile
plugins/project-wizard/templates/pygtk/po/Makefile
925 926
plugins/project-wizard/templates/vala-gtk/Makefile
plugins/project-wizard/templates/vala-gtk/src/Makefile
927 928 929 930 931 932 933 934 935
plugins/project-wizard/templates/wxwin/Makefile
plugins/project-wizard/templates/wxwin/src/Makefile
plugins/project-wizard/templates/wxwin/po/Makefile
plugins/project-wizard/templates/xlib/Makefile
plugins/project-wizard/templates/xlib/src/Makefile
plugins/project-wizard/templates/xlib/po/Makefile
plugins/project-wizard/templates/xlib-dock/Makefile
plugins/project-wizard/templates/xlib-dock/src/Makefile
plugins/project-wizard/templates/xlib-dock/po/Makefile
936 937 938
plugins/project-wizard/templates/sdl/Makefile
plugins/project-wizard/templates/sdl/src/Makefile
plugins/project-wizard/templates/sdl/po/Makefile
939 940 941
plugins/project-wizard/templates/library/Makefile
plugins/project-wizard/templates/library/src/Makefile
plugins/project-wizard/templates/library/po/Makefile
942
plugins/project-wizard/templates/directory/Makefile
943
plugins/project-wizard/templates/m4/Makefile
944 945
plugins/project-wizard/templates/gnome-shell-extension/Makefile
plugins/project-wizard/templates/gnome-shell-extension/src/Makefile
946 947 948
plugins/project-wizard/templates/vala-library/Makefile
plugins/project-wizard/templates/vala-library/src/Makefile
plugins/project-wizard/templates/vala-library/po/Makefile
949
plugins/am-project/Makefile
950 951
plugins/am-project/tests/atlocal
plugins/am-project/tests/Makefile
952
plugins/mk-project/Makefile
953
plugins/dir-project/Makefile
954
plugins/language-support-cpp-java/Makefile
955
plugins/run-program/Makefile
956
plugins/starter/Makefile
957 958
plugins/indentation-c-style/Makefile
plugins/indentation-python-style/Makefile
Maxim Ermilov's avatar
Maxim Ermilov committed
959
plugins/language-support-js/Makefile
960
plugins/language-support-vala/Makefile
961
plugins/language-support-python/Makefile
962 963
plugins/parser-cxx/Makefile
plugins/parser-cxx/cxxparser/Makefile
964
plugins/python-loader/Makefile
965
plugins/jhbuild/Makefile
966
plugins/quick-open/Makefile
967
anjuta.desktop.in
Naba Kumar's avatar
Naba Kumar committed
968
manuals/Makefile
969 970 971
manuals/reference/Makefile
manuals/reference/libanjuta/Makefile
manuals/reference/libanjuta/version.xml
972 973
manuals/anjuta-manual/Makefile
manuals/anjuta-faqs/Makefile
974
manuals/anjuta-build-tutorial/Makefile
Naba Kumar's avatar
Naba Kumar committed
975
mime/Makefile
Stéphane Démurget's avatar
Stéphane Démurget committed
976
])
977
AC_OUTPUT
978 979 980 981 982 983 984 985
echo " "
echo "-------------------------------------------------------------------"
echo "Conditionally built plugins:"
echo "-------------------------------------------------------------------"
if [ test -n "$SVN_INCLUDE" ]; then
        echo "Building subversion plugin: ............................YES"
else
        echo "Building subversion plugin: ............................NO"
986 987
		echo "        Requires apr (>= 0.9.4); http://subversion.org"
		echo "        Requires apr-util (>= 0.9.4); http://subversion.org"
James Liggett's avatar
James Liggett committed
988 989
		echo "        Requires neon (>= 0.28.2); http://subversion.org"
		echo "        Requires subversion (>= 1.5); http://subversion.org"
990 991
fi

992
if [ test x$gladeui_found = xyes ]; then
993 994 995
       echo "Building glade plugin: .................................YES"
else
       echo "Building glade plugin: .................................NO"
996
       echo "        Requires glade-3 (>= $GLADEUI_REQUIRED)"
997
fi
998

999 1000 1001 1002
if [ test x$devhelp_enabled = xyes ]; then
       echo "Building devhelp plugin: ...............................YES"
else
       echo "Building devhelp plugin: ...............................NO"
1003
       echo "        Requires libdevhelp-3.0 (>= $LIBDEVHELP_REQUIRED)"
1004
fi
1005 1006 1007 1008 1009

if [ test x$terminal_enabled = xyes ]; then
       echo "Building terminal plugin: ..............................YES"
else
       echo "Building terminal plugin: ..............................NO"
1010
       echo "        Requires vte-2.91 (>= $VTE_REQUIRED)"
1011 1012
fi

1013
if [ test x$enable_vala = xyes ]; then
1014
        echo "Building Vala support: .................................YES"
1015
else
1016 1017
        echo "Building Vala support: .................................NO"
        echo "        Requires libvala (>= $VALA_REQUIRED)"
1018
fi
1019 1020 1021 1022 1023 1024
if [ test x$have_python = xyes]; then
        echo "Building python plugin loaeder: ........................YES"
else
        echo "Building python plugin loaeder: ........................NO"
        echo "        Requires python"
fi
1025
echo "-------------------------------------------------------------------"
1026
echo "AM_CFLAGS = $AM_CFLAGS"
1027
echo "AM_CXXFLAGS = $AM_CXXFLAGS"