Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Autoconf

Autoconf

Ratings: (0)|Views: 28 |Likes:
Published by api-3731802
Autoconf document
Autoconf document

More info:

Published by: api-3731802 on Oct 15, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Autoconf
Creating Automatic Con\ufb01guration Scripts
for version 2.60, 23 June 2006

David MacKenzie
Ben Elliston
Akim Demaille

This manual is forGNU Autoconf (version 2.60, 23 June 2006), a package for creating scripts
to con\ufb01gure source code packages using templates and an M4 macro package.
Copyrightc
\ue0001992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document under the terms of theGNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, with the Front-Cover texts being \u201cAGNU Manual,\u201d and with the Back-Cover Texts as in (a) below. A copy of the license is included in the section entitled \u201cGNU Free Documentation License.\u201d

(a) The FSF\u2019s Back-Cover Text is: \u201cYou have freedom to copy and modify thisGNU Manual, likeGNU software. Copies published by the Free Software Foundation raise funds forGNU development.\u201d

i
Table of Contents
1 Introduction...............................
1
2 TheGNU BuildSystem....................
3

2.1 Automake..................................................3 2.2 Gnulib.....................................................3 2.3 Libtool.....................................................4 2.4 Pointers....................................................4

3 Makingconfigure Scripts...................
5
3.1 Writing \u2018configure.ac\u2019......................................6

3.1.1 A Shell Script Compiler.................................6
3.1.2 The Autoconf Language.................................7
3.1.3 Standard \u2018configure.ac\u2019 Layout........................8
3.2 Usingautoscan to Create \u2018configure.ac\u2019....................9
3.3 Usingifnames to List Conditionals..........................10

3.4 Usingautoconf toCreateconfigure........................10
3.5 Usingautoreconf toUpdateconfigure Scripts..............13
4 Initialization and Output Files.............
15

4.1 Initializingconfigure......................................15 4.2 Notices inconfigure.......................................16 4.3 Findingconfigure Input...................................16 4.4 OutputtingFiles...........................................17 4.5 Performing Con\ufb01guration Actions...........................18 4.6 Creating Con\ufb01guration Files................................20 4.7 Substitutions in Make\ufb01les...................................20

4.7.1 Preset Output Variables................................21 4.7.2 Installation Directory Variables.........................23 4.7.3 Changed Directory Variables...........................26 4.7.4 BuildDirectories......................................27 4.7.5 Automatic Remaking..................................28

4.8 Con\ufb01guration Header Files..................................29 4.8.1 Con\ufb01guration Header Templates........................30 4.8.2 Usingautoheader to Create \u2018config.h.in\u2019..............31

4.8.3 Autoheader Macros....................................32 4.9 Running Arbitrary Con\ufb01guration Commands.................33 4.10 Creating Con\ufb01guration Links...............................34 4.11 Con\ufb01guring Other Packages in Subdirectories................34 4.12 Default Pre\ufb01x.............................................35

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->