summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac33
1 files changed, 29 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index e004f47..4925691 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,9 +1,27 @@
+dnl Process this file with autoconf to produce a configure script.
+
AC_PREREQ([2.60])
+m4_define(libmatemixer_major_version, 1)
+m4_define(libmatemixer_minor_version, 9)
+m4_define(libmatemixer_micro_version, 0)
+m4_define(libmatemixer_interface_age, 0)
+m4_define(libmatemixer_version,
+ [libmatemixer_major_version.libmatemixer_minor_version.libmatemixer_micro_version])
+
AC_INIT([libmatemixer],
- [1.9.0],
+ [libmatemixer_version],
[http://www.mate-desktop.org])
+AC_DEFINE(LIBMATEMIXER_MAJOR_VERSION, libmatemixer_major_version, [Libmatemixer major version])
+AC_DEFINE(LIBMATEMIXER_MINOR_VERSION, libmatemixer_minor_version, [Libmatemixer minor version])
+AC_DEFINE(LIBMATEMIXER_MICRO_VERSION, libmatemixer_micro_version, [Libmatemixer micro version])
+
+AC_SUBST(LIBMATEMIXER_MAJOR_VERSION, libmatemixer_major_version)
+AC_SUBST(LIBMATEMIXER_MINOR_VERSION, libmatemixer_minor_version)
+AC_SUBST(LIBMATEMIXER_MICRO_VERSION, libmatemixer_micro_version)
+AC_SUBST(LIBMATEMIXER_VERSION, libmatemixer_version)
+
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
@@ -23,7 +41,7 @@ AC_PROG_INSTALL
# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([sys/types.h unistd.h])
+AC_CHECK_HEADERS([string.h sys/types.h unistd.h])
# =======================================================================
# Libtool
@@ -53,10 +71,12 @@ PKG_CHECK_MODULES(GLIB, [
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
+GTK_DOC_CHECK([1.10], [--flavour no-tmpl])
+
# =======================================================================
# Check for backend module support
# =======================================================================
-PA_REQUIRED_VERSION=0.9.16
+PA_REQUIRED_VERSION=0.9.23
AC_ARG_ENABLE([pulseaudio],
AS_HELP_STRING([--enable-pulseaudio],
@@ -65,7 +85,8 @@ AC_ARG_ENABLE([pulseaudio],
if test "x$enable_pulseaudio" != "xno"; then
PKG_CHECK_MODULES(PULSEAUDIO,
- libpulse >= $PA_REQUIRED_VERSION,
+ libpulse >= $PA_REQUIRED_VERSION
+ libpulse-mainloop-glib >= $PA_REQUIRED_VERSION,
have_pulseaudio=yes,
have_pulseaudio=no)
@@ -133,12 +154,16 @@ AC_SUBST(CFLAGS)
AC_CONFIG_FILES([
Makefile
libmatemixer/Makefile
+libmatemixer/matemixer-version.h
backends/Makefile
backends/null/Makefile
backends/pulse/Makefile
data/Makefile
data/libmatemixer.pc
docs/Makefile
+docs/reference/Makefile
+docs/reference/version.xml
+examples/Makefile
])
AC_OUTPUT