autotools-slides - Sommaire Introduction Autoconf Automake...

Info icon This preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Sommaire Introduction Autoconf Automake Tips and tricks Questions Autotools - - November, 2nd 2011- Autotools 1 / 49
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Sommaire Introduction Autoconf Automake Tips and tricks Questions Licence Copyright c 2011 Assistants < [email protected] > This document is for internal use only at EPITA < http://www.epita.fr/ > . Copying is allowed only under these conditions: You must have downloaded your copy from the Assistants Intranet < https://www.acu.epita.fr/intra/ > . You must make sure you have the latest version of this document. It is your responsibility to make sure that this document stays out of reach of students or individuals outside your class (your “promotion”). Autotools 2 / 49
Image of page 2
Sommaire Introduction Autoconf Automake Tips and tricks Questions 1 Introduction 2 Autoconf 3 Automake 4 Tips and tricks Other good reasons to use autotools Good practices Tips for Automake Writing Autoconf macros 5 Questions Autotools 3 / 49
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Sommaire Introduction Autoconf Automake Tips and tricks Questions Plan 1 Introduction 2 Autoconf 3 Automake 4 Tips and tricks Other good reasons to use autotools Good practices Tips for Automake Writing Autoconf macros 5 Questions Autotools 4 / 49
Image of page 4
Sommaire Introduction Autoconf Automake Tips and tricks Questions Why use Autoconf From Autoconf documentation : “The problem Autoconf addresses is that the world is a mess.” How your package can deal with all those portability issues ? Some functions don’t have the same behaviour on all UNIX systems (e.g. malloc (0) ). Some functions don’t exist on every system (e.g. getdelim ). . . . Your projet may need an external library and you may want to check it’s installed on the system. You may want to customize your package behaviour before compiling it (e.g. you can enable/disable some functionalities). Autotools 5 / 49
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Sommaire Introduction Autoconf Automake Tips and tricks Questions Why use Automake Writing good makefiles for your project can be more complex than your project itself . . . You want the dependencies to be perfectly handled in your project. It’s even worst if you work on a big project with many subparts and recursive makefiles. You always need the same ordinary targets : all , clean , distclean , dist , . . . You may want portable makefiles (think to incompatibilities between GNU Make and BSD Make). Autotools 6 / 49
Image of page 6
Sommaire Introduction Autoconf Automake Tips and tricks Questions How autotools can help you Autoconf will create a configure script to probe the system and configure your build. Create a portable configure script from simple instructions. Provide a simple way of checking the presence of libraries, programs, functions, headers . . . You don’t have to care about command line parsing in configure script. Automake will help you to create portable makefiles. You just have to define what must be built for your project.
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern