~ubuntu-branches/ubuntu/precise/gsettings-desktop-schemas/precise

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Rodrigo Moya
  • Date: 2011-09-06 11:11:15 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20110906111115-ou7kox1p2ustdu4j
Tags: upstream-3.1.91
Import upstream version 3.1.91

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
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.65],,
17
 
[m4_warning([this file was generated for autoconf 2.65.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
17
[m4_warning([this file was generated for autoconf 2.68.
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'.])])
1016
1016
AC_SUBST([am__untar])
1017
1017
]) # _AM_PROG_TAR
1018
1018
 
 
1019
# nls.m4 serial 5 (gettext-0.18)
 
1020
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
1021
dnl Inc.
 
1022
dnl This file is free software; the Free Software Foundation
 
1023
dnl gives unlimited permission to copy and/or distribute it,
 
1024
dnl with or without modifications, as long as this notice is preserved.
 
1025
dnl
 
1026
dnl This file can can be used in projects which are not available under
 
1027
dnl the GNU General Public License or the GNU Library General Public
 
1028
dnl License but which still want to provide support for the GNU gettext
 
1029
dnl functionality.
 
1030
dnl Please note that the actual code of the GNU gettext library is covered
 
1031
dnl by the GNU Library General Public License, and the rest of the GNU
 
1032
dnl gettext package package is covered by the GNU General Public License.
 
1033
dnl They are *not* in the public domain.
 
1034
 
 
1035
dnl Authors:
 
1036
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
1037
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
1038
 
 
1039
AC_PREREQ([2.50])
 
1040
 
 
1041
AC_DEFUN([AM_NLS],
 
1042
[
 
1043
  AC_MSG_CHECKING([whether NLS is requested])
 
1044
  dnl Default is enabled NLS
 
1045
  AC_ARG_ENABLE([nls],
 
1046
    [  --disable-nls           do not use Native Language Support],
 
1047
    USE_NLS=$enableval, USE_NLS=yes)
 
1048
  AC_MSG_RESULT([$USE_NLS])
 
1049
  AC_SUBST([USE_NLS])
 
1050
])
 
1051
 
 
1052
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
1053
# serial 1 (pkg-config-0.24)
 
1054
 
1055
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
1056
#
 
1057
# This program is free software; you can redistribute it and/or modify
 
1058
# it under the terms of the GNU General Public License as published by
 
1059
# the Free Software Foundation; either version 2 of the License, or
 
1060
# (at your option) any later version.
 
1061
#
 
1062
# This program is distributed in the hope that it will be useful, but
 
1063
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
1064
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
1065
# General Public License for more details.
 
1066
#
 
1067
# You should have received a copy of the GNU General Public License
 
1068
# along with this program; if not, write to the Free Software
 
1069
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
1070
#
 
1071
# As a special exception to the GNU General Public License, if you
 
1072
# distribute this file as part of a program that contains a
 
1073
# configuration script generated by Autoconf, you may include it under
 
1074
# the same distribution terms that you use for the rest of that program.
 
1075
 
 
1076
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
1077
# ----------------------------------
 
1078
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
1079
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
1080
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
1081
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
 
1082
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
1083
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
1084
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
1085
 
 
1086
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
1087
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
1088
fi
 
1089
if test -n "$PKG_CONFIG"; then
 
1090
        _pkg_min_version=m4_default([$1], [0.9.0])
 
1091
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
1092
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
1093
                AC_MSG_RESULT([yes])
 
1094
        else
 
1095
                AC_MSG_RESULT([no])
 
1096
                PKG_CONFIG=""
 
1097
        fi
 
1098
fi[]dnl
 
1099
])# PKG_PROG_PKG_CONFIG
 
1100
 
 
1101
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
1102
#
 
1103
# Check to see whether a particular set of modules exists.  Similar
 
1104
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
1105
#
 
1106
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
1107
# only at the first occurence in configure.ac, so if the first place
 
1108
# it's called might be skipped (such as if it is within an "if", you
 
1109
# have to call PKG_CHECK_EXISTS manually
 
1110
# --------------------------------------------------------------
 
1111
AC_DEFUN([PKG_CHECK_EXISTS],
 
1112
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1113
if test -n "$PKG_CONFIG" && \
 
1114
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
1115
  m4_default([$2], [:])
 
1116
m4_ifvaln([$3], [else
 
1117
  $3])dnl
 
1118
fi])
 
1119
 
 
1120
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
1121
# ---------------------------------------------
 
1122
m4_define([_PKG_CONFIG],
 
1123
[if test -n "$$1"; then
 
1124
    pkg_cv_[]$1="$$1"
 
1125
 elif test -n "$PKG_CONFIG"; then
 
1126
    PKG_CHECK_EXISTS([$3],
 
1127
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
1128
                      test "x$?" != "x0" && pkg_failed=yes ],
 
1129
                     [pkg_failed=yes])
 
1130
 else
 
1131
    pkg_failed=untried
 
1132
fi[]dnl
 
1133
])# _PKG_CONFIG
 
