>From ff999a89d151ac2f43df80321e4ea88555bd81ec Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 22 Oct 2018 02:34:07 +0200 Subject: [PATCH 1/2] Small update from gettext. * m4/intl.m4: Update from gettext: - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit mode on AIX. - 2018-01-02: Don't use -lc explicitly when linking with libtool. - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER. --- ChangeLog | 9 +++++++++ m4/intl.m4 | 33 ++++++++++++++++++--------------- 2 files changed, 27 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9843d56..3548a53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2018-10-21 Bruno Haible + + Small update from gettext. + * m4/intl.m4: Update from gettext: + - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit + mode on AIX. + - 2018-01-02: Don't use -lc explicitly when linking with libtool. + - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER. + 2018-10-16 Bruno Haible mountlist: Remove support for Cray with UNICOS 9. diff --git a/m4/intl.m4 b/m4/intl.m4 index 42fac95..0cc18d9 100644 --- a/m4/intl.m4 +++ b/m4/intl.m4 @@ -1,5 +1,5 @@ -# intl.m4 serial 29 (gettext-0.19) -dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc. +# intl.m4 serial 32 (gettext-0.19.9) +dnl Copyright (C) 1995-2014, 2016-2018 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. @@ -29,7 +29,6 @@ AC_DEFUN([AM_INTL_SUBDIR], 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 @@ -44,6 +43,22 @@ AC_DEFUN([AM_INTL_SUBDIR], AC_REQUIRE([gt_INTL_MACOSX])dnl AC_REQUIRE([gl_EXTERN_INLINE])dnl AC_REQUIRE([gt_GL_ATTRIBUTE])dnl + AC_REQUIRE([AC_C_FLEXIBLE_ARRAY_MEMBER])dnl + + dnl In projects that use gnulib, use gl_PROG_AR_RANLIB. + dnl The '][' hides this use from 'aclocal'. + m4_ifdef([g][l_PROG_AR_RANLIB], + [AC_REQUIRE([g][l_PROG_AR_RANLIB])], + [AC_REQUIRE([AC_PROG_RANLIB]) + dnl Use Automake-documented default values for AR and ARFLAGS, but prefer + dnl ${host}-ar over ar (useful for cross-compiling). + AC_CHECK_TOOL([AR], [ar], [ar]) + if test -z "$ARFLAGS"; then + ARFLAGS='cr' + fi + AC_SUBST([AR]) + AC_SUBST([ARFLAGS]) + ]) dnl Support for automake's --enable-silent-rules. case "$enable_silent_rules" in @@ -135,18 +150,6 @@ AC_DEFUN([AM_INTL_SUBDIR], 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() . - 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 -- 2.7.4