1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005 Free Software Foundation, Inc.
4
# 2005, 2006 Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
15
[m4_fatal([this file was generated for autoconf 2.61.
16
You have another version of autoconf. If you want to use that,
17
you should regenerate the build system entirely.], [63])])
14
19
dnl AM_GCONF_SOURCE_2
15
20
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
16
21
dnl (i.e. pass to gconftool-2
258
264
glib_save_LIBS="$LIBS"
259
265
LIBS="$LIBS $INTLLIBS"
260
266
AC_CHECK_FUNCS(dcgettext)
268
AC_MSG_CHECKING([if msgfmt accepts -c])
269
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
272
"Content-Type: text/plain; charset=UTF-8\n"
273
"Project-Id-Version: test 1.0\n"
274
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
275
"Last-Translator: test <foo@bar.xx>\n"
276
"Language-Team: C <LL@li.org>\n"
277
"MIME-Version: 1.0\n"
278
"Content-Transfer-Encoding: 8bit\n"
279
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
280
AC_SUBST(MSGFMT_OPTS)
261
281
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
262
282
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
263
283
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
429
449
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
430
450
glib_save_prefix="$prefix"
431
451
glib_save_exec_prefix="$exec_prefix"
452
glib_save_datarootdir="$datarootdir"
432
453
test "x$prefix" = xNONE && prefix=$ac_default_prefix
433
454
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
455
datarootdir=`eval echo "${datarootdir}"`
434
456
if test "x$CATOBJEXT" = "x.mo" ; then
435
457
localedir=`eval echo "${libdir}/locale"`
450
473
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
476
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
478
# Create a temporary file with TEST-FILE as its contents and pass the
479
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
480
# 0 and perform ACTION-IF-FAIL for any other exit status.
481
AC_DEFUN([GLIB_RUN_PROG],
482
[cat >conftest.foo <<_ACEOF
485
if AC_RUN_LOG([$1 conftest.foo]); then
486
m4_ifval([$3], [$3], [:])
487
m4_ifvaln([$4], [else $4])dnl
488
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
489
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
453
493
# gnome-common.m4
596
636
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
598
if test "x$GCC" != xyes; then
599
enable_compile_warnings=no
638
if test "x$GXX" != xyes; then
639
enable_cxx_warnings=no
601
641
if test "x$enable_cxx_warnings" != "xno"; then
602
if test "x$GCC" = "xyes"; then
642
if test "x$GXX" = "xyes"; then
603
643
case " $CXXFLAGS " in
604
644
*[\ \ ]-Wall[\ \ ]*) ;;
605
645
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
684
724
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 $< [$]@'
685
725
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 $< [$]@'
686
726
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 $< [$]@'
727
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 $< [$]@'
688
729
AC_SUBST(INTLTOOL_DESKTOP_RULE)
689
730
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
728
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
729
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
730
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
731
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
733
770
# Substitute ALL_LINGUAS so we can use it in po/Makefile
734
771
AC_SUBST(ALL_LINGUAS)
773
# Set DATADIRNAME correctly if it is not set yet
774
# (copied from glib-gettext.m4)
775
if test -z "$DATADIRNAME"; then
777
[AC_LANG_PROGRAM([[]],
778
[[extern int _nl_msg_cat_cntr;
779
return _nl_msg_cat_cntr]])],
783
dnl On Solaris, if bind_textdomain_codeset is in libc,
784
dnl GNU format message catalog is always supported,
785
dnl since both are added to the libc all together.
786
dnl Hence, we'd like to go with DATADIRNAME=share
788
AC_CHECK_FUNC(bind_textdomain_codeset,
789
[DATADIRNAME=share], [DATADIRNAME=lib])
796
AC_SUBST(DATADIRNAME)
736
798
IT_PO_SUBDIR([po])
738
800
dnl The following is very similar to
755
817
for file in intltool-extract intltool-merge intltool-update; do
756
818
sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
757
819
-e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
758
-e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
759
-e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
760
-e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
761
-e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
762
820
-e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
763
821
< ${ac_aux_dir}/${file}.in > ${file}.out
764
822
if cmp -s ${file} ${file}.out 2>/dev/null; then
980
1037
])# PKG_CHECK_MODULES
982
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
1039
# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
984
1041
# This file is free software; the Free Software Foundation
985
1042
# gives unlimited permission to copy and/or distribute it,
989
1046
# ----------------------------
990
1047
# Automake X.Y traces this macro to ensure aclocal.m4 has been
991
1048
# generated from the m4 files accompanying Automake X.Y.
992
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
1049
# (This private macro should not be called outside this file.)
1050
AC_DEFUN([AM_AUTOMAKE_VERSION],
1051
[am__api_version='1.10'
1052
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
1053
dnl require some minimum version. Point them to the right macro.
1054
m4_if([$1], [1.10], [],
1055
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
1058
# _AM_AUTOCONF_VERSION(VERSION)
1059
# -----------------------------
1060
# aclocal traces this macro to find the Autoconf version.
1061
# This is a private macro too. Using m4_define simplifies
1062
# the logic in aclocal, which can simply ignore this definition.
1063
m4_define([_AM_AUTOCONF_VERSION], [])
994
1065
# AM_SET_CURRENT_AUTOMAKE_VERSION
995
1066
# -------------------------------
996
# Call AM_AUTOMAKE_VERSION so it can be traced.
1067
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
997
1068
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
998
1069
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
999
[AM_AUTOMAKE_VERSION([1.9.6])])
1070
[AM_AUTOMAKE_VERSION([1.10])dnl
1071
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
1001
1073
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
1054
1126
# AM_CONDITIONAL -*- Autoconf -*-
1056
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
1128
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
1057
1129
# Free Software Foundation, Inc.
1059
1131
# This file is free software; the Free Software Foundation
1060
1132
# gives unlimited permission to copy and/or distribute it,
1061
1133
# with or without modifications, as long as this notice is preserved.
1065
1137
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1066
1138
# -------------------------------------
1084
1158
Usually this means the macro was only invoked conditionally.]])
1088
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
1161
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
1089
1162
# Free Software Foundation, Inc.
1091
1164
# This file is free software; the Free Software Foundation
1092
1165
# gives unlimited permission to copy and/or distribute it,
1093
1166
# with or without modifications, as long as this notice is preserved.
1097
1170
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1098
1171
# written in clear, in which case automake, when reading aclocal.m4,
1120
1193
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1121
1194
[$1], CXX, [depcc="$CXX" am_compiler_list=],
1122
1195
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1196
[$1], UPC, [depcc="$UPC" am_compiler_list=],
1123
1197
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1124
1198
[depcc="$$1" am_compiler_list=])
1262
1338
# some people rename them; so instead we look at the file content.
1263
1339
# Grep'ing the first line is not enough: some people post-process
1264
1340
# each Makefile.in and add a new line on top of each file to say so.
1265
# So let's grep whole file.
1266
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1341
# Grep'ing the whole file is not good either: AIX grep has a line
1342
# limit of 2048, but all sed's we know have understand at least 4000.
1343
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
1267
1344
dirpart=`AS_DIRNAME("$mf")`
1311
1388
# Do all the work for Automake. -*- Autoconf -*-
1313
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1314
# Free Software Foundation, Inc.
1390
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1391
# 2005, 2006 Free Software Foundation, Inc.
1316
1393
# This file is free software; the Free Software Foundation
1317
1394
# gives unlimited permission to copy and/or distribute it,
1334
1411
# arguments mandatory, and then we can depend on a new Autoconf
1335
1412
# release and drop the old call support.
1336
1413
AC_DEFUN([AM_INIT_AUTOMAKE],
1337
[AC_PREREQ([2.58])dnl
1414
[AC_PREREQ([2.60])dnl
1338
1415
dnl Autoconf wants to disallow AM_ names. We explicitly allow
1339
1416
dnl the ones we care about.
1340
1417
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1341
1418
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1342
1419
AC_REQUIRE([AC_PROG_INSTALL])dnl
1343
# test to see if srcdir already configured
1344
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1345
test -f $srcdir/config.status; then
1346
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1420
if test "`cd $srcdir && pwd`" != "`pwd`"; then
1421
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1422
# is not polluted with repeated "-I."
1423
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1424
# test to see if srcdir already configured
1425
if test -f $srcdir/config.status; then
1426
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1349
1430
# test whether we have cygpath
1363
1444
AC_SUBST([PACKAGE], [$1])dnl
1364
1445
AC_SUBST([VERSION], [$2])],
1365
1446
[_AM_SET_OPTIONS([$1])dnl
1447
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1448
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1449
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1366
1450
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1367
1451
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1541
1629
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1543
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
1631
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1544
1632
# Free Software Foundation, Inc.
1546
1634
# This file is free software; the Free Software Foundation
1547
1635
# gives unlimited permission to copy and/or distribute it,
1548
1636
# with or without modifications, as long as this notice is preserved.
1552
1640
# AM_MISSING_PROG(NAME, PROGRAM)
1553
1641
# ------------------------------
1563
1651
# If it does, set am_missing_run to use it, otherwise, to nothing.
1564
1652
AC_DEFUN([AM_MISSING_HAS_RUN],
1565
1653
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1654
AC_REQUIRE_AUX_FILE([missing])dnl
1566
1655
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1567
1656
# Use eval to expand $SHELL
1568
1657
if eval "$MISSING --run true"; then
1576
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
1665
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1578
1667
# This file is free software; the Free Software Foundation
1579
1668
# gives unlimited permission to copy and/or distribute it,
1582
1671
# AM_PROG_MKDIR_P
1583
1672
# ---------------
1584
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
1586
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
1587
# created by `make install' are always world readable, even if the
1588
# installer happens to have an overly restrictive umask (e.g. 077).
1589
# This was a mistake. There are at least two reasons why we must not
1591
# - it causes special bits like SGID to be ignored,
1592
# - it may be too restrictive (some setups expect 775 directories).
1594
# Do not use -m 0755 and let people choose whatever they expect by
1597
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
1598
# Some implementations (such as Solaris 8's) are not thread-safe: if a
1599
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
1600
# concurrently, both version can detect that a/ is missing, but only
1601
# one can create it and the other will error out. Consequently we
1602
# restrict ourselves to GNU make (using the --version option ensures
1673
# Check for `mkdir -p'.
1604
1674
AC_DEFUN([AM_PROG_MKDIR_P],
1605
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1606
# We used to keeping the `.' as first argument, in order to
1607
# allow $(mkdir_p) to be used without argument. As in
1608
# $(mkdir_p) $(somedir)
1609
# where $(somedir) is conditionally defined. However this is wrong
1611
# 1. if the package is installed by a user who cannot write `.'
1612
# make install will fail,
1613
# 2. the above comment should most certainly read
1614
# $(mkdir_p) $(DESTDIR)$(somedir)
1615
# so it does not work when $(somedir) is undefined and
1616
# $(DESTDIR) is not.
1617
# To support the latter case, we have to write
1618
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1619
# so the `.' trick is pointless.
1620
mkdir_p='mkdir -p --'
1622
# On NextStep and OpenStep, the `mkdir' command does not
1623
# recognize any option. It will interpret all options as
1624
# directories to create, and then abort because `.' already
1626
for d in ./-p ./--version;
1628
test -d $d && rmdir $d
1630
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1631
if test -f "$ac_aux_dir/mkinstalldirs"; then
1632
mkdir_p='$(mkinstalldirs)'
1634
mkdir_p='$(install_sh) -d'
1637
AC_SUBST([mkdir_p])])
1675
[AC_PREREQ([2.60])dnl
1676
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1677
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1678
dnl while keeping a definition of mkdir_p for backward compatibility.
1679
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1680
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1681
dnl Makefile.ins that do not define MKDIR_P, so we do our own
1682
dnl adjustment using top_builddir (which is defined more often than
1684
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1686
[[\\/$]]* | ?:[[\\/]]*) ;;
1687
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1639
1691
# Helper functions for option handling. -*- Autoconf -*-
1746
1798
if test "$cross_compiling" != no; then
1747
1799
AC_CHECK_TOOL([STRIP], [strip], :)
1749
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1801
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1750
1802
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1804
# Copyright (C) 2006 Free Software Foundation, Inc.
1806
# This file is free software; the Free Software Foundation
1807
# gives unlimited permission to copy and/or distribute it,
1808
# with or without modifications, as long as this notice is preserved.
1810
# _AM_SUBST_NOTMAKE(VARIABLE)
1811
# ---------------------------
1812
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
1813
# This macro is traced by Automake.
1814
AC_DEFUN([_AM_SUBST_NOTMAKE])
1752
1816
# Check how to create a tarball. -*- Autoconf -*-
1754
1818
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.