~ubuntu-branches/ubuntu/raring/gnome-session/raring

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-05-24 17:05:26 UTC
  • mfrom: (1.1.76)
  • Revision ID: package-import@ubuntu.com-20120524170526-b4zspgv2n9l67veh
Tags: 3.4.2.1-0ubuntu1
* New upstream release
* debian/patches/03_display_session_capplet.patch:
  - Applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1068
1068
AC_SUBST([am__untar])
1069
1069
]) # _AM_PROG_TAR
1070
1070
 
1071
 
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
1072
 
#
1073
 
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
1074
 
#   Written by Scott James Remnant, 2004.
1075
 
#
1076
 
# This file is free software; the Free Software Foundation gives
1077
 
# unlimited permission to copy and/or distribute it, with or without
1078
 
# modifications, as long as this notice is preserved.
1079
 
 
1080
 
# serial 5 lt~obsolete.m4
1081
 
 
1082
 
# These exist entirely to fool aclocal when bootstrapping libtool.
1083
 
#
1084
 
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
1085
 
# which have later been changed to m4_define as they aren't part of the
1086
 
# exported API, or moved to Autoconf or Automake where they belong.
1087
 
#
1088
 
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
1089
 
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
1090
 
# using a macro with the same name in our local m4/libtool.m4 it'll
1091
 
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
1092
 
# and doesn't know about Autoconf macros at all.)
1093
 
#
1094
 
# So we provide this file, which has a silly filename so it's always
1095
 
# included after everything else.  This provides aclocal with the
1096
 
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
1097
 
# because those macros already exist, or will be overwritten later.
1098
 
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
1099
 
#
1100
 
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
1101
 
# Yes, that means every name once taken will need to remain here until
1102
 
# we give up compatibility with versions before 1.7, at which point
1103
 
# we need to keep only those names which we still refer to.
1104
 
 
1105
 
# This is to help aclocal find these macros, as it can't see m4_define.
1106
 
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
1107
 
 
1108
 
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
1109
 
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
1110
 
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
1111
 
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
1112
 
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
1113
 
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
1114
 
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
1115
 
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
1116
 
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
1117
 
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
1118
 
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
1119
 
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
1120
 
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
1121
 
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
1122
 
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
1123
 
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
1124
 
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
1125
 
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
1126
 
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
1127
 
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
1128
 
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
1129
 
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
1130
 
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
1131
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
1132
 
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
1133
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
1134
 
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
1135
 
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
1136
 
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
1137
 
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
1138
 
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
1139
 
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
1140
 
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
1141
 
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
1142
 
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
1143
 
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
1144
 
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
1145
 
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
1146
 
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
1147
 
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
1148
 
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
1149
 
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
1150
 
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
1151
 
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
1152
 
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
1153
 
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
1154
 
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
1155
 
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
1156
 
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
1157
 
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
1158
 
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
1159
 
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
1160
 
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
1161
 
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
1162
 
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
1163
 
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
1164
 
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
1165
 
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
1166
 
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
1167
 
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
1168
 
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
 
1071
# nls.m4 serial 5 (gettext-0.18)
 
1072
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
1073
dnl Inc.
 
1074
dnl This file is free software; the Free Software Foundation
 
1075
dnl gives unlimited permission to copy and/or distribute it,
 
1076
dnl with or without modifications, as long as this notice is preserved.
 
1077
dnl
 
1078
dnl This file can can be used in projects which are not available under
 
1079
dnl the GNU General Public License or the GNU Library General Public
 
1080
dnl License but which still want to provide support for the GNU gettext
 
1081
dnl functionality.
 
1082
dnl Please note that the actual code of the GNU gettext library is covered
 
1083
dnl by the GNU Library General Public License, and the rest of the GNU
 
1084
dnl gettext package package is covered by the GNU General Public License.
 
1085
dnl They are *not* in the public domain.
 
1086
 
 
1087
dnl Authors:
 
1088
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
1089
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
1090
 
 
1091
AC_PREREQ([2.50])
 
1092
 
 
1093
AC_DEFUN([AM_NLS],
 
1094
[
 
1095
  AC_MSG_CHECKING([whether NLS is requested])
 
1096
  dnl Default is enabled NLS
 
1097
  AC_ARG_ENABLE([nls],
 
1098
    [  --disable-nls           do not use Native Language Support],
 
1099
    USE_NLS=$enableval, USE_NLS=yes)
 
1100
  AC_MSG_RESULT([$USE_NLS])
 
1101
  AC_SUBST([USE_NLS])
 
1102
])
 
