~ubuntu-branches/debian/sid/gsettings-desktop-schemas/sid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters, Emilio Pozuelo Monfort
  • Date: 2011-04-10 14:54:19 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110410145419-8zigxxugbzo16rft
Tags: 3.0.0-1
* New upstream release.

[ Emilio Pozuelo Monfort]
* debian/gsettings-desktop-schemas.install:
  + Ship the translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
17
 
[m4_warning([this file was generated for autoconf 2.67.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
17
[m4_warning([this file was generated for autoconf 2.68.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
21
 
22
 
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
23
 
# serial 1 (pkg-config-0.24)
24
 
25
 
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
26
 
#
27
 
# This program is free software; you can redistribute it and/or modify
28
 
# it under the terms of the GNU General Public License as published by
29
 
# the Free Software Foundation; either version 2 of the License, or
30
 
# (at your option) any later version.
31
 
#
32
 
# This program is distributed in the hope that it will be useful, but
33
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
34
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
35
 
# General Public License for more details.
36
 
#
37
 
# You should have received a copy of the GNU General Public License
38
 
# along with this program; if not, write to the Free Software
39
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
40
 
#
41
 
# As a special exception to the GNU General Public License, if you
42
 
# distribute this file as part of a program that contains a
43
 
# configuration script generated by Autoconf, you may include it under
44
 
# the same distribution terms that you use for the rest of that program.
45
 
 
46
 
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
47
 
# ----------------------------------
48
 
AC_DEFUN([PKG_PROG_PKG_CONFIG],
49
 
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
50
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
51
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
52
 
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
53
 
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
54
 
 
55
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
56
 
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
57
 
fi
58
 
if test -n "$PKG_CONFIG"; then
59
 
        _pkg_min_version=m4_default([$1], [0.9.0])
60
 
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
61
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
62
 
                AC_MSG_RESULT([yes])
63
 
        else
64
 
                AC_MSG_RESULT([no])
65
 
                PKG_CONFIG=""
66
 
        fi
67
 
fi[]dnl
68
 
])# PKG_PROG_PKG_CONFIG
69
 
 
70
 
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
71
 
#
72
 
# Check to see whether a particular set of modules exists.  Similar
73
 
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
74
 
#
75
 
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
76
 
# only at the first occurence in configure.ac, so if the first place
77
 
# it's called might be skipped (such as if it is within an "if", you
78
 
# have to call PKG_CHECK_EXISTS manually
79
 
# --------------------------------------------------------------
80
 
AC_DEFUN([PKG_CHECK_EXISTS],
81
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
82
 
if test -n "$PKG_CONFIG" && \
83
 
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
84
 
  m4_default([$2], [:])
85
 
m4_ifvaln([$3], [else
86
 
  $3])dnl
87
 
fi])
88
 
 
89
 
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
90
 
# ---------------------------------------------
91
 
m4_define([_PKG_CONFIG],
92
 
[if test -n "$$1"; then
93
 
    pkg_cv_[]$1="$$1"
94
 
 elif test -n "$PKG_CONFIG"; then
95
 
    PKG_CHECK_EXISTS([$3],
96
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
97
 
                     [pkg_failed=yes])
98
 
 else
99
 
    pkg_failed=untried
100
 
fi[]dnl
101
 
])# _PKG_CONFIG
102
 
 
103
 
# _PKG_SHORT_ERRORS_SUPPORTED
104
 
# -----------------------------
105
 
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
106
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
107
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
108
 
        _pkg_short_errors_supported=yes
109
 
else
110
 
        _pkg_short_errors_supported=no
111
 
fi[]dnl
112
 
])# _PKG_SHORT_ERRORS_SUPPORTED
113
 
 
114
 
 
115
 
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
116
 
# [ACTION-IF-NOT-FOUND])
117
 
#
118
 
#
119
 
# Note that if there is a possibility the first call to
120
 
# PKG_CHECK_MODULES might not happen, you should be sure to include an
121
 
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
122
 
#
123
 
#
124
 
# --------------------------------------------------------------
125
 
AC_DEFUN([PKG_CHECK_MODULES],
126
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
127
 
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
128
 
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
129
 
 
130
 
pkg_failed=no
131
 
AC_MSG_CHECKING([for $1])
132
 
 
133
 
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
134
 
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
135
 
 
136
 
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
137
 
and $1[]_LIBS to avoid the need to call pkg-config.
138
 
See the pkg-config man page for more details.])
139
 
 
140
 
if test $pkg_failed = yes; then
141
 
        AC_MSG_RESULT([no])
142
 
        _PKG_SHORT_ERRORS_SUPPORTED
143
 
        if test $_pkg_short_errors_supported = yes; then
144
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
145
 
        else 
146
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
147
 
        fi
148
 
        # Put the nasty error message in config.log where it belongs
149
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
150
 
 
151
 
        m4_default([$4], [AC_MSG_ERROR(
152
 
[Package requirements ($2) were not met:
153
 
 
154
 
$$1_PKG_ERRORS
155
 
 
156
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
157
 
installed software in a non-standard prefix.
158
 
 
159
 
_PKG_TEXT])[]dnl
160
 
        ])
161
 
elif test $pkg_failed = untried; then
162
 
        AC_MSG_RESULT([no])
163
 
        m4_default([$4], [AC_MSG_FAILURE(
164
 
[The pkg-config script could not be found or is too old.  Make sure it
165
 
is in your PATH or set the PKG_CONFIG environment variable to the full
166
 
path to pkg-config.
167
 
 
168
 
_PKG_TEXT
169
 
 
170
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
171
 
        ])
172
 
else
173
 
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
174
 
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
175
 
        AC_MSG_RESULT([yes])
176
 
        $3
177
 
fi[]dnl
178
 
])# PKG_CHECK_MODULES
179
 
 
180
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
181
23
#
182
24
# This file is free software; the Free Software Foundation
1174
1016
AC_SUBST([am__untar])
1175
1017
]) # _AM_PROG_TAR
1176
1018
 
 
1019
# nls.m4 serial 5 (gettext-0.18)
 
