diff options
Diffstat (limited to 'gl/m4/lock.m4')
-rw-r--r-- | gl/m4/lock.m4 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gl/m4/lock.m4 b/gl/m4/lock.m4 index 0224f2ff..91119335 100644 --- a/gl/m4/lock.m4 +++ b/gl/m4/lock.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # lock.m4 serial 6 (gettext-0.16) | 1 | # lock.m4 serial 7 (gettext-0.17) |
2 | dnl Copyright (C) 2005-2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2005-2007 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
@@ -35,7 +35,12 @@ AC_DEFUN([gl_LOCK_EARLY_BODY], | |||
35 | AC_BEFORE([$0], [gl_ARGP])dnl | 35 | AC_BEFORE([$0], [gl_ARGP])dnl |
36 | 36 | ||
37 | AC_REQUIRE([AC_CANONICAL_HOST]) | 37 | AC_REQUIRE([AC_CANONICAL_HOST]) |
38 | AC_REQUIRE([AC_GNU_SOURCE]) dnl needed for pthread_rwlock_t on glibc systems | 38 | dnl _GNU_SOURCE is needed for pthread_rwlock_t on glibc systems. |
39 | dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes | ||
40 | dnl AC_GNU_SOURCE. | ||
41 | m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], | ||
42 | [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])], | ||
43 | [AC_REQUIRE([AC_GNU_SOURCE])]) | ||
39 | dnl Check for multithreading. | 44 | dnl Check for multithreading. |
40 | AC_ARG_ENABLE(threads, | 45 | AC_ARG_ENABLE(threads, |
41 | AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API]) | 46 | AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API]) |