Blob Blame History Raw

AC_INIT([gsound], [1.0.2],
        [http://bugzilla.gnome.org/enter_bug.cgi?product=gsound],
        [gsound], [https://wiki.gnome.org/Projects/GSound])
AX_IS_RELEASE([git-directory])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])

AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wno-portability no-dist-gzip dist-xz])
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE([enable])

AC_PROG_CC
AM_PROG_CC_C_O
AM_PROG_VALAC

AX_COMPILER_FLAGS

# Before making a release, the LT_VERSION string should be modified.
# The string is of the form C:R:A.
# - If interfaces have been changed or added, but binary compatibility has
#   been preserved, change to C+1:0:A+1
# - If binary compatibility has been broken (eg removed or changed interfaces)
#   change to C+1:0:0
# - If the interface is the same as the previous version, change to C:R+1:A

GSOUND_LT_VERSION=0:2:0
AC_SUBST(GSOUND_LT_VERSION)

LT_INIT

GOBJECT_REQUIRED=2.36.0

PKG_CHECK_MODULES(GSOUND,
[
    gobject-2.0 >= $GOBJECT_REQUIRED
    gio-2.0
    libcanberra
])
AC_SUBST(GSOUND_CFLAGS)
AC_SUBST(GSOUND_LIBS)

GTK_DOC_CHECK(1.20, [--flavour no-tmpl])

GOBJECT_INTROSPECTION_CHECK([1.2.9])

VALA_REQUIRED=0.17.2.12

VAPIGEN_CHECK($VALA_REQUIRED)

#if test "$enable_vala" != "no"; then
#	AC_PATH_PROG([VALAC], [valac], [])
#fi
#AM_CONDITIONAL(HAVE_VALAC, test "x$VALAC" != "x")


AC_OUTPUT([
Makefile
docs/Makefile
docs/version.xml
tools/Makefile
gsound/gsound.pc
gsound/Makefile
])