1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT([geanydoc], [0.3], [yurand2@gmail.com])
4 AM_INIT_AUTOMAKE([1.9 foreign])
6 AM_CONFIG_HEADER(config.h)
12 LIBTOOL="$LIBTOOL --silent"
19 PKG_CHECK_MODULES(GEANY, [geany])
23 GEANY_VERSION=`$PKG_CONFIG --modversion geany`
24 GTK_VERSION=`$PKG_CONFIG --modversion gtk+-2.0`
28 GETTEXT_PACKAGE=geanydoc
29 AC_SUBST(GETTEXT_PACKAGE)
30 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
32 ALL_LINGUAS="`sed -e '/^#/d' $srcdir/po/LINGUAS`" # take all languages found in file po/LINGUAS
35 # workaround for intltool bug (http://bugzilla.gnome.org/show_bug.cgi?id=490845)
36 if test "x$MSGFMT" = "xno"; then
37 AC_MSG_ERROR([msgfmt not found. Please install the gettext package.])
40 # intltool hack to define install_sh on Debian/Ubuntu systems
41 if test "x$install_sh" = "x"; then
42 install_sh="`pwd`/install-sh"
46 # get the plugin installed at the correct location for Geany
47 # TODO find a way to NOT override --libdir command line option if given
48 libdir="`$PKG_CONFIG --variable=libdir geany`/geany"
51 PKG_CHECK_MODULES([CHECK], [check >= 0.9.4], [
52 AC_SUBST(CHECK_CFLAGS)
54 AM_CONDITIONAL(UNITTESTS, true)
56 AM_CONDITIONAL(UNITTESTS, false)
67 echo "----------------------------------------"
68 echo "Install geanydoc in : ${libdir}"
69 echo "Using Geany version : ${GEANY_VERSION}"
70 echo "Using GTK version : ${GTK_VERSION}"
72 echo "Configuration is done OK."