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.63],,
17
[m4_warning([this file was generated for autoconf 2.63.
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
17
[m4_warning([this file was generated for autoconf 2.64.
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'.])])
23
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
24
dnl (i.e. pass to gconftool-2
25
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
26
dnl you should install foo.schemas files
29
AC_DEFUN([AM_GCONF_SOURCE_2],
31
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
32
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
34
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
37
AC_ARG_WITH([gconf-source],
38
AC_HELP_STRING([--with-gconf-source=sourceaddress],
39
[Config database for installing schema files.]),
40
[GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
42
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
43
AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
45
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
46
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
49
AC_ARG_WITH([gconf-schema-file-dir],
50
AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
51
[Directory for installing schema files.]),
52
[GCONF_SCHEMA_FILE_DIR="$withval"],)
54
AC_SUBST(GCONF_SCHEMA_FILE_DIR)
55
AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
57
AC_ARG_ENABLE(schemas-install,
58
AC_HELP_STRING([--disable-schemas-install],
59
[Disable the schemas installation]),
62
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
64
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
67
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
68
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
70
# This file is free software, distributed under the terms of the GNU
71
# General Public License. As a special exception to the GNU General
72
# Public License, this file may be distributed as part of a program
73
# that contains a configuration script generated by Autoconf, under
74
# the same distribution terms as the rest of that program.
76
# This file can be copied and used freely without restrictions. It can
77
# be used in projects which are not available under the GNU Public License
78
# but which still want to provide support for the GNU gettext functionality.
80
# Macro to add for using GNU gettext.
81
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
83
# Modified to never use included libintl.
84
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
86
# Major rework to remove unused code
87
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
89
# Added better handling of ALL_LINGUAS from GNU gettext version
90
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
92
# Modified to require ngettext
93
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
95
# We need this here as well, since someone might use autoconf-2.5x
96
# to configure GLib then an older version to configure a package
97
# using AM_GLIB_GNU_GETTEXT
101
dnl We go to great lengths to make sure that aclocal won't
102
dnl try to pull in the installed version of these macros
103
dnl when running aclocal in the glib directory.
105
m4_copy([AC_DEFUN],[glib_DEFUN])
106
m4_copy([AC_REQUIRE],[glib_REQUIRE])
108
dnl At the end, if we're not within glib, we'll define the public
109
dnl definitions in terms of our private definitions.
113
#--------------------
114
glib_DEFUN([GLIB_LC_MESSAGES],
115
[AC_CHECK_HEADERS([locale.h])
116
if test $ac_cv_header_locale_h = yes; then
117
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
118
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
119
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
120
if test $am_cv_val_LC_MESSAGES = yes; then
121
AC_DEFINE(HAVE_LC_MESSAGES, 1,
122
[Define if your <locale.h> file defines LC_MESSAGES.])
126
# GLIB_PATH_PROG_WITH_TEST
127
#----------------------------
128
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
129
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
130
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
131
[# Extract the first word of "$2", so it can be a program name with args.
132
set dummy $2; ac_word=[$]2
133
AC_MSG_CHECKING([for $ac_word])
134
AC_CACHE_VAL(ac_cv_path_$1,
137
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
140
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
141
for ac_dir in ifelse([$5], , $PATH, [$5]); do
142
test -z "$ac_dir" && ac_dir=.
143
if test -f $ac_dir/$ac_word; then
145
ac_cv_path_$1="$ac_dir/$ac_word"
151
dnl If no 4th arg is given, leave the cache variable unset,
152
dnl so AC_PATH_PROGS will keep looking.
153
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
158
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
168
glib_DEFUN([GLIB_WITH_NLS],
169
dnl NLS is obligatory
173
gt_cv_have_gettext=no
179
AC_CHECK_HEADER(libintl.h,
180
[gt_cv_func_dgettext_libintl="no"
181
libintl_extra_libs=""
184
# First check in libc
186
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
190
[return !ngettext ("","", 1)],
191
gt_cv_func_ngettext_libc=yes,
192
gt_cv_func_ngettext_libc=no)
195
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
196
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
200
[return !dgettext ("","")],
201
gt_cv_func_dgettext_libc=yes,
202
gt_cv_func_dgettext_libc=no)
206
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
207
AC_CHECK_FUNCS(bind_textdomain_codeset)
211
# If we don't have everything we want, check in libintl
213
if test "$gt_cv_func_dgettext_libc" != "yes" \
214
|| test "$gt_cv_func_ngettext_libc" != "yes" \
215
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
217
AC_CHECK_LIB(intl, bindtextdomain,
218
[AC_CHECK_LIB(intl, ngettext,
219
[AC_CHECK_LIB(intl, dgettext,
220
gt_cv_func_dgettext_libintl=yes)])])
222
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
223
AC_MSG_CHECKING([if -liconv is needed to use gettext])
225
AC_CHECK_LIB(intl, ngettext,
226
[AC_CHECK_LIB(intl, dcgettext,
227
[gt_cv_func_dgettext_libintl=yes
228
libintl_extra_libs=-liconv],
234
# If we found libintl, then check in it for bind_textdomain_codeset();
235
# we'll prefer libc if neither have bind_textdomain_codeset(),
236
# and both have dgettext and ngettext
238
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
239
glib_save_LIBS="$LIBS"
240
LIBS="$LIBS -lintl $libintl_extra_libs"
241
unset ac_cv_func_bind_textdomain_codeset
242
AC_CHECK_FUNCS(bind_textdomain_codeset)
243
LIBS="$glib_save_LIBS"
245
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
246
gt_cv_func_dgettext_libc=no
248
if test "$gt_cv_func_dgettext_libc" = "yes" \
249
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
250
gt_cv_func_dgettext_libintl=no
256
if test "$gt_cv_func_dgettext_libc" = "yes" \
257
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
258
gt_cv_have_gettext=yes
261
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
262
INTLLIBS="-lintl $libintl_extra_libs"
265
if test "$gt_cv_have_gettext" = "yes"; then
266
AC_DEFINE(HAVE_GETTEXT,1,
267
[Define if the GNU gettext() function is already present or preinstalled.])
268
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
269
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
270
if test "$MSGFMT" != "no"; then
271
glib_save_LIBS="$LIBS"
272
LIBS="$LIBS $INTLLIBS"
273
AC_CHECK_FUNCS(dcgettext)
275
AC_MSG_CHECKING([if msgfmt accepts -c])
276
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
279
"Content-Type: text/plain; charset=UTF-8\n"
280
"Project-Id-Version: test 1.0\n"
281
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
282
"Last-Translator: test <foo@bar.xx>\n"
283
"Language-Team: C <LL@li.org>\n"
284
"MIME-Version: 1.0\n"
285
"Content-Transfer-Encoding: 8bit\n"
286
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
287
AC_SUBST(MSGFMT_OPTS)
288
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
289
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
290
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
291
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
292
return _nl_msg_cat_cntr],
297
dnl On Solaris, if bind_textdomain_codeset is in libc,
298
dnl GNU format message catalog is always supported,
299
dnl since both are added to the libc all together.
300
dnl Hence, we'd like to go with DATADIRNAME=share and
301
dnl and CATOBJEXT=.gmo in this case.
302
AC_CHECK_FUNC(bind_textdomain_codeset,
313
LIBS="$glib_save_LIBS"
316
gt_cv_have_gettext=no
321
if test "$gt_cv_have_gettext" = "yes" ; then
322
AC_DEFINE(ENABLE_NLS, 1,
323
[always defined to indicate that i18n is enabled])
326
dnl Test whether we really found GNU xgettext.
327
if test "$XGETTEXT" != ":"; then
328
dnl If it is not GNU xgettext we define it as : so that the
329
dnl Makefiles still can work.
330
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
334
[found xgettext program is not GNU xgettext; ignore it])
339
# We need to process the po/ directory.
343
[case "$CONFIG_FILES" in *po/Makefile.in*)
344
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
347
dnl These rules are solely for the distribution goal. While doing this
348
dnl we only have to keep exactly one list of the available catalogs
350
for lang in $ALL_LINGUAS; do
351
GMOFILES="$GMOFILES $lang.gmo"
352
POFILES="$POFILES $lang.po"
355
dnl Make all variables we use known to autoconf.
358
AC_SUBST(DATADIRNAME)
362
AC_SUBST(PO_IN_DATADIR_TRUE)
363
AC_SUBST(PO_IN_DATADIR_FALSE)
368
# AM_GLIB_GNU_GETTEXT
369
# -------------------
370
# Do checks necessary for use of gettext. If a suitable implementation
371
# of gettext is found in either in libintl or in the C library,
372
# it will set INTLLIBS to the libraries needed for use of gettext
373
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
374
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
375
# on various variables needed by the Makefile.in.in installed by
378
glib_DEFUN([GLIB_GNU_GETTEXT],
379
[AC_REQUIRE([AC_PROG_CC])dnl
380
AC_REQUIRE([AC_HEADER_STDC])dnl
385
if test "$gt_cv_have_gettext" = "yes"; then
386
if test "x$ALL_LINGUAS" = "x"; then
389
AC_MSG_CHECKING(for catalogs to be installed)
391
for presentlang in $ALL_LINGUAS; do
393
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
394
desiredlanguages="$LINGUAS"
396
desiredlanguages="$ALL_LINGUAS"
398
for desiredlang in $desiredlanguages; do
399
# Use the presentlang catalog if desiredlang is
400
# a. equal to presentlang, or
401
# b. a variant of presentlang (because in this case,
402
# presentlang can be used as a fallback for messages
403
# which are not translated in the desiredlang catalog).
404
case "$desiredlang" in
405
"$presentlang"*) useit=yes;;
408
if test $useit = yes; then
409
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
413
AC_MSG_RESULT($LINGUAS)
416
dnl Construct list of names of catalog files to be constructed.
417
if test -n "$LINGUAS"; then
418
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
422
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
423
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
424
dnl Try to locate is.
426
if test -n "$ac_aux_dir"; then
427
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
429
if test -z "$MKINSTALLDIRS"; then
430
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
432
AC_SUBST(MKINSTALLDIRS)
434
dnl Generate list of files to be processed by xgettext which will
435
dnl be included in po/Makefile.
436
test -d po || mkdir po
437
if test "x$srcdir" != "x."; then
438
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
439
posrcprefix="$srcdir/"
441
posrcprefix="../$srcdir/"
447
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
448
< $srcdir/po/POTFILES.in > po/POTFILES
451
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
452
# -------------------------------
453
# Define VARIABLE to the location where catalog files will
454
# be installed by po/Makefile.
455
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
456
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
457
glib_save_prefix="$prefix"
458
glib_save_exec_prefix="$exec_prefix"
459
glib_save_datarootdir="$datarootdir"
460
test "x$prefix" = xNONE && prefix=$ac_default_prefix
461
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
462
datarootdir=`eval echo "${datarootdir}"`
463
if test "x$CATOBJEXT" = "x.mo" ; then
464
localedir=`eval echo "${libdir}/locale"`
466
localedir=`eval echo "${datadir}/locale"`
468
prefix="$glib_save_prefix"
469
exec_prefix="$glib_save_exec_prefix"
470
datarootdir="$glib_save_datarootdir"
471
AC_DEFINE_UNQUOTED($1, "$localedir",
472
[Define the location where the catalogs will be installed])
476
dnl Now the definitions that aclocal will find
478
ifdef(glib_configure_in,[],[
479
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
480
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
483
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
485
# Create a temporary file with TEST-FILE as its contents and pass the
486
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
487
# 0 and perform ACTION-IF-FAIL for any other exit status.
488
AC_DEFUN([GLIB_RUN_PROG],
489
[cat >conftest.foo <<_ACEOF
492
if AC_RUN_LOG([$1 conftest.foo]); then
493
m4_ifval([$3], [$3], [:])
494
m4_ifvaln([$4], [else $4])dnl
495
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
496
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
500
dnl GNOME_COMPILE_WARNINGS
501
dnl Turn on many useful compiler warnings
502
dnl For now, only works on GCC
503
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
504
dnl ******************************
505
dnl More compiler warnings
506
dnl ******************************
508
AC_ARG_ENABLE(compile-warnings,
509
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
510
[Turn on compiler warnings]),,
511
[enable_compile_warnings="m4_default([$1],[yes])"])
514
if test "x$GCC" != xyes; then
515
enable_compile_warnings=no
519
realsave_CFLAGS="$CFLAGS"
521
case "$enable_compile_warnings" in
526
warning_flags="-Wall"
529
warning_flags="-Wall -Wmissing-prototypes"
532
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
533
CFLAGS="$warning_flags $CFLAGS"
534
for option in -Wno-sign-compare; do
535
SAVE_CFLAGS="$CFLAGS"
536
CFLAGS="$CFLAGS $option"
537
AC_MSG_CHECKING([whether gcc understands $option])
538
AC_TRY_COMPILE([], [],
541
CFLAGS="$SAVE_CFLAGS"
542
AC_MSG_RESULT($has_option)
543
if test $has_option = yes; then
544
warning_flags="$warning_flags $option"
550
if test "$enable_compile_warnings" = "error" ; then
551
warning_flags="$warning_flags -Werror"
555
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
558
CFLAGS="$realsave_CFLAGS"
559
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
560
AC_MSG_RESULT($warning_flags)
563
AC_HELP_STRING([--enable-iso-c],
564
[Try to warn if code is not ISO C ]),,
567
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
569
if test "x$enable_iso_c" != "xno"; then
570
if test "x$GCC" = "xyes"; then
572
*[\ \ ]-ansi[\ \ ]*) ;;
573
*) complCFLAGS="$complCFLAGS -ansi" ;;
576
*[\ \ ]-pedantic[\ \ ]*) ;;
577
*) complCFLAGS="$complCFLAGS -pedantic" ;;
581
AC_MSG_RESULT($complCFLAGS)
583
WARN_CFLAGS="$warning_flags $complCFLAGS"
584
AC_SUBST(WARN_CFLAGS)
587
dnl For C++, do basically the same thing.
589
AC_DEFUN([GNOME_CXX_WARNINGS],[
590
AC_ARG_ENABLE(cxx-warnings,
591
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
592
[Turn on compiler warnings.]),,
593
[enable_cxx_warnings="m4_default([$1],[minimum])"])
595
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
597
if test "x$GXX" != xyes; then
598
enable_cxx_warnings=no
600
if test "x$enable_cxx_warnings" != "xno"; then
601
if test "x$GXX" = "xyes"; then
602
case " $CXXFLAGS " in
603
*[\ \ ]-Wall[\ \ ]*) ;;
604
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
607
## -W is not all that useful. And it cannot be controlled
608
## with individual -Wno-xxx flags, unlike -Wall
609
if test "x$enable_cxx_warnings" = "xyes"; then
610
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
614
AC_MSG_RESULT($warnCXXFLAGS)
616
AC_ARG_ENABLE(iso-cxx,
617
AC_HELP_STRING([--enable-iso-cxx],
618
[Try to warn if code is not ISO C++ ]),,
621
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
623
if test "x$enable_iso_cxx" != "xno"; then
624
if test "x$GXX" = "xyes"; then
625
case " $CXXFLAGS " in
626
*[\ \ ]-ansi[\ \ ]*) ;;
627
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
630
case " $CXXFLAGS " in
631
*[\ \ ]-pedantic[\ \ ]*) ;;
632
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
636
AC_MSG_RESULT($complCXXFLAGS)
638
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
639
AC_SUBST(WARN_CXXFLAGS)
643
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
644
# serial 40 IT_PROG_INTLTOOL
645
AC_DEFUN([IT_PROG_INTLTOOL], [
647
AC_REQUIRE([AM_NLS])dnl
649
case "$am__api_version" in
651
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
657
if test -n "$1"; then
658
AC_MSG_CHECKING([for intltool >= $1])
660
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
661
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
662
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
664
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
665
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
666
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
669
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
670
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
671
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
672
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
673
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
676
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
677
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
678
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
679
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
680
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
681
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
682
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
683
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
684
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
685
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
686
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
687
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
688
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
689
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
690
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
691
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
692
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
693
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
694
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
696
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
697
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
698
_IT_SUBST(INTLTOOL_KEYS_RULE)
699
_IT_SUBST(INTLTOOL_PROP_RULE)
700
_IT_SUBST(INTLTOOL_OAF_RULE)
701
_IT_SUBST(INTLTOOL_PONG_RULE)
702
_IT_SUBST(INTLTOOL_SERVER_RULE)
703
_IT_SUBST(INTLTOOL_SHEET_RULE)
704
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
705
_IT_SUBST(INTLTOOL_UI_RULE)
706
_IT_SUBST(INTLTOOL_XAM_RULE)
707
_IT_SUBST(INTLTOOL_KBD_RULE)
708
_IT_SUBST(INTLTOOL_XML_RULE)
709
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
710
_IT_SUBST(INTLTOOL_CAVES_RULE)
711
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
712
_IT_SUBST(INTLTOOL_THEME_RULE)
713
_IT_SUBST(INTLTOOL_SERVICE_RULE)
714
_IT_SUBST(INTLTOOL_POLICY_RULE)
716
# Check the gettext tools to make sure they are GNU
717
AC_PATH_PROG(XGETTEXT, xgettext)
718
AC_PATH_PROG(MSGMERGE, msgmerge)
719
AC_PATH_PROG(MSGFMT, msgfmt)
720
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
721
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
722
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
724
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
725
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
726
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
727
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
728
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
731
AC_PATH_PROG(INTLTOOL_PERL, perl)
732
if test -z "$INTLTOOL_PERL"; then
733
AC_MSG_ERROR([perl not found])
735
AC_MSG_CHECKING([for perl >= 5.8.1])
736
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
737
if test $? -ne 0; then
738
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
740
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
741
AC_MSG_RESULT([$IT_PERL_VERSION])
743
if test "x$2" != "xno-xml"; then
744
AC_MSG_CHECKING([for XML::Parser])
745
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
748
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
752
# Substitute ALL_LINGUAS so we can use it in po/Makefile
753
AC_SUBST(ALL_LINGUAS)
755
# Set DATADIRNAME correctly if it is not set yet
756
# (copied from glib-gettext.m4)
757
if test -z "$DATADIRNAME"; then
759
[AC_LANG_PROGRAM([[]],
760
[[extern int _nl_msg_cat_cntr;
761
return _nl_msg_cat_cntr]])],
765
dnl On Solaris, if bind_textdomain_codeset is in libc,
766
dnl GNU format message catalog is always supported,
767
dnl since both are added to the libc all together.
768
dnl Hence, we'd like to go with DATADIRNAME=share
770
AC_CHECK_FUNC(bind_textdomain_codeset,
771
[DATADIRNAME=share], [DATADIRNAME=lib])
778
AC_SUBST(DATADIRNAME)
785
# IT_PO_SUBDIR(DIRNAME)
786
# ---------------------
787
# All po subdirs have to be declared with this macro; the subdir "po" is
788
# declared by IT_PROG_INTLTOOL.
790
AC_DEFUN([IT_PO_SUBDIR],
791
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
793
dnl The following CONFIG_COMMANDS should be exetuted at the very end
794
dnl of config.status.
795
AC_CONFIG_COMMANDS_PRE([
796
AC_CONFIG_COMMANDS([$1/stamp-it], [
797
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
798
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
800
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
805
'"s|^| $ac_top_srcdir/|" \
806
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
808
[sed '/^POTFILES =/,/[^\\]$/ {
812
' "$1/Makefile.in" >"$1/Makefile"]
813
rm -f "$1/Makefile.tmp"
814
mv "$1/stamp-it.tmp" "$1/stamp-it"
819
# _IT_SUBST(VARIABLE)
820
# -------------------
821
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
823
AC_DEFUN([_IT_SUBST],
826
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
831
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
832
# A hint is needed for aclocal from Automake <= 1.9.4:
833
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
836
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
838
24
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
9987
9191
AC_SUBST([am__untar])
9988
9192
]) # _AM_PROG_TAR
9194
dnl AM_GCONF_SOURCE_2
9195
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
9196
dnl (i.e. pass to gconftool-2
9197
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
9198
dnl you should install foo.schemas files
9201
AC_DEFUN([AM_GCONF_SOURCE_2],
9203
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
9204
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
9206
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
9209
AC_ARG_WITH([gconf-source],
9210
AC_HELP_STRING([--with-gconf-source=sourceaddress],
9211
[Config database for installing schema files.]),
9212
[GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
9214
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
9215
AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
9217
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
9218
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
9221
AC_ARG_WITH([gconf-schema-file-dir],
9222
AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
9223
[Directory for installing schema files.]),
9224
[GCONF_SCHEMA_FILE_DIR="$withval"],)
9226
AC_SUBST(GCONF_SCHEMA_FILE_DIR)
9227
AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
9229
AC_ARG_ENABLE(schemas-install,
9230
AC_HELP_STRING([--disable-schemas-install],
9231
[Disable the schemas installation]),
9232
[case ${enableval} in
9234
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
9236
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
9239
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
9240
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
9242
# This file is free software, distributed under the terms of the GNU
9243
# General Public License. As a special exception to the GNU General
9244
# Public License, this file may be distributed as part of a program
9245
# that contains a configuration script generated by Autoconf, under
9246
# the same distribution terms as the rest of that program.
9248
# This file can be copied and used freely without restrictions. It can
9249
# be used in projects which are not available under the GNU Public License
9250
# but which still want to provide support for the GNU gettext functionality.
9252
# Macro to add for using GNU gettext.
9253
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
9255
# Modified to never use included libintl.
9256
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
9258
# Major rework to remove unused code
9259
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
9261
# Added better handling of ALL_LINGUAS from GNU gettext version
9262
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
9264
# Modified to require ngettext
9265
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
9267
# We need this here as well, since someone might use autoconf-2.5x
9268
# to configure GLib then an older version to configure a package
9269
# using AM_GLIB_GNU_GETTEXT
9273
dnl We go to great lengths to make sure that aclocal won't
9274
dnl try to pull in the installed version of these macros
9275
dnl when running aclocal in the glib directory.
9277
m4_copy([AC_DEFUN],[glib_DEFUN])
9278
m4_copy([AC_REQUIRE],[glib_REQUIRE])
9280
dnl At the end, if we're not within glib, we'll define the public
9281
dnl definitions in terms of our private definitions.
9285
#--------------------
9286
glib_DEFUN([GLIB_LC_MESSAGES],
9287
[AC_CHECK_HEADERS([locale.h])
9288
if test $ac_cv_header_locale_h = yes; then
9289
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
9290
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
9291
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
9292
if test $am_cv_val_LC_MESSAGES = yes; then
9293
AC_DEFINE(HAVE_LC_MESSAGES, 1,
9294
[Define if your <locale.h> file defines LC_MESSAGES.])
9298
# GLIB_PATH_PROG_WITH_TEST
9299
#----------------------------
9300
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
9301
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
9302
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
9303
[# Extract the first word of "$2", so it can be a program name with args.
9304
set dummy $2; ac_word=[$]2
9305
AC_MSG_CHECKING([for $ac_word])
9306
AC_CACHE_VAL(ac_cv_path_$1,
9309
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
9312
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9313
for ac_dir in ifelse([$5], , $PATH, [$5]); do
9314
test -z "$ac_dir" && ac_dir=.
9315
if test -f $ac_dir/$ac_word; then
9317
ac_cv_path_$1="$ac_dir/$ac_word"
9323
dnl If no 4th arg is given, leave the cache variable unset,
9324
dnl so AC_PATH_PROGS will keep looking.
9325
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
9330
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
9331
AC_MSG_RESULT([$]$1)
9340
glib_DEFUN([GLIB_WITH_NLS],
9341
dnl NLS is obligatory
9345
gt_cv_have_gettext=no
9351
AC_CHECK_HEADER(libintl.h,
9352
[gt_cv_func_dgettext_libintl="no"
9353
libintl_extra_libs=""
9356
# First check in libc
9358
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
9360
#include <libintl.h>
9362
[return !ngettext ("","", 1)],
9363
gt_cv_func_ngettext_libc=yes,
9364
gt_cv_func_ngettext_libc=no)
9367
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9368
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
9370
#include <libintl.h>
9372
[return !dgettext ("","")],
9373
gt_cv_func_dgettext_libc=yes,
9374
gt_cv_func_dgettext_libc=no)
9378
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9379
AC_CHECK_FUNCS(bind_textdomain_codeset)
9383
# If we don't have everything we want, check in libintl
9385
if test "$gt_cv_func_dgettext_libc" != "yes" \
9386
|| test "$gt_cv_func_ngettext_libc" != "yes" \
9387
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
9389
AC_CHECK_LIB(intl, bindtextdomain,
9390
[AC_CHECK_LIB(intl, ngettext,
9391
[AC_CHECK_LIB(intl, dgettext,
9392
gt_cv_func_dgettext_libintl=yes)])])
9394
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
9395
AC_MSG_CHECKING([if -liconv is needed to use gettext])
9397
AC_CHECK_LIB(intl, ngettext,
9398
[AC_CHECK_LIB(intl, dcgettext,
9399
[gt_cv_func_dgettext_libintl=yes
9400
libintl_extra_libs=-liconv],
9406
# If we found libintl, then check in it for bind_textdomain_codeset();
9407
# we'll prefer libc if neither have bind_textdomain_codeset(),
9408
# and both have dgettext and ngettext
9410
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
9411
glib_save_LIBS="$LIBS"
9412
LIBS="$LIBS -lintl $libintl_extra_libs"
9413
unset ac_cv_func_bind_textdomain_codeset
9414
AC_CHECK_FUNCS(bind_textdomain_codeset)
9415
LIBS="$glib_save_LIBS"
9417
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
9418
gt_cv_func_dgettext_libc=no
9420
if test "$gt_cv_func_dgettext_libc" = "yes" \
9421
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
9422
gt_cv_func_dgettext_libintl=no
9428
if test "$gt_cv_func_dgettext_libc" = "yes" \
9429
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
9430
gt_cv_have_gettext=yes
9433
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
9434
INTLLIBS="-lintl $libintl_extra_libs"
9437
if test "$gt_cv_have_gettext" = "yes"; then
9438
AC_DEFINE(HAVE_GETTEXT,1,
9439
[Define if the GNU gettext() function is already present or preinstalled.])
9440
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
9441
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
9442
if test "$MSGFMT" != "no"; then
9443
glib_save_LIBS="$LIBS"
9444
LIBS="$LIBS $INTLLIBS"
9445
AC_CHECK_FUNCS(dcgettext)
9447
AC_MSG_CHECKING([if msgfmt accepts -c])
9448
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
9451
"Content-Type: text/plain; charset=UTF-8\n"
9452
"Project-Id-Version: test 1.0\n"
9453
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
9454
"Last-Translator: test <foo@bar.xx>\n"
9455
"Language-Team: C <LL@li.org>\n"
9456
"MIME-Version: 1.0\n"
9457
"Content-Transfer-Encoding: 8bit\n"
9458
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
9459
AC_SUBST(MSGFMT_OPTS)
9460
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
9461
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
9462
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
9463
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
9464
return _nl_msg_cat_cntr],
9469
dnl On Solaris, if bind_textdomain_codeset is in libc,
9470
dnl GNU format message catalog is always supported,
9471
dnl since both are added to the libc all together.
9472
dnl Hence, we'd like to go with DATADIRNAME=share and
9473
dnl and CATOBJEXT=.gmo in this case.
9474
AC_CHECK_FUNC(bind_textdomain_codeset,
9485
LIBS="$glib_save_LIBS"
9488
gt_cv_have_gettext=no
9493
if test "$gt_cv_have_gettext" = "yes" ; then
9494
AC_DEFINE(ENABLE_NLS, 1,
9495
[always defined to indicate that i18n is enabled])
9498
dnl Test whether we really found GNU xgettext.
9499
if test "$XGETTEXT" != ":"; then
9500
dnl If it is not GNU xgettext we define it as : so that the
9501
dnl Makefiles still can work.
9502
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9506
[found xgettext program is not GNU xgettext; ignore it])
9511
# We need to process the po/ directory.
9515
[case "$CONFIG_FILES" in *po/Makefile.in*)
9516
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9519
dnl These rules are solely for the distribution goal. While doing this
9520
dnl we only have to keep exactly one list of the available catalogs
9521
dnl in configure.in.
9522
for lang in $ALL_LINGUAS; do
9523
GMOFILES="$GMOFILES $lang.gmo"
9524
POFILES="$POFILES $lang.po"
9527
dnl Make all variables we use known to autoconf.
9530
AC_SUBST(DATADIRNAME)
9532
AC_SUBST(INSTOBJEXT)
9534
AC_SUBST(PO_IN_DATADIR_TRUE)
9535
AC_SUBST(PO_IN_DATADIR_FALSE)
9540
# AM_GLIB_GNU_GETTEXT
9541
# -------------------
9542
# Do checks necessary for use of gettext. If a suitable implementation
9543
# of gettext is found in either in libintl or in the C library,
9544
# it will set INTLLIBS to the libraries needed for use of gettext
9545
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
9546
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
9547
# on various variables needed by the Makefile.in.in installed by
9550
glib_DEFUN([GLIB_GNU_GETTEXT],
9551
[AC_REQUIRE([AC_PROG_CC])dnl
9552
AC_REQUIRE([AC_HEADER_STDC])dnl
9557
if test "$gt_cv_have_gettext" = "yes"; then
9558
if test "x$ALL_LINGUAS" = "x"; then
9561
AC_MSG_CHECKING(for catalogs to be installed)
9563
for presentlang in $ALL_LINGUAS; do
9565
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
9566
desiredlanguages="$LINGUAS"
9568
desiredlanguages="$ALL_LINGUAS"
9570
for desiredlang in $desiredlanguages; do
9571
# Use the presentlang catalog if desiredlang is
9572
# a. equal to presentlang, or
9573
# b. a variant of presentlang (because in this case,
9574
# presentlang can be used as a fallback for messages
9575
# which are not translated in the desiredlang catalog).
9576
case "$desiredlang" in
9577
"$presentlang"*) useit=yes;;
9580
if test $useit = yes; then
9581
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
9584
LINGUAS=$NEW_LINGUAS
9585
AC_MSG_RESULT($LINGUAS)
9588
dnl Construct list of names of catalog files to be constructed.
9589
if test -n "$LINGUAS"; then
9590
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9594
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
9595
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
9596
dnl Try to locate is.
9598
if test -n "$ac_aux_dir"; then
9599
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
9601
if test -z "$MKINSTALLDIRS"; then
9602
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9604
AC_SUBST(MKINSTALLDIRS)
9606
dnl Generate list of files to be processed by xgettext which will
9607
dnl be included in po/Makefile.
9608
test -d po || mkdir po
9609
if test "x$srcdir" != "x."; then
9610
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9611
posrcprefix="$srcdir/"
9613
posrcprefix="../$srcdir/"
9619
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9620
< $srcdir/po/POTFILES.in > po/POTFILES
9623
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
9624
# -------------------------------
9625
# Define VARIABLE to the location where catalog files will
9626
# be installed by po/Makefile.
9627
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
9628
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
9629
glib_save_prefix="$prefix"
9630
glib_save_exec_prefix="$exec_prefix"
9631
glib_save_datarootdir="$datarootdir"
9632
test "x$prefix" = xNONE && prefix=$ac_default_prefix
9633
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
9634
datarootdir=`eval echo "${datarootdir}"`
9635
if test "x$CATOBJEXT" = "x.mo" ; then
9636
localedir=`eval echo "${libdir}/locale"`
9638
localedir=`eval echo "${datadir}/locale"`
9640
prefix="$glib_save_prefix"
9641
exec_prefix="$glib_save_exec_prefix"
9642
datarootdir="$glib_save_datarootdir"
9643
AC_DEFINE_UNQUOTED($1, "$localedir",
9644
[Define the location where the catalogs will be installed])
9648
dnl Now the definitions that aclocal will find
9650
ifdef(glib_configure_in,[],[
9651
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
9652
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
9655
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
9657
# Create a temporary file with TEST-FILE as its contents and pass the
9658
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
9659
# 0 and perform ACTION-IF-FAIL for any other exit status.
9660
AC_DEFUN([GLIB_RUN_PROG],
9661
[cat >conftest.foo <<_ACEOF
9664
if AC_RUN_LOG([$1 conftest.foo]); then
9665
m4_ifval([$3], [$3], [:])
9666
m4_ifvaln([$4], [else $4])dnl
9667
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
9668
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
9672
dnl GNOME_COMPILE_WARNINGS
9673
dnl Turn on many useful compiler warnings
9674
dnl For now, only works on GCC
9675
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
9676
dnl ******************************
9677
dnl More compiler warnings
9678
dnl ******************************
9680
AC_ARG_ENABLE(compile-warnings,
9681
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
9682
[Turn on compiler warnings]),,
9683
[enable_compile_warnings="m4_default([$1],[yes])"])
9686
if test "x$GCC" != xyes; then
9687
enable_compile_warnings=no
9691
realsave_CFLAGS="$CFLAGS"
9693
case "$enable_compile_warnings" in
9698
warning_flags="-Wall"
9701
warning_flags="-Wall -Wmissing-prototypes"
9704
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
9705
CFLAGS="$warning_flags $CFLAGS"
9706
for option in -Wno-sign-compare; do
9707
SAVE_CFLAGS="$CFLAGS"
9708
CFLAGS="$CFLAGS $option"
9709
AC_MSG_CHECKING([whether gcc understands $option])
9710
AC_TRY_COMPILE([], [],
9713
CFLAGS="$SAVE_CFLAGS"
9714
AC_MSG_RESULT($has_option)
9715
if test $has_option = yes; then
9716
warning_flags="$warning_flags $option"
9722
if test "$enable_compile_warnings" = "error" ; then
9723
warning_flags="$warning_flags -Werror"
9727
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
9730
CFLAGS="$realsave_CFLAGS"
9731
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
9732
AC_MSG_RESULT($warning_flags)
9734
AC_ARG_ENABLE(iso-c,
9735
AC_HELP_STRING([--enable-iso-c],
9736
[Try to warn if code is not ISO C ]),,
9739
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
9741
if test "x$enable_iso_c" != "xno"; then
9742
if test "x$GCC" = "xyes"; then
9744
*[\ \ ]-ansi[\ \ ]*) ;;
9745
*) complCFLAGS="$complCFLAGS -ansi" ;;
9748
*[\ \ ]-pedantic[\ \ ]*) ;;
9749
*) complCFLAGS="$complCFLAGS -pedantic" ;;
9753
AC_MSG_RESULT($complCFLAGS)
9755
WARN_CFLAGS="$warning_flags $complCFLAGS"
9756
AC_SUBST(WARN_CFLAGS)
9759
dnl For C++, do basically the same thing.
9761
AC_DEFUN([GNOME_CXX_WARNINGS],[
9762
AC_ARG_ENABLE(cxx-warnings,
9763
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
9764
[Turn on compiler warnings.]),,
9765
[enable_cxx_warnings="m4_default([$1],[minimum])"])
9767
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
9769
if test "x$GXX" != xyes; then
9770
enable_cxx_warnings=no
9772
if test "x$enable_cxx_warnings" != "xno"; then
9773
if test "x$GXX" = "xyes"; then
9774
case " $CXXFLAGS " in
9775
*[\ \ ]-Wall[\ \ ]*) ;;
9776
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
9779
## -W is not all that useful. And it cannot be controlled
9780
## with individual -Wno-xxx flags, unlike -Wall
9781
if test "x$enable_cxx_warnings" = "xyes"; then
9782
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
9786
AC_MSG_RESULT($warnCXXFLAGS)
9788
AC_ARG_ENABLE(iso-cxx,
9789
AC_HELP_STRING([--enable-iso-cxx],
9790
[Try to warn if code is not ISO C++ ]),,
9791
[enable_iso_cxx=no])
9793
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
9795
if test "x$enable_iso_cxx" != "xno"; then
9796
if test "x$GXX" = "xyes"; then
9797
case " $CXXFLAGS " in
9798
*[\ \ ]-ansi[\ \ ]*) ;;
9799
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
9802
case " $CXXFLAGS " in
9803
*[\ \ ]-pedantic[\ \ ]*) ;;
9804
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
9808
AC_MSG_RESULT($complCXXFLAGS)
9810
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
9811
AC_SUBST(WARN_CXXFLAGS)
9815
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
9816
# serial 40 IT_PROG_INTLTOOL
9817
AC_DEFUN([IT_PROG_INTLTOOL], [
9818
AC_PREREQ([2.50])dnl
9819
AC_REQUIRE([AM_NLS])dnl
9821
case "$am__api_version" in
9823
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
9829
if test -n "$1"; then
9830
AC_MSG_CHECKING([for intltool >= $1])
9832
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
9833
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
9834
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
9836
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
9837
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
9838
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
9841
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
9842
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
9843
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
9844
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
9845
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
9848
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9849
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9850
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9851
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9852
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
9853
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9854
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9855
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9856
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9857
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9858
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9859
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
9860
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9861
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9862
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9863
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9864
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9865
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9866
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9868
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
9869
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
9870
_IT_SUBST(INTLTOOL_KEYS_RULE)
9871
_IT_SUBST(INTLTOOL_PROP_RULE)
9872
_IT_SUBST(INTLTOOL_OAF_RULE)
9873
_IT_SUBST(INTLTOOL_PONG_RULE)
9874
_IT_SUBST(INTLTOOL_SERVER_RULE)
9875
_IT_SUBST(INTLTOOL_SHEET_RULE)
9876
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
9877
_IT_SUBST(INTLTOOL_UI_RULE)
9878
_IT_SUBST(INTLTOOL_XAM_RULE)
9879
_IT_SUBST(INTLTOOL_KBD_RULE)
9880
_IT_SUBST(INTLTOOL_XML_RULE)
9881
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
9882
_IT_SUBST(INTLTOOL_CAVES_RULE)
9883
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
9884
_IT_SUBST(INTLTOOL_THEME_RULE)
9885
_IT_SUBST(INTLTOOL_SERVICE_RULE)
9886
_IT_SUBST(INTLTOOL_POLICY_RULE)
9888
# Check the gettext tools to make sure they are GNU
9889
AC_PATH_PROG(XGETTEXT, xgettext)
9890
AC_PATH_PROG(MSGMERGE, msgmerge)
9891
AC_PATH_PROG(MSGFMT, msgfmt)
9892
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
9893
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
9894
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
9896
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
9897
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
9898
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
9899
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
9900
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
9903
AC_PATH_PROG(INTLTOOL_PERL, perl)
9904
if test -z "$INTLTOOL_PERL"; then
9905
AC_MSG_ERROR([perl not found])
9907
AC_MSG_CHECKING([for perl >= 5.8.1])
9908
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
9909
if test $? -ne 0; then
9910
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
9912
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
9913
AC_MSG_RESULT([$IT_PERL_VERSION])
9915
if test "x$2" != "xno-xml"; then
9916
AC_MSG_CHECKING([for XML::Parser])
9917
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
9920
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
9924
# Substitute ALL_LINGUAS so we can use it in po/Makefile
9925
AC_SUBST(ALL_LINGUAS)
9927
# Set DATADIRNAME correctly if it is not set yet
9928
# (copied from glib-gettext.m4)
9929
if test -z "$DATADIRNAME"; then
9931
[AC_LANG_PROGRAM([[]],
9932
[[extern int _nl_msg_cat_cntr;
9933
return _nl_msg_cat_cntr]])],
9934
[DATADIRNAME=share],
9937
dnl On Solaris, if bind_textdomain_codeset is in libc,
9938
dnl GNU format message catalog is always supported,
9939
dnl since both are added to the libc all together.
9940
dnl Hence, we'd like to go with DATADIRNAME=share
9942
AC_CHECK_FUNC(bind_textdomain_codeset,
9943
[DATADIRNAME=share], [DATADIRNAME=lib])
9950
AC_SUBST(DATADIRNAME)
9957
# IT_PO_SUBDIR(DIRNAME)
9958
# ---------------------
9959
# All po subdirs have to be declared with this macro; the subdir "po" is
9960
# declared by IT_PROG_INTLTOOL.
9962
AC_DEFUN([IT_PO_SUBDIR],
9963
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
9965
dnl The following CONFIG_COMMANDS should be exetuted at the very end
9966
dnl of config.status.
9967
AC_CONFIG_COMMANDS_PRE([
9968
AC_CONFIG_COMMANDS([$1/stamp-it], [
9969
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
9970
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
9972
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
9977
'"s|^| $ac_top_srcdir/|" \
9978
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
9980
[sed '/^POTFILES =/,/[^\\]$/ {
9984
' "$1/Makefile.in" >"$1/Makefile"]
9985
rm -f "$1/Makefile.tmp"
9986
mv "$1/stamp-it.tmp" "$1/stamp-it"
9991
# _IT_SUBST(VARIABLE)
9992
# -------------------
9993
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
9995
AC_DEFUN([_IT_SUBST],
9998
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
10002
# deprecated macros
10003
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
10004
# A hint is needed for aclocal from Automake <= 1.9.4:
10005
# AC_DEFUN([AC_PROG_INTLTOOL], ...)