O'Reilly logo

Autotools by John Calcote

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using libltdl

Now let's move on to a discussion of Libtool's ltdl library. Once again, I'm going to have to add some functionality to the Jupiter project in order to illustrate these concepts. The goal here is to create a plug-in interface that the jupiter program can use to modify output based on end-user policy choices.

Necessary Infrastructure

Currently, jupiter prints Hello, from jupiter! (Actually, the name printed is more likely, at this point, to be a long, ugly path containing some Libtool directory garbage and some derivation of the name jupiter, but just pretend it prints jupiter for now.) We're going to add an additional parameter named salutation to the common static library method, print_routine. This parameter will also be of type ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required