From: Bruno Haible Date: Thu, 4 Oct 2007 02:37:00 +0000 (+0000) Subject: Update lock.m4 from gnulib. X-Git-Tag: v0.17~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ed6df9ece42f10db565524ea53c573a1313be2e;p=thirdparty%2Fgettext.git Update lock.m4 from gnulib. --- diff --git a/gettext-runtime/m4/ChangeLog b/gettext-runtime/m4/ChangeLog index 807d30327..cad6b74e5 100644 --- a/gettext-runtime/m4/ChangeLog +++ b/gettext-runtime/m4/ChangeLog @@ -1,3 +1,16 @@ +2007-09-12 Bruno Haible + + * lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition. + (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS + is not defined. + +2007-09-12 Eric Blake + + * lock.m4 (gl_LOCK_EARLY_BODY): AC_GNU_SOURCE will be obsolete in + Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead, but provide + fallback, so that lock.m4 can be used in gettext without extensions + module. + 2007-09-08 Bruno Haible * po.m4 (AM_PO_SUBDIRS): Define GETTEXT_MACRO_VERSION. diff --git a/gettext-runtime/m4/lock.m4 b/gettext-runtime/m4/lock.m4 index 0224f2ff8..4cc585ea2 100644 --- a/gettext-runtime/m4/lock.m4 +++ b/gettext-runtime/m4/lock.m4 @@ -1,5 +1,5 @@ -# lock.m4 serial 6 (gettext-0.16) -dnl Copyright (C) 2005-2006 Free Software Foundation, Inc. +# lock.m4 serial 7 (gettext-0.16.2) +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. @@ -35,7 +35,12 @@ AC_DEFUN([gl_LOCK_EARLY_BODY], AC_BEFORE([$0], [gl_ARGP])dnl AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_GNU_SOURCE]) dnl needed for pthread_rwlock_t on glibc systems + 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])