~ubuntu-branches/ubuntu/precise/mutter/precise

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2011-08-24 14:53:37 UTC
  • mfrom: (0.9.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110824145337-ciqrupsuyrbyfg3l
Tags: 3.1.4-0ubuntu1
* New upstream release
  - Fix Adwaita window decoration (LP: #828543)
* debian/control.in: Bump libclutter-1.0-dev build-dependency to 1.7.5
* debian/patches/03_link_gles2.patch: Refreshed
* debian/libmutter0.symbols: Adjust .symbols file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1238
1238
AC_SUBST([am__untar])
1239
1239
]) # _AM_PROG_TAR
1240
1240
 
1241
 
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
1242
 
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
1243
 
AC_DEFUN([GNOME_DOC_DEFINES],
1244
 
[
1245
 
AC_ARG_WITH([help-dir],
1246
 
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
1247
 
  [with_help_dir='${datadir}/gnome/help'])
1248
 
HELP_DIR="$with_help_dir"
1249
 
AC_SUBST(HELP_DIR)
1250
 
 
1251
 
AC_ARG_WITH([omf-dir],
1252
 
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
1253
 
  [with_omf_dir='${datadir}/omf'])
1254
 
OMF_DIR="$with_omf_dir"
1255
 
AC_SUBST(OMF_DIR)
1256
 
 
1257
 
AC_ARG_WITH([help-formats],
1258
 
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
1259
 
  [with_help_formats=''])
1260
 
DOC_USER_FORMATS="$with_help_formats"
1261
 
AC_SUBST(DOC_USER_FORMATS)
1262
 
 
1263
 
AC_ARG_ENABLE([scrollkeeper],
1264
 
        [AC_HELP_STRING([--disable-scrollkeeper],
1265
 
                        [do not make updates to the scrollkeeper database])],,
1266
 
        enable_scrollkeeper=yes)
1267
 
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
1268
 
 
1269
 
dnl disable scrollkeeper automatically for distcheck
1270
 
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
1271
 
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
1272
 
 
1273
 
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
1274
 
])
1275
 
 
1276
 
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
1277
 
#
1278
 
AC_DEFUN([GNOME_DOC_INIT],
1279
 
[AC_REQUIRE([AC_PROG_LN_S])dnl
1280
 
 
1281
 
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
1282
 
 
1283
 
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
1284
 
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
1285
 
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
1286
 
 
1287
 
if test "$gdu_cv_have_gdu" = "yes"; then
1288
 
        AC_MSG_RESULT([yes])
1289
 
        ifelse([$2],,[:],[$2])
1290
 
else
1291
 
        AC_MSG_RESULT([no])
1292
 
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
1293
 
fi
1294
 
 
1295
 
GNOME_DOC_DEFINES
1296
 
])
1297
 
 
1298
 
 
1299
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
1300
 
# serial 40 IT_PROG_INTLTOOL
1301
 
AC_DEFUN([IT_PROG_INTLTOOL], [
1302
 
AC_PREREQ([2.50])dnl
1303
 
AC_REQUIRE([AM_NLS])dnl
1304
 
 
1305
 
case "$am__api_version" in
1306
 
    1.[01234])
1307
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
1308
 
    ;;
1309
 
    *)
1310
 
    ;;
1311
 
esac
1312
 
 
1313
 
if test -n "$1"; then
1314
 
    AC_MSG_CHECKING([for intltool >= $1])
1315
 
 
1316
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1317
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
1318
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1319
 
    ]
1320
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
1321
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
1322
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
1323
 
fi
1324
 
 
1325
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
1326
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
1327
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
1328
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
1329
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
1330
 
fi
1331
 
 
1332
 
  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 $< [$]@' 
1333
 
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 $< [$]@' 
1334
 
     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 $< [$]@' 
1335
 
     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 $< [$]@' 
1336
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
1337
 
     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 $< [$]@' 
1338
 
   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 $< [$]@' 
1339
 
    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 $< [$]@' 
1340
 
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 $< [$]@' 
1341
 
       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 $< [$]@' 
1342
 
      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 $< [$]@' 
1343
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
1344
 
      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 $< [$]@' 
1345
 
      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 $< [$]@' 
1346
 
    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 $< [$]@' 
1347
 
  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 $< [$]@' 
1348
 
    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 $< [$]@' 
1349
 
    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 $< [$]@'
1350
 
   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 $< [$]@'
1351
 
 
1352
 
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
1353
 
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
1354
 
_IT_SUBST(INTLTOOL_KEYS_RULE)
1355
 
_IT_SUBST(INTLTOOL_PROP_RULE)
1356
 
_IT_SUBST(INTLTOOL_OAF_RULE)
1357
 
_IT_SUBST(INTLTOOL_PONG_RULE)
1358
 
