Merge lp:~rodrigo-moya/ubuntu/natty/gsettings-desktop-schemas/0_1_1_release into lp:ubuntu/natty/gsettings-desktop-schemas
- Natty (11.04)
- 0_1_1_release
- Merge into natty
Proposed by
Rodrigo Moya
Status: | Merged |
---|---|
Approved by: | Sebastien Bacher |
Approved revision: | 3 |
Merge reported by: | Rodrigo Moya |
Merged at revision: | not available |
Proposed branch: | lp:~rodrigo-moya/ubuntu/natty/gsettings-desktop-schemas/0_1_1_release |
Merge into: | lp:ubuntu/natty/gsettings-desktop-schemas |
Diff against target: |
1497 lines (+598/-566) 7 files modified
NEWS (+5/-0) aclocal.m4 (+521/-519) configure (+52/-44) configure.ac (+1/-1) debian/changelog (+7/-0) schemas/gsettings-desktop-schemas.convert (+3/-1) schemas/org.gnome.desktop.interface.gschema.xml (+9/-1) |
To merge this branch: | bzr merge lp:~rodrigo-moya/ubuntu/natty/gsettings-desktop-schemas/0_1_1_release |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sebastien Bacher | Approve | ||
Review via email: mp+41075@code.launchpad.net |
Commit message
Description of the change
Upstream 0.1.1 release
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'NEWS' | |||
2 | --- NEWS 2010-11-05 17:22:35 +0000 | |||
3 | +++ NEWS 2010-11-17 17:44:38 +0000 | |||
4 | @@ -1,3 +1,8 @@ | |||
5 | 1 | Major changes in 0.1.1 | ||
6 | 2 | ====================== | ||
7 | 3 | |||
8 | 4 | * Misc. schema updates | ||
9 | 5 | |||
10 | 1 | Major changes in 0.1.0 | 6 | Major changes in 0.1.0 |
11 | 2 | ====================== | 7 | ====================== |
12 | 3 | 8 | ||
13 | 4 | 9 | ||
14 | === modified file 'aclocal.m4' | |||
15 | --- aclocal.m4 2010-11-05 17:22:35 +0000 | |||
16 | +++ aclocal.m4 2010-11-17 17:44:38 +0000 | |||
17 | @@ -13,527 +13,12 @@ | |||
18 | 13 | 13 | ||
19 | 14 | m4_ifndef([AC_AUTOCONF_VERSION], | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
20 | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
23 | 16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],, | 16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],, |
24 | 17 | [m4_warning([this file was generated for autoconf 2.66. | 17 | [m4_warning([this file was generated for autoconf 2.67. |
25 | 18 | You have another version of autoconf. It may work, but is not guaranteed to. | 18 | You have another version of autoconf. It may work, but is not guaranteed to. |
26 | 19 | If you have problems, you may need to regenerate the build system entirely. | 19 | If you have problems, you may need to regenerate the build system entirely. |
27 | 20 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) | 20 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
28 | 21 | 21 | ||
29 | 22 | # Copyright (C) 1995-2002 Free Software Foundation, Inc. | ||
30 | 23 | # Copyright (C) 2001-2003,2004 Red Hat, Inc. | ||
31 | 24 | # | ||
32 | 25 | # This file is free software, distributed under the terms of the GNU | ||
33 | 26 | # General Public License. As a special exception to the GNU General | ||
34 | 27 | # Public License, this file may be distributed as part of a program | ||
35 | 28 | # that contains a configuration script generated by Autoconf, under | ||
36 | 29 | # the same distribution terms as the rest of that program. | ||
37 | 30 | # | ||
38 | 31 | # This file can be copied and used freely without restrictions. It can | ||
39 | 32 | # be used in projects which are not available under the GNU Public License | ||
40 | 33 | # but which still want to provide support for the GNU gettext functionality. | ||
41 | 34 | # | ||
42 | 35 | # Macro to add for using GNU gettext. | ||
43 | 36 | # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 | ||
44 | 37 | # | ||
45 | 38 | # Modified to never use included libintl. | ||
46 | 39 | # Owen Taylor <otaylor@redhat.com>, 12/15/1998 | ||
47 | 40 | # | ||
48 | 41 | # Major rework to remove unused code | ||
49 | 42 | # Owen Taylor <otaylor@redhat.com>, 12/11/2002 | ||
50 | 43 | # | ||
51 | 44 | # Added better handling of ALL_LINGUAS from GNU gettext version | ||
52 | 45 | # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 | ||
53 | 46 | # | ||
54 | 47 | # Modified to require ngettext | ||
55 | 48 | # Matthias Clasen <mclasen@redhat.com> 08/06/2004 | ||
56 | 49 | # | ||
57 | 50 | # We need this here as well, since someone might use autoconf-2.5x | ||
58 | 51 | # to configure GLib then an older version to configure a package | ||
59 | 52 | # using AM_GLIB_GNU_GETTEXT | ||
60 | 53 | AC_PREREQ(2.53) | ||
61 | 54 | |||
62 | 55 | dnl | ||
63 | 56 | dnl We go to great lengths to make sure that aclocal won't | ||
64 | 57 | dnl try to pull in the installed version of these macros | ||
65 | 58 | dnl when running aclocal in the glib directory. | ||
66 | 59 | dnl | ||
67 | 60 | m4_copy([AC_DEFUN],[glib_DEFUN]) | ||
68 | 61 | m4_copy([AC_REQUIRE],[glib_REQUIRE]) | ||
69 | 62 | dnl | ||
70 | 63 | dnl At the end, if we're not within glib, we'll define the public | ||
71 | 64 | dnl definitions in terms of our private definitions. | ||
72 | 65 | dnl | ||
73 | 66 | |||
74 | 67 | # GLIB_LC_MESSAGES | ||
75 | 68 | #-------------------- | ||
76 | 69 | glib_DEFUN([GLIB_LC_MESSAGES], | ||
77 | 70 | [AC_CHECK_HEADERS([locale.h]) | ||
78 | 71 | if test $ac_cv_header_locale_h = yes; then | ||
79 | 72 | AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, | ||
80 | 73 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], | ||
81 | 74 | am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) | ||
82 | 75 | if test $am_cv_val_LC_MESSAGES = yes; then | ||
83 | 76 | AC_DEFINE(HAVE_LC_MESSAGES, 1, | ||
84 | 77 | [Define if your <locale.h> file defines LC_MESSAGES.]) | ||
85 | 78 | fi | ||
86 | 79 | fi]) | ||
87 | 80 | |||
88 | 81 | # GLIB_PATH_PROG_WITH_TEST | ||
89 | 82 | #---------------------------- | ||
90 | 83 | dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, | ||
91 | 84 | dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) | ||
92 | 85 | glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], | ||
93 | 86 | [# Extract the first word of "$2", so it can be a program name with args. | ||
94 | 87 | set dummy $2; ac_word=[$]2 | ||
95 | 88 | AC_MSG_CHECKING([for $ac_word]) | ||
96 | 89 | AC_CACHE_VAL(ac_cv_path_$1, | ||
97 | 90 | [case "[$]$1" in | ||
98 | 91 | /*) | ||
99 | 92 | ac_cv_path_$1="[$]$1" # Let the user override the test with a path. | ||
100 | 93 | ;; | ||
101 | 94 | *) | ||
102 | 95 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | ||
103 | 96 | for ac_dir in ifelse([$5], , $PATH, [$5]); do | ||
104 | 97 | test -z "$ac_dir" && ac_dir=. | ||
105 | 98 | if test -f $ac_dir/$ac_word; then | ||
106 | 99 | if [$3]; then | ||
107 | 100 | ac_cv_path_$1="$ac_dir/$ac_word" | ||
108 | 101 | break | ||
109 | 102 | fi | ||
110 | 103 | fi | ||
111 | 104 | done | ||
112 | 105 | IFS="$ac_save_ifs" | ||
113 | 106 | dnl If no 4th arg is given, leave the cache variable unset, | ||
114 | 107 | dnl so AC_PATH_PROGS will keep looking. | ||
115 | 108 | ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" | ||
116 | 109 | ])dnl | ||
117 | 110 | ;; | ||
118 | 111 | esac])dnl | ||
119 | 112 | $1="$ac_cv_path_$1" | ||
120 | 113 | if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then | ||
121 | 114 | AC_MSG_RESULT([$]$1) | ||
122 | 115 | else | ||
123 | 116 | AC_MSG_RESULT(no) | ||
124 | 117 | fi | ||
125 | 118 | AC_SUBST($1)dnl | ||
126 | 119 | ]) | ||
127 | 120 | |||
128 | 121 | # GLIB_WITH_NLS | ||
129 | 122 | #----------------- | ||
130 | 123 | glib_DEFUN([GLIB_WITH_NLS], | ||
131 | 124 | dnl NLS is obligatory | ||
132 | 125 | [USE_NLS=yes | ||
133 | 126 | AC_SUBST(USE_NLS) | ||
134 | 127 | |||
135 | 128 | gt_cv_have_gettext=no | ||
136 | 129 | |||
137 | 130 | CATOBJEXT=NONE | ||
138 | 131 | XGETTEXT=: | ||
139 | 132 | INTLLIBS= | ||
140 | 133 | |||
141 | 134 | AC_CHECK_HEADER(libintl.h, | ||
142 | 135 | [gt_cv_func_dgettext_libintl="no" | ||
143 | 136 | libintl_extra_libs="" | ||
144 | 137 | |||
145 | 138 | # | ||
146 | 139 | # First check in libc | ||
147 | 140 | # | ||
148 | 141 | AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, | ||
149 | 142 | [AC_TRY_LINK([ | ||
150 | 143 | #include <libintl.h> | ||
151 | 144 | ], | ||
152 | 145 | [return !ngettext ("","", 1)], | ||
153 | 146 | gt_cv_func_ngettext_libc=yes, | ||
154 | 147 | gt_cv_func_ngettext_libc=no) | ||
155 | 148 | ]) | ||
156 | 149 | |||
157 | 150 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
158 | 151 | AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, | ||
159 | 152 | [AC_TRY_LINK([ | ||
160 | 153 | #include <libintl.h> | ||
161 | 154 | ], | ||
162 | 155 | [return !dgettext ("","")], | ||
163 | 156 | gt_cv_func_dgettext_libc=yes, | ||
164 | 157 | gt_cv_func_dgettext_libc=no) | ||
165 | 158 | ]) | ||
166 | 159 | fi | ||
167 | 160 | |||
168 | 161 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
169 | 162 | AC_CHECK_FUNCS(bind_textdomain_codeset) | ||
170 | 163 | fi | ||
171 | 164 | |||
172 | 165 | # | ||
173 | 166 | # If we don't have everything we want, check in libintl | ||
174 | 167 | # | ||
175 | 168 | if test "$gt_cv_func_dgettext_libc" != "yes" \ | ||
176 | 169 | || test "$gt_cv_func_ngettext_libc" != "yes" \ | ||
177 | 170 | || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then | ||
178 | 171 | |||
179 | 172 | AC_CHECK_LIB(intl, bindtextdomain, | ||
180 | 173 | [AC_CHECK_LIB(intl, ngettext, | ||
181 | 174 | [AC_CHECK_LIB(intl, dgettext, | ||
182 | 175 | gt_cv_func_dgettext_libintl=yes)])]) | ||
183 | 176 | |||
184 | 177 | if test "$gt_cv_func_dgettext_libintl" != "yes" ; then | ||
185 | 178 | AC_MSG_CHECKING([if -liconv is needed to use gettext]) | ||
186 | 179 | AC_MSG_RESULT([]) | ||
187 | 180 | AC_CHECK_LIB(intl, ngettext, | ||
188 | 181 | [AC_CHECK_LIB(intl, dcgettext, | ||
189 | 182 | [gt_cv_func_dgettext_libintl=yes | ||
190 | 183 | libintl_extra_libs=-liconv], | ||
191 | 184 | :,-liconv)], | ||
192 | 185 | :,-liconv) | ||
193 | 186 | fi | ||
194 | 187 | |||
195 | 188 | # | ||
196 | 189 | # If we found libintl, then check in it for bind_textdomain_codeset(); | ||
197 | 190 | # we'll prefer libc if neither have bind_textdomain_codeset(), | ||
198 | 191 | # and both have dgettext and ngettext | ||
199 | 192 | # | ||
200 | 193 | if test "$gt_cv_func_dgettext_libintl" = "yes" ; then | ||
201 | 194 | glib_save_LIBS="$LIBS" | ||
202 | 195 | LIBS="$LIBS -lintl $libintl_extra_libs" | ||
203 | 196 | unset ac_cv_func_bind_textdomain_codeset | ||
204 | 197 | AC_CHECK_FUNCS(bind_textdomain_codeset) | ||
205 | 198 | LIBS="$glib_save_LIBS" | ||
206 | 199 | |||
207 | 200 | if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then | ||
208 | 201 | gt_cv_func_dgettext_libc=no | ||
209 | 202 | else | ||
210 | 203 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
211 | 204 | && test "$gt_cv_func_ngettext_libc" = "yes"; then | ||
212 | 205 | gt_cv_func_dgettext_libintl=no | ||
213 | 206 | fi | ||
214 | 207 | fi | ||
215 | 208 | fi | ||
216 | 209 | fi | ||
217 | 210 | |||
218 | 211 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
219 | 212 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
220 | 213 | gt_cv_have_gettext=yes | ||
221 | 214 | fi | ||
222 | 215 | |||
223 | 216 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
224 | 217 | INTLLIBS="-lintl $libintl_extra_libs" | ||
225 | 218 | fi | ||
226 | 219 | |||
227 | 220 | if test "$gt_cv_have_gettext" = "yes"; then | ||
228 | 221 | AC_DEFINE(HAVE_GETTEXT,1, | ||
229 | 222 | [Define if the GNU gettext() function is already present or preinstalled.]) | ||
230 | 223 | GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | ||
231 | 224 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl | ||
232 | 225 | if test "$MSGFMT" != "no"; then | ||
233 | 226 | glib_save_LIBS="$LIBS" | ||
234 | 227 | LIBS="$LIBS $INTLLIBS" | ||
235 | 228 | AC_CHECK_FUNCS(dcgettext) | ||
236 | 229 | MSGFMT_OPTS= | ||
237 | 230 | AC_MSG_CHECKING([if msgfmt accepts -c]) | ||
238 | 231 | GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ | ||
239 | 232 | msgid "" | ||
240 | 233 | msgstr "" | ||
241 | 234 | "Content-Type: text/plain; charset=UTF-8\n" | ||
242 | 235 | "Project-Id-Version: test 1.0\n" | ||
243 | 236 | "PO-Revision-Date: 2007-02-15 12:01+0100\n" | ||
244 | 237 | "Last-Translator: test <foo@bar.xx>\n" | ||
245 | 238 | "Language-Team: C <LL@li.org>\n" | ||
246 | 239 | "MIME-Version: 1.0\n" | ||
247 | 240 | "Content-Transfer-Encoding: 8bit\n" | ||
248 | 241 | ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) | ||
249 | 242 | AC_SUBST(MSGFMT_OPTS) | ||
250 | 243 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | ||
251 | 244 | GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, | ||
252 | 245 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) | ||
253 | 246 | AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; | ||
254 | 247 | return _nl_msg_cat_cntr], | ||
255 | 248 | [CATOBJEXT=.gmo | ||
256 | 249 | DATADIRNAME=share], | ||
257 | 250 | [case $host in | ||
258 | 251 | *-*-solaris*) | ||
259 | 252 | dnl On Solaris, if bind_textdomain_codeset is in libc, | ||
260 | 253 | dnl GNU format message catalog is always supported, | ||
261 | 254 | dnl since both are added to the libc all together. | ||
262 | 255 | dnl Hence, we'd like to go with DATADIRNAME=share and | ||
263 | 256 | dnl and CATOBJEXT=.gmo in this case. | ||
264 | 257 | AC_CHECK_FUNC(bind_textdomain_codeset, | ||
265 | 258 | [CATOBJEXT=.gmo | ||
266 | 259 | DATADIRNAME=share], | ||
267 | 260 | [CATOBJEXT=.mo | ||
268 | 261 | DATADIRNAME=lib]) | ||
269 | 262 | ;; | ||
270 | 263 | *) | ||
271 | 264 | CATOBJEXT=.mo | ||
272 | 265 | DATADIRNAME=lib | ||
273 | 266 | ;; | ||
274 | 267 | esac]) | ||
275 | 268 | LIBS="$glib_save_LIBS" | ||
276 | 269 | INSTOBJEXT=.mo | ||
277 | 270 | else | ||
278 | 271 | gt_cv_have_gettext=no | ||
279 | 272 | fi | ||
280 | 273 | fi | ||
281 | 274 | ]) | ||
282 | 275 | |||
283 | 276 | if test "$gt_cv_have_gettext" = "yes" ; then | ||
284 | 277 | AC_DEFINE(ENABLE_NLS, 1, | ||
285 | 278 | [always defined to indicate that i18n is enabled]) | ||
286 | 279 | fi | ||
287 | 280 | |||
288 | 281 | dnl Test whether we really found GNU xgettext. | ||
289 | 282 | if test "$XGETTEXT" != ":"; then | ||
290 | 283 | dnl If it is not GNU xgettext we define it as : so that the | ||
291 | 284 | dnl Makefiles still can work. | ||
292 | 285 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | ||
293 | 286 | : ; | ||
294 | 287 | else | ||
295 | 288 | AC_MSG_RESULT( | ||
296 | 289 | [found xgettext program is not GNU xgettext; ignore it]) | ||
297 | 290 | XGETTEXT=":" | ||
298 | 291 | fi | ||
299 | 292 | fi | ||
300 | 293 | |||
301 | 294 | # We need to process the po/ directory. | ||
302 | 295 | POSUB=po | ||
303 | 296 | |||
304 | 297 | AC_OUTPUT_COMMANDS( | ||
305 | 298 | [case "$CONFIG_FILES" in *po/Makefile.in*) | ||
306 | 299 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | ||
307 | 300 | esac]) | ||
308 | 301 | |||
309 | 302 | dnl These rules are solely for the distribution goal. While doing this | ||
310 | 303 | dnl we only have to keep exactly one list of the available catalogs | ||
311 | 304 | dnl in configure.ac. | ||
312 | 305 | for lang in $ALL_LINGUAS; do | ||
313 | 306 | GMOFILES="$GMOFILES $lang.gmo" | ||
314 | 307 | POFILES="$POFILES $lang.po" | ||
315 | 308 | done | ||
316 | 309 | |||
317 | 310 | dnl Make all variables we use known to autoconf. | ||
318 | 311 | AC_SUBST(CATALOGS) | ||
319 | 312 | AC_SUBST(CATOBJEXT) | ||
320 | 313 | AC_SUBST(DATADIRNAME) | ||
321 | 314 | AC_SUBST(GMOFILES) | ||
322 | 315 | AC_SUBST(INSTOBJEXT) | ||
323 | 316 | AC_SUBST(INTLLIBS) | ||
324 | 317 | AC_SUBST(PO_IN_DATADIR_TRUE) | ||
325 | 318 | AC_SUBST(PO_IN_DATADIR_FALSE) | ||
326 | 319 | AC_SUBST(POFILES) | ||
327 | 320 | AC_SUBST(POSUB) | ||
328 | 321 | ]) | ||
329 | 322 | |||
330 | 323 | # AM_GLIB_GNU_GETTEXT | ||
331 | 324 | # ------------------- | ||
332 | 325 | # Do checks necessary for use of gettext. If a suitable implementation | ||
333 | 326 | # of gettext is found in either in libintl or in the C library, | ||
334 | 327 | # it will set INTLLIBS to the libraries needed for use of gettext | ||
335 | 328 | # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable | ||
336 | 329 | # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() | ||
337 | 330 | # on various variables needed by the Makefile.in.in installed by | ||
338 | 331 | # glib-gettextize. | ||
339 | 332 | dnl | ||
340 | 333 | glib_DEFUN([GLIB_GNU_GETTEXT], | ||
341 | 334 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
342 | 335 | AC_REQUIRE([AC_HEADER_STDC])dnl | ||
343 | 336 | |||
344 | 337 | GLIB_LC_MESSAGES | ||
345 | 338 | GLIB_WITH_NLS | ||
346 | 339 | |||
347 | 340 | if test "$gt_cv_have_gettext" = "yes"; then | ||
348 | 341 | if test "x$ALL_LINGUAS" = "x"; then | ||
349 | 342 | LINGUAS= | ||
350 | 343 | else | ||
351 | 344 | AC_MSG_CHECKING(for catalogs to be installed) | ||
352 | 345 | NEW_LINGUAS= | ||
353 | 346 | for presentlang in $ALL_LINGUAS; do | ||
354 | 347 | useit=no | ||
355 | 348 | if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then | ||
356 | 349 | desiredlanguages="$LINGUAS" | ||
357 | 350 | else | ||
358 | 351 | desiredlanguages="$ALL_LINGUAS" | ||
359 | 352 | fi | ||
360 | 353 | for desiredlang in $desiredlanguages; do | ||
361 | 354 | # Use the presentlang catalog if desiredlang is | ||
362 | 355 | # a. equal to presentlang, or | ||
363 | 356 | # b. a variant of presentlang (because in this case, | ||
364 | 357 | # presentlang can be used as a fallback for messages | ||
365 | 358 | # which are not translated in the desiredlang catalog). | ||
366 | 359 | case "$desiredlang" in | ||
367 | 360 | "$presentlang"*) useit=yes;; | ||
368 | 361 | esac | ||
369 | 362 | done | ||
370 | 363 | if test $useit = yes; then | ||
371 | 364 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | ||
372 | 365 | fi | ||
373 | 366 | done | ||
374 | 367 | LINGUAS=$NEW_LINGUAS | ||
375 | 368 | AC_MSG_RESULT($LINGUAS) | ||
376 | 369 | fi | ||
377 | 370 | |||
378 | 371 | dnl Construct list of names of catalog files to be constructed. | ||
379 | 372 | if test -n "$LINGUAS"; then | ||
380 | 373 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | ||
381 | 374 | fi | ||
382 | 375 | fi | ||
383 | 376 | |||
384 | 377 | dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly | ||
385 | 378 | dnl find the mkinstalldirs script in another subdir but ($top_srcdir). | ||
386 | 379 | dnl Try to locate is. | ||
387 | 380 | MKINSTALLDIRS= | ||
388 | 381 | if test -n "$ac_aux_dir"; then | ||
389 | 382 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | ||
390 | 383 | fi | ||
391 | 384 | if test -z "$MKINSTALLDIRS"; then | ||
392 | 385 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | ||
393 | 386 | fi | ||
394 | 387 | AC_SUBST(MKINSTALLDIRS) | ||
395 | 388 | |||
396 | 389 | dnl Generate list of files to be processed by xgettext which will | ||
397 | 390 | dnl be included in po/Makefile. | ||
398 | 391 | test -d po || mkdir po | ||
399 | 392 | if test "x$srcdir" != "x."; then | ||
400 | 393 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | ||
401 | 394 | posrcprefix="$srcdir/" | ||
402 | 395 | else | ||
403 | 396 | posrcprefix="../$srcdir/" | ||
404 | 397 | fi | ||
405 | 398 | else | ||
406 | 399 | posrcprefix="../" | ||
407 | 400 | fi | ||
408 | 401 | rm -f po/POTFILES | ||
409 | 402 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | ||
410 | 403 | < $srcdir/po/POTFILES.in > po/POTFILES | ||
411 | 404 | ]) | ||
412 | 405 | |||
413 | 406 | # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) | ||
414 | 407 | # ------------------------------- | ||
415 | 408 | # Define VARIABLE to the location where catalog files will | ||
416 | 409 | # be installed by po/Makefile. | ||
417 | 410 | glib_DEFUN([GLIB_DEFINE_LOCALEDIR], | ||
418 | 411 | [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl | ||
419 | 412 | glib_save_prefix="$prefix" | ||
420 | 413 | glib_save_exec_prefix="$exec_prefix" | ||
421 | 414 | glib_save_datarootdir="$datarootdir" | ||
422 | 415 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
423 | 416 | test "x$exec_prefix" = xNONE && exec_prefix=$prefix | ||
424 | 417 | datarootdir=`eval echo "${datarootdir}"` | ||
425 | 418 | if test "x$CATOBJEXT" = "x.mo" ; then | ||
426 | 419 | localedir=`eval echo "${libdir}/locale"` | ||
427 | 420 | else | ||
428 | 421 | localedir=`eval echo "${datadir}/locale"` | ||
429 | 422 | fi | ||
430 | 423 | prefix="$glib_save_prefix" | ||
431 | 424 | exec_prefix="$glib_save_exec_prefix" | ||
432 | 425 | datarootdir="$glib_save_datarootdir" | ||
433 | 426 | AC_DEFINE_UNQUOTED($1, "$localedir", | ||
434 | 427 | [Define the location where the catalogs will be installed]) | ||
435 | 428 | ]) | ||
436 | 429 | |||
437 | 430 | dnl | ||
438 | 431 | dnl Now the definitions that aclocal will find | ||
439 | 432 | dnl | ||
440 | 433 | ifdef(glib_configure_ac,[],[ | ||
441 | 434 | AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) | ||
442 | 435 | AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) | ||
443 | 436 | ])dnl | ||
444 | 437 | |||
445 | 438 | # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) | ||
446 | 439 | # | ||
447 | 440 | # Create a temporary file with TEST-FILE as its contents and pass the | ||
448 | 441 | # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with | ||
449 | 442 | # 0 and perform ACTION-IF-FAIL for any other exit status. | ||
450 | 443 | AC_DEFUN([GLIB_RUN_PROG], | ||
451 | 444 | [cat >conftest.foo <<_ACEOF | ||
452 | 445 | $2 | ||
453 | 446 | _ACEOF | ||
454 | 447 | if AC_RUN_LOG([$1 conftest.foo]); then | ||
455 | 448 | m4_ifval([$3], [$3], [:]) | ||
456 | 449 | m4_ifvaln([$4], [else $4])dnl | ||
457 | 450 | echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD | ||
458 | 451 | sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD | ||
459 | 452 | fi]) | ||
460 | 453 | |||
461 | 454 | |||
462 | 455 | dnl GLIB_GSETTINGS | ||
463 | 456 | dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether | ||
464 | 457 | dnl the schema should be compiled | ||
465 | 458 | dnl | ||
466 | 459 | |||
467 | 460 | AC_DEFUN([GLIB_GSETTINGS], | ||
468 | 461 | [ | ||
469 | 462 | m4_pattern_allow([AM_V_GEN]) | ||
470 | 463 | AC_ARG_ENABLE(schemas-compile, | ||
471 | 464 | AC_HELP_STRING([--disable-schemas-compile], | ||
472 | 465 | [Disable regeneration of gschemas.compiled on install]), | ||
473 | 466 | [case ${enableval} in | ||
474 | 467 | yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; | ||
475 | 468 | no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; | ||
476 | 469 | *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;; | ||
477 | 470 | esac]) | ||
478 | 471 | AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE]) | ||
479 | 472 | PKG_PROG_PKG_CONFIG([0.16]) | ||
480 | 473 | AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas]) | ||
481 | 474 | if test x$cross_compiling != xyes; then | ||
482 | 475 | GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0` | ||
483 | 476 | else | ||
484 | 477 | AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas) | ||
485 | 478 | fi | ||
486 | 479 | AC_SUBST(GLIB_COMPILE_SCHEMAS) | ||
487 | 480 | if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then | ||
488 | 481 | ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2]) | ||
489 | 482 | else | ||
490 | 483 | ifelse([$1],,[:],[$1]) | ||
491 | 484 | fi | ||
492 | 485 | |||
493 | 486 | GSETTINGS_RULES=' | ||
494 | 487 | .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas | ||
495 | 488 | |||
496 | 489 | mostlyclean-am: clean-gsettings-schemas | ||
497 | 490 | |||
498 | 491 | gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE)) | ||
499 | 492 | |||
500 | 493 | %.gschema.valid: %.gschema.xml $(gsettings__enum_file) | ||
501 | 494 | $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@ | ||
502 | 495 | |||
503 | 496 | all-am: $(gsettings_SCHEMAS:.xml=.valid) | ||
504 | 497 | uninstall-am: uninstall-gsettings-schemas | ||
505 | 498 | install-data-am: install-gsettings-schemas | ||
506 | 499 | |||
507 | 500 | .SECONDARY: $(gsettings_SCHEMAS) | ||
508 | 501 | |||
509 | 502 | install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) | ||
510 | 503 | @$(NORMAL_INSTALL) | ||
511 | 504 | test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)" | ||
512 | 505 | $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)" | ||
513 | 506 | test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) | ||
514 | 507 | |||
515 | 508 | uninstall-gsettings-schemas: | ||
516 | 509 | @$(NORMAL_UNINSTALL) | ||
517 | 510 | @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \ | ||
518 | 511 | files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ | ||
519 | 512 | test -n "$$files" || exit 0; \ | ||
520 | 513 | echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \ | ||
521 | 514 | cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files | ||
522 | 515 | test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) | ||
523 | 516 | |||
524 | 517 | clean-gsettings-schemas: | ||
525 | 518 | rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file) | ||
526 | 519 | |||
527 | 520 | ifdef gsettings_ENUM_NAMESPACE | ||
528 | 521 | $(gsettings__enum_file): $(gsettings_ENUM_FILES) | ||
529 | 522 | $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" $(gsettings_ENUM_FILES) > [$]@.tmp && mv [$]@.tmp [$]@ | ||
530 | 523 | endif | ||
531 | 524 | ' | ||
532 | 525 | _GSETTINGS_SUBST(GSETTINGS_RULES) | ||
533 | 526 | ]) | ||
534 | 527 | |||
535 | 528 | dnl _GSETTINGS_SUBST(VARIABLE) | ||
536 | 529 | dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST | ||
537 | 530 | AC_DEFUN([_GSETTINGS_SUBST], | ||
538 | 531 | [ | ||
539 | 532 | AC_SUBST([$1]) | ||
540 | 533 | m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) | ||
541 | 534 | ] | ||
542 | 535 | ) | ||
543 | 536 | |||
544 | 537 | # nls.m4 serial 5 (gettext-0.18) | 22 | # nls.m4 serial 5 (gettext-0.18) |
545 | 538 | dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, | 23 | dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, |
546 | 539 | dnl Inc. | 24 | dnl Inc. |
547 | @@ -704,7 +189,7 @@ | |||
548 | 704 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | 189 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
549 | 705 | installed software in a non-standard prefix. | 190 | installed software in a non-standard prefix. |
550 | 706 | 191 | ||
552 | 707 | _PKG_TEXT]) | 192 | _PKG_TEXT])[]dnl |
553 | 708 | ]) | 193 | ]) |
554 | 709 | elif test $pkg_failed = untried; then | 194 | elif test $pkg_failed = untried; then |
555 | 710 | AC_MSG_RESULT([no]) | 195 | AC_MSG_RESULT([no]) |
556 | @@ -715,7 +200,7 @@ | |||
557 | 715 | 200 | ||
558 | 716 | _PKG_TEXT | 201 | _PKG_TEXT |
559 | 717 | 202 | ||
561 | 718 | To get pkg-config, see <http://pkg-config.freedesktop.org/>.]) | 203 | To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl |
562 | 719 | ]) | 204 | ]) |
563 | 720 | else | 205 | else |
564 | 721 | $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS | 206 | $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
565 | @@ -1722,4 +1207,521 @@ | |||
566 | 1722 | AC_SUBST([am__untar]) | 1207 | AC_SUBST([am__untar]) |
567 | 1723 | ]) # _AM_PROG_TAR | 1208 | ]) # _AM_PROG_TAR |
568 | 1724 | 1209 | ||
569 | 1210 | # Copyright (C) 1995-2002 Free Software Foundation, Inc. | ||
570 | 1211 | # Copyright (C) 2001-2003,2004 Red Hat, Inc. | ||
571 | 1212 | # | ||
572 | 1213 | # This file is free software, distributed under the terms of the GNU | ||
573 | 1214 | # General Public License. As a special exception to the GNU General | ||
574 | 1215 | # Public License, this file may be distributed as part of a program | ||
575 | 1216 | # that contains a configuration script generated by Autoconf, under | ||
576 | 1217 | # the same distribution terms as the rest of that program. | ||
577 | 1218 | # | ||
578 | 1219 | # This file can be copied and used freely without restrictions. It can | ||
579 | 1220 | # be used in projects which are not available under the GNU Public License | ||
580 | 1221 | # but which still want to provide support for the GNU gettext functionality. | ||
581 | 1222 | # | ||
582 | 1223 | # Macro to add for using GNU gettext. | ||
583 | 1224 | # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 | ||
584 | 1225 | # | ||
585 | 1226 | # Modified to never use included libintl. | ||
586 | 1227 | # Owen Taylor <otaylor@redhat.com>, 12/15/1998 | ||
587 | 1228 | # | ||
588 | 1229 | # Major rework to remove unused code | ||
589 | 1230 | # Owen Taylor <otaylor@redhat.com>, 12/11/2002 | ||
590 | 1231 | # | ||
591 | 1232 | # Added better handling of ALL_LINGUAS from GNU gettext version | ||
592 | 1233 | # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 | ||
593 | 1234 | # | ||
594 | 1235 | # Modified to require ngettext | ||
595 | 1236 | # Matthias Clasen <mclasen@redhat.com> 08/06/2004 | ||
596 | 1237 | # | ||
597 | 1238 | # We need this here as well, since someone might use autoconf-2.5x | ||
598 | 1239 | # to configure GLib then an older version to configure a package | ||
599 | 1240 | # using AM_GLIB_GNU_GETTEXT | ||
600 | 1241 | AC_PREREQ(2.53) | ||
601 | 1242 | |||
602 | 1243 | dnl | ||
603 | 1244 | dnl We go to great lengths to make sure that aclocal won't | ||
604 | 1245 | dnl try to pull in the installed version of these macros | ||
605 | 1246 | dnl when running aclocal in the glib directory. | ||
606 | 1247 | dnl | ||
607 | 1248 | m4_copy([AC_DEFUN],[glib_DEFUN]) | ||
608 | 1249 | m4_copy([AC_REQUIRE],[glib_REQUIRE]) | ||
609 | 1250 | dnl | ||
610 | 1251 | dnl At the end, if we're not within glib, we'll define the public | ||
611 | 1252 | dnl definitions in terms of our private definitions. | ||
612 | 1253 | dnl | ||
613 | 1254 | |||
614 | 1255 | # GLIB_LC_MESSAGES | ||
615 | 1256 | #-------------------- | ||
616 | 1257 | glib_DEFUN([GLIB_LC_MESSAGES], | ||
617 | 1258 | [AC_CHECK_HEADERS([locale.h]) | ||
618 | 1259 | if test $ac_cv_header_locale_h = yes; then | ||
619 | 1260 | AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, | ||
620 | 1261 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], | ||
621 | 1262 | am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) | ||
622 | 1263 | if test $am_cv_val_LC_MESSAGES = yes; then | ||
623 | 1264 | AC_DEFINE(HAVE_LC_MESSAGES, 1, | ||
624 | 1265 | [Define if your <locale.h> file defines LC_MESSAGES.]) | ||
625 | 1266 | fi | ||
626 | 1267 | fi]) | ||
627 | 1268 | |||
628 | 1269 | # GLIB_PATH_PROG_WITH_TEST | ||
629 | 1270 | #---------------------------- | ||
630 | 1271 | dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, | ||
631 | 1272 | dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) | ||
632 | 1273 | glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], | ||
633 | 1274 | [# Extract the first word of "$2", so it can be a program name with args. | ||
634 | 1275 | set dummy $2; ac_word=[$]2 | ||
635 | 1276 | AC_MSG_CHECKING([for $ac_word]) | ||
636 | 1277 | AC_CACHE_VAL(ac_cv_path_$1, | ||
637 | 1278 | [case "[$]$1" in | ||
638 | 1279 | /*) | ||
639 | 1280 | ac_cv_path_$1="[$]$1" # Let the user override the test with a path. | ||
640 | 1281 | ;; | ||
641 | 1282 | *) | ||
642 | 1283 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | ||
643 | 1284 | for ac_dir in ifelse([$5], , $PATH, [$5]); do | ||
644 | 1285 | test -z "$ac_dir" && ac_dir=. | ||
645 | 1286 | if test -f $ac_dir/$ac_word; then | ||
646 | 1287 | if [$3]; then | ||
647 | 1288 | ac_cv_path_$1="$ac_dir/$ac_word" | ||
648 | 1289 | break | ||
649 | 1290 | fi | ||
650 | 1291 | fi | ||
651 | 1292 | done | ||
652 | 1293 | IFS="$ac_save_ifs" | ||
653 | 1294 | dnl If no 4th arg is given, leave the cache variable unset, | ||
654 | 1295 | dnl so AC_PATH_PROGS will keep looking. | ||
655 | 1296 | ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" | ||
656 | 1297 | ])dnl | ||
657 | 1298 | ;; | ||
658 | 1299 | esac])dnl | ||
659 | 1300 | $1="$ac_cv_path_$1" | ||
660 | 1301 | if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then | ||
661 | 1302 | AC_MSG_RESULT([$]$1) | ||
662 | 1303 | else | ||
663 | 1304 | AC_MSG_RESULT(no) | ||
664 | 1305 | fi | ||
665 | 1306 | AC_SUBST($1)dnl | ||
666 | 1307 | ]) | ||
667 | 1308 | |||
668 | 1309 | # GLIB_WITH_NLS | ||
669 | 1310 | #----------------- | ||
670 | 1311 | glib_DEFUN([GLIB_WITH_NLS], | ||
671 | 1312 | dnl NLS is obligatory | ||
672 | 1313 | [USE_NLS=yes | ||
673 | 1314 | AC_SUBST(USE_NLS) | ||
674 | 1315 | |||
675 | 1316 | gt_cv_have_gettext=no | ||
676 | 1317 | |||
677 | 1318 | CATOBJEXT=NONE | ||
678 | 1319 | XGETTEXT=: | ||
679 | 1320 | INTLLIBS= | ||
680 | 1321 | |||
681 | 1322 | AC_CHECK_HEADER(libintl.h, | ||
682 | 1323 | [gt_cv_func_dgettext_libintl="no" | ||
683 | 1324 | libintl_extra_libs="" | ||
684 | 1325 | |||
685 | 1326 | # | ||
686 | 1327 | # First check in libc | ||
687 | 1328 | # | ||
688 | 1329 | AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, | ||
689 | 1330 | [AC_TRY_LINK([ | ||
690 | 1331 | #include <libintl.h> | ||
691 | 1332 | ], | ||
692 | 1333 | [return !ngettext ("","", 1)], | ||
693 | 1334 | gt_cv_func_ngettext_libc=yes, | ||
694 | 1335 | gt_cv_func_ngettext_libc=no) | ||
695 | 1336 | ]) | ||
696 | 1337 | |||
697 | 1338 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
698 | 1339 | AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, | ||
699 | 1340 | [AC_TRY_LINK([ | ||
700 | 1341 | #include <libintl.h> | ||
701 | 1342 | ], | ||
702 | 1343 | [return !dgettext ("","")], | ||
703 | 1344 | gt_cv_func_dgettext_libc=yes, | ||
704 | 1345 | gt_cv_func_dgettext_libc=no) | ||
705 | 1346 | ]) | ||
706 | 1347 | fi | ||
707 | 1348 | |||
708 | 1349 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
709 | 1350 | AC_CHECK_FUNCS(bind_textdomain_codeset) | ||
710 | 1351 | fi | ||
711 | 1352 | |||
712 | 1353 | # | ||
713 | 1354 | # If we don't have everything we want, check in libintl | ||
714 | 1355 | # | ||
715 | 1356 | if test "$gt_cv_func_dgettext_libc" != "yes" \ | ||
716 | 1357 | || test "$gt_cv_func_ngettext_libc" != "yes" \ | ||
717 | 1358 | || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then | ||
718 | 1359 | |||
719 | 1360 | AC_CHECK_LIB(intl, bindtextdomain, | ||
720 | 1361 | [AC_CHECK_LIB(intl, ngettext, | ||
721 | 1362 | [AC_CHECK_LIB(intl, dgettext, | ||
722 | 1363 | gt_cv_func_dgettext_libintl=yes)])]) | ||
723 | 1364 | |||
724 | 1365 | if test "$gt_cv_func_dgettext_libintl" != "yes" ; then | ||
725 | 1366 | AC_MSG_CHECKING([if -liconv is needed to use gettext]) | ||
726 | 1367 | AC_MSG_RESULT([]) | ||
727 | 1368 | AC_CHECK_LIB(intl, ngettext, | ||
728 | 1369 | [AC_CHECK_LIB(intl, dcgettext, | ||
729 | 1370 | [gt_cv_func_dgettext_libintl=yes | ||
730 | 1371 | libintl_extra_libs=-liconv], | ||
731 | 1372 | :,-liconv)], | ||
732 | 1373 | :,-liconv) | ||
733 | 1374 | fi | ||
734 | 1375 | |||
735 | 1376 | # | ||
736 | 1377 | # If we found libintl, then check in it for bind_textdomain_codeset(); | ||
737 | 1378 | # we'll prefer libc if neither have bind_textdomain_codeset(), | ||
738 | 1379 | # and both have dgettext and ngettext | ||
739 | 1380 | # | ||
740 | 1381 | if test "$gt_cv_func_dgettext_libintl" = "yes" ; then | ||
741 | 1382 | glib_save_LIBS="$LIBS" | ||
742 | 1383 | LIBS="$LIBS -lintl $libintl_extra_libs" | ||
743 | 1384 | unset ac_cv_func_bind_textdomain_codeset | ||
744 | 1385 | AC_CHECK_FUNCS(bind_textdomain_codeset) | ||
745 | 1386 | LIBS="$glib_save_LIBS" | ||
746 | 1387 | |||
747 | 1388 | if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then | ||
748 | 1389 | gt_cv_func_dgettext_libc=no | ||
749 | 1390 | else | ||
750 | 1391 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
751 | 1392 | && test "$gt_cv_func_ngettext_libc" = "yes"; then | ||
752 | 1393 | gt_cv_func_dgettext_libintl=no | ||
753 | 1394 | fi | ||
754 | 1395 | fi | ||
755 | 1396 | fi | ||
756 | 1397 | fi | ||
757 | 1398 | |||
758 | 1399 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
759 | 1400 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
760 | 1401 | gt_cv_have_gettext=yes | ||
761 | 1402 | fi | ||
762 | 1403 | |||
763 | 1404 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
764 | 1405 | INTLLIBS="-lintl $libintl_extra_libs" | ||
765 | 1406 | fi | ||
766 | 1407 | |||
767 | 1408 | if test "$gt_cv_have_gettext" = "yes"; then | ||
768 | 1409 | AC_DEFINE(HAVE_GETTEXT,1, | ||
769 | 1410 | [Define if the GNU gettext() function is already present or preinstalled.]) | ||
770 | 1411 | GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | ||
771 | 1412 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl | ||
772 | 1413 | if test "$MSGFMT" != "no"; then | ||
773 | 1414 | glib_save_LIBS="$LIBS" | ||
774 | 1415 | LIBS="$LIBS $INTLLIBS" | ||
775 | 1416 | AC_CHECK_FUNCS(dcgettext) | ||
776 | 1417 | MSGFMT_OPTS= | ||
777 | 1418 | AC_MSG_CHECKING([if msgfmt accepts -c]) | ||
778 | 1419 | GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ | ||
779 | 1420 | msgid "" | ||
780 | 1421 | msgstr "" | ||
781 | 1422 | "Content-Type: text/plain; charset=UTF-8\n" | ||
782 | 1423 | "Project-Id-Version: test 1.0\n" | ||
783 | 1424 | "PO-Revision-Date: 2007-02-15 12:01+0100\n" | ||
784 | 1425 | "Last-Translator: test <foo@bar.xx>\n" | ||
785 | 1426 | "Language-Team: C <LL@li.org>\n" | ||
786 | 1427 | "MIME-Version: 1.0\n" | ||
787 | 1428 | "Content-Transfer-Encoding: 8bit\n" | ||
788 | 1429 | ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) | ||
789 | 1430 | AC_SUBST(MSGFMT_OPTS) | ||
790 | 1431 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | ||
791 | 1432 | GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, | ||
792 | 1433 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) | ||
793 | 1434 | AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; | ||
794 | 1435 | return _nl_msg_cat_cntr], | ||
795 | 1436 | [CATOBJEXT=.gmo | ||
796 | 1437 | DATADIRNAME=share], | ||
797 | 1438 | [case $host in | ||
798 | 1439 | *-*-solaris*) | ||
799 | 1440 | dnl On Solaris, if bind_textdomain_codeset is in libc, | ||
800 | 1441 | dnl GNU format message catalog is always supported, | ||
801 | 1442 | dnl since both are added to the libc all together. | ||
802 | 1443 | dnl Hence, we'd like to go with DATADIRNAME=share and | ||
803 | 1444 | dnl and CATOBJEXT=.gmo in this case. | ||
804 | 1445 | AC_CHECK_FUNC(bind_textdomain_codeset, | ||
805 | 1446 | [CATOBJEXT=.gmo | ||
806 | 1447 | DATADIRNAME=share], | ||
807 | 1448 | [CATOBJEXT=.mo | ||
808 | 1449 | DATADIRNAME=lib]) | ||
809 | 1450 | ;; | ||
810 | 1451 | *) | ||
811 | 1452 | CATOBJEXT=.mo | ||
812 | 1453 | DATADIRNAME=lib | ||
813 | 1454 | ;; | ||
814 | 1455 | esac]) | ||
815 | 1456 | LIBS="$glib_save_LIBS" | ||
816 | 1457 | INSTOBJEXT=.mo | ||
817 | 1458 | else | ||
818 | 1459 | gt_cv_have_gettext=no | ||
819 | 1460 | fi | ||
820 | 1461 | fi | ||
821 | 1462 | ]) | ||
822 | 1463 | |||
823 | 1464 | if test "$gt_cv_have_gettext" = "yes" ; then | ||
824 | 1465 | AC_DEFINE(ENABLE_NLS, 1, | ||
825 | 1466 | [always defined to indicate that i18n is enabled]) | ||
826 | 1467 | fi | ||
827 | 1468 | |||
828 | 1469 | dnl Test whether we really found GNU xgettext. | ||
829 | 1470 | if test "$XGETTEXT" != ":"; then | ||
830 | 1471 | dnl If it is not GNU xgettext we define it as : so that the | ||
831 | 1472 | dnl Makefiles still can work. | ||
832 | 1473 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | ||
833 | 1474 | : ; | ||
834 | 1475 | else | ||
835 | 1476 | AC_MSG_RESULT( | ||
836 | 1477 | [found xgettext program is not GNU xgettext; ignore it]) | ||
837 | 1478 | XGETTEXT=":" | ||
838 | 1479 | fi | ||
839 | 1480 | fi | ||
840 | 1481 | |||
841 | 1482 | # We need to process the po/ directory. | ||
842 | 1483 | POSUB=po | ||
843 | 1484 | |||
844 | 1485 | AC_OUTPUT_COMMANDS( | ||
845 | 1486 | [case "$CONFIG_FILES" in *po/Makefile.in*) | ||
846 | 1487 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | ||
847 | 1488 | esac]) | ||
848 | 1489 | |||
849 | 1490 | dnl These rules are solely for the distribution goal. While doing this | ||
850 | 1491 | dnl we only have to keep exactly one list of the available catalogs | ||
851 | 1492 | dnl in configure.ac. | ||
852 | 1493 | for lang in $ALL_LINGUAS; do | ||
853 | 1494 | GMOFILES="$GMOFILES $lang.gmo" | ||
854 | 1495 | POFILES="$POFILES $lang.po" | ||
855 | 1496 | done | ||
856 | 1497 | |||
857 | 1498 | dnl Make all variables we use known to autoconf. | ||
858 | 1499 | AC_SUBST(CATALOGS) | ||
859 | 1500 | AC_SUBST(CATOBJEXT) | ||
860 | 1501 | AC_SUBST(DATADIRNAME) | ||
861 | 1502 | AC_SUBST(GMOFILES) | ||
862 | 1503 | AC_SUBST(INSTOBJEXT) | ||
863 | 1504 | AC_SUBST(INTLLIBS) | ||
864 | 1505 | AC_SUBST(PO_IN_DATADIR_TRUE) | ||
865 | 1506 | AC_SUBST(PO_IN_DATADIR_FALSE) | ||
866 | 1507 | AC_SUBST(POFILES) | ||
867 | 1508 | AC_SUBST(POSUB) | ||
868 | 1509 | ]) | ||
869 | 1510 | |||
870 | 1511 | # AM_GLIB_GNU_GETTEXT | ||
871 | 1512 | # ------------------- | ||
872 | 1513 | # Do checks necessary for use of gettext. If a suitable implementation | ||
873 | 1514 | # of gettext is found in either in libintl or in the C library, | ||
874 | 1515 | # it will set INTLLIBS to the libraries needed for use of gettext | ||
875 | 1516 | # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable | ||
876 | 1517 | # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() | ||
877 | 1518 | # on various variables needed by the Makefile.in.in installed by | ||
878 | 1519 | # glib-gettextize. | ||
879 | 1520 | dnl | ||
880 | 1521 | glib_DEFUN([GLIB_GNU_GETTEXT], | ||
881 | 1522 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
882 | 1523 | AC_REQUIRE([AC_HEADER_STDC])dnl | ||
883 | 1524 | |||
884 | 1525 | GLIB_LC_MESSAGES | ||
885 | 1526 | GLIB_WITH_NLS | ||
886 | 1527 | |||
887 | 1528 | if test "$gt_cv_have_gettext" = "yes"; then | ||
888 | 1529 | if test "x$ALL_LINGUAS" = "x"; then | ||
889 | 1530 | LINGUAS= | ||
890 | 1531 | else | ||
891 | 1532 | AC_MSG_CHECKING(for catalogs to be installed) | ||
892 | 1533 | NEW_LINGUAS= | ||
893 | 1534 | for presentlang in $ALL_LINGUAS; do | ||
894 | 1535 | useit=no | ||
895 | 1536 | if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then | ||
896 | 1537 | desiredlanguages="$LINGUAS" | ||
897 | 1538 | else | ||
898 | 1539 | desiredlanguages="$ALL_LINGUAS" | ||
899 | 1540 | fi | ||
900 | 1541 | for desiredlang in $desiredlanguages; do | ||
901 | 1542 | # Use the presentlang catalog if desiredlang is | ||
902 | 1543 | # a. equal to presentlang, or | ||
903 | 1544 | # b. a variant of presentlang (because in this case, | ||
904 | 1545 | # presentlang can be used as a fallback for messages | ||
905 | 1546 | # which are not translated in the desiredlang catalog). | ||
906 | 1547 | case "$desiredlang" in | ||
907 | 1548 | "$presentlang"*) useit=yes;; | ||
908 | 1549 | esac | ||
909 | 1550 | done | ||
910 | 1551 | if test $useit = yes; then | ||
911 | 1552 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | ||
912 | 1553 | fi | ||
913 | 1554 | done | ||
914 | 1555 | LINGUAS=$NEW_LINGUAS | ||
915 | 1556 | AC_MSG_RESULT($LINGUAS) | ||
916 | 1557 | fi | ||
917 | 1558 | |||
918 | 1559 | dnl Construct list of names of catalog files to be constructed. | ||
919 | 1560 | if test -n "$LINGUAS"; then | ||
920 | 1561 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | ||
921 | 1562 | fi | ||
922 | 1563 | fi | ||
923 | 1564 | |||
924 | 1565 | dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly | ||
925 | 1566 | dnl find the mkinstalldirs script in another subdir but ($top_srcdir). | ||
926 | 1567 | dnl Try to locate is. | ||
927 | 1568 | MKINSTALLDIRS= | ||
928 | 1569 | if test -n "$ac_aux_dir"; then | ||
929 | 1570 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | ||
930 | 1571 | fi | ||
931 | 1572 | if test -z "$MKINSTALLDIRS"; then | ||
932 | 1573 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | ||
933 | 1574 | fi | ||
934 | 1575 | AC_SUBST(MKINSTALLDIRS) | ||
935 | 1576 | |||
936 | 1577 | dnl Generate list of files to be processed by xgettext which will | ||
937 | 1578 | dnl be included in po/Makefile. | ||
938 | 1579 | test -d po || mkdir po | ||
939 | 1580 | if test "x$srcdir" != "x."; then | ||
940 | 1581 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | ||
941 | 1582 | posrcprefix="$srcdir/" | ||
942 | 1583 | else | ||
943 | 1584 | posrcprefix="../$srcdir/" | ||
944 | 1585 | fi | ||
945 | 1586 | else | ||
946 | 1587 | posrcprefix="../" | ||
947 | 1588 | fi | ||
948 | 1589 | rm -f po/POTFILES | ||
949 | 1590 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | ||
950 | 1591 | < $srcdir/po/POTFILES.in > po/POTFILES | ||
951 | 1592 | ]) | ||
952 | 1593 | |||
953 | 1594 | # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) | ||
954 | 1595 | # ------------------------------- | ||
955 | 1596 | # Define VARIABLE to the location where catalog files will | ||
956 | 1597 | # be installed by po/Makefile. | ||
957 | 1598 | glib_DEFUN([GLIB_DEFINE_LOCALEDIR], | ||
958 | 1599 | [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl | ||
959 | 1600 | glib_save_prefix="$prefix" | ||
960 | 1601 | glib_save_exec_prefix="$exec_prefix" | ||
961 | 1602 | glib_save_datarootdir="$datarootdir" | ||
962 | 1603 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
963 | 1604 | test "x$exec_prefix" = xNONE && exec_prefix=$prefix | ||
964 | 1605 | datarootdir=`eval echo "${datarootdir}"` | ||
965 | 1606 | if test "x$CATOBJEXT" = "x.mo" ; then | ||
966 | 1607 | localedir=`eval echo "${libdir}/locale"` | ||
967 | 1608 | else | ||
968 | 1609 | localedir=`eval echo "${datadir}/locale"` | ||
969 | 1610 | fi | ||
970 | 1611 | prefix="$glib_save_prefix" | ||
971 | 1612 | exec_prefix="$glib_save_exec_prefix" | ||
972 | 1613 | datarootdir="$glib_save_datarootdir" | ||
973 | 1614 | AC_DEFINE_UNQUOTED($1, "$localedir", | ||
974 | 1615 | [Define the location where the catalogs will be installed]) | ||
975 | 1616 | ]) | ||
976 | 1617 | |||
977 | 1618 | dnl | ||
978 | 1619 | dnl Now the definitions that aclocal will find | ||
979 | 1620 | dnl | ||
980 | 1621 | ifdef(glib_configure_ac,[],[ | ||
981 | 1622 | AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) | ||
982 | 1623 | AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) | ||
983 | 1624 | ])dnl | ||
984 | 1625 | |||
985 | 1626 | # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) | ||
986 | 1627 | # | ||
987 | 1628 | # Create a temporary file with TEST-FILE as its contents and pass the | ||
988 | 1629 | # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with | ||
989 | 1630 | # 0 and perform ACTION-IF-FAIL for any other exit status. | ||
990 | 1631 | AC_DEFUN([GLIB_RUN_PROG], | ||
991 | 1632 | [cat >conftest.foo <<_ACEOF | ||
992 | 1633 | $2 | ||
993 | 1634 | _ACEOF | ||
994 | 1635 | if AC_RUN_LOG([$1 conftest.foo]); then | ||
995 | 1636 | m4_ifval([$3], [$3], [:]) | ||
996 | 1637 | m4_ifvaln([$4], [else $4])dnl | ||
997 | 1638 | echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD | ||
998 | 1639 | sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD | ||
999 | 1640 | fi]) | ||
1000 | 1641 | |||
1001 | 1642 | |||
1002 | 1643 | dnl GLIB_GSETTINGS | ||
1003 | 1644 | dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether | ||
1004 | 1645 | dnl the schema should be compiled | ||
1005 | 1646 | dnl | ||
1006 | 1647 | |||
1007 | 1648 | AC_DEFUN([GLIB_GSETTINGS], | ||
1008 | 1649 | [ | ||
1009 | 1650 | m4_pattern_allow([AM_V_GEN]) | ||
1010 | 1651 | AC_ARG_ENABLE(schemas-compile, | ||
1011 | 1652 | AC_HELP_STRING([--disable-schemas-compile], | ||
1012 | 1653 | [Disable regeneration of gschemas.compiled on install]), | ||
1013 | 1654 | [case ${enableval} in | ||
1014 | 1655 | yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; | ||
1015 | 1656 | no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; | ||
1016 | 1657 | *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;; | ||
1017 | 1658 | esac]) | ||
1018 | 1659 | AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE]) | ||
1019 | 1660 | PKG_PROG_PKG_CONFIG([0.16]) | ||
1020 | 1661 | AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas]) | ||
1021 | 1662 | if test x$cross_compiling != xyes; then | ||
1022 | 1663 | GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0` | ||
1023 | 1664 | else | ||
1024 | 1665 | AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas) | ||
1025 | 1666 | fi | ||
1026 | 1667 | AC_SUBST(GLIB_COMPILE_SCHEMAS) | ||
1027 | 1668 | if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then | ||
1028 | 1669 | ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2]) | ||
1029 | 1670 | else | ||
1030 | 1671 | ifelse([$1],,[:],[$1]) | ||
1031 | 1672 | fi | ||
1032 | 1673 | |||
1033 | 1674 | GSETTINGS_RULES=' | ||
1034 | 1675 | .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas | ||
1035 | 1676 | |||
1036 | 1677 | mostlyclean-am: clean-gsettings-schemas | ||
1037 | 1678 | |||
1038 | 1679 | gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE)) | ||
1039 | 1680 | |||
1040 | 1681 | %.gschema.valid: %.gschema.xml $(gsettings__enum_file) | ||
1041 | 1682 | $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@ | ||
1042 | 1683 | |||
1043 | 1684 | all-am: $(gsettings_SCHEMAS:.xml=.valid) | ||
1044 | 1685 | uninstall-am: uninstall-gsettings-schemas | ||
1045 | 1686 | install-data-am: install-gsettings-schemas | ||
1046 | 1687 | |||
1047 | 1688 | .SECONDARY: $(gsettings_SCHEMAS) | ||
1048 | 1689 | |||
1049 | 1690 | install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) | ||
1050 | 1691 | @$(NORMAL_INSTALL) | ||
1051 | 1692 | if test -n "$^"; then \ | ||
1052 | 1693 | test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \ | ||
1053 | 1694 | $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \ | ||
1054 | 1695 | test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \ | ||
1055 | 1696 | fi | ||
1056 | 1697 | |||
1057 | 1698 | uninstall-gsettings-schemas: | ||
1058 | 1699 | @$(NORMAL_UNINSTALL) | ||
1059 | 1700 | @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \ | ||
1060 | 1701 | files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ | ||
1061 | 1702 | test -n "$$files" || exit 0; \ | ||
1062 | 1703 | echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \ | ||
1063 | 1704 | cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files | ||
1064 | 1705 | test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) | ||
1065 | 1706 | |||
1066 | 1707 | clean-gsettings-schemas: | ||
1067 | 1708 | rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file) | ||
1068 | 1709 | |||
1069 | 1710 | ifdef gsettings_ENUM_NAMESPACE | ||
1070 | 1711 | $(gsettings__enum_file): $(gsettings_ENUM_FILES) | ||
1071 | 1712 | $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" $(gsettings_ENUM_FILES) > [$]@.tmp && mv [$]@.tmp [$]@ | ||
1072 | 1713 | endif | ||
1073 | 1714 | ' | ||
1074 | 1715 | _GSETTINGS_SUBST(GSETTINGS_RULES) | ||
1075 | 1716 | ]) | ||
1076 | 1717 | |||
1077 | 1718 | dnl _GSETTINGS_SUBST(VARIABLE) | ||
1078 | 1719 | dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST | ||
1079 | 1720 | AC_DEFUN([_GSETTINGS_SUBST], | ||
1080 | 1721 | [ | ||
1081 | 1722 | AC_SUBST([$1]) | ||
1082 | 1723 | m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) | ||
1083 | 1724 | ] | ||
1084 | 1725 | ) | ||
1085 | 1726 | |||
1086 | 1725 | m4_include([m4/intltool.m4]) | 1727 | m4_include([m4/intltool.m4]) |
1087 | 1726 | 1728 | ||
1088 | === modified file 'configure' | |||
1089 | --- configure 2010-11-05 17:22:35 +0000 | |||
1090 | +++ configure 2010-11-17 17:44:38 +0000 | |||
1091 | @@ -1,6 +1,6 @@ | |||
1092 | 1 | #! /bin/sh | 1 | #! /bin/sh |
1093 | 2 | # Guess values for system-dependent variables and create Makefiles. | 2 | # Guess values for system-dependent variables and create Makefiles. |
1095 | 3 | # Generated by GNU Autoconf 2.66 for gsettings-desktop-schemas 0.1.0. | 3 | # Generated by GNU Autoconf 2.67 for gsettings-desktop-schemas 0.1.1. |
1096 | 4 | # | 4 | # |
1097 | 5 | # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gsettings-desktop-schemas>. | 5 | # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gsettings-desktop-schemas>. |
1098 | 6 | # | 6 | # |
1099 | @@ -553,8 +553,8 @@ | |||
1100 | 553 | # Identity of this package. | 553 | # Identity of this package. |
1101 | 554 | PACKAGE_NAME='gsettings-desktop-schemas' | 554 | PACKAGE_NAME='gsettings-desktop-schemas' |
1102 | 555 | PACKAGE_TARNAME='gsettings-desktop-schemas' | 555 | PACKAGE_TARNAME='gsettings-desktop-schemas' |
1105 | 556 | PACKAGE_VERSION='0.1.0' | 556 | PACKAGE_VERSION='0.1.1' |
1106 | 557 | PACKAGE_STRING='gsettings-desktop-schemas 0.1.0' | 557 | PACKAGE_STRING='gsettings-desktop-schemas 0.1.1' |
1107 | 558 | PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gsettings-desktop-schemas' | 558 | PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gsettings-desktop-schemas' |
1108 | 559 | PACKAGE_URL='' | 559 | PACKAGE_URL='' |
1109 | 560 | 560 | ||
1110 | @@ -755,8 +755,7 @@ | |||
1111 | 755 | LDFLAGS | 755 | LDFLAGS |
1112 | 756 | LIBS | 756 | LIBS |
1113 | 757 | CPPFLAGS | 757 | CPPFLAGS |
1116 | 758 | CPP | 758 | CPP' |
1115 | 759 | CPPFLAGS' | ||
1117 | 760 | 759 | ||
1118 | 761 | 760 | ||
1119 | 762 | # Initialize some variables set by options. | 761 | # Initialize some variables set by options. |
1120 | @@ -819,8 +818,9 @@ | |||
1121 | 819 | fi | 818 | fi |
1122 | 820 | 819 | ||
1123 | 821 | case $ac_option in | 820 | case $ac_option in |
1126 | 822 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 821 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1127 | 823 | *) ac_optarg=yes ;; | 822 | *=) ac_optarg= ;; |
1128 | 823 | *) ac_optarg=yes ;; | ||
1129 | 824 | esac | 824 | esac |
1130 | 825 | 825 | ||
1131 | 826 | # Accept the important Cygnus configure options, so we can diagnose typos. | 826 | # Accept the important Cygnus configure options, so we can diagnose typos. |
1132 | @@ -1298,7 +1298,7 @@ | |||
1133 | 1298 | # Omit some internal or obsolete options to make the list less imposing. | 1298 | # Omit some internal or obsolete options to make the list less imposing. |
1134 | 1299 | # This message is too long to be a string in the A/UX 3.1 sh. | 1299 | # This message is too long to be a string in the A/UX 3.1 sh. |
1135 | 1300 | cat <<_ACEOF | 1300 | cat <<_ACEOF |
1137 | 1301 | \`configure' configures gsettings-desktop-schemas 0.1.0 to adapt to many kinds of systems. | 1301 | \`configure' configures gsettings-desktop-schemas 0.1.1 to adapt to many kinds of systems. |
1138 | 1302 | 1302 | ||
1139 | 1303 | Usage: $0 [OPTION]... [VAR=VALUE]... | 1303 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1140 | 1304 | 1304 | ||
1141 | @@ -1365,7 +1365,7 @@ | |||
1142 | 1365 | 1365 | ||
1143 | 1366 | if test -n "$ac_init_help"; then | 1366 | if test -n "$ac_init_help"; then |
1144 | 1367 | case $ac_init_help in | 1367 | case $ac_init_help in |
1146 | 1368 | short | recursive ) echo "Configuration of gsettings-desktop-schemas 0.1.0:";; | 1368 | short | recursive ) echo "Configuration of gsettings-desktop-schemas 0.1.1:";; |
1147 | 1369 | esac | 1369 | esac |
1148 | 1370 | cat <<\_ACEOF | 1370 | cat <<\_ACEOF |
1149 | 1371 | 1371 | ||
1150 | @@ -1464,8 +1464,8 @@ | |||
1151 | 1464 | test -n "$ac_init_help" && exit $ac_status | 1464 | test -n "$ac_init_help" && exit $ac_status |
1152 | 1465 | if $ac_init_version; then | 1465 | if $ac_init_version; then |
1153 | 1466 | cat <<\_ACEOF | 1466 | cat <<\_ACEOF |
1156 | 1467 | gsettings-desktop-schemas configure 0.1.0 | 1467 | gsettings-desktop-schemas configure 0.1.1 |
1157 | 1468 | generated by GNU Autoconf 2.66 | 1468 | generated by GNU Autoconf 2.67 |
1158 | 1469 | 1469 | ||
1159 | 1470 | Copyright (C) 2010 Free Software Foundation, Inc. | 1470 | Copyright (C) 2010 Free Software Foundation, Inc. |
1160 | 1471 | This configure script is free software; the Free Software Foundation | 1471 | This configure script is free software; the Free Software Foundation |
1161 | @@ -1537,7 +1537,7 @@ | |||
1162 | 1537 | mv -f conftest.er1 conftest.err | 1537 | mv -f conftest.er1 conftest.err |
1163 | 1538 | fi | 1538 | fi |
1164 | 1539 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 1539 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1166 | 1540 | test $ac_status = 0; } >/dev/null && { | 1540 | test $ac_status = 0; } > conftest.i && { |
1167 | 1541 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 1541 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1168 | 1542 | test ! -s conftest.err | 1542 | test ! -s conftest.err |
1169 | 1543 | }; then : | 1543 | }; then : |
1170 | @@ -1642,7 +1642,7 @@ | |||
1171 | 1642 | else | 1642 | else |
1172 | 1643 | ac_header_preproc=no | 1643 | ac_header_preproc=no |
1173 | 1644 | fi | 1644 | fi |
1175 | 1645 | rm -f conftest.err conftest.$ac_ext | 1645 | rm -f conftest.err conftest.i conftest.$ac_ext |
1176 | 1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1177 | 1647 | $as_echo "$ac_header_preproc" >&6; } | 1647 | $as_echo "$ac_header_preproc" >&6; } |
1178 | 1648 | 1648 | ||
1179 | @@ -1833,8 +1833,8 @@ | |||
1180 | 1833 | This file contains any messages produced by compilers while | 1833 | This file contains any messages produced by compilers while |
1181 | 1834 | running configure, to aid debugging if configure makes a mistake. | 1834 | running configure, to aid debugging if configure makes a mistake. |
1182 | 1835 | 1835 | ||
1185 | 1836 | It was created by gsettings-desktop-schemas $as_me 0.1.0, which was | 1836 | It was created by gsettings-desktop-schemas $as_me 0.1.1, which was |
1186 | 1837 | generated by GNU Autoconf 2.66. Invocation command line was | 1837 | generated by GNU Autoconf 2.67. Invocation command line was |
1187 | 1838 | 1838 | ||
1188 | 1839 | $ $0 $@ | 1839 | $ $0 $@ |
1189 | 1840 | 1840 | ||
1190 | @@ -2092,7 +2092,7 @@ | |||
1191 | 2092 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 2092 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1192 | 2093 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 2093 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1193 | 2094 | as_fn_error $? "failed to load site script $ac_site_file | 2094 | as_fn_error $? "failed to load site script $ac_site_file |
1195 | 2095 | See \`config.log' for more details" "$LINENO" 5; } | 2095 | See \`config.log' for more details" "$LINENO" 5 ; } |
1196 | 2096 | fi | 2096 | fi |
1197 | 2097 | done | 2097 | done |
1198 | 2098 | 2098 | ||
1199 | @@ -2317,11 +2317,11 @@ | |||
1200 | 2317 | ' | 2317 | ' |
1201 | 2318 | case `pwd` in | 2318 | case `pwd` in |
1202 | 2319 | *[\\\"\#\$\&\'\`$am_lf]*) | 2319 | *[\\\"\#\$\&\'\`$am_lf]*) |
1204 | 2320 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | 2320 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; |
1205 | 2321 | esac | 2321 | esac |
1206 | 2322 | case $srcdir in | 2322 | case $srcdir in |
1207 | 2323 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | 2323 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
1209 | 2324 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | 2324 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; |
1210 | 2325 | esac | 2325 | esac |
1211 | 2326 | 2326 | ||
1212 | 2327 | # Do `set' in a subshell so we don't clobber the current shell's | 2327 | # Do `set' in a subshell so we don't clobber the current shell's |
1213 | @@ -2649,7 +2649,7 @@ | |||
1214 | 2649 | 2649 | ||
1215 | 2650 | # Define the identity of the package. | 2650 | # Define the identity of the package. |
1216 | 2651 | PACKAGE='gsettings-desktop-schemas' | 2651 | PACKAGE='gsettings-desktop-schemas' |
1218 | 2652 | VERSION='0.1.0' | 2652 | VERSION='0.1.1' |
1219 | 2653 | 2653 | ||
1220 | 2654 | 2654 | ||
1221 | 2655 | cat >>confdefs.h <<_ACEOF | 2655 | cat >>confdefs.h <<_ACEOF |
1222 | @@ -2807,7 +2807,7 @@ | |||
1223 | 2807 | enableval=$enable_schemas_compile; case ${enableval} in | 2807 | enableval=$enable_schemas_compile; case ${enableval} in |
1224 | 2808 | yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; | 2808 | yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; |
1225 | 2809 | no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; | 2809 | no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; |
1227 | 2810 | *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;; | 2810 | *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;; |
1228 | 2811 | esac | 2811 | esac |
1229 | 2812 | fi | 2812 | fi |
1230 | 2813 | 2813 | ||
1231 | @@ -3002,9 +3002,11 @@ | |||
1232 | 3002 | 3002 | ||
1233 | 3003 | install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) | 3003 | install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) |
1234 | 3004 | @$(NORMAL_INSTALL) | 3004 | @$(NORMAL_INSTALL) |
1238 | 3005 | test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)" | 3005 | if test -n "$^"; then \ |
1239 | 3006 | $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)" | 3006 | test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \ |
1240 | 3007 | test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) | 3007 | $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \ |
1241 | 3008 | test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \ | ||
1242 | 3009 | fi | ||
1243 | 3008 | 3010 | ||
1244 | 3009 | uninstall-gsettings-schemas: | 3011 | uninstall-gsettings-schemas: |
1245 | 3010 | @$(NORMAL_UNINSTALL) | 3012 | @$(NORMAL_UNINSTALL) |
1246 | @@ -3395,7 +3397,7 @@ | |||
1247 | 3395 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 3397 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1248 | 3396 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 3398 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1249 | 3397 | as_fn_error $? "no acceptable C compiler found in \$PATH | 3399 | as_fn_error $? "no acceptable C compiler found in \$PATH |
1251 | 3398 | See \`config.log' for more details" "$LINENO" 5; } | 3400 | See \`config.log' for more details" "$LINENO" 5 ; } |
1252 | 3399 | 3401 | ||
1253 | 3400 | # Provide some information about the compiler. | 3402 | # Provide some information about the compiler. |
1254 | 3401 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 3403 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
1255 | @@ -3510,7 +3512,7 @@ | |||
1256 | 3510 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 3512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1257 | 3511 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 3513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1258 | 3512 | as_fn_error 77 "C compiler cannot create executables | 3514 | as_fn_error 77 "C compiler cannot create executables |
1260 | 3513 | See \`config.log' for more details" "$LINENO" 5; } | 3515 | See \`config.log' for more details" "$LINENO" 5 ; } |
1261 | 3514 | else | 3516 | else |
1262 | 3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
1263 | 3516 | $as_echo "yes" >&6; } | 3518 | $as_echo "yes" >&6; } |
1264 | @@ -3553,7 +3555,7 @@ | |||
1265 | 3553 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 3555 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1266 | 3554 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 3556 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1267 | 3555 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 3557 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
1269 | 3556 | See \`config.log' for more details" "$LINENO" 5; } | 3558 | See \`config.log' for more details" "$LINENO" 5 ; } |
1270 | 3557 | fi | 3559 | fi |
1271 | 3558 | rm -f conftest conftest$ac_cv_exeext | 3560 | rm -f conftest conftest$ac_cv_exeext |
1272 | 3559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 3561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
1273 | @@ -3612,7 +3614,7 @@ | |||
1274 | 3612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 3614 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1275 | 3613 | as_fn_error $? "cannot run C compiled programs. | 3615 | as_fn_error $? "cannot run C compiled programs. |
1276 | 3614 | If you meant to cross compile, use \`--host'. | 3616 | If you meant to cross compile, use \`--host'. |
1278 | 3615 | See \`config.log' for more details" "$LINENO" 5; } | 3617 | See \`config.log' for more details" "$LINENO" 5 ; } |
1279 | 3616 | fi | 3618 | fi |
1280 | 3617 | fi | 3619 | fi |
1281 | 3618 | fi | 3620 | fi |
1282 | @@ -3664,7 +3666,7 @@ | |||
1283 | 3664 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 3666 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1284 | 3665 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 3667 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1285 | 3666 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 3668 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
1287 | 3667 | See \`config.log' for more details" "$LINENO" 5; } | 3669 | See \`config.log' for more details" "$LINENO" 5 ; } |
1288 | 3668 | fi | 3670 | fi |
1289 | 3669 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 3671 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1290 | 3670 | fi | 3672 | fi |
1291 | @@ -4054,7 +4056,7 @@ | |||
1292 | 4054 | # Broken: fails on valid input. | 4056 | # Broken: fails on valid input. |
1293 | 4055 | continue | 4057 | continue |
1294 | 4056 | fi | 4058 | fi |
1296 | 4057 | rm -f conftest.err conftest.$ac_ext | 4059 | rm -f conftest.err conftest.i conftest.$ac_ext |
1297 | 4058 | 4060 | ||
1298 | 4059 | # OK, works on sane cases. Now check whether nonexistent headers | 4061 | # OK, works on sane cases. Now check whether nonexistent headers |
1299 | 4060 | # can be detected and how. | 4062 | # can be detected and how. |
1300 | @@ -4070,11 +4072,11 @@ | |||
1301 | 4070 | ac_preproc_ok=: | 4072 | ac_preproc_ok=: |
1302 | 4071 | break | 4073 | break |
1303 | 4072 | fi | 4074 | fi |
1305 | 4073 | rm -f conftest.err conftest.$ac_ext | 4075 | rm -f conftest.err conftest.i conftest.$ac_ext |
1306 | 4074 | 4076 | ||
1307 | 4075 | done | 4077 | done |
1308 | 4076 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 4078 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
1310 | 4077 | rm -f conftest.err conftest.$ac_ext | 4079 | rm -f conftest.i conftest.err conftest.$ac_ext |
1311 | 4078 | if $ac_preproc_ok; then : | 4080 | if $ac_preproc_ok; then : |
1312 | 4079 | break | 4081 | break |
1313 | 4080 | fi | 4082 | fi |
1314 | @@ -4113,7 +4115,7 @@ | |||
1315 | 4113 | # Broken: fails on valid input. | 4115 | # Broken: fails on valid input. |
1316 | 4114 | continue | 4116 | continue |
1317 | 4115 | fi | 4117 | fi |
1319 | 4116 | rm -f conftest.err conftest.$ac_ext | 4118 | rm -f conftest.err conftest.i conftest.$ac_ext |
1320 | 4117 | 4119 | ||
1321 | 4118 | # OK, works on sane cases. Now check whether nonexistent headers | 4120 | # OK, works on sane cases. Now check whether nonexistent headers |
1322 | 4119 | # can be detected and how. | 4121 | # can be detected and how. |
1323 | @@ -4129,18 +4131,18 @@ | |||
1324 | 4129 | ac_preproc_ok=: | 4131 | ac_preproc_ok=: |
1325 | 4130 | break | 4132 | break |
1326 | 4131 | fi | 4133 | fi |
1328 | 4132 | rm -f conftest.err conftest.$ac_ext | 4134 | rm -f conftest.err conftest.i conftest.$ac_ext |
1329 | 4133 | 4135 | ||
1330 | 4134 | done | 4136 | done |
1331 | 4135 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 4137 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
1333 | 4136 | rm -f conftest.err conftest.$ac_ext | 4138 | rm -f conftest.i conftest.err conftest.$ac_ext |
1334 | 4137 | if $ac_preproc_ok; then : | 4139 | if $ac_preproc_ok; then : |
1335 | 4138 | 4140 | ||
1336 | 4139 | else | 4141 | else |
1337 | 4140 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 4142 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1338 | 4141 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 4143 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1339 | 4142 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 4144 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
1341 | 4143 | See \`config.log' for more details" "$LINENO" 5; } | 4145 | See \`config.log' for more details" "$LINENO" 5 ; } |
1342 | 4144 | fi | 4146 | fi |
1343 | 4145 | 4147 | ||
1344 | 4146 | ac_ext=c | 4148 | ac_ext=c |
1345 | @@ -6240,8 +6242,8 @@ | |||
1346 | 6240 | # report actual input values of CONFIG_FILES etc. instead of their | 6242 | # report actual input values of CONFIG_FILES etc. instead of their |
1347 | 6241 | # values after options handling. | 6243 | # values after options handling. |
1348 | 6242 | ac_log=" | 6244 | ac_log=" |
1351 | 6243 | This file was extended by gsettings-desktop-schemas $as_me 0.1.0, which was | 6245 | This file was extended by gsettings-desktop-schemas $as_me 0.1.1, which was |
1352 | 6244 | generated by GNU Autoconf 2.66. Invocation command line was | 6246 | generated by GNU Autoconf 2.67. Invocation command line was |
1353 | 6245 | 6247 | ||
1354 | 6246 | CONFIG_FILES = $CONFIG_FILES | 6248 | CONFIG_FILES = $CONFIG_FILES |
1355 | 6247 | CONFIG_HEADERS = $CONFIG_HEADERS | 6249 | CONFIG_HEADERS = $CONFIG_HEADERS |
1356 | @@ -6297,8 +6299,8 @@ | |||
1357 | 6297 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 6299 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1358 | 6298 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 6300 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1359 | 6299 | ac_cs_version="\\ | 6301 | ac_cs_version="\\ |
1362 | 6300 | gsettings-desktop-schemas config.status 0.1.0 | 6302 | gsettings-desktop-schemas config.status 0.1.1 |
1363 | 6301 | configured by $0, generated by GNU Autoconf 2.66, | 6303 | configured by $0, generated by GNU Autoconf 2.67, |
1364 | 6302 | with options \\"\$ac_cs_config\\" | 6304 | with options \\"\$ac_cs_config\\" |
1365 | 6303 | 6305 | ||
1366 | 6304 | Copyright (C) 2010 Free Software Foundation, Inc. | 6306 | Copyright (C) 2010 Free Software Foundation, Inc. |
1367 | @@ -6319,11 +6321,16 @@ | |||
1368 | 6319 | while test $# != 0 | 6321 | while test $# != 0 |
1369 | 6320 | do | 6322 | do |
1370 | 6321 | case $1 in | 6323 | case $1 in |
1372 | 6322 | --*=*) | 6324 | --*=?*) |
1373 | 6323 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 6325 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
1374 | 6324 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 6326 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
1375 | 6325 | ac_shift=: | 6327 | ac_shift=: |
1376 | 6326 | ;; | 6328 | ;; |
1377 | 6329 | --*=) | ||
1378 | 6330 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
1379 | 6331 | ac_optarg= | ||
1380 | 6332 | ac_shift=: | ||
1381 | 6333 | ;; | ||
1382 | 6327 | *) | 6334 | *) |
1383 | 6328 | ac_option=$1 | 6335 | ac_option=$1 |
1384 | 6329 | ac_optarg=$2 | 6336 | ac_optarg=$2 |
1385 | @@ -6345,6 +6352,7 @@ | |||
1386 | 6345 | $ac_shift | 6352 | $ac_shift |
1387 | 6346 | case $ac_optarg in | 6353 | case $ac_optarg in |
1388 | 6347 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 6354 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1389 | 6355 | '') as_fn_error $? "missing file argument" ;; | ||
1390 | 6348 | esac | 6356 | esac |
1391 | 6349 | as_fn_append CONFIG_FILES " '$ac_optarg'" | 6357 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
1392 | 6350 | ac_need_defaults=false;; | 6358 | ac_need_defaults=false;; |
1393 | @@ -6419,7 +6427,7 @@ | |||
1394 | 6419 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | 6427 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
1395 | 6420 | "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; | 6428 | "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; |
1396 | 6421 | 6429 | ||
1398 | 6422 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 6430 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; |
1399 | 6423 | esac | 6431 | esac |
1400 | 6424 | done | 6432 | done |
1401 | 6425 | 6433 | ||
1402 | @@ -6626,7 +6634,7 @@ | |||
1403 | 6626 | esac | 6634 | esac |
1404 | 6627 | case $ac_mode$ac_tag in | 6635 | case $ac_mode$ac_tag in |
1405 | 6628 | :[FHL]*:*);; | 6636 | :[FHL]*:*);; |
1407 | 6629 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 6637 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; |
1408 | 6630 | :[FH]-) ac_tag=-:-;; | 6638 | :[FH]-) ac_tag=-:-;; |
1409 | 6631 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 6639 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
1410 | 6632 | esac | 6640 | esac |
1411 | @@ -6654,7 +6662,7 @@ | |||
1412 | 6654 | [\\/$]*) false;; | 6662 | [\\/$]*) false;; |
1413 | 6655 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 6663 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
1414 | 6656 | esac || | 6664 | esac || |
1416 | 6657 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 6665 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; |
1417 | 6658 | esac | 6666 | esac |
1418 | 6659 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 6667 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
1419 | 6660 | as_fn_append ac_file_inputs " '$ac_f'" | 6668 | as_fn_append ac_file_inputs " '$ac_f'" |
1420 | @@ -6681,7 +6689,7 @@ | |||
1421 | 6681 | 6689 | ||
1422 | 6682 | case $ac_tag in | 6690 | case $ac_tag in |
1423 | 6683 | *:-:* | *:-) cat >"$tmp/stdin" \ | 6691 | *:-:* | *:-) cat >"$tmp/stdin" \ |
1425 | 6684 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 6692 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
1426 | 6685 | esac | 6693 | esac |
1427 | 6686 | ;; | 6694 | ;; |
1428 | 6687 | esac | 6695 | esac |
1429 | 6688 | 6696 | ||
1430 | === modified file 'configure.ac' | |||
1431 | --- configure.ac 2010-11-05 17:22:35 +0000 | |||
1432 | +++ configure.ac 2010-11-17 17:44:38 +0000 | |||
1433 | @@ -1,5 +1,5 @@ | |||
1434 | 1 | AC_PREREQ(2.53) | 1 | AC_PREREQ(2.53) |
1436 | 2 | AC_INIT([gsettings-desktop-schemas], [0.1.0], | 2 | AC_INIT([gsettings-desktop-schemas], [0.1.1], |
1437 | 3 | [http://bugzilla.gnome.org/enter_bug.cgi?product=gsettings-desktop-schemas]) | 3 | [http://bugzilla.gnome.org/enter_bug.cgi?product=gsettings-desktop-schemas]) |
1438 | 4 | AC_CONFIG_SRCDIR(schemas/org.gnome.desktop.default-applications.gschema.xml) | 4 | AC_CONFIG_SRCDIR(schemas/org.gnome.desktop.default-applications.gschema.xml) |
1439 | 5 | AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2]) | 5 | AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2]) |
1440 | 6 | 6 | ||
1441 | === modified file 'debian/changelog' | |||
1442 | --- debian/changelog 2010-11-05 17:22:35 +0000 | |||
1443 | +++ debian/changelog 2010-11-17 17:44:38 +0000 | |||
1444 | @@ -1,3 +1,10 @@ | |||
1445 | 1 | gsettings-desktop-schemas (0.1.1-0ubuntu1) natty; urgency=low | ||
1446 | 2 | |||
1447 | 3 | * New upstream release: | ||
1448 | 4 | - Misc schema updates | ||
1449 | 5 | |||
1450 | 6 | -- Rodrigo Moya <rodrigo.moya@canonical.com> Wed, 17 Nov 2010 18:38:53 +0100 | ||
1451 | 7 | |||
1452 | 1 | gsettings-desktop-schemas (0.1.0-0ubuntu1) natty; urgency=low | 8 | gsettings-desktop-schemas (0.1.0-0ubuntu1) natty; urgency=low |
1453 | 2 | 9 | ||
1454 | 3 | * debian/control: | 10 | * debian/control: |
1455 | 4 | 11 | ||
1456 | === modified file 'schemas/gsettings-desktop-schemas.convert' | |||
1457 | --- schemas/gsettings-desktop-schemas.convert 2010-11-05 17:22:35 +0000 | |||
1458 | +++ schemas/gsettings-desktop-schemas.convert 2010-11-17 17:44:38 +0000 | |||
1459 | @@ -47,7 +47,9 @@ | |||
1460 | 47 | menubar-detachable = /desktop/gnome/interface/menubar_detachable | 47 | menubar-detachable = /desktop/gnome/interface/menubar_detachable |
1461 | 48 | toolbar-detachable = /desktop/gnome/interface/toolbar_detachable | 48 | toolbar-detachable = /desktop/gnome/interface/toolbar_detachable |
1462 | 49 | toolbar-icons-size = /desktop/gnome/interface/toolbar_icons_size | 49 | toolbar-icons-size = /desktop/gnome/interface/toolbar_icons_size |
1464 | 50 | cursor-blink = /desktop/gnome/interface/cursor_blink | 50 | # Disabled, as we want users to use the new default: |
1465 | 51 | # https://bugzilla.gnome.org/show_bug.cgi?id=634639 | ||
1466 | 52 | # cursor-blink = /desktop/gnome/interface/cursor_blink | ||
1467 | 51 | cursor-blink-time = /desktop/gnome/interface/cursor_blink_time | 53 | cursor-blink-time = /desktop/gnome/interface/cursor_blink_time |
1468 | 52 | icon-theme = /desktop/gnome/interface/icon_theme | 54 | icon-theme = /desktop/gnome/interface/icon_theme |
1469 | 53 | gtk-theme = /desktop/gnome/interface/gtk_theme | 55 | gtk-theme = /desktop/gnome/interface/gtk_theme |
1470 | 54 | 56 | ||
1471 | === modified file 'schemas/org.gnome.desktop.interface.gschema.xml' | |||
1472 | --- schemas/org.gnome.desktop.interface.gschema.xml 2010-11-05 17:22:35 +0000 | |||
1473 | +++ schemas/org.gnome.desktop.interface.gschema.xml 2010-11-17 17:44:38 +0000 | |||
1474 | @@ -88,6 +88,14 @@ | |||
1475 | 88 | Length of the cursor blink cycle, in milliseconds. | 88 | Length of the cursor blink cycle, in milliseconds. |
1476 | 89 | </description> | 89 | </description> |
1477 | 90 | </key> | 90 | </key> |
1478 | 91 | <key name="cursor-blink-timeout" type="i"> | ||
1479 | 92 | <range min="1" max="2147483647"/> | ||
1480 | 93 | <default>10</default> | ||
1481 | 94 | <summary>Cursor Blink Timeout</summary> | ||
1482 | 95 | <description> | ||
1483 | 96 | Time after which the cursor stops blinking, in seconds. | ||
1484 | 97 | </description> | ||
1485 | 98 | </key> | ||
1486 | 91 | <key name="icon-theme" type="s"> | 99 | <key name="icon-theme" type="s"> |
1487 | 92 | <default>'gnome'</default> | 100 | <default>'gnome'</default> |
1488 | 93 | <summary>Icon Theme</summary> | 101 | <summary>Icon Theme</summary> |
1489 | @@ -190,7 +198,7 @@ | |||
1490 | 190 | </description> | 198 | </description> |
1491 | 191 | </key> | 199 | </key> |
1492 | 192 | <key name="cursor-theme" type="s"> | 200 | <key name="cursor-theme" type="s"> |
1494 | 193 | <default>'dmz-aa'</default> | 201 | <default>'Adwaita'</default> |
1495 | 194 | <summary>Cursor theme</summary> | 202 | <summary>Cursor theme</summary> |
1496 | 195 | <description>Cursor theme name. Used only by Xservers that support the Xcursor extension.</description> | 203 | <description>Cursor theme name. Used only by Xservers that support the Xcursor extension.</description> |
1497 | 196 | </key> | 204 | </key> |
We should set the default cursor to a theme we use somewhere but otherwise seems fine, feel free to upload