1 dnl Process this file with autoconf to produce a configure script.
5 AC_INIT([geanyvc], [0.3], [yurand2@gmail.com])
7 AM_INIT_AUTOMAKE([1.9 foreign])
9 AM_CONFIG_HEADER(config.h)
14 PKG_CHECK_MODULES(GEANY, [geany >= 0.14])
15 AC_SUBST(GEANY_CFLAGS)
18 dnl Check for GtkSpell support
19 AC_MSG_CHECKING([whether to use GtkSpell])
20 AC_ARG_ENABLE(gtkspell,
21 [ --disable-gtkspell Do not use GtkSpell in editor],
22 [ac_cv_enable_gtkspell=$enableval], [ac_cv_enable_gtkspell=yes])
23 if test "$ac_cv_enable_gtkspell" = yes; then
25 AC_MSG_CHECKING([whether GtkSpell is available])
26 if $PKG_CONFIG gtkspell-2.0 ; then
28 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags gtkspell-2.0`"
29 LIBS="$LIBS `$PKG_CONFIG --libs gtkspell-2.0`"
30 AC_DEFINE(USE_GTKSPELL, 1, Use GtkSpell in editor)
33 ac_cv_enable_gtkspell=no
40 AC_CONFIG_FILES([Makefile])
44 echo "----------------------------------------"
45 echo "Building with GtkSpell support : ${ac_cv_enable_gtkspell}"
47 echo "Configuration is done OK."