_IT_SUBST(INTLTOOL_SERVER_RULE)
1359
 
_IT_SUBST(INTLTOOL_SHEET_RULE)
1360
 
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
1361
 
_IT_SUBST(INTLTOOL_UI_RULE)
1362
 
_IT_SUBST(INTLTOOL_XAM_RULE)
1363
 
_IT_SUBST(INTLTOOL_KBD_RULE)
1364
 
_IT_SUBST(INTLTOOL_XML_RULE)
1365
 
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
1366
 
_IT_SUBST(INTLTOOL_CAVES_RULE)
1367
 
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
1368
 
_IT_SUBST(INTLTOOL_THEME_RULE)
1369
 
_IT_SUBST(INTLTOOL_SERVICE_RULE)
1370
 
_IT_SUBST(INTLTOOL_POLICY_RULE)
1371
 
 
1372
 
# Check the gettext tools to make sure they are GNU
1373
 
AC_PATH_PROG(XGETTEXT, xgettext)
1374
 
AC_PATH_PROG(MSGMERGE, msgmerge)
1375
 
AC_PATH_PROG(MSGFMT, msgfmt)
1376
 
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1377
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
1378
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1379
 
fi
1380
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
1381
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
1382
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
1383
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
1384
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1385
 
fi
1386
 
 
1387
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
1388
 
if test -z "$INTLTOOL_PERL"; then
1389
 
   AC_MSG_ERROR([perl not found])
1390
 
fi
1391
 
AC_MSG_CHECKING([for perl >= 5.8.1])
1392
 
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
1393
 
if test $? -ne 0; then
1394
 
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
1395
 
else
1396
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
1397
 
   AC_MSG_RESULT([$IT_PERL_VERSION])
1398
 
fi
1399
 
if test "x$2" != "xno-xml"; then
1400
 
   AC_MSG_CHECKING([for XML::Parser])
1401
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
1402
 
       AC_MSG_RESULT([ok])
1403
 
   else
1404
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
1405
 
   fi
1406
 
fi
1407
 
 
1408
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
1409
 
AC_SUBST(ALL_LINGUAS)
1410
 
 
1411
 
# Set DATADIRNAME correctly if it is not set yet
1412
 
# (copied from glib-gettext.m4)
1413
 
if test -z "$DATADIRNAME"; then
1414
 
  AC_LINK_IFELSE(
1415
 
    [AC_LANG_PROGRAM([[]],
1416
 
                     [[extern int _nl_msg_cat_cntr;
1417
 
                       return _nl_msg_cat_cntr]])],
1418
 
    [DATADIRNAME=share],
1419
 
    [case $host in
1420
 
    *-*-solaris*)
1421
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
1422
 
    dnl GNU format message catalog is always supported,
1423
 
    dnl since both are added to the libc all together.
1424
 
    dnl Hence, we'd like to go with DATADIRNAME=share
1425
 
    dnl in this case.
1426
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
1427
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
1428
 
    ;;
1429
 
    *)
1430
 
    [DATADIRNAME=lib]
1431
 
    ;;
1432
 
    esac])
1433
 
fi
1434
 
AC_SUBST(DATADIRNAME)
1435
 
 
1436
 
IT_PO_SUBDIR([po])
1437
 
 
1438
 
])
1439
 
 
1440
 
 
1441
 
# IT_PO_SUBDIR(DIRNAME)
1442
 
# ---------------------
1443
 
# All po subdirs have to be declared with this macro; the subdir "po" is
1444
 
# declared by IT_PROG_INTLTOOL.
1445
 
#
1446
 
AC_DEFUN([IT_PO_SUBDIR],
1447
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
1448
 
dnl
1449
 
dnl The following CONFIG_COMMANDS should be executed at the very end
1450
 
dnl of config.status.
1451
 
AC_CONFIG_COMMANDS_PRE([
1452
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
1453
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
1454
 
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
1455
 
    fi
1456
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
1457
 
    >"$1/stamp-it.tmp"
1458
 
    [sed '/^#/d
1459
 
         s/^[[].*] *//
1460
 
         /^[    ]*$/d
1461
 
        '"s|^|  $ac_top_srcdir/|" \
1462
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1463
 
    ]
1464
 
    [sed '/^POTFILES =/,/[^\\]$/ {
1465
 
                /^POTFILES =/!d
1466
 
                r $1/POTFILES
1467
 
          }
1468
 
         ' "$1/Makefile.in" >"$1/Makefile"]
1469
 
    rm -f "$1/Makefile.tmp"
1470
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
1471
 
  ])
1472
 
])dnl
1473
 
])
1474
 
 
1475
 
# _IT_SUBST(VARIABLE)
1476
 
# -------------------
1477
 
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1478
 
