mirror of
git://git.sv.gnu.org/autoconf
synced 2025-03-07 14:26:52 +08:00
(AC_GNU_SOURCE): New macro.
This commit is contained in:
parent
a64dba738c
commit
1372672af0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user