ctlseqs/configure.ac

68 lines
1.6 KiB
Plaintext
Raw Normal View History

2020-11-17 06:24:43 +00:00
dnl
2021-01-10 17:53:38 +00:00
dnl Copyright (C) 2020,2021 CismonX <admin@cismon.net>
2020-11-17 06:24:43 +00:00
dnl
2021-10-30 14:43:54 +00:00
dnl Copying and distribution of this file, with or without modification,
dnl are permitted in any medium without royalty,
dnl provided the copyright notice and this notice are preserved.
dnl This file is offered as-is, without any warranty.
2020-11-17 06:24:43 +00:00
dnl
2021-10-30 14:43:54 +00:00
AC_PREREQ([2.69])
2021-01-25 06:17:06 +00:00
AC_INIT([ctlseqs], [0.1.0], [bug-report@cismon.net])
2020-11-17 06:24:43 +00:00
AC_CONFIG_SRCDIR([src/ctlseqs.c])
AC_CONFIG_HEADERS([config.h])
2021-10-30 14:43:54 +00:00
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign info-in-builddir])
2021-01-25 06:17:06 +00:00
AM_EXTRA_RECURSIVE_TARGETS([install-man uninstall-man])
2021-10-30 14:43:54 +00:00
LT_PREREQ([2.4.2])
2020-11-17 06:24:43 +00:00
LT_INIT
# Checks for programs.
AC_PROG_AWK
2021-10-30 14:43:54 +00:00
AC_PROG_CC
2020-11-17 06:24:43 +00:00
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)
2021-10-30 14:43:54 +00:00
])
m4_ifdef([AX_GCC_FUNC_ATTRIBUTE], [
2020-11-17 06:24:43 +00:00
AX_GCC_FUNC_ATTRIBUTE(cold)
AX_GCC_FUNC_ATTRIBUTE(hot)
])
# Checks for header files.
2021-10-30 14:43:54 +00:00
AC_CHECK_HEADERS([fcntl.h sys/ioctl.h termios.h unistd.h])
2020-11-17 06:24:43 +00:00
# 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.
2021-10-30 14:43:54 +00:00
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([strtol strtoul tcgetattr tcsetattr ioctl])
2020-11-17 06:24:43 +00:00
2020-12-14 13:13:13 +00:00
# Specify libtool library version.
2021-10-30 14:43:54 +00:00
m4_define([CTLSEQS_LT_CUR], [0])
m4_define([CTLSEQS_LT_REV], [0])
2020-12-14 13:13:13 +00:00
m4_define([CTLSEQS_LT_AGE], [0])
2021-10-30 14:43:54 +00:00
AC_SUBST([CTLSEQS_LT_VERSION], [CTLSEQS_LT_CUR:CTLSEQS_LT_REV:CTLSEQS_LT_AGE])
2020-12-14 13:13:13 +00:00
2021-10-30 14:43:54 +00:00
AC_CONFIG_FILES([
Makefile
include/Makefile
doc/Makefile
man/Makefile
src/Makefile
tests/Makefile
examples/Makefile
])
2020-11-17 06:24:43 +00:00
AC_OUTPUT