#
1479
 
AC_DEFUN([_IT_SUBST],
1480
 
[
1481
 
AC_SUBST([$1])
1482
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1483
 
]
1484
 
)
1485
 
 
1486
 
# deprecated macros
1487
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1488
 
# A hint is needed for aclocal from Automake <= 1.9.4:
1489
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
1490
 
 
1491
 
 
1492
1241
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1493
1242
#
1494
1243
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
10801
10550
fi])
10802
10551
 
10803
10552
 
 
10553
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
 
10554
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
 
10555
AC_DEFUN([GNOME_DOC_DEFINES],
 
10556
[
 
10557
AC_ARG_WITH([help-dir],
 
10558
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
 
10559
  [with_help_dir='${datadir}/gnome/help'])
 
10560
HELP_DIR="$with_help_dir"
 
10561
AC_SUBST(HELP_DIR)
 
10562
 
 
10563
AC_ARG_WITH([omf-dir],
 
10564
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
 
10565
  [with_omf_dir='${datadir}/omf'])
 
10566
OMF_DIR="$with_omf_dir"
 
10567
AC_SUBST(OMF_DIR)
 
10568
 
 
10569
AC_ARG_WITH([help-formats],
 
10570
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
 
10571
  [with_help_formats=''])
 
10572
DOC_USER_FORMATS="$with_help_formats"
 
10573
AC_SUBST(DOC_USER_FORMATS)
 
10574
 
 
10575
AC_ARG_ENABLE([scrollkeeper],
 
10576
        [AC_HELP_STRING([--disable-scrollkeeper],
 
10577
                        [do not make updates to the scrollkeeper database])],,
 
10578
        enable_scrollkeeper=yes)
 
10579
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
 
10580
 
 
10581
dnl disable scrollkeeper automatically for distcheck
 
10582
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
 
10583
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
 
10584
 
 
10585
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
 
10586
])
 
10587
 
 
10588
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
 
10589
#
 
10590
AC_DEFUN([GNOME_DOC_INIT],
 
10591
[AC_REQUIRE([AC_PROG_LN_S])dnl
 
10592
 
 
10593
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
 
10594
 
 
10595
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
 
10596
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
 
10597
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
 
10598
 
 
10599
if test "$gdu_cv_have_gdu" = "yes"; then
 
10600
        AC_MSG_RESULT([yes])
 
10601
        ifelse([$2],,[:],[$2])
 
10602
else
 
10603
        AC_MSG_RESULT([no])
 
10604
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
 
10605
fi
 
10606
 
 
10607
GNOME_DOC_DEFINES
 
10608
])
 
10609
 
 
10610
 
 
10611
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
10612
# serial 40 IT_PROG_INTLTOOL
 
10613
AC_DEFUN([IT_PROG_INTLTOOL], [
 
10614
AC_PREREQ([2.50])dnl
 
10615
AC_REQUIRE([AM_NLS])dnl
 
10616
 
 
10617
case "$am__api_version" in
 
10618
    1.[01234])
 
10619
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
10620
    ;;
 
10621
    *)
 
10622
    ;;
 
10623
esac
 
10624
 
 
10625
if test -n "$1"; then
 
10626
    AC_MSG_CHECKING([for intltool >= $1])
 
10627
 
 
10628
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
10629
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
10630
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
10631
    ]
 
10632
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
10633
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
10634
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
10635
fi
 
10636
 
 
10637
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
10638
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
10639
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
10640
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
10641
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
10642
fi
 
10643
 
 
10644
  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 $< [$]@' 
 
10645
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 $< [$]@' 
 
10646
     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 $< [$]@' 
 
10647
     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 $< [$]@' 
 
10648
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
10649
     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 $< [$]@' 
 
10650
   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 $< [$]@' 
 
10651
    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 $< [$]@' 
 
10652
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 $< [$]@' 
 
10653
       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 $< [$]@' 
 
10654
      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 $< [$]@' 
 
10655
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
 
10656
      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 $< [$]@' 
 
10657
      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 $< [$]@' 
 
10658
    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 $< [$]@' 
 
10659
  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 $< [$]@' 
 
10660
    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 $< [$]@' 
 
10661
    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 $< [$]@'
 
10662
   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 $< [$]@'
 
10663
 
 
10664
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
10665
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
10666
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
10667
_IT_SUBST(INTLTOOL_PROP_RULE)
 
10668
_IT_SUBST(INTLTOOL_OAF_RULE)
 
10669
_IT_SUBST(INTLTOOL_PONG_RULE)
 
10670
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
10671
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
10672
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
10673
_IT_SUBST(INTLTOOL_UI_RULE)
 
10674
_IT_SUBST(INTLTOOL_XAM_RULE)
 
