maint: make update-copyright
[autoconf.git] / lib / autoconf / autoscan.m4
blobd62dcbe47fd8267c0ca920cd8ae8c04a58742f4e
1 # This file is part of Autoconf.                       -*- Autoconf -*-
2 # Interface with autoscan.
4 # Copyright (C) 2002, 2009-2016 Free Software Foundation, Inc.
6 # This file is part of Autoconf.  This program is free
7 # software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the
9 # Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
17 # Under Section 7 of GPL version 3, you are granted additional
18 # permissions described in the Autoconf Configure Script Exception,
19 # version 3.0, as published by the Free Software Foundation.
21 # You should have received a copy of the GNU General Public License
22 # and a copy of the Autoconf Configure Script Exception along with
23 # this program; see the files COPYINGv3 and COPYING.EXCEPTION
24 # respectively.  If not, see <http://www.gnu.org/licenses/>.
26 # Written by Akim Demaille.
28 # The prefix `AN' is chosen after `AutoscaN'.
30 # AN_OUTPUT(KIND, WORD, MACROS)
31 # -----------------------------
32 # Declare that the WORD, used as a KIND, requires triggering the MACROS.
33 m4_define([AN_OUTPUT], [])
36 # AN_FUNCTION(NAME, MACROS)
37 # AN_HEADER(NAME, MACROS)
38 # AN_IDENTIFIER(NAME, MACROS)
39 # AN_LIBRARY(NAME, MACROS)
40 # AN_MAKEVAR(NAME, MACROS)
41 # AN_PROGRAM(NAME, MACROS)
42 # ---------------------------
43 # If the FUNCTION/HEADER etc. is used in the package, then the MACROS
44 # should be invoked from configure.ac.
45 m4_define([AN_FUNCTION],   [AN_OUTPUT([function], $@)])
46 m4_define([AN_HEADER],     [AN_OUTPUT([header], $@)])
47 m4_define([AN_IDENTIFIER], [AN_OUTPUT([identifier], $@)])
48 m4_define([AN_LIBRARY],    [AN_OUTPUT([library], $@)])
49 m4_define([AN_MAKEVAR],    [AN_OUTPUT([makevar], $@)])
50 m4_define([AN_PROGRAM],    [AN_OUTPUT([program], $@)])