Autotools, 2nd Edition 版次：A Practitioner’s Guide to GNU Autoconf, Automake, and Libtool
Release Finelybook 出版日期：2019-11-05
pages 页数：584 pages
The long awaited update to the practitioner’s guide to GNU Autoconf, Automake, and Libtool
The GNU Autotools make it easy for developers to create software that is portable across many Unix-like operating systems, and even Windows. Although the Autotools are used by thousands of open source software packages, they have a notoriously steep learning curve.
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 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 with solutions to frequent problems encountered by Autotools users.
This thoroughly revised second edition has been updated to cover the latest versions of the Autotools. It includes five new chapters on topics like pkg-config, unit and integration testing with Autotest, internationalizing with GNU tools, the portability of gnulib, and using the Autotools with Windows. As with the first edition, you’ll focus on two projects:Jupiter, a simple “Hello, world!” program, and FLAIM, an existing, complex open source effort containing four separate but interdependent projects. 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.
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
This detailed introduction to the GNU Autotools is indispensable for developers and programmers looking to gain a deeper understanding of this complex suite of tools. Stop fighting against the system and make sense of it all with the second edition of Autotools!
CONTENTS IN DETAIL
FOREWORD FOR THE FIRST EDITION by Ralf Wildenhues
FOREWORD FOR THE SECOND EDITION by Eric Blake
1AN END USER’S PERSPECTIVE ON THE GNU AUTOTOOLS
2A BRIEF INTRODUCTION TO THE GNU AUTOTOOLS
3 UNDERSTANDING THE GNU CODING STANDARDS
4 CONFIGURING YOUR PROJECT WITH AUTOCONF
5 MORE FUN WITH AUTOCONF:CONFIGURING USER OPTIONS
6 AUTOMATIC MAKEFILES WITH AUTOMAKE
7 BUILDING LIBRARIES WITH LIBTOOL
8 LIBRARY INTERFACE VERSIONING AND RUNTIME DYNAMIC LINKING
9 UNIT AND INTEGRATION TESTING WITH AUTOTEST
10 FINDING BUILD DEPENDENCIES WITH PKG-CONFIG
13 MAXIMUM PORTABILITY WITH GNULIB
14 FLAIM:AN AUTOTOOLS EXAMPLE
15 FLAIM PART I:PUSHING THE ENVELOPE
16 USING THE M4 MACRO PROCESSOR WITH AUTOCONF
17 USING THE AUTOTOOLS WITH WINDOWS
18A CATALOG OF TIPS AND REUSABLE SOLUTIONS FOR CREATING GREAT PROJECTS