Modify version string to post-release version 11.8.17
[gmpc-jamendo.git] / configure.ac
blob00dd15b2b5526f118fff6a58e788242b6355a1fc
1 AC_INIT([gmpc-jamendo], [11.8.17], [qball@sarine.nl])
2 m4_define([package_major_version], [11])
3 m4_define([package_minor_version], [8])
4 m4_define([package_micro_version], [17])
5 m4_define([package_version],[package_major_version.package_minor_version.package_micro_version])
7 AM_CONFIG_HEADER([config.h])
8 AM_INIT_AUTOMAKE
10 AC_DEFINE(PLUGIN_MAJOR_VERSION, package_major_version, ["Major version of plugin"])
11 AC_DEFINE(PLUGIN_MINOR_VERSION, package_minor_version, ["Minor version of plugin"])
12 AC_DEFINE(PLUGIN_MICRO_VERSION, package_micro_version, ["Micro version of plugin"])
16 #intltool, libtool. Check for CC compiler
17 AC_PROG_INTLTOOL([0.21])
19 # i18n support
20 dnl please keep them in alphabetical order
21 ALL_LINGUAS=""
23 GETTEXT_PACKAGE=gmpc-jamendo
24 AC_SUBST(GETTEXT_PACKAGE)
25 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",[GMPC_LAST.FM gettext package])
26 AM_GLIB_GNU_GETTEXT
29 if test "x${prefix}" = "xNONE"; then
30         PACKAGE_PREFIX="${ac_default_prefix}"
31 else
32         PACKAGE_PREFIX="${prefix}"
34 AC_MSG_RESULT($PACKAGE_PREFIX)
35 PACKAGE_LOCALE_DIR="${PACKAGE_PREFIX}/${DATADIRNAME}/locale"
36 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR,"$PACKAGE_LOCALE_DIR",[The package's locale path for gettext])
38 AC_PROG_CC
39 AM_DISABLE_STATIC
40 AC_LIBTOOL_DLOPEN
41 AC_PROG_LIBTOOL
42 # test for zlib
43 zlib=0
44 AC_CHECK_LIB(z, inflate,zlib=1,zlib=0)
45 AM_CONDITIONAL(HAVE_ZLIB, test x$zlib = x1)
46 if test "x$zlib" != "x1"
47 then
48  AC_MSG_ERROR([Jamendo plugin requires zlib])
52 PKG_CHECK_MODULES([gmpcjamendo],
54         glib-2.0 >= 2.4
55         gobject-2.0 >= 2.4
56         gtk+-2.0 >= 2.4
57         gmodule-2.0
58         libmpd >= 0.15.98
59         gmpc > 0.20.2
60     libxml-2.0 >= 2.6
61     sqlite3
63 GOB2_CHECK([2.0.10])
64 AC_SUBST(gmpcjamendo_LIBS)
65 AC_SUBST(gmpcjamendo_CFLAGS)
67 AC_SUBST(gmpcjamendo2_LIBS)
68 AC_SUBST(gmpcjamendo2_CFLAGS)
71 AC_OUTPUT([Makefile src/Makefile data/Makefile po/Makefile.in ])