1 dnl Process this file with autoconf to produce a configure script.
4 AC_INIT(mstardict, 0.6, roman.moravcik@gmail.com)
5 AC_CONFIG_SRCDIR(src/mstardict.cpp)
7 dnl Don't include maintainer make-rules by default
10 AM_INIT_AUTOMAKE([dist-bzip2])
12 AM_CONFIG_HEADER(config.h)
22 dnl ================================================================
24 dnl ================================================================
25 IT_PROG_INTLTOOL([0.35])
26 AM_GNU_GETTEXT([external])
27 AM_GNU_GETTEXT_VERSION(0.14.1)
28 GETTEXT_PACKAGE=mstardict
29 AC_SUBST(GETTEXT_PACKAGE)
30 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
35 AC_CHECK_LIB(z,zlibVersion,LIBS="$LIBS -lz",[AC_MSG_ERROR([zlib not found])])
37 PKG_CHECK_MODULES(MSTARDICT, glib-2.0 >= 2.6.1 hildon-1 gconf-2.0 >= 2.6.2 libosso)
39 MSTARDICT_CFLAGS="-Wall $MSTARDICT_CFLAGS"
41 AC_SUBST(MSTARDICT_LIBS)
42 AC_SUBST(MSTARDICT_CFLAGS)
44 # check for libespeak (consider moving this to maemo5)
45 AC_CHECK_HEADERS(espeak/speak_lib.h, [
46 MSTARDICT_CFLAGS="$MSTARDICT_CFLAGS -DESPEAK"
47 MSTARDICT_LIBS="$MSTARDICT_LIBS -lespeak"
50 dnl fill cflags for libstardict
51 PKG_CHECK_MODULES(LIB_STARDICT, glib-2.0 >= 2.6.1 gtk+-2.0 >= 2.12 sigc++-2.0)
52 AC_SUBST(LIB_STARDICT_CFLAGS)
57 data/mstardict.desktop.in
62 stardict-plugins/Makefile
63 stardict-plugins/stardict-html-parsedata-plugin/Makefile
64 stardict-plugins/stardict-powerword-parsedata-plugin/Makefile
65 stardict-plugins/stardict-wiki-parsedata-plugin/Makefile
66 stardict-plugins/stardict-xdxf-parsedata-plugin/Makefile
71 Type \"make\" to compile.