Presentation is loading. Please wait.

Presentation is loading. Please wait.

INTRODUCTION TO AUTOCONF AND AUTOMAKE. GNU BUILD SYSTEM 1)GNU AUTOCONF 2)GNU AUTOMAKE 3)GNU LIBTOOL 4)GNU GETTEXT.

Similar presentations


Presentation on theme: "INTRODUCTION TO AUTOCONF AND AUTOMAKE. GNU BUILD SYSTEM 1)GNU AUTOCONF 2)GNU AUTOMAKE 3)GNU LIBTOOL 4)GNU GETTEXT."— Presentation transcript:

1 INTRODUCTION TO AUTOCONF AND AUTOMAKE

2 GNU BUILD SYSTEM 1)GNU AUTOCONF 2)GNU AUTOMAKE 3)GNU LIBTOOL 4)GNU GETTEXT

3 WHY AUTOTOOLS? to produce portable packages.... some C functions will have 1)different names 2)different prototypes 3)might not exist every where 4)might require specific libraries

4 Requirments Users dont need automake or autoconf. They must have a shell and appropriate compilers to compile the package. Developers need autoconf and automake software.

5 The Big Picture

6 Step involved in installing a software tar -zxvpf software_01.tar.gz cd software_01./configure make make check make install

7 steps involved in creating a software create source create configure.ac create makefile.am aclocal autoconf automake -a //to add missing files

8 Directory Structure software name is software_01 root of software is software_01 software_01 will have lib, src, man, doc makefile.am, configure.ac

9 To go we will make a source tar ball of hello world program we will make a source tar ball of experience hello world program

10 src/hello.c #include main (void) { prinft(“Hello GNU Users\n”); return 0; }

11 Makefile.am SUBDIRS=src doc data man1 EXTRA_DIST=doc/documentation.sxw EXTRA_DIST +=doc/analysis.sxw

12 configure.ac AC_INIT(hello,0.01,bugs@bugs.org) AM_INIT_AUTOMAKE(dist-bzip2) #check for programs AC_PROG_CXX AC_PROG_INSTALL #check for libraries #check for header files #check for typedefs #check for structures #check for compiler characteristics #check for library functions #check for system services AC_OUTPUT(Makefile\ src/Makefile\ )

13 Now run `autoconf': % aclocal % autoconf % automake -a % touch NEWS README AUTHORS ChangeLog % automake -a % configure % make % src/hello % su and make install; make uninstall % make distcheck

14 % rm -f configure % automake % make distcheck You will notice that the `distcheck' target fails.

15


Download ppt "INTRODUCTION TO AUTOCONF AND AUTOMAKE. GNU BUILD SYSTEM 1)GNU AUTOCONF 2)GNU AUTOMAKE 3)GNU LIBTOOL 4)GNU GETTEXT."

Similar presentations


Ads by Google