# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_CONFIG_AUX_DIR([build-aux])
AC_PREREQ([2.71])
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
AC_CONFIG_SRCDIR([hello.h])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AM_INIT_AUTOMAKE()
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
touch NEWS README AUTHORS ChangeLog
mkdir build-aux
Autoconf配置脚本示例与构建流程,
这篇文章详细介绍了如何使用Autoconf处理文件,生成配置脚本,检查编译器、库、头文件以及定义类型等,并展示了Makefile的配置和输出文件的创建过程。
901





