Some improvements

* Require Autoconf 2.70
* Add table of contents
* Reorder configuration
This commit is contained in:
Alex Kotov 2022-12-05 07:45:47 +04:00
parent 82cb925e82
commit 13b21e2fe5
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
2 changed files with 18 additions and 11 deletions

View File

@ -3,6 +3,20 @@ Autotools project
This is a template of an Autotools project. This is a template of an Autotools project.
Table of contents
-----------------
* [Overview](#autotools-project)
* [Table of contents](#table-of-contents)
* [Usage](#usage)
Usage
-----
Don't forget to change the following files: Don't forget to change the following files:
* `.gitignore` * `.gitignore`

View File

@ -2,14 +2,14 @@
# Specify program versions # # Specify program versions #
############################ ############################
AC_PREREQ([2.68]) AC_PREREQ([2.70])
LT_PREREQ([2.4.6]) LT_PREREQ([2.4.6])
####################### ##################################
# Initialize Autoconf # # Initialize Autoconf & Automake #
####################### ##################################
AC_INIT([autotools-project], AC_INIT([autotools-project],
m4_normalize(m4_include([VERSION])), m4_normalize(m4_include([VERSION])),
@ -28,12 +28,6 @@ AC_CONFIG_FILES([
include/Makefile include/Makefile
]) ])
#######################
# Initialize Automake #
#######################
AM_INIT_AUTOMAKE([1.16 subdir-objects]) AM_INIT_AUTOMAKE([1.16 subdir-objects])
@ -47,7 +41,6 @@ AC_LANG([C])
AM_PROG_AR AM_PROG_AR
AM_PROG_AS AM_PROG_AS
AC_PROG_CC AC_PROG_CC
AC_PROG_CC_C99
AC_C_INLINE AC_C_INLINE
AC_CHECK_HEADER_STDBOOL AC_CHECK_HEADER_STDBOOL
AC_CHECK_HEADERS([stdarg.h stddef.h stdint.h]) AC_CHECK_HEADERS([stdarg.h stddef.h stdint.h])