diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-01-09 14:24:12 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-01-09 14:24:12 +0000 |
commit | 320a47f4ece8481034a167890913c0e9d044244d (patch) | |
tree | e0e92e962f296a8005b023fe3d6aeb4838df7621 /m4 | |
parent | bda92ad9f72eb7891edb92ef7da66748df00e445 (diff) | |
download | diffutils-320a47f4ece8481034a167890913c0e9d044244d.tar.gz |
bootstrapped repository
Diffstat (limited to 'm4')
165 files changed, 3571 insertions, 0 deletions
diff --git a/m4/00gnulib.m4 b/m4/00gnulib.m4 new file mode 120000 index 0000000..d4fb490 --- /dev/null +++ b/m4/00gnulib.m4 @@ -0,0 +1 @@ +../gnulib/m4/00gnulib.m4
\ No newline at end of file diff --git a/m4/alloca.m4 b/m4/alloca.m4 new file mode 120000 index 0000000..79382cd --- /dev/null +++ b/m4/alloca.m4 @@ -0,0 +1 @@ +../gnulib/m4/alloca.m4
\ No newline at end of file diff --git a/m4/btowc.m4 b/m4/btowc.m4 new file mode 120000 index 0000000..eb88da4 --- /dev/null +++ b/m4/btowc.m4 @@ -0,0 +1 @@ +../gnulib/m4/btowc.m4
\ No newline at end of file diff --git a/m4/c-stack.m4 b/m4/c-stack.m4 new file mode 120000 index 0000000..5cee11c --- /dev/null +++ b/m4/c-stack.m4 @@ -0,0 +1 @@ +../gnulib/m4/c-stack.m4
\ No newline at end of file diff --git a/m4/clock_time.m4 b/m4/clock_time.m4 new file mode 120000 index 0000000..e7bdf22 --- /dev/null +++ b/m4/clock_time.m4 @@ -0,0 +1 @@ +../gnulib/m4/clock_time.m4
\ No newline at end of file diff --git a/m4/close.m4 b/m4/close.m4 new file mode 120000 index 0000000..e024823 --- /dev/null +++ b/m4/close.m4 @@ -0,0 +1 @@ +../gnulib/m4/close.m4
\ No newline at end of file diff --git a/m4/codeset.m4 b/m4/codeset.m4 new file mode 120000 index 0000000..46da987 --- /dev/null +++ b/m4/codeset.m4 @@ -0,0 +1 @@ +../gnulib/m4/codeset.m4
\ No newline at end of file diff --git a/m4/config-h.m4 b/m4/config-h.m4 new file mode 120000 index 0000000..07c0828 --- /dev/null +++ b/m4/config-h.m4 @@ -0,0 +1 @@ +../gnulib/m4/config-h.m4
\ No newline at end of file diff --git a/m4/configmake.m4 b/m4/configmake.m4 new file mode 120000 index 0000000..9899c14 --- /dev/null +++ b/m4/configmake.m4 @@ -0,0 +1 @@ +../gnulib/m4/configmake.m4
\ No newline at end of file diff --git a/m4/dirname.m4 b/m4/dirname.m4 new file mode 120000 index 0000000..f7acf4a --- /dev/null +++ b/m4/dirname.m4 @@ -0,0 +1 @@ +../gnulib/m4/dirname.m4
\ No newline at end of file diff --git a/m4/double-slash-root.m4 b/m4/double-slash-root.m4 new file mode 120000 index 0000000..d1cd930 --- /dev/null +++ b/m4/double-slash-root.m4 @@ -0,0 +1 @@ +../gnulib/m4/double-slash-root.m4
\ No newline at end of file diff --git a/m4/dup2.m4 b/m4/dup2.m4 new file mode 120000 index 0000000..ad43196 --- /dev/null +++ b/m4/dup2.m4 @@ -0,0 +1 @@ +../gnulib/m4/dup2.m4
\ No newline at end of file diff --git a/m4/eealloc.m4 b/m4/eealloc.m4 new file mode 120000 index 0000000..f0764c7 --- /dev/null +++ b/m4/eealloc.m4 @@ -0,0 +1 @@ +../gnulib/m4/eealloc.m4
\ No newline at end of file diff --git a/m4/environ.m4 b/m4/environ.m4 new file mode 120000 index 0000000..ed79f1a --- /dev/null +++ b/m4/environ.m4 @@ -0,0 +1 @@ +../gnulib/m4/environ.m4
\ No newline at end of file diff --git a/m4/errno_h.m4 b/m4/errno_h.m4 new file mode 120000 index 0000000..f58536a --- /dev/null +++ b/m4/errno_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/errno_h.m4
\ No newline at end of file diff --git a/m4/error.m4 b/m4/error.m4 new file mode 120000 index 0000000..2295827 --- /dev/null +++ b/m4/error.m4 @@ -0,0 +1 @@ +../gnulib/m4/error.m4
\ No newline at end of file diff --git a/m4/exponentd.m4 b/m4/exponentd.m4 new file mode 120000 index 0000000..6cfaefa --- /dev/null +++ b/m4/exponentd.m4 @@ -0,0 +1 @@ +../gnulib/m4/exponentd.m4
\ No newline at end of file diff --git a/m4/extensions.m4 b/m4/extensions.m4 new file mode 120000 index 0000000..5370105 --- /dev/null +++ b/m4/extensions.m4 @@ -0,0 +1 @@ +../gnulib/m4/extensions.m4
\ No newline at end of file diff --git a/m4/fcntl-o.m4 b/m4/fcntl-o.m4 new file mode 120000 index 0000000..8c877b4 --- /dev/null +++ b/m4/fcntl-o.m4 @@ -0,0 +1 @@ +../gnulib/m4/fcntl-o.m4
\ No newline at end of file diff --git a/m4/fcntl.m4 b/m4/fcntl.m4 new file mode 120000 index 0000000..ca7c2d3 --- /dev/null +++ b/m4/fcntl.m4 @@ -0,0 +1 @@ +../gnulib/m4/fcntl.m4
\ No newline at end of file diff --git a/m4/fcntl_h.m4 b/m4/fcntl_h.m4 new file mode 120000 index 0000000..bae3aeb --- /dev/null +++ b/m4/fcntl_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/fcntl_h.m4
\ No newline at end of file diff --git a/m4/fdopen.m4 b/m4/fdopen.m4 new file mode 120000 index 0000000..aa1c3a5 --- /dev/null +++ b/m4/fdopen.m4 @@ -0,0 +1 @@ +../gnulib/m4/fdopen.m4
\ No newline at end of file diff --git a/m4/filenamecat.m4 b/m4/filenamecat.m4 new file mode 120000 index 0000000..48412c5 --- /dev/null +++ b/m4/filenamecat.m4 @@ -0,0 +1 @@ +../gnulib/m4/filenamecat.m4
\ No newline at end of file diff --git a/m4/float_h.m4 b/m4/float_h.m4 new file mode 120000 index 0000000..4a948ae --- /dev/null +++ b/m4/float_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/float_h.m4
\ No newline at end of file diff --git a/m4/fnmatch.m4 b/m4/fnmatch.m4 new file mode 120000 index 0000000..25332b5 --- /dev/null +++ b/m4/fnmatch.m4 @@ -0,0 +1 @@ +../gnulib/m4/fnmatch.m4
\ No newline at end of file diff --git a/m4/fpieee.m4 b/m4/fpieee.m4 new file mode 120000 index 0000000..b20487b --- /dev/null +++ b/m4/fpieee.m4 @@ -0,0 +1 @@ +../gnulib/m4/fpieee.m4
\ No newline at end of file diff --git a/m4/freopen.m4 b/m4/freopen.m4 new file mode 120000 index 0000000..34cd4c3 --- /dev/null +++ b/m4/freopen.m4 @@ -0,0 +1 @@ +../gnulib/m4/freopen.m4
\ No newline at end of file diff --git a/m4/fstat.m4 b/m4/fstat.m4 new file mode 120000 index 0000000..f57f713 --- /dev/null +++ b/m4/fstat.m4 @@ -0,0 +1 @@ +../gnulib/m4/fstat.m4
\ No newline at end of file diff --git a/m4/getcwd.m4 b/m4/getcwd.m4 new file mode 120000 index 0000000..05afa91 --- /dev/null +++ b/m4/getcwd.m4 @@ -0,0 +1 @@ +../gnulib/m4/getcwd.m4
\ No newline at end of file diff --git a/m4/getdtablesize.m4 b/m4/getdtablesize.m4 new file mode 120000 index 0000000..2651e9c --- /dev/null +++ b/m4/getdtablesize.m4 @@ -0,0 +1 @@ +../gnulib/m4/getdtablesize.m4
\ No newline at end of file diff --git a/m4/getopt.m4 b/m4/getopt.m4 new file mode 120000 index 0000000..d2d8988 --- /dev/null +++ b/m4/getopt.m4 @@ -0,0 +1 @@ +../gnulib/m4/getopt.m4
\ No newline at end of file diff --git a/m4/getpagesize.m4 b/m4/getpagesize.m4 new file mode 120000 index 0000000..df35147 --- /dev/null +++ b/m4/getpagesize.m4 @@ -0,0 +1 @@ +../gnulib/m4/getpagesize.m4
\ No newline at end of file diff --git a/m4/gettext.m4 b/m4/gettext.m4 new file mode 100644 index 0000000..8f7c5d9 --- /dev/null +++ b/m4/gettext.m4 @@ -0,0 +1,383 @@ +# -*- buffer-read-only: t -*- vi: set ro: +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# gettext.m4 serial 60 (gettext-0.17) +dnl Copyright (C) 1995-2007 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006. + +dnl Macro to add for using GNU gettext. + +dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). +dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The +dnl default (if it is not specified or empty) is 'no-libtool'. +dnl INTLSYMBOL should be 'external' for packages with no intl directory, +dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. +dnl If INTLSYMBOL is 'use-libtool', then a libtool library +dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, +dnl depending on --{enable,disable}-{shared,static} and on the presence of +dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library +dnl $(top_builddir)/intl/libintl.a will be created. +dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext +dnl implementations (in libc or libintl) without the ngettext() function +dnl will be ignored. If NEEDSYMBOL is specified and is +dnl 'need-formatstring-macros', then GNU gettext implementations that don't +dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored. +dnl INTLDIR is used to find the intl libraries. If empty, +dnl the value `$(top_builddir)/intl/' is used. +dnl +dnl The result of the configuration is one of three cases: +dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled +dnl and used. +dnl Catalog format: GNU --> install in $(datadir) +dnl Catalog extension: .mo after installation, .gmo in source tree +dnl 2) GNU gettext has been found in the system's C library. +dnl Catalog format: GNU --> install in $(datadir) +dnl Catalog extension: .mo after installation, .gmo in source tree +dnl 3) No internationalization, always use English msgid. +dnl Catalog format: none +dnl Catalog extension: none +dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. +dnl The use of .gmo is historical (it was needed to avoid overwriting the +dnl GNU format catalogs when building on a platform with an X/Open gettext), +dnl but we keep it in order not to force irrelevant filename changes on the +dnl maintainers. +dnl +AC_DEFUN([AM_GNU_GETTEXT], +[ + dnl Argument checking. + ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , + [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT +])])])])]) + ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , + [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT +])])])]) + define([gt_included_intl], + ifelse([$1], [external], + ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), + [yes])) + define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) + gt_NEEDS_INIT + AM_GNU_GETTEXT_NEED([$2]) + + AC_REQUIRE([AM_PO_SUBDIRS])dnl + ifelse(gt_included_intl, yes, [ + AC_REQUIRE([AM_INTL_SUBDIR])dnl + ]) + + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + + dnl Sometimes libintl requires libiconv, so first search for libiconv. + dnl Ideally we would do this search only after the + dnl if test "$USE_NLS" = "yes"; then + dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then + dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT + dnl the configure script would need to contain the same shell code + dnl again, outside any 'if'. There are two solutions: + dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. + dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. + dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not + dnl documented, we avoid it. + ifelse(gt_included_intl, yes, , [ + AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) + ]) + + dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. + gt_INTL_MACOSX + + dnl Set USE_NLS. + AC_REQUIRE([AM_NLS]) + + ifelse(gt_included_intl, yes, [ + BUILD_INCLUDED_LIBINTL=no + USE_INCLUDED_LIBINTL=no + ]) + LIBINTL= + LTLIBINTL= + POSUB= + + dnl Add a version number to the cache macros. + case " $gt_needs " in + *" need-formatstring-macros "*) gt_api_version=3 ;; + *" need-ngettext "*) gt_api_version=2 ;; + *) gt_api_version=1 ;; + esac + gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" + gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" + + dnl If we use NLS figure out what method + if test "$USE_NLS" = "yes"; then + gt_use_preinstalled_gnugettext=no + ifelse(gt_included_intl, yes, [ + AC_MSG_CHECKING([whether included gettext is requested]) + AC_ARG_WITH(included-gettext, + [ --with-included-gettext use the GNU gettext library included here], + nls_cv_force_use_gnu_gettext=$withval, + nls_cv_force_use_gnu_gettext=no) + AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) + + nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" + if test "$nls_cv_force_use_gnu_gettext" != "yes"; then + ]) + dnl User does not insist on using GNU NLS library. Figure out what + dnl to use. If GNU gettext is available we use this. Else we have + dnl to fall back to GNU NLS library. + + if test $gt_api_version -ge 3; then + gt_revision_test_code=' +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) +#endif +changequote(,)dnl +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; +changequote([,])dnl +' + else + gt_revision_test_code= + fi + if test $gt_api_version -ge 2; then + gt_expression_test_code=' + * ngettext ("", "", 0)' + else + gt_expression_test_code= + fi + + AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], + [AC_TRY_LINK([#include <libintl.h> +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern int *_nl_domain_bindings;], + [bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], + [eval "$gt_func_gnugettext_libc=yes"], + [eval "$gt_func_gnugettext_libc=no"])]) + + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then + dnl Sometimes libintl requires libiconv, so first search for libiconv. + ifelse(gt_included_intl, yes, , [ + AM_ICONV_LINK + ]) + dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL + dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) + dnl because that would add "-liconv" to LIBINTL and LTLIBINTL + dnl even if libiconv doesn't exist. + AC_LIB_LINKFLAGS_BODY([intl]) + AC_CACHE_CHECK([for GNU gettext in libintl], + [$gt_func_gnugettext_libintl], + [gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCINTL" + gt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBINTL" + dnl Now see whether libintl exists and does not depend on libiconv. + AC_TRY_LINK([#include <libintl.h> +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *);], + [bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], + [eval "$gt_func_gnugettext_libintl=yes"], + [eval "$gt_func_gnugettext_libintl=no"]) + dnl Now see whether libintl exists and depends on libiconv. + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then + LIBS="$LIBS $LIBICONV" + AC_TRY_LINK([#include <libintl.h> +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *);], + [bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], + [LIBINTL="$LIBINTL $LIBICONV" + LTLIBINTL="$LTLIBINTL $LTLIBICONV" + eval "$gt_func_gnugettext_libintl=yes" + ]) + fi + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS"]) + fi + + dnl If an already present or preinstalled GNU gettext() is found, + dnl use it. But if this macro is used in GNU gettext, and GNU + dnl gettext is already preinstalled in libintl, we update this + dnl libintl. (Cf. the install rule in intl/Makefile.in.) + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ + || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ + && test "$PACKAGE" != gettext-runtime \ + && test "$PACKAGE" != gettext-tools; }; then + gt_use_preinstalled_gnugettext=yes + else + dnl Reset the values set by searching for libintl. + LIBINTL= + LTLIBINTL= + INCINTL= + fi + + ifelse(gt_included_intl, yes, [ + if test "$gt_use_preinstalled_gnugettext" != "yes"; then + dnl GNU gettext is not found in the C library. + dnl Fall back on included GNU gettext library. + nls_cv_use_gnu_gettext=yes + fi + fi + + if test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Mark actions used to generate GNU NLS library. + BUILD_INCLUDED_LIBINTL=yes + USE_INCLUDED_LIBINTL=yes + LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" + LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" + LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` + fi + + CATOBJEXT= + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Mark actions to use GNU gettext tools. + CATOBJEXT=.gmo + fi + ]) + + if test -n "$INTL_MACOSX_LIBS"; then + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Some extra flags are needed during linking. + LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" + LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" + fi + fi + + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + AC_DEFINE(ENABLE_NLS, 1, + [Define to 1 if translation of program messages to the user's native language + is requested.]) + else + USE_NLS=no + fi + fi + + AC_MSG_CHECKING([whether to use NLS]) + AC_MSG_RESULT([$USE_NLS]) + if test "$USE_NLS" = "yes"; then + AC_MSG_CHECKING([where the gettext function comes from]) + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then + gt_source="external libintl" + else + gt_source="libc" + fi + else + gt_source="included intl directory" + fi + AC_MSG_RESULT([$gt_source]) + fi + + if test "$USE_NLS" = "yes"; then + + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then + AC_MSG_CHECKING([how to link with libintl]) + AC_MSG_RESULT([$LIBINTL]) + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) + fi + + dnl For backward compatibility. Some packages may be using this. + AC_DEFINE(HAVE_GETTEXT, 1, + [Define if the GNU gettext() function is already present or preinstalled.]) + AC_DEFINE(HAVE_DCGETTEXT, 1, + [Define if the GNU dcgettext() function is already present or preinstalled.]) + fi + + dnl We need to process the po/ directory. + POSUB=po + fi + + ifelse(gt_included_intl, yes, [ + dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL + dnl to 'yes' because some of the testsuite requires it. + if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then + BUILD_INCLUDED_LIBINTL=yes + fi + + dnl Make all variables we use known to autoconf. + AC_SUBST(BUILD_INCLUDED_LIBINTL) + AC_SUBST(USE_INCLUDED_LIBINTL) + AC_SUBST(CATOBJEXT) + + dnl For backward compatibility. Some configure.ins may be using this. + nls_cv_header_intl= + nls_cv_header_libgt= + + dnl For backward compatibility. Some Makefiles may be using this. + DATADIRNAME=share + AC_SUBST(DATADIRNAME) + + dnl For backward compatibility. Some Makefiles may be using this. + INSTOBJEXT=.mo + AC_SUBST(INSTOBJEXT) + + dnl For backward compatibility. Some Makefiles may be using this. + GENCAT=gencat + AC_SUBST(GENCAT) + + dnl For backward compatibility. Some Makefiles may be using this. + INTLOBJS= + if test "$USE_INCLUDED_LIBINTL" = yes; then + INTLOBJS="\$(GETTOBJS)" + fi + AC_SUBST(INTLOBJS) + + dnl Enable libtool support if the surrounding package wishes it. + INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix + AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) + ]) + + dnl For backward compatibility. Some Makefiles may be using this. + INTLLIBS="$LIBINTL" + AC_SUBST(INTLLIBS) + + dnl Make all documented variables known to autoconf. + AC_SUBST(LIBINTL) + AC_SUBST(LTLIBINTL) + AC_SUBST(POSUB) +]) + + +dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. +m4_define([gt_NEEDS_INIT], +[ + m4_divert_text([DEFAULTS], [gt_needs=]) + m4_define([gt_NEEDS_INIT], []) +]) + + +dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) +AC_DEFUN([AM_GNU_GETTEXT_NEED], +[ + m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) +]) + + +dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) +AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) diff --git a/m4/gettime.m4 b/m4/gettime.m4 new file mode 120000 index 0000000..6ad6e9d --- /dev/null +++ b/m4/gettime.m4 @@ -0,0 +1 @@ +../gnulib/m4/gettime.m4
\ No newline at end of file diff --git a/m4/gettimeofday.m4 b/m4/gettimeofday.m4 new file mode 120000 index 0000000..3367182 --- /dev/null +++ b/m4/gettimeofday.m4 @@ -0,0 +1 @@ +../gnulib/m4/gettimeofday.m4
\ No newline at end of file diff --git a/m4/glibc21.m4 b/m4/glibc21.m4 new file mode 120000 index 0000000..e8da4f9 --- /dev/null +++ b/m4/glibc21.m4 @@ -0,0 +1 @@ +../gnulib/m4/glibc21.m4
\ No newline at end of file diff --git a/m4/gnu-make.m4 b/m4/gnu-make.m4 new file mode 120000 index 0000000..0a7fc11 --- /dev/null +++ b/m4/gnu-make.m4 @@ -0,0 +1 @@ +../gnulib/m4/gnu-make.m4
\ No newline at end of file diff --git a/m4/gnulib-cache.m4 b/m4/gnulib-cache.m4 new file mode 100644 index 0000000..a5ff4f4 --- /dev/null +++ b/m4/gnulib-cache.m4 @@ -0,0 +1,112 @@ +# -*- buffer-read-only: t -*- vi: set ro: +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# Copyright (C) 2002-2011 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see <http://www.gnu.org/licenses/>. +# +# As a special exception to the GNU General Public License, +# this file may be distributed as part of a program that +# contains a configuration script generated by Autoconf, under +# the same distribution terms as the rest of that program. +# +# Generated by gnulib-tool. +# +# This file represents the specification of how gnulib-tool is used. +# It acts as a cache: It is written and read by gnulib-tool. +# In projects that use version control, this file is meant to be put under +# version control, like the configure.ac and various Makefile.am files. + + +# Specification in the form of a command-line invocation: +# gnulib-tool --import --dir=. --local-dir=gl --lib=libdiffutils --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=gnulib-tests --aux-dir=build-aux --with-tests --avoid=localename --avoid=lock --no-conditional-dependencies --no-libtool --macro-prefix=gl announce-gen binary-io c-stack config-h diffseq dirname do-release-commit-and-tag dup2 error exclude exitfail extensions fcntl fdl file-type filenamecat fnmatch-gnu getopt gettext-h gettime git-version-gen gitlog-to-changelog gnu-make gnu-web-doc-update gnumakefile gnupload hard-locale inttostr inttypes largefile lstat maintainer-makefile manywarnings mbrtowc mkstemp mktime progname propername readme-release regex sh-quote signal sigprocmask stat stat-macros stat-time stdint strcase strftime strptime strtoumax sys_wait unistd unlocked-io update-copyright verify version-etc version-etc-fsf wcwidth xalloc xfreopen xreadlink xstrtoumax + +# Specification in the form of a few gnulib-tool.m4 macro invocations: +gl_LOCAL_DIR([gl]) +gl_MODULES([ + announce-gen + binary-io + c-stack + config-h + diffseq + dirname + do-release-commit-and-tag + dup2 + error + exclude + exitfail + extensions + fcntl + fdl + file-type + filenamecat + fnmatch-gnu + getopt + gettext-h + gettime + git-version-gen + gitlog-to-changelog + gnu-make + gnu-web-doc-update + gnumakefile + gnupload + hard-locale + inttostr + inttypes + largefile + lstat + maintainer-makefile + manywarnings + mbrtowc + mkstemp + mktime + progname + propername + readme-release + regex + sh-quote + signal + sigprocmask + stat + stat-macros + stat-time + stdint + strcase + strftime + strptime + strtoumax + sys_wait + unistd + unlocked-io + update-copyright + verify + version-etc + version-etc-fsf + wcwidth + xalloc + xfreopen + xreadlink + xstrtoumax +]) +gl_AVOID([ localename lock]) +gl_SOURCE_BASE([lib]) +gl_M4_BASE([m4]) +gl_PO_BASE([]) +gl_DOC_BASE([doc]) +gl_TESTS_BASE([gnulib-tests]) +gl_WITH_TESTS +gl_LIB([libdiffutils]) +gl_MAKEFILE_NAME([]) +gl_MACRO_PREFIX([gl]) +gl_PO_DOMAIN([]) +gl_WITNESS_C_DOMAIN([]) diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 new file mode 120000 index 0000000..88ea586 --- /dev/null +++ b/m4/gnulib-common.m4 @@ -0,0 +1 @@ +../gnulib/m4/gnulib-common.m4
\ No newline at end of file diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 new file mode 100644 index 0000000..5299d2a --- /dev/null +++ b/m4/gnulib-comp.m4 @@ -0,0 +1,1630 @@ +# -*- buffer-read-only: t -*- vi: set ro: +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# Copyright (C) 2002-2011 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see <http://www.gnu.org/licenses/>. +# +# As a special exception to the GNU General Public License, +# this file may be distributed as part of a program that +# contains a configuration script generated by Autoconf, under +# the same distribution terms as the rest of that program. +# +# Generated by gnulib-tool. +# +# This file represents the compiled summary of the specification in +# gnulib-cache.m4. It lists the computed macro invocations that need +# to be invoked from configure.ac. +# In projects that use version control, this file can be treated like +# other built files. + + +# This macro should be invoked from ./configure.ac, in the section +# "Checks for programs", right after AC_PROG_CC, and certainly before +# any checks for libraries, header files, types and library functions. +AC_DEFUN([gl_EARLY], +[ + m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace + m4_pattern_allow([^gl_ES$])dnl a valid locale name + m4_pattern_allow([^gl_LIBOBJS$])dnl a variable + m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable + AC_REQUIRE([gl_PROG_AR_RANLIB]) + AC_REQUIRE([AM_PROG_CC_C_O]) + # Code from module alloca: + # Code from module alloca-opt: + # Code from module alloca-opt-tests: + # Code from module allocator: + # Code from module announce-gen: + # Code from module areadlink: + # Code from module areadlink-tests: + # Code from module argmatch: + # Code from module argmatch-tests: + # Code from module binary-io: + # Code from module binary-io-tests: + # Code from module bitrotate: + # Code from module bitrotate-tests: + # Code from module btowc: + # Code from module btowc-tests: + # Code from module c-ctype: + # Code from module c-ctype-tests: + # Code from module c-stack: + # Code from module c-stack-tests: + # Code from module c-strcase: + # Code from module c-strcase-tests: + # Code from module careadlinkat: + # Code from module clock-time: + # Code from module close: + # Code from module close-tests: + # Code from module config-h: + # Code from module configmake: + # Code from module diffseq: + # Code from module dirname: + # Code from module dirname-lgpl: + # Code from module dirname-tests: + # Code from module do-release-commit-and-tag: + # Code from module dosname: + # Code from module double-slash-root: + # Code from module dup2: + # Code from module dup2-tests: + # Code from module environ: + # Code from module environ-tests: + # Code from module errno: + # Code from module errno-tests: + # Code from module error: + # Code from module exclude: + # Code from module exclude-tests: + # Code from module exitfail: + # Code from module extensions: + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + # Code from module fcntl: + # Code from module fcntl-h: + # Code from module fcntl-h-tests: + # Code from module fcntl-tests: + # Code from module fd-hook: + # Code from module fdl: + # Code from module fdopen: + # Code from module fdopen-tests: + # Code from module fgetc-tests: + # Code from module file-type: + # Code from module filenamecat: + # Code from module filenamecat-lgpl: + # Code from module filenamecat-tests: + # Code from module float: + # Code from module float-tests: + # Code from module fnmatch: + # Code from module fnmatch-gnu: + # Code from module fnmatch-tests: + # Code from module fpieee: + AC_REQUIRE([gl_FP_IEEE]) + # Code from module fpucw: + # Code from module fputc-tests: + # Code from module fread-tests: + # Code from module freopen: + # Code from module freopen-safer: + # Code from module freopen-safer-tests: + # Code from module freopen-tests: + # Code from module fstat: + # Code from module fstat-tests: + # Code from module fwrite-tests: + # Code from module gendocs: + # Code from module getcwd-lgpl: + # Code from module getcwd-lgpl-tests: + # Code from module getdtablesize: + # Code from module getdtablesize-tests: + # Code from module getopt: + # Code from module getopt-gnu: + # Code from module getopt-posix: + # Code from module getopt-posix-tests: + # Code from module getpagesize: + # Code from module gettext-h: + # Code from module gettime: + # Code from module gettimeofday: + # Code from module gettimeofday-tests: + # Code from module git-version-gen: + # Code from module gitlog-to-changelog: + # Code from module gnu-make: + # Code from module gnu-web-doc-update: + # Code from module gnumakefile: + # Code from module gnupload: + # Code from module gperf: + # Code from module hard-locale: + # Code from module hash: + # Code from module hash-pjw: + # Code from module hash-tests: + # Code from module havelib: + # Code from module iconv: + # Code from module iconv-h: + # Code from module iconv-h-tests: + # Code from module iconv-tests: + # Code from module iconv_open: + # Code from module ignore-value: + # Code from module ignore-value-tests: + # Code from module include_next: + # Code from module inline: + # Code from module intprops: + # Code from module intprops-tests: + # Code from module inttostr: + # Code from module inttostr-tests: + # Code from module inttypes: + # Code from module inttypes-incomplete: + # Code from module inttypes-tests: + # Code from module iswblank: + # Code from module iswblank-tests: + # Code from module langinfo: + # Code from module langinfo-tests: + # Code from module largefile: + AC_REQUIRE([AC_SYS_LARGEFILE]) + # Code from module libsigsegv: + # Code from module localcharset: + # Code from module locale: + # Code from module locale-tests: + # Code from module lstat: + # Code from module lstat-tests: + # Code from module maintainer-makefile: + # Code from module malloc-gnu: + # Code from module malloc-gnu-tests: + # Code from module malloc-posix: + # Code from module malloca: + # Code from module malloca-tests: + # Code from module manywarnings: + # Code from module mbchar: + # Code from module mbiter: + # Code from module mbrtowc: + # Code from module mbrtowc-tests: + # Code from module mbscasecmp: + # Code from module mbscasecmp-tests: + # Code from module mbsinit: + # Code from module mbsinit-tests: + # Code from module mbslen: + # Code from module mbsrtowcs: + # Code from module mbsrtowcs-tests: + # Code from module mbsstr: + # Code from module mbsstr-tests: + # Code from module mbtowc: + # Code from module mbuiter: + # Code from module memchr: + # Code from module memchr-tests: + # Code from module mkstemp: + # Code from module mktime: + # Code from module msvc-inval: + # Code from module msvc-nothrow: + # Code from module multiarch: + # Code from module nl_langinfo: + # Code from module nl_langinfo-tests: + # Code from module nocrash: + # Code from module open: + # Code from module open-tests: + # Code from module pathmax: + # Code from module pathmax-tests: + # Code from module progname: + # Code from module propername: + # Code from module putenv: + # Code from module quote: + # Code from module quotearg: + # Code from module quotearg-simple: + # Code from module quotearg-simple-tests: + # Code from module raise: + # Code from module raise-tests: + # Code from module readlink: + # Code from module readlink-tests: + # Code from module readme-release: + # Code from module regex: + # Code from module same-inode: + # Code from module setenv: + # Code from module setenv-tests: + # Code from module setlocale: + # Code from module setlocale-tests: + # Code from module sh-quote: + # Code from module sigaction: + # Code from module sigaction-tests: + # Code from module signal: + # Code from module signal-h: + # Code from module signal-h-tests: + # Code from module sigprocmask: + # Code from module sigprocmask-tests: + # Code from module size_max: + # Code from module sleep: + # Code from module sleep-tests: + # Code from module snippet/_Noreturn: + # Code from module snippet/arg-nonnull: + # Code from module snippet/c++defs: + # Code from module snippet/unused-parameter: + # Code from module snippet/warn-on-use: + # Code from module snprintf: + # Code from module snprintf-tests: + # Code from module ssize_t: + # Code from module stat: + # Code from module stat-macros: + # Code from module stat-tests: + # Code from module stat-time: + # Code from module stat-time-tests: + # Code from module stdarg: + dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode + dnl for the builtin va_copy to work. With Autoconf 2.60 or later, + dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99 + dnl shouldn't hurt, though installers are on their own to set c99 mode. + gl_PROG_CC_C99 + # Code from module stdbool: + # Code from module stdbool-tests: + # Code from module stddef: + # Code from module stddef-tests: + # Code from module stdint: + # Code from module stdint-tests: + # Code from module stdio: + # Code from module stdio-tests: + # Code from module stdlib: + # Code from module stdlib-tests: + # Code from module strcase: + # Code from module streq: + # Code from module strerror: + # Code from module strerror-override: + # Code from module strerror-tests: + # Code from module strftime: + # Code from module strftime-tests: + # Code from module striconv: + # Code from module striconv-tests: + # Code from module string: + # Code from module string-tests: + # Code from module strings: + # Code from module strings-tests: + # Code from module strndup: + # Code from module strnlen: + # Code from module strnlen-tests: + # Code from module strnlen1: + # Code from module strptime: + # Code from module strtoull: + # Code from module strtoumax: + # Code from module strtoumax-tests: + # Code from module symlink: + # Code from module symlink-tests: + # Code from module sys_stat: + # Code from module sys_stat-tests: + # Code from module sys_time: + # Code from module sys_time-tests: + # Code from module sys_types: + # Code from module sys_types-tests: + # Code from module sys_wait: + # Code from module sys_wait-tests: + # Code from module tempname: + # Code from module time: + # Code from module time-tests: + # Code from module time_r: + # Code from module timespec: + # Code from module trim: + # Code from module unistd: + # Code from module unistd-tests: + # Code from module unistr/base: + # Code from module unistr/u8-mbtoucr: + # Code from module unistr/u8-mbtoucr-tests: + # Code from module unistr/u8-uctomb: + # Code from module unistr/u8-uctomb-tests: + # Code from module unitypes: + # Code from module uniwidth/base: + # Code from module uniwidth/width: + # Code from module uniwidth/width-tests: + # Code from module unlocked-io: + # Code from module unsetenv: + # Code from module unsetenv-tests: + # Code from module update-copyright: + # Code from module update-copyright-tests: + # Code from module useless-if-before-free: + # Code from module usleep: + # Code from module usleep-tests: + # Code from module vasnprintf: + # Code from module vasnprintf-tests: + # Code from module vc-list-files: + # Code from module vc-list-files-tests: + # Code from module verify: + # Code from module verify-tests: + # Code from module version-etc: + # Code from module version-etc-fsf: + # Code from module version-etc-tests: + # Code from module warnings: + # Code from module wchar: + # Code from module wchar-tests: + # Code from module wcrtomb: + # Code from module wcrtomb-tests: + # Code from module wctob: + # Code from module wctomb: + # Code from module wctype-h: + # Code from module wctype-h-tests: + # Code from module wcwidth: + # Code from module wcwidth-tests: + # Code from module xalloc: + # Code from module xalloc-die: + # Code from module xalloc-die-tests: + # Code from module xalloc-oversized: + # Code from module xfreopen: + # Code from module xreadlink: + # Code from module xsize: + # Code from module xstriconv: + # Code from module xstrndup: + # Code from module xstrtol: + # Code from module xstrtol-tests: + # Code from module xstrtoumax: + # Code from module xstrtoumax-tests: +]) + +# This macro should be invoked from ./configure.ac, in the section +# "Check for header files, types and library functions". +AC_DEFUN([gl_INIT], +[ + AM_CONDITIONAL([GL_COND_LIBTOOL], [false]) + gl_cond_libtool=false + gl_libdeps= + gl_ltlibdeps= + gl_m4_base='m4' + m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) + m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) + m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) + m4_pushdef([gl_LIBSOURCES_LIST], []) + m4_pushdef([gl_LIBSOURCES_DIR], []) + gl_COMMON + gl_source_base='lib' +gl_FUNC_ALLOCA +AC_REQUIRE([AC_C_INLINE]) +gl_FUNC_BTOWC +if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then + AC_LIBOBJ([btowc]) + gl_PREREQ_BTOWC +fi +gl_WCHAR_MODULE_INDICATOR([btowc]) +gl_C_STACK +AC_CHECK_FUNCS_ONCE([readlinkat]) +gl_CLOCK_TIME +gl_CONFIG_H +gl_CONFIGMAKE_PREP +gl_DIRNAME +gl_MODULE_INDICATOR([dirname]) +gl_DIRNAME_LGPL +gl_DOUBLE_SLASH_ROOT +gl_FUNC_DUP2 +if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then + AC_LIBOBJ([dup2]) + gl_PREREQ_DUP2 +fi +gl_UNISTD_MODULE_INDICATOR([dup2]) +gl_HEADER_ERRNO_H +gl_ERROR +if test $ac_cv_lib_error_at_line = no; then + AC_LIBOBJ([error]) + gl_PREREQ_ERROR +fi +m4_ifdef([AM_XGETTEXT_OPTION], + [AM_][XGETTEXT_OPTION([--flag=error:3:c-format]) + AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) +gl_FUNC_FCNTL +if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then + AC_LIBOBJ([fcntl]) +fi +gl_FCNTL_MODULE_INDICATOR([fcntl]) +gl_FCNTL_H +gl_FILE_NAME_CONCAT +gl_MODULE_INDICATOR([filenamecat]) +gl_FILE_NAME_CONCAT_LGPL +gl_FUNC_FNMATCH_POSIX +if test -n "$FNMATCH_H"; then + AC_LIBOBJ([fnmatch]) + gl_PREREQ_FNMATCH +fi +gl_FUNC_FNMATCH_GNU +if test -n "$FNMATCH_H"; then + AC_LIBOBJ([fnmatch]) + gl_PREREQ_FNMATCH +fi +gl_FUNC_FREOPEN +if test $REPLACE_FREOPEN = 1; then + AC_LIBOBJ([freopen]) + gl_PREREQ_FREOPEN +fi +gl_STDIO_MODULE_INDICATOR([freopen]) +gl_MODULE_INDICATOR([freopen-safer]) +gl_FUNC_FSTAT +if test $REPLACE_FSTAT = 1; then + AC_LIBOBJ([fstat]) + gl_PREREQ_FSTAT +fi +gl_SYS_STAT_MODULE_INDICATOR([fstat]) +gl_FUNC_GETDTABLESIZE +if test $HAVE_GETDTABLESIZE = 0; then + AC_LIBOBJ([getdtablesize]) + gl_PREREQ_GETDTABLESIZE +fi +gl_UNISTD_MODULE_INDICATOR([getdtablesize]) +gl_FUNC_GETOPT_GNU +if test $REPLACE_GETOPT = 1; then + AC_LIBOBJ([getopt]) + AC_LIBOBJ([getopt1]) + gl_PREREQ_GETOPT + dnl Arrange for unistd.h to include getopt.h. + GNULIB_GL_UNISTD_H_GETOPT=1 +fi +AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT]) +gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu]) +gl_FUNC_GETOPT_POSIX +if test $REPLACE_GETOPT = 1; then + AC_LIBOBJ([getopt]) + AC_LIBOBJ([getopt1]) + gl_PREREQ_GETOPT + dnl Arrange for unistd.h to include getopt.h. + GNULIB_GL_UNISTD_H_GETOPT=1 +fi +AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT]) +AC_SUBST([LIBINTL]) +AC_SUBST([LTLIBINTL]) +gl_GETTIME +gl_FUNC_GETTIMEOFDAY +if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then + AC_LIBOBJ([gettimeofday]) + gl_PREREQ_GETTIMEOFDAY +fi +gl_SYS_TIME_MODULE_INDICATOR([gettimeofday]) +gl_GNU_MAKE +# Autoconf 2.61a.99 and earlier don't support linking a file only +# in VPATH builds. But since GNUmakefile is for maintainer use +# only, it does not matter if we skip the link with older autoconf. +# Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH +# builds, so use a shell variable to bypass this. +GNUmakefile=GNUmakefile +m4_if(m4_version_compare([2.61a.100], + m4_defn([m4_PACKAGE_VERSION])), [1], [], + [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [], + [GNUmakefile=$GNUmakefile])]) +gl_HARD_LOCALE +AM_ICONV +m4_ifdef([gl_ICONV_MODULE_INDICATOR], + [gl_ICONV_MODULE_INDICATOR([iconv])]) +gl_ICONV_H +gl_FUNC_ICONV_OPEN +if test $REPLACE_ICONV_OPEN = 1; then + AC_LIBOBJ([iconv_open]) +fi +if test $REPLACE_ICONV = 1; then + AC_LIBOBJ([iconv]) + AC_LIBOBJ([iconv_close]) +fi +AC_REQUIRE([AC_C_INLINE]) +gl_INLINE +gl_INTTOSTR +gl_INTTYPES_H +gl_INTTYPES_INCOMPLETE +gl_FUNC_ISWBLANK +if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then + : +else + if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then + AC_LIBOBJ([iswblank]) + fi +fi +gl_WCTYPE_MODULE_INDICATOR([iswblank]) +gl_LANGINFO_H +gl_LIBSIGSEGV +gl_LOCALCHARSET +LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\"" +AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT]) +gl_FUNC_LSTAT +if test $REPLACE_LSTAT = 1; then + AC_LIBOBJ([lstat]) + gl_PREREQ_LSTAT +fi +gl_SYS_STAT_MODULE_INDICATOR([lstat]) +AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER], + [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])]) +gl_FUNC_MALLOC_GNU +if test $REPLACE_MALLOC = 1; then + AC_LIBOBJ([malloc]) +fi +gl_MODULE_INDICATOR([malloc-gnu]) +gl_FUNC_MALLOC_POSIX +if test $REPLACE_MALLOC = 1; then + AC_LIBOBJ([malloc]) +fi +gl_STDLIB_MODULE_INDICATOR([malloc-posix]) +gl_MALLOCA +gl_MBCHAR +gl_MBITER +gl_FUNC_MBRTOWC +if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then + AC_LIBOBJ([mbrtowc]) + gl_PREREQ_MBRTOWC +fi +gl_WCHAR_MODULE_INDICATOR([mbrtowc]) +gl_STRING_MODULE_INDICATOR([mbscasecmp]) +gl_FUNC_MBSINIT +if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then + AC_LIBOBJ([mbsinit]) + gl_PREREQ_MBSINIT +fi +gl_WCHAR_MODULE_INDICATOR([mbsinit]) +gl_FUNC_MBSLEN +gl_STRING_MODULE_INDICATOR([mbslen]) +gl_FUNC_MBSRTOWCS +if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then + AC_LIBOBJ([mbsrtowcs]) + AC_LIBOBJ([mbsrtowcs-state]) + gl_PREREQ_MBSRTOWCS +fi +gl_WCHAR_MODULE_INDICATOR([mbsrtowcs]) +gl_STRING_MODULE_INDICATOR([mbsstr]) +gl_FUNC_MBTOWC +if test $REPLACE_MBTOWC = 1; then + AC_LIBOBJ([mbtowc]) + gl_PREREQ_MBTOWC +fi +gl_STDLIB_MODULE_INDICATOR([mbtowc]) +gl_MBITER +gl_FUNC_MEMCHR +if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then + AC_LIBOBJ([memchr]) + gl_PREREQ_MEMCHR +fi +gl_STRING_MODULE_INDICATOR([memchr]) +gl_FUNC_MKSTEMP +if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then + AC_LIBOBJ([mkstemp]) + gl_PREREQ_MKSTEMP +fi +gl_STDLIB_MODULE_INDICATOR([mkstemp]) +gl_FUNC_MKTIME +if test $REPLACE_MKTIME = 1; then + AC_LIBOBJ([mktime]) + gl_PREREQ_MKTIME +fi +gl_TIME_MODULE_INDICATOR([mktime]) +gl_MSVC_INVAL +if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then + AC_LIBOBJ([msvc-inval]) +fi +gl_MSVC_NOTHROW +if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then + AC_LIBOBJ([msvc-nothrow]) +fi +gl_MULTIARCH +gl_FUNC_NL_LANGINFO +if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then + AC_LIBOBJ([nl_langinfo]) +fi +gl_LANGINFO_MODULE_INDICATOR([nl_langinfo]) +gl_FUNC_OPEN +if test $REPLACE_OPEN = 1; then + AC_LIBOBJ([open]) + gl_PREREQ_OPEN +fi +gl_FCNTL_MODULE_INDICATOR([open]) +gl_PATHMAX +AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>]) +AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>]) +m4_ifdef([AM_XGETTEXT_OPTION], + [AM_][XGETTEXT_OPTION([--keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"']) + AM_][XGETTEXT_OPTION([--keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'])]) +gl_QUOTE +gl_QUOTEARG +gl_FUNC_RAISE +if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then + AC_LIBOBJ([raise]) + gl_PREREQ_RAISE +fi +gl_SIGNAL_MODULE_INDICATOR([raise]) +gl_FUNC_READLINK +if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then + AC_LIBOBJ([readlink]) + gl_PREREQ_READLINK +fi +gl_UNISTD_MODULE_INDICATOR([readlink]) +gl_REGEX +if test $ac_use_included_regex = yes; then + AC_LIBOBJ([regex]) + gl_PREREQ_REGEX +fi +gl_SIGACTION +if test $HAVE_SIGACTION = 0; then + AC_LIBOBJ([sigaction]) + gl_PREREQ_SIGACTION +fi +gl_SIGNAL_MODULE_INDICATOR([sigaction]) +gl_SIGNAL_H +gl_SIGNALBLOCKING +if test $HAVE_POSIX_SIGNALBLOCKING = 0; then + AC_LIBOBJ([sigprocmask]) + gl_PREREQ_SIGPROCMASK +fi +gl_SIGNAL_MODULE_INDICATOR([sigprocmask]) +gt_TYPE_SSIZE_T +gl_FUNC_STAT +if test $REPLACE_STAT = 1; then + AC_LIBOBJ([stat]) + gl_PREREQ_STAT +fi +gl_SYS_STAT_MODULE_INDICATOR([stat]) +gl_STAT_TIME +gl_STAT_BIRTHTIME +gl_STDARG_H +AM_STDBOOL_H +gl_STDDEF_H +gl_STDINT_H +gl_STDIO_H +gl_STDLIB_H +gl_STRCASE +if test $HAVE_STRCASECMP = 0; then + AC_LIBOBJ([strcasecmp]) + gl_PREREQ_STRCASECMP +fi +if test $HAVE_STRNCASECMP = 0; then + AC_LIBOBJ([strncasecmp]) + gl_PREREQ_STRNCASECMP +fi +gl_FUNC_STRERROR +if test $REPLACE_STRERROR = 1; then + AC_LIBOBJ([strerror]) +fi +gl_MODULE_INDICATOR([strerror]) +gl_STRING_MODULE_INDICATOR([strerror]) +AC_REQUIRE([gl_HEADER_ERRNO_H]) +AC_REQUIRE([gl_FUNC_STRERROR_0]) +if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then + AC_LIBOBJ([strerror-override]) + gl_PREREQ_SYS_H_WINSOCK2 +fi +gl_FUNC_GNU_STRFTIME +if test $gl_cond_libtool = false; then + gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" + gl_libdeps="$gl_libdeps $LIBICONV" +fi +gl_HEADER_STRING_H +gl_HEADER_STRINGS_H +gl_FUNC_STRNDUP +if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then + AC_LIBOBJ([strndup]) +fi +gl_STRING_MODULE_INDICATOR([strndup]) +gl_FUNC_STRNLEN +if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then + AC_LIBOBJ([strnlen]) + gl_PREREQ_STRNLEN +fi +gl_STRING_MODULE_INDICATOR([strnlen]) +gl_FUNC_STRPTIME +if test $HAVE_STRPTIME = 0; then + AC_LIBOBJ([strptime]) + gl_PREREQ_STRPTIME +fi +gl_TIME_MODULE_INDICATOR([strptime]) +gl_FUNC_STRTOULL +if test $HAVE_STRTOULL = 0; then + AC_LIBOBJ([strtoull]) + gl_PREREQ_STRTOULL +fi +gl_STDLIB_MODULE_INDICATOR([strtoull]) +gl_FUNC_STRTOUMAX +if test $ac_cv_func_strtoumax = no; then + AC_LIBOBJ([strtoumax]) + gl_PREREQ_STRTOUMAX +fi +gl_INTTYPES_MODULE_INDICATOR([strtoumax]) +gl_HEADER_SYS_STAT_H +AC_PROG_MKDIR_P +gl_HEADER_SYS_TIME_H +AC_PROG_MKDIR_P +gl_SYS_TYPES_H +AC_PROG_MKDIR_P +gl_SYS_WAIT_H +AC_PROG_MKDIR_P +gl_FUNC_GEN_TEMPNAME +gl_HEADER_TIME_H +gl_TIME_R +if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then + AC_LIBOBJ([time_r]) + gl_PREREQ_TIME_R +fi +gl_TIME_MODULE_INDICATOR([time_r]) +gl_TIMESPEC +gl_UNISTD_H +gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h]) +gl_MODULE_INDICATOR([unistr/u8-mbtoucr]) +gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr]) +gl_MODULE_INDICATOR([unistr/u8-uctomb]) +gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb]) +gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h]) +gl_LIBUNISTRING_LIBHEADER([0.9], [uniwidth.h]) +gl_LIBUNISTRING_MODULE([0.9.4], [uniwidth/width]) +gl_FUNC_GLIBC_UNLOCKED_IO +gl_VERSION_ETC +AC_SUBST([WARN_CFLAGS]) +gl_WCHAR_H +gl_FUNC_WCRTOMB +if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then + AC_LIBOBJ([wcrtomb]) + gl_PREREQ_WCRTOMB +fi +gl_WCHAR_MODULE_INDICATOR([wcrtomb]) +gl_WCTYPE_H +gl_FUNC_WCWIDTH +if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then + AC_LIBOBJ([wcwidth]) +fi +gl_WCHAR_MODULE_INDICATOR([wcwidth]) +gl_XALLOC +gl_XSTRNDUP +gl_XSTRTOL + # End of code from modules + m4_ifval(gl_LIBSOURCES_LIST, [ + m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || + for gl_file in ]gl_LIBSOURCES_LIST[ ; do + if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then + echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2 + exit 1 + fi + done])dnl + m4_if(m4_sysval, [0], [], + [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) + ]) + m4_popdef([gl_LIBSOURCES_DIR]) + m4_popdef([gl_LIBSOURCES_LIST]) + m4_popdef([AC_LIBSOURCES]) + m4_popdef([AC_REPLACE_FUNCS]) + m4_popdef([AC_LIBOBJ]) + AC_CONFIG_COMMANDS_PRE([ + gl_libobjs= + gl_ltlibobjs= + if test -n "$gl_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gl_libobjs="$gl_libobjs $i.$ac_objext" + gl_ltlibobjs="$gl_ltlibobjs $i.lo" + done + fi + AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) + AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) + ]) + gltests_libdeps= + gltests_ltlibdeps= + m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ])) + m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS])) + m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) + m4_pushdef([gltests_LIBSOURCES_LIST], []) + m4_pushdef([gltests_LIBSOURCES_DIR], []) + gl_COMMON + gl_source_base='gnulib-tests' +changequote(,)dnl + gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS +changequote([, ])dnl + AC_SUBST([gltests_WITNESS]) + gl_module_indicator_condition=$gltests_WITNESS + m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) +gt_LOCALE_FR +gt_LOCALE_FR_UTF8 +gt_LOCALE_FR +gt_LOCALE_TR_UTF8 +gl_FUNC_CLOSE +if test $REPLACE_CLOSE = 1; then + AC_LIBOBJ([close]) +fi +gl_UNISTD_MODULE_INDICATOR([close]) +gl_ENVIRON +gl_UNISTD_MODULE_INDICATOR([environ]) +gl_FUNC_FDOPEN +if test $REPLACE_FDOPEN = 1; then + AC_LIBOBJ([fdopen]) + gl_PREREQ_FDOPEN +fi +gl_STDIO_MODULE_INDICATOR([fdopen]) +gl_FLOAT_H +if test $REPLACE_FLOAT_LDBL = 1; then + AC_LIBOBJ([float]) +fi +if test $REPLACE_ITOLD = 1; then + AC_LIBOBJ([itold]) +fi +gl_FUNC_GETCWD_LGPL +if test $REPLACE_GETCWD = 1; then + AC_LIBOBJ([getcwd-lgpl]) +fi +gl_UNISTD_MODULE_INDICATOR([getcwd]) +gl_FUNC_GETPAGESIZE +if test $REPLACE_GETPAGESIZE = 1; then + AC_LIBOBJ([getpagesize]) +fi +gl_UNISTD_MODULE_INDICATOR([getpagesize]) +gl_LOCALE_H +AC_CHECK_FUNCS_ONCE([newlocale]) +gt_LOCALE_FR +gt_LOCALE_FR_UTF8 +gt_LOCALE_JA +gt_LOCALE_ZH_CN +gt_LOCALE_TR_UTF8 +gt_LOCALE_FR_UTF8 +gt_LOCALE_FR +gt_LOCALE_FR_UTF8 +gt_LOCALE_JA +gt_LOCALE_ZH_CN +gt_LOCALE_FR_UTF8 +gt_LOCALE_ZH_CN +dnl Check for prerequisites for memory fence checks. +gl_FUNC_MMAP_ANON +AC_CHECK_HEADERS_ONCE([sys/mman.h]) +AC_CHECK_FUNCS_ONCE([mprotect]) +gt_LOCALE_FR +gt_LOCALE_FR_UTF8 +gl_FUNC_PUTENV +if test $REPLACE_PUTENV = 1; then + AC_LIBOBJ([putenv]) +fi +gl_STDLIB_MODULE_INDICATOR([putenv]) +gl_FUNC_SETENV +if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then + AC_LIBOBJ([setenv]) +fi +gl_STDLIB_MODULE_INDICATOR([setenv]) +gl_FUNC_SETLOCALE +if test $REPLACE_SETLOCALE = 1; then + AC_LIBOBJ([setlocale]) + gl_PREREQ_SETLOCALE +fi +gl_LOCALE_MODULE_INDICATOR([setlocale]) +gt_LOCALE_FR +gt_LOCALE_FR_UTF8 +gt_LOCALE_JA +gt_LOCALE_ZH_CN +gl_SIZE_MAX +gl_FUNC_SLEEP +if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then + AC_LIBOBJ([sleep]) +fi +gl_UNISTD_MODULE_INDICATOR([sleep]) +AC_CHECK_DECLS_ONCE([alarm]) +gl_FUNC_SNPRINTF +gl_STDIO_MODULE_INDICATOR([snprintf]) +gl_MODULE_INDICATOR([snprintf]) +gt_TYPE_WCHAR_T +gt_TYPE_WINT_T +dnl Check for prerequisites for memory fence checks. +gl_FUNC_MMAP_ANON +AC_CHECK_HEADERS_ONCE([sys/mman.h]) +AC_CHECK_FUNCS_ONCE([mprotect]) +gl_FUNC_SYMLINK +if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then + AC_LIBOBJ([symlink]) +fi +gl_UNISTD_MODULE_INDICATOR([symlink]) +gl_FUNC_UNSETENV +if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then + AC_LIBOBJ([unsetenv]) + gl_PREREQ_UNSETENV +fi +gl_STDLIB_MODULE_INDICATOR([unsetenv]) +abs_aux_dir=`cd "$ac_aux_dir"; pwd` +AC_SUBST([abs_aux_dir]) +gl_FUNC_USLEEP +if test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1; then + AC_LIBOBJ([usleep]) +fi +gl_UNISTD_MODULE_INDICATOR([usleep]) +gl_FUNC_VASNPRINTF +abs_aux_dir=`cd "$ac_aux_dir"; pwd` +AC_SUBST([abs_aux_dir]) +gt_LOCALE_FR +gt_LOCALE_FR_UTF8 +gt_LOCALE_JA +gt_LOCALE_ZH_CN +gl_FUNC_WCTOB +if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then + AC_LIBOBJ([wctob]) + gl_PREREQ_WCTOB +fi +gl_WCHAR_MODULE_INDICATOR([wctob]) +gl_FUNC_WCTOMB +if test $REPLACE_WCTOMB = 1; then + AC_LIBOBJ([wctomb]) + gl_PREREQ_WCTOMB +fi +gl_STDLIB_MODULE_INDICATOR([wctomb]) +gl_XSIZE + m4_popdef([gl_MODULE_INDICATOR_CONDITION]) + m4_ifval(gltests_LIBSOURCES_LIST, [ + m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ || + for gl_file in ]gltests_LIBSOURCES_LIST[ ; do + if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then + echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2 + exit 1 + fi + done])dnl + m4_if(m4_sysval, [0], [], + [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) + ]) + m4_popdef([gltests_LIBSOURCES_DIR]) + m4_popdef([gltests_LIBSOURCES_LIST]) + m4_popdef([AC_LIBSOURCES]) + m4_popdef([AC_REPLACE_FUNCS]) + m4_popdef([AC_LIBOBJ]) + AC_CONFIG_COMMANDS_PRE([ + gltests_libobjs= + gltests_ltlibobjs= + if test -n "$gltests_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gltests_libobjs="$gltests_libobjs $i.$ac_objext" + gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" + done + fi + AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) + AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) + ]) + LIBDIFFUTILS_LIBDEPS="$gl_libdeps" + AC_SUBST([LIBDIFFUTILS_LIBDEPS]) + LIBDIFFUTILS_LTLIBDEPS="$gl_ltlibdeps" + AC_SUBST([LIBDIFFUTILS_LTLIBDEPS]) + LIBTESTS_LIBDEPS="$gltests_libdeps" + AC_SUBST([LIBTESTS_LIBDEPS]) +]) + +# Like AC_LIBOBJ, except that the module name goes +# into gl_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gl_LIBOBJ], [ + AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl + gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext" +]) + +# Like AC_REPLACE_FUNCS, except that the module name goes +# into gl_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gl_REPLACE_FUNCS], [ + m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl + AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)]) +]) + +# Like AC_LIBSOURCES, except the directory where the source file is +# expected is derived from the gnulib-tool parameterization, +# and alloca is special cased (for the alloca-opt module). +# We could also entirely rely on EXTRA_lib..._SOURCES. +AC_DEFUN([gl_LIBSOURCES], [ + m4_foreach([_gl_NAME], [$1], [ + m4_if(_gl_NAME, [alloca.c], [], [ + m4_define([gl_LIBSOURCES_DIR], [lib]) + m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ]) + ]) + ]) +]) + +# Like AC_LIBOBJ, except that the module name goes +# into gltests_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gltests_LIBOBJ], [ + AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl + gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext" +]) + +# Like AC_REPLACE_FUNCS, except that the module name goes +# into gltests_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gltests_REPLACE_FUNCS], [ + m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl + AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)]) +]) + +# Like AC_LIBSOURCES, except the directory where the source file is +# expected is derived from the gnulib-tool parameterization, +# and alloca is special cased (for the alloca-opt module). +# We could also entirely rely on EXTRA_lib..._SOURCES. +AC_DEFUN([gltests_LIBSOURCES], [ + m4_foreach([_gl_NAME], [$1], [ + m4_if(_gl_NAME, [alloca.c], [], [ + m4_define([gltests_LIBSOURCES_DIR], [gnulib-tests]) + m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ]) + ]) + ]) +]) + +# This macro records the list of files which have been installed by +# gnulib-tool and may be removed by future gnulib-tool invocations. +AC_DEFUN([gl_FILE_LIST], [ + build-aux/announce-gen + build-aux/config.rpath + build-aux/do-release-commit-and-tag + build-aux/gendocs.sh + build-aux/git-version-gen + build-aux/gitlog-to-changelog + build-aux/gnu-web-doc-update + build-aux/gnupload + build-aux/snippet/_Noreturn.h + build-aux/snippet/arg-nonnull.h + build-aux/snippet/c++defs.h + build-aux/snippet/unused-parameter.h + build-aux/snippet/warn-on-use.h + build-aux/update-copyright + build-aux/useless-if-before-free + build-aux/vc-list-files + doc/fdl.texi + doc/gendocs_template + lib/alloca.c + lib/alloca.in.h + lib/allocator.c + lib/allocator.h + lib/anytostr.c + lib/areadlink.c + lib/areadlink.h + lib/basename-lgpl.c + lib/basename.c + lib/binary-io.h + lib/bitrotate.h + lib/btowc.c + lib/c-ctype.c + lib/c-ctype.h + lib/c-stack.c + lib/c-stack.h + lib/c-strcase.h + lib/c-strcasecmp.c + lib/c-strncasecmp.c + lib/careadlinkat.c + lib/careadlinkat.h + lib/config.charset + lib/diffseq.h + lib/dirname-lgpl.c + lib/dirname.c + lib/dirname.h + lib/dosname.h + lib/dup2.c + lib/errno.in.h + lib/error.c + lib/error.h + lib/exclude.c + lib/exclude.h + lib/exitfail.c + lib/exitfail.h + lib/fcntl.c + lib/fcntl.in.h + lib/file-type.c + lib/file-type.h + lib/filenamecat-lgpl.c + lib/filenamecat.c + lib/filenamecat.h + lib/fnmatch.c + lib/fnmatch.in.h + lib/fnmatch_loop.c + lib/freopen-safer.c + lib/freopen.c + lib/fstat.c + lib/getdtablesize.c + lib/getopt.c + lib/getopt.in.h + lib/getopt1.c + lib/getopt_int.h + lib/gettext.h + lib/gettime.c + lib/gettimeofday.c + lib/hard-locale.c + lib/hard-locale.h + lib/hash.c + lib/hash.h + lib/iconv.c + lib/iconv.in.h + lib/iconv_close.c + lib/iconv_open-aix.gperf + lib/iconv_open-hpux.gperf + lib/iconv_open-irix.gperf + lib/iconv_open-osf.gperf + lib/iconv_open-solaris.gperf + lib/iconv_open.c + lib/ignore-value.h + lib/imaxtostr.c + lib/intprops.h + lib/inttostr.c + lib/inttostr.h + lib/inttypes.in.h + lib/iswblank.c + lib/langinfo.in.h + lib/localcharset.c + lib/localcharset.h + lib/lstat.c + lib/malloc.c + lib/malloca.c + lib/malloca.h + lib/malloca.valgrind + lib/mbchar.c + lib/mbchar.h + lib/mbiter.h + lib/mbrtowc.c + lib/mbscasecmp.c + lib/mbsinit.c + lib/mbslen.c + lib/mbsrtowcs-impl.h + lib/mbsrtowcs-state.c + lib/mbsrtowcs.c + lib/mbsstr.c + lib/mbtowc-impl.h + lib/mbtowc.c + lib/mbuiter.h + lib/memchr.c + lib/memchr.valgrind + lib/mkstemp.c + lib/mktime-internal.h + lib/mktime.c + lib/msvc-inval.c + lib/msvc-inval.h + lib/msvc-nothrow.c + lib/msvc-nothrow.h + lib/nl_langinfo.c + lib/offtostr.c + lib/open.c + lib/pathmax.h + lib/progname.c + lib/progname.h + lib/propername.c + lib/propername.h + lib/quote.c + lib/quote.h + lib/quotearg.c + lib/quotearg.h + lib/raise.c + lib/readlink.c + lib/ref-add.sin + lib/ref-del.sin + lib/regcomp.c + lib/regex.c + lib/regex.h + lib/regex_internal.c + lib/regex_internal.h + lib/regexec.c + lib/sh-quote.c + lib/sh-quote.h + lib/sig-handler.h + lib/sigaction.c + lib/signal.in.h + lib/sigprocmask.c + lib/stat-macros.h + lib/stat-time.h + lib/stat.c + lib/stdarg.in.h + lib/stdbool.in.h + lib/stddef.in.h + lib/stdint.in.h + lib/stdio--.h + lib/stdio-safer.h + lib/stdio.in.h + lib/stdlib.in.h + lib/str-kmp.h + lib/strcasecmp.c + lib/streq.h + lib/strerror-override.c + lib/strerror-override.h + lib/strerror.c + lib/strftime.c + lib/strftime.h + lib/striconv.c + lib/striconv.h + lib/string.in.h + lib/strings.in.h + lib/stripslash.c + lib/strncasecmp.c + lib/strndup.c + lib/strnlen.c + lib/strnlen1.c + lib/strnlen1.h + lib/strptime.c + lib/strtoimax.c + lib/strtol.c + lib/strtoul.c + lib/strtoull.c + lib/strtoumax.c + lib/sys_stat.in.h + lib/sys_time.in.h + lib/sys_types.in.h + lib/sys_wait.in.h + lib/tempname.c + lib/tempname.h + lib/time.in.h + lib/time_r.c + lib/timespec.h + lib/trim.c + lib/trim.h + lib/uinttostr.c + lib/umaxtostr.c + lib/unistd.in.h + lib/unistr.in.h + lib/unistr/u8-mbtoucr.c + lib/unistr/u8-uctomb-aux.c + lib/unistr/u8-uctomb.c + lib/unitypes.in.h + lib/uniwidth.in.h + lib/uniwidth/cjk.h + lib/uniwidth/width.c + lib/unlocked-io.h + lib/verify.h + lib/version-etc-fsf.c + lib/version-etc.c + lib/version-etc.h + lib/wchar.in.h + lib/wcrtomb.c + lib/wctype.in.h + lib/wcwidth.c + lib/xalloc-die.c + lib/xalloc-oversized.h + lib/xalloc.h + lib/xfreopen.c + lib/xfreopen.h + lib/xmalloc.c + lib/xreadlink.c + lib/xreadlink.h + lib/xstriconv.c + lib/xstriconv.h + lib/xstrndup.c + lib/xstrndup.h + lib/xstrtol-error.c + lib/xstrtol.c + lib/xstrtol.h + lib/xstrtoul.c + lib/xstrtoumax.c + m4/00gnulib.m4 + m4/alloca.m4 + m4/btowc.m4 + m4/c-stack.m4 + m4/clock_time.m4 + m4/close.m4 + m4/codeset.m4 + m4/config-h.m4 + m4/configmake.m4 + m4/dirname.m4 + m4/double-slash-root.m4 + m4/dup2.m4 + m4/eealloc.m4 + m4/environ.m4 + m4/errno_h.m4 + m4/error.m4 + m4/exponentd.m4 + m4/extensions.m4 + m4/fcntl-o.m4 + m4/fcntl.m4 + m4/fcntl_h.m4 + m4/fdopen.m4 + m4/filenamecat.m4 + m4/float_h.m4 + m4/fnmatch.m4 + m4/fpieee.m4 + m4/freopen.m4 + m4/fstat.m4 + m4/getcwd.m4 + m4/getdtablesize.m4 + m4/getopt.m4 + m4/getpagesize.m4 + m4/gettime.m4 + m4/gettimeofday.m4 + m4/glibc21.m4 + m4/gnu-make.m4 + m4/gnulib-common.m4 + m4/hard-locale.m4 + m4/iconv.m4 + m4/iconv_h.m4 + m4/iconv_open.m4 + m4/include_next.m4 + m4/inline.m4 + m4/intmax_t.m4 + m4/inttostr.m4 + m4/inttypes-pri.m4 + m4/inttypes.m4 + m4/inttypes_h.m4 + m4/iswblank.m4 + m4/langinfo_h.m4 + m4/largefile.m4 + m4/lib-ld.m4 + m4/lib-link.m4 + m4/lib-prefix.m4 + m4/libsigsegv.m4 + m4/libunistring-base.m4 + m4/localcharset.m4 + m4/locale-fr.m4 + m4/locale-ja.m4 + m4/locale-tr.m4 + m4/locale-zh.m4 + m4/locale_h.m4 + m4/longlong.m4 + m4/lstat.m4 + m4/malloc.m4 + m4/malloca.m4 + m4/manywarnings.m4 + m4/math_h.m4 + m4/mbchar.m4 + m4/mbiter.m4 + m4/mbrtowc.m4 + m4/mbsinit.m4 + m4/mbslen.m4 + m4/mbsrtowcs.m4 + m4/mbstate_t.m4 + m4/mbtowc.m4 + m4/memchr.m4 + m4/mkstemp.m4 + m4/mktime.m4 + m4/mmap-anon.m4 + m4/mode_t.m4 + m4/msvc-inval.m4 + m4/msvc-nothrow.m4 + m4/multiarch.m4 + m4/nl_langinfo.m4 + m4/nocrash.m4 + m4/open.m4 + m4/pathmax.m4 + m4/printf.m4 + m4/putenv.m4 + m4/quote.m4 + m4/quotearg.m4 + m4/raise.m4 + m4/readlink.m4 + m4/regex.m4 + m4/setenv.m4 + m4/setlocale.m4 + m4/sigaction.m4 + m4/signal_h.m4 + m4/signalblocking.m4 + m4/size_max.m4 + m4/sleep.m4 + m4/snprintf.m4 + m4/ssize_t.m4 + m4/stat-time.m4 + m4/stat.m4 + m4/stdarg.m4 + m4/stdbool.m4 + m4/stddef_h.m4 + m4/stdint.m4 + m4/stdint_h.m4 + m4/stdio_h.m4 + m4/stdlib_h.m4 + m4/strcase.m4 + m4/strerror.m4 + m4/strftime.m4 + m4/string_h.m4 + m4/strings_h.m4 + m4/strndup.m4 + m4/strnlen.m4 + m4/strptime.m4 + m4/strtoull.m4 + m4/strtoumax.m4 + m4/symlink.m4 + m4/sys_socket_h.m4 + m4/sys_stat_h.m4 + m4/sys_time_h.m4 + m4/sys_types_h.m4 + m4/sys_wait_h.m4 + m4/tempname.m4 + m4/time_h.m4 + m4/time_r.m4 + m4/timespec.m4 + m4/tm_gmtoff.m4 + m4/unistd_h.m4 + m4/unlocked-io.m4 + m4/usleep.m4 + m4/vasnprintf.m4 + m4/version-etc.m4 + m4/warn-on-use.m4 + m4/warnings.m4 + m4/wchar_h.m4 + m4/wchar_t.m4 + m4/wcrtomb.m4 + m4/wctob.m4 + m4/wctomb.m4 + m4/wctype_h.m4 + m4/wcwidth.m4 + m4/wint_t.m4 + m4/xalloc.m4 + m4/xsize.m4 + m4/xstrndup.m4 + m4/xstrtol.m4 + tests/init.sh + tests/macros.h + tests/signature.h + tests/test-alloca-opt.c + tests/test-areadlink.c + tests/test-areadlink.h + tests/test-argmatch.c + tests/test-binary-io.c + tests/test-binary-io.sh + tests/test-bitrotate.c + tests/test-btowc.c + tests/test-btowc1.sh + tests/test-btowc2.sh + tests/test-c-ctype.c + tests/test-c-stack.c + tests/test-c-stack.sh + tests/test-c-stack2.sh + tests/test-c-strcase.sh + tests/test-c-strcasecmp.c + tests/test-c-strncasecmp.c + tests/test-close.c + tests/test-dirname.c + tests/test-dup2.c + tests/test-environ.c + tests/test-errno.c + tests/test-exclude.c + tests/test-exclude1.sh + tests/test-exclude2.sh + tests/test-exclude3.sh + tests/test-exclude4.sh + tests/test-exclude5.sh + tests/test-exclude6.sh + tests/test-exclude7.sh + tests/test-exclude8.sh + tests/test-fcntl-h.c + tests/test-fcntl.c + tests/test-fdopen.c + tests/test-fgetc.c + tests/test-filenamecat.c + tests/test-float.c + tests/test-fnmatch.c + tests/test-fputc.c + tests/test-fread.c + tests/test-freopen-safer.c + tests/test-freopen.c + tests/test-fstat.c + tests/test-fwrite.c + tests/test-getcwd-lgpl.c + tests/test-getdtablesize.c + tests/test-getopt.c + tests/test-getopt.h + tests/test-getopt_long.h + tests/test-gettimeofday.c + tests/test-hash.c + tests/test-iconv-h.c + tests/test-iconv.c + tests/test-ignore-value.c + tests/test-intprops.c + tests/test-inttostr.c + tests/test-inttypes.c + tests/test-iswblank.c + tests/test-langinfo.c + tests/test-locale.c + tests/test-lstat.c + tests/test-lstat.h + tests/test-malloc-gnu.c + tests/test-malloca.c + tests/test-mbrtowc-w32-1.sh + tests/test-mbrtowc-w32-2.sh + tests/test-mbrtowc-w32-3.sh + tests/test-mbrtowc-w32-4.sh + tests/test-mbrtowc-w32-5.sh + tests/test-mbrtowc-w32.c + tests/test-mbrtowc.c + tests/test-mbrtowc1.sh + tests/test-mbrtowc2.sh + tests/test-mbrtowc3.sh + tests/test-mbrtowc4.sh + tests/test-mbscasecmp.c + tests/test-mbscasecmp.sh + tests/test-mbsinit.c + tests/test-mbsinit.sh + tests/test-mbsrtowcs.c + tests/test-mbsrtowcs1.sh + tests/test-mbsrtowcs2.sh + tests/test-mbsrtowcs3.sh + tests/test-mbsrtowcs4.sh + tests/test-mbsstr1.c + tests/test-mbsstr2.c + tests/test-mbsstr2.sh + tests/test-mbsstr3.c + tests/test-mbsstr3.sh + tests/test-memchr.c + tests/test-nl_langinfo.c + tests/test-nl_langinfo.sh + tests/test-open.c + tests/test-open.h + tests/test-pathmax.c + tests/test-quotearg-simple.c + tests/test-quotearg.h + tests/test-raise.c + tests/test-readlink.c + tests/test-readlink.h + tests/test-setenv.c + tests/test-setlocale1.c + tests/test-setlocale1.sh + tests/test-setlocale2.c + tests/test-setlocale2.sh + tests/test-sigaction.c + tests/test-signal-h.c + tests/test-sigprocmask.c + tests/test-sleep.c + tests/test-snprintf.c + tests/test-stat-time.c + tests/test-stat.c + tests/test-stat.h + tests/test-stdbool.c + tests/test-stddef.c + tests/test-stdint.c + tests/test-stdio.c + tests/test-stdlib.c + tests/test-strerror.c + tests/test-strftime.c + tests/test-striconv.c + tests/test-string.c + tests/test-strings.c + tests/test-strnlen.c + tests/test-strtoumax.c + tests/test-symlink.c + tests/test-symlink.h + tests/test-sys_stat.c + tests/test-sys_time.c + tests/test-sys_types.c + tests/test-sys_wait.c + tests/test-sys_wait.h + tests/test-time.c + tests/test-unistd.c + tests/test-unsetenv.c + tests/test-update-copyright.sh + tests/test-usleep.c + tests/test-vasnprintf.c + tests/test-vc-list-files-cvs.sh + tests/test-vc-list-files-git.sh + tests/test-verify.c + tests/test-verify.sh + tests/test-version-etc.c + tests/test-version-etc.sh + tests/test-wchar.c + tests/test-wcrtomb-w32-1.sh + tests/test-wcrtomb-w32-2.sh + tests/test-wcrtomb-w32-3.sh + tests/test-wcrtomb-w32-4.sh + tests/test-wcrtomb-w32-5.sh + tests/test-wcrtomb-w32.c + tests/test-wcrtomb.c + tests/test-wcrtomb.sh + tests/test-wctype-h.c + tests/test-wcwidth.c + tests/test-xalloc-die.c + tests/test-xalloc-die.sh + tests/test-xstrtol.c + tests/test-xstrtol.sh + tests/test-xstrtoul.c + tests/test-xstrtoumax.c + tests/test-xstrtoumax.sh + tests/unistr/test-u8-mbtoucr.c + tests/unistr/test-u8-uctomb.c + tests/uniwidth/test-uc_width.c + tests/uniwidth/test-uc_width2.c + tests/uniwidth/test-uc_width2.sh + tests/zerosize-ptr.h + tests=lib/argmatch.c + tests=lib/argmatch.h + tests=lib/asnprintf.c + tests=lib/close.c + tests=lib/fd-hook.c + tests=lib/fd-hook.h + tests=lib/fdopen.c + tests=lib/float+.h + tests=lib/float.c + tests=lib/float.in.h + tests=lib/fpucw.h + tests=lib/getcwd-lgpl.c + tests=lib/getpagesize.c + tests=lib/hash-pjw.c + tests=lib/hash-pjw.h + tests=lib/itold.c + tests=lib/locale.in.h + tests=lib/printf-args.c + tests=lib/printf-args.h + tests=lib/printf-parse.c + tests=lib/printf-parse.h + tests=lib/putenv.c + tests=lib/same-inode.h + tests=lib/setenv.c + tests=lib/setlocale.c + tests=lib/size_max.h + tests=lib/sleep.c + tests=lib/snprintf.c + tests=lib/symlink.c + tests=lib/unsetenv.c + tests=lib/usleep.c + tests=lib/vasnprintf.c + tests=lib/vasnprintf.h + tests=lib/wctob.c + tests=lib/wctomb-impl.h + tests=lib/wctomb.c + tests=lib/xsize.h + top/GNUmakefile + top/README-release + top/maint.mk +]) diff --git a/m4/gnulib-tool.m4 b/m4/gnulib-tool.m4 new file mode 120000 index 0000000..21415cb --- /dev/null +++ b/m4/gnulib-tool.m4 @@ -0,0 +1 @@ +../gnulib/m4/gnulib-tool.m4
\ No newline at end of file diff --git a/m4/hard-locale.m4 b/m4/hard-locale.m4 new file mode 120000 index 0000000..2da3b71 --- /dev/null +++ b/m4/hard-locale.m4 @@ -0,0 +1 @@ +../gnulib/m4/hard-locale.m4
\ No newline at end of file diff --git a/m4/iconv.m4 b/m4/iconv.m4 new file mode 120000 index 0000000..fb8645c --- /dev/null +++ b/m4/iconv.m4 @@ -0,0 +1 @@ +../gnulib/m4/iconv.m4
\ No newline at end of file diff --git a/m4/iconv_h.m4 b/m4/iconv_h.m4 new file mode 120000 index 0000000..24d4830 --- /dev/null +++ b/m4/iconv_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/iconv_h.m4
\ No newline at end of file diff --git a/m4/iconv_open.m4 b/m4/iconv_open.m4 new file mode 120000 index 0000000..cc9f643 --- /dev/null +++ b/m4/iconv_open.m4 @@ -0,0 +1 @@ +../gnulib/m4/iconv_open.m4
\ No newline at end of file diff --git a/m4/include_next.m4 b/m4/include_next.m4 new file mode 120000 index 0000000..d4cb27f --- /dev/null +++ b/m4/include_next.m4 @@ -0,0 +1 @@ +../gnulib/m4/include_next.m4
\ No newline at end of file diff --git a/m4/inline.m4 b/m4/inline.m4 new file mode 120000 index 0000000..173aad5 --- /dev/null +++ b/m4/inline.m4 @@ -0,0 +1 @@ +../gnulib/m4/inline.m4
\ No newline at end of file diff --git a/m4/intl.m4 b/m4/intl.m4 new file mode 100644 index 0000000..72fc656 --- /dev/null +++ b/m4/intl.m4 @@ -0,0 +1,287 @@ +# -*- buffer-read-only: t -*- vi: set ro: +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# intl.m4 serial 8 (gettext-0.17) +dnl Copyright (C) 1995-2007 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006. + +AC_PREREQ(2.52) + +dnl Checks for all prerequisites of the intl subdirectory, +dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, +dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. +AC_DEFUN([AM_INTL_SUBDIR], +[ + AC_REQUIRE([AC_PROG_INSTALL])dnl + AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake + AC_REQUIRE([AC_PROG_CC])dnl + AC_REQUIRE([AC_CANONICAL_HOST])dnl + AC_REQUIRE([gt_GLIBC2])dnl + AC_REQUIRE([AC_PROG_RANLIB])dnl + AC_REQUIRE([gl_VISIBILITY])dnl + AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl + AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl + AC_REQUIRE([gt_TYPE_WCHAR_T])dnl + AC_REQUIRE([gt_TYPE_WINT_T])dnl + AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) + AC_REQUIRE([gt_TYPE_INTMAX_T]) + AC_REQUIRE([gt_PRINTF_POSIX]) + AC_REQUIRE([gl_GLIBC21])dnl + AC_REQUIRE([gl_XSIZE])dnl + AC_REQUIRE([gt_INTL_MACOSX])dnl + + AC_CHECK_TYPE([ptrdiff_t], , + [AC_DEFINE([ptrdiff_t], [long], + [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) + ]) + AC_CHECK_HEADERS([stddef.h stdlib.h string.h]) + AC_CHECK_FUNCS([asprintf fwprintf putenv setenv setlocale snprintf wcslen]) + + dnl Use the _snprintf function only if it is declared (because on NetBSD it + dnl is defined as a weak alias of snprintf; we prefer to use the latter). + gt_CHECK_DECL(_snprintf, [#include <stdio.h>]) + gt_CHECK_DECL(_snwprintf, [#include <stdio.h>]) + + dnl Use the *_unlocked functions only if they are declared. + dnl (because some of them were defined without being declared in Solaris + dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built + dnl on Solaris 2.5.1 to run on Solaris 2.6). + dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. + gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>]) + + case $gt_cv_func_printf_posix in + *yes) HAVE_POSIX_PRINTF=1 ;; + *) HAVE_POSIX_PRINTF=0 ;; + esac + AC_SUBST([HAVE_POSIX_PRINTF]) + if test "$ac_cv_func_asprintf" = yes; then + HAVE_ASPRINTF=1 + else + HAVE_ASPRINTF=0 + fi + AC_SUBST([HAVE_ASPRINTF]) + if test "$ac_cv_func_snprintf" = yes; then + HAVE_SNPRINTF=1 + else + HAVE_SNPRINTF=0 + fi + AC_SUBST([HAVE_SNPRINTF]) + if test "$ac_cv_func_wprintf" = yes; then + HAVE_WPRINTF=1 + else + HAVE_WPRINTF=0 + fi + AC_SUBST([HAVE_WPRINTF]) + + AM_LANGINFO_CODESET + gt_LC_MESSAGES + + dnl Compilation on mingw and Cygwin needs special Makefile rules, because + dnl 1. when we install a shared library, we must arrange to export + dnl auxiliary pointer variables for every exported variable, + dnl 2. when we install a shared library and a static library simultaneously, + dnl the include file specifies __declspec(dllimport) and therefore we + dnl must arrange to define the auxiliary pointer variables for the + dnl exported variables _also_ in the static library. + if test "$enable_shared" = yes; then + case "$host_os" in + mingw* | cygwin*) is_woe32dll=yes ;; + *) is_woe32dll=no ;; + esac + else + is_woe32dll=no + fi + WOE32DLL=$is_woe32dll + AC_SUBST([WOE32DLL]) + + dnl On mingw and Cygwin, we can activate special Makefile rules which add + dnl version information to the shared libraries and executables. + case "$host_os" in + mingw* | cygwin*) is_woe32=yes ;; + *) is_woe32=no ;; + esac + WOE32=$is_woe32 + AC_SUBST([WOE32]) + if test $WOE32 = yes; then + dnl Check for a program that compiles Windows resource files. + AC_CHECK_TOOL([WINDRES], [windres]) + fi + + dnl Determine whether when creating a library, "-lc" should be passed to + dnl libtool or not. On many platforms, it is required for the libtool option + dnl -no-undefined to work. On HP-UX, however, the -lc - stored by libtool + dnl in the *.la files - makes it impossible to create multithreaded programs, + dnl because libtool also reorders the -lc to come before the -pthread, and + dnl this disables pthread_create() <http://docs.hp.com/en/1896/pthreads.html>. + case "$host_os" in + hpux*) LTLIBC="" ;; + *) LTLIBC="-lc" ;; + esac + AC_SUBST([LTLIBC]) + + dnl Rename some macros and functions used for locking. + AH_BOTTOM([ +#define __libc_lock_t gl_lock_t +#define __libc_lock_define gl_lock_define +#define __libc_lock_define_initialized gl_lock_define_initialized +#define __libc_lock_init gl_lock_init +#define __libc_lock_lock gl_lock_lock +#define __libc_lock_unlock gl_lock_unlock +#define __libc_lock_recursive_t gl_recursive_lock_t +#define __libc_lock_define_recursive gl_recursive_lock_define +#define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized +#define __libc_lock_init_recursive gl_recursive_lock_init +#define __libc_lock_lock_recursive gl_recursive_lock_lock +#define __libc_lock_unlock_recursive gl_recursive_lock_unlock +#define glthread_in_use libintl_thread_in_use +#define glthread_lock_init libintl_lock_init +#define glthread_lock_lock libintl_lock_lock +#define glthread_lock_unlock libintl_lock_unlock +#define glthread_lock_destroy libintl_lock_destroy +#define glthread_rwlock_init libintl_rwlock_init +#define glthread_rwlock_rdlock libintl_rwlock_rdlock +#define glthread_rwlock_wrlock libintl_rwlock_wrlock +#define glthread_rwlock_unlock libintl_rwlock_unlock +#define glthread_rwlock_destroy libintl_rwlock_destroy +#define glthread_recursive_lock_init libintl_recursive_lock_init +#define glthread_recursive_lock_lock libintl_recursive_lock_lock +#define glthread_recursive_lock_unlock libintl_recursive_lock_unlock +#define glthread_recursive_lock_destroy libintl_recursive_lock_destroy +#define glthread_once libintl_once +#define glthread_once_call libintl_once_call +#define glthread_once_singlethreaded libintl_once_singlethreaded +]) +]) + + +dnl Checks for the core files of the intl subdirectory: +dnl dcigettext.c +dnl eval-plural.h +dnl explodename.c +dnl finddomain.c +dnl gettextP.h +dnl gmo.h +dnl hash-string.h hash-string.c +dnl l10nflist.c +dnl libgnuintl.h.in (except the *printf stuff) +dnl loadinfo.h +dnl loadmsgcat.c +dnl localealias.c +dnl log.c +dnl plural-exp.h plural-exp.c +dnl plural.y +dnl Used by libglocale. +AC_DEFUN([gt_INTL_SUBDIR_CORE], +[ + AC_REQUIRE([AC_C_INLINE])dnl + AC_REQUIRE([AC_TYPE_SIZE_T])dnl + AC_REQUIRE([gl_AC_HEADER_STDINT_H]) + AC_REQUIRE([AC_FUNC_ALLOCA])dnl + AC_REQUIRE([AC_FUNC_MMAP])dnl + AC_REQUIRE([gt_INTDIV0])dnl + AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl + AC_REQUIRE([gt_INTTYPES_PRI])dnl + AC_REQUIRE([gl_LOCK])dnl + + AC_TRY_LINK( + [int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }], + [], + [AC_DEFINE([HAVE_BUILTIN_EXPECT], 1, + [Define to 1 if the compiler understands __builtin_expect.])]) + + AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h]) + AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \ + stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \ + argz_next __fsetlocking]) + + dnl Use the *_unlocked functions only if they are declared. + dnl (because some of them were defined without being declared in Solaris + dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built + dnl on Solaris 2.5.1 to run on Solaris 2.6). + dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. + gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>]) + gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>]) + + AM_ICONV + + dnl glibc >= 2.4 has a NL_LOCALE_NAME macro when _GNU_SOURCE is defined, + dnl and a _NL_LOCALE_NAME macro always. + AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name, + [AC_TRY_LINK([#include <langinfo.h> +#include <locale.h>], + [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES)); + return !cs; + ], + gt_cv_nl_locale_name=yes, + gt_cv_nl_locale_name=no) + ]) + if test $gt_cv_nl_locale_name = yes; then + AC_DEFINE(HAVE_NL_LOCALE_NAME, 1, + [Define if you have <langinfo.h> and it defines the NL_LOCALE_NAME macro if _GNU_SOURCE is defined.]) + fi + + dnl intl/plural.c is generated from intl/plural.y. It requires bison, + dnl because plural.y uses bison specific features. It requires at least + dnl bison-1.26 because earlier versions generate a plural.c that doesn't + dnl compile. + dnl bison is only needed for the maintainer (who touches plural.y). But in + dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put + dnl the rule in general Makefile. Now, some people carelessly touch the + dnl files or have a broken "make" program, hence the plural.c rule will + dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not + dnl present or too old. + AC_CHECK_PROGS([INTLBISON], [bison]) + if test -z "$INTLBISON"; then + ac_verc_fail=yes + else + dnl Found it, now check the version. + AC_MSG_CHECKING([version of bison]) +changequote(<<,>>)dnl + ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` + case $ac_prog_version in + '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; + 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) +changequote([,])dnl + ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; + *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; + esac + AC_MSG_RESULT([$ac_prog_version]) + fi + if test $ac_verc_fail = yes; then + INTLBISON=: + fi +]) + + +dnl gt_CHECK_DECL(FUNC, INCLUDES) +dnl Check whether a function is declared. +AC_DEFUN([gt_CHECK_DECL], +[ + AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, + [AC_TRY_COMPILE([$2], [ +#ifndef $1 + char *p = (char *) $1; +#endif +], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) + if test $ac_cv_have_decl_$1 = yes; then + gt_value=1 + else + gt_value=0 + fi + AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], + [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) +]) diff --git a/m4/intldir.m4 b/m4/intldir.m4 new file mode 100644 index 0000000..ac687d4 --- /dev/null +++ b/m4/intldir.m4 @@ -0,0 +1,21 @@ +# -*- buffer-read-only: t -*- vi: set ro: +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# intldir.m4 serial 1 (gettext-0.16) +dnl Copyright (C) 2006 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +AC_PREREQ(2.52) + +dnl Tells the AM_GNU_GETTEXT macro to consider an intl/ directory. +AC_DEFUN([AM_GNU_GETTEXT_INTL_SUBDIR], []) diff --git a/m4/intlmacosx.m4 b/m4/intlmacosx.m4 new file mode 100644 index 0000000..2fe4c81 --- /dev/null +++ b/m4/intlmacosx.m4 @@ -0,0 +1,53 @@ +# -*- buffer-read-only: t -*- vi: set ro: +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# intlmacosx.m4 serial 1 (gettext-0.17) +dnl Copyright (C) 2004-2007 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Checks for special options needed on MacOS X. +dnl Defines INTL_MACOSX_LIBS. +AC_DEFUN([gt_INTL_MACOSX], +[ + dnl Check for API introduced in MacOS X 10.2. + AC_CACHE_CHECK([for CFPreferencesCopyAppValue], + gt_cv_func_CFPreferencesCopyAppValue, + [gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>], + [CFPreferencesCopyAppValue(NULL, NULL)], + [gt_cv_func_CFPreferencesCopyAppValue=yes], + [gt_cv_func_CFPreferencesCopyAppValue=no]) + LIBS="$gt_save_LIBS"]) + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then + AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, + [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) + fi + dnl Check for API introduced in MacOS X 10.3. + AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, + [gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();], + [gt_cv_func_CFLocaleCopyCurrent=yes], + [gt_cv_func_CFLocaleCopyCurrent=no]) + LIBS="$gt_save_LIBS"]) + if test $gt_cv_func_CFLocaleCopyCurrent = yes; then + AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, + [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) + fi + INTL_MACOSX_LIBS= + if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + fi + AC_SUBST([INTL_MACOSX_LIBS]) +]) diff --git a/m4/intmax.m4 b/m4/intmax.m4 new file mode 100644 index 0000000..60144f7 --- /dev/null +++ b/m4/intmax.m4 @@ -0,0 +1,35 @@ +# -*- buffer-read-only: t -*- vi: set ro: +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# intmax.m4 serial 3 (gettext-0.16) +dnl Copyright (C) 2002-2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. +dnl Test whether the system has the 'intmax_t' type, but don't attempt to +dnl find a replacement if it is lacking. + +AC_DEFUN([gt_TYPE_INTMAX_T], +[ + AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) + AC_REQUIRE([gl_AC_HEADER_STDINT_H]) + AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t, + [AC_TRY_COMPILE([ +#include <stddef.h> +#include <stdlib.h> +#if HAVE_STDINT_H_WITH_UINTMAX +#include <stdint.h> +#endif +#if HAVE_INTTYPES_H_WITH_UINTMAX +#include <inttypes.h> +#endif +], [intmax_t x = -1; + return !x;], + gt_cv_c_intmax_t=yes, + gt_cv_c_intmax_t=no)]) + if test $gt_cv_c_intmax_t = yes; then + AC_DEFINE(HAVE_INTMAX_T, 1, + [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.]) + fi +]) diff --git a/m4/intmax_t.m4 b/m4/intmax_t.m4 new file mode 120000 index 0000000..364c709 --- /dev/null +++ b/m4/intmax_t.m4 @@ -0,0 +1 @@ +../gnulib/m4/intmax_t.m4
\ No newline at end of file diff --git a/m4/inttostr.m4 b/m4/inttostr.m4 new file mode 120000 index 0000000..f3457a7 --- /dev/null +++ b/m4/inttostr.m4 @@ -0,0 +1 @@ +../gnulib/m4/inttostr.m4
\ No newline at end of file diff --git a/m4/inttypes-pri.m4 b/m4/inttypes-pri.m4 new file mode 120000 index 0000000..1f39a12 --- /dev/null +++ b/m4/inttypes-pri.m4 @@ -0,0 +1 @@ +../gnulib/m4/inttypes-pri.m4
\ No newline at end of file diff --git a/m4/inttypes.m4 b/m4/inttypes.m4 new file mode 120000 index 0000000..04bd19b --- /dev/null +++ b/m4/inttypes.m4 @@ -0,0 +1 @@ +../gnulib/m4/inttypes.m4
\ No newline at end of file diff --git a/m4/inttypes_h.m4 b/m4/inttypes_h.m4 new file mode 120000 index 0000000..12be42c --- /dev/null +++ b/m4/inttypes_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/inttypes_h.m4
\ No newline at end of file diff --git a/m4/iswblank.m4 b/m4/iswblank.m4 new file mode 120000 index 0000000..cc66fb5 --- /dev/null +++ b/m4/iswblank.m4 @@ -0,0 +1 @@ +../gnulib/m4/iswblank.m4
\ No newline at end of file diff --git a/m4/langinfo_h.m4 b/m4/langinfo_h.m4 new file mode 120000 index 0000000..3447b64 --- /dev/null +++ b/m4/langinfo_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/langinfo_h.m4
\ No newline at end of file diff --git a/m4/largefile.m4 b/m4/largefile.m4 new file mode 120000 index 0000000..f3ce091 --- /dev/null +++ b/m4/largefile.m4 @@ -0,0 +1 @@ +../gnulib/m4/largefile.m4
\ No newline at end of file diff --git a/m4/lib-ld.m4 b/m4/lib-ld.m4 new file mode 120000 index 0000000..20e1721 --- /dev/null +++ b/m4/lib-ld.m4 @@ -0,0 +1 @@ +../gnulib/m4/lib-ld.m4
\ No newline at end of file diff --git a/m4/lib-link.m4 b/m4/lib-link.m4 new file mode 120000 index 0000000..d79d326 --- /dev/null +++ b/m4/lib-link.m4 @@ -0,0 +1 @@ +../gnulib/m4/lib-link.m4
\ No newline at end of file diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4 new file mode 120000 index 0000000..c1854ec --- /dev/null +++ b/m4/lib-prefix.m4 @@ -0,0 +1 @@ +../gnulib/m4/lib-prefix.m4
\ No newline at end of file diff --git a/m4/libsigsegv.m4 b/m4/libsigsegv.m4 new file mode 120000 index 0000000..fdd8d27 --- /dev/null +++ b/m4/libsigsegv.m4 @@ -0,0 +1 @@ +../gnulib/m4/libsigsegv.m4
\ No newline at end of file diff --git a/m4/libunistring-base.m4 b/m4/libunistring-base.m4 new file mode 120000 index 0000000..11c4616 --- /dev/null +++ b/m4/libunistring-base.m4 @@ -0,0 +1 @@ +../gnulib/m4/libunistring-base.m4
\ No newline at end of file diff --git a/m4/localcharset.m4 b/m4/localcharset.m4 new file mode 120000 index 0000000..780defa --- /dev/null +++ b/m4/localcharset.m4 @@ -0,0 +1 @@ +../gnulib/m4/localcharset.m4
\ No newline at end of file diff --git a/m4/locale-fr.m4 b/m4/locale-fr.m4 new file mode 120000 index 0000000..b7bcfb7 --- /dev/null +++ b/m4/locale-fr.m4 @@ -0,0 +1 @@ +../gnulib/m4/locale-fr.m4
\ No newline at end of file diff --git a/m4/locale-ja.m4 b/m4/locale-ja.m4 new file mode 120000 index 0000000..2124939 --- /dev/null +++ b/m4/locale-ja.m4 @@ -0,0 +1 @@ +../gnulib/m4/locale-ja.m4
\ No newline at end of file diff --git a/m4/locale-tr.m4 b/m4/locale-tr.m4 new file mode 120000 index 0000000..717c3b8 --- /dev/null +++ b/m4/locale-tr.m4 @@ -0,0 +1 @@ +../gnulib/m4/locale-tr.m4
\ No newline at end of file diff --git a/m4/locale-zh.m4 b/m4/locale-zh.m4 new file mode 120000 index 0000000..8305d54 --- /dev/null +++ b/m4/locale-zh.m4 @@ -0,0 +1 @@ +../gnulib/m4/locale-zh.m4
\ No newline at end of file diff --git a/m4/locale_h.m4 b/m4/locale_h.m4 new file mode 120000 index 0000000..158aaf7 --- /dev/null +++ b/m4/locale_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/locale_h.m4
\ No newline at end of file diff --git a/m4/lock.m4 b/m4/lock.m4 new file mode 100644 index 0000000..55a2bc9 --- /dev/null +++ b/m4/lock.m4 @@ -0,0 +1,318 @@ +# -*- buffer-read-only: t -*- vi: set ro: +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# lock.m4 serial 7 (gettext-0.17) +dnl Copyright (C) 2005-2007 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl Tests for a multithreading library to be used. +dnl Defines at most one of the macros USE_POSIX_THREADS, USE_SOLARIS_THREADS, +dnl USE_PTH_THREADS, USE_WIN32_THREADS +dnl Sets the variables LIBTHREAD and LTLIBTHREAD to the linker options for use +dnl in a Makefile (LIBTHREAD for use without libtool, LTLIBTHREAD for use with +dnl libtool). +dnl Sets the variables LIBMULTITHREAD and LTLIBMULTITHREAD similarly, for +dnl programs that really need multithread functionality. The difference +dnl between LIBTHREAD and LIBMULTITHREAD is that on platforms supporting weak +dnl symbols, typically LIBTHREAD="" whereas LIBMULTITHREAD="-lpthread". +dnl Adds to CPPFLAGS the flag -D_REENTRANT or -D_THREAD_SAFE if needed for +dnl multithread-safe programs. + +AC_DEFUN([gl_LOCK_EARLY], +[ + AC_REQUIRE([gl_LOCK_EARLY_BODY]) +]) + +dnl The guts of gl_LOCK_EARLY. Needs to be expanded only once. + +AC_DEFUN([gl_LOCK_EARLY_BODY], +[ + dnl Ordering constraints: This macro modifies CPPFLAGS in a way that + dnl influences the result of the autoconf tests that test for *_unlocked + dnl declarations, on AIX 5 at least. Therefore it must come early. + AC_BEFORE([$0], [gl_FUNC_GLIBC_UNLOCKED_IO])dnl + AC_BEFORE([$0], [gl_ARGP])dnl + + AC_REQUIRE([AC_CANONICAL_HOST]) + dnl _GNU_SOURCE is needed for pthread_rwlock_t on glibc systems. + dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes + dnl AC_GNU_SOURCE. + m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], + [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])], + [AC_REQUIRE([AC_GNU_SOURCE])]) + dnl Check for multithreading. + AC_ARG_ENABLE(threads, +AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API]) +AC_HELP_STRING([--disable-threads], [build without multithread safety]), + [gl_use_threads=$enableval], + [case "$host_os" in + dnl Disable multithreading by default on OSF/1, because it interferes + dnl with fork()/exec(): When msgexec is linked with -lpthread, its child + dnl process gets an endless segmentation fault inside execvp(). + osf*) gl_use_threads=no ;; + *) gl_use_threads=yes ;; + esac + ]) + if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then + # For using <pthread.h>: + case "$host_os" in + osf*) + # On OSF/1, the compiler needs the flag -D_REENTRANT so that it + # groks <pthread.h>. cc also understands the flag -pthread, but + # we don't use it because 1. gcc-2.95 doesn't understand -pthread, + # 2. putting a flag into CPPFLAGS that has an effect on the linker + # causes the AC_TRY_LINK test below to succeed unexpectedly, + # leading to wrong values of LIBTHREAD and LTLIBTHREAD. + CPPFLAGS="$CPPFLAGS -D_REENTRANT" + ;; + esac + # Some systems optimize for single-threaded programs by default, and + # need special flags to disable these optimizations. For example, the + # definition of 'errno' in <errno.h>. + case "$host_os" in + aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; + solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; + esac + fi +]) + +dnl The guts of gl_LOCK. Needs to be expanded only once. + +AC_DEFUN([gl_LOCK_BODY], +[ + AC_REQUIRE([gl_LOCK_EARLY_BODY]) + gl_threads_api=none + LIBTHREAD= + LTLIBTHREAD= + LIBMULTITHREAD= + LTLIBMULTITHREAD= + if test "$gl_use_threads" != no; then + dnl Check whether the compiler and linker support weak declarations. + AC_MSG_CHECKING([whether imported symbols can be declared weak]) + gl_have_weak=no + AC_TRY_LINK([extern void xyzzy (); +#pragma weak xyzzy], [xyzzy();], [gl_have_weak=yes]) + AC_MSG_RESULT([$gl_have_weak]) + if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then + # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that + # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY. + AC_CHECK_HEADER(pthread.h, gl_have_pthread_h=yes, gl_have_pthread_h=no) + if test "$gl_have_pthread_h" = yes; then + # Other possible tests: + # -lpthreads (FSU threads, PCthreads) + # -lgthreads + gl_have_pthread= + # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist + # in libc. IRIX 6.5 has the first one in both libc and libpthread, but + # the second one only in libpthread, and lock.c needs it. + AC_TRY_LINK([#include <pthread.h>], + [pthread_mutex_lock((pthread_mutex_t*)0); + pthread_mutexattr_init((pthread_mutexattr_t*)0);], + [gl_have_pthread=yes]) + # Test for libpthread by looking for pthread_kill. (Not pthread_self, + # since it is defined as a macro on OSF/1.) + if test -n "$gl_have_pthread"; then + # The program links fine without libpthread. But it may actually + # need to link with libpthread in order to create multiple threads. + AC_CHECK_LIB(pthread, pthread_kill, + [LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread + # On Solaris and HP-UX, most pthread functions exist also in libc. + # Therefore pthread_in_use() needs to actually try to create a + # thread: pthread_create from libc will fail, whereas + # pthread_create will actually create a thread. + case "$host_os" in + solaris* | hpux*) + AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], 1, + [Define if the pthread_in_use() detection is hard.]) + esac + ]) + else + # Some library is needed. Try libpthread and libc_r. + AC_CHECK_LIB(pthread, pthread_kill, + [gl_have_pthread=yes + LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread + LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread]) + if test -z "$gl_have_pthread"; then + # For FreeBSD 4. + AC_CHECK_LIB(c_r, pthread_kill, + [gl_have_pthread=yes + LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r + LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r]) + fi + fi + if test -n "$gl_have_pthread"; then + gl_threads_api=posix + AC_DEFINE([USE_POSIX_THREADS], 1, + [Define if the POSIX multithreading library can be used.]) + if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then + if test $gl_have_weak = yes; then + AC_DEFINE([USE_POSIX_THREADS_WEAK], 1, + [Define if references to the POSIX multithreading library should be made weak.]) + LIBTHREAD= + LTLIBTHREAD= + fi + fi + # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the + # pthread_rwlock_* functions. + AC_CHECK_TYPE([pthread_rwlock_t], + [AC_DEFINE([HAVE_PTHREAD_RWLOCK], 1, + [Define if the POSIX multithreading library has read/write locks.])], + [], + [#include <pthread.h>]) + # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. + AC_TRY_COMPILE([#include <pthread.h>], + [#if __FreeBSD__ == 4 +error "No, in FreeBSD 4.0 recursive mutexes actually don't work." +#else +int x = (int)PTHREAD_MUTEX_RECURSIVE; +return !x; +#endif], + [AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], 1, + [Define if the <pthread.h> defines PTHREAD_MUTEX_RECURSIVE.])]) + fi + fi + fi + if test -z "$gl_have_pthread"; then + if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then + gl_have_solaristhread= + gl_save_LIBS="$LIBS" + LIBS="$LIBS -lthread" + AC_TRY_LINK([#include <thread.h> +#include <synch.h>], + [thr_self();], + [gl_have_solaristhread=yes]) + LIBS="$gl_save_LIBS" + if test -n "$gl_have_solaristhread"; then + gl_threads_api=solaris + LIBTHREAD=-lthread + LTLIBTHREAD=-lthread + LIBMULTITHREAD="$LIBTHREAD" + LTLIBMULTITHREAD="$LTLIBTHREAD" + AC_DEFINE([USE_SOLARIS_THREADS], 1, + [Define if the old Solaris multithreading library can be used.]) + if test $gl_have_weak = yes; then + AC_DEFINE([USE_SOLARIS_THREADS_WEAK], 1, + [Define if references to the old Solaris multithreading library should be made weak.]) + LIBTHREAD= + LTLIBTHREAD= + fi + fi + fi + fi + if test "$gl_use_threads" = pth; then + gl_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_LINKFLAGS(pth) + gl_have_pth= + gl_save_LIBS="$LIBS" + LIBS="$LIBS -lpth" + AC_TRY_LINK([#include <pth.h>], [pth_self();], gl_have_pth=yes) + LIBS="$gl_save_LIBS" + if test -n "$gl_have_pth"; then + gl_threads_api=pth + LIBTHREAD="$LIBPTH" + LTLIBTHREAD="$LTLIBPTH" + LIBMULTITHREAD="$LIBTHREAD" + LTLIBMULTITHREAD="$LTLIBTHREAD" + AC_DEFINE([USE_PTH_THREADS], 1, + [Define if the GNU Pth multithreading library can be used.]) + if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then + if test $gl_have_weak = yes; then + AC_DEFINE([USE_PTH_THREADS_WEAK], 1, + [Define if references to the GNU Pth multithreading library should be made weak.]) + LIBTHREAD= + LTLIBTHREAD= + fi + fi + else + CPPFLAGS="$gl_save_CPPFLAGS" + fi + fi + if test -z "$gl_have_pthread"; then + if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then + if { case "$host_os" in + mingw*) true;; + *) false;; + esac + }; then + gl_threads_api=win32 + AC_DEFINE([USE_WIN32_THREADS], 1, + [Define if the Win32 multithreading API can be used.]) + fi + fi + fi + fi + AC_MSG_CHECKING([for multithread API to use]) + AC_MSG_RESULT([$gl_threads_api]) + AC_SUBST(LIBTHREAD) + AC_SUBST(LTLIBTHREAD) + AC_SUBST(LIBMULTITHREAD) + AC_SUBST(LTLIBMULTITHREAD) +]) + +AC_DEFUN([gl_LOCK], +[ + AC_REQUIRE([gl_LOCK_EARLY]) + AC_REQUIRE([gl_LOCK_BODY]) + gl_PREREQ_LOCK +]) + +# Prerequisites of lib/lock.c. +AC_DEFUN([gl_PREREQ_LOCK], [ + AC_REQUIRE([AC_C_INLINE]) +]) + +dnl Survey of platforms: +dnl +dnl Platform Available Compiler Supports test-lock +dnl flavours option weak result +dnl --------------- --------- --------- -------- --------- +dnl Linux 2.4/glibc posix -lpthread Y OK +dnl +dnl GNU Hurd/glibc posix +dnl +dnl FreeBSD 5.3 posix -lc_r Y +dnl posix -lkse ? Y +dnl posix -lpthread ? Y +dnl posix -lthr Y +dnl +dnl FreeBSD 5.2 posix -lc_r Y +dnl posix -lkse Y +dnl posix -lthr Y +dnl +dnl FreeBSD 4.0,4.10 posix -lc_r Y OK +dnl +dnl NetBSD 1.6 -- +dnl +dnl OpenBSD 3.4 posix -lpthread Y OK +dnl +dnl MacOS X 10.[123] posix -lpthread Y OK +dnl +dnl Solaris 7,8,9 posix -lpthread Y Sol 7,8: 0.0; Sol 9: OK +dnl solaris -lthread Y Sol 7,8: 0.0; Sol 9: OK +dnl +dnl HP-UX 11 posix -lpthread N (cc) OK +dnl Y (gcc) +dnl +dnl IRIX 6.5 posix -lpthread Y 0.5 +dnl +dnl AIX 4.3,5.1 posix -lpthread N AIX 4: 0.5; AIX 5: OK +dnl +dnl OSF/1 4.0,5.1 posix -pthread (cc) N OK +dnl -lpthread (gcc) Y +dnl +dnl Cygwin posix -lpthread Y OK +dnl +dnl Any of the above pth -lpth 0.0 +dnl +dnl Mingw win32 N OK +dnl +dnl BeOS 5 -- +dnl +dnl The test-lock result shows what happens if in test-lock.c EXPLICIT_YIELD is +dnl turned off: +dnl OK if all three tests terminate OK, +dnl 0.5 if the first test terminates OK but the second one loops endlessly, +dnl 0.0 if the first test already loops endlessly. diff --git a/m4/longlong.m4 b/m4/longlong.m4 new file mode 120000 index 0000000..5273874 --- /dev/null +++ b/m4/longlong.m4 @@ -0,0 +1 @@ +../gnulib/m4/longlong.m4
\ No newline at end of file diff --git a/m4/lstat.m4 b/m4/lstat.m4 new file mode 120000 index 0000000..821e852 --- /dev/null +++ b/m4/lstat.m4 @@ -0,0 +1 @@ +../gnulib/m4/lstat.m4
\ No newline at end of file diff --git a/m4/malloc.m4 b/m4/malloc.m4 new file mode 120000 index 0000000..b21f3a9 --- /dev/null +++ b/m4/malloc.m4 @@ -0,0 +1 @@ +../gnulib/m4/malloc.m4
\ No newline at end of file diff --git a/m4/malloca.m4 b/m4/malloca.m4 new file mode 120000 index 0000000..15dbd22 --- /dev/null +++ b/m4/malloca.m4 @@ -0,0 +1 @@ +../gnulib/m4/malloca.m4
\ No newline at end of file diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 new file mode 120000 index 0000000..2c653ac --- /dev/null +++ b/m4/manywarnings.m4 @@ -0,0 +1 @@ +../gnulib/m4/manywarnings.m4
\ No newline at end of file diff --git a/m4/math_h.m4 b/m4/math_h.m4 new file mode 120000 index 0000000..63a9d68 --- /dev/null +++ b/m4/math_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/math_h.m4
\ No newline at end of file diff --git a/m4/mbchar.m4 b/m4/mbchar.m4 new file mode 120000 index 0000000..ca5e2d8 --- /dev/null +++ b/m4/mbchar.m4 @@ -0,0 +1 @@ +../gnulib/m4/mbchar.m4
\ No newline at end of file diff --git a/m4/mbiter.m4 b/m4/mbiter.m4 new file mode 120000 index 0000000..5b56bf4 --- /dev/null +++ b/m4/mbiter.m4 @@ -0,0 +1 @@ +../gnulib/m4/mbiter.m4
\ No newline at end of file diff --git a/m4/mbrtowc.m4 b/m4/mbrtowc.m4 new file mode 120000 index 0000000..106bb3d --- /dev/null +++ b/m4/mbrtowc.m4 @@ -0,0 +1 @@ +../gnulib/m4/mbrtowc.m4
\ No newline at end of file diff --git a/m4/mbsinit.m4 b/m4/mbsinit.m4 new file mode 120000 index 0000000..9a9d00b --- /dev/null +++ b/m4/mbsinit.m4 @@ -0,0 +1 @@ +../gnulib/m4/mbsinit.m4
\ No newline at end of file diff --git a/m4/mbslen.m4 b/m4/mbslen.m4 new file mode 120000 index 0000000..79af308 --- /dev/null +++ b/m4/mbslen.m4 @@ -0,0 +1 @@ +../gnulib/m4/mbslen.m4
\ No newline at end of file diff --git a/m4/mbsrtowcs.m4 b/m4/mbsrtowcs.m4 new file mode 120000 index 0000000..38636f1 --- /dev/null +++ b/m4/mbsrtowcs.m4 @@ -0,0 +1 @@ +../gnulib/m4/mbsrtowcs.m4
\ No newline at end of file diff --git a/m4/mbstate_t.m4 b/m4/mbstate_t.m4 new file mode 120000 index 0000000..3db6733 --- /dev/null +++ b/m4/mbstate_t.m4 @@ -0,0 +1 @@ +../gnulib/m4/mbstate_t.m4
\ No newline at end of file diff --git a/m4/mbtowc.m4 b/m4/mbtowc.m4 new file mode 120000 index 0000000..6df6d26 --- /dev/null +++ b/m4/mbtowc.m4 @@ -0,0 +1 @@ +../gnulib/m4/mbtowc.m4
\ No newline at end of file diff --git a/m4/memchr.m4 b/m4/memchr.m4 new file mode 120000 index 0000000..27de6d6 --- /dev/null +++ b/m4/memchr.m4 @@ -0,0 +1 @@ +../gnulib/m4/memchr.m4
\ No newline at end of file diff --git a/m4/mkstemp.m4 b/m4/mkstemp.m4 new file mode 120000 index 0000000..db9cf24 --- /dev/null +++ b/m4/mkstemp.m4 @@ -0,0 +1 @@ +../gnulib/m4/mkstemp.m4
\ No newline at end of file diff --git a/m4/mktime.m4 b/m4/mktime.m4 new file mode 120000 index 0000000..42ea208 --- /dev/null +++ b/m4/mktime.m4 @@ -0,0 +1 @@ +../gnulib/m4/mktime.m4
\ No newline at end of file diff --git a/m4/mmap-anon.m4 b/m4/mmap-anon.m4 new file mode 120000 index 0000000..98abb98 --- /dev/null +++ b/m4/mmap-anon.m4 @@ -0,0 +1 @@ +../gnulib/m4/mmap-anon.m4
\ No newline at end of file diff --git a/m4/mode_t.m4 b/m4/mode_t.m4 new file mode 120000 index 0000000..cb96dec --- /dev/null +++ b/m4/mode_t.m4 @@ -0,0 +1 @@ +../gnulib/m4/mode_t.m4
\ No newline at end of file diff --git a/m4/msvc-inval.m4 b/m4/msvc-inval.m4 new file mode 120000 index 0000000..2a01d01 --- /dev/null +++ b/m4/msvc-inval.m4 @@ -0,0 +1 @@ +../gnulib/m4/msvc-inval.m4
\ No newline at end of file diff --git a/m4/msvc-nothrow.m4 b/m4/msvc-nothrow.m4 new file mode 120000 index 0000000..f816adf --- /dev/null +++ b/m4/msvc-nothrow.m4 @@ -0,0 +1 @@ +../gnulib/m4/msvc-nothrow.m4
\ No newline at end of file diff --git a/m4/multiarch.m4 b/m4/multiarch.m4 new file mode 120000 index 0000000..e76c49d --- /dev/null +++ b/m4/multiarch.m4 @@ -0,0 +1 @@ +../gnulib/m4/multiarch.m4
\ No newline at end of file diff --git a/m4/nl_langinfo.m4 b/m4/nl_langinfo.m4 new file mode 120000 index 0000000..3d5175f --- /dev/null +++ b/m4/nl_langinfo.m4 @@ -0,0 +1 @@ +../gnulib/m4/nl_langinfo.m4
\ No newline at end of file diff --git a/m4/nls.m4 b/m4/nls.m4 new file mode 100644 index 0000000..36cbbe5 --- /dev/null +++ b/m4/nls.m4 @@ -0,0 +1,33 @@ +# -*- buffer-read-only: t -*- vi: set ro: +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# nls.m4 serial 3 (gettext-0.15) +dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. + +AC_PREREQ(2.50) + +AC_DEFUN([AM_NLS], +[ + AC_MSG_CHECKING([whether NLS is requested]) + dnl Default is enabled NLS + AC_ARG_ENABLE(nls, + [ --disable-nls do not use Native Language Support], + USE_NLS=$enableval, USE_NLS=yes) + AC_MSG_RESULT($USE_NLS) + AC_SUBST(USE_NLS) +]) diff --git a/m4/nocrash.m4 b/m4/nocrash.m4 new file mode 120000 index 0000000..206fda2 --- /dev/null +++ b/m4/nocrash.m4 @@ -0,0 +1 @@ +../gnulib/m4/nocrash.m4
\ No newline at end of file diff --git a/m4/open.m4 b/m4/open.m4 new file mode 120000 index 0000000..9d47e80 --- /dev/null +++ b/m4/open.m4 @@ -0,0 +1 @@ +../gnulib/m4/open.m4
\ No newline at end of file diff --git a/m4/pathmax.m4 b/m4/pathmax.m4 new file mode 120000 index 0000000..6511826 --- /dev/null +++ b/m4/pathmax.m4 @@ -0,0 +1 @@ +../gnulib/m4/pathmax.m4
\ No newline at end of file diff --git a/m4/po.m4 b/m4/po.m4 new file mode 100644 index 0000000..529e1a7 --- /dev/null +++ b/m4/po.m4 @@ -0,0 +1,451 @@ +# -*- buffer-read-only: t -*- vi: set ro: +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# po.m4 serial 15 (gettext-0.17) +dnl Copyright (C) 1995-2007 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. + +AC_PREREQ(2.50) + +dnl Checks for all prerequisites of the po subdirectory. +AC_DEFUN([AM_PO_SUBDIRS], +[ + AC_REQUIRE([AC_PROG_MAKE_SET])dnl + AC_REQUIRE([AC_PROG_INSTALL])dnl + AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake + AC_REQUIRE([AM_NLS])dnl + + dnl Release version of the gettext macros. This is used to ensure that + dnl the gettext macros and po/Makefile.in.in are in sync. + AC_SUBST([GETTEXT_MACRO_VERSION], [0.17]) + + dnl Perform the following tests also if --disable-nls has been given, + dnl because they are needed for "make dist" to work. + + dnl Search for GNU msgfmt in the PATH. + dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. + dnl The second test excludes FreeBSD msgfmt. + AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, + [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && + (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], + :) + AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) + + dnl Test whether it is GNU msgfmt >= 0.15. +changequote(,)dnl + case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; + *) MSGFMT_015=$MSGFMT ;; + esac +changequote([,])dnl + AC_SUBST([MSGFMT_015]) +changequote(,)dnl + case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; + *) GMSGFMT_015=$GMSGFMT ;; + esac +changequote([,])dnl + AC_SUBST([GMSGFMT_015]) + + dnl Search for GNU xgettext 0.12 or newer in the PATH. + dnl The first test excludes Solaris xgettext and early GNU xgettext versions. + dnl The second test excludes FreeBSD xgettext. + AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, + [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && + (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)], + :) + dnl Remove leftover from FreeBSD xgettext call. + rm -f messages.po + + dnl Test whether it is GNU xgettext >= 0.15. +changequote(,)dnl + case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; + *) XGETTEXT_015=$XGETTEXT ;; + esac +changequote([,])dnl + AC_SUBST([XGETTEXT_015]) + + dnl Search for GNU msgmerge 0.11 or newer in the PATH. + AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, + [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) + + dnl Installation directories. + dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we + dnl have to define it here, so that it can be used in po/Makefile. + test -n "$localedir" || localedir='${datadir}/locale' + AC_SUBST([localedir]) + + dnl Support for AM_XGETTEXT_OPTION. + test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= + AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) + + AC_CONFIG_COMMANDS([po-directories], [[ + for ac_file in $CONFIG_FILES; do + # Support "outfile[:infile[:infile...]]" + case "$ac_file" in + *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + esac + # PO directories have a Makefile.in generated from Makefile.in.in. + case "$ac_file" in */Makefile.in) + # Adjust a relative srcdir. + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` + ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` + # In autoconf-2.13 it is called $ac_given_srcdir. + # In autoconf-2.50 it is called $srcdir. + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" + case "$ac_given_srcdir" in + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; + /*) top_srcdir="$ac_given_srcdir" ;; + *) top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + # Treat a directory as a PO directory if and only if it has a + # POTFILES.in file. This allows packages to have multiple PO + # directories under different names or in different locations. + if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then + rm -f "$ac_dir/POTFILES" + test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" + cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" + POMAKEFILEDEPS="POTFILES.in" + # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend + # on $ac_dir but don't depend on user-specified configuration + # parameters. + if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then + # The LINGUAS file contains the set of available languages. + if test -n "$OBSOLETE_ALL_LINGUAS"; then + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" + fi + ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` + # Hide the ALL_LINGUAS assigment from automake < 1.5. + eval 'ALL_LINGUAS''=$ALL_LINGUAS_' + POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" + else + # The set of available languages was given in configure.in. + # Hide the ALL_LINGUAS assigment from automake < 1.5. + eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' + fi + # Compute POFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) + # Compute UPDATEPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) + # Compute DUMMYPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) + # Compute GMOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) + case "$ac_given_srcdir" in + .) srcdirpre= ;; + *) srcdirpre='$(srcdir)/' ;; + esac + POFILES= + UPDATEPOFILES= + DUMMYPOFILES= + GMOFILES= + for lang in $ALL_LINGUAS; do + POFILES="$POFILES $srcdirpre$lang.po" + UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" + DUMMYPOFILES="$DUMMYPOFILES $lang.nop" + GMOFILES="$GMOFILES $srcdirpre$lang.gmo" + done + # CATALOGS depends on both $ac_dir and the user's LINGUAS + # environment variable. + INST_LINGUAS= + if test -n "$ALL_LINGUAS"; then + for presentlang in $ALL_LINGUAS; do + useit=no + if test "%UNSET%" != "$LINGUAS"; then + desiredlanguages="$LINGUAS" + else + desiredlanguages="$ALL_LINGUAS" + fi + for desiredlang in $desiredlanguages; do + # Use the presentlang catalog if desiredlang is + # a. equal to presentlang, or + # b. a variant of presentlang (because in this case, + # presentlang can be used as a fallback for messages + # which are not translated in the desiredlang catalog). + case "$desiredlang" in + "$presentlang"*) useit=yes;; + esac + done + if test $useit = yes; then + INST_LINGUAS="$INST_LINGUAS $presentlang" + fi + done + fi + CATALOGS= + if test -n "$INST_LINGUAS"; then + for lang in $INST_LINGUAS; do + CATALOGS="$CATALOGS $lang.gmo" + done + fi + test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" + 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" + for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do + if test -f "$f"; then + case "$f" in + *.orig | *.bak | *~) ;; + *) cat "$f" >> "$ac_dir/Makefile" ;; + esac + fi + done + fi + ;; + esac + done]], + [# Capture the value of obsolete ALL_LINGUAS because we need it to compute + # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it + # from automake < 1.5. + eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' + # Capture the value of LINGUAS because we need it to compute CATALOGS. + LINGUAS="${LINGUAS-%UNSET%}" + ]) +]) + +dnl Postprocesses a Makefile in a directory containing PO files. +AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], +[ + # When this code is run, in config.status, two variables have already been + # set: + # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, + # - LINGUAS is the value of the environment variable LINGUAS at configure + # time. + +changequote(,)dnl + # Adjust a relative srcdir. + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` + ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` + # In autoconf-2.13 it is called $ac_given_srcdir. + # In autoconf-2.50 it is called $srcdir. + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" + case "$ac_given_srcdir" in + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; + /*) top_srcdir="$ac_given_srcdir" ;; + *) top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + + # Find a way to echo strings without interpreting backslash. + if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then + gt_echo='echo' + else + if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then + gt_echo='printf %s\n' + else + echo_func () { + cat <<EOT +$* +EOT + } + gt_echo='echo_func' + fi + fi + + # A sed script that extracts the value of VARIABLE from a Makefile. + sed_x_variable=' +# Test if the hold space is empty. +x +s/P/P/ +x +ta +# Yes it was empty. Look if we have the expected variable definition. +/^[ ]*VARIABLE[ ]*=/{ + # Seen the first line of the variable definition. + s/^[ ]*VARIABLE[ ]*=// + ba +} +bd +:a +# Here we are processing a line from the variable definition. +# Remove comment, more precisely replace it with a space. +s/#.*$/ / +# See if the line ends in a backslash. +tb +:b +s/\\$// +# Print the line, without the trailing backslash. +p +tc +# There was no trailing backslash. The end of the variable definition is +# reached. Clear the hold space. +s/^.*$// +x +bd +:c +# A trailing backslash means that the variable definition continues in the +# next line. Put a nonempty string into the hold space to indicate this. +s/^.*$/P/ +x +:d +' +changequote([,])dnl + + # Set POTFILES to the value of the Makefile variable POTFILES. + sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'` + POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"` + # Compute POTFILES_DEPS as + # $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) + POTFILES_DEPS= + for file in $POTFILES; do + POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file" + done + POMAKEFILEDEPS="" + + if test -n "$OBSOLETE_ALL_LINGUAS"; then + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" + fi + if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then + # The LINGUAS file contains the set of available languages. + ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` + POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" + else + # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. + sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'` + ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` + fi + # Hide the ALL_LINGUAS assigment from automake < 1.5. + eval 'ALL_LINGUAS''=$ALL_LINGUAS_' + # Compute POFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) + # Compute UPDATEPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) + # Compute DUMMYPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) + # Compute GMOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) + # Compute PROPERTIESFILES + # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties) + # Compute CLASSFILES + # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class) + # Compute QMFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm) + # Compute MSGFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg) + # Compute RESOURCESDLLFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll) + case "$ac_given_srcdir" in + .) srcdirpre= ;; + *) srcdirpre='$(srcdir)/' ;; + esac + POFILES= + UPDATEPOFILES= + DUMMYPOFILES= + GMOFILES= + PROPERTIESFILES= + CLASSFILES= + QMFILES= + MSGFILES= + RESOURCESDLLFILES= + for lang in $ALL_LINGUAS; do + POFILES="$POFILES $srcdirpre$lang.po" + UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" + DUMMYPOFILES="$DUMMYPOFILES $lang.nop" + GMOFILES="$GMOFILES $srcdirpre$lang.gmo" + PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties" + CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class" + QMFILES="$QMFILES $srcdirpre$lang.qm" + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` + MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" + 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/'` + RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll" + done + # CATALOGS depends on both $ac_dir and the user's LINGUAS + # environment variable. + INST_LINGUAS= + if test -n "$ALL_LINGUAS"; then + for presentlang in $ALL_LINGUAS; do + useit=no + if test "%UNSET%" != "$LINGUAS"; then + desiredlanguages="$LINGUAS" + else + desiredlanguages="$ALL_LINGUAS" + fi + for desiredlang in $desiredlanguages; do + # Use the presentlang catalog if desiredlang is + # a. equal to presentlang, or + # b. a variant of presentlang (because in this case, + # presentlang can be used as a fallback for messages + # which are not translated in the desiredlang catalog). + case "$desiredlang" in + "$presentlang"*) useit=yes;; + esac + done + if test $useit = yes; then + INST_LINGUAS="$INST_LINGUAS $presentlang" + fi + done + fi + CATALOGS= + JAVACATALOGS= + QTCATALOGS= + TCLCATALOGS= + CSHARPCATALOGS= + if test -n "$INST_LINGUAS"; then + for lang in $INST_LINGUAS; do + CATALOGS="$CATALOGS $lang.gmo" + JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties" + QTCATALOGS="$QTCATALOGS $lang.qm" + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` + TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" + 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/'` + CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" + done + fi + + 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" + if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then + # Add dependencies that cannot be formulated as a simple suffix rule. + for lang in $ALL_LINGUAS; do + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` + cat >> "$ac_file.tmp" <<EOF +$frobbedlang.msg: $lang.po + @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ + \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } +EOF + done + fi + if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then + # Add dependencies that cannot be formulated as a simple suffix rule. + for lang in $ALL_LINGUAS; do + 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/'` + cat >> "$ac_file.tmp" <<EOF +$frobbedlang/\$(DOMAIN).resources.dll: $lang.po + @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ + \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } +EOF + done + fi + if test -n "$POMAKEFILEDEPS"; then + cat >> "$ac_file.tmp" <<EOF +Makefile: $POMAKEFILEDEPS +EOF + fi + mv "$ac_file.tmp" "$ac_file" +]) + +dnl Initializes the accumulator used by AM_XGETTEXT_OPTION. +AC_DEFUN([AM_XGETTEXT_OPTION_INIT], +[ + XGETTEXT_EXTRA_OPTIONS= +]) + +dnl Registers an option to be passed to xgettext in the po subdirectory. +AC_DEFUN([AM_XGETTEXT_OPTION], +[ + AC_REQUIRE([AM_XGETTEXT_OPTION_INIT]) + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1" +]) diff --git a/m4/printf.m4 b/m4/printf.m4 new file mode 120000 index 0000000..9536355 --- /dev/null +++ b/m4/printf.m4 @@ -0,0 +1 @@ +../gnulib/m4/printf.m4
\ No newline at end of file diff --git a/m4/progtest.m4 b/m4/progtest.m4 new file mode 100644 index 0000000..6b44328 --- /dev/null +++ b/m4/progtest.m4 @@ -0,0 +1,94 @@ +# -*- buffer-read-only: t -*- vi: set ro: +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# progtest.m4 serial 4 (gettext-0.14.2) +dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper <drepper@cygnus.com>, 1996. + +AC_PREREQ(2.50) + +# Search path for a program which passes the given test. + +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) +AC_DEFUN([AM_PATH_PROG_WITH_TEST], +[ +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then + ac_executable_p="test -x" +else + ac_executable_p="test -f" +fi +rm -f conf$$.file + +# Extract the first word of "$2", so it can be a program name with args. +set dummy $2; ac_word=[$]2 +AC_MSG_CHECKING([for $ac_word]) +AC_CACHE_VAL(ac_cv_path_$1, +[case "[$]$1" in + [[\\/]]* | ?:[[\\/]]*) + ac_cv_path_$1="[$]$1" # Let the user override the test with a path. + ;; + *) + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in ifelse([$5], , $PATH, [$5]); do + IFS="$ac_save_IFS" + test -z "$ac_dir" && ac_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then + echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD + if [$3]; then + ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" + break 2 + fi + fi + done + done + IFS="$ac_save_IFS" +dnl If no 4th arg is given, leave the cache variable unset, +dnl so AC_PATH_PROGS will keep looking. +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" +])dnl + ;; +esac])dnl +$1="$ac_cv_path_$1" +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then + AC_MSG_RESULT([$]$1) +else + AC_MSG_RESULT(no) +fi +AC_SUBST($1)dnl +]) diff --git a/m4/putenv.m4 b/m4/putenv.m4 new file mode 120000 index 0000000..45106a9 --- /dev/null +++ b/m4/putenv.m4 @@ -0,0 +1 @@ +../gnulib/m4/putenv.m4
\ No newline at end of file diff --git a/m4/quote.m4 b/m4/quote.m4 new file mode 120000 index 0000000..51be561 --- /dev/null +++ b/m4/quote.m4 @@ -0,0 +1 @@ +../gnulib/m4/quote.m4
\ No newline at end of file diff --git a/m4/quotearg.m4 b/m4/quotearg.m4 new file mode 120000 index 0000000..1290bd7 --- /dev/null +++ b/m4/quotearg.m4 @@ -0,0 +1 @@ +../gnulib/m4/quotearg.m4
\ No newline at end of file diff --git a/m4/raise.m4 b/m4/raise.m4 new file mode 120000 index 0000000..a1e4b12 --- /dev/null +++ b/m4/raise.m4 @@ -0,0 +1 @@ +../gnulib/m4/raise.m4
\ No newline at end of file diff --git a/m4/readlink.m4 b/m4/readlink.m4 new file mode 120000 index 0000000..383ca4c --- /dev/null +++ b/m4/readlink.m4 @@ -0,0 +1 @@ +../gnulib/m4/readlink.m4
\ No newline at end of file diff --git a/m4/regex.m4 b/m4/regex.m4 new file mode 120000 index 0000000..1a5fefb --- /dev/null +++ b/m4/regex.m4 @@ -0,0 +1 @@ +../gnulib/m4/regex.m4
\ No newline at end of file diff --git a/m4/setenv.m4 b/m4/setenv.m4 new file mode 120000 index 0000000..67f6709 --- /dev/null +++ b/m4/setenv.m4 @@ -0,0 +1 @@ +../gnulib/m4/setenv.m4
\ No newline at end of file diff --git a/m4/setlocale.m4 b/m4/setlocale.m4 new file mode 120000 index 0000000..d1177b4 --- /dev/null +++ b/m4/setlocale.m4 @@ -0,0 +1 @@ +../gnulib/m4/setlocale.m4
\ No newline at end of file diff --git a/m4/sigaction.m4 b/m4/sigaction.m4 new file mode 120000 index 0000000..f0b4788 --- /dev/null +++ b/m4/sigaction.m4 @@ -0,0 +1 @@ +../gnulib/m4/sigaction.m4
\ No newline at end of file diff --git a/m4/signal_h.m4 b/m4/signal_h.m4 new file mode 120000 index 0000000..8b58582 --- /dev/null +++ b/m4/signal_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/signal_h.m4
\ No newline at end of file diff --git a/m4/signalblocking.m4 b/m4/signalblocking.m4 new file mode 120000 index 0000000..d895576 --- /dev/null +++ b/m4/signalblocking.m4 @@ -0,0 +1 @@ +../gnulib/m4/signalblocking.m4
\ No newline at end of file diff --git a/m4/size_max.m4 b/m4/size_max.m4 new file mode 120000 index 0000000..c51bba3 --- /dev/null +++ b/m4/size_max.m4 @@ -0,0 +1 @@ +../gnulib/m4/size_max.m4
\ No newline at end of file diff --git a/m4/sleep.m4 b/m4/sleep.m4 new file mode 120000 index 0000000..1a7fdf2 --- /dev/null +++ b/m4/sleep.m4 @@ -0,0 +1 @@ +../gnulib/m4/sleep.m4
\ No newline at end of file diff --git a/m4/snprintf.m4 b/m4/snprintf.m4 new file mode 120000 index 0000000..985cc34 --- /dev/null +++ b/m4/snprintf.m4 @@ -0,0 +1 @@ +../gnulib/m4/snprintf.m4
\ No newline at end of file diff --git a/m4/ssize_t.m4 b/m4/ssize_t.m4 new file mode 120000 index 0000000..fbf95b8 --- /dev/null +++ b/m4/ssize_t.m4 @@ -0,0 +1 @@ +../gnulib/m4/ssize_t.m4
\ No newline at end of file diff --git a/m4/stat-time.m4 b/m4/stat-time.m4 new file mode 120000 index 0000000..5734e02 --- /dev/null +++ b/m4/stat-time.m4 @@ -0,0 +1 @@ +../gnulib/m4/stat-time.m4
\ No newline at end of file diff --git a/m4/stat.m4 b/m4/stat.m4 new file mode 120000 index 0000000..06332ee --- /dev/null +++ b/m4/stat.m4 @@ -0,0 +1 @@ +../gnulib/m4/stat.m4
\ No newline at end of file diff --git a/m4/stdarg.m4 b/m4/stdarg.m4 new file mode 120000 index 0000000..fc05505 --- /dev/null +++ b/m4/stdarg.m4 @@ -0,0 +1 @@ +../gnulib/m4/stdarg.m4
\ No newline at end of file diff --git a/m4/stdbool.m4 b/m4/stdbool.m4 new file mode 120000 index 0000000..daf38cc --- /dev/null +++ b/m4/stdbool.m4 @@ -0,0 +1 @@ +../gnulib/m4/stdbool.m4
\ No newline at end of file diff --git a/m4/stddef_h.m4 b/m4/stddef_h.m4 new file mode 120000 index 0000000..f09ed93 --- /dev/null +++ b/m4/stddef_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/stddef_h.m4
\ No newline at end of file diff --git a/m4/stdint.m4 b/m4/stdint.m4 new file mode 120000 index 0000000..8754dcb --- /dev/null +++ b/m4/stdint.m4 @@ -0,0 +1 @@ +../gnulib/m4/stdint.m4
\ No newline at end of file diff --git a/m4/stdint_h.m4 b/m4/stdint_h.m4 new file mode 120000 index 0000000..6729c68 --- /dev/null +++ b/m4/stdint_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/stdint_h.m4
\ No newline at end of file diff --git a/m4/stdio_h.m4 b/m4/stdio_h.m4 new file mode 120000 index 0000000..6a31366 --- /dev/null +++ b/m4/stdio_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/stdio_h.m4
\ No newline at end of file diff --git a/m4/stdlib_h.m4 b/m4/stdlib_h.m4 new file mode 120000 index 0000000..533fa1b --- /dev/null +++ b/m4/stdlib_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/stdlib_h.m4
\ No newline at end of file diff --git a/m4/strcase.m4 b/m4/strcase.m4 new file mode 120000 index 0000000..7e9fa4b --- /dev/null +++ b/m4/strcase.m4 @@ -0,0 +1 @@ +../gnulib/m4/strcase.m4
\ No newline at end of file diff --git a/m4/strerror.m4 b/m4/strerror.m4 new file mode 120000 index 0000000..afdea40 --- /dev/null +++ b/m4/strerror.m4 @@ -0,0 +1 @@ +../gnulib/m4/strerror.m4
\ No newline at end of file diff --git a/m4/strftime.m4 b/m4/strftime.m4 new file mode 120000 index 0000000..4e09e24 --- /dev/null +++ b/m4/strftime.m4 @@ -0,0 +1 @@ +../gnulib/m4/strftime.m4
\ No newline at end of file diff --git a/m4/string_h.m4 b/m4/string_h.m4 new file mode 120000 index 0000000..8d1f649 --- /dev/null +++ b/m4/string_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/string_h.m4
\ No newline at end of file diff --git a/m4/strings_h.m4 b/m4/strings_h.m4 new file mode 120000 index 0000000..44a558b --- /dev/null +++ b/m4/strings_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/strings_h.m4
\ No newline at end of file diff --git a/m4/strndup.m4 b/m4/strndup.m4 new file mode 120000 index 0000000..88d74a7 --- /dev/null +++ b/m4/strndup.m4 @@ -0,0 +1 @@ +../gnulib/m4/strndup.m4
\ No newline at end of file diff --git a/m4/strnlen.m4 b/m4/strnlen.m4 new file mode 120000 index 0000000..1cade17 --- /dev/null +++ b/m4/strnlen.m4 @@ -0,0 +1 @@ +../gnulib/m4/strnlen.m4
\ No newline at end of file diff --git a/m4/strptime.m4 b/m4/strptime.m4 new file mode 120000 index 0000000..8d35e2e --- /dev/null +++ b/m4/strptime.m4 @@ -0,0 +1 @@ +../gnulib/m4/strptime.m4
\ No newline at end of file diff --git a/m4/strtoull.m4 b/m4/strtoull.m4 new file mode 120000 index 0000000..e34498e --- /dev/null +++ b/m4/strtoull.m4 @@ -0,0 +1 @@ +../gnulib/m4/strtoull.m4
\ No newline at end of file diff --git a/m4/strtoumax.m4 b/m4/strtoumax.m4 new file mode 120000 index 0000000..96d7557 --- /dev/null +++ b/m4/strtoumax.m4 @@ -0,0 +1 @@ +../gnulib/m4/strtoumax.m4
\ No newline at end of file diff --git a/m4/symlink.m4 b/m4/symlink.m4 new file mode 120000 index 0000000..eac325a --- /dev/null +++ b/m4/symlink.m4 @@ -0,0 +1 @@ +../gnulib/m4/symlink.m4
\ No newline at end of file diff --git a/m4/sys_socket_h.m4 b/m4/sys_socket_h.m4 new file mode 120000 index 0000000..976bc0a --- /dev/null +++ b/m4/sys_socket_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/sys_socket_h.m4
\ No newline at end of file diff --git a/m4/sys_stat_h.m4 b/m4/sys_stat_h.m4 new file mode 120000 index 0000000..fc699e9 --- /dev/null +++ b/m4/sys_stat_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/sys_stat_h.m4
\ No newline at end of file diff --git a/m4/sys_time_h.m4 b/m4/sys_time_h.m4 new file mode 120000 index 0000000..6403a0b --- /dev/null +++ b/m4/sys_time_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/sys_time_h.m4
\ No newline at end of file diff --git a/m4/sys_types_h.m4 b/m4/sys_types_h.m4 new file mode 120000 index 0000000..04b36b2 --- /dev/null +++ b/m4/sys_types_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/sys_types_h.m4
\ No newline at end of file diff --git a/m4/sys_wait_h.m4 b/m4/sys_wait_h.m4 new file mode 120000 index 0000000..d5a3068 --- /dev/null +++ b/m4/sys_wait_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/sys_wait_h.m4
\ No newline at end of file diff --git a/m4/tempname.m4 b/m4/tempname.m4 new file mode 120000 index 0000000..53b1442 --- /dev/null +++ b/m4/tempname.m4 @@ -0,0 +1 @@ +../gnulib/m4/tempname.m4
\ No newline at end of file diff --git a/m4/time_h.m4 b/m4/time_h.m4 new file mode 120000 index 0000000..96db598 --- /dev/null +++ b/m4/time_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/time_h.m4
\ No newline at end of file diff --git a/m4/time_r.m4 b/m4/time_r.m4 new file mode 120000 index 0000000..58c1714 --- /dev/null +++ b/m4/time_r.m4 @@ -0,0 +1 @@ +../gnulib/m4/time_r.m4
\ No newline at end of file diff --git a/m4/timespec.m4 b/m4/timespec.m4 new file mode 120000 index 0000000..75a10d4 --- /dev/null +++ b/m4/timespec.m4 @@ -0,0 +1 @@ +../gnulib/m4/timespec.m4
\ No newline at end of file diff --git a/m4/tm_gmtoff.m4 b/m4/tm_gmtoff.m4 new file mode 120000 index 0000000..3d3c9be --- /dev/null +++ b/m4/tm_gmtoff.m4 @@ -0,0 +1 @@ +../gnulib/m4/tm_gmtoff.m4
\ No newline at end of file diff --git a/m4/unistd_h.m4 b/m4/unistd_h.m4 new file mode 120000 index 0000000..694e463 --- /dev/null +++ b/m4/unistd_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/unistd_h.m4
\ No newline at end of file diff --git a/m4/unlocked-io.m4 b/m4/unlocked-io.m4 new file mode 120000 index 0000000..dcd6df5 --- /dev/null +++ b/m4/unlocked-io.m4 @@ -0,0 +1 @@ +../gnulib/m4/unlocked-io.m4
\ No newline at end of file diff --git a/m4/usleep.m4 b/m4/usleep.m4 new file mode 120000 index 0000000..0a180c8 --- /dev/null +++ b/m4/usleep.m4 @@ -0,0 +1 @@ +../gnulib/m4/usleep.m4
\ No newline at end of file diff --git a/m4/vasnprintf.m4 b/m4/vasnprintf.m4 new file mode 120000 index 0000000..5f22196 --- /dev/null +++ b/m4/vasnprintf.m4 @@ -0,0 +1 @@ +../gnulib/m4/vasnprintf.m4
\ No newline at end of file diff --git a/m4/version-etc.m4 b/m4/version-etc.m4 new file mode 120000 index 0000000..8f57b85 --- /dev/null +++ b/m4/version-etc.m4 @@ -0,0 +1 @@ +../gnulib/m4/version-etc.m4
\ No newline at end of file diff --git a/m4/warn-on-use.m4 b/m4/warn-on-use.m4 new file mode 120000 index 0000000..4d62443 --- /dev/null +++ b/m4/warn-on-use.m4 @@ -0,0 +1 @@ +../gnulib/m4/warn-on-use.m4
\ No newline at end of file diff --git a/m4/warnings.m4 b/m4/warnings.m4 new file mode 120000 index 0000000..10fba71 --- /dev/null +++ b/m4/warnings.m4 @@ -0,0 +1 @@ +../gnulib/m4/warnings.m4
\ No newline at end of file diff --git a/m4/wchar_h.m4 b/m4/wchar_h.m4 new file mode 120000 index 0000000..865c008 --- /dev/null +++ b/m4/wchar_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/wchar_h.m4
\ No newline at end of file diff --git a/m4/wchar_t.m4 b/m4/wchar_t.m4 new file mode 120000 index 0000000..2da1b81 --- /dev/null +++ b/m4/wchar_t.m4 @@ -0,0 +1 @@ +../gnulib/m4/wchar_t.m4
\ No newline at end of file diff --git a/m4/wcrtomb.m4 b/m4/wcrtomb.m4 new file mode 120000 index 0000000..d201ddd --- /dev/null +++ b/m4/wcrtomb.m4 @@ -0,0 +1 @@ +../gnulib/m4/wcrtomb.m4
\ No newline at end of file diff --git a/m4/wctob.m4 b/m4/wctob.m4 new file mode 120000 index 0000000..22efc4c --- /dev/null +++ b/m4/wctob.m4 @@ -0,0 +1 @@ +../gnulib/m4/wctob.m4
\ No newline at end of file diff --git a/m4/wctomb.m4 b/m4/wctomb.m4 new file mode 120000 index 0000000..e55d4f3 --- /dev/null +++ b/m4/wctomb.m4 @@ -0,0 +1 @@ +../gnulib/m4/wctomb.m4
\ No newline at end of file diff --git a/m4/wctype_h.m4 b/m4/wctype_h.m4 new file mode 120000 index 0000000..90f8b64 --- /dev/null +++ b/m4/wctype_h.m4 @@ -0,0 +1 @@ +../gnulib/m4/wctype_h.m4
\ No newline at end of file diff --git a/m4/wcwidth.m4 b/m4/wcwidth.m4 new file mode 120000 index 0000000..3959826 --- /dev/null +++ b/m4/wcwidth.m4 @@ -0,0 +1 @@ +../gnulib/m4/wcwidth.m4
\ No newline at end of file diff --git a/m4/wint_t.m4 b/m4/wint_t.m4 new file mode 120000 index 0000000..78d4dbe --- /dev/null +++ b/m4/wint_t.m4 @@ -0,0 +1 @@ +../gnulib/m4/wint_t.m4
\ No newline at end of file diff --git a/m4/xalloc.m4 b/m4/xalloc.m4 new file mode 120000 index 0000000..d879b2f --- /dev/null +++ b/m4/xalloc.m4 @@ -0,0 +1 @@ +../gnulib/m4/xalloc.m4
\ No newline at end of file diff --git a/m4/xsize.m4 b/m4/xsize.m4 new file mode 120000 index 0000000..3645c50 --- /dev/null +++ b/m4/xsize.m4 @@ -0,0 +1 @@ +../gnulib/m4/xsize.m4
\ No newline at end of file diff --git a/m4/xstrndup.m4 b/m4/xstrndup.m4 new file mode 120000 index 0000000..785bda4 --- /dev/null +++ b/m4/xstrndup.m4 @@ -0,0 +1 @@ +../gnulib/m4/xstrndup.m4
\ No newline at end of file diff --git a/m4/xstrtol.m4 b/m4/xstrtol.m4 new file mode 120000 index 0000000..0ef6edd --- /dev/null +++ b/m4/xstrtol.m4 @@ -0,0 +1 @@ +../gnulib/m4/xstrtol.m4
\ No newline at end of file |