1020
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
1021
dnl Inc.
 
1022
dnl This file is free software; the Free Software Foundation
 
1023
dnl gives unlimited permission to copy and/or distribute it,
 
1024
dnl with or without modifications, as long as this notice is preserved.
 
1025
dnl
 
1026
dnl This file can can be used in projects which are not available under
 
1027
dnl the GNU General Public License or the GNU Library General Public
 
1028
dnl License but which still want to provide support for the GNU gettext
 
1029
dnl functionality.
 
1030
dnl Please note that the actual code of the GNU gettext library is covered
 
1031
dnl by the GNU Library General Public License, and the rest of the GNU
 
1032
dnl gettext package package is covered by the GNU General Public License.
 
1033
dnl They are *not* in the public domain.
 
1034
 
 
1035
dnl Authors:
 
1036
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
1037
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
1038
 
 
1039
AC_PREREQ([2.50])
 
1040
 
 
1041
AC_DEFUN([AM_NLS],
 
1042
[
 
1043
  AC_MSG_CHECKING([whether NLS is requested])
 
1044
  dnl Default is enabled NLS
 
1045
  AC_ARG_ENABLE([nls],
 
1046
    [  --disable-nls           do not use Native Language Support],
 
1047
    USE_NLS=$enableval, USE_NLS=yes)
 
1048
  AC_MSG_RESULT([$USE_NLS])
 
1049
  AC_SUBST([USE_NLS])
 
1050
])
 
1051
 
 
1052
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
1053
# serial 1 (pkg-config-0.24)
 
1054
 
1055
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
1056
#
 
1057
# This program is free software; you can redistribute it and/or modify
 
1058
# it under the terms of the GNU General Public License as published by
 
1059
# the Free Software Foundation; either version 2 of the License, or
 
1060
# (at your option) any later version.
 
1061
#
 
1062
# This program is distributed in the hope that it will be useful, but
 
1063
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
1064
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
1065
# General Public License for more details.
 
1066
#
 
1067
# You should have received a copy of the GNU General Public License
 
1068
# along with this program; if not, write to the Free Software
 
1069
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
1070
#
 
1071
# As a special exception to the GNU General Public License, if you
 
1072
# distribute this file as part of a program that contains a
 
1073
# configuration script generated by Autoconf, you may include it under
 
1074
# the same distribution terms that you use for the rest of that program.
 
1075
 
 
1076
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
1077
# ----------------------------------
 
1078
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
1079
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
1080
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
1081
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
1082
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
1083
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
1084
 
 
1085
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
1086
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
1087
fi
 
1088
if test -n "$PKG_CONFIG"; then
 
1089
        _pkg_min_version=m4_default([$1], [0.9.0])
 
1090
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
1091
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
1092
                AC_MSG_RESULT([yes])
 
1093
        else
 
1094
                AC_MSG_RESULT([no])
 
1095
                PKG_CONFIG=""
 
1096
        fi
 
1097
fi[]dnl
 
1098
])# PKG_PROG_PKG_CONFIG
 
1099
 
 
1100
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
1101
#
 
1102
# Check to see whether a particular set of modules exists.  Similar
 
1103
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
1104
#
 
1105
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
1106
# only at the first occurence in configure.ac, so if the first place
 
1107
# it's called might be skipped (such as if it is within an "if", you
 
1108
# have to call PKG_CHECK_EXISTS manually
 
1109
# --------------------------------------------------------------
 
1110
AC_DEFUN([PKG_CHECK_EXISTS],
 
1111
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1112
if test -n "$PKG_CONFIG" && \
 
1113
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
1114
  m4_default([$2], [:])
 
1115
m4_ifvaln([$3], [else
 
1116
  $3])dnl
 
1117
fi])
 
