|
Packit Service |
9bd718 |
# generated automatically by aclocal 1.13.4 -*- Autoconf -*-
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# This program is distributed in the hope that it will be useful,
|
|
Packit |
a8ec6b |
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
Packit |
a8ec6b |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
Packit |
a8ec6b |
# PARTICULAR PURPOSE.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
|
Packit |
a8ec6b |
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
Packit |
a8ec6b |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
Packit |
a8ec6b |
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
|
|
Packit |
a8ec6b |
[m4_warning([this file was generated for autoconf 2.69.
|
|
Packit |
a8ec6b |
You have another version of autoconf. It may work, but is not guaranteed to.
|
|
Packit |
a8ec6b |
If you have problems, you may need to regenerate the build system entirely.
|
|
Packit |
a8ec6b |
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
dnl GLIB_GSETTINGS
|
|
Packit Service |
9bd718 |
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
|
|
Packit Service |
9bd718 |
dnl the schema should be compiled
|
|
Packit Service |
9bd718 |
dnl
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
AC_DEFUN([GLIB_GSETTINGS],
|
|
Packit Service |
9bd718 |
[
|
|
Packit Service |
9bd718 |
m4_pattern_allow([AM_V_GEN])
|
|
Packit Service |
9bd718 |
AC_ARG_ENABLE(schemas-compile,
|
|
Packit Service |
9bd718 |
AS_HELP_STRING([--disable-schemas-compile],
|
|
Packit Service |
9bd718 |
[Disable regeneration of gschemas.compiled on install]),
|
|
Packit Service |
9bd718 |
[case ${enableval} in
|
|
Packit Service |
9bd718 |
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
|
|
Packit Service |
9bd718 |
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
|
|
Packit Service |
9bd718 |
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
|
|
Packit Service |
9bd718 |
esac])
|
|
Packit Service |
9bd718 |
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
|
|
Packit Service |
9bd718 |
PKG_PROG_PKG_CONFIG([0.16])
|
|
Packit Service |
9bd718 |
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
|
|
Packit Service |
9bd718 |
if test x$cross_compiling != xyes; then
|
|
Packit Service |
9bd718 |
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
|
|
Packit Service |
9bd718 |
else
|
|
Packit Service |
9bd718 |
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
|
|
Packit Service |
9bd718 |
fi
|
|
Packit Service |
9bd718 |
AC_SUBST(GLIB_COMPILE_SCHEMAS)
|
|
Packit Service |
9bd718 |
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
|
|
Packit Service |
9bd718 |
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
|
|
Packit Service |
9bd718 |
else
|
|
Packit Service |
9bd718 |
ifelse([$1],,[:],[$1])
|
|
Packit Service |
9bd718 |
fi
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
GSETTINGS_RULES='
|
|
Packit Service |
9bd718 |
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
mostlyclean-am: clean-gsettings-schemas
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
|
|
Packit Service |
9bd718 |
$(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p [$](@D) && touch [$]@
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
all-am: $(gsettings_SCHEMAS:.xml=.valid)
|
|
Packit Service |
9bd718 |
uninstall-am: uninstall-gsettings-schemas
|
|
Packit Service |
9bd718 |
install-data-am: install-gsettings-schemas
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
.SECONDARY: $(gsettings_SCHEMAS)
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
|
|
Packit Service |
9bd718 |
@$(NORMAL_INSTALL)
|
|
Packit Service |
9bd718 |
if test -n "$^"; then \
|
|
Packit Service |
9bd718 |
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
|
|
Packit Service |
9bd718 |
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
|
|
Packit Service |
9bd718 |
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
|
|
Packit Service |
9bd718 |
fi
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
uninstall-gsettings-schemas:
|
|
Packit Service |
9bd718 |
@$(NORMAL_UNINSTALL)
|
|
Packit Service |
9bd718 |
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
|
|
Packit Service |
9bd718 |
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
|
|
Packit Service |
9bd718 |
test -n "$$files" || exit 0; \
|
|
Packit Service |
9bd718 |
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
|
|
Packit Service |
9bd718 |
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
|
|
Packit Service |
9bd718 |
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
clean-gsettings-schemas:
|
|
Packit Service |
9bd718 |
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
ifdef gsettings_ENUM_NAMESPACE
|
|
Packit Service |
9bd718 |
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
|
|
Packit Service |
9bd718 |
$(AM_V_GEN) glib-mkenums --comments '\'''\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
|
|
Packit Service |
9bd718 |
endif
|
|
Packit Service |
9bd718 |
'
|
|
Packit Service |
9bd718 |
_GSETTINGS_SUBST(GSETTINGS_RULES)
|
|
Packit Service |
9bd718 |
])
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
dnl _GSETTINGS_SUBST(VARIABLE)
|
|
Packit Service |
9bd718 |
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
|
|
Packit Service |
9bd718 |
AC_DEFUN([_GSETTINGS_SUBST],
|
|
Packit Service |
9bd718 |
[
|
|
Packit Service |
9bd718 |
AC_SUBST([$1])
|
|
Packit Service |
9bd718 |
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
|
|
Packit Service |
9bd718 |
]
|
|
Packit Service |
9bd718 |
)
|
|
Packit Service |
9bd718 |
|
|
Packit |
a8ec6b |
# nls.m4 serial 5 (gettext-0.18)
|
|
Packit |
a8ec6b |
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software
|
|
Packit |
a8ec6b |
dnl Foundation, Inc.
|
|
Packit |
a8ec6b |
dnl This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
dnl
|
|
Packit |
a8ec6b |
dnl This file can be used in projects which are not available under
|
|
Packit |
a8ec6b |
dnl the GNU General Public License or the GNU Library General Public
|
|
Packit |
a8ec6b |
dnl License but which still want to provide support for the GNU gettext
|
|
Packit |
a8ec6b |
dnl functionality.
|
|
Packit |
a8ec6b |
dnl Please note that the actual code of the GNU gettext library is covered
|
|
Packit |
a8ec6b |
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
Packit |
a8ec6b |
dnl gettext package is covered by the GNU General Public License.
|
|
Packit |
a8ec6b |
dnl They are *not* in the public domain.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Authors:
|
|
Packit |
a8ec6b |
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
|
|
Packit |
a8ec6b |
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_PREREQ([2.50])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_NLS],
|
|
Packit |
a8ec6b |
[
|
|
Packit |
a8ec6b |
AC_MSG_CHECKING([whether NLS is requested])
|
|
Packit |
a8ec6b |
dnl Default is enabled NLS
|
|
Packit |
a8ec6b |
AC_ARG_ENABLE([nls],
|
|
Packit |
a8ec6b |
[ --disable-nls do not use Native Language Support],
|
|
Packit |
a8ec6b |
USE_NLS=$enableval, USE_NLS=yes)
|
|
Packit |
a8ec6b |
AC_MSG_RESULT([$USE_NLS])
|
|
Packit |
a8ec6b |
AC_SUBST([USE_NLS])
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
|
Packit Service |
9bd718 |
# serial 1 (pkg-config-0.24)
|
|
Packit Service |
9bd718 |
#
|
|
Packit Service |
9bd718 |
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
|
Packit Service |
9bd718 |
#
|
|
Packit Service |
9bd718 |
# This program is free software; you can redistribute it and/or modify
|
|
Packit Service |
9bd718 |
# it under the terms of the GNU General Public License as published by
|
|
Packit Service |
9bd718 |
# the Free Software Foundation; either version 2 of the License, or
|
|
Packit Service |
9bd718 |
# (at your option) any later version.
|
|
Packit Service |
9bd718 |
#
|
|
Packit Service |
9bd718 |
# This program is distributed in the hope that it will be useful, but
|
|
Packit Service |
9bd718 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
9bd718 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
9bd718 |
# General Public License for more details.
|
|
Packit Service |
9bd718 |
#
|
|
Packit Service |
9bd718 |
# You should have received a copy of the GNU General Public License
|
|
Packit Service |
9bd718 |
# along with this program; if not, write to the Free Software
|
|
Packit Service |
9bd718 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
Packit Service |
9bd718 |
#
|
|
Packit Service |
9bd718 |
# As a special exception to the GNU General Public License, if you
|
|
Packit Service |
9bd718 |
# distribute this file as part of a program that contains a
|
|
Packit Service |
9bd718 |
# configuration script generated by Autoconf, you may include it under
|
|
Packit Service |
9bd718 |
# the same distribution terms that you use for the rest of that program.
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
|
|
Packit Service |
9bd718 |
# ----------------------------------
|
|
Packit Service |
9bd718 |
AC_DEFUN([PKG_PROG_PKG_CONFIG],
|
|
Packit Service |
9bd718 |
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
|
|
Packit Service |
9bd718 |
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
|
|
Packit Service |
9bd718 |
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
|
|
Packit Service |
9bd718 |
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
|
|
Packit Service |
9bd718 |
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
|
|
Packit Service |
9bd718 |
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
|
Packit Service |
9bd718 |
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
|
|
Packit Service |
9bd718 |
fi
|
|
Packit Service |
9bd718 |
if test -n "$PKG_CONFIG"; then
|
|
Packit Service |
9bd718 |
_pkg_min_version=m4_default([$1], [0.9.0])
|
|
Packit Service |
9bd718 |
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
|
|
Packit Service |
9bd718 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
|
Packit Service |
9bd718 |
AC_MSG_RESULT([yes])
|
|
Packit Service |
9bd718 |
else
|
|
Packit Service |
9bd718 |
AC_MSG_RESULT([no])
|
|
Packit Service |
9bd718 |
PKG_CONFIG=""
|
|
Packit Service |
9bd718 |
fi
|
|
Packit Service |
9bd718 |
fi[]dnl
|
|
Packit Service |
9bd718 |
])# PKG_PROG_PKG_CONFIG
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
|
Packit Service |
9bd718 |
#
|
|
Packit Service |
9bd718 |
# Check to see whether a particular set of modules exists. Similar
|
|
Packit Service |
9bd718 |
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
|
|
Packit Service |
9bd718 |
#
|
|
Packit Service |
9bd718 |
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
|
Packit Service |
9bd718 |
# only at the first occurence in configure.ac, so if the first place
|
|
Packit Service |
9bd718 |
# it's called might be skipped (such as if it is within an "if", you
|
|
Packit Service |
9bd718 |
# have to call PKG_CHECK_EXISTS manually
|
|
Packit Service |
9bd718 |
# --------------------------------------------------------------
|
|
Packit Service |
9bd718 |
AC_DEFUN([PKG_CHECK_EXISTS],
|
|
Packit Service |
9bd718 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|
Packit Service |
9bd718 |
if test -n "$PKG_CONFIG" && \
|
|
Packit Service |
9bd718 |
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
|
|
Packit Service |
9bd718 |
m4_default([$2], [:])
|
|
Packit Service |
9bd718 |
m4_ifvaln([$3], [else
|
|
Packit Service |
9bd718 |
$3])dnl
|
|
Packit Service |
9bd718 |
fi])
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
|
|
Packit Service |
9bd718 |
# ---------------------------------------------
|
|
Packit Service |
9bd718 |
m4_define([_PKG_CONFIG],
|
|
Packit Service |
9bd718 |
[if test -n "$$1"; then
|
|
Packit Service |
9bd718 |
pkg_cv_[]$1="$$1"
|
|
Packit Service |
9bd718 |
elif test -n "$PKG_CONFIG"; then
|
|
Packit Service |
9bd718 |
PKG_CHECK_EXISTS([$3],
|
|
Packit Service |
9bd718 |
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
|
|
Packit Service |
9bd718 |
test "x$?" != "x0" && pkg_failed=yes ],
|
|
Packit Service |
9bd718 |
[pkg_failed=yes])
|
|
Packit Service |
9bd718 |
else
|
|
Packit Service |
9bd718 |
pkg_failed=untried
|
|
Packit Service |
9bd718 |
fi[]dnl
|
|
Packit Service |
9bd718 |
])# _PKG_CONFIG
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
# _PKG_SHORT_ERRORS_SUPPORTED
|
|
Packit Service |
9bd718 |
# -----------------------------
|
|
Packit Service |
9bd718 |
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
|
|
Packit Service |
9bd718 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
|
Packit Service |
9bd718 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
Packit Service |
9bd718 |
_pkg_short_errors_supported=yes
|
|
Packit Service |
9bd718 |
else
|
|
Packit Service |
9bd718 |
_pkg_short_errors_supported=no
|
|
Packit Service |
9bd718 |
fi[]dnl
|
|
Packit Service |
9bd718 |
])# _PKG_SHORT_ERRORS_SUPPORTED
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
|
|
Packit Service |
9bd718 |
# [ACTION-IF-NOT-FOUND])
|
|
Packit Service |
9bd718 |
#
|
|
Packit Service |
9bd718 |
#
|
|
Packit Service |
9bd718 |
# Note that if there is a possibility the first call to
|
|
Packit Service |
9bd718 |
# PKG_CHECK_MODULES might not happen, you should be sure to include an
|
|
Packit Service |
9bd718 |
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
|
|
Packit Service |
9bd718 |
#
|
|
Packit Service |
9bd718 |
#
|
|
Packit Service |
9bd718 |
# --------------------------------------------------------------
|
|
Packit Service |
9bd718 |
AC_DEFUN([PKG_CHECK_MODULES],
|
|
Packit Service |
9bd718 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|
Packit Service |
9bd718 |
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
|
|
Packit Service |
9bd718 |
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
pkg_failed=no
|
|
Packit Service |
9bd718 |
AC_MSG_CHECKING([for $1])
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
|
Packit Service |
9bd718 |
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
|
|
Packit Service |
9bd718 |
and $1[]_LIBS to avoid the need to call pkg-config.
|
|
Packit Service |
9bd718 |
See the pkg-config man page for more details.])
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
if test $pkg_failed = yes; then
|
|
Packit Service |
9bd718 |
AC_MSG_RESULT([no])
|
|
Packit Service |
9bd718 |
_PKG_SHORT_ERRORS_SUPPORTED
|
|
Packit Service |
9bd718 |
if test $_pkg_short_errors_supported = yes; then
|
|
Packit Service |
9bd718 |
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
|
|
Packit Service |
9bd718 |
else
|
|
Packit Service |
9bd718 |
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
|
|
Packit Service |
9bd718 |
fi
|
|
Packit Service |
9bd718 |
# Put the nasty error message in config.log where it belongs
|
|
Packit Service |
9bd718 |
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
m4_default([$4], [AC_MSG_ERROR(
|
|
Packit Service |
9bd718 |
[Package requirements ($2) were not met:
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
$$1_PKG_ERRORS
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
Packit Service |
9bd718 |
installed software in a non-standard prefix.
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
_PKG_TEXT])[]dnl
|
|
Packit Service |
9bd718 |
])
|
|
Packit Service |
9bd718 |
elif test $pkg_failed = untried; then
|
|
Packit Service |
9bd718 |
AC_MSG_RESULT([no])
|
|
Packit Service |
9bd718 |
m4_default([$4], [AC_MSG_FAILURE(
|
|
Packit Service |
9bd718 |
[The pkg-config script could not be found or is too old. Make sure it
|
|
Packit Service |
9bd718 |
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
Packit Service |
9bd718 |
path to pkg-config.
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
_PKG_TEXT
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
|
|
Packit Service |
9bd718 |
])
|
|
Packit Service |
9bd718 |
else
|
|
Packit Service |
9bd718 |
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
|
Packit Service |
9bd718 |
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
|
Packit Service |
9bd718 |
AC_MSG_RESULT([yes])
|
|
Packit Service |
9bd718 |
$3
|
|
Packit Service |
9bd718 |
fi[]dnl
|
|
Packit Service |
9bd718 |
])# PKG_CHECK_MODULES
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
# PKG_INSTALLDIR(DIRECTORY)
|
|
Packit Service |
9bd718 |
# -------------------------
|
|
Packit Service |
9bd718 |
# Substitutes the variable pkgconfigdir as the location where a module
|
|
Packit Service |
9bd718 |
# should install pkg-config .pc files. By default the directory is
|
|
Packit Service |
9bd718 |
# $libdir/pkgconfig, but the default can be changed by passing
|
|
Packit Service |
9bd718 |
# DIRECTORY. The user can override through the --with-pkgconfigdir
|
|
Packit Service |
9bd718 |
# parameter.
|
|
Packit Service |
9bd718 |
AC_DEFUN([PKG_INSTALLDIR],
|
|
Packit Service |
9bd718 |
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
|
|
Packit Service |
9bd718 |
m4_pushdef([pkg_description],
|
|
Packit Service |
9bd718 |
[pkg-config installation directory @<:@]pkg_default[@:>@])
|
|
Packit Service |
9bd718 |
AC_ARG_WITH([pkgconfigdir],
|
|
Packit Service |
9bd718 |
[AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
|
|
Packit Service |
9bd718 |
[with_pkgconfigdir=]pkg_default)
|
|
Packit Service |
9bd718 |
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
|
|
Packit Service |
9bd718 |
m4_popdef([pkg_default])
|
|
Packit Service |
9bd718 |
m4_popdef([pkg_description])
|
|
Packit Service |
9bd718 |
]) dnl PKG_INSTALLDIR
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
|
|
Packit Service |
9bd718 |
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
|
|
Packit Service |
9bd718 |
# -------------------------
|
|
Packit Service |
9bd718 |
# Substitutes the variable noarch_pkgconfigdir as the location where a
|
|
Packit Service |
9bd718 |
# module should install arch-independent pkg-config .pc files. By
|
|
Packit Service |
9bd718 |
# default the directory is $datadir/pkgconfig, but the default can be
|
|
Packit Service |
9bd718 |
# changed by passing DIRECTORY. The user can override through the
|
|
Packit Service |
9bd718 |
# --with-noarch-pkgconfigdir parameter.
|
|
Packit Service |
9bd718 |
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
|
|
Packit Service |
9bd718 |
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
|
|
Packit Service |
9bd718 |
m4_pushdef([pkg_description],
|
|
Packit Service |
9bd718 |
[pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
|
|
Packit Service |
9bd718 |
AC_ARG_WITH([noarch-pkgconfigdir],
|
|
Packit Service |
9bd718 |
[AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
|
|
Packit Service |
9bd718 |
[with_noarch_pkgconfigdir=]pkg_default)
|
|
Packit Service |
9bd718 |
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
|
|
Packit Service |
9bd718 |
m4_popdef([pkg_default])
|
|
Packit Service |
9bd718 |
m4_popdef([pkg_description])
|
|
Packit Service |
9bd718 |
]) dnl PKG_NOARCH_INSTALLDIR
|
|
Packit Service |
9bd718 |
|
|
Packit |
a8ec6b |
# po.m4 serial 24 (gettext-0.19)
|
|
Packit |
a8ec6b |
dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
dnl This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
dnl
|
|
Packit |
a8ec6b |
dnl This file can be used in projects which are not available under
|
|
Packit |
a8ec6b |
dnl the GNU General Public License or the GNU Library General Public
|
|
Packit |
a8ec6b |
dnl License but which still want to provide support for the GNU gettext
|
|
Packit |
a8ec6b |
dnl functionality.
|
|
Packit |
a8ec6b |
dnl Please note that the actual code of the GNU gettext library is covered
|
|
Packit |
a8ec6b |
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
Packit |
a8ec6b |
dnl gettext package is covered by the GNU General Public License.
|
|
Packit |
a8ec6b |
dnl They are *not* in the public domain.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Authors:
|
|
Packit |
a8ec6b |
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
|
|
Packit |
a8ec6b |
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_PREREQ([2.60])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Checks for all prerequisites of the po subdirectory.
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_PO_SUBDIRS],
|
|
Packit |
a8ec6b |
[
|
|
Packit |
a8ec6b |
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
Packit |
a8ec6b |
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|
Packit |
a8ec6b |
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
Packit |
a8ec6b |
AC_REQUIRE([AC_PROG_SED])dnl
|
|
Packit |
a8ec6b |
AC_REQUIRE([AM_NLS])dnl
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Release version of the gettext macros. This is used to ensure that
|
|
Packit |
a8ec6b |
dnl the gettext macros and po/Makefile.in.in are in sync.
|
|
Packit |
a8ec6b |
AC_SUBST([GETTEXT_MACRO_VERSION], [0.19])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Perform the following tests also if --disable-nls has been given,
|
|
Packit |
a8ec6b |
dnl because they are needed for "make dist" to work.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Search for GNU msgfmt in the PATH.
|
|
Packit |
a8ec6b |
dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
|
|
Packit |
a8ec6b |
dnl The second test excludes FreeBSD msgfmt.
|
|
Packit |
a8ec6b |
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
|
Packit |
a8ec6b |
[$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
|
|
Packit |
a8ec6b |
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
|
|
Packit |
a8ec6b |
:)
|
|
Packit |
a8ec6b |
AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Test whether it is GNU msgfmt >= 0.15.
|
|
Packit |
a8ec6b |
changequote(,)dnl
|
|
Packit |
a8ec6b |
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
|
|
Packit |
a8ec6b |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
|
|
Packit |
a8ec6b |
*) MSGFMT_015=$MSGFMT ;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
changequote([,])dnl
|
|
Packit |
a8ec6b |
AC_SUBST([MSGFMT_015])
|
|
Packit |
a8ec6b |
changequote(,)dnl
|
|
Packit |
a8ec6b |
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
|
|
Packit |
a8ec6b |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
|
|
Packit |
a8ec6b |
*) GMSGFMT_015=$GMSGFMT ;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
changequote([,])dnl
|
|
Packit |
a8ec6b |
AC_SUBST([GMSGFMT_015])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Search for GNU xgettext 0.12 or newer in the PATH.
|
|
Packit |
a8ec6b |
dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
|
|
Packit |
a8ec6b |
dnl The second test excludes FreeBSD xgettext.
|
|
Packit |
a8ec6b |
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
|
Packit |
a8ec6b |
[$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
|
|
Packit |
a8ec6b |
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
|
|
Packit |
a8ec6b |
:)
|
|
Packit |
a8ec6b |
dnl Remove leftover from FreeBSD xgettext call.
|
|
Packit |
a8ec6b |
rm -f messages.po
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Test whether it is GNU xgettext >= 0.15.
|
|
Packit |
a8ec6b |
changequote(,)dnl
|
|
Packit |
a8ec6b |
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
|
|
Packit |
a8ec6b |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
|
|
Packit |
a8ec6b |
*) XGETTEXT_015=$XGETTEXT ;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
changequote([,])dnl
|
|
Packit |
a8ec6b |
AC_SUBST([XGETTEXT_015])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Search for GNU msgmerge 0.11 or newer in the PATH.
|
|
Packit |
a8ec6b |
AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
|
|
Packit |
a8ec6b |
[$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Installation directories.
|
|
Packit |
a8ec6b |
dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
|
|
Packit |
a8ec6b |
dnl have to define it here, so that it can be used in po/Makefile.
|
|
Packit |
a8ec6b |
test -n "$localedir" || localedir='${datadir}/locale'
|
|
Packit |
a8ec6b |
AC_SUBST([localedir])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Support for AM_XGETTEXT_OPTION.
|
|
Packit |
a8ec6b |
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
|
|
Packit |
a8ec6b |
AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_CONFIG_COMMANDS([po-directories], [[
|
|
Packit |
a8ec6b |
for ac_file in $CONFIG_FILES; do
|
|
Packit |
a8ec6b |
# Support "outfile[:infile[:infile...]]"
|
|
Packit |
a8ec6b |
case "$ac_file" in
|
|
Packit |
a8ec6b |
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
# PO directories have a Makefile.in generated from Makefile.in.in.
|
|
Packit |
a8ec6b |
case "$ac_file" in */Makefile.in)
|
|
Packit |
a8ec6b |
# Adjust a relative srcdir.
|
|
Packit |
a8ec6b |
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
|
|
Packit |
a8ec6b |
ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
|
|
Packit |
a8ec6b |
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
|
|
Packit |
a8ec6b |
# In autoconf-2.13 it is called $ac_given_srcdir.
|
|
Packit |
a8ec6b |
# In autoconf-2.50 it is called $srcdir.
|
|
Packit |
a8ec6b |
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
|
|
Packit |
a8ec6b |
case "$ac_given_srcdir" in
|
|
Packit |
a8ec6b |
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
|
|
Packit |
a8ec6b |
/*) top_srcdir="$ac_given_srcdir" ;;
|
|
Packit |
a8ec6b |
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
# Treat a directory as a PO directory if and only if it has a
|
|
Packit |
a8ec6b |
# POTFILES.in file. This allows packages to have multiple PO
|
|
Packit |
a8ec6b |
# directories under different names or in different locations.
|
|
Packit |
a8ec6b |
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
|
|
Packit |
a8ec6b |
rm -f "$ac_dir/POTFILES"
|
|
Packit |
a8ec6b |
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
|
|
Packit |
a8ec6b |
gt_tab=`printf '\t'`
|
|
Packit |
a8ec6b |
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
|
|
Packit |
a8ec6b |
POMAKEFILEDEPS="POTFILES.in"
|
|
Packit |
a8ec6b |
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
|
|
Packit |
a8ec6b |
# on $ac_dir but don't depend on user-specified configuration
|
|
Packit |
a8ec6b |
# parameters.
|
|
Packit |
a8ec6b |
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
|
|
Packit |
a8ec6b |
# The LINGUAS file contains the set of available languages.
|
|
Packit |
a8ec6b |
if test -n "$OBSOLETE_ALL_LINGUAS"; then
|
|
Packit |
a8ec6b |
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
|
|
Packit |
a8ec6b |
# Hide the ALL_LINGUAS assignment from automake < 1.5.
|
|
Packit |
a8ec6b |
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
|
|
Packit |
a8ec6b |
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
# The set of available languages was given in configure.in.
|
|
Packit |
a8ec6b |
# Hide the ALL_LINGUAS assignment from automake < 1.5.
|
|
Packit |
a8ec6b |
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
# Compute POFILES
|
|
Packit |
a8ec6b |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
|
|
Packit |
a8ec6b |
# Compute UPDATEPOFILES
|
|
Packit |
a8ec6b |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
|
|
Packit |
a8ec6b |
# Compute DUMMYPOFILES
|
|
Packit |
a8ec6b |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
|
|
Packit |
a8ec6b |
# Compute GMOFILES
|
|
Packit |
a8ec6b |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
|
|
Packit |
a8ec6b |
case "$ac_given_srcdir" in
|
|
Packit |
a8ec6b |
.) srcdirpre= ;;
|
|
Packit |
a8ec6b |
*) srcdirpre='$(srcdir)/' ;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
POFILES=
|
|
Packit |
a8ec6b |
UPDATEPOFILES=
|
|
Packit |
a8ec6b |
DUMMYPOFILES=
|
|
Packit |
a8ec6b |
GMOFILES=
|
|
Packit |
a8ec6b |
for lang in $ALL_LINGUAS; do
|
|
Packit |
a8ec6b |
POFILES="$POFILES $srcdirpre$lang.po"
|
|
Packit |
a8ec6b |
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
|
|
Packit |
a8ec6b |
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
|
|
Packit |
a8ec6b |
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
# CATALOGS depends on both $ac_dir and the user's LINGUAS
|
|
Packit |
a8ec6b |
# environment variable.
|
|
Packit |
a8ec6b |
INST_LINGUAS=
|
|
Packit |
a8ec6b |
if test -n "$ALL_LINGUAS"; then
|
|
Packit |
a8ec6b |
for presentlang in $ALL_LINGUAS; do
|
|
Packit |
a8ec6b |
useit=no
|
|
Packit |
a8ec6b |
if test "%UNSET%" != "$LINGUAS"; then
|
|
Packit |
a8ec6b |
desiredlanguages="$LINGUAS"
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
desiredlanguages="$ALL_LINGUAS"
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
for desiredlang in $desiredlanguages; do
|
|
Packit |
a8ec6b |
# Use the presentlang catalog if desiredlang is
|
|
Packit |
a8ec6b |
# a. equal to presentlang, or
|
|
Packit |
a8ec6b |
# b. a variant of presentlang (because in this case,
|
|
Packit |
a8ec6b |
# presentlang can be used as a fallback for messages
|
|
Packit |
a8ec6b |
# which are not translated in the desiredlang catalog).
|
|
Packit |
a8ec6b |
case "$desiredlang" in
|
|
Packit |
a8ec6b |
"$presentlang"*) useit=yes;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
if test $useit = yes; then
|
|
Packit |
a8ec6b |
INST_LINGUAS="$INST_LINGUAS $presentlang"
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
CATALOGS=
|
|
Packit |
a8ec6b |
if test -n "$INST_LINGUAS"; then
|
|
Packit |
a8ec6b |
for lang in $INST_LINGUAS; do
|
|
Packit |
a8ec6b |
CATALOGS="$CATALOGS $lang.gmo"
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
|
|
Packit |
a8ec6b |
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
|
|
Packit |
a8ec6b |
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
|
|
Packit |
a8ec6b |
if test -f "$f"; then
|
|
Packit |
a8ec6b |
case "$f" in
|
|
Packit |
a8ec6b |
*.orig | *.bak | *~) ;;
|
|
Packit |
a8ec6b |
*) cat "$f" >> "$ac_dir/Makefile" ;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
done]],
|
|
Packit |
a8ec6b |
[# Capture the value of obsolete ALL_LINGUAS because we need it to compute
|
|
Packit |
a8ec6b |
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
|
|
Packit |
a8ec6b |
# from automake < 1.5.
|
|
Packit |
a8ec6b |
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
|
|
Packit |
a8ec6b |
# Capture the value of LINGUAS because we need it to compute CATALOGS.
|
|
Packit |
a8ec6b |
LINGUAS="${LINGUAS-%UNSET%}"
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Postprocesses a Makefile in a directory containing PO files.
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
|
|
Packit |
a8ec6b |
[
|
|
Packit |
a8ec6b |
# When this code is run, in config.status, two variables have already been
|
|
Packit |
a8ec6b |
# set:
|
|
Packit |
a8ec6b |
# - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
|
|
Packit |
a8ec6b |
# - LINGUAS is the value of the environment variable LINGUAS at configure
|
|
Packit |
a8ec6b |
# time.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
changequote(,)dnl
|
|
Packit |
a8ec6b |
# Adjust a relative srcdir.
|
|
Packit |
a8ec6b |
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
|
|
Packit |
a8ec6b |
ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
|
|
Packit |
a8ec6b |
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
|
|
Packit |
a8ec6b |
# In autoconf-2.13 it is called $ac_given_srcdir.
|
|
Packit |
a8ec6b |
# In autoconf-2.50 it is called $srcdir.
|
|
Packit |
a8ec6b |
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
|
|
Packit |
a8ec6b |
case "$ac_given_srcdir" in
|
|
Packit |
a8ec6b |
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
|
|
Packit |
a8ec6b |
/*) top_srcdir="$ac_given_srcdir" ;;
|
|
Packit |
a8ec6b |
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Find a way to echo strings without interpreting backslash.
|
|
Packit |
a8ec6b |
if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
|
|
Packit |
a8ec6b |
gt_echo='echo'
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
|
|
Packit |
a8ec6b |
gt_echo='printf %s\n'
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
echo_func () {
|
|
Packit |
a8ec6b |
cat <
|
|
Packit |
a8ec6b |
$*
|
|
Packit |
a8ec6b |
EOT
|
|
Packit |
a8ec6b |
}
|
|
Packit |
a8ec6b |
gt_echo='echo_func'
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# A sed script that extracts the value of VARIABLE from a Makefile.
|
|
Packit |
a8ec6b |
tab=`printf '\t'`
|
|
Packit |
a8ec6b |
sed_x_variable='
|
|
Packit |
a8ec6b |
# Test if the hold space is empty.
|
|
Packit |
a8ec6b |
x
|
|
Packit |
a8ec6b |
s/P/P/
|
|
Packit |
a8ec6b |
x
|
|
Packit |
a8ec6b |
ta
|
|
Packit |
a8ec6b |
# Yes it was empty. Look if we have the expected variable definition.
|
|
Packit |
a8ec6b |
/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
|
|
Packit |
a8ec6b |
# Seen the first line of the variable definition.
|
|
Packit |
a8ec6b |
s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
|
|
Packit |
a8ec6b |
ba
|
|
Packit |
a8ec6b |
}
|
|
Packit |
a8ec6b |
bd
|
|
Packit |
a8ec6b |
:a
|
|
Packit |
a8ec6b |
# Here we are processing a line from the variable definition.
|
|
Packit |
a8ec6b |
# Remove comment, more precisely replace it with a space.
|
|
Packit |
a8ec6b |
s/#.*$/ /
|
|
Packit |
a8ec6b |
# See if the line ends in a backslash.
|
|
Packit |
a8ec6b |
tb
|
|
Packit |
a8ec6b |
:b
|
|
Packit |
a8ec6b |
s/\\$//
|
|
Packit |
a8ec6b |
# Print the line, without the trailing backslash.
|
|
Packit |
a8ec6b |
p
|
|
Packit |
a8ec6b |
tc
|
|
Packit |
a8ec6b |
# There was no trailing backslash. The end of the variable definition is
|
|
Packit |
a8ec6b |
# reached. Clear the hold space.
|
|
Packit |
a8ec6b |
s/^.*$//
|
|
Packit |
a8ec6b |
x
|
|
Packit |
a8ec6b |
bd
|
|
Packit |
a8ec6b |
:c
|
|
Packit |
a8ec6b |
# A trailing backslash means that the variable definition continues in the
|
|
Packit |
a8ec6b |
# next line. Put a nonempty string into the hold space to indicate this.
|
|
Packit |
a8ec6b |
s/^.*$/P/
|
|
Packit |
a8ec6b |
x
|
|
Packit |
a8ec6b |
:d
|
|
Packit |
a8ec6b |
'
|
|
Packit |
a8ec6b |
changequote([,])dnl
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Set POTFILES to the value of the Makefile variable POTFILES.
|
|
Packit |
a8ec6b |
sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
|
|
Packit |
a8ec6b |
POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
|
|
Packit |
a8ec6b |
# Compute POTFILES_DEPS as
|
|
Packit |
a8ec6b |
# $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
|
|
Packit |
a8ec6b |
POTFILES_DEPS=
|
|
Packit |
a8ec6b |
for file in $POTFILES; do
|
|
Packit |
a8ec6b |
POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
POMAKEFILEDEPS=""
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
if test -n "$OBSOLETE_ALL_LINGUAS"; then
|
|
Packit |
a8ec6b |
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
|
|
Packit |
a8ec6b |
# The LINGUAS file contains the set of available languages.
|
|
Packit |
a8ec6b |
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
|
|
Packit |
a8ec6b |
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
# Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
|
|
Packit |
a8ec6b |
sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
|
|
Packit |
a8ec6b |
ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
# Hide the ALL_LINGUAS assignment from automake < 1.5.
|
|
Packit |
a8ec6b |
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
|
|
Packit |
a8ec6b |
# Compute POFILES
|
|
Packit |
a8ec6b |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
|
|
Packit |
a8ec6b |
# Compute UPDATEPOFILES
|
|
Packit |
a8ec6b |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
|
|
Packit |
a8ec6b |
# Compute DUMMYPOFILES
|
|
Packit |
a8ec6b |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
|
|
Packit |
a8ec6b |
# Compute GMOFILES
|
|
Packit |
a8ec6b |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
|
|
Packit |
a8ec6b |
# Compute PROPERTIESFILES
|
|
Packit |
a8ec6b |
# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
|
|
Packit |
a8ec6b |
# Compute CLASSFILES
|
|
Packit |
a8ec6b |
# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
|
|
Packit |
a8ec6b |
# Compute QMFILES
|
|
Packit |
a8ec6b |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
|
|
Packit |
a8ec6b |
# Compute MSGFILES
|
|
Packit |
a8ec6b |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
|
|
Packit |
a8ec6b |
# Compute RESOURCESDLLFILES
|
|
Packit |
a8ec6b |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
|
|
Packit |
a8ec6b |
case "$ac_given_srcdir" in
|
|
Packit |
a8ec6b |
.) srcdirpre= ;;
|
|
Packit |
a8ec6b |
*) srcdirpre='$(srcdir)/' ;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
POFILES=
|
|
Packit |
a8ec6b |
UPDATEPOFILES=
|
|
Packit |
a8ec6b |
DUMMYPOFILES=
|
|
Packit |
a8ec6b |
GMOFILES=
|
|
Packit |
a8ec6b |
PROPERTIESFILES=
|
|
Packit |
a8ec6b |
CLASSFILES=
|
|
Packit |
a8ec6b |
QMFILES=
|
|
Packit |
a8ec6b |
MSGFILES=
|
|
Packit |
a8ec6b |
RESOURCESDLLFILES=
|
|
Packit |
a8ec6b |
for lang in $ALL_LINGUAS; do
|
|
Packit |
a8ec6b |
POFILES="$POFILES $srcdirpre$lang.po"
|
|
Packit |
a8ec6b |
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
|
|
Packit |
a8ec6b |
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
|
|
Packit |
a8ec6b |
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
|
|
Packit |
a8ec6b |
PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
|
|
Packit |
a8ec6b |
CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
|
|
Packit |
a8ec6b |
QMFILES="$QMFILES $srcdirpre$lang.qm"
|
|
Packit |
a8ec6b |
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
|
Packit |
a8ec6b |
MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
|
|
Packit |
a8ec6b |
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
|
|
Packit |
a8ec6b |
RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
# CATALOGS depends on both $ac_dir and the user's LINGUAS
|
|
Packit |
a8ec6b |
# environment variable.
|
|
Packit |
a8ec6b |
INST_LINGUAS=
|
|
Packit |
a8ec6b |
if test -n "$ALL_LINGUAS"; then
|
|
Packit |
a8ec6b |
for presentlang in $ALL_LINGUAS; do
|
|
Packit |
a8ec6b |
useit=no
|
|
Packit |
a8ec6b |
if test "%UNSET%" != "$LINGUAS"; then
|
|
Packit |
a8ec6b |
desiredlanguages="$LINGUAS"
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
desiredlanguages="$ALL_LINGUAS"
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
for desiredlang in $desiredlanguages; do
|
|
Packit |
a8ec6b |
# Use the presentlang catalog if desiredlang is
|
|
Packit |
a8ec6b |
# a. equal to presentlang, or
|
|
Packit |
a8ec6b |
# b. a variant of presentlang (because in this case,
|
|
Packit |
a8ec6b |
# presentlang can be used as a fallback for messages
|
|
Packit |
a8ec6b |
# which are not translated in the desiredlang catalog).
|
|
Packit |
a8ec6b |
case "$desiredlang" in
|
|
Packit |
a8ec6b |
"$presentlang"*) useit=yes;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
if test $useit = yes; then
|
|
Packit |
a8ec6b |
INST_LINGUAS="$INST_LINGUAS $presentlang"
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
CATALOGS=
|
|
Packit |
a8ec6b |
JAVACATALOGS=
|
|
Packit |
a8ec6b |
QTCATALOGS=
|
|
Packit |
a8ec6b |
TCLCATALOGS=
|
|
Packit |
a8ec6b |
CSHARPCATALOGS=
|
|
Packit |
a8ec6b |
if test -n "$INST_LINGUAS"; then
|
|
Packit |
a8ec6b |
for lang in $INST_LINGUAS; do
|
|
Packit |
a8ec6b |
CATALOGS="$CATALOGS $lang.gmo"
|
|
Packit |
a8ec6b |
JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
|
|
Packit |
a8ec6b |
QTCATALOGS="$QTCATALOGS $lang.qm"
|
|
Packit |
a8ec6b |
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
|
Packit |
a8ec6b |
TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
|
|
Packit |
a8ec6b |
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
|
|
Packit |
a8ec6b |
CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
|
|
Packit |
a8ec6b |
tab=`printf '\t'`
|
|
Packit |
a8ec6b |
if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
|
|
Packit |
a8ec6b |
# Add dependencies that cannot be formulated as a simple suffix rule.
|
|
Packit |
a8ec6b |
for lang in $ALL_LINGUAS; do
|
|
Packit |
a8ec6b |
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
|
Packit |
a8ec6b |
cat >> "$ac_file.tmp" <
|
|
Packit |
a8ec6b |
$frobbedlang.msg: $lang.po
|
|
Packit |
a8ec6b |
${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
|
|
Packit |
a8ec6b |
${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
|
|
Packit |
a8ec6b |
EOF
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
|
|
Packit |
a8ec6b |
# Add dependencies that cannot be formulated as a simple suffix rule.
|
|
Packit |
a8ec6b |
for lang in $ALL_LINGUAS; do
|
|
Packit |
a8ec6b |
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
|
|
Packit |
a8ec6b |
cat >> "$ac_file.tmp" <
|
|
Packit |
a8ec6b |
$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
|
|
Packit |
a8ec6b |
${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
|
|
Packit |
a8ec6b |
${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
|
|
Packit |
a8ec6b |
EOF
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
if test -n "$POMAKEFILEDEPS"; then
|
|
Packit |
a8ec6b |
cat >> "$ac_file.tmp" <
|
|
Packit |
a8ec6b |
Makefile: $POMAKEFILEDEPS
|
|
Packit |
a8ec6b |
EOF
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
mv "$ac_file.tmp" "$ac_file"
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
|
|
Packit |
a8ec6b |
[
|
|
Packit |
a8ec6b |
XGETTEXT_EXTRA_OPTIONS=
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Registers an option to be passed to xgettext in the po subdirectory.
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_XGETTEXT_OPTION],
|
|
Packit |
a8ec6b |
[
|
|
Packit |
a8ec6b |
AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
|
|
Packit |
a8ec6b |
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# progtest.m4 serial 7 (gettext-0.18.2)
|
|
Packit |
a8ec6b |
dnl Copyright (C) 1996-2003, 2005, 2008-2016 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
dnl This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
dnl
|
|
Packit |
a8ec6b |
dnl This file can be used in projects which are not available under
|
|
Packit |
a8ec6b |
dnl the GNU General Public License or the GNU Library General Public
|
|
Packit |
a8ec6b |
dnl License but which still want to provide support for the GNU gettext
|
|
Packit |
a8ec6b |
dnl functionality.
|
|
Packit |
a8ec6b |
dnl Please note that the actual code of the GNU gettext library is covered
|
|
Packit |
a8ec6b |
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
Packit |
a8ec6b |
dnl gettext package is covered by the GNU General Public License.
|
|
Packit |
a8ec6b |
dnl They are *not* in the public domain.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Authors:
|
|
Packit |
a8ec6b |
dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_PREREQ([2.50])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Search path for a program which passes the given test.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
|
|
Packit |
a8ec6b |
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_PATH_PROG_WITH_TEST],
|
|
Packit |
a8ec6b |
[
|
|
Packit |
a8ec6b |
# Prepare PATH_SEPARATOR.
|
|
Packit |
a8ec6b |
# The user is always right.
|
|
Packit |
a8ec6b |
if test "${PATH_SEPARATOR+set}" != set; then
|
|
Packit |
a8ec6b |
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
|
|
Packit |
a8ec6b |
# contains only /bin. Note that ksh looks also at the FPATH variable,
|
|
Packit |
a8ec6b |
# so we have to set that as well for the test.
|
|
Packit |
a8ec6b |
PATH_SEPARATOR=:
|
|
Packit |
a8ec6b |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
|
|
Packit |
a8ec6b |
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
|
|
Packit |
a8ec6b |
|| PATH_SEPARATOR=';'
|
|
Packit |
a8ec6b |
}
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Find out how to test for executable files. Don't use a zero-byte file,
|
|
Packit |
a8ec6b |
# as systems may use methods other than mode bits to determine executability.
|
|
Packit |
a8ec6b |
cat >conf$$.file <<_ASEOF
|
|
Packit |
a8ec6b |
#! /bin/sh
|
|
Packit |
a8ec6b |
exit 0
|
|
Packit |
a8ec6b |
_ASEOF
|
|
Packit |
a8ec6b |
chmod +x conf$$.file
|
|
Packit |
a8ec6b |
if test -x conf$$.file >/dev/null 2>&1; then
|
|
Packit |
a8ec6b |
ac_executable_p="test -x"
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
ac_executable_p="test -f"
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
rm -f conf$$.file
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Extract the first word of "$2", so it can be a program name with args.
|
|
Packit |
a8ec6b |
set dummy $2; ac_word=[$]2
|
|
Packit |
a8ec6b |
AC_MSG_CHECKING([for $ac_word])
|
|
Packit |
a8ec6b |
AC_CACHE_VAL([ac_cv_path_$1],
|
|
Packit |
a8ec6b |
[case "[$]$1" in
|
|
Packit |
a8ec6b |
[[\\/]]* | ?:[[\\/]]*)
|
|
Packit |
a8ec6b |
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
*)
|
|
Packit |
a8ec6b |
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
|
|
Packit |
a8ec6b |
for ac_dir in ifelse([$5], , $PATH, [$5]); do
|
|
Packit |
a8ec6b |
IFS="$ac_save_IFS"
|
|
Packit |
a8ec6b |
test -z "$ac_dir" && ac_dir=.
|
|
Packit |
a8ec6b |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
Packit |
a8ec6b |
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
|
|
Packit |
a8ec6b |
echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
|
|
Packit |
a8ec6b |
if [$3]; then
|
|
Packit |
a8ec6b |
ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
|
|
Packit |
a8ec6b |
break 2
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
IFS="$ac_save_IFS"
|
|
Packit |
a8ec6b |
dnl If no 4th arg is given, leave the cache variable unset,
|
|
Packit |
a8ec6b |
dnl so AC_PATH_PROGS will keep looking.
|
|
Packit |
a8ec6b |
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
|
|
Packit |
a8ec6b |
])dnl
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
esac])dnl
|
|
Packit |
a8ec6b |
$1="$ac_cv_path_$1"
|
|
Packit |
a8ec6b |
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
|
|
Packit |
a8ec6b |
AC_MSG_RESULT([$][$1])
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
AC_MSG_RESULT([no])
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
AC_SUBST([$1])dnl
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_AUTOMAKE_VERSION(VERSION)
|
|
Packit |
a8ec6b |
# ----------------------------
|
|
Packit |
a8ec6b |
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
|
Packit |
a8ec6b |
# generated from the m4 files accompanying Automake X.Y.
|
|
Packit |
a8ec6b |
# (This private macro should not be called outside this file.)
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|
Packit Service |
9bd718 |
[am__api_version='1.13'
|
|
Packit |
a8ec6b |
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
|
Packit |
a8ec6b |
dnl require some minimum version. Point them to the right macro.
|
|
Packit Service |
9bd718 |
m4_if([$1], [1.13.4], [],
|
|
Packit |
a8ec6b |
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# _AM_AUTOCONF_VERSION(VERSION)
|
|
Packit |
a8ec6b |
# -----------------------------
|
|
Packit |
a8ec6b |
# aclocal traces this macro to find the Autoconf version.
|
|
Packit |
a8ec6b |
# This is a private macro too. Using m4_define simplifies
|
|
Packit |
a8ec6b |
# the logic in aclocal, which can simply ignore this definition.
|
|
Packit |
a8ec6b |
m4_define([_AM_AUTOCONF_VERSION], [])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
|
Packit |
a8ec6b |
# -------------------------------
|
|
Packit |
a8ec6b |
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
|
Packit |
a8ec6b |
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|
Packit Service |
9bd718 |
[AM_AUTOMAKE_VERSION([1.13.4])dnl
|
|
Packit |
a8ec6b |
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
Packit |
a8ec6b |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
Packit |
a8ec6b |
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
|
Packit |
a8ec6b |
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
|
|
Packit |
a8ec6b |
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# Of course, Automake must honor this variable whenever it calls a
|
|
Packit |
a8ec6b |
# tool from the auxiliary directory. The problem is that $srcdir (and
|
|
Packit |
a8ec6b |
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
|
Packit |
a8ec6b |
# depending on how configure is run. This is pretty annoying, since
|
|
Packit |
a8ec6b |
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
|
Packit |
a8ec6b |
# source directory, any form will work fine, but in subdirectories a
|
|
Packit |
a8ec6b |
# relative path needs to be adjusted first.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# $ac_aux_dir/missing
|
|
Packit |
a8ec6b |
# fails when called from a subdirectory if $ac_aux_dir is relative
|
|
Packit |
a8ec6b |
# $top_srcdir/$ac_aux_dir/missing
|
|
Packit |
a8ec6b |
# fails if $ac_aux_dir is absolute,
|
|
Packit |
a8ec6b |
# fails when called from a subdirectory in a VPATH build with
|
|
Packit |
a8ec6b |
# a relative $ac_aux_dir
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
|
Packit |
a8ec6b |
# are both prefixed by $srcdir. In an in-source build this is usually
|
|
Packit |
a8ec6b |
# harmless because $srcdir is '.', but things will broke when you
|
|
Packit |
a8ec6b |
# start a VPATH build or use an absolute $srcdir.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
|
Packit |
a8ec6b |
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
|
Packit |
a8ec6b |
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
|
Packit |
a8ec6b |
# and then we would define $MISSING as
|
|
Packit |
a8ec6b |
# MISSING="\${SHELL} $am_aux_dir/missing"
|
|
Packit |
a8ec6b |
# This will work as long as MISSING is not called from configure, because
|
|
Packit |
a8ec6b |
# unfortunately $(top_srcdir) has no meaning in configure.
|
|
Packit |
a8ec6b |
# However there are other variables, like CC, which are often used in
|
|
Packit |
a8ec6b |
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# Another solution, used here, is to always expand $ac_aux_dir to an
|
|
Packit |
a8ec6b |
# absolute PATH. The drawback is that using absolute paths prevent a
|
|
Packit |
a8ec6b |
# configured tree to be moved without reconfiguration.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
|
Packit Service |
9bd718 |
[dnl Rely on autoconf to set up CDPATH properly.
|
|
Packit Service |
9bd718 |
AC_PREREQ([2.50])dnl
|
|
Packit Service |
9bd718 |
# expand $ac_aux_dir to an absolute path
|
|
Packit Service |
9bd718 |
am_aux_dir=`cd $ac_aux_dir && pwd`
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_COND_IF -*- Autoconf -*-
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 2008-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# _AM_COND_IF
|
|
Packit |
a8ec6b |
# _AM_COND_ELSE
|
|
Packit |
a8ec6b |
# _AM_COND_ENDIF
|
|
Packit |
a8ec6b |
# --------------
|
|
Packit |
a8ec6b |
# These macros are only used for tracing.
|
|
Packit |
a8ec6b |
m4_define([_AM_COND_IF])
|
|
Packit |
a8ec6b |
m4_define([_AM_COND_ELSE])
|
|
Packit |
a8ec6b |
m4_define([_AM_COND_ENDIF])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
|
|
Packit |
a8ec6b |
# ---------------------------------------
|
|
Packit |
a8ec6b |
# If the shell condition COND is true, execute IF-TRUE, otherwise execute
|
|
Packit |
a8ec6b |
# IF-FALSE. Allow automake to learn about conditional instantiating macros
|
|
Packit |
a8ec6b |
# (the AC_CONFIG_FOOS).
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_COND_IF],
|
|
Packit |
a8ec6b |
[m4_ifndef([_AM_COND_VALUE_$1],
|
|
Packit |
a8ec6b |
[m4_fatal([$0: no such condition "$1"])])dnl
|
|
Packit |
a8ec6b |
_AM_COND_IF([$1])dnl
|
|
Packit |
a8ec6b |
if test -z "$$1_TRUE"; then :
|
|
Packit |
a8ec6b |
m4_n([$2])[]dnl
|
|
Packit |
a8ec6b |
m4_ifval([$3],
|
|
Packit |
a8ec6b |
[_AM_COND_ELSE([$1])dnl
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
$3
|
|
Packit |
a8ec6b |
])dnl
|
|
Packit |
a8ec6b |
_AM_COND_ENDIF([$1])dnl
|
|
Packit |
a8ec6b |
fi[]dnl
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_CONDITIONAL -*- Autoconf -*-
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|
Packit |
a8ec6b |
# -------------------------------------
|
|
Packit |
a8ec6b |
# Define a conditional.
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_CONDITIONAL],
|
|
Packit |
a8ec6b |
[AC_PREREQ([2.52])dnl
|
|
Packit |
a8ec6b |
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
|
Packit |
a8ec6b |
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|
Packit |
a8ec6b |
AC_SUBST([$1_TRUE])dnl
|
|
Packit |
a8ec6b |
AC_SUBST([$1_FALSE])dnl
|
|
Packit |
a8ec6b |
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
|
Packit |
a8ec6b |
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
|
Packit |
a8ec6b |
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
|
Packit |
a8ec6b |
if $2; then
|
|
Packit |
a8ec6b |
$1_TRUE=
|
|
Packit |
a8ec6b |
$1_FALSE='#'
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
$1_TRUE='#'
|
|
Packit |
a8ec6b |
$1_FALSE=
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
AC_CONFIG_COMMANDS_PRE(
|
|
Packit |
a8ec6b |
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
|
Packit |
a8ec6b |
AC_MSG_ERROR([[conditional "$1" was never defined.
|
|
Packit |
a8ec6b |
Usually this means the macro was only invoked conditionally.]])
|
|
Packit |
a8ec6b |
fi])])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Do all the work for Automake. -*- Autoconf -*-
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# This macro actually does too much. Some checks are only needed if
|
|
Packit |
a8ec6b |
# your package does certain things. But this isn't really a big deal.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
|
Packit |
a8ec6b |
# AM_INIT_AUTOMAKE([OPTIONS])
|
|
Packit |
a8ec6b |
# -----------------------------------------------
|
|
Packit |
a8ec6b |
# The call with PACKAGE and VERSION arguments is the old style
|
|
Packit |
a8ec6b |
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
|
Packit |
a8ec6b |
# and VERSION should now be passed to AC_INIT and removed from
|
|
Packit |
a8ec6b |
# the call to AM_INIT_AUTOMAKE.
|
|
Packit |
a8ec6b |
# We support both call styles for the transition. After
|
|
Packit |
a8ec6b |
# the next Automake release, Autoconf can make the AC_INIT
|
|
Packit |
a8ec6b |
# arguments mandatory, and then we can depend on a new Autoconf
|
|
Packit |
a8ec6b |
# release and drop the old call support.
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_INIT_AUTOMAKE],
|
|
Packit |
a8ec6b |
[AC_PREREQ([2.65])dnl
|
|
Packit |
a8ec6b |
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
|
Packit |
a8ec6b |
dnl the ones we care about.
|
|
Packit |
a8ec6b |
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
|
Packit |
a8ec6b |
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
|
Packit |
a8ec6b |
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|
Packit |
a8ec6b |
if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
|
Packit |
a8ec6b |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
|
Packit |
a8ec6b |
# is not polluted with repeated "-I."
|
|
Packit |
a8ec6b |
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
|
Packit |
a8ec6b |
# test to see if srcdir already configured
|
|
Packit |
a8ec6b |
if test -f $srcdir/config.status; then
|
|
Packit |
a8ec6b |
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# test whether we have cygpath
|
|
Packit |
a8ec6b |
if test -z "$CYGPATH_W"; then
|
|
Packit |
a8ec6b |
if (cygpath --version) >/dev/null 2>/dev/null; then
|
|
Packit |
a8ec6b |
CYGPATH_W='cygpath -w'
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
CYGPATH_W=echo
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
AC_SUBST([CYGPATH_W])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Define the identity of the package.
|
|
Packit |
a8ec6b |
dnl Distinguish between old-style and new-style calls.
|
|
Packit |
a8ec6b |
m4_ifval([$2],
|
|
Packit |
a8ec6b |
[AC_DIAGNOSE([obsolete],
|
|
Packit |
a8ec6b |
[$0: two- and three-arguments forms are deprecated.])
|
|
Packit |
a8ec6b |
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
|
Packit |
a8ec6b |
AC_SUBST([PACKAGE], [$1])dnl
|
|
Packit |
a8ec6b |
AC_SUBST([VERSION], [$2])],
|
|
Packit |
a8ec6b |
[_AM_SET_OPTIONS([$1])dnl
|
|
Packit |
a8ec6b |
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
|
Packit |
a8ec6b |
m4_if(
|
|
Packit |
a8ec6b |
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
|
|
Packit |
a8ec6b |
[ok:ok],,
|
|
Packit |
a8ec6b |
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
|
Packit |
a8ec6b |
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
|
Packit |
a8ec6b |
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
_AM_IF_OPTION([no-define],,
|
|
Packit |
a8ec6b |
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
|
|
Packit |
a8ec6b |
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Some tools Automake needs.
|
|
Packit |
a8ec6b |
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
|
Packit |
a8ec6b |
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
|
Packit |
a8ec6b |
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
|
|
Packit |
a8ec6b |
AM_MISSING_PROG([AUTOCONF], [autoconf])
|
|
Packit |
a8ec6b |
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
|
|
Packit |
a8ec6b |
AM_MISSING_PROG([AUTOHEADER], [autoheader])
|
|
Packit |
a8ec6b |
AM_MISSING_PROG([MAKEINFO], [makeinfo])
|
|
Packit |
a8ec6b |
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
Packit |
a8ec6b |
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
|
Packit |
a8ec6b |
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
Packit |
a8ec6b |
# For better backward compatibility. To be removed once Automake 1.9.x
|
|
Packit |
a8ec6b |
# dies out for good. For more background, see:
|
|
Packit Service |
9bd718 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
|
Packit Service |
9bd718 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
|
Packit |
a8ec6b |
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
|
|
Packit Service |
9bd718 |
# We need awk for the "check" target. The system "awk" is bad on
|
|
Packit Service |
9bd718 |
# some platforms.
|
|
Packit |
a8ec6b |
AC_REQUIRE([AC_PROG_AWK])dnl
|
|
Packit |
a8ec6b |
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
Packit |
a8ec6b |
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
Packit |
a8ec6b |
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
|
Packit |
a8ec6b |
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
|
Packit |
a8ec6b |
[_AM_PROG_TAR([v7])])])
|
|
Packit |
a8ec6b |
_AM_IF_OPTION([no-dependencies],,
|
|
Packit |
a8ec6b |
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
|
Packit |
a8ec6b |
[_AM_DEPENDENCIES([CC])],
|
|
Packit |
a8ec6b |
[m4_define([AC_PROG_CC],
|
|
Packit |
a8ec6b |
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
|
|
Packit |
a8ec6b |
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|
Packit |
a8ec6b |
[_AM_DEPENDENCIES([CXX])],
|
|
Packit |
a8ec6b |
[m4_define([AC_PROG_CXX],
|
|
Packit |
a8ec6b |
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
|
|
Packit |
a8ec6b |
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
|
Packit |
a8ec6b |
[_AM_DEPENDENCIES([OBJC])],
|
|
Packit |
a8ec6b |
[m4_define([AC_PROG_OBJC],
|
|
Packit |
a8ec6b |
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
|
|
Packit |
a8ec6b |
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
|
|
Packit |
a8ec6b |
[_AM_DEPENDENCIES([OBJCXX])],
|
|
Packit |
a8ec6b |
[m4_define([AC_PROG_OBJCXX],
|
|
Packit |
a8ec6b |
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
AC_REQUIRE([AM_SILENT_RULES])dnl
|
|
Packit |
a8ec6b |
dnl The testsuite driver may need to know about EXEEXT, so add the
|
|
Packit |
a8ec6b |
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
|
|
Packit |
a8ec6b |
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
|
Packit |
a8ec6b |
AC_CONFIG_COMMANDS_PRE(dnl
|
|
Packit |
a8ec6b |
[m4_provide_if([_AM_COMPILER_EXEEXT],
|
|
Packit |
a8ec6b |
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
|
|
Packit |
a8ec6b |
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
|
|
Packit |
a8ec6b |
dnl mangled by Autoconf and run in a shell conditional statement.
|
|
Packit |
a8ec6b |
m4_define([_AC_COMPILER_EXEEXT],
|
|
Packit |
a8ec6b |
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
|
|
Packit |
a8ec6b |
# When config.status generates a header, we must update the stamp-h file.
|
|
Packit |
a8ec6b |
# This file resides in the same directory as the config header
|
|
Packit |
a8ec6b |
# that is generated. The stamp files are numbered to have different names.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
|
Packit |
a8ec6b |
# loop where config.status creates the headers, so we can generate
|
|
Packit |
a8ec6b |
# our stamp files there.
|
|
Packit |
a8ec6b |
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
|
Packit |
a8ec6b |
[# Compute $1's index in $config_headers.
|
|
Packit |
a8ec6b |
_am_arg=$1
|
|
Packit |
a8ec6b |
_am_stamp_count=1
|
|
Packit |
a8ec6b |
for _am_header in $config_headers :; do
|
|
Packit |
a8ec6b |
case $_am_header in
|
|
Packit |
a8ec6b |
$_am_arg | $_am_arg:* )
|
|
Packit |
a8ec6b |
break ;;
|
|
Packit |
a8ec6b |
* )
|
|
Packit |
a8ec6b |
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_PROG_INSTALL_SH
|
|
Packit |
a8ec6b |
# ------------------
|
|
Packit |
a8ec6b |
# Define $install_sh.
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_PROG_INSTALL_SH],
|
|
Packit |
a8ec6b |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
Packit Service |
9bd718 |
if test x"${install_sh}" != xset; then
|
|
Packit |
a8ec6b |
case $am_aux_dir in
|
|
Packit |
a8ec6b |
*\ * | *\ *)
|
|
Packit |
a8ec6b |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
|
Packit |
a8ec6b |
*)
|
|
Packit |
a8ec6b |
install_sh="\${SHELL} $am_aux_dir/install-sh"
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
AC_SUBST([install_sh])])
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Check whether the underlying file-system supports filenames
|
|
Packit |
a8ec6b |
# with a leading dot. For instance MS-DOS doesn't.
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_SET_LEADING_DOT],
|
|
Packit |
a8ec6b |
[rm -rf .tst 2>/dev/null
|
|
Packit |
a8ec6b |
mkdir .tst 2>/dev/null
|
|
Packit |
a8ec6b |
if test -d .tst; then
|
|
Packit |
a8ec6b |
am__leading_dot=.
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
am__leading_dot=_
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
rmdir .tst 2>/dev/null
|
|
Packit |
a8ec6b |
AC_SUBST([am__leading_dot])])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_MISSING_PROG(NAME, PROGRAM)
|
|
Packit |
a8ec6b |
# ------------------------------
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_MISSING_PROG],
|
|
Packit |
a8ec6b |
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
|
Packit |
a8ec6b |
$1=${$1-"${am_missing_run}$2"}
|
|
Packit |
a8ec6b |
AC_SUBST($1)])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_MISSING_HAS_RUN
|
|
Packit |
a8ec6b |
# ------------------
|
|
Packit |
a8ec6b |
# Define MISSING if not defined so far and test if it is modern enough.
|
|
Packit |
a8ec6b |
# If it is, set am_missing_run to use it, otherwise, to nothing.
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_MISSING_HAS_RUN],
|
|
Packit |
a8ec6b |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
Packit |
a8ec6b |
AC_REQUIRE_AUX_FILE([missing])dnl
|
|
Packit |
a8ec6b |
if test x"${MISSING+set}" != xset; then
|
|
Packit |
a8ec6b |
case $am_aux_dir in
|
|
Packit |
a8ec6b |
*\ * | *\ *)
|
|
Packit |
a8ec6b |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
|
Packit |
a8ec6b |
*)
|
|
Packit |
a8ec6b |
MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
# Use eval to expand $SHELL
|
|
Packit |
a8ec6b |
if eval "$MISSING --is-lightweight"; then
|
|
Packit |
a8ec6b |
am_missing_run="$MISSING "
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
am_missing_run=
|
|
Packit |
a8ec6b |
AC_MSG_WARN(['missing' script is too old or missing])
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Helper functions for option handling. -*- Autoconf -*-
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# _AM_MANGLE_OPTION(NAME)
|
|
Packit |
a8ec6b |
# -----------------------
|
|
Packit |
a8ec6b |
AC_DEFUN([_AM_MANGLE_OPTION],
|
|
Packit |
a8ec6b |
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# _AM_SET_OPTION(NAME)
|
|
Packit |
a8ec6b |
# --------------------
|
|
Packit |
a8ec6b |
# Set option NAME. Presently that only means defining a flag for this option.
|
|
Packit |
a8ec6b |
AC_DEFUN([_AM_SET_OPTION],
|
|
Packit |
a8ec6b |
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# _AM_SET_OPTIONS(OPTIONS)
|
|
Packit |
a8ec6b |
# ------------------------
|
|
Packit |
a8ec6b |
# OPTIONS is a space-separated list of Automake options.
|
|
Packit |
a8ec6b |
AC_DEFUN([_AM_SET_OPTIONS],
|
|
Packit |
a8ec6b |
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
|
Packit |
a8ec6b |
# -------------------------------------------
|
|
Packit |
a8ec6b |
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|
Packit |
a8ec6b |
AC_DEFUN([_AM_IF_OPTION],
|
|
Packit |
a8ec6b |
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
|
Packit |
a8ec6b |
# ---------------------------------------------------------------------------
|
|
Packit |
a8ec6b |
# Adds support for distributing Python modules and packages. To
|
|
Packit |
a8ec6b |
# install modules, copy them to $(pythondir), using the python_PYTHON
|
|
Packit |
a8ec6b |
# automake variable. To install a package with the same name as the
|
|
Packit |
a8ec6b |
# automake package, install to $(pkgpythondir), or use the
|
|
Packit |
a8ec6b |
# pkgpython_PYTHON automake variable.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
|
|
Packit |
a8ec6b |
# locations to install python extension modules (shared libraries).
|
|
Packit |
a8ec6b |
# Another macro is required to find the appropriate flags to compile
|
|
Packit |
a8ec6b |
# extension modules.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# If your package is configured with a different prefix to python,
|
|
Packit |
a8ec6b |
# users will have to add the install directory to the PYTHONPATH
|
|
Packit |
a8ec6b |
# environment variable, or create a .pth file (see the python
|
|
Packit |
a8ec6b |
# documentation for details).
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
|
|
Packit |
a8ec6b |
# cause an error if the version of python installed on the system
|
|
Packit |
a8ec6b |
# doesn't meet the requirement. MINIMUM-VERSION should consist of
|
|
Packit |
a8ec6b |
# numbers and dots only.
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_PATH_PYTHON],
|
|
Packit |
a8ec6b |
[
|
|
Packit |
a8ec6b |
dnl Find a Python interpreter. Python versions prior to 2.0 are not
|
|
Packit |
a8ec6b |
dnl supported. (2.0 was released on October 16, 2000).
|
|
Packit |
a8ec6b |
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
|
|
Packit Service |
9bd718 |
[python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
|
|
Packit Service |
9bd718 |
python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_ARG_VAR([PYTHON], [the Python interpreter])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
m4_if([$1],[],[
|
|
Packit |
a8ec6b |
dnl No version check is needed.
|
|
Packit |
a8ec6b |
# Find any Python interpreter.
|
|
Packit |
a8ec6b |
if test -z "$PYTHON"; then
|
|
Packit |
a8ec6b |
AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
am_display_PYTHON=python
|
|
Packit |
a8ec6b |
], [
|
|
Packit |
a8ec6b |
dnl A version check is needed.
|
|
Packit |
a8ec6b |
if test -n "$PYTHON"; then
|
|
Packit |
a8ec6b |
# If the user set $PYTHON, use it and don't search something else.
|
|
Packit |
a8ec6b |
AC_MSG_CHECKING([whether $PYTHON version is >= $1])
|
|
Packit |
a8ec6b |
AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
|
|
Packit |
a8ec6b |
[AC_MSG_RESULT([yes])],
|
|
Packit |
a8ec6b |
[AC_MSG_RESULT([no])
|
|
Packit |
a8ec6b |
AC_MSG_ERROR([Python interpreter is too old])])
|
|
Packit |
a8ec6b |
am_display_PYTHON=$PYTHON
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
# Otherwise, try each interpreter until we find one that satisfies
|
|
Packit |
a8ec6b |
# VERSION.
|
|
Packit |
a8ec6b |
AC_CACHE_CHECK([for a Python interpreter with version >= $1],
|
|
Packit |
a8ec6b |
[am_cv_pathless_PYTHON],[
|
|
Packit |
a8ec6b |
for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
|
|
Packit |
a8ec6b |
test "$am_cv_pathless_PYTHON" = none && break
|
|
Packit |
a8ec6b |
AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
|
|
Packit |
a8ec6b |
done])
|
|
Packit |
a8ec6b |
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
|
|
Packit |
a8ec6b |
if test "$am_cv_pathless_PYTHON" = none; then
|
|
Packit |
a8ec6b |
PYTHON=:
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
am_display_PYTHON=$am_cv_pathless_PYTHON
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
if test "$PYTHON" = :; then
|
|
Packit |
a8ec6b |
dnl Run any user-specified action, or abort.
|
|
Packit |
a8ec6b |
m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Query Python for its version number. Getting [:3] seems to be
|
|
Packit |
a8ec6b |
dnl the best way to do this; it's what "site.py" does in the standard
|
|
Packit |
a8ec6b |
dnl library.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
|
|
Packit |
a8ec6b |
[am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
|
|
Packit |
a8ec6b |
AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Use the values of $prefix and $exec_prefix for the corresponding
|
|
Packit |
a8ec6b |
dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
|
|
Packit |
a8ec6b |
dnl distinct variables so they can be overridden if need be. However,
|
|
Packit |
a8ec6b |
dnl general consensus is that you shouldn't need this ability.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
|
|
Packit |
a8ec6b |
AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl At times (like when building shared libraries) you may want
|
|
Packit |
a8ec6b |
dnl to know which OS platform Python thinks this is.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
|
|
Packit |
a8ec6b |
[am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
|
|
Packit |
a8ec6b |
AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Just factor out some code duplication.
|
|
Packit |
a8ec6b |
am_python_setup_sysconfig="\
|
|
Packit |
a8ec6b |
import sys
|
|
Packit |
a8ec6b |
# Prefer sysconfig over distutils.sysconfig, for better compatibility
|
|
Packit |
a8ec6b |
# with python 3.x. See automake bug#10227.
|
|
Packit |
a8ec6b |
try:
|
|
Packit |
a8ec6b |
import sysconfig
|
|
Packit |
a8ec6b |
except ImportError:
|
|
Packit |
a8ec6b |
can_use_sysconfig = 0
|
|
Packit |
a8ec6b |
else:
|
|
Packit |
a8ec6b |
can_use_sysconfig = 1
|
|
Packit |
a8ec6b |
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
|
|
Packit |
a8ec6b |
# <https://github.com/pypa/virtualenv/issues/118>
|
|
Packit |
a8ec6b |
try:
|
|
Packit |
a8ec6b |
from platform import python_implementation
|
|
Packit |
a8ec6b |
if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
|
|
Packit |
a8ec6b |
can_use_sysconfig = 0
|
|
Packit |
a8ec6b |
except ImportError:
|
|
Packit |
a8ec6b |
pass"
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Set up 4 directories:
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl pythondir -- where to install python scripts. This is the
|
|
Packit |
a8ec6b |
dnl site-packages directory, not the python standard library
|
|
Packit |
a8ec6b |
dnl directory like in previous automake betas. This behavior
|
|
Packit |
a8ec6b |
dnl is more consistent with lispdir.m4 for example.
|
|
Packit |
a8ec6b |
dnl Query distutils for this directory.
|
|
Packit |
a8ec6b |
AC_CACHE_CHECK([for $am_display_PYTHON script directory],
|
|
Packit |
a8ec6b |
[am_cv_python_pythondir],
|
|
Packit |
a8ec6b |
[if test "x$prefix" = xNONE
|
|
Packit |
a8ec6b |
then
|
|
Packit |
a8ec6b |
am_py_prefix=$ac_default_prefix
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
am_py_prefix=$prefix
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
am_cv_python_pythondir=`$PYTHON -c "
|
|
Packit |
a8ec6b |
$am_python_setup_sysconfig
|
|
Packit |
a8ec6b |
if can_use_sysconfig:
|
|
Packit |
a8ec6b |
sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
|
|
Packit |
a8ec6b |
else:
|
|
Packit |
a8ec6b |
from distutils import sysconfig
|
|
Packit |
a8ec6b |
sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
|
|
Packit |
a8ec6b |
sys.stdout.write(sitedir)"`
|
|
Packit |
a8ec6b |
case $am_cv_python_pythondir in
|
|
Packit |
a8ec6b |
$am_py_prefix*)
|
|
Packit |
a8ec6b |
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
|
|
Packit |
a8ec6b |
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
*)
|
|
Packit |
a8ec6b |
case $am_py_prefix in
|
|
Packit |
a8ec6b |
/usr|/System*) ;;
|
|
Packit |
a8ec6b |
*)
|
|
Packit |
a8ec6b |
am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
AC_SUBST([pythondir], [$am_cv_python_pythondir])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
|
|
Packit |
a8ec6b |
dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
|
|
Packit |
a8ec6b |
dnl more consistent with the rest of automake.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl pyexecdir -- directory for installing python extension modules
|
|
Packit |
a8ec6b |
dnl (shared libraries)
|
|
Packit |
a8ec6b |
dnl Query distutils for this directory.
|
|
Packit |
a8ec6b |
AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
|
|
Packit |
a8ec6b |
[am_cv_python_pyexecdir],
|
|
Packit |
a8ec6b |
[if test "x$exec_prefix" = xNONE
|
|
Packit |
a8ec6b |
then
|
|
Packit |
a8ec6b |
am_py_exec_prefix=$am_py_prefix
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
am_py_exec_prefix=$exec_prefix
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
am_cv_python_pyexecdir=`$PYTHON -c "
|
|
Packit |
a8ec6b |
$am_python_setup_sysconfig
|
|
Packit |
a8ec6b |
if can_use_sysconfig:
|
|
Packit |
a8ec6b |
sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
|
|
Packit |
a8ec6b |
else:
|
|
Packit |
a8ec6b |
from distutils import sysconfig
|
|
Packit |
a8ec6b |
sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
|
|
Packit |
a8ec6b |
sys.stdout.write(sitedir)"`
|
|
Packit |
a8ec6b |
case $am_cv_python_pyexecdir in
|
|
Packit |
a8ec6b |
$am_py_exec_prefix*)
|
|
Packit |
a8ec6b |
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
|
|
Packit |
a8ec6b |
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
*)
|
|
Packit |
a8ec6b |
case $am_py_exec_prefix in
|
|
Packit |
a8ec6b |
/usr|/System*) ;;
|
|
Packit |
a8ec6b |
*)
|
|
Packit |
a8ec6b |
am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
dnl Run any user-specified action.
|
|
Packit |
a8ec6b |
$2
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
|
|
Packit |
a8ec6b |
# ---------------------------------------------------------------------------
|
|
Packit |
a8ec6b |
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
|
|
Packit |
a8ec6b |
# Run ACTION-IF-FALSE otherwise.
|
|
Packit |
a8ec6b |
# This test uses sys.hexversion instead of the string equivalent (first
|
|
Packit |
a8ec6b |
# word of sys.version), in order to cope with versions such as 2.2c1.
|
|
Packit |
a8ec6b |
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
|
|
Packit |
a8ec6b |
[prog="import sys
|
|
Packit |
a8ec6b |
# split strings by '.' and convert to numeric. Append some zeros
|
|
Packit |
a8ec6b |
# because we need at least 4 digits for the hex conversion.
|
|
Packit |
a8ec6b |
# map returns an iterator in Python 3.0 and a list in 2.x
|
|
Packit |
a8ec6b |
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
|
|
Packit |
a8ec6b |
minverhex = 0
|
|
Packit |
a8ec6b |
# xrange is not present in Python 3.0 and range returns an iterator
|
|
Packit |
a8ec6b |
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
|
|
Packit |
a8ec6b |
sys.exit(sys.hexversion < minverhex)"
|
|
Packit |
a8ec6b |
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_RUN_LOG(COMMAND)
|
|
Packit |
a8ec6b |
# -------------------
|
|
Packit |
a8ec6b |
# Run COMMAND, save the exit status in ac_status, and log it.
|
|
Packit |
a8ec6b |
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_RUN_LOG],
|
|
Packit |
a8ec6b |
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
|
|
Packit |
a8ec6b |
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
|
|
Packit |
a8ec6b |
ac_status=$?
|
|
Packit |
a8ec6b |
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
|
Packit |
a8ec6b |
(exit $ac_status); }])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_SANITY_CHECK
|
|
Packit |
a8ec6b |
# ---------------
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_SANITY_CHECK],
|
|
Packit |
a8ec6b |
[AC_MSG_CHECKING([whether build environment is sane])
|
|
Packit |
a8ec6b |
# Reject unsafe characters in $srcdir or the absolute working directory
|
|
Packit |
a8ec6b |
# name. Accept space and tab only in the latter.
|
|
Packit |
a8ec6b |
am_lf='
|
|
Packit |
a8ec6b |
'
|
|
Packit |
a8ec6b |
case `pwd` in
|
|
Packit |
a8ec6b |
*[[\\\"\#\$\&\'\`$am_lf]]*)
|
|
Packit |
a8ec6b |
AC_MSG_ERROR([unsafe absolute working directory name]);;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
case $srcdir in
|
|
Packit |
a8ec6b |
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
|
|
Packit |
a8ec6b |
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Do 'set' in a subshell so we don't clobber the current shell's
|
|
Packit |
a8ec6b |
# arguments. Must try -L first in case configure is actually a
|
|
Packit |
a8ec6b |
# symlink; some systems play weird games with the mod time of symlinks
|
|
Packit |
a8ec6b |
# (eg FreeBSD returns the mod time of the symlink's containing
|
|
Packit |
a8ec6b |
# directory).
|
|
Packit |
a8ec6b |
if (
|
|
Packit |
a8ec6b |
am_has_slept=no
|
|
Packit |
a8ec6b |
for am_try in 1 2; do
|
|
Packit |
a8ec6b |
echo "timestamp, slept: $am_has_slept" > conftest.file
|
|
Packit |
a8ec6b |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
|
Packit |
a8ec6b |
if test "$[*]" = "X"; then
|
|
Packit |
a8ec6b |
# -L didn't work.
|
|
Packit |
a8ec6b |
set X `ls -t "$srcdir/configure" conftest.file`
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
|
Packit |
a8ec6b |
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# If neither matched, then we have a broken ls. This can happen
|
|
Packit |
a8ec6b |
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
Packit |
a8ec6b |
# broken ls alias from the environment. This has actually
|
|
Packit |
a8ec6b |
# happened. Such a system could not be considered "sane".
|
|
Packit |
a8ec6b |
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
|
Packit |
a8ec6b |
alias in your environment])
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
if test "$[2]" = conftest.file || test $am_try -eq 2; then
|
|
Packit |
a8ec6b |
break
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
# Just in case.
|
|
Packit |
a8ec6b |
sleep 1
|
|
Packit |
a8ec6b |
am_has_slept=yes
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
test "$[2]" = conftest.file
|
|
Packit |
a8ec6b |
)
|
|
Packit |
a8ec6b |
then
|
|
Packit |
a8ec6b |
# Ok.
|
|
Packit |
a8ec6b |
:
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
AC_MSG_ERROR([newly created file is older than distributed files!
|
|
Packit |
a8ec6b |
Check your system clock])
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
AC_MSG_RESULT([yes])
|
|
Packit |
a8ec6b |
# If we didn't sleep, we still need to ensure time stamps of config.status and
|
|
Packit |
a8ec6b |
# generated files are strictly newer.
|
|
Packit |
a8ec6b |
am_sleep_pid=
|
|
Packit |
a8ec6b |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
|
Packit |
a8ec6b |
( sleep 1 ) &
|
|
Packit |
a8ec6b |
am_sleep_pid=$!
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
AC_CONFIG_COMMANDS_PRE(
|
|
Packit |
a8ec6b |
[AC_MSG_CHECKING([that generated files are newer than configure])
|
|
Packit |
a8ec6b |
if test -n "$am_sleep_pid"; then
|
|
Packit |
a8ec6b |
# Hide warnings about reused PIDs.
|
|
Packit |
a8ec6b |
wait $am_sleep_pid 2>/dev/null
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
AC_MSG_RESULT([done])])
|
|
Packit |
a8ec6b |
rm -f conftest.file
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_SILENT_RULES([DEFAULT])
|
|
Packit |
a8ec6b |
# --------------------------
|
|
Packit |
a8ec6b |
# Enable less verbose build rules; with the default set to DEFAULT
|
|
Packit |
a8ec6b |
# ("yes" being less verbose, "no" or empty being verbose).
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_SILENT_RULES],
|
|
Packit |
a8ec6b |
[AC_ARG_ENABLE([silent-rules], [dnl
|
|
Packit |
a8ec6b |
AS_HELP_STRING(
|
|
Packit |
a8ec6b |
[--enable-silent-rules],
|
|
Packit |
a8ec6b |
[less verbose build output (undo: "make V=1")])
|
|
Packit |
a8ec6b |
AS_HELP_STRING(
|
|
Packit |
a8ec6b |
[--disable-silent-rules],
|
|
Packit |
a8ec6b |
[verbose build output (undo: "make V=0")])dnl
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
case $enable_silent_rules in @%:@ (((
|
|
Packit |
a8ec6b |
yes) AM_DEFAULT_VERBOSITY=0;;
|
|
Packit |
a8ec6b |
no) AM_DEFAULT_VERBOSITY=1;;
|
|
Packit |
a8ec6b |
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
dnl
|
|
Packit |
a8ec6b |
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
|
|
Packit |
a8ec6b |
dnl do not support nested variable expansions.
|
|
Packit |
a8ec6b |
dnl See automake bug#9928 and bug#10237.
|
|
Packit |
a8ec6b |
am_make=${MAKE-make}
|
|
Packit |
a8ec6b |
AC_CACHE_CHECK([whether $am_make supports nested variables],
|
|
Packit |
a8ec6b |
[am_cv_make_support_nested_variables],
|
|
Packit |
a8ec6b |
[if AS_ECHO([['TRUE=$(BAR$(V))
|
|
Packit |
a8ec6b |
BAR0=false
|
|
Packit |
a8ec6b |
BAR1=true
|
|
Packit |
a8ec6b |
V=1
|
|
Packit |
a8ec6b |
am__doit:
|
|
Packit |
a8ec6b |
@$(TRUE)
|
|
Packit |
a8ec6b |
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
|
|
Packit |
a8ec6b |
am_cv_make_support_nested_variables=yes
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
am_cv_make_support_nested_variables=no
|
|
Packit |
a8ec6b |
fi])
|
|
Packit |
a8ec6b |
if test $am_cv_make_support_nested_variables = yes; then
|
|
Packit |
a8ec6b |
dnl Using '$V' instead of '$(V)' breaks IRIX make.
|
|
Packit |
a8ec6b |
AM_V='$(V)'
|
|
Packit |
a8ec6b |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
AM_V=$AM_DEFAULT_VERBOSITY
|
|
Packit |
a8ec6b |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
AC_SUBST([AM_V])dnl
|
|
Packit |
a8ec6b |
AM_SUBST_NOTMAKE([AM_V])dnl
|
|
Packit |
a8ec6b |
AC_SUBST([AM_DEFAULT_V])dnl
|
|
Packit |
a8ec6b |
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
|
|
Packit |
a8ec6b |
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
|
|
Packit |
a8ec6b |
AM_BACKSLASH='\'
|
|
Packit |
a8ec6b |
AC_SUBST([AM_BACKSLASH])dnl
|
|
Packit |
a8ec6b |
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
|
Packit |
a8ec6b |
])
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_PROG_INSTALL_STRIP
|
|
Packit |
a8ec6b |
# ---------------------
|
|
Packit |
a8ec6b |
# One issue with vendor 'install' (even GNU) is that you can't
|
|
Packit |
a8ec6b |
# specify the program used to strip binaries. This is especially
|
|
Packit |
a8ec6b |
# annoying in cross-compiling environments, where the build's strip
|
|
Packit |
a8ec6b |
# is unlikely to handle the host's binaries.
|
|
Packit |
a8ec6b |
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
|
Packit |
a8ec6b |
# always use install-sh in "make install-strip", and initialize
|
|
Packit |
a8ec6b |
# STRIPPROG with the value of the STRIP variable (set by the user).
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
|
Packit |
a8ec6b |
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
Packit |
a8ec6b |
# Installed binaries are usually stripped using 'strip' when the user
|
|
Packit |
a8ec6b |
# run "make install-strip". However 'strip' might not be the right
|
|
Packit |
a8ec6b |
# tool to use in cross-compilation environments, therefore Automake
|
|
Packit |
a8ec6b |
# will honor the 'STRIP' environment variable to overrule this program.
|
|
Packit |
a8ec6b |
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
|
|
Packit |
a8ec6b |
if test "$cross_compiling" != no; then
|
|
Packit |
a8ec6b |
AC_CHECK_TOOL([STRIP], [strip], :)
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
Packit |
a8ec6b |
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# _AM_SUBST_NOTMAKE(VARIABLE)
|
|
Packit |
a8ec6b |
# ---------------------------
|
|
Packit |
a8ec6b |
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
|
Packit |
a8ec6b |
# This macro is traced by Automake.
|
|
Packit |
a8ec6b |
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# AM_SUBST_NOTMAKE(VARIABLE)
|
|
Packit |
a8ec6b |
# --------------------------
|
|
Packit |
a8ec6b |
# Public sister of _AM_SUBST_NOTMAKE.
|
|
Packit |
a8ec6b |
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Check how to create a tarball. -*- Autoconf -*-
|
|
Packit |
a8ec6b |
|
|
Packit Service |
9bd718 |
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# This file is free software; the Free Software Foundation
|
|
Packit |
a8ec6b |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
a8ec6b |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# _AM_PROG_TAR(FORMAT)
|
|
Packit |
a8ec6b |
# --------------------
|
|
Packit |
a8ec6b |
# Check how to create a tarball in format FORMAT.
|
|
Packit |
a8ec6b |
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# Substitute a variable $(am__tar) that is a command
|
|
Packit |
a8ec6b |
# writing to stdout a FORMAT-tarball containing the directory
|
|
Packit |
a8ec6b |
# $tardir.
|
|
Packit |
a8ec6b |
# tardir=directory && $(am__tar) > result.tar
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
# Substitute a variable $(am__untar) that extract such
|
|
Packit |
a8ec6b |
# a tarball read from stdin.
|
|
Packit |
a8ec6b |
# $(am__untar) < result.tar
|
|
Packit |
a8ec6b |
#
|
|
Packit |
a8ec6b |
AC_DEFUN([_AM_PROG_TAR],
|
|
Packit |
a8ec6b |
[# Always define AMTAR for backward compatibility. Yes, it's still used
|
|
Packit |
a8ec6b |
# in the wild :-( We should find a proper way to deprecate it ...
|
|
Packit |
a8ec6b |
AC_SUBST([AMTAR], ['$${TAR-tar}'])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# We'll loop over all known methods to create a tar archive until one works.
|
|
Packit |
a8ec6b |
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
m4_if([$1], [v7],
|
|
Packit |
a8ec6b |
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
[m4_case([$1],
|
|
Packit |
a8ec6b |
[ustar],
|
|
Packit |
a8ec6b |
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
|
|
Packit |
a8ec6b |
# There is notably a 21 bits limit for the UID and the GID. In fact,
|
|
Packit |
a8ec6b |
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
|
|
Packit |
a8ec6b |
# and bug#13588).
|
|
Packit |
a8ec6b |
am_max_uid=2097151 # 2^21 - 1
|
|
Packit |
a8ec6b |
am_max_gid=$am_max_uid
|
|
Packit |
a8ec6b |
# The $UID and $GID variables are not portable, so we need to resort
|
|
Packit |
a8ec6b |
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
|
|
Packit |
a8ec6b |
# below are definitely unexpected, so allow the users to see them
|
|
Packit |
a8ec6b |
# (that is, avoid stderr redirection).
|
|
Packit |
a8ec6b |
am_uid=`id -u || echo unknown`
|
|
Packit |
a8ec6b |
am_gid=`id -g || echo unknown`
|
|
Packit |
a8ec6b |
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
|
|
Packit |
a8ec6b |
if test $am_uid -le $am_max_uid; then
|
|
Packit |
a8ec6b |
AC_MSG_RESULT([yes])
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
AC_MSG_RESULT([no])
|
|
Packit |
a8ec6b |
_am_tools=none
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
|
|
Packit |
a8ec6b |
if test $am_gid -le $am_max_gid; then
|
|
Packit |
a8ec6b |
AC_MSG_RESULT([yes])
|
|
Packit |
a8ec6b |
else
|
|
Packit |
a8ec6b |
AC_MSG_RESULT([no])
|
|
Packit |
a8ec6b |
_am_tools=none
|
|
Packit |
a8ec6b |
fi],
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
[pax],
|
|
Packit |
a8ec6b |
[],
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
[m4_fatal([Unknown tar format])])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_MSG_CHECKING([how to create a $1 tar archive])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# Go ahead even if we have the value already cached. We do so because we
|
|
Packit |
a8ec6b |
# need to set the values for the 'am__tar' and 'am__untar' variables.
|
|
Packit |
a8ec6b |
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
for _am_tool in $_am_tools; do
|
|
Packit |
a8ec6b |
case $_am_tool in
|
|
Packit |
a8ec6b |
gnutar)
|
|
Packit |
a8ec6b |
for _am_tar in tar gnutar gtar; do
|
|
Packit |
a8ec6b |
AM_RUN_LOG([$_am_tar --version]) && break
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
|
Packit |
a8ec6b |
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
|
Packit |
a8ec6b |
am__untar="$_am_tar -xf -"
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
plaintar)
|
|
Packit |
a8ec6b |
# Must skip GNU tar: if it does not support --format= it doesn't create
|
|
Packit |
a8ec6b |
# ustar tarball either.
|
|
Packit |
a8ec6b |
(tar --version) >/dev/null 2>&1 && continue
|
|
Packit |
a8ec6b |
am__tar='tar chf - "$$tardir"'
|
|
Packit |
a8ec6b |
am__tar_='tar chf - "$tardir"'
|
|
Packit |
a8ec6b |
am__untar='tar xf -'
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
pax)
|
|
Packit |
a8ec6b |
am__tar='pax -L -x $1 -w "$$tardir"'
|
|
Packit |
a8ec6b |
am__tar_='pax -L -x $1 -w "$tardir"'
|
|
Packit |
a8ec6b |
am__untar='pax -r'
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
cpio)
|
|
Packit |
a8ec6b |
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
|
Packit |
a8ec6b |
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
|
Packit |
a8ec6b |
am__untar='cpio -i -H $1 -d'
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
none)
|
|
Packit |
a8ec6b |
am__tar=false
|
|
Packit |
a8ec6b |
am__tar_=false
|
|
Packit |
a8ec6b |
am__untar=false
|
|
Packit |
a8ec6b |
;;
|
|
Packit |
a8ec6b |
esac
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# If the value was cached, stop now. We just wanted to have am__tar
|
|
Packit |
a8ec6b |
# and am__untar set.
|
|
Packit |
a8ec6b |
test -n "${am_cv_prog_tar_$1}" && break
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
# tar/untar a dummy directory, and stop if the command works.
|
|
Packit |
a8ec6b |
rm -rf conftest.dir
|
|
Packit |
a8ec6b |
mkdir conftest.dir
|
|
Packit |
a8ec6b |
echo GrepMe > conftest.dir/file
|
|
Packit |
a8ec6b |
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
|
Packit |
a8ec6b |
rm -rf conftest.dir
|
|
Packit |
a8ec6b |
if test -s conftest.tar; then
|
|
Packit |
a8ec6b |
AM_RUN_LOG([$am__untar
|
|
Packit |
a8ec6b |
AM_RUN_LOG([cat conftest.dir/file])
|
|
Packit |
a8ec6b |
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
|
Packit |
a8ec6b |
fi
|
|
Packit |
a8ec6b |
done
|
|
Packit |
a8ec6b |
rm -rf conftest.dir
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
|
Packit |
a8ec6b |
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
AC_SUBST([am__tar])
|
|
Packit |
a8ec6b |
AC_SUBST([am__untar])
|
|
Packit |
a8ec6b |
]) # _AM_PROG_TAR
|
|
Packit |
a8ec6b |
|
|
Packit |
a8ec6b |
m4_include([m4/intltool.m4])
|
|
Packit |
a8ec6b |
m4_include([m4/jh_path_xml_catalog.m4])
|