gnu autoconf / automake #1

Download GNU Autoconf / Automake #1

If you can't read please download the document

Upload: imacat-

Post on 16-Apr-2017

1.391 views

Category:

Technology


0 download

TRANSCRIPT

1

GNU Autoconf / Automake
Autoconfbuild

2012/7/28

AutoconfbuildCC Attribution-ShareAlike 3.0 Unported

2001

SourceForge vsntp

Apache OpenOffice

Autoconf

Autoconf

% wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz

autoconf

% tar xzf autoconf-2.69.tar.gz

autoconf

% lsautoconf-2.69
%

autoconf-2.69

% cd autoconf-2.69

% ls

% lsaclocal.m4 cfg.mk ChangeLog.3 COPYINGv3 m4 NEWSAUTHORS ChangeLog configure doc maint.mk READMEbin ChangeLog.0 configure.ac GNUmakefile Makefile.am testsBUGS ChangeLog.1 COPYING INSTALL Makefile.in THANKSbuild-aux ChangeLog.2 COPYING.EXCEPTION lib man TODO%

Autoconf-2.69

README

INSTALL

configure

README

README

% cat README-*- text -*-

Autoconf

Autoconf is an extensible package of M4 macros that produce shellscripts to automatically configure software source code packages.These scripts can adapt the packages to many kinds of UNIX-likesystems without manual user intervention. Autoconf creates aconfiguration script for a package from a template file that lists theoperating system features that the package can use, in the form of M4macro calls.

%

README

M4

INSTALL

INSTALL

% cat INSTALL Installation Instructions Briefly, the shell commands './configure; make; make install' shouldconfigure, build, and install this package. The followingmore-detailed instructions are generic; see the 'README' file forinstructions specific to this package. Some packages provide this'INSTALL' file but do not implement all of the features documentedbelow. The lack of an optional feature in a given package is notnecessarily a bug. More recommendations for GNU packages can be foundin *note Makefile Conventions: (standards)Makefile Conventions.%

INSTALL

./configure; make; make install

configure

configure

% ./configure

configure

% ./configure checking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /bin/mkdir -pchecking for expr... /usr/bin/exprchecking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH.GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended.GNU M4 1.4.15 uses a buggy replacement strstr on some systems.Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug.%

configure

M4

configure

READMEautoconfM4

Autoconf is an extensible package of M4 macros that produce shell scripts to automatically configure software source code packages.

m4

% sudo apt-get install m4

configure

% ./configure checking for GNU M4 that supports accurate traces... /usr/bin/m4configure: creating ./config.statusconfig.status: creating tests/Makefileconfig.status: creating tests/atlocalconfig.status: creating man/Makefileconfig.status: creating lib/emacs/Makefileconfig.status: creating Makefileconfig.status: creating doc/Makefileconfig.status: creating lib/Makefileconfig.status: creating lib/Autom4te/Makefileconfig.status: creating lib/autoscan/Makefileconfig.status: creating lib/m4sugar/Makefileconfig.status: creating lib/autoconf/Makefileconfig.status: creating lib/autotest/Makefileconfig.status: creating bin/Makefileconfig.status: executing tests/atconfig commands%

configure

M4

configure

M4

configure

M4

configure#1

configure#1

configure#1

configure#1

configure#1

mysqlmysqlmysqlmysql