1# This file is part of Autoconf.                       -*- Autoconf -*-
2# Interface with autoscan.
3
4# Copyright (C) 2002 Free Software Foundation, Inc.
5
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)
9# any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19# 02110-1301, USA.
20
21# As a special exception, the Free Software Foundation gives unlimited
22# permission to copy, distribute and modify the configure scripts that
23# are the output of Autoconf.  You need not follow the terms of the GNU
24# General Public License when using or distributing such scripts, even
25# though portions of the text of Autoconf appear in them.  The GNU
26# General Public License (GPL) does govern all other use of the material
27# that constitutes the Autoconf program.
28#
29# Certain portions of the Autoconf source text are designed to be copied
30# (in certain cases, depending on the input) into the output of
31# Autoconf.  We call these the "data" portions.  The rest of the Autoconf
32# source text consists of comments plus executable code that decides which
33# of the data portions to output in any given case.  We call these
34# comments and executable code the "non-data" portions.  Autoconf never
35# copies any of the non-data portions into its output.
36#
37# This special exception to the GPL applies to versions of Autoconf
38# released by the Free Software Foundation.  When you make and
39# distribute a modified version of Autoconf, you may extend this special
40# exception to the GPL to apply to your modified version as well, *unless*
41# your modified version has the potential to copy into its output some
42# of the text that was the non-data portion of the version that you started
43# with.  (In other words, unless your change moves or copies text from
44# the non-data portions to the data portions.)  If your modification has
45# such potential, you must delete any notice of this special exception
46# to the GPL from your modified version.
47
48# Written by Akim Demaille.
49
50# The prefix `AN' is chosen after `AutoscaN'.
51
52# AN_OUTPUT(KIND, WORD, MACROS)
53# -----------------------------
54# Declare that the WORD, used as a KIND, requires triggering the MACROS.
55m4_define([AN_OUTPUT], [])
56
57
58# AN_FUNCTION(NAME, MACROS)
59# AN_HEADER(NAME, MACROS)
60# AN_IDENTIFIER(NAME, MACROS)
61# AN_LIBRARY(NAME, MACROS)
62# AN_MAKEVAR(NAME, MACROS)
63# AN_PROGRAM(NAME, MACROS)
64# ---------------------------
65# If the FUNCTION/HEADER etc. is used in the package, then the MACROS
66# should be invoked from configure.ac.
67m4_define([AN_FUNCTION],   [AN_OUTPUT([function], $@)])
68m4_define([AN_HEADER],     [AN_OUTPUT([header], $@)])
69m4_define([AN_IDENTIFIER], [AN_OUTPUT([identifier], $@)])
70m4_define([AN_LIBRARY],    [AN_OUTPUT([library], $@)])
71m4_define([AN_MAKEVAR],    [AN_OUTPUT([makevar], $@)])
72m4_define([AN_PROGRAM],    [AN_OUTPUT([program], $@)])
73