1 2 3 4 5 6 7 8 9 //根据configure.in和Makefile.am生成makefile的步骤,基于UBUNTU 12.04 1.autoscan (可选) 2.aclocal 3.autoconf 4.autoheader(可选) 5.libtoolize --automake --copy --debug --force(可选) 6.automake --add-missing 7.autoreconf –f –i –Wall,no–obsolete(可选) 8../…
已经存在Makefile.am,如何生成Makefile? 步骤: [root@localhost hello]# autoscan .///在当前文件夹中搜索 [root@localhost hello]# cp configure.scan configure.ac //复制文件 [root@localhost hello]# vi configure.ac //编辑文件 编辑configure.ac,加入下面一行: AM_INIT_AUTOMAKE(hello,1.0) //automak…
已经存在Makefile.am,如何生成Makefile? 步骤: [root@localhost hello]# autoscan .///在当前文件夹中搜索 [root@localhost hello]# cp configure.scan configure.ac //复制文件 [root@localhost hello]# vi configure.ac //编辑文件 编辑configure.ac,加入下面一行: AM_INIT_AUTOMAKE(hello,1.0)      //au…
step1:写Makefile.am step2:执行autoscan,会生成configurae.scan,修改configure.scan内容之后,命名为configure.ac step3:执行libtoolize,生成config.guess, config.sub, ltmain.sh, ltconfig step4:执行aclocal,生成aclocal.m4 step5:执行autoconf,生成configure文件 step6:执行atuoheader,生成config.h.i…
1. configure.ac和Makefile.am的格式解析概述 1.1. Autotools相关工具链 1.1.1. Autotools 1.1.2. 其他相关工具 1.2. 工具链的流程 1.3. autoconf 1.3.1. configure.ac文件 1.3.2. configure.ac文件的标准布局 1.3.3. configure.ac常见宏说明 1.3.5. 常用变量 1.3.4. 关于自定义宏 1.4. automake 1.4.1. Makefile.am文件 1.4…
configure.ac由一些宏组成(如果已经有源代码,你可以运行autoscan来产生一个configure.scan文件,在此基础修改成configure.ac将更加方便) 最基本的组成可以是下面的 AC_INIT([PACKAGE], [VERSION], [BUG-REPORT-ADDRESS]) # Checks for programs. # Checks for libraries. # Checks for header les. # Checks for typedefs, s…
在ubuntu 下编译snappy时,在检查依赖关系时,处理autoconf的包时,在相关依赖包都已经安装的情况下,报如下错误,死活不过. configure.ac:32: error: possibly undefined macro: AC_DEFINE 几经辗转,在stackoverflow上找到解决方案: justinclift commented on 15 Mar 2013 As possibly useful info if anyone else hits the "possib…
安装thrift例如,下面的问题出现: configure.ac:20: error: Autoconf version 2.65 or higher is required wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz tar xzf autoconf-2.68.tar.gz cd autoconf-2.68 ./configure make && make install 版权声明:本文博客原创文章,博客,未经同意,…
当安装configure.ac:17: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow.                      See the Autoconf documentation.                      autoreconf: /usr/bin/autoconf failed…
编译Linux程序时,使用configure.ac生成的configure程序,时常会出现AC_CHECK_LIB检查某个库失败 而相应库通常是存在的,只是依赖于其他的库,此时,需要乃至AC_CHECK_LIB的other_libs参数 比如将, AC_CHECK_HEADERS([usrsctp.h], [AC_CHECK_LIB([usrsctp], [usrsctp_init], [with_sctp="yes"; USRSCTP_LIBS="-lusrsctp -lp…