1 AC_INIT([gmpc-mserver], [0.17.0], [qball@sarine.nl])
2 m4_define([package_major_version], [0])
3 m4_define([package_minor_version], [17])
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])
11 AC_DEFINE(PLUGIN_MAJOR_VERSION, package_major_version, ["Major version of plugin"])
12 AC_DEFINE(PLUGIN_MINOR_VERSION, package_minor_version, ["Minor version of plugin"])
13 AC_DEFINE(PLUGIN_MICRO_VERSION, package_micro_version, ["Micro version of plugin"])
20 PKG_CHECK_MODULES([gmpcmserver],[ glib-2.0 >= 2.4
31 AC_SUBST(gmpcmserver_LIBS)
32 AC_SUBST(gmpcmserver_CFLAGS)
33 AC_CHECK_HEADERS(microhttpd.h,,AC_MSG_ERROR([Unable to find microhttpd header files]))
34 AC_CHECK_LIB([microhttpd], [MHD_start_daemon],,AC_MSG_ERROR([Unable to link with libmicrohttpd]))
36 AC_OUTPUT([Makefile src/Makefile])