Go to the first, previous, next, last section, table of contents.


Writing your own aclocal macros

Aclocal doesn't have any built-in knowledge of any macros, so it is easy to extend it with your own macros.

This is mostly used for libraries which want to supply their own Autoconf macros for use by other programs. For instance the gettext library supplies a macro AM_GNU_GETTEXT which should be used by any package using gettext. When the library is installed, it installs this macro so that aclocal will find it.

A file of macros should be a series of AC_DEFUN's. Aclocal also understands AC_REQUIRE, so it is safe to put each macro in a separate file.

A macro file's name should end in `.m4'. Such files should be installed in `$(datadir)/aclocal'.


Go to the first, previous, next, last section, table of contents.