1103
 
 
1104
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
1105
# serial 1 (pkg-config-0.24)
 
1106
 
1107
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
1108
#
 
1109
# This program is free software; you can redistribute it and/or modify
 
1110
# it under the terms of the GNU General Public License as published by
 
1111
# the Free Software Foundation; either version 2 of the License, or
 
1112
# (at your option) any later version.
 
1113
#
 
1114
# This program is distributed in the hope that it will be useful, but
 
1115
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
1116
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
1117
# General Public License for more details.
 
1118
#
 
1119
# You should have received a copy of the GNU General Public License
 
1120
# along with this program; if not, write to the Free Software
 
1121
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
1122
#
 
1123
# As a special exception to the GNU General Public License, if you
 
1124
# distribute this file as part of a program that contains a
 
1125
# configuration script generated by Autoconf, you may include it under
 
1126
# the same distribution terms that you use for the rest of that program.
 
1127
 
 
1128
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
1129
# ----------------------------------
 
1130
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
1131
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
1132
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
1133
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
1134
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
1135
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
1136
 
 
1137
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
1138
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
1139
fi
 
1140
if test -n "$PKG_CONFIG"; then
 
1141
        _pkg_min_version=m4_default([$1], [0.9.0])
 
1142
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
1143
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
1144
                AC_MSG_RESULT([yes])
 
1145
        else
 
1146
                AC_MSG_RESULT([no])
 
1147
                PKG_CONFIG=""
 
1148
        fi
 
1149
fi[]dnl
 
1150
])# PKG_PROG_PKG_CONFIG
 
1151
 
 
1152
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
1153
#
 
1154
# Check to see whether a particular set of modules exists.  Similar
 
1155
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
1156
#
 
1157
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
1158
# only at the first occurence in configure.ac, so if the first place
 
1159
# it's called might be skipped (such as if it is within an "if", you
 
1160
# have to call PKG_CHECK_EXISTS manually
 
1161
# --------------------------------------------------------------
 
1162
AC_DEFUN([PKG_CHECK_EXISTS],
 
1163
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1164
if test -n "$PKG_CONFIG" && \
 
1165
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
1166
  m4_default([$2], [:])
 
1167
m4_ifvaln([$3], [else
 
1168
  $3])dnl
 
1169
fi])
 
1170
 
 
1171
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
1172
# ---------------------------------------------
 
1173
m4_define([_PKG_CONFIG],
 
1174
[if test -n "$$1"; then
 
1175
    pkg_cv_[]$1="$$1"
 
1176
 elif test -n "$PKG_CONFIG"; then
 
1177
    PKG_CHECK_EXISTS([$3],
 
1178
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
1179
                     [pkg_failed=yes])
 
1180
 else
 
1181
    pkg_failed=untried
 
1182
fi[]dnl
 
1183
])# _PKG_CONFIG
 
1184
 
 
1185
# _PKG_SHORT_ERRORS_SUPPORTED
 
1186
# -----------------------------
 
1187
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
1188
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
1189
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
1190
        _pkg_short_errors_supported=yes
 
1191
else
 
1192
        _pkg_short_errors_supported=no
 
1193
fi[]dnl
 
1194
])# _PKG_SHORT_ERRORS_SUPPORTED
 
1195
 
 
1196
 
 
1197
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
1198
# [ACTION-IF-NOT-FOUND])
 
1199
#
 
1200
#
 
1201
# Note that if there is a possibility the first call to
 
1202
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
1203
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
1204
#
 
1205
#
 
1206
# --------------------------------------------------------------
 
1207
AC_DEFUN([PKG_CHECK_MODULES],
 
1208
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1209
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
1210
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
1211
 
 
1212
pkg_failed=no
 
1213
AC_MSG_CHECKING([for $1])
 
1214
 
 
1215
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
1216
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
1217
 
 
1218
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
1219
and $1[]_LIBS to avoid the need to call pkg-config.
 
1220
See the pkg-config man page for more details.])
 
1221
 
 
1222
if test $pkg_failed = yes; then
 
1223
        AC_MSG_RESULT([no])
 
1224
        _PKG_SHORT_ERRORS_SUPPORTED
 
1225
        if test $_pkg_short_errors_supported = yes; then
 
1226
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
1227
        else 
 
1228
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
1229
        fi
 
