Overview
The GNU Autotools make it easy for developers to create software that is portable across many Unix-like operating systems. Although the Autotools are used by thousands of open source software packages, they have a notoriously steep learning curve. And good luck to the beginner who wants to find anything beyond a basic reference work online.
Autotools Autotools is the first book to offer programmers a tutorial-based guide to the GNU build system. Author John Calcote begins with an overview of high-level concepts and a quick hands-on tour of the philosophy and design of the Autotools. He then tackles more advanced details, like using the M4 macro processor with Autoconf, extending the framework provided by Automake, and building Java and C# sources. He concludes the book with detailed solutions to the most frequent problems encountered by first-time Autotools users.
You'll learn how to:
- Master the Autotools build system to maximize your software's portability
- Generate Autoconf configuration scripts to simplify the compilation process
- Produce portable makefiles with Automake
- Build cross-platform software libraries with Libtool
- Write your own Autoconf macros
Autotools focuses on two projects: Jupiter, a simple "Hello, world!" program, and FLAIM, an existing, complex open source effort containing four separate but interdependent subprojects. Follow along as the author takes Jupiter's build system from a basic makefile to a full-fledged Autotools project, and then as he converts the FLAIM projects from complex hand-coded makefiles to the powerful and flexible GNU build system.
Synopsis
A practical and complete guide to the components of the GNU Autotools, including Autoconf, Automake, and Libtool. The GNU Autotools (the GNU Build System) is a group of utilities designed to make it easy for developers to create software that is portable across many Unix-like operating systems. Unfortunately, most Autotools documentation is merely reference material, and a serious guide to the tools is needed. With its solution-oriented instruction and cookbook-style approach, Autotools: A Practical Guide is the first book to offer programmers a tutorial-based guide to the Autotools. Beginning with high-level concepts, the book discusses many use-cases and examples, and ends with more advanced details, like using the M4 Macro Processor with Autoconf, extending the framework provided by Automake, building Java and CSharp sources, and more. The book also shows readers how to structure and organize open source software, master the Autotools framework and functional project configuration scripts, use extensions to Autoconf, convert an existing, complex open source project from a custom build system to an Autotools build system, and write their own Autotools macros. Rather than teach specific Autotools, Autotools: A Practical Guide focuses on the key Autotools concepts.