10675
_IT_SUBST(INTLTOOL_KBD_RULE)
 
10676
_IT_SUBST(INTLTOOL_XML_RULE)
 
10677
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
10678
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
10679
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
10680
_IT_SUBST(INTLTOOL_THEME_RULE)
 
10681
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
10682
_IT_SUBST(INTLTOOL_POLICY_RULE)
 
10683
 
 
10684
# Check the gettext tools to make sure they are GNU
 
10685
AC_PATH_PROG(XGETTEXT, xgettext)
 
10686
AC_PATH_PROG(MSGMERGE, msgmerge)
 
10687
AC_PATH_PROG(MSGFMT, msgfmt)
 
10688
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
10689
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
10690
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
10691
fi
 
10692
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
10693
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
10694
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
10695
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
10696
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
10697
fi
 
10698
 
 
10699
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
10700
if test -z "$INTLTOOL_PERL"; then
 
10701
   AC_MSG_ERROR([perl not found])
 
10702
fi
 
10703
AC_MSG_CHECKING([for perl >= 5.8.1])
 
10704
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
10705
if test $? -ne 0; then
 
10706
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
10707
else
 
10708
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
10709
   AC_MSG_RESULT([$IT_PERL_VERSION])
 
10710
fi
 
10711
if test "x$2" != "xno-xml"; then
 
10712
   AC_MSG_CHECKING([for XML::Parser])
 
10713
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
10714
       AC_MSG_RESULT([ok])
 
10715
   else
 
10716
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
10717
   fi
 
10718
fi
 
10719
 
 
10720
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
10721
AC_SUBST(ALL_LINGUAS)
 
10722
 
 
10723
# Set DATADIRNAME correctly if it is not set yet
 
10724
# (copied from glib-gettext.m4)
 
10725
if test -z "$DATADIRNAME"; then
 
10726
  AC_LINK_IFELSE(
 
10727
    [AC_LANG_PROGRAM([[]],
 
10728
                     [[extern int _nl_msg_cat_cntr;
 
10729
                       return _nl_msg_cat_cntr]])],
 
10730
    [DATADIRNAME=share],
 
10731
    [case $host in
 
10732
    *-*-solaris*)
 
10733
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
10734
    dnl GNU format message catalog is always supported,
 
10735
    dnl since both are added to the libc all together.
 
10736
    dnl Hence, we'd like to go with DATADIRNAME=share
 
10737
    dnl in this case.
 
10738
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
10739
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
10740
    ;;
 
10741
    *)
 
10742
    [DATADIRNAME=lib]
 
10743
    ;;
 
10744
    esac])
 
10745
fi
 
10746
AC_SUBST(DATADIRNAME)
 
10747
 
 
10748
IT_PO_SUBDIR([po])
 
10749
 
 
10750
])
 
10751
 
 
10752
 
 
10753
# IT_PO_SUBDIR(DIRNAME)
 
10754
# ---------------------
 
10755
# All po subdirs have to be declared with this macro; the subdir "po" is
 
10756
# declared by IT_PROG_INTLTOOL.
 
10757
#
 
10758
AC_DEFUN([IT_PO_SUBDIR],
 
10759
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
10760
dnl
 
10761
dnl The following CONFIG_COMMANDS should be executed at the very end
 
10762
dnl of config.status.
 
10763
AC_CONFIG_COMMANDS_PRE([
 
10764
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
10765
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
 
10766
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
10767
    fi
 
10768
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
10769
    >"$1/stamp-it.tmp"
 
10770
    [sed '/^#/d
 
10771
         s/^[[].*] *//
 
10772
         /^[    ]*$/d
 
10773
        '"s|^|  $ac_top_srcdir/|" \
 
10774
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
10775
    ]
 
10776
    [sed '/^POTFILES =/,/[^\\]$/ {
 
10777
                /^POTFILES =/!d
 
10778
                r $1/POTFILES
 
10779
          }
 
10780
         ' "$1/Makefile.in" >"$1/Makefile"]
 
10781
    rm -f "$1/Makefile.tmp"
 
10782
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
10783
  ])
 
10784
])dnl
 
10785
])
 
10786
 
 
10787
# _IT_SUBST(VARIABLE)
 
10788
# -------------------
 
10789
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
10790
#
 
10791
AC_DEFUN([_IT_SUBST],
 
10792
[
 
10793
AC_SUBST([$1])
 
10794
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
10795
]
 
10796
)
 
10797
 
 
10798
# deprecated macros
 
10799
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
10800
# A hint is needed for aclocal from Automake <= 1.9.4:
 
10801
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
10802
 
 
10803
 
10804
10804
dnl -*- mode: autoconf -*-
10805
10805
dnl Copyright 2009 Johan Dahlin
10806
10806
dnl