1dnl $Id: m4.init,v 10.22 2005/10/22 13:08:23 bostic Exp $
2
3dnl The GNU m4 builtin macro format is recognized even without arguments.
4dnl This is an m4 bug, hopefully fixed in the next release.
5undefine(`format')
6
7dnl Some GNU m4 releases have a builtin macro symbols.
8undefine(`symbols')
9
10dnl We use our own quote characters to make things a bit easier.
11changequote([,])
12
13dnl ###################################################################
14dnl Paths.
15dnl
16dnl _m4_api is the path to any API references.  It's set to C++ if building
17dnl the C++ API, and to C if building the C API or sections shared by all
18dnl APIs, for example, the Reference Guide.
19dnl
20dnl _m4_ipath is the path to the index file we're building.  It's set to the
21dnl real API if we're building one, and to an everything-else file, if we're
22dnl not.
23dnl ###################################################################
24define(_m4_api, [ifelse(M4API, CXX_API, [M4RELDIR/api_cxx], [M4RELDIR/api_c])])
25
26define(_m4_ipath, [ifelse(dnl
27M4API, CXX_API, [M4RELDIR/api_cxx/pindex.src],
28M4API, C_API, [M4RELDIR/api_c/pindex.src],
29M4API, TCL_API, [M4RELDIR/api_tcl/pindex.src],
30[M4RELDIR/ref/pindex.src])])
31
32dnl Set the path of the API index
33define(m4_iurl, [dnl
34ifelse(M4PRODUCT, XML, [dnl
35ifelse(M4API, CXX_API, [M4RELDIR/api_cxx/api_xml.html],
36M4API, TCL_API, [M4RELDIR/api_tcl/api_tcl.html],
37[M4RELDIR/api_c/api_xml.html])], [dnl
38ifelse(M4API, CXX_API, [M4RELDIR/api_cxx/api_core.html],
39M4API, TCL_API, [M4RELDIR/api_tcl/api_tcl.html],
40[M4RELDIR/api_c/api_core.html])])])
41
42dnl ###################################################################
43dnl Exception style.
44dnl
45dnl The C engine has returns; the C++ core engine has exceptions and return
46dnl values, but DbXml only has exceptions.
47dnl ###################################################################
48define(M4EXCEPT,
49ifelse(M4PRODUCT, XML, except_only, M4API, CXX_API, except_return, return_only))
50