summaryrefslogtreecommitdiffstats
path: root/gl/m4/extensions.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/extensions.m4')
-rw-r--r--gl/m4/extensions.m420
1 files changed, 15 insertions, 5 deletions
diff --git a/gl/m4/extensions.m4 b/gl/m4/extensions.m4
index 611fcfd..ba6d5e1 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__).
23AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], 23AC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS],
24[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl 24[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
25AC_BEFORE([$0], [AC_RUN_IFELSE])dnl 25AC_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.
93AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], 93AC_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])