学习GNU/LINUX开发的编程人员,上手之后不久就会在编译开源软件的时候碰到configure脚本,过段时间还会知道configure脚本是autoconf生成的;但是真正想用起来autoconf,却是要弄明白config.h,configure.in,Makfile.am等一大堆的文件,这可能要花些功夫。
使用AutoTools会相对容易便捷很多。
GNU autotools安装
1、下载软件包,在linux嵌入式开发过程中有很多的工具其实都在GNU的官方网站可以下载到
2、要安装autotools需要如下几个文件
automake
autoconf
M4
安装顺序是M4 ->
###安装m4
wget http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz \ && tar -xzvf m4-1.4.13.tar.gz \ && cd m4-1.4.13 \ && ./configure --prefix=/usr/local make && make install cd ..
###安装autoconf
wget http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz \ && tar -xzvf autoconf-2.65.tar.gz \ && cd autoconf-2.65 \ && ./configure --prefix=/usr/local make && make install cd ..
###安装automake
wget http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz \ && tar xzvf automake-1.11.tar.gz \ && cd automake-1.11 \ && ./configure --prefix=/usr/local make && make install cd ..
###安装libtool
wget http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz \ && tar xzvf libtool-2.2.6b.tar.gz \ && cd libtool-2.2.6b \ && ./configure --prefix=/usr/local make && make install cd ..