diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2009-05-20 00:32:10 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2009-05-20 00:32:10 +0200 |
commit | 50b3ff7b91e78a61aca93247bee586d6d7eb27c8 (patch) | |
tree | db4c7eee24479ac7ee6888ce1562facf60159b71 /gl/m4/extensions.m4 | |
parent | 2701ccd500e60537a8c2977a81549ff33eeaef3f (diff) | |
download | monitoring-plugins-50b3ff7b91e78a61aca93247bee586d6d7eb27c8.tar.gz |
Sync with the latest Gnulib code (cb75dc5)
Signed-off-by: Holger Weiss <holger@zedat.fu-berlin.de>
Diffstat (limited to 'gl/m4/extensions.m4')
-rw-r--r-- | gl/m4/extensions.m4 | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/gl/m4/extensions.m4 b/gl/m4/extensions.m4 index 611fcfdb..ba6d5e19 100644 --- a/gl/m4/extensions.m4 +++ b/gl/m4/extensions.m4 | |||
@@ -1,7 +1,7 @@ | |||
1 | # serial 6 -*- Autoconf -*- | 1 | # serial 8 -*- Autoconf -*- |
2 | # Enable extensions on systems that normally disable them. | 2 | # Enable extensions on systems that normally disable them. |
3 | 3 | ||
4 | # Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc. | 4 | # Copyright (C) 2003, 2006-2009 Free Software Foundation, Inc. |
5 | # This file is free software; the Free Software Foundation | 5 | # This file is free software; the Free Software Foundation |
6 | # gives unlimited permission to copy and/or distribute it, | 6 | # gives unlimited permission to copy and/or distribute it, |
7 | # with or without modifications, as long as this notice is preserved. | 7 | # with or without modifications, as long as this notice is preserved. |
@@ -20,7 +20,7 @@ | |||
20 | # AC_DEFINE. The goal here is to define all known feature-enabling | 20 | # AC_DEFINE. The goal here is to define all known feature-enabling |
21 | # macros, then, if reports of conflicts are made, disable macros that | 21 | # macros, then, if reports of conflicts are made, disable macros that |
22 | # cause problems on some platforms (such as __EXTENSIONS__). | 22 | # cause problems on some platforms (such as __EXTENSIONS__). |
23 | AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], | 23 | AC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS], |
24 | [AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl | 24 | [AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl |
25 | AC_BEFORE([$0], [AC_RUN_IFELSE])dnl | 25 | AC_BEFORE([$0], [AC_RUN_IFELSE])dnl |
26 | 26 | ||
@@ -90,5 +90,15 @@ AC_BEFORE([$0], [AC_RUN_IFELSE])dnl | |||
90 | # ------------------------ | 90 | # ------------------------ |
91 | # Enable extensions on systems that normally disable them, | 91 | # Enable extensions on systems that normally disable them, |
92 | # typically due to standards-conformance issues. | 92 | # typically due to standards-conformance issues. |
93 | AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], | 93 | AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS], |
94 | [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])]) | 94 | [ |
95 | dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS. | ||
96 | dnl gnulib does not need it. But if it gets required by third-party macros | ||
97 | dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a | ||
98 | dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS". | ||
99 | dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE, | ||
100 | dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck. | ||
101 | AC_REQUIRE([AC_GNU_SOURCE]) | ||
102 | |||
103 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) | ||
104 | ]) | ||