views:

332

answers:

3

Anyone recommend how a person could get started with autotools in building a C project?

+7  A: 

Follow the autotools tutorial.

You can also get the autobook. Chapter 4 covers a minimal GNU autotools project.

Gonzalo
Really, I dislike the autobook - I found Alexandre Duret-Lutz's tutorial more helpful and actually has the form of a tutorial, just my 2 cents.
Gregory Pakosz
Agreed, adl's tutorial is way better, but checking out the autobook does not hurt.
Gonzalo
Am i missing something or is this 'tutorial' a set of power-point-style slides?
Arthur Ulfeldt
it's still a tutorial though
Gregory Pakosz
+3  A: 

I would recommend this tutorial and get the book when it's released. The tutorial really helped me a lot, it even contains a step by step conversion of an existing (non trivial) project to autotools.

Puppe
+2  A: 

Alexandre Duret-Lutz's tutorial is my resource of choice.

There are also:

To me, the autobook is not up to date anymore and more difficult to read. However it still contains interesting chapters like Writing Portable Bourne Shell.

Also, consider learning about non-recursive automake which addresses the concerns raised by Peter Miller in his Recursive Make Considered Harmful article.

EDIT: for reference, there is also Autotools Tutorial for Beginners.

Gregory Pakosz
seriously? I got -1 for my answer while being the most exhaustive one... you can't be serious
Gregory Pakosz
Well, ten months later, you get a +1 for being, as far as I'm concerned, the best answer.
Jefromi
thank you, well at least it's the most exhaustive so far :)
Gregory Pakosz