Skip to content

Instantly share code, notes, and snippets.

@jstaursky
Created August 10, 2020 17:51
Show Gist options
  • Save jstaursky/86d9a8c15733e56bd073764afbe0e2e8 to your computer and use it in GitHub Desktop.
Save jstaursky/86d9a8c15733e56bd073764afbe0e2e8 to your computer and use it in GitHub Desktop.
# This is David A. Wheeler's template for configure.ac, showing
# taken from https://dwheeler.com/autotools/
# some suggested options and setups.
# Process this file with autoconf to produce a configure script.
# Initialize autoconf.
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS],
[TAR-NAME], [URL])
# Force autoconf to be at least this version number:
AC_PREREQ([2.68])
# Safety check - list a source file that wouldn't be in other directories:
AC_CONFIG_SRCDIR([SOMETHING-ONLY-IN-YOUR-PROGRAM])
# Put configuration results here, so we can easily #include them:
AC_CONFIG_HEADERS([config.h])
# Put autotools auxiliary files in subdirectories to reduce clutter:
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
# Enable "automake" to simplify creating makefiles:
AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror])
AC_CONFIG_FILES([Makefile])
# Checks for programs, e.g., AC_PROG_CC
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
# Do final output.
AC_OUTPUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment