dnl Configuration for the gettext-runtime directory of GNU gettext
-dnl Copyright (C) 1995-2010, 2015-2016 Free Software Foundation, Inc.
+dnl Copyright (C) 1995-2010, 2015-2016, 2018 Free Software Foundation, Inc.
dnl
dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
AC_OBJEXT
AC_EXEEXT
+dnl For a 64-bit build on AIX, AC_PROG_RANLIB is not sufficient.
+gl_PROG_AR_RANLIB
+
dnl Make sure we see all GNU and Solaris extensions.
gl_EARLY
AM_PROG_CC_C_O
l = @INTL_LIBTOOL_SUFFIX_PREFIX@
-AR = ar
+AR = @AR@
+ARFLAGS = @ARFLAGS@
CC = @CC@
LIBTOOL = @LIBTOOL@
RANLIB = @RANLIB@
libintl.a libgnuintl.a: $(OBJECTS)
$(AM_V_at)rm -f $@
- $(AM_V_AR)$(AR) cru $@ $(OBJECTS)
+ $(AM_V_AR)$(AR) $(ARFLAGS) $@ $(OBJECTS)
$(AM_V_at)$(RANLIB) $@
libintl.la libgnuintl.la: $(OBJECTS) $(OBJECTS_RES_@WOE32@)
dnl Configuration for the GNU libasprintf library
-dnl Copyright (C) 2002-2011, 2015-2016 Free Software Foundation, Inc.
+dnl Copyright (C) 2002-2011, 2015-2016, 2018 Free Software Foundation, Inc.
dnl
dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
AC_OBJEXT
AC_EXEEXT
+dnl For a 64-bit build on AIX, AC_PROG_RANLIB is not sufficient.
+gl_PROG_AR_RANLIB
+
dnl Early checks, assembled by gnulib.
gl_EARLY
-# intl.m4 serial 31 (gettext-0.19.9)
+# 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,
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_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
yes) INTL_DEFAULT_VERBOSITY=0;;
dnl Configuration for the gettext-tools directory of GNU gettext
-dnl Copyright (C) 1995-2011, 2015-2017 Free Software Foundation, Inc.
+dnl Copyright (C) 1995-2011, 2015-2018 Free Software Foundation, Inc.
dnl
dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
AC_OBJEXT
AC_EXEEXT
+dnl For a 64-bit build on AIX, AC_PROG_RANLIB is not sufficient.
+gl_PROG_AR_RANLIB
+
dnl Make sure we see all GNU and Solaris extensions.
gl_EARLY
grgl_EARLY