1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
#
# Compile pedantic and with debug symbols:
# CFLAGS="-ggdb -Wall -Wextra -pedantic -std=c89 -O0" ./configure
#
# Verbose output can be enabled with
# "./configure --disable-silent-rules" or "make V=1"
#
AC_INIT([xtermcontrol],[3.8],[])
AC_CONFIG_SRCDIR([src/xtermcontrol.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE
XTC_PACKAGE_DATE
XTC_PACKAGE_YEAR
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Checks for programs.
AC_PROG_CC
# features of Posix that are extensions to C (define _GNU_SOURCE)
AC_USE_SYSTEM_EXTENSIONS
# Checks for header files.
AC_CHECK_INCLUDES_DEFAULT
AC_PROG_EGREP
AC_CHECK_HEADERS([fcntl.h libintl.h stdlib.h string.h strings.h termios.h unistd.h wchar.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset regcomp strchr strrchr strstr])
AC_CHECK_FUNC([snprintf], [], AC_MSG_ERROR([required function missing]))
AC_CONFIG_FILES([Makefile
doc/Makefile
src/Makefile
tests/Makefile])
AC_OUTPUT
|