Using The AutoTools(Scripts)

Using The AutoTools

If you think one day to start programming on linux, sure you will use C language (not me, i will always use assembly), but when your program sources get biggers as its version increase or you want to publish its source code, how users gonna to use it, are they gonna to compile every source file separetely then link them all together, no it's a bad idea and very handy, you will have to use the autoscripts.

In this article i will describe how to use the autoscripts for your own program sources, so i will write a simple C sourcefile to show you how to use the autoscripts(autoheader,automake,autoconf).

Remark:

When you a compile a program from source you should have done this :

./configure make make install

That's what the autoscripts we gonna make.

I will use emacs in this article, but your free to use any text editor even pico.

Let's start by creating directories which will contain the source files, assume our program name is "ctest" , type the following in a bash prompt :

mkdir ctest cd ctest mkdir src cd src emacs main.c /* this is a sample C source to test autoscript