~ubuntu-branches/ubuntu/hardy/gnome-orca/hardy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-02-27 07:44:07 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20070227074407-mnnzxzi1sd38u00m
Tags: 2.17.92-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1330
1330
#-----------------
1331
1331
glib_DEFUN([GLIB_WITH_NLS],
1332
1332
  dnl NLS is obligatory
1333
 
  [USE_NLS=yes
 
1333
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1334
    USE_NLS=yes
1334
1335
    AC_SUBST(USE_NLS)
1335
1336
 
1336
1337
    gt_cv_have_gettext=no
1605
1606
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
1606
1607
glib_save_prefix="$prefix"
1607
1608
glib_save_exec_prefix="$exec_prefix"
 
1609
glib_save_datarootdir="$datarootdir"
1608
1610
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1609
1611
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
1612
datarootdir=`eval echo "${datarootdir}"`
1610
1613
if test "x$CATOBJEXT" = "x.mo" ; then
1611
1614
  localedir=`eval echo "${libdir}/locale"`
1612
1615
else
1614
1617
fi
1615
1618
prefix="$glib_save_prefix"
1616
1619
exec_prefix="$glib_save_exec_prefix"
 
1620
datarootdir="$glib_save_datarootdir"
1617
1621
AC_DEFINE_UNQUOTED($1, "$localedir",
1618
1622
  [Define the location where the catalogs will be installed])
1619
1623
])
1718
1722
 
1719
1723
# Substitute ALL_LINGUAS so we can use it in po/Makefile
1720
1724
AC_SUBST(ALL_LINGUAS)
1721
 
    
 
1725
 
 
1726
# Set DATADIRNAME correctly if it is not set yet
 
1727
# (copied from glib-gettext.m4)
 
1728
if test -z "$DATADIRNAME"; then
 
1729
  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
1730
                 return _nl_msg_cat_cntr],
 
1731
    [DATADIRNAME=share],
 
1732
    [case $host in
 
1733
    *-*-solaris*)
 
1734
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
1735
    dnl GNU format message catalog is always supported,
 
1736
    dnl since both are added to the libc all together.
 
1737
    dnl Hence, we'd like to go with DATADIRNAME=share
 
1738
    dnl in this case.
 
1739
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
1740
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
1741
    ;;
 
1742
    *)
 
1743
    [DATADIRNAME=lib]
 
1744
    ;;
 
1745
    esac])
 
1746
fi
 
1747
AC_SUBST(DATADIRNAME)
 
1748
 
1722
1749
IT_PO_SUBDIR([po])
1723
1750
 
1724
1751
dnl The following is very similar to
8315
8342
 
8316
8343
_PKG_TEXT
8317
8344
])],
8318
 
                [$4])
 
8345
                [AC_MSG_RESULT([no])
 
8346
                $4])
8319
8347
elif test $pkg_failed = untried; then
8320
8348
        ifelse([$4], , [AC_MSG_FAILURE(dnl
8321
8349
[The pkg-config script could not be found or is too old.  Make sure it