GNU/Linux 编程指南之三: autoconf-----configure software to a target platform
来源:互联网 发布:淘宝禁止好评返现了吗 编辑:程序博客网 时间:2024/05/02 00:17
GNU autoconf, a tool that enables you to configure your software to adapt to the wide assortment of system configurations in which it may be built, including many non-Linux systems.
The ultimate goal of autoconf is to generate a makefile.
autoconf can generates shell scripts that automatically configure source code packages to adapt to many different brands of UNIX and UNIX-like system. These scripts, usually named configure, test for the presence or absence of certain features a program needs or can use, and build makefiles based on the results of these tests.
Building configure.in
*********************************************
AC_INIT(unique_file_in_source_dir)
any test
AC_OUTPUT([file...[,extra_cmds[,init_cmds]]])
*********************************************
unique_file_in_source_dir is a file present in the source code directory.
AC_OUTPUT creates the output files, such as Makefiles and other(optional) output files.
Sturcturing the File
***********************************************
AC_INIT
Test for programs
Test for libraries
Test for header files
Test for typedefs
Test for structures
Test for compiler behavior
Test for library functions
Test for system services
AC_OUTPUT
***********************************************
总结: 先看到这里,等下边用得着的时候再回来仔细看。
- GNU/Linux 编程指南之三: autoconf-----configure software to a target platform
- GNU/Linux 编程指南之二:make
- GNU/Linux 编程指南
- GNU/Linux编程指南
- 《GNU/Linux编程指南》
- Linux configure、makefile由来之aotumake,autoconf
- [转载]《GNU/Linux编程指南》
- GNU/Linux 编程指南学习笔记之four : diff & patch
- Enabling Software BCH ECC on a Linux Platform
- GNU/Linux编程指南(第二版)
- 《Linux内核编程指南》心得之三
- GNU/Linux编程指南学习笔记之七:系统编程----I/O Routines (续)
- Installing Software in GNU/Linux
- GNU Configure 中的 build target和host 的区别
- GNU configure中的build/target和host的区别
- 《Autotools - GNU Autoconf, Automake与Libtool实践者指南》
- 如何在Netbeans下配置Android开发环境 -- a platform target has to be selected
- How to install and configure Jabber Server (Ejabberd) on Debian Lenny GNU / Linux
- 执行sql命令,返回参数值,怕忘记了,记录一下
- 大学自考工程经济历年试题
- J2EE之DAO设计模式
- tee命令的一个妙用
- JS中的escape方法
- GNU/Linux 编程指南之三: autoconf-----configure software to a target platform
- 用一个例子讲解Adapter设计模式
- edit distance
- 乔布斯2005年在斯坦福大学的演讲
- Calling a Stored Procedure in a Database
- VC++,掀起你的盖头来
- 在Visual Studio 下编译 sqlite3
- Windows Media Player及RealOne网页播放器参数含义(一)
- Windows Media Player及RealOne网页播放器参数含义(二)