|
Packit |
549fdc |
# generated automatically by aclocal 1.15 -*- Autoconf -*-
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# This program is distributed in the hope that it will be useful,
|
|
Packit |
549fdc |
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
Packit |
549fdc |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
Packit |
549fdc |
# PARTICULAR PURPOSE.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
|
Packit |
549fdc |
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
Packit |
549fdc |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
Packit |
549fdc |
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
|
|
Packit |
549fdc |
[m4_warning([this file was generated for autoconf 2.69.
|
|
Packit |
549fdc |
You have another version of autoconf. It may work, but is not guaranteed to.
|
|
Packit |
549fdc |
If you have problems, you may need to regenerate the build system entirely.
|
|
Packit |
549fdc |
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# gettext.m4 serial 68 (gettext-0.19.8)
|
|
Packit |
549fdc |
dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
dnl This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
dnl
|
|
Packit |
549fdc |
dnl This file can be used in projects which are not available under
|
|
Packit |
549fdc |
dnl the GNU General Public License or the GNU Library General Public
|
|
Packit |
549fdc |
dnl License but which still want to provide support for the GNU gettext
|
|
Packit |
549fdc |
dnl functionality.
|
|
Packit |
549fdc |
dnl Please note that the actual code of the GNU gettext library is covered
|
|
Packit |
549fdc |
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
Packit |
549fdc |
dnl gettext package is covered by the GNU General Public License.
|
|
Packit |
549fdc |
dnl They are *not* in the public domain.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Authors:
|
|
Packit |
549fdc |
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
|
|
Packit |
549fdc |
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Macro to add for using GNU gettext.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
|
|
Packit |
549fdc |
dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
|
|
Packit |
549fdc |
dnl default (if it is not specified or empty) is 'no-libtool'.
|
|
Packit |
549fdc |
dnl INTLSYMBOL should be 'external' for packages with no intl directory,
|
|
Packit |
549fdc |
dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
|
|
Packit |
549fdc |
dnl If INTLSYMBOL is 'use-libtool', then a libtool library
|
|
Packit |
549fdc |
dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
|
|
Packit |
549fdc |
dnl depending on --{enable,disable}-{shared,static} and on the presence of
|
|
Packit |
549fdc |
dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
|
|
Packit |
549fdc |
dnl $(top_builddir)/intl/libintl.a will be created.
|
|
Packit |
549fdc |
dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
|
|
Packit |
549fdc |
dnl implementations (in libc or libintl) without the ngettext() function
|
|
Packit |
549fdc |
dnl will be ignored. If NEEDSYMBOL is specified and is
|
|
Packit |
549fdc |
dnl 'need-formatstring-macros', then GNU gettext implementations that don't
|
|
Packit |
549fdc |
dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
|
|
Packit |
549fdc |
dnl INTLDIR is used to find the intl libraries. If empty,
|
|
Packit |
549fdc |
dnl the value '$(top_builddir)/intl/' is used.
|
|
Packit |
549fdc |
dnl
|
|
Packit |
549fdc |
dnl The result of the configuration is one of three cases:
|
|
Packit |
549fdc |
dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
|
|
Packit |
549fdc |
dnl and used.
|
|
Packit |
549fdc |
dnl Catalog format: GNU --> install in $(datadir)
|
|
Packit |
549fdc |
dnl Catalog extension: .mo after installation, .gmo in source tree
|
|
Packit |
549fdc |
dnl 2) GNU gettext has been found in the system's C library.
|
|
Packit |
549fdc |
dnl Catalog format: GNU --> install in $(datadir)
|
|
Packit |
549fdc |
dnl Catalog extension: .mo after installation, .gmo in source tree
|
|
Packit |
549fdc |
dnl 3) No internationalization, always use English msgid.
|
|
Packit |
549fdc |
dnl Catalog format: none
|
|
Packit |
549fdc |
dnl Catalog extension: none
|
|
Packit |
549fdc |
dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
|
|
Packit |
549fdc |
dnl The use of .gmo is historical (it was needed to avoid overwriting the
|
|
Packit |
549fdc |
dnl GNU format catalogs when building on a platform with an X/Open gettext),
|
|
Packit |
549fdc |
dnl but we keep it in order not to force irrelevant filename changes on the
|
|
Packit |
549fdc |
dnl maintainers.
|
|
Packit |
549fdc |
dnl
|
|
Packit |
549fdc |
AC_DEFUN([AM_GNU_GETTEXT],
|
|
Packit |
549fdc |
[
|
|
Packit |
549fdc |
dnl Argument checking.
|
|
Packit |
549fdc |
ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
|
|
Packit |
549fdc |
[errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
|
|
Packit |
549fdc |
])])])])])
|
|
Packit |
549fdc |
ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
|
|
Packit |
549fdc |
[AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
|
|
Packit |
549fdc |
ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
|
|
Packit |
549fdc |
[errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
|
|
Packit |
549fdc |
])])])])
|
|
Packit |
549fdc |
define([gt_included_intl],
|
|
Packit |
549fdc |
ifelse([$1], [external],
|
|
Packit |
549fdc |
ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
|
|
Packit |
549fdc |
[yes]))
|
|
Packit |
549fdc |
define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
|
|
Packit |
549fdc |
gt_NEEDS_INIT
|
|
Packit |
549fdc |
AM_GNU_GETTEXT_NEED([$2])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_REQUIRE([AM_PO_SUBDIRS])dnl
|
|
Packit |
549fdc |
ifelse(gt_included_intl, yes, [
|
|
Packit |
549fdc |
AC_REQUIRE([AM_INTL_SUBDIR])dnl
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
|
|
Packit |
549fdc |
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
|
Packit |
549fdc |
AC_REQUIRE([AC_LIB_RPATH])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Sometimes libintl requires libiconv, so first search for libiconv.
|
|
Packit |
549fdc |
dnl Ideally we would do this search only after the
|
|
Packit |
549fdc |
dnl if test "$USE_NLS" = "yes"; then
|
|
Packit |
549fdc |
dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
|
|
Packit |
549fdc |
dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
|
|
Packit |
549fdc |
dnl the configure script would need to contain the same shell code
|
|
Packit |
549fdc |
dnl again, outside any 'if'. There are two solutions:
|
|
Packit |
549fdc |
dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
|
|
Packit |
549fdc |
dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
|
|
Packit |
549fdc |
dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
|
|
Packit |
549fdc |
dnl documented, we avoid it.
|
|
Packit |
549fdc |
ifelse(gt_included_intl, yes, , [
|
|
Packit |
549fdc |
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation.
|
|
Packit |
549fdc |
gt_INTL_MACOSX
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Set USE_NLS.
|
|
Packit |
549fdc |
AC_REQUIRE([AM_NLS])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
ifelse(gt_included_intl, yes, [
|
|
Packit |
549fdc |
BUILD_INCLUDED_LIBINTL=no
|
|
Packit |
549fdc |
USE_INCLUDED_LIBINTL=no
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
LIBINTL=
|
|
Packit |
549fdc |
LTLIBINTL=
|
|
Packit |
549fdc |
POSUB=
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Add a version number to the cache macros.
|
|
Packit |
549fdc |
case " $gt_needs " in
|
|
Packit |
549fdc |
*" need-formatstring-macros "*) gt_api_version=3 ;;
|
|
Packit |
549fdc |
*" need-ngettext "*) gt_api_version=2 ;;
|
|
Packit |
549fdc |
*) gt_api_version=1 ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
|
|
Packit |
549fdc |
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl If we use NLS figure out what method
|
|
Packit |
549fdc |
if test "$USE_NLS" = "yes"; then
|
|
Packit |
549fdc |
gt_use_preinstalled_gnugettext=no
|
|
Packit |
549fdc |
ifelse(gt_included_intl, yes, [
|
|
Packit |
549fdc |
AC_MSG_CHECKING([whether included gettext is requested])
|
|
Packit |
549fdc |
AC_ARG_WITH([included-gettext],
|
|
Packit |
549fdc |
[ --with-included-gettext use the GNU gettext library included here],
|
|
Packit |
549fdc |
nls_cv_force_use_gnu_gettext=$withval,
|
|
Packit |
549fdc |
nls_cv_force_use_gnu_gettext=no)
|
|
Packit |
549fdc |
AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
|
Packit |
549fdc |
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
dnl User does not insist on using GNU NLS library. Figure out what
|
|
Packit |
549fdc |
dnl to use. If GNU gettext is available we use this. Else we have
|
|
Packit |
549fdc |
dnl to fall back to GNU NLS library.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test $gt_api_version -ge 3; then
|
|
Packit |
549fdc |
gt_revision_test_code='
|
|
Packit |
549fdc |
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
|
|
Packit |
549fdc |
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
|
|
Packit |
549fdc |
#endif
|
|
Packit |
549fdc |
changequote(,)dnl
|
|
Packit |
549fdc |
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
|
|
Packit |
549fdc |
changequote([,])dnl
|
|
Packit |
549fdc |
'
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
gt_revision_test_code=
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
if test $gt_api_version -ge 2; then
|
|
Packit |
549fdc |
gt_expression_test_code=' + * ngettext ("", "", 0)'
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
gt_expression_test_code=
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
|
|
Packit |
549fdc |
[AC_LINK_IFELSE(
|
|
Packit |
549fdc |
[AC_LANG_PROGRAM(
|
|
Packit |
549fdc |
[[
|
|
Packit |
549fdc |
#include <libintl.h>
|
|
Packit |
549fdc |
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
|
|
Packit |
549fdc |
extern int _nl_msg_cat_cntr;
|
|
Packit |
549fdc |
extern int *_nl_domain_bindings;
|
|
Packit |
549fdc |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
|
|
Packit |
549fdc |
#else
|
|
Packit |
549fdc |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
|
|
Packit |
549fdc |
#endif
|
|
Packit |
549fdc |
$gt_revision_test_code
|
|
Packit |
549fdc |
]],
|
|
Packit |
549fdc |
[[
|
|
Packit |
549fdc |
bindtextdomain ("", "");
|
|
Packit |
549fdc |
return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
|
|
Packit |
549fdc |
]])],
|
|
Packit |
549fdc |
[eval "$gt_func_gnugettext_libc=yes"],
|
|
Packit |
549fdc |
[eval "$gt_func_gnugettext_libc=no"])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
|
|
Packit |
549fdc |
dnl Sometimes libintl requires libiconv, so first search for libiconv.
|
|
Packit |
549fdc |
ifelse(gt_included_intl, yes, , [
|
|
Packit |
549fdc |
AM_ICONV_LINK
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
|
|
Packit |
549fdc |
dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
|
|
Packit |
549fdc |
dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
|
|
Packit |
549fdc |
dnl even if libiconv doesn't exist.
|
|
Packit |
549fdc |
AC_LIB_LINKFLAGS_BODY([intl])
|
|
Packit |
549fdc |
AC_CACHE_CHECK([for GNU gettext in libintl],
|
|
Packit |
549fdc |
[$gt_func_gnugettext_libintl],
|
|
Packit |
549fdc |
[gt_save_CPPFLAGS="$CPPFLAGS"
|
|
Packit |
549fdc |
CPPFLAGS="$CPPFLAGS $INCINTL"
|
|
Packit |
549fdc |
gt_save_LIBS="$LIBS"
|
|
Packit |
549fdc |
LIBS="$LIBS $LIBINTL"
|
|
Packit |
549fdc |
dnl Now see whether libintl exists and does not depend on libiconv.
|
|
Packit |
549fdc |
AC_LINK_IFELSE(
|
|
Packit |
549fdc |
[AC_LANG_PROGRAM(
|
|
Packit |
549fdc |
[[
|
|
Packit |
549fdc |
#include <libintl.h>
|
|
Packit |
549fdc |
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
|
|
Packit |
549fdc |
extern int _nl_msg_cat_cntr;
|
|
Packit |
549fdc |
extern
|
|
Packit |
549fdc |
#ifdef __cplusplus
|
|
Packit |
549fdc |
"C"
|
|
Packit |
549fdc |
#endif
|
|
Packit |
549fdc |
const char *_nl_expand_alias (const char *);
|
|
Packit |
549fdc |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
|
|
Packit |
549fdc |
#else
|
|
Packit |
549fdc |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
|
|
Packit |
549fdc |
#endif
|
|
Packit |
549fdc |
$gt_revision_test_code
|
|
Packit |
549fdc |
]],
|
|
Packit |
549fdc |
[[
|
|
Packit |
549fdc |
bindtextdomain ("", "");
|
|
Packit |
549fdc |
return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
|
|
Packit |
549fdc |
]])],
|
|
Packit |
549fdc |
[eval "$gt_func_gnugettext_libintl=yes"],
|
|
Packit |
549fdc |
[eval "$gt_func_gnugettext_libintl=no"])
|
|
Packit |
549fdc |
dnl Now see whether libintl exists and depends on libiconv.
|
|
Packit |
549fdc |
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
|
|
Packit |
549fdc |
LIBS="$LIBS $LIBICONV"
|
|
Packit |
549fdc |
AC_LINK_IFELSE(
|
|
Packit |
549fdc |
[AC_LANG_PROGRAM(
|
|
Packit |
549fdc |
[[
|
|
Packit |
549fdc |
#include <libintl.h>
|
|
Packit |
549fdc |
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
|
|
Packit |
549fdc |
extern int _nl_msg_cat_cntr;
|
|
Packit |
549fdc |
extern
|
|
Packit |
549fdc |
#ifdef __cplusplus
|
|
Packit |
549fdc |
"C"
|
|
Packit |
549fdc |
#endif
|
|
Packit |
549fdc |
const char *_nl_expand_alias (const char *);
|
|
Packit |
549fdc |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
|
|
Packit |
549fdc |
#else
|
|
Packit |
549fdc |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
|
|
Packit |
549fdc |
#endif
|
|
Packit |
549fdc |
$gt_revision_test_code
|
|
Packit |
549fdc |
]],
|
|
Packit |
549fdc |
[[
|
|
Packit |
549fdc |
bindtextdomain ("", "");
|
|
Packit |
549fdc |
return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
|
|
Packit |
549fdc |
]])],
|
|
Packit |
549fdc |
[LIBINTL="$LIBINTL $LIBICONV"
|
|
Packit |
549fdc |
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
|
|
Packit |
549fdc |
eval "$gt_func_gnugettext_libintl=yes"
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
CPPFLAGS="$gt_save_CPPFLAGS"
|
|
Packit |
549fdc |
LIBS="$gt_save_LIBS"])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl If an already present or preinstalled GNU gettext() is found,
|
|
Packit |
549fdc |
dnl use it. But if this macro is used in GNU gettext, and GNU
|
|
Packit |
549fdc |
dnl gettext is already preinstalled in libintl, we update this
|
|
Packit |
549fdc |
dnl libintl. (Cf. the install rule in intl/Makefile.in.)
|
|
Packit |
549fdc |
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
|
|
Packit |
549fdc |
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
|
|
Packit |
549fdc |
&& test "$PACKAGE" != gettext-runtime \
|
|
Packit |
549fdc |
&& test "$PACKAGE" != gettext-tools; }; then
|
|
Packit |
549fdc |
gt_use_preinstalled_gnugettext=yes
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
dnl Reset the values set by searching for libintl.
|
|
Packit |
549fdc |
LIBINTL=
|
|
Packit |
549fdc |
LTLIBINTL=
|
|
Packit |
549fdc |
INCINTL=
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
ifelse(gt_included_intl, yes, [
|
|
Packit |
549fdc |
if test "$gt_use_preinstalled_gnugettext" != "yes"; then
|
|
Packit |
549fdc |
dnl GNU gettext is not found in the C library.
|
|
Packit |
549fdc |
dnl Fall back on included GNU gettext library.
|
|
Packit |
549fdc |
nls_cv_use_gnu_gettext=yes
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|
Packit |
549fdc |
dnl Mark actions used to generate GNU NLS library.
|
|
Packit |
549fdc |
BUILD_INCLUDED_LIBINTL=yes
|
|
Packit |
549fdc |
USE_INCLUDED_LIBINTL=yes
|
|
Packit |
549fdc |
LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
|
|
Packit |
549fdc |
LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
|
|
Packit |
549fdc |
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
CATOBJEXT=
|
|
Packit |
549fdc |
if test "$gt_use_preinstalled_gnugettext" = "yes" \
|
|
Packit |
549fdc |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|
Packit |
549fdc |
dnl Mark actions to use GNU gettext tools.
|
|
Packit |
549fdc |
CATOBJEXT=.gmo
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test -n "$INTL_MACOSX_LIBS"; then
|
|
Packit |
549fdc |
if test "$gt_use_preinstalled_gnugettext" = "yes" \
|
|
Packit |
549fdc |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|
Packit |
549fdc |
dnl Some extra flags are needed during linking.
|
|
Packit |
549fdc |
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
|
|
Packit |
549fdc |
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$gt_use_preinstalled_gnugettext" = "yes" \
|
|
Packit |
549fdc |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|
Packit |
549fdc |
AC_DEFINE([ENABLE_NLS], [1],
|
|
Packit |
549fdc |
[Define to 1 if translation of program messages to the user's native language
|
|
Packit |
549fdc |
is requested.])
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
USE_NLS=no
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_MSG_CHECKING([whether to use NLS])
|
|
Packit |
549fdc |
AC_MSG_RESULT([$USE_NLS])
|
|
Packit |
549fdc |
if test "$USE_NLS" = "yes"; then
|
|
Packit |
549fdc |
AC_MSG_CHECKING([where the gettext function comes from])
|
|
Packit |
549fdc |
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
|
|
Packit |
549fdc |
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
|
|
Packit |
549fdc |
gt_source="external libintl"
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
gt_source="libc"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
gt_source="included intl directory"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AC_MSG_RESULT([$gt_source])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$USE_NLS" = "yes"; then
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
|
|
Packit |
549fdc |
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
|
|
Packit |
549fdc |
AC_MSG_CHECKING([how to link with libintl])
|
|
Packit |
549fdc |
AC_MSG_RESULT([$LIBINTL])
|
|
Packit |
549fdc |
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl For backward compatibility. Some packages may be using this.
|
|
Packit |
549fdc |
AC_DEFINE([HAVE_GETTEXT], [1],
|
|
Packit |
549fdc |
[Define if the GNU gettext() function is already present or preinstalled.])
|
|
Packit |
549fdc |
AC_DEFINE([HAVE_DCGETTEXT], [1],
|
|
Packit |
549fdc |
[Define if the GNU dcgettext() function is already present or preinstalled.])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl We need to process the po/ directory.
|
|
Packit |
549fdc |
POSUB=po
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
ifelse(gt_included_intl, yes, [
|
|
Packit |
549fdc |
dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
|
|
Packit |
549fdc |
dnl to 'yes' because some of the testsuite requires it.
|
|
Packit |
549fdc |
if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
|
|
Packit |
549fdc |
BUILD_INCLUDED_LIBINTL=yes
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Make all variables we use known to autoconf.
|
|
Packit |
549fdc |
AC_SUBST([BUILD_INCLUDED_LIBINTL])
|
|
Packit |
549fdc |
AC_SUBST([USE_INCLUDED_LIBINTL])
|
|
Packit |
549fdc |
AC_SUBST([CATOBJEXT])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl For backward compatibility. Some configure.ins may be using this.
|
|
Packit |
549fdc |
nls_cv_header_intl=
|
|
Packit |
549fdc |
nls_cv_header_libgt=
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl For backward compatibility. Some Makefiles may be using this.
|
|
Packit |
549fdc |
DATADIRNAME=share
|
|
Packit |
549fdc |
AC_SUBST([DATADIRNAME])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl For backward compatibility. Some Makefiles may be using this.
|
|
Packit |
549fdc |
INSTOBJEXT=.mo
|
|
Packit |
549fdc |
AC_SUBST([INSTOBJEXT])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl For backward compatibility. Some Makefiles may be using this.
|
|
Packit |
549fdc |
GENCAT=gencat
|
|
Packit |
549fdc |
AC_SUBST([GENCAT])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl For backward compatibility. Some Makefiles may be using this.
|
|
Packit |
549fdc |
INTLOBJS=
|
|
Packit |
549fdc |
if test "$USE_INCLUDED_LIBINTL" = yes; then
|
|
Packit |
549fdc |
INTLOBJS="\$(GETTOBJS)"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AC_SUBST([INTLOBJS])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Enable libtool support if the surrounding package wishes it.
|
|
Packit |
549fdc |
INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
|
|
Packit |
549fdc |
AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl For backward compatibility. Some Makefiles may be using this.
|
|
Packit |
549fdc |
INTLLIBS="$LIBINTL"
|
|
Packit |
549fdc |
AC_SUBST([INTLLIBS])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Make all documented variables known to autoconf.
|
|
Packit |
549fdc |
AC_SUBST([LIBINTL])
|
|
Packit |
549fdc |
AC_SUBST([LTLIBINTL])
|
|
Packit |
549fdc |
AC_SUBST([POSUB])
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
|
|
Packit |
549fdc |
m4_define([gt_NEEDS_INIT],
|
|
Packit |
549fdc |
[
|
|
Packit |
549fdc |
m4_divert_text([DEFAULTS], [gt_needs=])
|
|
Packit |
549fdc |
m4_define([gt_NEEDS_INIT], [])
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
|
|
Packit |
549fdc |
AC_DEFUN([AM_GNU_GETTEXT_NEED],
|
|
Packit |
549fdc |
[
|
|
Packit |
549fdc |
m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
|
|
Packit |
549fdc |
AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Usage: AM_GNU_GETTEXT_REQUIRE_VERSION([gettext-version])
|
|
Packit |
549fdc |
AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION], [])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# nls.m4 serial 5 (gettext-0.18)
|
|
Packit |
549fdc |
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software
|
|
Packit |
549fdc |
dnl Foundation, Inc.
|
|
Packit |
549fdc |
dnl This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
dnl
|
|
Packit |
549fdc |
dnl This file can be used in projects which are not available under
|
|
Packit |
549fdc |
dnl the GNU General Public License or the GNU Library General Public
|
|
Packit |
549fdc |
dnl License but which still want to provide support for the GNU gettext
|
|
Packit |
549fdc |
dnl functionality.
|
|
Packit |
549fdc |
dnl Please note that the actual code of the GNU gettext library is covered
|
|
Packit |
549fdc |
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
Packit |
549fdc |
dnl gettext package is covered by the GNU General Public License.
|
|
Packit |
549fdc |
dnl They are *not* in the public domain.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Authors:
|
|
Packit |
549fdc |
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
|
|
Packit |
549fdc |
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_PREREQ([2.50])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_DEFUN([AM_NLS],
|
|
Packit |
549fdc |
[
|
|
Packit |
549fdc |
AC_MSG_CHECKING([whether NLS is requested])
|
|
Packit |
549fdc |
dnl Default is enabled NLS
|
|
Packit |
549fdc |
AC_ARG_ENABLE([nls],
|
|
Packit |
549fdc |
[ --disable-nls do not use Native Language Support],
|
|
Packit |
549fdc |
USE_NLS=$enableval, USE_NLS=yes)
|
|
Packit |
549fdc |
AC_MSG_RESULT([$USE_NLS])
|
|
Packit |
549fdc |
AC_SUBST([USE_NLS])
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# po.m4 serial 24 (gettext-0.19)
|
|
Packit |
549fdc |
dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
dnl This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
dnl
|
|
Packit |
549fdc |
dnl This file can be used in projects which are not available under
|
|
Packit |
549fdc |
dnl the GNU General Public License or the GNU Library General Public
|
|
Packit |
549fdc |
dnl License but which still want to provide support for the GNU gettext
|
|
Packit |
549fdc |
dnl functionality.
|
|
Packit |
549fdc |
dnl Please note that the actual code of the GNU gettext library is covered
|
|
Packit |
549fdc |
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
Packit |
549fdc |
dnl gettext package is covered by the GNU General Public License.
|
|
Packit |
549fdc |
dnl They are *not* in the public domain.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Authors:
|
|
Packit |
549fdc |
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
|
|
Packit |
549fdc |
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_PREREQ([2.60])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Checks for all prerequisites of the po subdirectory.
|
|
Packit |
549fdc |
AC_DEFUN([AM_PO_SUBDIRS],
|
|
Packit |
549fdc |
[
|
|
Packit |
549fdc |
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AC_PROG_SED])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AM_NLS])dnl
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Release version of the gettext macros. This is used to ensure that
|
|
Packit |
549fdc |
dnl the gettext macros and po/Makefile.in.in are in sync.
|
|
Packit |
549fdc |
AC_SUBST([GETTEXT_MACRO_VERSION], [0.19])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Perform the following tests also if --disable-nls has been given,
|
|
Packit |
549fdc |
dnl because they are needed for "make dist" to work.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Search for GNU msgfmt in the PATH.
|
|
Packit |
549fdc |
dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
|
|
Packit |
549fdc |
dnl The second test excludes FreeBSD msgfmt.
|
|
Packit |
549fdc |
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
|
Packit |
549fdc |
[$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
|
|
Packit |
549fdc |
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
|
|
Packit |
549fdc |
:)
|
|
Packit |
549fdc |
AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Test whether it is GNU msgfmt >= 0.15.
|
|
Packit |
549fdc |
changequote(,)dnl
|
|
Packit |
549fdc |
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
|
|
Packit |
549fdc |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
|
|
Packit |
549fdc |
*) MSGFMT_015=$MSGFMT ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
changequote([,])dnl
|
|
Packit |
549fdc |
AC_SUBST([MSGFMT_015])
|
|
Packit |
549fdc |
changequote(,)dnl
|
|
Packit |
549fdc |
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
|
|
Packit |
549fdc |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
|
|
Packit |
549fdc |
*) GMSGFMT_015=$GMSGFMT ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
changequote([,])dnl
|
|
Packit |
549fdc |
AC_SUBST([GMSGFMT_015])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Search for GNU xgettext 0.12 or newer in the PATH.
|
|
Packit |
549fdc |
dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
|
|
Packit |
549fdc |
dnl The second test excludes FreeBSD xgettext.
|
|
Packit |
549fdc |
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
|
Packit |
549fdc |
[$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
|
|
Packit |
549fdc |
(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 |
549fdc |
:)
|
|
Packit |
549fdc |
dnl Remove leftover from FreeBSD xgettext call.
|
|
Packit |
549fdc |
rm -f messages.po
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Test whether it is GNU xgettext >= 0.15.
|
|
Packit |
549fdc |
changequote(,)dnl
|
|
Packit |
549fdc |
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
|
|
Packit |
549fdc |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
|
|
Packit |
549fdc |
*) XGETTEXT_015=$XGETTEXT ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
changequote([,])dnl
|
|
Packit |
549fdc |
AC_SUBST([XGETTEXT_015])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Search for GNU msgmerge 0.11 or newer in the PATH.
|
|
Packit |
549fdc |
AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
|
|
Packit |
549fdc |
[$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Installation directories.
|
|
Packit |
549fdc |
dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
|
|
Packit |
549fdc |
dnl have to define it here, so that it can be used in po/Makefile.
|
|
Packit |
549fdc |
test -n "$localedir" || localedir='${datadir}/locale'
|
|
Packit |
549fdc |
AC_SUBST([localedir])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Support for AM_XGETTEXT_OPTION.
|
|
Packit |
549fdc |
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
|
|
Packit |
549fdc |
AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_CONFIG_COMMANDS([po-directories], [[
|
|
Packit |
549fdc |
for ac_file in $CONFIG_FILES; do
|
|
Packit |
549fdc |
# Support "outfile[:infile[:infile...]]"
|
|
Packit |
549fdc |
case "$ac_file" in
|
|
Packit |
549fdc |
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
# PO directories have a Makefile.in generated from Makefile.in.in.
|
|
Packit |
549fdc |
case "$ac_file" in */Makefile.in)
|
|
Packit |
549fdc |
# Adjust a relative srcdir.
|
|
Packit |
549fdc |
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
|
|
Packit |
549fdc |
ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
|
|
Packit |
549fdc |
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
|
|
Packit |
549fdc |
# In autoconf-2.13 it is called $ac_given_srcdir.
|
|
Packit |
549fdc |
# In autoconf-2.50 it is called $srcdir.
|
|
Packit |
549fdc |
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
|
|
Packit |
549fdc |
case "$ac_given_srcdir" in
|
|
Packit |
549fdc |
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
|
|
Packit |
549fdc |
/*) top_srcdir="$ac_given_srcdir" ;;
|
|
Packit |
549fdc |
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
# Treat a directory as a PO directory if and only if it has a
|
|
Packit |
549fdc |
# POTFILES.in file. This allows packages to have multiple PO
|
|
Packit |
549fdc |
# directories under different names or in different locations.
|
|
Packit |
549fdc |
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
|
|
Packit |
549fdc |
rm -f "$ac_dir/POTFILES"
|
|
Packit |
549fdc |
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
|
|
Packit |
549fdc |
gt_tab=`printf '\t'`
|
|
Packit |
549fdc |
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 |
549fdc |
POMAKEFILEDEPS="POTFILES.in"
|
|
Packit |
549fdc |
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
|
|
Packit |
549fdc |
# on $ac_dir but don't depend on user-specified configuration
|
|
Packit |
549fdc |
# parameters.
|
|
Packit |
549fdc |
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
|
|
Packit |
549fdc |
# The LINGUAS file contains the set of available languages.
|
|
Packit |
549fdc |
if test -n "$OBSOLETE_ALL_LINGUAS"; then
|
|
Packit |
549fdc |
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 |
549fdc |
fi
|
|
Packit |
549fdc |
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
|
|
Packit |
549fdc |
# Hide the ALL_LINGUAS assignment from automake < 1.5.
|
|
Packit |
549fdc |
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
|
|
Packit |
549fdc |
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
# The set of available languages was given in configure.in.
|
|
Packit |
549fdc |
# Hide the ALL_LINGUAS assignment from automake < 1.5.
|
|
Packit |
549fdc |
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
# Compute POFILES
|
|
Packit |
549fdc |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
|
|
Packit |
549fdc |
# Compute UPDATEPOFILES
|
|
Packit |
549fdc |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
|
|
Packit |
549fdc |
# Compute DUMMYPOFILES
|
|
Packit |
549fdc |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
|
|
Packit |
549fdc |
# Compute GMOFILES
|
|
Packit |
549fdc |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
|
|
Packit |
549fdc |
case "$ac_given_srcdir" in
|
|
Packit |
549fdc |
.) srcdirpre= ;;
|
|
Packit |
549fdc |
*) srcdirpre='$(srcdir)/' ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
POFILES=
|
|
Packit |
549fdc |
UPDATEPOFILES=
|
|
Packit |
549fdc |
DUMMYPOFILES=
|
|
Packit |
549fdc |
GMOFILES=
|
|
Packit |
549fdc |
for lang in $ALL_LINGUAS; do
|
|
Packit |
549fdc |
POFILES="$POFILES $srcdirpre$lang.po"
|
|
Packit |
549fdc |
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
|
|
Packit |
549fdc |
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
|
|
Packit |
549fdc |
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
# CATALOGS depends on both $ac_dir and the user's LINGUAS
|
|
Packit |
549fdc |
# environment variable.
|
|
Packit |
549fdc |
INST_LINGUAS=
|
|
Packit |
549fdc |
if test -n "$ALL_LINGUAS"; then
|
|
Packit |
549fdc |
for presentlang in $ALL_LINGUAS; do
|
|
Packit |
549fdc |
useit=no
|
|
Packit |
549fdc |
if test "%UNSET%" != "$LINGUAS"; then
|
|
Packit |
549fdc |
desiredlanguages="$LINGUAS"
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
desiredlanguages="$ALL_LINGUAS"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
for desiredlang in $desiredlanguages; do
|
|
Packit |
549fdc |
# Use the presentlang catalog if desiredlang is
|
|
Packit |
549fdc |
# a. equal to presentlang, or
|
|
Packit |
549fdc |
# b. a variant of presentlang (because in this case,
|
|
Packit |
549fdc |
# presentlang can be used as a fallback for messages
|
|
Packit |
549fdc |
# which are not translated in the desiredlang catalog).
|
|
Packit |
549fdc |
case "$desiredlang" in
|
|
Packit |
549fdc |
"$presentlang"*) useit=yes;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
if test $useit = yes; then
|
|
Packit |
549fdc |
INST_LINGUAS="$INST_LINGUAS $presentlang"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
CATALOGS=
|
|
Packit |
549fdc |
if test -n "$INST_LINGUAS"; then
|
|
Packit |
549fdc |
for lang in $INST_LINGUAS; do
|
|
Packit |
549fdc |
CATALOGS="$CATALOGS $lang.gmo"
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
|
|
Packit |
549fdc |
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 |
549fdc |
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
|
|
Packit |
549fdc |
if test -f "$f"; then
|
|
Packit |
549fdc |
case "$f" in
|
|
Packit |
549fdc |
*.orig | *.bak | *~) ;;
|
|
Packit |
549fdc |
*) cat "$f" >> "$ac_dir/Makefile" ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
done]],
|
|
Packit |
549fdc |
[# Capture the value of obsolete ALL_LINGUAS because we need it to compute
|
|
Packit |
549fdc |
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
|
|
Packit |
549fdc |
# from automake < 1.5.
|
|
Packit |
549fdc |
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
|
|
Packit |
549fdc |
# Capture the value of LINGUAS because we need it to compute CATALOGS.
|
|
Packit |
549fdc |
LINGUAS="${LINGUAS-%UNSET%}"
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Postprocesses a Makefile in a directory containing PO files.
|
|
Packit |
549fdc |
AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
|
|
Packit |
549fdc |
[
|
|
Packit |
549fdc |
# When this code is run, in config.status, two variables have already been
|
|
Packit |
549fdc |
# set:
|
|
Packit |
549fdc |
# - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
|
|
Packit |
549fdc |
# - LINGUAS is the value of the environment variable LINGUAS at configure
|
|
Packit |
549fdc |
# time.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
changequote(,)dnl
|
|
Packit |
549fdc |
# Adjust a relative srcdir.
|
|
Packit |
549fdc |
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
|
|
Packit |
549fdc |
ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
|
|
Packit |
549fdc |
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
|
|
Packit |
549fdc |
# In autoconf-2.13 it is called $ac_given_srcdir.
|
|
Packit |
549fdc |
# In autoconf-2.50 it is called $srcdir.
|
|
Packit |
549fdc |
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
|
|
Packit |
549fdc |
case "$ac_given_srcdir" in
|
|
Packit |
549fdc |
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
|
|
Packit |
549fdc |
/*) top_srcdir="$ac_given_srcdir" ;;
|
|
Packit |
549fdc |
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Find a way to echo strings without interpreting backslash.
|
|
Packit |
549fdc |
if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
|
|
Packit |
549fdc |
gt_echo='echo'
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
|
|
Packit |
549fdc |
gt_echo='printf %s\n'
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
echo_func () {
|
|
Packit |
549fdc |
cat <
|
|
Packit |
549fdc |
$*
|
|
Packit |
549fdc |
EOT
|
|
Packit |
549fdc |
}
|
|
Packit |
549fdc |
gt_echo='echo_func'
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# A sed script that extracts the value of VARIABLE from a Makefile.
|
|
Packit |
549fdc |
tab=`printf '\t'`
|
|
Packit |
549fdc |
sed_x_variable='
|
|
Packit |
549fdc |
# Test if the hold space is empty.
|
|
Packit |
549fdc |
x
|
|
Packit |
549fdc |
s/P/P/
|
|
Packit |
549fdc |
x
|
|
Packit |
549fdc |
ta
|
|
Packit |
549fdc |
# Yes it was empty. Look if we have the expected variable definition.
|
|
Packit |
549fdc |
/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
|
|
Packit |
549fdc |
# Seen the first line of the variable definition.
|
|
Packit |
549fdc |
s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
|
|
Packit |
549fdc |
ba
|
|
Packit |
549fdc |
}
|
|
Packit |
549fdc |
bd
|
|
Packit |
549fdc |
:a
|
|
Packit |
549fdc |
# Here we are processing a line from the variable definition.
|
|
Packit |
549fdc |
# Remove comment, more precisely replace it with a space.
|
|
Packit |
549fdc |
s/#.*$/ /
|
|
Packit |
549fdc |
# See if the line ends in a backslash.
|
|
Packit |
549fdc |
tb
|
|
Packit |
549fdc |
:b
|
|
Packit |
549fdc |
s/\\$//
|
|
Packit |
549fdc |
# Print the line, without the trailing backslash.
|
|
Packit |
549fdc |
p
|
|
Packit |
549fdc |
tc
|
|
Packit |
549fdc |
# There was no trailing backslash. The end of the variable definition is
|
|
Packit |
549fdc |
# reached. Clear the hold space.
|
|
Packit |
549fdc |
s/^.*$//
|
|
Packit |
549fdc |
x
|
|
Packit |
549fdc |
bd
|
|
Packit |
549fdc |
:c
|
|
Packit |
549fdc |
# A trailing backslash means that the variable definition continues in the
|
|
Packit |
549fdc |
# next line. Put a nonempty string into the hold space to indicate this.
|
|
Packit |
549fdc |
s/^.*$/P/
|
|
Packit |
549fdc |
x
|
|
Packit |
549fdc |
:d
|
|
Packit |
549fdc |
'
|
|
Packit |
549fdc |
changequote([,])dnl
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Set POTFILES to the value of the Makefile variable POTFILES.
|
|
Packit |
549fdc |
sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
|
|
Packit |
549fdc |
POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
|
|
Packit |
549fdc |
# Compute POTFILES_DEPS as
|
|
Packit |
549fdc |
# $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
|
|
Packit |
549fdc |
POTFILES_DEPS=
|
|
Packit |
549fdc |
for file in $POTFILES; do
|
|
Packit |
549fdc |
POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
POMAKEFILEDEPS=""
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test -n "$OBSOLETE_ALL_LINGUAS"; then
|
|
Packit |
549fdc |
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 |
549fdc |
fi
|
|
Packit |
549fdc |
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
|
|
Packit |
549fdc |
# The LINGUAS file contains the set of available languages.
|
|
Packit |
549fdc |
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
|
|
Packit |
549fdc |
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
# Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
|
|
Packit |
549fdc |
sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
|
|
Packit |
549fdc |
ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
# Hide the ALL_LINGUAS assignment from automake < 1.5.
|
|
Packit |
549fdc |
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
|
|
Packit |
549fdc |
# Compute POFILES
|
|
Packit |
549fdc |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
|
|
Packit |
549fdc |
# Compute UPDATEPOFILES
|
|
Packit |
549fdc |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
|
|
Packit |
549fdc |
# Compute DUMMYPOFILES
|
|
Packit |
549fdc |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
|
|
Packit |
549fdc |
# Compute GMOFILES
|
|
Packit |
549fdc |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
|
|
Packit |
549fdc |
# Compute PROPERTIESFILES
|
|
Packit |
549fdc |
# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
|
|
Packit |
549fdc |
# Compute CLASSFILES
|
|
Packit |
549fdc |
# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
|
|
Packit |
549fdc |
# Compute QMFILES
|
|
Packit |
549fdc |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
|
|
Packit |
549fdc |
# Compute MSGFILES
|
|
Packit |
549fdc |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
|
|
Packit |
549fdc |
# Compute RESOURCESDLLFILES
|
|
Packit |
549fdc |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
|
|
Packit |
549fdc |
case "$ac_given_srcdir" in
|
|
Packit |
549fdc |
.) srcdirpre= ;;
|
|
Packit |
549fdc |
*) srcdirpre='$(srcdir)/' ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
POFILES=
|
|
Packit |
549fdc |
UPDATEPOFILES=
|
|
Packit |
549fdc |
DUMMYPOFILES=
|
|
Packit |
549fdc |
GMOFILES=
|
|
Packit |
549fdc |
PROPERTIESFILES=
|
|
Packit |
549fdc |
CLASSFILES=
|
|
Packit |
549fdc |
QMFILES=
|
|
Packit |
549fdc |
MSGFILES=
|
|
Packit |
549fdc |
RESOURCESDLLFILES=
|
|
Packit |
549fdc |
for lang in $ALL_LINGUAS; do
|
|
Packit |
549fdc |
POFILES="$POFILES $srcdirpre$lang.po"
|
|
Packit |
549fdc |
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
|
|
Packit |
549fdc |
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
|
|
Packit |
549fdc |
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
|
|
Packit |
549fdc |
PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
|
|
Packit |
549fdc |
CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
|
|
Packit |
549fdc |
QMFILES="$QMFILES $srcdirpre$lang.qm"
|
|
Packit |
549fdc |
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
|
Packit |
549fdc |
MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
|
|
Packit |
549fdc |
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 |
549fdc |
RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
# CATALOGS depends on both $ac_dir and the user's LINGUAS
|
|
Packit |
549fdc |
# environment variable.
|
|
Packit |
549fdc |
INST_LINGUAS=
|
|
Packit |
549fdc |
if test -n "$ALL_LINGUAS"; then
|
|
Packit |
549fdc |
for presentlang in $ALL_LINGUAS; do
|
|
Packit |
549fdc |
useit=no
|
|
Packit |
549fdc |
if test "%UNSET%" != "$LINGUAS"; then
|
|
Packit |
549fdc |
desiredlanguages="$LINGUAS"
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
desiredlanguages="$ALL_LINGUAS"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
for desiredlang in $desiredlanguages; do
|
|
Packit |
549fdc |
# Use the presentlang catalog if desiredlang is
|
|
Packit |
549fdc |
# a. equal to presentlang, or
|
|
Packit |
549fdc |
# b. a variant of presentlang (because in this case,
|
|
Packit |
549fdc |
# presentlang can be used as a fallback for messages
|
|
Packit |
549fdc |
# which are not translated in the desiredlang catalog).
|
|
Packit |
549fdc |
case "$desiredlang" in
|
|
Packit |
549fdc |
"$presentlang"*) useit=yes;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
if test $useit = yes; then
|
|
Packit |
549fdc |
INST_LINGUAS="$INST_LINGUAS $presentlang"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
CATALOGS=
|
|
Packit |
549fdc |
JAVACATALOGS=
|
|
Packit |
549fdc |
QTCATALOGS=
|
|
Packit |
549fdc |
TCLCATALOGS=
|
|
Packit |
549fdc |
CSHARPCATALOGS=
|
|
Packit |
549fdc |
if test -n "$INST_LINGUAS"; then
|
|
Packit |
549fdc |
for lang in $INST_LINGUAS; do
|
|
Packit |
549fdc |
CATALOGS="$CATALOGS $lang.gmo"
|
|
Packit |
549fdc |
JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
|
|
Packit |
549fdc |
QTCATALOGS="$QTCATALOGS $lang.qm"
|
|
Packit |
549fdc |
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
|
Packit |
549fdc |
TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
|
|
Packit |
549fdc |
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 |
549fdc |
CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
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 |
549fdc |
tab=`printf '\t'`
|
|
Packit |
549fdc |
if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
|
|
Packit |
549fdc |
# Add dependencies that cannot be formulated as a simple suffix rule.
|
|
Packit |
549fdc |
for lang in $ALL_LINGUAS; do
|
|
Packit |
549fdc |
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
|
Packit |
549fdc |
cat >> "$ac_file.tmp" <
|
|
Packit |
549fdc |
$frobbedlang.msg: $lang.po
|
|
Packit |
549fdc |
${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
|
|
Packit |
549fdc |
${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
|
|
Packit |
549fdc |
EOF
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
|
|
Packit |
549fdc |
# Add dependencies that cannot be formulated as a simple suffix rule.
|
|
Packit |
549fdc |
for lang in $ALL_LINGUAS; do
|
|
Packit |
549fdc |
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 |
549fdc |
cat >> "$ac_file.tmp" <
|
|
Packit |
549fdc |
$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
|
|
Packit |
549fdc |
${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
|
|
Packit |
549fdc |
${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
|
|
Packit |
549fdc |
EOF
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
if test -n "$POMAKEFILEDEPS"; then
|
|
Packit |
549fdc |
cat >> "$ac_file.tmp" <
|
|
Packit |
549fdc |
Makefile: $POMAKEFILEDEPS
|
|
Packit |
549fdc |
EOF
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
mv "$ac_file.tmp" "$ac_file"
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
|
|
Packit |
549fdc |
AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
|
|
Packit |
549fdc |
[
|
|
Packit |
549fdc |
XGETTEXT_EXTRA_OPTIONS=
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Registers an option to be passed to xgettext in the po subdirectory.
|
|
Packit |
549fdc |
AC_DEFUN([AM_XGETTEXT_OPTION],
|
|
Packit |
549fdc |
[
|
|
Packit |
549fdc |
AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
|
|
Packit |
549fdc |
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_AUTOMAKE_VERSION(VERSION)
|
|
Packit |
549fdc |
# ----------------------------
|
|
Packit |
549fdc |
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
|
Packit |
549fdc |
# generated from the m4 files accompanying Automake X.Y.
|
|
Packit |
549fdc |
# (This private macro should not be called outside this file.)
|
|
Packit |
549fdc |
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|
Packit |
549fdc |
[am__api_version='1.15'
|
|
Packit |
549fdc |
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
|
Packit |
549fdc |
dnl require some minimum version. Point them to the right macro.
|
|
Packit |
549fdc |
m4_if([$1], [1.15], [],
|
|
Packit |
549fdc |
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# _AM_AUTOCONF_VERSION(VERSION)
|
|
Packit |
549fdc |
# -----------------------------
|
|
Packit |
549fdc |
# aclocal traces this macro to find the Autoconf version.
|
|
Packit |
549fdc |
# This is a private macro too. Using m4_define simplifies
|
|
Packit |
549fdc |
# the logic in aclocal, which can simply ignore this definition.
|
|
Packit |
549fdc |
m4_define([_AM_AUTOCONF_VERSION], [])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
|
Packit |
549fdc |
# -------------------------------
|
|
Packit |
549fdc |
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
|
Packit |
549fdc |
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
|
Packit |
549fdc |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|
Packit |
549fdc |
[AM_AUTOMAKE_VERSION([1.15])dnl
|
|
Packit |
549fdc |
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
Packit |
549fdc |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
Packit |
549fdc |
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 2011-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_PROG_AR([ACT-IF-FAIL])
|
|
Packit |
549fdc |
# -------------------------
|
|
Packit |
549fdc |
# Try to determine the archiver interface, and trigger the ar-lib wrapper
|
|
Packit |
549fdc |
# if it is needed. If the detection of archiver interface fails, run
|
|
Packit |
549fdc |
# ACT-IF-FAIL (default is to abort configure with a proper error message).
|
|
Packit |
549fdc |
AC_DEFUN([AM_PROG_AR],
|
|
Packit |
549fdc |
[AC_BEFORE([$0], [LT_INIT])dnl
|
|
Packit |
549fdc |
AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
Packit |
549fdc |
AC_REQUIRE_AUX_FILE([ar-lib])dnl
|
|
Packit |
549fdc |
AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
|
|
Packit |
549fdc |
: ${AR=ar}
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
|
|
Packit |
549fdc |
[AC_LANG_PUSH([C])
|
|
Packit |
549fdc |
am_cv_ar_interface=ar
|
|
Packit |
549fdc |
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
|
|
Packit |
549fdc |
[am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
|
|
Packit |
549fdc |
AC_TRY_EVAL([am_ar_try])
|
|
Packit |
549fdc |
if test "$ac_status" -eq 0; then
|
|
Packit |
549fdc |
am_cv_ar_interface=ar
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
|
|
Packit |
549fdc |
AC_TRY_EVAL([am_ar_try])
|
|
Packit |
549fdc |
if test "$ac_status" -eq 0; then
|
|
Packit |
549fdc |
am_cv_ar_interface=lib
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
am_cv_ar_interface=unknown
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
rm -f conftest.lib libconftest.a
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
AC_LANG_POP([C])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
case $am_cv_ar_interface in
|
|
Packit |
549fdc |
ar)
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
lib)
|
|
Packit |
549fdc |
# Microsoft lib, so override with the ar-lib wrapper script.
|
|
Packit |
549fdc |
# FIXME: It is wrong to rewrite AR.
|
|
Packit |
549fdc |
# But if we don't then we get into trouble of one sort or another.
|
|
Packit |
549fdc |
# A longer-term fix would be to have automake use am__AR in this case,
|
|
Packit |
549fdc |
# and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
|
|
Packit |
549fdc |
# similar.
|
|
Packit |
549fdc |
AR="$am_aux_dir/ar-lib $AR"
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
unknown)
|
|
Packit |
549fdc |
m4_default([$1],
|
|
Packit |
549fdc |
[AC_MSG_ERROR([could not determine $AR interface])])
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
AC_SUBST([AR])dnl
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Figure out how to run the assembler. -*- Autoconf -*-
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_PROG_AS
|
|
Packit |
549fdc |
# ----------
|
|
Packit |
549fdc |
AC_DEFUN([AM_PROG_AS],
|
|
Packit |
549fdc |
[# By default we simply use the C compiler to build assembly code.
|
|
Packit |
549fdc |
AC_REQUIRE([AC_PROG_CC])
|
|
Packit |
549fdc |
test "${CCAS+set}" = set || CCAS=$CC
|
|
Packit |
549fdc |
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
|
|
Packit |
549fdc |
AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
|
|
Packit |
549fdc |
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
|
|
Packit |
549fdc |
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
|
Packit |
549fdc |
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
|
|
Packit |
549fdc |
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# Of course, Automake must honor this variable whenever it calls a
|
|
Packit |
549fdc |
# tool from the auxiliary directory. The problem is that $srcdir (and
|
|
Packit |
549fdc |
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
|
Packit |
549fdc |
# depending on how configure is run. This is pretty annoying, since
|
|
Packit |
549fdc |
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
|
Packit |
549fdc |
# source directory, any form will work fine, but in subdirectories a
|
|
Packit |
549fdc |
# relative path needs to be adjusted first.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# $ac_aux_dir/missing
|
|
Packit |
549fdc |
# fails when called from a subdirectory if $ac_aux_dir is relative
|
|
Packit |
549fdc |
# $top_srcdir/$ac_aux_dir/missing
|
|
Packit |
549fdc |
# fails if $ac_aux_dir is absolute,
|
|
Packit |
549fdc |
# fails when called from a subdirectory in a VPATH build with
|
|
Packit |
549fdc |
# a relative $ac_aux_dir
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
|
Packit |
549fdc |
# are both prefixed by $srcdir. In an in-source build this is usually
|
|
Packit |
549fdc |
# harmless because $srcdir is '.', but things will broke when you
|
|
Packit |
549fdc |
# start a VPATH build or use an absolute $srcdir.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
|
Packit |
549fdc |
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
|
Packit |
549fdc |
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
|
Packit |
549fdc |
# and then we would define $MISSING as
|
|
Packit |
549fdc |
# MISSING="\${SHELL} $am_aux_dir/missing"
|
|
Packit |
549fdc |
# This will work as long as MISSING is not called from configure, because
|
|
Packit |
549fdc |
# unfortunately $(top_srcdir) has no meaning in configure.
|
|
Packit |
549fdc |
# However there are other variables, like CC, which are often used in
|
|
Packit |
549fdc |
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# Another solution, used here, is to always expand $ac_aux_dir to an
|
|
Packit |
549fdc |
# absolute PATH. The drawback is that using absolute paths prevent a
|
|
Packit |
549fdc |
# configured tree to be moved without reconfiguration.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
|
Packit |
549fdc |
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
|
|
Packit |
549fdc |
# Expand $ac_aux_dir to an absolute path.
|
|
Packit |
549fdc |
am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_CONDITIONAL -*- Autoconf -*-
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|
Packit |
549fdc |
# -------------------------------------
|
|
Packit |
549fdc |
# Define a conditional.
|
|
Packit |
549fdc |
AC_DEFUN([AM_CONDITIONAL],
|
|
Packit |
549fdc |
[AC_PREREQ([2.52])dnl
|
|
Packit |
549fdc |
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
|
Packit |
549fdc |
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|
Packit |
549fdc |
AC_SUBST([$1_TRUE])dnl
|
|
Packit |
549fdc |
AC_SUBST([$1_FALSE])dnl
|
|
Packit |
549fdc |
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
|
Packit |
549fdc |
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
|
Packit |
549fdc |
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
|
Packit |
549fdc |
if $2; then
|
|
Packit |
549fdc |
$1_TRUE=
|
|
Packit |
549fdc |
$1_FALSE='#'
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
$1_TRUE='#'
|
|
Packit |
549fdc |
$1_FALSE=
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AC_CONFIG_COMMANDS_PRE(
|
|
Packit |
549fdc |
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
|
Packit |
549fdc |
AC_MSG_ERROR([[conditional "$1" was never defined.
|
|
Packit |
549fdc |
Usually this means the macro was only invoked conditionally.]])
|
|
Packit |
549fdc |
fi])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
|
|
Packit |
549fdc |
# written in clear, in which case automake, when reading aclocal.m4,
|
|
Packit |
549fdc |
# will think it sees a *use*, and therefore will trigger all it's
|
|
Packit |
549fdc |
# C support machinery. Also note that it means that autoscan, seeing
|
|
Packit |
549fdc |
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# _AM_DEPENDENCIES(NAME)
|
|
Packit |
549fdc |
# ----------------------
|
|
Packit |
549fdc |
# See how the compiler implements dependency checking.
|
|
Packit |
549fdc |
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
|
|
Packit |
549fdc |
# We try a few techniques and use that to set a single cache variable.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
|
Packit |
549fdc |
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
|
Packit |
549fdc |
# dependency, and given that the user is not expected to run this macro,
|
|
Packit |
549fdc |
# just rely on AC_PROG_CC.
|
|
Packit |
549fdc |
AC_DEFUN([_AM_DEPENDENCIES],
|
|
Packit |
549fdc |
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AM_DEP_TRACK])dnl
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
|
|
Packit |
549fdc |
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
|
|
Packit |
549fdc |
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
|
Packit |
549fdc |
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
|
|
Packit |
549fdc |
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
|
|
Packit |
549fdc |
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
|
Packit |
549fdc |
[depcc="$$1" am_compiler_list=])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_CACHE_CHECK([dependency style of $depcc],
|
|
Packit |
549fdc |
[am_cv_$1_dependencies_compiler_type],
|
|
Packit |
549fdc |
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
|
Packit |
549fdc |
# We make a subdir and do the tests there. Otherwise we can end up
|
|
Packit |
549fdc |
# making bogus files that we don't know about and never remove. For
|
|
Packit |
549fdc |
# instance it was reported that on HP-UX the gcc test will end up
|
|
Packit |
549fdc |
# making a dummy file named 'D' -- because '-MD' means "put the output
|
|
Packit |
549fdc |
# in D".
|
|
Packit |
549fdc |
rm -rf conftest.dir
|
|
Packit |
549fdc |
mkdir conftest.dir
|
|
Packit |
549fdc |
# Copy depcomp to subdir because otherwise we won't find it if we're
|
|
Packit |
549fdc |
# using a relative directory.
|
|
Packit |
549fdc |
cp "$am_depcomp" conftest.dir
|
|
Packit |
549fdc |
cd conftest.dir
|
|
Packit |
549fdc |
# We will build objects and dependencies in a subdirectory because
|
|
Packit |
549fdc |
# it helps to detect inapplicable dependency modes. For instance
|
|
Packit |
549fdc |
# both Tru64's cc and ICC support -MD to output dependencies as a
|
|
Packit |
549fdc |
# side effect of compilation, but ICC will put the dependencies in
|
|
Packit |
549fdc |
# the current directory while Tru64 will put them in the object
|
|
Packit |
549fdc |
# directory.
|
|
Packit |
549fdc |
mkdir sub
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
am_cv_$1_dependencies_compiler_type=none
|
|
Packit |
549fdc |
if test "$am_compiler_list" = ""; then
|
|
Packit |
549fdc |
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
am__universal=false
|
|
Packit |
549fdc |
m4_case([$1], [CC],
|
|
Packit |
549fdc |
[case " $depcc " in #(
|
|
Packit |
549fdc |
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
Packit |
549fdc |
esac],
|
|
Packit |
549fdc |
[CXX],
|
|
Packit |
549fdc |
[case " $depcc " in #(
|
|
Packit |
549fdc |
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
Packit |
549fdc |
esac])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
for depmode in $am_compiler_list; do
|
|
Packit |
549fdc |
# Setup a source with many dependencies, because some compilers
|
|
Packit |
549fdc |
# like to wrap large dependency lists on column 80 (with \), and
|
|
Packit |
549fdc |
# we should not choose a depcomp mode which is confused by this.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# We need to recreate these files for each test, as the compiler may
|
|
Packit |
549fdc |
# overwrite some of them when testing with obscure command lines.
|
|
Packit |
549fdc |
# This happens at least with the AIX C compiler.
|
|
Packit |
549fdc |
: > sub/conftest.c
|
|
Packit |
549fdc |
for i in 1 2 3 4 5 6; do
|
|
Packit |
549fdc |
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
|
Packit |
549fdc |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
|
Packit |
549fdc |
# Solaris 10 /bin/sh.
|
|
Packit |
549fdc |
echo '/* dummy */' > sub/conftst$i.h
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# We check with '-c' and '-o' for the sake of the "dashmstdout"
|
|
Packit |
549fdc |
# mode. It turns out that the SunPro C++ compiler does not properly
|
|
Packit |
549fdc |
# handle '-M -o', and we need to detect this. Also, some Intel
|
|
Packit |
549fdc |
# versions had trouble with output in subdirs.
|
|
Packit |
549fdc |
am__obj=sub/conftest.${OBJEXT-o}
|
|
Packit |
549fdc |
am__minus_obj="-o $am__obj"
|
|
Packit |
549fdc |
case $depmode in
|
|
Packit |
549fdc |
gcc)
|
|
Packit |
549fdc |
# This depmode causes a compiler race in universal mode.
|
|
Packit |
549fdc |
test "$am__universal" = false || continue
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
nosideeffect)
|
|
Packit |
549fdc |
# After this tag, mechanisms are not by side-effect, so they'll
|
|
Packit |
549fdc |
# only be used when explicitly requested.
|
|
Packit |
549fdc |
if test "x$enable_dependency_tracking" = xyes; then
|
|
Packit |
549fdc |
continue
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
break
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
|
Packit |
549fdc |
# This compiler won't grok '-c -o', but also, the minuso test has
|
|
Packit |
549fdc |
# not run yet. These depmodes are late enough in the game, and
|
|
Packit |
549fdc |
# so weak that their functioning should not be impacted.
|
|
Packit |
549fdc |
am__obj=conftest.${OBJEXT-o}
|
|
Packit |
549fdc |
am__minus_obj=
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
none) break ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
if depmode=$depmode \
|
|
Packit |
549fdc |
source=sub/conftest.c object=$am__obj \
|
|
Packit |
549fdc |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
|
Packit |
549fdc |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
|
Packit |
549fdc |
>/dev/null 2>conftest.err &&
|
|
Packit |
549fdc |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
Packit |
549fdc |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
Packit |
549fdc |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
|
Packit |
549fdc |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
|
Packit |
549fdc |
# icc doesn't choke on unknown options, it will just issue warnings
|
|
Packit |
549fdc |
# or remarks (even with -Werror). So we grep stderr for any message
|
|
Packit |
549fdc |
# that says an option was ignored or not supported.
|
|
Packit |
549fdc |
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
|
Packit |
549fdc |
# icc: Command line warning: ignoring option '-M'; no argument required
|
|
Packit |
549fdc |
# The diagnosis changed in icc 8.0:
|
|
Packit |
549fdc |
# icc: Command line remark: option '-MP' not supported
|
|
Packit |
549fdc |
if (grep 'ignoring option' conftest.err ||
|
|
Packit |
549fdc |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
|
Packit |
549fdc |
am_cv_$1_dependencies_compiler_type=$depmode
|
|
Packit |
549fdc |
break
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
cd ..
|
|
Packit |
549fdc |
rm -rf conftest.dir
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
am_cv_$1_dependencies_compiler_type=none
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
|
Packit |
549fdc |
AM_CONDITIONAL([am__fastdep$1], [
|
|
Packit |
549fdc |
test "x$enable_dependency_tracking" != xno \
|
|
Packit |
549fdc |
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_SET_DEPDIR
|
|
Packit |
549fdc |
# -------------
|
|
Packit |
549fdc |
# Choose a directory name for dependency files.
|
|
Packit |
549fdc |
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
|
|
Packit |
549fdc |
AC_DEFUN([AM_SET_DEPDIR],
|
|
Packit |
549fdc |
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
Packit |
549fdc |
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_DEP_TRACK
|
|
Packit |
549fdc |
# ------------
|
|
Packit |
549fdc |
AC_DEFUN([AM_DEP_TRACK],
|
|
Packit |
549fdc |
[AC_ARG_ENABLE([dependency-tracking], [dnl
|
|
Packit |
549fdc |
AS_HELP_STRING(
|
|
Packit |
549fdc |
[--enable-dependency-tracking],
|
|
Packit |
549fdc |
[do not reject slow dependency extractors])
|
|
Packit |
549fdc |
AS_HELP_STRING(
|
|
Packit |
549fdc |
[--disable-dependency-tracking],
|
|
Packit |
549fdc |
[speeds up one-time build])])
|
|
Packit |
549fdc |
if test "x$enable_dependency_tracking" != xno; then
|
|
Packit |
549fdc |
am_depcomp="$ac_aux_dir/depcomp"
|
|
Packit |
549fdc |
AMDEPBACKSLASH='\'
|
|
Packit |
549fdc |
am__nodep='_no'
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
|
Packit |
549fdc |
AC_SUBST([AMDEPBACKSLASH])dnl
|
|
Packit |
549fdc |
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
|
Packit |
549fdc |
AC_SUBST([am__nodep])dnl
|
|
Packit |
549fdc |
_AM_SUBST_NOTMAKE([am__nodep])dnl
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
Packit |
549fdc |
# ------------------------------
|
|
Packit |
549fdc |
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
Packit |
549fdc |
[{
|
|
Packit |
549fdc |
# Older Autoconf quotes --file arguments for eval, but not when files
|
|
Packit |
549fdc |
# are listed without --file. Let's play safe and only enable the eval
|
|
Packit |
549fdc |
# if we detect the quoting.
|
|
Packit |
549fdc |
case $CONFIG_FILES in
|
|
Packit |
549fdc |
*\'*) eval set x "$CONFIG_FILES" ;;
|
|
Packit |
549fdc |
*) set x $CONFIG_FILES ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
shift
|
|
Packit |
549fdc |
for mf
|
|
Packit |
549fdc |
do
|
|
Packit |
549fdc |
# Strip MF so we end up with the name of the file.
|
|
Packit |
549fdc |
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
|
Packit |
549fdc |
# Check whether this is an Automake generated Makefile or not.
|
|
Packit |
549fdc |
# We used to match only the files named 'Makefile.in', but
|
|
Packit |
549fdc |
# some people rename them; so instead we look at the file content.
|
|
Packit |
549fdc |
# Grep'ing the first line is not enough: some people post-process
|
|
Packit |
549fdc |
# each Makefile.in and add a new line on top of each file to say so.
|
|
Packit |
549fdc |
# Grep'ing the whole file is not good either: AIX grep has a line
|
|
Packit |
549fdc |
# limit of 2048, but all sed's we know have understand at least 4000.
|
|
Packit |
549fdc |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
|
Packit |
549fdc |
dirpart=`AS_DIRNAME("$mf")`
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
continue
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
# Extract the definition of DEPDIR, am__include, and am__quote
|
|
Packit |
549fdc |
# from the Makefile without running 'make'.
|
|
Packit |
549fdc |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
|
Packit |
549fdc |
test -z "$DEPDIR" && continue
|
|
Packit |
549fdc |
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
|
Packit |
549fdc |
test -z "$am__include" && continue
|
|
Packit |
549fdc |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
|
Packit |
549fdc |
# Find all dependency output files, they are included files with
|
|
Packit |
549fdc |
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
|
Packit |
549fdc |
# simplest approach to changing $(DEPDIR) to its actual value in the
|
|
Packit |
549fdc |
# expansion.
|
|
Packit |
549fdc |
for file in `sed -n "
|
|
Packit |
549fdc |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
|
Packit |
549fdc |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
|
|
Packit |
549fdc |
# Make sure the directory exists.
|
|
Packit |
549fdc |
test -f "$dirpart/$file" && continue
|
|
Packit |
549fdc |
fdir=`AS_DIRNAME(["$file"])`
|
|
Packit |
549fdc |
AS_MKDIR_P([$dirpart/$fdir])
|
|
Packit |
549fdc |
# echo "creating $dirpart/$file"
|
|
Packit |
549fdc |
echo '# dummy' > "$dirpart/$file"
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
}
|
|
Packit |
549fdc |
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
Packit |
549fdc |
# -----------------------------
|
|
Packit |
549fdc |
# This macro should only be invoked once -- use via AC_REQUIRE.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This code is only required when automatic dependency tracking
|
|
Packit |
549fdc |
# is enabled. FIXME. This creates each '.P' file that we will
|
|
Packit |
549fdc |
# need in order to bootstrap the dependency handling code.
|
|
Packit |
549fdc |
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
Packit |
549fdc |
[AC_CONFIG_COMMANDS([depfiles],
|
|
Packit |
549fdc |
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
Packit |
549fdc |
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Do all the work for Automake. -*- Autoconf -*-
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# This macro actually does too much. Some checks are only needed if
|
|
Packit |
549fdc |
# your package does certain things. But this isn't really a big deal.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
|
|
Packit |
549fdc |
m4_define([AC_PROG_CC],
|
|
Packit |
549fdc |
m4_defn([AC_PROG_CC])
|
|
Packit |
549fdc |
[_AM_PROG_CC_C_O
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
|
Packit |
549fdc |
# AM_INIT_AUTOMAKE([OPTIONS])
|
|
Packit |
549fdc |
# -----------------------------------------------
|
|
Packit |
549fdc |
# The call with PACKAGE and VERSION arguments is the old style
|
|
Packit |
549fdc |
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
|
Packit |
549fdc |
# and VERSION should now be passed to AC_INIT and removed from
|
|
Packit |
549fdc |
# the call to AM_INIT_AUTOMAKE.
|
|
Packit |
549fdc |
# We support both call styles for the transition. After
|
|
Packit |
549fdc |
# the next Automake release, Autoconf can make the AC_INIT
|
|
Packit |
549fdc |
# arguments mandatory, and then we can depend on a new Autoconf
|
|
Packit |
549fdc |
# release and drop the old call support.
|
|
Packit |
549fdc |
AC_DEFUN([AM_INIT_AUTOMAKE],
|
|
Packit |
549fdc |
[AC_PREREQ([2.65])dnl
|
|
Packit |
549fdc |
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
|
Packit |
549fdc |
dnl the ones we care about.
|
|
Packit |
549fdc |
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|
Packit |
549fdc |
if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
|
Packit |
549fdc |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
|
Packit |
549fdc |
# is not polluted with repeated "-I."
|
|
Packit |
549fdc |
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
|
Packit |
549fdc |
# test to see if srcdir already configured
|
|
Packit |
549fdc |
if test -f $srcdir/config.status; then
|
|
Packit |
549fdc |
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# test whether we have cygpath
|
|
Packit |
549fdc |
if test -z "$CYGPATH_W"; then
|
|
Packit |
549fdc |
if (cygpath --version) >/dev/null 2>/dev/null; then
|
|
Packit |
549fdc |
CYGPATH_W='cygpath -w'
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
CYGPATH_W=echo
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AC_SUBST([CYGPATH_W])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Define the identity of the package.
|
|
Packit |
549fdc |
dnl Distinguish between old-style and new-style calls.
|
|
Packit |
549fdc |
m4_ifval([$2],
|
|
Packit |
549fdc |
[AC_DIAGNOSE([obsolete],
|
|
Packit |
549fdc |
[$0: two- and three-arguments forms are deprecated.])
|
|
Packit |
549fdc |
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
|
Packit |
549fdc |
AC_SUBST([PACKAGE], [$1])dnl
|
|
Packit |
549fdc |
AC_SUBST([VERSION], [$2])],
|
|
Packit |
549fdc |
[_AM_SET_OPTIONS([$1])dnl
|
|
Packit |
549fdc |
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
|
Packit |
549fdc |
m4_if(
|
|
Packit |
549fdc |
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
|
|
Packit |
549fdc |
[ok:ok],,
|
|
Packit |
549fdc |
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
|
Packit |
549fdc |
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
|
Packit |
549fdc |
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
_AM_IF_OPTION([no-define],,
|
|
Packit |
549fdc |
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
|
|
Packit |
549fdc |
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Some tools Automake needs.
|
|
Packit |
549fdc |
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
|
Packit |
549fdc |
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
|
|
Packit |
549fdc |
AM_MISSING_PROG([AUTOCONF], [autoconf])
|
|
Packit |
549fdc |
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
|
|
Packit |
549fdc |
AM_MISSING_PROG([AUTOHEADER], [autoheader])
|
|
Packit |
549fdc |
AM_MISSING_PROG([MAKEINFO], [makeinfo])
|
|
Packit |
549fdc |
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
Packit |
549fdc |
# For better backward compatibility. To be removed once Automake 1.9.x
|
|
Packit |
549fdc |
# dies out for good. For more background, see:
|
|
Packit |
549fdc |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
|
Packit |
549fdc |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
|
Packit |
549fdc |
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
|
|
Packit |
549fdc |
# We need awk for the "check" target (and possibly the TAP driver). The
|
|
Packit |
549fdc |
# system "awk" is bad on some platforms.
|
|
Packit |
549fdc |
AC_REQUIRE([AC_PROG_AWK])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
Packit |
549fdc |
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
Packit |
549fdc |
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
|
Packit |
549fdc |
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
|
Packit |
549fdc |
[_AM_PROG_TAR([v7])])])
|
|
Packit |
549fdc |
_AM_IF_OPTION([no-dependencies],,
|
|
Packit |
549fdc |
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
|
Packit |
549fdc |
[_AM_DEPENDENCIES([CC])],
|
|
Packit |
549fdc |
[m4_define([AC_PROG_CC],
|
|
Packit |
549fdc |
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
|
|
Packit |
549fdc |
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|
Packit |
549fdc |
[_AM_DEPENDENCIES([CXX])],
|
|
Packit |
549fdc |
[m4_define([AC_PROG_CXX],
|
|
Packit |
549fdc |
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
|
|
Packit |
549fdc |
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
|
Packit |
549fdc |
[_AM_DEPENDENCIES([OBJC])],
|
|
Packit |
549fdc |
[m4_define([AC_PROG_OBJC],
|
|
Packit |
549fdc |
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
|
|
Packit |
549fdc |
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
|
|
Packit |
549fdc |
[_AM_DEPENDENCIES([OBJCXX])],
|
|
Packit |
549fdc |
[m4_define([AC_PROG_OBJCXX],
|
|
Packit |
549fdc |
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
AC_REQUIRE([AM_SILENT_RULES])dnl
|
|
Packit |
549fdc |
dnl The testsuite driver may need to know about EXEEXT, so add the
|
|
Packit |
549fdc |
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
|
|
Packit |
549fdc |
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
|
Packit |
549fdc |
AC_CONFIG_COMMANDS_PRE(dnl
|
|
Packit |
549fdc |
[m4_provide_if([_AM_COMPILER_EXEEXT],
|
|
Packit |
549fdc |
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# POSIX will say in a future version that running "rm -f" with no argument
|
|
Packit |
549fdc |
# is OK; and we want to be able to make that assumption in our Makefile
|
|
Packit |
549fdc |
# recipes. So use an aggressive probe to check that the usage we want is
|
|
Packit |
549fdc |
# actually supported "in the wild" to an acceptable degree.
|
|
Packit |
549fdc |
# See automake bug#10828.
|
|
Packit |
549fdc |
# To make any issue more visible, cause the running configure to be aborted
|
|
Packit |
549fdc |
# by default if the 'rm' program in use doesn't match our expectations; the
|
|
Packit |
549fdc |
# user can still override this though.
|
|
Packit |
549fdc |
if rm -f && rm -fr && rm -rf; then : OK; else
|
|
Packit |
549fdc |
cat >&2 <<'END'
|
|
Packit |
549fdc |
Oops!
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
Your 'rm' program seems unable to run without file operands specified
|
|
Packit |
549fdc |
on the command line, even when the '-f' option is present. This is contrary
|
|
Packit |
549fdc |
to the behaviour of most rm programs out there, and not conforming with
|
|
Packit |
549fdc |
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
Please tell bug-automake@gnu.org about your system, including the value
|
|
Packit |
549fdc |
of your $PATH and any error possibly output before this message. This
|
|
Packit |
549fdc |
can help us improve future automake versions.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
END
|
|
Packit |
549fdc |
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
|
|
Packit |
549fdc |
echo 'Configuration will proceed anyway, since you have set the' >&2
|
|
Packit |
549fdc |
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
|
|
Packit |
549fdc |
echo >&2
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
cat >&2 <<'END'
|
|
Packit |
549fdc |
Aborting the configuration process, to ensure you take notice of the issue.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
You can download and install GNU coreutils to get an 'rm' implementation
|
|
Packit |
549fdc |
that behaves properly: <http://www.gnu.org/software/coreutils/>.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
If you want to complete the configuration process using your problematic
|
|
Packit |
549fdc |
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
|
Packit |
549fdc |
to "yes", and re-run configure.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
END
|
|
Packit |
549fdc |
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
dnl The trailing newline in this macro's definition is deliberate, for
|
|
Packit |
549fdc |
dnl backward compatibility and to allow trailing 'dnl'-style comments
|
|
Packit |
549fdc |
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
|
|
Packit |
549fdc |
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
|
|
Packit |
549fdc |
dnl mangled by Autoconf and run in a shell conditional statement.
|
|
Packit |
549fdc |
m4_define([_AC_COMPILER_EXEEXT],
|
|
Packit |
549fdc |
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# When config.status generates a header, we must update the stamp-h file.
|
|
Packit |
549fdc |
# This file resides in the same directory as the config header
|
|
Packit |
549fdc |
# that is generated. The stamp files are numbered to have different names.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
|
Packit |
549fdc |
# loop where config.status creates the headers, so we can generate
|
|
Packit |
549fdc |
# our stamp files there.
|
|
Packit |
549fdc |
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
|
Packit |
549fdc |
[# Compute $1's index in $config_headers.
|
|
Packit |
549fdc |
_am_arg=$1
|
|
Packit |
549fdc |
_am_stamp_count=1
|
|
Packit |
549fdc |
for _am_header in $config_headers :; do
|
|
Packit |
549fdc |
case $_am_header in
|
|
Packit |
549fdc |
$_am_arg | $_am_arg:* )
|
|
Packit |
549fdc |
break ;;
|
|
Packit |
549fdc |
* )
|
|
Packit |
549fdc |
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_PROG_INSTALL_SH
|
|
Packit |
549fdc |
# ------------------
|
|
Packit |
549fdc |
# Define $install_sh.
|
|
Packit |
549fdc |
AC_DEFUN([AM_PROG_INSTALL_SH],
|
|
Packit |
549fdc |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
Packit |
549fdc |
if test x"${install_sh+set}" != xset; then
|
|
Packit |
549fdc |
case $am_aux_dir in
|
|
Packit |
549fdc |
*\ * | *\ *)
|
|
Packit |
549fdc |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
|
Packit |
549fdc |
*)
|
|
Packit |
549fdc |
install_sh="\${SHELL} $am_aux_dir/install-sh"
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AC_SUBST([install_sh])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Check whether the underlying file-system supports filenames
|
|
Packit |
549fdc |
# with a leading dot. For instance MS-DOS doesn't.
|
|
Packit |
549fdc |
AC_DEFUN([AM_SET_LEADING_DOT],
|
|
Packit |
549fdc |
[rm -rf .tst 2>/dev/null
|
|
Packit |
549fdc |
mkdir .tst 2>/dev/null
|
|
Packit |
549fdc |
if test -d .tst; then
|
|
Packit |
549fdc |
am__leading_dot=.
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
am__leading_dot=_
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
rmdir .tst 2>/dev/null
|
|
Packit |
549fdc |
AC_SUBST([am__leading_dot])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
|
Packit |
549fdc |
# From Jim Meyering
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_MAINTAINER_MODE([DEFAULT-MODE])
|
|
Packit |
549fdc |
# ----------------------------------
|
|
Packit |
549fdc |
# Control maintainer-specific portions of Makefiles.
|
|
Packit |
549fdc |
# Default is to disable them, unless 'enable' is passed literally.
|
|
Packit |
549fdc |
# For symmetry, 'disable' may be passed as well. Anyway, the user
|
|
Packit |
549fdc |
# can override the default with the --enable/--disable switch.
|
|
Packit |
549fdc |
AC_DEFUN([AM_MAINTAINER_MODE],
|
|
Packit |
549fdc |
[m4_case(m4_default([$1], [disable]),
|
|
Packit |
549fdc |
[enable], [m4_define([am_maintainer_other], [disable])],
|
|
Packit |
549fdc |
[disable], [m4_define([am_maintainer_other], [enable])],
|
|
Packit |
549fdc |
[m4_define([am_maintainer_other], [enable])
|
|
Packit |
549fdc |
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
|
|
Packit |
549fdc |
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
|
Packit |
549fdc |
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
|
|
Packit |
549fdc |
AC_ARG_ENABLE([maintainer-mode],
|
|
Packit |
549fdc |
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
|
|
Packit |
549fdc |
am_maintainer_other[ make rules and dependencies not useful
|
|
Packit |
549fdc |
(and sometimes confusing) to the casual installer])],
|
|
Packit |
549fdc |
[USE_MAINTAINER_MODE=$enableval],
|
|
Packit |
549fdc |
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
|
|
Packit |
549fdc |
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
|
Packit |
549fdc |
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
|
|
Packit |
549fdc |
MAINT=$MAINTAINER_MODE_TRUE
|
|
Packit |
549fdc |
AC_SUBST([MAINT])dnl
|
|
Packit |
549fdc |
]
|
|
Packit |
549fdc |
)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_MAKE_INCLUDE()
|
|
Packit |
549fdc |
# -----------------
|
|
Packit |
549fdc |
# Check to see how make treats includes.
|
|
Packit |
549fdc |
AC_DEFUN([AM_MAKE_INCLUDE],
|
|
Packit |
549fdc |
[am_make=${MAKE-make}
|
|
Packit |
549fdc |
cat > confinc << 'END'
|
|
Packit |
549fdc |
am__doit:
|
|
Packit |
549fdc |
@echo this is the am__doit target
|
|
Packit |
549fdc |
.PHONY: am__doit
|
|
Packit |
549fdc |
END
|
|
Packit |
549fdc |
# If we don't find an include directive, just comment out the code.
|
|
Packit |
549fdc |
AC_MSG_CHECKING([for style of include used by $am_make])
|
|
Packit |
549fdc |
am__include="#"
|
|
Packit |
549fdc |
am__quote=
|
|
Packit |
549fdc |
_am_result=none
|
|
Packit |
549fdc |
# First try GNU make style include.
|
|
Packit |
549fdc |
echo "include confinc" > confmf
|
|
Packit |
549fdc |
# Ignore all kinds of additional output from 'make'.
|
|
Packit |
549fdc |
case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
Packit |
549fdc |
*the\ am__doit\ target*)
|
|
Packit |
549fdc |
am__include=include
|
|
Packit |
549fdc |
am__quote=
|
|
Packit |
549fdc |
_am_result=GNU
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
# Now try BSD make style include.
|
|
Packit |
549fdc |
if test "$am__include" = "#"; then
|
|
Packit |
549fdc |
echo '.include "confinc"' > confmf
|
|
Packit |
549fdc |
case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
Packit |
549fdc |
*the\ am__doit\ target*)
|
|
Packit |
549fdc |
am__include=.include
|
|
Packit |
549fdc |
am__quote="\""
|
|
Packit |
549fdc |
_am_result=BSD
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AC_SUBST([am__include])
|
|
Packit |
549fdc |
AC_SUBST([am__quote])
|
|
Packit |
549fdc |
AC_MSG_RESULT([$_am_result])
|
|
Packit |
549fdc |
rm -f confinc confmf
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_MISSING_PROG(NAME, PROGRAM)
|
|
Packit |
549fdc |
# ------------------------------
|
|
Packit |
549fdc |
AC_DEFUN([AM_MISSING_PROG],
|
|
Packit |
549fdc |
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
|
Packit |
549fdc |
$1=${$1-"${am_missing_run}$2"}
|
|
Packit |
549fdc |
AC_SUBST($1)])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_MISSING_HAS_RUN
|
|
Packit |
549fdc |
# ------------------
|
|
Packit |
549fdc |
# Define MISSING if not defined so far and test if it is modern enough.
|
|
Packit |
549fdc |
# If it is, set am_missing_run to use it, otherwise, to nothing.
|
|
Packit |
549fdc |
AC_DEFUN([AM_MISSING_HAS_RUN],
|
|
Packit |
549fdc |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
Packit |
549fdc |
AC_REQUIRE_AUX_FILE([missing])dnl
|
|
Packit |
549fdc |
if test x"${MISSING+set}" != xset; then
|
|
Packit |
549fdc |
case $am_aux_dir in
|
|
Packit |
549fdc |
*\ * | *\ *)
|
|
Packit |
549fdc |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
|
Packit |
549fdc |
*)
|
|
Packit |
549fdc |
MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
# Use eval to expand $SHELL
|
|
Packit |
549fdc |
if eval "$MISSING --is-lightweight"; then
|
|
Packit |
549fdc |
am_missing_run="$MISSING "
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
am_missing_run=
|
|
Packit |
549fdc |
AC_MSG_WARN(['missing' script is too old or missing])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Helper functions for option handling. -*- Autoconf -*-
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# _AM_MANGLE_OPTION(NAME)
|
|
Packit |
549fdc |
# -----------------------
|
|
Packit |
549fdc |
AC_DEFUN([_AM_MANGLE_OPTION],
|
|
Packit |
549fdc |
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# _AM_SET_OPTION(NAME)
|
|
Packit |
549fdc |
# --------------------
|
|
Packit |
549fdc |
# Set option NAME. Presently that only means defining a flag for this option.
|
|
Packit |
549fdc |
AC_DEFUN([_AM_SET_OPTION],
|
|
Packit |
549fdc |
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# _AM_SET_OPTIONS(OPTIONS)
|
|
Packit |
549fdc |
# ------------------------
|
|
Packit |
549fdc |
# OPTIONS is a space-separated list of Automake options.
|
|
Packit |
549fdc |
AC_DEFUN([_AM_SET_OPTIONS],
|
|
Packit |
549fdc |
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
|
Packit |
549fdc |
# -------------------------------------------
|
|
Packit |
549fdc |
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|
Packit |
549fdc |
AC_DEFUN([_AM_IF_OPTION],
|
|
Packit |
549fdc |
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# _AM_PROG_CC_C_O
|
|
Packit |
549fdc |
# ---------------
|
|
Packit |
549fdc |
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
|
|
Packit |
549fdc |
# to automatically call this.
|
|
Packit |
549fdc |
AC_DEFUN([_AM_PROG_CC_C_O],
|
|
Packit |
549fdc |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
Packit |
549fdc |
AC_REQUIRE_AUX_FILE([compile])dnl
|
|
Packit |
549fdc |
AC_LANG_PUSH([C])dnl
|
|
Packit |
549fdc |
AC_CACHE_CHECK(
|
|
Packit |
549fdc |
[whether $CC understands -c and -o together],
|
|
Packit |
549fdc |
[am_cv_prog_cc_c_o],
|
|
Packit |
549fdc |
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
|
|
Packit |
549fdc |
# Make sure it works both with $CC and with simple cc.
|
|
Packit |
549fdc |
# Following AC_PROG_CC_C_O, we do the test twice because some
|
|
Packit |
549fdc |
# compilers refuse to overwrite an existing .o file with -o,
|
|
Packit |
549fdc |
# though they will create one.
|
|
Packit |
549fdc |
am_cv_prog_cc_c_o=yes
|
|
Packit |
549fdc |
for am_i in 1 2; do
|
|
Packit |
549fdc |
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
|
|
Packit |
549fdc |
&& test -f conftest2.$ac_objext; then
|
|
Packit |
549fdc |
: OK
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
am_cv_prog_cc_c_o=no
|
|
Packit |
549fdc |
break
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
rm -f core conftest*
|
|
Packit |
549fdc |
unset am_i])
|
|
Packit |
549fdc |
if test "$am_cv_prog_cc_c_o" != yes; then
|
|
Packit |
549fdc |
# Losing compiler, so override with the script.
|
|
Packit |
549fdc |
# FIXME: It is wrong to rewrite CC.
|
|
Packit |
549fdc |
# But if we don't then we get into trouble of one sort or another.
|
|
Packit |
549fdc |
# A longer-term fix would be to have automake use am__CC in this case,
|
|
Packit |
549fdc |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
|
Packit |
549fdc |
CC="$am_aux_dir/compile $CC"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AC_LANG_POP([C])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# For backward compatibility.
|
|
Packit |
549fdc |
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_RUN_LOG(COMMAND)
|
|
Packit |
549fdc |
# -------------------
|
|
Packit |
549fdc |
# Run COMMAND, save the exit status in ac_status, and log it.
|
|
Packit |
549fdc |
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
|
|
Packit |
549fdc |
AC_DEFUN([AM_RUN_LOG],
|
|
Packit |
549fdc |
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
|
|
Packit |
549fdc |
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
|
|
Packit |
549fdc |
ac_status=$?
|
|
Packit |
549fdc |
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
|
Packit |
549fdc |
(exit $ac_status); }])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_SANITY_CHECK
|
|
Packit |
549fdc |
# ---------------
|
|
Packit |
549fdc |
AC_DEFUN([AM_SANITY_CHECK],
|
|
Packit |
549fdc |
[AC_MSG_CHECKING([whether build environment is sane])
|
|
Packit |
549fdc |
# Reject unsafe characters in $srcdir or the absolute working directory
|
|
Packit |
549fdc |
# name. Accept space and tab only in the latter.
|
|
Packit |
549fdc |
am_lf='
|
|
Packit |
549fdc |
'
|
|
Packit |
549fdc |
case `pwd` in
|
|
Packit |
549fdc |
*[[\\\"\#\$\&\'\`$am_lf]]*)
|
|
Packit |
549fdc |
AC_MSG_ERROR([unsafe absolute working directory name]);;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
case $srcdir in
|
|
Packit |
549fdc |
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
|
|
Packit |
549fdc |
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Do 'set' in a subshell so we don't clobber the current shell's
|
|
Packit |
549fdc |
# arguments. Must try -L first in case configure is actually a
|
|
Packit |
549fdc |
# symlink; some systems play weird games with the mod time of symlinks
|
|
Packit |
549fdc |
# (eg FreeBSD returns the mod time of the symlink's containing
|
|
Packit |
549fdc |
# directory).
|
|
Packit |
549fdc |
if (
|
|
Packit |
549fdc |
am_has_slept=no
|
|
Packit |
549fdc |
for am_try in 1 2; do
|
|
Packit |
549fdc |
echo "timestamp, slept: $am_has_slept" > conftest.file
|
|
Packit |
549fdc |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
|
Packit |
549fdc |
if test "$[*]" = "X"; then
|
|
Packit |
549fdc |
# -L didn't work.
|
|
Packit |
549fdc |
set X `ls -t "$srcdir/configure" conftest.file`
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
|
Packit |
549fdc |
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# If neither matched, then we have a broken ls. This can happen
|
|
Packit |
549fdc |
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
Packit |
549fdc |
# broken ls alias from the environment. This has actually
|
|
Packit |
549fdc |
# happened. Such a system could not be considered "sane".
|
|
Packit |
549fdc |
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
|
Packit |
549fdc |
alias in your environment])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
if test "$[2]" = conftest.file || test $am_try -eq 2; then
|
|
Packit |
549fdc |
break
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
# Just in case.
|
|
Packit |
549fdc |
sleep 1
|
|
Packit |
549fdc |
am_has_slept=yes
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
test "$[2]" = conftest.file
|
|
Packit |
549fdc |
)
|
|
Packit |
549fdc |
then
|
|
Packit |
549fdc |
# Ok.
|
|
Packit |
549fdc |
:
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
AC_MSG_ERROR([newly created file is older than distributed files!
|
|
Packit |
549fdc |
Check your system clock])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AC_MSG_RESULT([yes])
|
|
Packit |
549fdc |
# If we didn't sleep, we still need to ensure time stamps of config.status and
|
|
Packit |
549fdc |
# generated files are strictly newer.
|
|
Packit |
549fdc |
am_sleep_pid=
|
|
Packit |
549fdc |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
|
Packit |
549fdc |
( sleep 1 ) &
|
|
Packit |
549fdc |
am_sleep_pid=$!
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AC_CONFIG_COMMANDS_PRE(
|
|
Packit |
549fdc |
[AC_MSG_CHECKING([that generated files are newer than configure])
|
|
Packit |
549fdc |
if test -n "$am_sleep_pid"; then
|
|
Packit |
549fdc |
# Hide warnings about reused PIDs.
|
|
Packit |
549fdc |
wait $am_sleep_pid 2>/dev/null
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AC_MSG_RESULT([done])])
|
|
Packit |
549fdc |
rm -f conftest.file
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 2009-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_SILENT_RULES([DEFAULT])
|
|
Packit |
549fdc |
# --------------------------
|
|
Packit |
549fdc |
# Enable less verbose build rules; with the default set to DEFAULT
|
|
Packit |
549fdc |
# ("yes" being less verbose, "no" or empty being verbose).
|
|
Packit |
549fdc |
AC_DEFUN([AM_SILENT_RULES],
|
|
Packit |
549fdc |
[AC_ARG_ENABLE([silent-rules], [dnl
|
|
Packit |
549fdc |
AS_HELP_STRING(
|
|
Packit |
549fdc |
[--enable-silent-rules],
|
|
Packit |
549fdc |
[less verbose build output (undo: "make V=1")])
|
|
Packit |
549fdc |
AS_HELP_STRING(
|
|
Packit |
549fdc |
[--disable-silent-rules],
|
|
Packit |
549fdc |
[verbose build output (undo: "make V=0")])dnl
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
case $enable_silent_rules in @%:@ (((
|
|
Packit |
549fdc |
yes) AM_DEFAULT_VERBOSITY=0;;
|
|
Packit |
549fdc |
no) AM_DEFAULT_VERBOSITY=1;;
|
|
Packit |
549fdc |
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
dnl
|
|
Packit |
549fdc |
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
|
|
Packit |
549fdc |
dnl do not support nested variable expansions.
|
|
Packit |
549fdc |
dnl See automake bug#9928 and bug#10237.
|
|
Packit |
549fdc |
am_make=${MAKE-make}
|
|
Packit |
549fdc |
AC_CACHE_CHECK([whether $am_make supports nested variables],
|
|
Packit |
549fdc |
[am_cv_make_support_nested_variables],
|
|
Packit |
549fdc |
[if AS_ECHO([['TRUE=$(BAR$(V))
|
|
Packit |
549fdc |
BAR0=false
|
|
Packit |
549fdc |
BAR1=true
|
|
Packit |
549fdc |
V=1
|
|
Packit |
549fdc |
am__doit:
|
|
Packit |
549fdc |
@$(TRUE)
|
|
Packit |
549fdc |
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
|
|
Packit |
549fdc |
am_cv_make_support_nested_variables=yes
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
am_cv_make_support_nested_variables=no
|
|
Packit |
549fdc |
fi])
|
|
Packit |
549fdc |
if test $am_cv_make_support_nested_variables = yes; then
|
|
Packit |
549fdc |
dnl Using '$V' instead of '$(V)' breaks IRIX make.
|
|
Packit |
549fdc |
AM_V='$(V)'
|
|
Packit |
549fdc |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
AM_V=$AM_DEFAULT_VERBOSITY
|
|
Packit |
549fdc |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AC_SUBST([AM_V])dnl
|
|
Packit |
549fdc |
AM_SUBST_NOTMAKE([AM_V])dnl
|
|
Packit |
549fdc |
AC_SUBST([AM_DEFAULT_V])dnl
|
|
Packit |
549fdc |
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
|
|
Packit |
549fdc |
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
|
|
Packit |
549fdc |
AM_BACKSLASH='\'
|
|
Packit |
549fdc |
AC_SUBST([AM_BACKSLASH])dnl
|
|
Packit |
549fdc |
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_PROG_INSTALL_STRIP
|
|
Packit |
549fdc |
# ---------------------
|
|
Packit |
549fdc |
# One issue with vendor 'install' (even GNU) is that you can't
|
|
Packit |
549fdc |
# specify the program used to strip binaries. This is especially
|
|
Packit |
549fdc |
# annoying in cross-compiling environments, where the build's strip
|
|
Packit |
549fdc |
# is unlikely to handle the host's binaries.
|
|
Packit |
549fdc |
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
|
Packit |
549fdc |
# always use install-sh in "make install-strip", and initialize
|
|
Packit |
549fdc |
# STRIPPROG with the value of the STRIP variable (set by the user).
|
|
Packit |
549fdc |
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
|
Packit |
549fdc |
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
Packit |
549fdc |
# Installed binaries are usually stripped using 'strip' when the user
|
|
Packit |
549fdc |
# run "make install-strip". However 'strip' might not be the right
|
|
Packit |
549fdc |
# tool to use in cross-compilation environments, therefore Automake
|
|
Packit |
549fdc |
# will honor the 'STRIP' environment variable to overrule this program.
|
|
Packit |
549fdc |
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
|
|
Packit |
549fdc |
if test "$cross_compiling" != no; then
|
|
Packit |
549fdc |
AC_CHECK_TOOL([STRIP], [strip], :)
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
Packit |
549fdc |
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 2006-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# _AM_SUBST_NOTMAKE(VARIABLE)
|
|
Packit |
549fdc |
# ---------------------------
|
|
Packit |
549fdc |
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
|
Packit |
549fdc |
# This macro is traced by Automake.
|
|
Packit |
549fdc |
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# AM_SUBST_NOTMAKE(VARIABLE)
|
|
Packit |
549fdc |
# --------------------------
|
|
Packit |
549fdc |
# Public sister of _AM_SUBST_NOTMAKE.
|
|
Packit |
549fdc |
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Check how to create a tarball. -*- Autoconf -*-
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Copyright (C) 2004-2014 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is free software; the Free Software Foundation
|
|
Packit |
549fdc |
# gives unlimited permission to copy and/or distribute it,
|
|
Packit |
549fdc |
# with or without modifications, as long as this notice is preserved.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# _AM_PROG_TAR(FORMAT)
|
|
Packit |
549fdc |
# --------------------
|
|
Packit |
549fdc |
# Check how to create a tarball in format FORMAT.
|
|
Packit |
549fdc |
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# Substitute a variable $(am__tar) that is a command
|
|
Packit |
549fdc |
# writing to stdout a FORMAT-tarball containing the directory
|
|
Packit |
549fdc |
# $tardir.
|
|
Packit |
549fdc |
# tardir=directory && $(am__tar) > result.tar
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# Substitute a variable $(am__untar) that extract such
|
|
Packit |
549fdc |
# a tarball read from stdin.
|
|
Packit |
549fdc |
# $(am__untar) < result.tar
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
AC_DEFUN([_AM_PROG_TAR],
|
|
Packit |
549fdc |
[# Always define AMTAR for backward compatibility. Yes, it's still used
|
|
Packit |
549fdc |
# in the wild :-( We should find a proper way to deprecate it ...
|
|
Packit |
549fdc |
AC_SUBST([AMTAR], ['$${TAR-tar}'])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# We'll loop over all known methods to create a tar archive until one works.
|
|
Packit |
549fdc |
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
m4_if([$1], [v7],
|
|
Packit |
549fdc |
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
[m4_case([$1],
|
|
Packit |
549fdc |
[ustar],
|
|
Packit |
549fdc |
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
|
|
Packit |
549fdc |
# There is notably a 21 bits limit for the UID and the GID. In fact,
|
|
Packit |
549fdc |
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
|
|
Packit |
549fdc |
# and bug#13588).
|
|
Packit |
549fdc |
am_max_uid=2097151 # 2^21 - 1
|
|
Packit |
549fdc |
am_max_gid=$am_max_uid
|
|
Packit |
549fdc |
# The $UID and $GID variables are not portable, so we need to resort
|
|
Packit |
549fdc |
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
|
|
Packit |
549fdc |
# below are definitely unexpected, so allow the users to see them
|
|
Packit |
549fdc |
# (that is, avoid stderr redirection).
|
|
Packit |
549fdc |
am_uid=`id -u || echo unknown`
|
|
Packit |
549fdc |
am_gid=`id -g || echo unknown`
|
|
Packit |
549fdc |
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
|
|
Packit |
549fdc |
if test $am_uid -le $am_max_uid; then
|
|
Packit |
549fdc |
AC_MSG_RESULT([yes])
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
AC_MSG_RESULT([no])
|
|
Packit |
549fdc |
_am_tools=none
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
|
|
Packit |
549fdc |
if test $am_gid -le $am_max_gid; then
|
|
Packit |
549fdc |
AC_MSG_RESULT([yes])
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
AC_MSG_RESULT([no])
|
|
Packit |
549fdc |
_am_tools=none
|
|
Packit |
549fdc |
fi],
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
[pax],
|
|
Packit |
549fdc |
[],
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
[m4_fatal([Unknown tar format])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_MSG_CHECKING([how to create a $1 tar archive])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Go ahead even if we have the value already cached. We do so because we
|
|
Packit |
549fdc |
# need to set the values for the 'am__tar' and 'am__untar' variables.
|
|
Packit |
549fdc |
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
for _am_tool in $_am_tools; do
|
|
Packit |
549fdc |
case $_am_tool in
|
|
Packit |
549fdc |
gnutar)
|
|
Packit |
549fdc |
for _am_tar in tar gnutar gtar; do
|
|
Packit |
549fdc |
AM_RUN_LOG([$_am_tar --version]) && break
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
|
Packit |
549fdc |
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
|
Packit |
549fdc |
am__untar="$_am_tar -xf -"
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
plaintar)
|
|
Packit |
549fdc |
# Must skip GNU tar: if it does not support --format= it doesn't create
|
|
Packit |
549fdc |
# ustar tarball either.
|
|
Packit |
549fdc |
(tar --version) >/dev/null 2>&1 && continue
|
|
Packit |
549fdc |
am__tar='tar chf - "$$tardir"'
|
|
Packit |
549fdc |
am__tar_='tar chf - "$tardir"'
|
|
Packit |
549fdc |
am__untar='tar xf -'
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
pax)
|
|
Packit |
549fdc |
am__tar='pax -L -x $1 -w "$$tardir"'
|
|
Packit |
549fdc |
am__tar_='pax -L -x $1 -w "$tardir"'
|
|
Packit |
549fdc |
am__untar='pax -r'
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
cpio)
|
|
Packit |
549fdc |
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
|
Packit |
549fdc |
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
|
Packit |
549fdc |
am__untar='cpio -i -H $1 -d'
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
none)
|
|
Packit |
549fdc |
am__tar=false
|
|
Packit |
549fdc |
am__tar_=false
|
|
Packit |
549fdc |
am__untar=false
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# If the value was cached, stop now. We just wanted to have am__tar
|
|
Packit |
549fdc |
# and am__untar set.
|
|
Packit |
549fdc |
test -n "${am_cv_prog_tar_$1}" && break
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# tar/untar a dummy directory, and stop if the command works.
|
|
Packit |
549fdc |
rm -rf conftest.dir
|
|
Packit |
549fdc |
mkdir conftest.dir
|
|
Packit |
549fdc |
echo GrepMe > conftest.dir/file
|
|
Packit |
549fdc |
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
|
Packit |
549fdc |
rm -rf conftest.dir
|
|
Packit |
549fdc |
if test -s conftest.tar; then
|
|
Packit |
549fdc |
AM_RUN_LOG([$am__untar
|
|
Packit |
549fdc |
AM_RUN_LOG([cat conftest.dir/file])
|
|
Packit |
549fdc |
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
rm -rf conftest.dir
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
|
Packit |
549fdc |
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_SUBST([am__tar])
|
|
Packit |
549fdc |
AC_SUBST([am__untar])
|
|
Packit |
549fdc |
]) # _AM_PROG_TAR
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
m4_include([lib/unistring/m4/gnulib-comp.m4])
|
|
Packit |
549fdc |
m4_include([lib/unistring/m4/inline.m4])
|
|
Packit |
549fdc |
m4_include([lib/unistring/m4/libunistring-base.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/arpa_inet_h.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/bison.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/clock_time.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/close.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/dirname.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/double-slash-root.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/dup2.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/eealloc.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/environ.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/error.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/flexmember.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/fseek.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/getaddrinfo.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/getpass.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/getprogname.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/gettime.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/gnulib-comp.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/hostent.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/inet_ntop.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/inet_pton.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/malloca.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/mktime.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/parse-datetime.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/select.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/servent.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/setenv.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/signal_h.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/socketlib.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/sockets.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/strdup.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/strerror.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/strftime.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/sys_select_h.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/time_rz.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/timegm.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/timespec.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/tm_gmtoff.m4])
|
|
Packit |
549fdc |
m4_include([src/gl/m4/xalloc.m4])
|
|
Packit |
549fdc |
m4_include([src/libopts/m4/libopts.m4])
|
|
Packit |
549fdc |
m4_include([src/libopts/m4/stdnoreturn.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/00gnulib.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/absolute-header.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/alloca.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/byteswap.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/ctype.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/errno_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/exponentd.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/extensions.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/fcntl_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/fdopen.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/float_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/fpieee.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/fseeko.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/fstat.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/ftell.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/ftello.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/func.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/getdelim.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/getline.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/getpagesize.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/gettimeofday.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/gnulib-common.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/gnulib-comp.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/include_next.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/intmax_t.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/inttypes.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/largefile.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/ld-output-def.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/ld-version-script.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/limits-h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/lseek.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/malloc.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/manywarnings.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/memchr.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/memmem.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/minmax.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/mmap-anon.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/msvc-inval.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/msvc-nothrow.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/multiarch.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/netdb_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/netinet_in_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/off_t.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/onceonly_2_57.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/printf.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/read-file.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/realloc.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/secure_getenv.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/snprintf.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/socklen.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/sockpfaf.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/ssize_t.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/stdalign.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/stdbool.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/stddef_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/stdint.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/stdio_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/stdlib_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/strcase.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/string_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/strings_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/strndup.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/strnlen.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/strtok_r.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/strverscmp.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/sys_socket_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/sys_stat_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/sys_time_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/sys_types_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/sys_uio_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/time_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/time_r.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/ungetc.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/unistd_h.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/valgrind-tests.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/vasnprintf.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/vasprintf.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/vsnprintf.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/warn-on-use.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/warnings.m4])
|
|
Packit |
549fdc |
m4_include([gl/m4/wchar_h.m4])
|
|
Packit |
549fdc |
m4_include([m4/ax_code_coverage.m4])
|
|
Packit |
549fdc |
m4_include([m4/extern-inline.m4])
|
|
Packit |
549fdc |
m4_include([m4/fcntl-o.m4])
|
|
Packit |
549fdc |
m4_include([m4/gtk-doc.m4])
|
|
Packit |
549fdc |
m4_include([m4/guile.m4])
|
|
Packit |
549fdc |
m4_include([m4/hooks.m4])
|
|
Packit |
549fdc |
m4_include([m4/iconv.m4])
|
|
Packit |
549fdc |
m4_include([m4/intlmacosx.m4])
|
|
Packit |
549fdc |
m4_include([m4/inttypes-pri.m4])
|
|
Packit |
549fdc |
m4_include([m4/inttypes_h.m4])
|
|
Packit |
549fdc |
m4_include([m4/lib-ld.m4])
|
|
Packit |
549fdc |
m4_include([m4/lib-link.m4])
|
|
Packit |
549fdc |
m4_include([m4/lib-prefix.m4])
|
|
Packit |
549fdc |
m4_include([m4/libtool.m4])
|
|
Packit |
549fdc |
m4_include([m4/longlong.m4])
|
|
Packit |
549fdc |
m4_include([m4/ltoptions.m4])
|
|
Packit |
549fdc |
m4_include([m4/ltsugar.m4])
|
|
Packit |
549fdc |
m4_include([m4/ltversion.m4])
|
|
Packit |
549fdc |
m4_include([m4/lt~obsolete.m4])
|
|
Packit |
549fdc |
m4_include([m4/pkg.m4])
|
|
Packit |
549fdc |
m4_include([m4/progtest.m4])
|
|
Packit |
549fdc |
m4_include([m4/size_max.m4])
|
|
Packit |
549fdc |
m4_include([m4/stdint_h.m4])
|
|
Packit |
549fdc |
m4_include([m4/wchar_t.m4])
|
|
Packit |
549fdc |
m4_include([m4/wint_t.m4])
|
|
Packit |
549fdc |
m4_include([m4/xsize.m4])
|