1134
 
 
1135
# _PKG_SHORT_ERRORS_SUPPORTED
 
1136
# -----------------------------
 
1137
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
1138
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
1139
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
1140
        _pkg_short_errors_supported=yes
 
1141
else
 
1142
        _pkg_short_errors_supported=no
 
1143
fi[]dnl
 
1144
])# _PKG_SHORT_ERRORS_SUPPORTED
 
1145
 
 
1146
 
 
1147
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
1148
# [ACTION-IF-NOT-FOUND])
 
1149
#
 
1150
#
 
1151
# Note that if there is a possibility the first call to
 
1152
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
1153
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
1154
#
 
1155
#
 
1156
# --------------------------------------------------------------
 
1157
AC_DEFUN([PKG_CHECK_MODULES],
 
1158
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1159
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
1160
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
1161
 
 
1162
pkg_failed=no
 
1163
AC_MSG_CHECKING([for $1])
 
1164
 
 
1165
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
1166
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
1167
 
 
1168
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
1169
and $1[]_LIBS to avoid the need to call pkg-config.
 
1170
See the pkg-config man page for more details.])
 
1171
 
 
1172
if test $pkg_failed = yes; then
 
1173
        AC_MSG_RESULT([no])
 
1174
        _PKG_SHORT_ERRORS_SUPPORTED
 
1175
        if test $_pkg_short_errors_supported = yes; then
 
1176
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
 
1177
        else 
 
1178
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
 
1179
        fi
 
1180
        # Put the nasty error message in config.log where it belongs
 
1181
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
1182
 
 
1183
        m4_default([$4], [AC_MSG_ERROR(
 
1184
[Package requirements ($2) were not met:
 
1185
 
 
1186
$$1_PKG_ERRORS
 
1187
 
 
1188
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
1189
installed software in a non-standard prefix.
 
1190
 
 
1191
_PKG_TEXT])[]dnl
 
1192
        ])
 
1193
elif test $pkg_failed = untried; then
 
1194
        AC_MSG_RESULT([no])
 
1195
        m4_default([$4], [AC_MSG_FAILURE(
 
1196
[The pkg-config script could not be found or is too old.  Make sure it
 
1197
is in your PATH or set the PKG_CONFIG environment variable to the full
 
1198
path to pkg-config.
 
1199
 
 
1200
_PKG_TEXT
 
1201
 
 
1202
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
 
1203
        ])
 
1204
else
 
1205
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
1206
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
1207
        AC_MSG_RESULT([yes])
 
1208
        $3
 
1209
fi[]dnl
 
1210
])# PKG_CHECK_MODULES
 
1211
 
1019
1212
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1020
1213
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
1021
1214
#
1533
1726
]
1534
1727
)
1535
1728
 
1536
 
# nls.m4 serial 5 (gettext-0.18)
1537
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
1538
 
dnl Inc.
1539
 
dnl This file is free software; the Free Software Foundation
1540
 
dnl gives unlimited permission to copy and/or distribute it,
1541
 
dnl with or without modifications, as long as this notice is preserved.
1542
 
dnl
1543
 
dnl This file can can be used in projects which are not available under
1544
 
dnl the GNU General Public License or the GNU Library General Public
1545
 
dnl License but which still want to provide support for the GNU gettext
1546
 
dnl functionality.
1547
 
dnl Please note that the actual code of the GNU gettext library is covered
1548
 
dnl by the GNU Library General Public License, and the rest of the GNU
1549
 
dnl gettext package package is covered by the GNU General Public License.
1550
 
dnl They are *not* in the public domain.
1551
 
 
1552
 
dnl Authors:
1553
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1554
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1555
 
 
1556
 
AC_PREREQ([2.50])
1557
 
 
1558
 
AC_DEFUN([AM_NLS],
1559
 
[
1560
 
  AC_MSG_CHECKING([whether NLS is requested])
1561
 
  dnl Default is enabled NLS
1562
 
  AC_ARG_ENABLE([nls],
1563
 
    [  --disable-nls           do not use Native Language Support],
1564
 
    USE_NLS=$enableval, USE_NLS=yes)
1565
 
  AC_MSG_RESULT([$USE_NLS])
1566
 
  AC_SUBST([USE_NLS])
1567
 
])
1568
 
 
1569
 
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
1570
 
# serial 1 (pkg-config-0.24)
1571
 
1572
 
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1573
 
#
1574
 
# This program is free software; you can redistribute it and/or modify
1575
 
# it under the terms of the GNU General Public License as published by
1576
 
# the Free Software Foundation; either version 2 of the License, or
1577
 
# (at your option) any later version.
1578
 
#
1579
 
# This program is distributed in the hope that it will be useful, but
1580
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
1581
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1582
 
# General Public License for more details.
1583
 
#
1584
 
# You should have received a copy of the GNU General Public License
1585
 
# along with this program; if not, write to the Free Software
1586
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1587
 
#
1588
 
