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