1118
 
 
1119
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
1120
# ---------------------------------------------
 
1121
m4_define([_PKG_CONFIG],
 
1122
[if test -n "$$1"; then
 
1123
    pkg_cv_[]$1="$$1"
 
1124
 elif test -n "$PKG_CONFIG"; then
 
1125
    PKG_CHECK_EXISTS([$3],
 
1126
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
1127
                     [pkg_failed=yes])
 
1128
 else
 
1129
    pkg_failed=untried
 
1130
fi[]dnl
 
1131
])# _PKG_CONFIG
 
1132
 
 
1133
# _PKG_SHORT_ERRORS_SUPPORTED
 
1134
# -----------------------------
 
1135
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
1136
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
1137
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
1138
        _pkg_short_errors_supported=yes
 
1139
else
 
1140
        _pkg_short_errors_supported=no
 
1141
fi[]dnl
 
1142
])# _PKG_SHORT_ERRORS_SUPPORTED
 
1143
 
 
1144
 
 
1145
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
1146
# [ACTION-IF-NOT-FOUND])
 
1147
#
 
1148
#
 
1149
# Note that if there is a possibility the first call to
 
1150
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
1151
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
1152
#
 
1153
#
 
1154
# --------------------------------------------------------------
 
1155
AC_DEFUN([PKG_CHECK_MODULES],
 
1156
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1157
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
1158
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
1159
 
 
1160
pkg_failed=no
 
1161
AC_MSG_CHECKING([for $1])
 
1162
 
 
1163
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
1164
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
1165
 
 
1166
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
1167
and $1[]_LIBS to avoid the need to call pkg-config.
 
1168
See the pkg-config man page for more details.])
 
1169
 
 
1170
if test $pkg_failed = yes; then
 
1171
        AC_MSG_RESULT([no])
 
1172
        _PKG_SHORT_ERRORS_SUPPORTED
 
1173
        if test $_pkg_short_errors_supported = yes; then
 
1174
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
1175
        else 
 
1176
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
1177
        fi
 
1178
        # Put the nasty error message in config.log where it belongs
 
1179
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
1180
 
 
1181
        m4_default([$4], [AC_MSG_ERROR(
 
1182
[Package requirements ($2) were not met:
 
1183
 
 
1184
$$1_PKG_ERRORS
 
1185
 
 
1186
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
1187
installed software in a non-standard prefix.
 
1188
 
 
1189
_PKG_TEXT])
 
1190
        ])
 
1191
elif test $pkg_failed = untried; then
 
1192
        AC_MSG_RESULT([no])
 
1193
        m4_default([$4], [AC_MSG_FAILURE(
 
1194
[The pkg-config script could not be found or is too old.  Make sure it
 
1195
is in your PATH or set the PKG_CONFIG environment variable to the full
 
1196
path to pkg-config.
 
1197
 
 
1198
_PKG_TEXT
 
1199
 
 
1200
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
1201
        ])
 
1202
else
 
1203
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
1204
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
1205
        AC_MSG_RESULT([yes])
 
1206
        $3
 
1207
fi[]dnl
 
1208
])# PKG_CHECK_MODULES
 
1209
 
1177
1210
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1178
1211
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
1179
1212
#
1691
1724
]
1692
1725
)
1693
1726
 
1694
 
# nls.m4 serial 5 (gettext-0.18)
1695
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
1696
 
dnl Inc.
1697
 
dnl This file is free software; the Free Software Foundation
1698
 
dnl gives unlimited permission to copy and/or distribute it,
1699
 
dnl with or without modifications, as long as this notice is preserved.
1700
 
dnl
1701
 
dnl This file can can be used in projects which are not available under
1702
 
dnl the GNU General Public License or the GNU Library General Public
1703
 
dnl License but which still want to provide support for the GNU gettext
1704
 
dnl functionality.
1705
 
dnl Please note that the actual code of the GNU gettext library is covered
1706
 
dnl by the GNU Library General Public License, and the rest of the GNU
1707
 
dnl gettext package package is covered by the GNU General Public License.
1708
 
dnl They are *not* in the public domain.
1709
 
 
1710
 
dnl Authors:
1711
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1712
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1713
 
 
1714
 
AC_PREREQ([2.50])
1715
 
 
1716
 
AC_DEFUN([AM_NLS],
1717
 
[
1718
 
  AC_MSG_CHECKING([whether NLS is requested])
1719
 
  dnl Default is enabled NLS
1720
 
  AC_ARG_ENABLE([nls],
1721
 
    [  --disable-nls           do not use Native Language Support],
1722
 
    USE_NLS=$enableval, USE_NLS=yes)
1723
 
  AC_MSG_RESULT([$USE_NLS])
1724
 
  AC_SUBST([USE_NLS])
1725
 
])
1726
 
 
1727
1727
m4_include([m4/intltool.m4])