summaryrefslogtreecommitdiff
path: root/m4/gnu-source.m4
blob: edecf5ddb3c6851eb413925cbaf4f7128c721880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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])dnl
AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
AC_DEFINE([_GNU_SOURCE])
])