(AC_GNU_SOURCE): New macro.

This commit is contained in:
Paul Eggert 2002-05-17 07:09:12 +00:00
parent a64dba738c
commit 1372672af0

View File

@ -1,7 +1,8 @@
# This file is part of Autoconf. -*- Autoconf -*-
# Macros that test for specific, unclassified, features.
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -340,6 +341,20 @@ AC_DEFUN([AC_SYS_POSIX_TERMIOS],
## ------------------------------------ ##
# 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])
])
# AC_CYGWIN
# ---------
# Check for Cygwin. This is a way to set the right value for