1230
        # Put the nasty error message in config.log where it belongs
 
1231
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
1232
 
 
1233
        m4_default([$4], [AC_MSG_ERROR(
 
1234
[Package requirements ($2) were not met:
 
1235
 
 
1236
$$1_PKG_ERRORS
 
1237
 
 
1238
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
1239
installed software in a non-standard prefix.
 
1240
 
 
1241
_PKG_TEXT])
 
1242
        ])
 
1243
elif test $pkg_failed = untried; then
 
1244
        AC_MSG_RESULT([no])
 
1245
        m4_default([$4], [AC_MSG_FAILURE(
 
1246
[The pkg-config script could not be found or is too old.  Make sure it
 
1247
is in your PATH or set the PKG_CONFIG environment variable to the full
 
1248
path to pkg-config.
 
1249
 
 
1250
_PKG_TEXT
 
1251
 
 
1252
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
1253
        ])
 
1254
else
 
1255
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
1256
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
1257
        AC_MSG_RESULT([yes])
 
1258
        $3
 
1259
fi[]dnl
 
1260
])# PKG_CHECK_MODULES
1169
1261
 
1170
1262
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1171
1263
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
1651
1743
 
1652
1744
        DISABLE_DEPRECATED=""
1653
1745
        if test $USE_MAINTAINER_MODE = yes; then
1654
 
                DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
 
1746
                DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP"
1655
1747
                for DOMAIN in $DOMAINS; do
1656
1748
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
1657
1749
                done
1886
1978
]
1887
1979
)
1888
1980
 
1889
 
# nls.m4 serial 5 (gettext-0.18)
1890
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
1891
 
dnl Inc.
1892
 
dnl This file is free software; the Free Software Foundation
1893
 
dnl gives unlimited permission to copy and/or distribute it,
1894
 
dnl with or without modifications, as long as this notice is preserved.
1895
 
dnl
1896
 
dnl This file can can be used in projects which are not available under
1897
 
dnl the GNU General Public License or the GNU Library General Public
1898
 
dnl License but which still want to provide support for the GNU gettext
1899
 
dnl functionality.
1900
 
dnl Please note that the actual code of the GNU gettext library is covered
1901
 
dnl by the GNU Library General Public License, and the rest of the GNU
1902
 
dnl gettext package package is covered by the GNU General Public License.
1903
 
dnl They are *not* in the public domain.
1904
 
 
1905
 
dnl Authors:
1906
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1907
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1908
 
 
1909
 
AC_PREREQ([2.50])
1910
 
 
1911
 
AC_DEFUN([AM_NLS],
1912
 
[
1913
 
  AC_MSG_CHECKING([whether NLS is requested])
1914
 
  dnl Default is enabled NLS
1915
 
  AC_ARG_ENABLE([nls],
1916
 
    [  --disable-nls           do not use Native Language Support],
1917
 
    USE_NLS=$enableval, USE_NLS=yes)
1918
 
  AC_MSG_RESULT([$USE_NLS])
1919
 
  AC_SUBST([USE_NLS])
1920
 
])
1921
 
 
1922
 
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
1923
 
# serial 1 (pkg-config-0.24)
1924
 
1925
 
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1926
 
#
1927
 
# This program is free software; you can redistribute it and/or modify
1928
 
# it under the terms of the GNU General Public License as published by
1929
 
# the Free Software Foundation; either version 2 of the License, or
1930
 
# (at your option) any later version.
1931
 
#
1932
 
# This program is distributed in the hope that it will be useful, but
1933
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
1934
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1935
 
# General Public License for more details.
1936
 
#
1937
 
# You should have received a copy of the GNU General Public License
1938
 
# along with this program; if not, write to the Free Software
1939
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1940
 
#
1941
 
# As a special exception to the GNU General Public License, if you
1942
 
# distribute this file as part of a program that contains a
1943
 
# configuration script generated by Autoconf, you may include it under
1944
 
# the same distribution terms that you use for the rest of that program.
1945
 
 
1946
 
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1947
 
# ----------------------------------
1948
 
AC_DEFUN([PKG_PROG_PKG_CONFIG],
1949
 
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1950
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1951
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1952
 
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1953
 
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1954
 
 
1955
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1956
 
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1957
 
fi
1958
 
if test -n "$PKG_CONFIG"; then
1959
 
        _pkg_min_version=m4_default([$1], [0.9.0])
1960
 
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1961
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1962
 
                AC_MSG_RESULT([yes])
1963
 
        else
1964
 
                AC_MSG_RESULT([no])
1965
 
                PKG_CONFIG=""
1966
 
        fi
1967
 
fi[]dnl
1968
 
])# PKG_PROG_PKG_CONFIG
1969
 
 
1970
 
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1971
 
