1 AC_INIT([gmpc-jamendo], [0.19.0], [qball@sarine.nl])
2 m4_define([package_major_version], [0])
3 m4_define([package_minor_version], [19])
4 m4_define([package_micro_version], [0])
5 m4_define([package_version],[package_major_version.package_minor_version.package_micro_version])
7 AM_CONFIG_HEADER([config.h])
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])
20 dnl please keep them in alphabetical order
23 GETTEXT_PACKAGE=gmpc-jamendo
24 AC_SUBST(GETTEXT_PACKAGE)
25 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",[GMPC_LAST.FM gettext package])
29 if test "x${prefix}" = "xNONE"; then
30 PACKAGE_PREFIX="${ac_default_prefix}"
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])
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"
48 AC_MSG_ERROR([Jamendo plugin requires zlib])
52 PKG_CHECK_MODULES([gmpcjamendo],
65 AC_SUBST(gmpcjamendo_LIBS)
66 AC_SUBST(gmpcjamendo_CFLAGS)
68 AC_SUBST(gmpcjamendo2_LIBS)
69 AC_SUBST(gmpcjamendo2_CFLAGS)
72 AC_OUTPUT([Makefile src/Makefile data/Makefile po/Makefile.in ])