Chapter 22. Writing New Macros for Autoconf

Autoconf is an extensible system that permits new macros to be written and shared among Autoconf users. Although it is possible to perform custom tests by placing fragments of shell code into your 'configure.in' file, it is better practice to encapsulate that test in a macro. This encourages macro authors to make their macros more general-purpose, easier to test, and easier to share with other users.

This chapter presents some guidelines for designing and implementing good Autoconf macros. It concludes with a discussion of the approaches being considered by the Autoconf development community for improving the creation and distribution of macros. You can find a more general discussion of macros in ...

Get GNU Autoconf, Automake, and Libtool now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.