Bullet proof it a bit
[gmpc-lyricwiki.git] / configure.ac
bloba48f3086cc7386db128b62e281f5b0dac032a3b1
1 AC_INIT([gmpc-lyricwiki], [0.18.95], [qball@sarine.nl])
2 m4_define([package_major_version], [0])
3 m4_define([package_minor_version], [18])
4 m4_define([package_micro_version], [95])
5 m4_define([package_version],[package_major_version.package_minor_version.package_micro_version])
7 AC_PREREQ(2.58)
8 AC_CONFIG_AUX_DIR([.])
9 AM_CONFIG_HEADER([config.h])
10 AM_INIT_AUTOMAKE
12 AC_DEFINE(PLUGIN_MAJOR_VERSION, package_major_version, ["Major version of plugin"])
13 AC_DEFINE(PLUGIN_MINOR_VERSION, package_minor_version, ["Minor version of plugin"])
14 AC_DEFINE(PLUGIN_MICRO_VERSION, package_micro_version, ["Micro version of plugin"])
17 # i18n support
18 dnl please keep them in alphabetical order
19 ALL_LINGUAS="bs de ru"
21 GETTEXT_PACKAGE=gmpc-lyricwiki
22 AC_SUBST(GETTEXT_PACKAGE)
23 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",[GMPC_LYRICWIKI gettext package])
24 AM_GLIB_GNU_GETTEXT
27 if test "x${prefix}" = "xNONE"; then
28         PACKAGE_PREFIX="${ac_default_prefix}"
29 else
30         PACKAGE_PREFIX="${prefix}"
32 AC_MSG_RESULT($PACKAGE_PREFIX)
33 PACKAGE_LOCALE_DIR="${PACKAGE_PREFIX}/${DATADIRNAME}/locale"
34 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR,"$PACKAGE_LOCALE_DIR",[The package's locale path for gettext])
37 AC_PROG_CC
38 AM_DISABLE_STATIC
39 AC_LIBTOOL_DLOPEN
40 AC_PROG_LIBTOOL
42 PKG_CHECK_MODULES([gmpclyricwiki],[     
43     glib-2.0 >= 2.16
44         gobject-2.0 >= 2.4
45         gtk+-2.0 >= 2.12
46         gmodule-2.0
47         libxml-2.0
48         gthread-2.0
49         libmpd >= 0.15.98
50         gmpc    >= 0.16.2
53 AC_SUBST(gmpclyricwiki_LIBS)
54 AC_SUBST(gmpclyricwiki_CFLAGS)
57 AC_OUTPUT([Makefile src/Makefile po/Makefile.in])