#
1972
 
# Check to see whether a particular set of modules exists.  Similar
1973
 
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1974
 
#
1975
 
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1976
 
# only at the first occurence in configure.ac, so if the first place
1977
 
# it's called might be skipped (such as if it is within an "if", you
1978
 
# have to call PKG_CHECK_EXISTS manually
1979
 
# --------------------------------------------------------------
1980
 
AC_DEFUN([PKG_CHECK_EXISTS],
1981
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1982
 
if test -n "$PKG_CONFIG" && \
1983
 
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1984
 
  m4_default([$2], [:])
1985
 
m4_ifvaln([$3], [else
1986
 
  $3])dnl
1987
 
fi])
1988
 
 
1989
 
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1990
 
# ---------------------------------------------
1991
 
m4_define([_PKG_CONFIG],
1992
 
[if test -n "$$1"; then
1993
 
    pkg_cv_[]$1="$$1"
1994
 
 elif test -n "$PKG_CONFIG"; then
1995
 
    PKG_CHECK_EXISTS([$3],
1996
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1997
 
                     [pkg_failed=yes])
1998
 
 else
1999
 
    pkg_failed=untried
2000
 
fi[]dnl
2001
 
])# _PKG_CONFIG
2002
 
 
2003
 
# _PKG_SHORT_ERRORS_SUPPORTED
2004
 
# -----------------------------
2005
 
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
2006
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
2007
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2008
 
        _pkg_short_errors_supported=yes
2009
 
else
2010
 
        _pkg_short_errors_supported=no
2011
 
fi[]dnl
2012
 
])# _PKG_SHORT_ERRORS_SUPPORTED
2013
 
 
2014
 
 
2015
 
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
2016
 
# [ACTION-IF-NOT-FOUND])
2017
 
#
2018
 
#
2019
 
# Note that if there is a possibility the first call to
2020
 
# PKG_CHECK_MODULES might not happen, you should be sure to include an
2021
 
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
2022
 
#
2023
 
#
2024
 
# --------------------------------------------------------------
2025
 
AC_DEFUN([PKG_CHECK_MODULES],
2026
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2027
 
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
2028
 
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
2029
 
 
2030
 
pkg_failed=no
2031
 
AC_MSG_CHECKING([for $1])
2032
 
 
2033
 
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
2034
 
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
2035
 
 
2036
 
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
2037
 
and $1[]_LIBS to avoid the need to call pkg-config.
2038
 
See the pkg-config man page for more details.])
2039
 
 
2040
 
if test $pkg_failed = yes; then
2041
 
        AC_MSG_RESULT([no])
2042
 
        _PKG_SHORT_ERRORS_SUPPORTED
2043
 
        if test $_pkg_short_errors_supported = yes; then
2044
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
2045
 
        else 
2046
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
2047
 
        fi
2048
 
        # Put the nasty error message in config.log where it belongs
2049
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
2050
 
 
2051
 
        m4_default([$4], [AC_MSG_ERROR(
2052
 
[Package requirements ($2) were not met:
2053
 
 
2054
 
$$1_PKG_ERRORS
2055
 
 
2056
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
2057
 
installed software in a non-standard prefix.
2058
 
 
2059
 
_PKG_TEXT])dnl
2060
 
        ])
2061
 
elif test $pkg_failed = untried; then
2062
 
        AC_MSG_RESULT([no])
2063
 
        m4_default([$4], [AC_MSG_FAILURE(
2064
 
[The pkg-config script could not be found or is too old.  Make sure it
2065
 
is in your PATH or set the PKG_CONFIG environment variable to the full
2066
 
path to pkg-config.
2067
 
 
2068
 
_PKG_TEXT
2069
 
 
2070
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
2071
 
        ])
2072
 
else
2073
 
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
2074
 
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
2075
 
        AC_MSG_RESULT([yes])
2076
 
        $3
2077
 
fi[]dnl
2078
 
])# PKG_CHECK_MODULES
2079
 
 
2080
1981
m4_include([m4/intltool.m4])
2081
1982
m4_include([m4/libtool.m4])
2082
1983
m4_include([m4/ltoptions.m4])