dnl dnl Copyright (C) 2020,2021 CismonX dnl dnl Copying and distribution of this file, with or without modification, are dnl permitted in any medium without royalty, provided the copyright notice and dnl this notice are preserved. This file is offered as-is, without any warranty. dnl AC_PREREQ([2.60]) AC_INIT([ctlseqs], [0.1.0], [bug-report@cismon.net]) AC_CONFIG_SRCDIR([src/ctlseqs.c]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign]) AM_EXTRA_RECURSIVE_TARGETS([install-man uninstall-man]) LT_PREREQ([2.4.0]) LT_INIT # Checks for programs. AC_PROG_CC_C99 AC_PROG_CXX AC_PROG_AWK AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET # Checks for compiler builtins and attributes. m4_ifdef([AX_GCC_BUILTIN], [ AX_GCC_BUILTIN(__builtin_expect) AX_GCC_BUILTIN(__builtin_unreachable) AX_GCC_FUNC_ATTRIBUTE(cold) AX_GCC_FUNC_ATTRIBUTE(hot) ]) # Checks for header files. AC_CHECK_HEADERS([fcntl.h limits.h stddef.h stdlib.h string.h sys/ioctl.h termios.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_CHECK_HEADER_STDBOOL AC_C_INLINE AC_TYPE_SIZE_T AC_TYPE_SSIZE_T # Checks for library functions. AC_CHECK_FUNCS([memset strtoul]) # Specify libtool library version. m4_define([CTLSEQS_LT_CURRENT], [0]) m4_define([CTLSEQS_LT_REVISION], [0]) m4_define([CTLSEQS_LT_AGE], [0]) AC_SUBST([CTLSEQS_LT_VERSION], [CTLSEQS_LT_CURRENT:CTLSEQS_LT_REVISION:CTLSEQS_LT_AGE]) AC_CONFIG_FILES([Makefile include/Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile examples/Makefile]) AC_OUTPUT