# As a special exception to the GNU General Public License, if you
1589
 
# distribute this file as part of a program that contains a
1590
 
# configuration script generated by Autoconf, you may include it under
1591
 
# the same distribution terms that you use for the rest of that program.
1592
 
 
1593
 
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1594
 
# ----------------------------------
1595
 
AC_DEFUN([PKG_PROG_PKG_CONFIG],
1596
 
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1597
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1598
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1599
 
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1600
 
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1601
 
 
1602
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1603
 
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1604
 
fi
1605
 
if test -n "$PKG_CONFIG"; then
1606
 
        _pkg_min_version=m4_default([$1], [0.9.0])
1607
 
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1608
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1609
 
                AC_MSG_RESULT([yes])
1610
 
        else
1611
 
                AC_MSG_RESULT([no])
1612
 
                PKG_CONFIG=""
1613
 
        fi
1614
 
fi[]dnl
1615
 
])# PKG_PROG_PKG_CONFIG
1616
 
 
1617
 
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1618
 
#
1619
 
# Check to see whether a particular set of modules exists.  Similar
1620
 
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1621
 
#
1622
 
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1623
 
# only at the first occurence in configure.ac, so if the first place
1624
 
# it's called might be skipped (such as if it is within an "if", you
1625
 
# have to call PKG_CHECK_EXISTS manually
1626
 
# --------------------------------------------------------------
1627
 
AC_DEFUN([PKG_CHECK_EXISTS],
1628
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1629
 
if test -n "$PKG_CONFIG" && \
1630
 
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1631
 
  m4_default([$2], [:])
1632
 
m4_ifvaln([$3], [else
1633
 
  $3])dnl
1634
 
fi])
1635
 
 
1636
 
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1637
 
# ---------------------------------------------
1638
 
m4_define([_PKG_CONFIG],
1639
 
[if test -n "$$1"; then
1640
 
    pkg_cv_[]$1="$$1"
1641
 
 elif test -n "$PKG_CONFIG"; then
1642
 
    PKG_CHECK_EXISTS([$3],
1643
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1644
 
                     [pkg_failed=yes])
1645
 
 else
1646
 
    pkg_failed=untried
1647
 
fi[]dnl
1648
 
])# _PKG_CONFIG
1649
 
 
1650
 
# _PKG_SHORT_ERRORS_SUPPORTED
1651
 
# -----------------------------
1652
 
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1653
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1654
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1655
 
        _pkg_short_errors_supported=yes
1656
 
else
1657
 
        _pkg_short_errors_supported=no
1658
 
fi[]dnl
1659
 
])# _PKG_SHORT_ERRORS_SUPPORTED
1660
 
 
1661
 
 
1662
 
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1663
 
# [ACTION-IF-NOT-FOUND])
1664
 
#
1665
 
#
1666
 
# Note that if there is a possibility the first call to
1667
 
# PKG_CHECK_MODULES might not happen, you should be sure to include an
1668
 
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1669
 
#
1670
 
#
1671
 
# --------------------------------------------------------------
1672
 
AC_DEFUN([PKG_CHECK_MODULES],
1673
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1674
 
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1675
 
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1676
 
 
1677
 
pkg_failed=no
1678
 
AC_MSG_CHECKING([for $1])
1679
 
 
1680
 
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1681
 
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1682
 
 
1683
 
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1684
 
and $1[]_LIBS to avoid the need to call pkg-config.
1685
 
See the pkg-config man page for more details.])
1686
 
 
1687
 
if test $pkg_failed = yes; then
1688
 
        AC_MSG_RESULT([no])
1689
 
        _PKG_SHORT_ERRORS_SUPPORTED
1690
 
        if test $_pkg_short_errors_supported = yes; then
1691
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
1692
 
        else 
1693
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
1694
 
        fi
1695
 
        # Put the nasty error message in config.log where it belongs
1696
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1697
 
 
1698
 
        m4_default([$4], [AC_MSG_ERROR(
1699
 
[Package requirements ($2) were not met:
1700
 
 
1701
 
$$1_PKG_ERRORS
1702
 
 
1703
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
1704
 
installed software in a non-standard prefix.
1705
 
 
1706
 
_PKG_TEXT])dnl
1707
 
        ])
1708
 
elif test $pkg_failed = untried; then
1709
 
        AC_MSG_RESULT([no])
1710
 
        m4_default([$4], [AC_MSG_FAILURE(
1711
 
[The pkg-config script could not be found or is too old.  Make sure it
1712
 
is in your PATH or set the PKG_CONFIG environment variable to the full
1713
 
path to pkg-config.
1714
 
 
1715
 
_PKG_TEXT
1716
 
 
1717
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
1718
 
        ])
1719
 
else
1720
 
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1721
 
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1722
 
        AC_MSG_RESULT([yes])
1723
 
        $3
1724
 
fi[]dnl
1725
 
])# PKG_CHECK_MODULES
1726
 
 
1727
1729
m4_include([m4/intltool.m4])