1# Enable extensions on systems that normally disable them.
2
3dnl Copyright (C) 2003, 2006 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7
8dnl This file is only needed in autoconf <= 2.59.  Newer versions of autoconf
9dnl have a macro AC_USE_SYSTEM_EXTENSIONS with identical semantics.
10
11# gl_USE_SYSTEM_EXTENSIONS
12# ------------------------
13# Enable extensions on systems that normally disable them,
14# typically due to standards-conformance issues.
15AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], [
16  AC_BEFORE([$0], [AC_COMPILE_IFELSE])
17  AC_BEFORE([$0], [AC_RUN_IFELSE])
18
19  AC_REQUIRE([AC_GNU_SOURCE])
20  AC_REQUIRE([AC_AIX])
21  AC_REQUIRE([AC_MINIX])
22
23  AH_VERBATIM([__EXTENSIONS__],
24[/* Enable extensions on Solaris.  */
25#ifndef __EXTENSIONS__
26# undef __EXTENSIONS__
27#endif])
28  AC_DEFINE([__EXTENSIONS__])
29])
30