From a06cc218bfa18943a46e051d5bbf463e1ddc0b6e Mon Sep 17 00:00:00 2001 From: defanor Date: Sat, 29 Apr 2017 04:36:01 +0300 Subject: Initial commit --- configure.ac | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..3ea3551 --- /dev/null +++ b/configure.ac @@ -0,0 +1,35 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.69]) +AC_INIT(TLSd, 0.0.1, defanor@uberspace.net, tlsd, + https://defanor.uberspace.net/projects/tlsd/) +AM_INIT_AUTOMAKE([-Wall]) +AC_CONFIG_SRCDIR([tlsd.c]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_FILES([Makefile]) + +# Checks for programs. +AC_PROG_CC +AM_PROG_CC_C_O + +# For pipe2(2) +AC_GNU_SOURCE + +# Checks for libraries. +PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 3.3.0]) +AC_SUBST([LIBGNUTLS_CFLAGS]) +AC_SUBST([LIBGNUTLS_LIBS]) + +# Checks for header files. +AC_CHECK_HEADERS([arpa/inet.h netinet/in.h stdlib.h \ + string.h sys/socket.h syslog.h unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_TYPE_SIZE_T + +# Checks for library functions. +AC_FUNC_FORK +AC_CHECK_FUNCS([dup2 memset socket strerror]) + +AC_OUTPUT -- cgit v1.2.3