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.67],,
17
[m4_warning([this file was generated for autoconf 2.67.
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'.])])
347
347
dnl These rules are solely for the distribution goal. While doing this
348
348
dnl we only have to keep exactly one list of the available catalogs
350
350
for lang in $ALL_LINGUAS; do
351
351
GMOFILES="$GMOFILES $lang.gmo"
352
352
POFILES="$POFILES $lang.po"
476
476
dnl Now the definitions that aclocal will find
478
ifdef(glib_configure_in,[],[
478
ifdef(glib_configure_ac,[],[
479
479
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
480
480
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
903
903
AC_DEFUN([IT_PO_SUBDIR],
904
904
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
906
dnl The following CONFIG_COMMANDS should be exetuted at the very end
906
dnl The following CONFIG_COMMANDS should be executed at the very end
907
907
dnl of config.status.
908
908
AC_CONFIG_COMMANDS_PRE([
909
909
AC_CONFIG_COMMANDS([$1/stamp-it], [
8912
8912
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8913
8913
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8915
# nls.m4 serial 3 (gettext-0.15)
8916
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8915
# nls.m4 serial 5 (gettext-0.18)
8916
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
8917
8918
dnl This file is free software; the Free Software Foundation
8918
8919
dnl gives unlimited permission to copy and/or distribute it,
8919
8920
dnl with or without modifications, as long as this notice is preserved.
8931
8932
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8932
8933
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8936
8937
AC_DEFUN([AM_NLS],
8938
8939
AC_MSG_CHECKING([whether NLS is requested])
8939
8940
dnl Default is enabled NLS
8941
AC_ARG_ENABLE([nls],
8941
8942
[ --disable-nls do not use Native Language Support],
8942
8943
USE_NLS=$enableval, USE_NLS=yes)
8943
AC_MSG_RESULT($USE_NLS)
8944
AC_MSG_RESULT([$USE_NLS])
8947
8948
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
8949
# serial 1 (pkg-config-0.24)
8949
8951
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
8972
8974
AC_DEFUN([PKG_PROG_PKG_CONFIG],
8973
8975
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8974
8976
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
8975
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
8977
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
8978
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
8979
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
8976
8981
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8977
8982
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
8994
8998
# Check to see whether a particular set of modules exists. Similar
8995
8999
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
8998
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
8999
# this or PKG_CHECK_MODULES is called, or make sure to call
9000
# PKG_CHECK_EXISTS manually
9001
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9002
# only at the first occurence in configure.ac, so if the first place
9003
# it's called might be skipped (such as if it is within an "if", you
9004
# have to call PKG_CHECK_EXISTS manually
9001
9005
# --------------------------------------------------------------
9002
9006
AC_DEFUN([PKG_CHECK_EXISTS],
9003
9007
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9004
9008
if test -n "$PKG_CONFIG" && \
9005
9009
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9006
m4_ifval([$2], [$2], [:])
9010
m4_default([$2], [:])
9007
9011
m4_ifvaln([$3], [else
9012
9015
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9013
9016
# ---------------------------------------------
9014
9017
m4_define([_PKG_CONFIG],
9015
[if test -n "$PKG_CONFIG"; then
9016
if test -n "$$1"; then
9019
PKG_CHECK_EXISTS([$3],
9020
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
9018
[if test -n "$$1"; then
9020
elif test -n "$PKG_CONFIG"; then
9021
PKG_CHECK_EXISTS([$3],
9022
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
9026
9027
])# _PKG_CONFIG
9063
9064
See the pkg-config man page for more details.])
9065
9066
if test $pkg_failed = yes; then
9066
9068
_PKG_SHORT_ERRORS_SUPPORTED
9067
9069
if test $_pkg_short_errors_supported = yes; then
9068
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
9070
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
9070
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
9072
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
9072
9074
# Put the nasty error message in config.log where it belongs
9073
9075
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9075
ifelse([$4], , [AC_MSG_ERROR(dnl
9077
m4_default([$4], [AC_MSG_ERROR(
9076
9078
[Package requirements ($2) were not met:
9080
9082
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9081
9083
installed software in a non-standard prefix.
9085
[AC_MSG_RESULT([no])
9087
9087
elif test $pkg_failed = untried; then
9088
ifelse([$4], , [AC_MSG_FAILURE(dnl
9089
m4_default([$4], [AC_MSG_FAILURE(
9089
9090
[The pkg-config script could not be found or is too old. Make sure it
9090
9091
is in your PATH or set the PKG_CONFIG environment variable to the full
9091
9092
path to pkg-config.
9095
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9096
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
9098
9099
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9099
9100
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9100
9101
AC_MSG_RESULT([yes])
9101
ifelse([$3], , :, [$3])
9103
9104
])# PKG_CHECK_MODULES