~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Osmo Antero
  • Date: 2019-03-02 21:05:03 UTC
  • Revision ID: osmoma@gmail.com-20190302210503-xx6k0p0v6movm6us
Fix problem with duplicate messages from media players.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
22
 
23
23
# Increment this whenever this file is changed.
24
 
#serial 1
 
24
#serial 2
25
25
 
26
26
dnl GLIB_GSETTINGS
27
27
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
30
30
 
31
31
AC_DEFUN([GLIB_GSETTINGS],
32
32
[
 
33
  dnl We can't use PKG_PREREQ because that needs 0.29.
 
34
  m4_ifndef([PKG_PROG_PKG_CONFIG],
 
35
            [pkg.m4 version 0.28 or later is required])
 
36
 
33
37
  m4_pattern_allow([AM_V_GEN])
34
38
  AC_ARG_ENABLE(schemas-compile,
35
39
                AS_HELP_STRING([--disable-schemas-compile],
42
46
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
43
47
  PKG_PROG_PKG_CONFIG([0.16])
44
48
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
45
 
  if test x$cross_compiling != xyes; then
46
 
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
47
 
  else
48
 
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
49
 
  fi
 
49
  AS_IF([test x$cross_compiling != xyes],
 
50
        [PKG_CHECK_VAR([GLIB_COMPILE_SCHEMAS], [gio-2.0], [glib_compile_schemas])],
 
51
        [AC_PATH_PROG([GLIB_COMPILE_SCHEMAS], [glib-compile-schemas])])
50
52
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
51
53
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
52
54
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])