1 AC_INIT([gmpc-alarm], [11.8.17], [qball@sarine.nl])
3 m4_define([package_major_version], [11])
4 m4_define([package_minor_version], [8])
5 m4_define([package_micro_version], [17])
6 m4_define([package_version],[package_major_version.package_minor_version.package_micro_version])
10 AM_CONFIG_HEADER([config.h])
13 AC_DEFINE(PLUGIN_MAJOR_VERSION, package_major_version, ["Major version of plugin"])
14 AC_DEFINE(PLUGIN_MINOR_VERSION, package_minor_version, ["Minor version of plugin"])
15 AC_DEFINE(PLUGIN_MICRO_VERSION, package_micro_version, ["Micro version of plugin"])
22 #intltool, libtool. Check for CC compiler
23 AC_PROG_INTLTOOL([0.21])
26 dnl please keep them in alphabetical order
27 ALL_LINGUAS="bg bs de en_CA es fi fr hu id it ja ml nb nl pl pt_BR ro ru sq sv tr zh_CN"
29 GETTEXT_PACKAGE=gmpc-alarm
30 AC_SUBST(GETTEXT_PACKAGE)
31 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",[GMPC_ALARM gettext package])
35 if test "x${prefix}" = "xNONE"; then
36 PACKAGE_PREFIX="${ac_default_prefix}"
38 PACKAGE_PREFIX="${prefix}"
40 AC_MSG_RESULT($PACKAGE_PREFIX)
41 PACKAGE_LOCALE_DIR="${PACKAGE_PREFIX}/${DATADIRNAME}/locale"
42 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR,"$PACKAGE_LOCALE_DIR",[The package's locale path for gettext])
45 PKG_CHECK_MODULES([gmpcalarm],
55 AC_SUBST(gmpcalarm_LIBS)
56 AC_SUBST(gmpcalarm_CFLAGS)
58 AC_OUTPUT([Makefile src/Makefile po/Makefile.in])