~ubuntu-branches/ubuntu/vivid/at-spi/vivid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-11-25 17:05:20 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20101125170520-3fxy94y94dfp580j
Tags: 1.32.0-0ubuntu1
* New upstream release
* debian/control:
  - Use standards version 3.9.1
* debian/rules:
  - Drop simple-patchsys.mk, not required in source version 3.0
* debian/source:
  - Use source version 3.0

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.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'.])])
346
346
 
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
349
 
    dnl in configure.in.
 
349
    dnl in configure.ac.
350
350
    for lang in $ALL_LINGUAS; do
351
351
      GMOFILES="$GMOFILES $lang.gmo"
352
352
      POFILES="$POFILES $lang.po"
475
475
dnl
476
476
dnl Now the definitions that aclocal will find
477
477
dnl
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($@)])
481
481
])dnl
903
903
AC_DEFUN([IT_PO_SUBDIR],
904
904
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
905
905
dnl
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])])
8914
8914
 
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
dnl Inc.
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.
8933
8934
 
8934
 
AC_PREREQ(2.50)
 
8935
AC_PREREQ([2.50])
8935
8936
 
8936
8937
AC_DEFUN([AM_NLS],
8937
8938
[
8938
8939
  AC_MSG_CHECKING([whether NLS is requested])
8939
8940
  dnl Default is enabled NLS
8940
 
  AC_ARG_ENABLE(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_SUBST(USE_NLS)
 
8944
  AC_MSG_RESULT([$USE_NLS])
 
8945
  AC_SUBST([USE_NLS])
8945
8946
])
8946
8947
 
8947
8948
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
8949
# serial 1 (pkg-config-0.24)
8948
8950
8949
8951
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
8950
8952
#
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])
 
8980
 
8976
8981
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8977
8982
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
8978
8983
fi
8985
8990
                AC_MSG_RESULT([no])
8986
8991
                PKG_CONFIG=""
8987
8992
        fi
8988
 
                
8989
8993
fi[]dnl
8990
8994
])# PKG_PROG_PKG_CONFIG
8991
8995
 
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.
8996
9000
#
8997
 
#
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
9008
9012
  $3])dnl
9009
9013
fi])
9010
9014
 
9011
 
 
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
9017
 
        pkg_cv_[]$1="$$1"
9018
 
    else
9019
 
        PKG_CHECK_EXISTS([$3],
9020
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
9021
 
                         [pkg_failed=yes])
9022
 
    fi
9023
 
else
9024
 
        pkg_failed=untried
 
9018
[if test -n "$$1"; then
 
9019
    pkg_cv_[]$1="$$1"
 
9020
 elif test -n "$PKG_CONFIG"; then
 
9021
    PKG_CHECK_EXISTS([$3],
 
9022
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
9023
                     [pkg_failed=yes])
 
9024
 else
 
9025
    pkg_failed=untried
9025
9026
fi[]dnl
9026
9027
])# _PKG_CONFIG
9027
9028
 
9063
9064
See the pkg-config man page for more details.])
9064
9065
 
9065
9066
if test $pkg_failed = yes; then
 
9067
        AC_MSG_RESULT([no])
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`
9069
9071
        else 
9070
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
9072
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
9071
9073
        fi
9072
9074
        # Put the nasty error message in config.log where it belongs
9073
9075
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9074
9076
 
9075
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
9077
        m4_default([$4], [AC_MSG_ERROR(
9076
9078
[Package requirements ($2) were not met:
9077
9079
 
9078
9080
$$1_PKG_ERRORS
9080
9082
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9081
9083
installed software in a non-standard prefix.
9082
9084
 
9083
 
_PKG_TEXT
9084
 
])],
9085
 
                [AC_MSG_RESULT([no])
9086
 
                $4])
 
9085
_PKG_TEXT])dnl
 
9086
        ])
9087
9087
elif test $pkg_failed = untried; then
9088
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
9088
        AC_MSG_RESULT([no])
 
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.
9092
9093
 
9093
9094
_PKG_TEXT
9094
9095
 
9095
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9096
 
                [$4])
 
9096
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
 
9097
        ])
9097
9098
else
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])
 
9102
        $3
9102
9103
fi[]dnl
9103
9104
])# PKG_CHECK_MODULES
9104
9105