1# This file is part of Autoconf.                -*- Autoconf -*-
2# Driver that loads the Autoconf macro files.
3# Copyright (C) 1994, 1999, 2000, 2001, 2002  Free Software Foundation, Inc.
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2, or (at your option)
8# any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18# 02111-1307, USA.
19#
20# As a special exception, the Free Software Foundation gives unlimited
21# permission to copy, distribute and modify the configure scripts that
22# are the output of Autoconf.  You need not follow the terms of the GNU
23# General Public License when using or distributing such scripts, even
24# though portions of the text of Autoconf appear in them.  The GNU
25# General Public License (GPL) does govern all other use of the material
26# that constitutes the Autoconf program.
27#
28# Certain portions of the Autoconf source text are designed to be copied
29# (in certain cases, depending on the input) into the output of
30# Autoconf.  We call these the "data" portions.  The rest of the Autoconf
31# source text consists of comments plus executable code that decides which
32# of the data portions to output in any given case.  We call these
33# comments and executable code the "non-data" portions.  Autoconf never
34# copies any of the non-data portions into its output.
35#
36# This special exception to the GPL applies to versions of Autoconf
37# released by the Free Software Foundation.  When you make and
38# distribute a modified version of Autoconf, you may extend this special
39# exception to the GPL to apply to your modified version as well, *unless*
40# your modified version has the potential to copy into its output some
41# of the text that was the non-data portion of the version that you started
42# with.  (In other words, unless your change moves or copies text from
43# the non-data portions to the data portions.)  If your modification has
44# such potential, you must delete any notice of this special exception
45# to the GPL from your modified version.
46#
47# Written by David MacKenzie and many others.
48#
49# Do not sinclude acsite.m4 here, because it may not be installed
50# yet when Autoconf is frozen.
51# Do not sinclude ./aclocal.m4 here, to prevent it from being frozen.
52
53# general includes some AU_DEFUN.
54m4_include([autoconf/autoupdate.m4])
55m4_include([autoconf/autoscan.m4])
56m4_include([autoconf/general.m4])
57m4_include([autoconf/status.m4])
58m4_include([autoconf/autoheader.m4])
59m4_include([autoconf/autotest.m4])
60m4_include([autoconf/programs.m4])
61m4_include([autoconf/lang.m4])
62m4_include([autoconf/c.m4])
63m4_include([autoconf/fortran.m4])
64m4_include([autoconf/functions.m4])
65m4_include([autoconf/headers.m4])
66m4_include([autoconf/types.m4])
67m4_include([autoconf/libs.m4])
68m4_include([autoconf/specific.m4])
69m4_include([autoconf/oldnames.m4])
70
71# We discourage the use of the non prefixed macro names: M4sugar maps
72# all the builtins into `m4_'.  Autoconf has been converted to these
73# names too.  But users may still depend upon these, so reestablish
74# them.
75
76m4_copy_unm4([m4_builtin])
77m4_copy_unm4([m4_changequote])
78m4_copy_unm4([m4_decr])
79m4_copy_unm4([m4_define])
80m4_copy_unm4([m4_defn])
81m4_copy_unm4([m4_divert])
82m4_copy_unm4([m4_divnum])
83m4_copy_unm4([m4_errprint])
84m4_copy_unm4([m4_esyscmd])
85m4_copy_unm4([m4_ifdef])
86m4_copy([m4_if], [ifelse])
87m4_copy_unm4([m4_incr])
88m4_copy_unm4([m4_index])
89m4_copy_unm4([m4_indir])
90m4_copy_unm4([m4_len])
91m4_copy([m4_bpatsubst], [patsubst])
92m4_copy_unm4([m4_popdef])
93m4_copy_unm4([m4_pushdef])
94m4_copy([m4_bregexp], [regexp])
95m4_copy_unm4([m4_sinclude])
96m4_copy_unm4([m4_syscmd])
97m4_copy_unm4([m4_sysval])
98m4_copy_unm4([m4_traceoff])
99m4_copy_unm4([m4_traceon])
100m4_copy_unm4([m4_translit])
101m4_copy_unm4([m4_undefine])
102m4_copy_unm4([m4_undivert])
103
104# Yet some people have started to use m4_patsubst and m4_regexp.
105m4_define([m4_patsubst],
106[m4_expand_once([m4_warn([syntax],
107		 [do not use m4_patsubst: use patsubst or m4_bpatsubst])])dnl
108patsubst($@)])
109
110m4_define([m4_regexp],
111[m4_expand_once([m4_warn([syntax],
112		 [do not use m4_regexp: use regexp or m4_bregexp])])dnl
113regexp($@)])
114