New file, taken from gnulib, with support added for __EXTENSIONS__ a la Solaris.

This commit is contained in:
Jim Meyering committed 2003-08-07 07:36:41 +00:00
1 parent a5722af878
commit 73890aec77
1 file changed
+17
+17
View File
@@ -0,0 +1,17 @@
# AC_GNU_SOURCE
# --------------
AC_DEFUN([AC_GNU_SOURCE],
[AH_VERBATIM([_GNU_SOURCE],
[/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
#endif
/* Enable many GNU extensions on Solaris. */
#ifndef __EXTENSIONS__
# undef __EXTENSIONS__
#endif])dnl
AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
AC_DEFINE([_GNU_SOURCE])
AC_DEFINE([__EXTENSIONS__])
])