|
Packit |
549fdc |
dnl Process this file with autoconf to produce a configure script.
|
|
Packit |
549fdc |
# Copyright (C) 2000-2012, 2016 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# Author: Nikos Mavrogiannopoulos, Simon Josefsson
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This file is part of GnuTLS.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This program is free software; you can redistribute it and/or modify
|
|
Packit |
549fdc |
# it under the terms of the GNU General Public License as published by
|
|
Packit |
549fdc |
# the Free Software Foundation; either version 3 of the License, or
|
|
Packit |
549fdc |
# (at your option) any later version.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# This program is distributed in the hope that it will be useful, but
|
|
Packit |
549fdc |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
549fdc |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
549fdc |
# General Public License for more details.
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# You should have received a copy of the GNU General Public License
|
|
Packit |
549fdc |
# along with this program; if not, write to the Free Software
|
|
Packit |
549fdc |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
|
|
Packit |
549fdc |
# USA
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_PREREQ(2.61)
|
|
Packit |
549fdc |
AC_INIT([GnuTLS], [3.6.2], [bugs@gnutls.org])
|
|
Packit |
549fdc |
AC_CONFIG_AUX_DIR([build-aux])
|
|
Packit |
549fdc |
AC_CONFIG_MACRO_DIR([m4])
|
|
Packit |
549fdc |
AC_CANONICAL_HOST
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_INIT_AUTOMAKE([1.12.2 foreign subdir-objects no-dist-gzip dist-xz -Wall -Wno-override])
|
|
Packit |
549fdc |
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
Packit |
549fdc |
AC_CONFIG_HEADERS([config.h])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_MSG_RESULT([***
|
|
Packit |
549fdc |
*** Checking for compilation programs...
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Checks for programs.
|
|
Packit |
549fdc |
PKG_PROG_PKG_CONFIG
|
|
Packit |
549fdc |
AC_PROG_CC
|
|
Packit |
549fdc |
gl_EARLY
|
|
Packit |
549fdc |
ggl_EARLY
|
|
Packit |
549fdc |
unistring_EARLY
|
|
Packit |
549fdc |
AM_PROG_AS
|
|
Packit |
549fdc |
AM_PROG_AR
|
|
Packit |
549fdc |
AC_PROG_CXX
|
|
Packit |
549fdc |
AM_PROG_CC_C_O
|
|
Packit |
549fdc |
AC_PROG_YACC
|
|
Packit |
549fdc |
AC_PROG_SED
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_USE_SYSTEM_EXTENSIONS
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
# Require C99 support
|
|
Packit |
549fdc |
#
|
|
Packit |
549fdc |
AC_PROG_CC_C99
|
|
Packit |
549fdc |
if test "$ac_cv_prog_cc_c99" = "no"; then
|
|
Packit |
549fdc |
AC_MSG_WARN([[Compiler does not support C99. It may not be able to compile the project.]])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AX_CODE_COVERAGE
|
|
Packit |
549fdc |
AM_MAINTAINER_MODE([enable])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_ENABLE(doc,
|
|
Packit |
549fdc |
AS_HELP_STRING([--disable-doc], [don't generate any documentation]),
|
|
Packit |
549fdc |
enable_doc=$enableval, enable_doc=yes)
|
|
Packit |
549fdc |
AM_CONDITIONAL(ENABLE_DOC, test "$enable_doc" != "no")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_ENABLE(manpages,
|
|
Packit |
549fdc |
AS_HELP_STRING([--enable-manpages], [install manpages even if disable-doc is given]),
|
|
Packit |
549fdc |
enable_manpages=$enableval,enable_manpages=auto)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "${enable_manpages}" = "auto";then
|
|
Packit |
549fdc |
enable_manpages="${enable_doc}"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(ENABLE_MANPAGES, test "$enable_manpages" != "no")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_ENABLE(tools,
|
|
Packit |
549fdc |
AS_HELP_STRING([--disable-tools], [don't compile any tools]),
|
|
Packit |
549fdc |
enable_tools=$enableval, enable_tools=yes)
|
|
Packit |
549fdc |
AM_CONDITIONAL(ENABLE_TOOLS, test "$enable_tools" != "no")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$enable_tools" != "no" || test "$enable_doc" != "no"; then
|
|
Packit |
549fdc |
AC_CHECK_PROG([AUTOGEN], [autogen], [autogen], [:])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test x"$AUTOGEN" = "x:"; then
|
|
Packit |
549fdc |
AC_MSG_WARN([[
|
|
Packit |
549fdc |
***
|
|
Packit |
549fdc |
*** autogen not found. Will not link against libopts.
|
|
Packit |
549fdc |
*** ]])
|
|
Packit |
549fdc |
included_libopts=yes
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# For includes/gnutls/gnutls.h.in.
|
|
Packit |
549fdc |
AC_SUBST(MAJOR_VERSION, `echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`)
|
|
Packit |
549fdc |
AC_SUBST(MINOR_VERSION, `echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`)
|
|
Packit |
549fdc |
AC_SUBST(PATCH_VERSION, [[`echo $PACKAGE_VERSION | sed 's/.*\..*\.\([0-9]*\).*/\1/g'`]])
|
|
Packit |
549fdc |
AC_SUBST(NUMBER_VERSION, `printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl C and C++ capabilities
|
|
Packit |
549fdc |
AC_C_INLINE
|
|
Packit |
549fdc |
AC_HEADER_STDC
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# For the C++ code
|
|
Packit |
549fdc |
AC_ARG_ENABLE(cxx,
|
|
Packit |
549fdc |
AS_HELP_STRING([--disable-cxx], [unconditionally disable the C++ library]),
|
|
Packit |
549fdc |
use_cxx=$enableval, use_cxx=yes)
|
|
Packit |
549fdc |
if test "$use_cxx" != "no"; then
|
|
Packit |
549fdc |
AC_LANG_PUSH(C++)
|
|
Packit |
549fdc |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], use_cxx=yes, use_cxx=no)
|
|
Packit |
549fdc |
AC_LANG_POP(C++)
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AM_CONDITIONAL(ENABLE_CXX, test "$use_cxx" != "no")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Detect windows build
|
|
Packit |
549fdc |
use_accel=yes
|
|
Packit |
549fdc |
case "$host" in
|
|
Packit |
549fdc |
*android*)
|
|
Packit |
549fdc |
have_android=yes
|
|
Packit |
549fdc |
have_elf=yes
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
*mingw32* | *mingw64*)
|
|
Packit |
549fdc |
have_win=yes
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
*darwin*)
|
|
Packit |
549fdc |
have_macosx=yes
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
*solaris*)
|
|
Packit |
549fdc |
have_elf=yes
|
|
Packit |
549fdc |
use_accel=no
|
|
Packit |
549fdc |
AC_MSG_WARN([[
|
|
Packit |
549fdc |
***
|
|
Packit |
549fdc |
*** In solaris hardware acceleration is disabled by default due to issues
|
|
Packit |
549fdc |
*** with the assembler. Use --enable-hardware-acceleration to enable it.
|
|
Packit |
549fdc |
*** ]])
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
*)
|
|
Packit |
549fdc |
have_elf=yes
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(ANDROID, test "$have_android" = yes)
|
|
Packit |
549fdc |
AM_CONDITIONAL(WINDOWS, test "$have_win" = yes)
|
|
Packit |
549fdc |
AM_CONDITIONAL(MACOSX, test "$have_macosx" = yes)
|
|
Packit |
549fdc |
AM_CONDITIONAL(ELF, test "$have_elf" = yes)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Hardware Acceleration
|
|
Packit |
549fdc |
AC_ARG_ENABLE(hardware-acceleration,
|
|
Packit |
549fdc |
AS_HELP_STRING([--disable-hardware-acceleration], [unconditionally disable hardware acceleration]),
|
|
Packit |
549fdc |
use_accel=$enableval)
|
|
Packit |
549fdc |
hw_accel=none
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
use_padlock=no
|
|
Packit |
549fdc |
if test "$use_accel" != "no"; then
|
|
Packit |
549fdc |
case $host_cpu in
|
|
Packit |
549fdc |
armv8 | aarch64)
|
|
Packit |
549fdc |
hw_accel="aarch64"
|
|
Packit |
549fdc |
case $host_os in
|
|
Packit |
549fdc |
*_ilp32)
|
|
Packit |
549fdc |
dnl ILP32 not supported in assembler yet
|
|
Packit |
549fdc |
hw_accel="none"
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
i?86 | x86_64 | amd64)
|
|
Packit |
549fdc |
AC_CHECK_HEADERS(cpuid.h)
|
|
Packit |
549fdc |
if test "$host_cpu" = "x86_64" || test "$host_cpu" = "amd64"; then
|
|
Packit |
549fdc |
hw_accel="x86-64"
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
hw_accel="x86"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
use_padlock=yes
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
*)
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Check for iovec type
|
|
Packit |
549fdc |
AC_CHECK_MEMBERS([struct iovec.iov_basea],
|
|
Packit |
549fdc |
[
|
|
Packit |
549fdc |
AC_SUBST([DEFINE_IOVEC_T], ["#include <sys/uio.h>
|
|
Packit |
549fdc |
typedef struct iovec giovec_t;"])
|
|
Packit |
549fdc |
],
|
|
Packit |
549fdc |
[
|
|
Packit |
549fdc |
AC_SUBST([DEFINE_IOVEC_T], ["typedef struct {
|
|
Packit |
549fdc |
void *iov_base;
|
|
Packit |
549fdc |
size_t iov_len;
|
|
Packit |
549fdc |
} giovec_t;"])
|
|
Packit |
549fdc |
],
|
|
Packit |
549fdc |
[#include <sys/uio.h>
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
AM_SUBST_NOTMAKE([DEFINE_IOVEC_T])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Need netinet/tcp.h for TCP_FASTOPEN
|
|
Packit |
549fdc |
AC_CHECK_HEADERS([netinet/tcp.h])
|
|
Packit |
549fdc |
AC_CHECK_HEADERS([stdatomic.h])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl We use its presence to detect C11 threads
|
|
Packit |
549fdc |
AC_CHECK_HEADERS([threads.h])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_ENABLE(padlock,
|
|
Packit |
549fdc |
AS_HELP_STRING([--disable-padlock], [unconditionally disable padlock acceleration]),
|
|
Packit |
549fdc |
use_padlock=$enableval)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$use_padlock" != "no"; then
|
|
Packit |
549fdc |
AC_DEFINE([ENABLE_PADLOCK], 1, [Enable padlock acceleration])
|
|
Packit |
549fdc |
AC_SUBST([ENABLE_PADLOCK])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AM_CONDITIONAL(ENABLE_PADLOCK, test "$use_padlock" = "yes")
|
|
Packit |
549fdc |
AM_CONDITIONAL(ASM_AARCH64, test x"$hw_accel" = x"aarch64")
|
|
Packit |
549fdc |
AM_CONDITIONAL(ASM_X86_64, test x"$hw_accel" = x"x86-64")
|
|
Packit |
549fdc |
AM_CONDITIONAL(ASM_X86_32, test x"$hw_accel" = x"x86")
|
|
Packit |
549fdc |
AM_CONDITIONAL(ASM_X86, test x"$hw_accel" = x"x86" || test x"$hw_accel" = x"x86-64")
|
|
Packit |
549fdc |
AM_CONDITIONAL(HAVE_GCC_GNU89_INLINE_OPTION, test "$gnu89_inline" = "yes"])
|
|
Packit |
549fdc |
AM_CONDITIONAL(HAVE_GCC, test "$GCC" = "yes")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl check for getrandom()
|
|
Packit |
549fdc |
rnd_variant="auto-detect"
|
|
Packit |
549fdc |
AC_MSG_CHECKING([for getrandom])
|
|
Packit |
549fdc |
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
|
Packit |
549fdc |
#include <sys/random.h>],[
|
|
Packit |
549fdc |
getrandom(0, 0, 0);
|
|
Packit |
549fdc |
])],
|
|
Packit |
549fdc |
[AC_MSG_RESULT(yes)
|
|
Packit |
549fdc |
AC_DEFINE([HAVE_GETRANDOM], 1, [Enable the Linux getrandom function])
|
|
Packit |
549fdc |
rnd_variant=getrandom],
|
|
Packit |
549fdc |
[AC_MSG_RESULT(no)])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_MSG_CHECKING([for getentropy])
|
|
Packit |
549fdc |
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
|
Packit |
549fdc |
#include <unistd.h>
|
|
Packit |
549fdc |
#ifdef __linux__
|
|
Packit |
549fdc |
#error 1
|
|
Packit |
549fdc |
#endif
|
|
Packit |
549fdc |
],[
|
|
Packit |
549fdc |
getentropy(0, 0);
|
|
Packit |
549fdc |
])],
|
|
Packit |
549fdc |
[AC_MSG_RESULT(yes)
|
|
Packit |
549fdc |
AC_DEFINE([HAVE_GETENTROPY], 1, [Enable the OpenBSD getentropy function])
|
|
Packit |
549fdc |
rnd_variant=getentropy],
|
|
Packit |
549fdc |
[AC_MSG_RESULT(no)])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(HAVE_GETENTROPY, test "$rnd_variant" = "getentropy")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Try the hooks.m4
|
|
Packit |
549fdc |
LIBGNUTLS_HOOKS
|
|
Packit |
549fdc |
LIBGNUTLS_EXTRA_HOOKS
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_ENABLE(tests,
|
|
Packit |
549fdc |
AS_HELP_STRING([--disable-tests], [don't compile or run any tests]),
|
|
Packit |
549fdc |
enable_tests=$enableval, enable_tests=$enable_tools)
|
|
Packit |
549fdc |
AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" != "no")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_ENABLE(destructive-tests,
|
|
Packit |
549fdc |
AS_HELP_STRING([--enable-destructive-tests], [compile and run tests which touch outside gnutls' code boundary]),
|
|
Packit |
549fdc |
enable_destructive_tests=$enableval, enable_destructive_tests=no)
|
|
Packit |
549fdc |
AM_CONDITIONAL(ENABLE_DESTRUCTIVE_TESTS, test "$enable_destructive_tests" != "no")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_ENABLE(fuzzer-target,
|
|
Packit |
549fdc |
AS_HELP_STRING([--enable-fuzzer-target], [make a library intended for testing - not production]),
|
|
Packit |
549fdc |
enable_fuzzer_target=$enableval, enable_fuzzer_target=no)
|
|
Packit |
549fdc |
if test "$enable_fuzzer_target" != "no";then
|
|
Packit |
549fdc |
AC_DEFINE([FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION], 1, [Enable fuzzer target -not for production])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
GTK_DOC_CHECK(1.1)
|
|
Packit |
549fdc |
AM_GNU_GETTEXT([external])
|
|
Packit |
549fdc |
AM_GNU_GETTEXT_VERSION([0.19])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_C_BIGENDIAN
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl No fork on MinGW, disable some self-tests until we fix them.
|
|
Packit |
549fdc |
dnl Check clock_gettime and pthread_mutex_lock in libc (avoid linking to other libs)
|
|
Packit |
549fdc |
AC_CHECK_FUNCS([fork setitimer inet_ntop inet_pton getrusage getpwuid_r nanosleep daemon getpid clock_gettime localtime fmemopen vasprintf mmap fmemopen],,)
|
|
Packit |
549fdc |
if test "$ac_cv_func_vasprintf" != "yes";then
|
|
Packit |
549fdc |
AC_MSG_CHECKING([for va_copy])
|
|
Packit |
549fdc |
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
|
Packit |
549fdc |
#include <stdarg.h>
|
|
Packit |
549fdc |
va_list a;],[
|
|
Packit |
549fdc |
va_list b;
|
|
Packit |
549fdc |
va_copy(b,a);
|
|
Packit |
549fdc |
va_end(b);])],
|
|
Packit |
549fdc |
[AC_DEFINE([HAVE_VA_COPY], 1, [Have va_copy()])
|
|
Packit |
549fdc |
AC_MSG_RESULT(va_copy)],
|
|
Packit |
549fdc |
[AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
|
Packit |
549fdc |
#include <stdarg.h>
|
|
Packit |
549fdc |
va_list a;],[
|
|
Packit |
549fdc |
va_list b;
|
|
Packit |
549fdc |
__va_copy(b,a);
|
|
Packit |
549fdc |
va_end(b);])],
|
|
Packit |
549fdc |
[AC_DEFINE([HAVE___VA_COPY], 1, [Have __va_copy()])
|
|
Packit |
549fdc |
AC_MSG_RESULT(__va_copy)],
|
|
Packit |
549fdc |
[AC_MSG_RESULT(no)
|
|
Packit |
549fdc |
AC_MSG_ERROR([Your system lacks vasprintf() and va_copy()])])
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(HAVE_FORK, test "$ac_cv_func_fork" != "no")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_CHECK_FUNCS([__register_atfork secure_getenv],,)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_ENABLE(seccomp-tests,
|
|
Packit |
549fdc |
AS_HELP_STRING([--enable-seccomp-tests], [unconditionally enable tests with seccomp]),
|
|
Packit |
549fdc |
seccomp_tests=$enableval, seccomp_tests=no)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(HAVE_SECCOMP_TESTS, test "$seccomp_tests" = "yes")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# check for libseccomp - used in test programs
|
|
Packit |
549fdc |
AC_LIB_HAVE_LINKFLAGS(seccomp,, [#include <seccomp.h>
|
|
Packit |
549fdc |
], [seccomp_init(0);])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# check for libcrypto - used in test programs
|
|
Packit |
549fdc |
AC_LIB_HAVE_LINKFLAGS(crypto,, [#include <openssl/evp.h>
|
|
Packit |
549fdc |
], [EVP_CIPHER_CTX_init(NULL);])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(HAVE_LIBCRYPTO, test "$HAVE_LIBCRYPTO" = "yes")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_LIB_HAVE_LINKFLAGS(rt,, [#include <time.h>
|
|
Packit |
549fdc |
#include <signal.h>
|
|
Packit |
549fdc |
], [timer_create (0,0,0);])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$have_win" != "yes";then
|
|
Packit |
549fdc |
AC_CHECK_FUNCS([pthread_mutex_lock],,)
|
|
Packit |
549fdc |
if test "$ac_cv_func_pthread_mutex_lock" != "yes";then
|
|
Packit |
549fdc |
AC_LIB_HAVE_LINKFLAGS(pthread,, [#include <pthread.h>], [pthread_mutex_lock (0);])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$ac_cv_func_nanosleep" != "yes";then
|
|
Packit |
549fdc |
AC_LIB_HAVE_LINKFLAGS(rt,, [#include <time.h>], [nanosleep (0, 0);])
|
|
Packit |
549fdc |
gnutls_needs_librt=yes
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$ac_cv_func_inet_pton" != "yes";then
|
|
Packit |
549fdc |
AC_LIB_HAVE_LINKFLAGS(nsl,, [#include <arpa/inet.h>], [inet_pton(0,0,0);])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$ac_cv_func_clock_gettime" != "yes";then
|
|
Packit |
549fdc |
AC_LIB_HAVE_LINKFLAGS(rt,, [#include <time.h>], [clock_gettime (0, 0);])
|
|
Packit |
549fdc |
gnutls_needs_librt=yes
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_WITH(included-unistring, AS_HELP_STRING([--with-included-unistring],
|
|
Packit |
549fdc |
[disable linking with system libunistring]),
|
|
Packit |
549fdc |
included_unistring="$withval",
|
|
Packit |
549fdc |
included_unistring=no)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$included_unistring" = yes;then
|
|
Packit |
549fdc |
ac_have_unistring=no
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
AC_LIB_HAVE_LINKFLAGS(unistring,, [#include <uninorm.h>], [u8_normalize(0, 0, 0, 0, 0);])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$HAVE_LIBUNISTRING" = "yes";then
|
|
Packit |
549fdc |
included_unistring=no
|
|
Packit |
549fdc |
ac_have_unistring=yes
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
AC_MSG_ERROR([[
|
|
Packit |
549fdc |
***
|
|
Packit |
549fdc |
*** Libunistring was not found. To use the included one, use --with-included-unistring
|
|
Packit |
549fdc |
]])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(HAVE_LIBUNISTRING, test "$ac_have_unistring" = "yes")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Note that g*l_INIT are run after we check for library capabilities,
|
|
Packit |
549fdc |
dnl to prevent issues from caching lib dependencies. See discussion
|
|
Packit |
549fdc |
dnl in https://bugs.gentoo.org/show_bug.cgi?id=494940 and
|
|
Packit |
549fdc |
dnl http://gnu-autoconf.7623.n7.nabble.com/Correct-way-to-check-for-clock-gettime-td12276.html
|
|
Packit |
549fdc |
gl_INIT
|
|
Packit |
549fdc |
ggl_INIT
|
|
Packit |
549fdc |
unistring_INIT
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# disable the extended test suite at tests/suite if asked, or if we are not running in git master
|
|
Packit |
549fdc |
AC_ARG_ENABLE(full-test-suite,
|
|
Packit |
549fdc |
AS_HELP_STRING([--disable-full-test-suite], [disable running very slow components of test suite]),
|
|
Packit |
549fdc |
full_test_suite=$enableval, full_test_suite=yes)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# test if we are in git master or in release build. In release
|
|
Packit |
549fdc |
# builds we do not use valgrind.
|
|
Packit |
549fdc |
SUITE_FILE="${srcdir}/tests/suite/mini-eagain2.c"
|
|
Packit |
549fdc |
if test "$full_test_suite" = yes && test ! -f "$SUITE_FILE";then
|
|
Packit |
549fdc |
full_test_suite=no
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(WANT_TEST_SUITE, test "$full_test_suite" = "yes")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl GCC warnings to enable
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_ENABLE([gcc-warnings],
|
|
Packit |
549fdc |
[AS_HELP_STRING([--disable-gcc-warnings],
|
|
Packit |
549fdc |
[turn off lots of GCC warnings (for developers)])],
|
|
Packit |
549fdc |
[case $enableval in
|
|
Packit |
549fdc |
yes|no) ;;
|
|
Packit |
549fdc |
*) AC_MSG_ERROR([bad value $enableval for gcc-warnings option]) ;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
gl_gcc_warnings=$enableval],
|
|
Packit |
549fdc |
[gl_gcc_warnings=yes]
|
|
Packit |
549fdc |
)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$gl_gcc_warnings" = yes; then
|
|
Packit |
549fdc |
gl_WARN_ADD([-Wtype-limits], [WSTACK_CFLAGS])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
|
|
Packit |
549fdc |
nw="$nw -Wc++-compat" # We don't care about C++ compilers
|
|
Packit |
549fdc |
nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
|
|
Packit |
549fdc |
nw="$nw -Wtraditional" # Warns on #elif which we use often
|
|
Packit |
549fdc |
nw="$nw -Wpadded" # Our structs are not padded
|
|
Packit |
549fdc |
nw="$nw -Wtraditional-conversion" # Too many warnings for now
|
|
Packit |
549fdc |
nw="$nw -Wswitch-default" # Too many warnings for now
|
|
Packit |
549fdc |
nw="$nw -Wformat-y2k" # Too many warnings for now
|
|
Packit |
549fdc |
nw="$nw -Woverlength-strings" # We use some in tests/
|
|
Packit |
549fdc |
nw="$nw -Wvla" # There is no point to avoid C99 variable length arrays
|
|
Packit |
549fdc |
nw="$nw -Wformat-nonliteral" # Incompatible with gettext _()
|
|
Packit |
549fdc |
nw="$nw -Wformat-signedness" # Too many to handle
|
|
Packit |
549fdc |
nw="$nw -Wstrict-overflow"
|
|
Packit |
549fdc |
nw="$nw -Wmissing-noreturn"
|
|
Packit |
549fdc |
nw="$nw -Winline" # Too compiler dependent
|
|
Packit |
549fdc |
nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes?
|
|
Packit |
549fdc |
nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes?
|
|
Packit |
549fdc |
nw="$nw -Wsuggest-attribute=noreturn" # Is it worth using attributes?
|
|
Packit |
549fdc |
nw="$nw -Wstack-protector" # Some functions cannot be protected
|
|
Packit |
549fdc |
nw="$nw -Wunsafe-loop-optimizations" # Warnings with no point
|
|
Packit |
549fdc |
nw="$nw -Wredundant-decls" # Some files cannot be compiled with that (gl_fd_to_handle)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
gl_MANYWARN_ALL_GCC([ws])
|
|
Packit |
549fdc |
gl_MANYWARN_COMPLEMENT(ws, [$ws], [$nw])
|
|
Packit |
549fdc |
for w in $ws; do
|
|
Packit |
549fdc |
gl_WARN_ADD([$w])
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
gl_WARN_ADD([-Wno-missing-field-initializers]) # We need this one
|
|
Packit |
549fdc |
gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now
|
|
Packit |
549fdc |
gl_WARN_ADD([-Wno-format-truncation]) # Many warnings with no point
|
|
Packit |
549fdc |
gl_WARN_ADD([-fdiagnostics-show-option])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_SUBST([WERROR_CFLAGS])
|
|
Packit |
549fdc |
AC_SUBST([WSTACK_CFLAGS])
|
|
Packit |
549fdc |
AC_SUBST([WARN_CFLAGS])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Programs for compilation or development
|
|
Packit |
549fdc |
AC_PROG_LN_S
|
|
Packit |
549fdc |
LT_INIT([disable-static,win32-dll,shared])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_LIB_HAVE_LINKFLAGS(dl,, [#include <dlfcn.h>], [dladdr (0, 0);])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_ENABLE(fips140-mode,
|
|
Packit |
549fdc |
AS_HELP_STRING([--enable-fips140-mode], [enable FIPS140-2 mode]),
|
|
Packit |
549fdc |
enable_fips=$enableval, enable_fips=no)
|
|
Packit |
549fdc |
AM_CONDITIONAL(ENABLE_FIPS140, test "$enable_fips" = "yes")
|
|
Packit |
549fdc |
if [ test "$enable_fips" = "yes" ];then
|
|
Packit |
549fdc |
if test "x$HAVE_LIBDL" = "xyes";then
|
|
Packit |
549fdc |
AC_DEFINE([ENABLE_FIPS140], 1, [Enable FIPS140-2 mode])
|
|
Packit |
549fdc |
AC_SUBST([FIPS140_LIBS], $LIBDL)
|
|
Packit |
549fdc |
AC_ARG_WITH(fips140-key, AS_HELP_STRING([--with-fips140-key],
|
|
Packit |
549fdc |
[specify the FIPS140 HMAC key for integrity]),
|
|
Packit |
549fdc |
fips_key="$withval",
|
|
Packit |
549fdc |
fips_key="orboDeJITITejsirpADONivirpUkvarP")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_DEFINE_UNQUOTED([FIPS_KEY], ["$fips_key"], [The FIPS140-2 integrity key])
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
enable_fips=no
|
|
Packit |
549fdc |
AC_MSG_WARN([[
|
|
Packit |
549fdc |
***
|
|
Packit |
549fdc |
*** This system is not supported in FIPS140 mode.
|
|
Packit |
549fdc |
*** libdl and dladdr() are required.
|
|
Packit |
549fdc |
*** ]])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
PKG_CHECK_MODULES(CMOCKA, [cmocka >= 1.0.1], [with_cmocka=yes], [with_cmocka=no])
|
|
Packit |
549fdc |
AM_CONDITIONAL(HAVE_CMOCKA, test "$with_cmocka" != "no")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
with_old_nettle=no
|
|
Packit |
549fdc |
if ! $PKG_CONFIG --atleast-version=3.3 nettle; then
|
|
Packit |
549fdc |
with_old_nettle=yes
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AM_CONDITIONAL(WITH_OLD_NETTLE, test "$with_old_nettle" != "no")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_WITH(idn, AS_HELP_STRING([--without-idn],
|
|
Packit |
549fdc |
[disable support for IDNA]),
|
|
Packit |
549fdc |
try_libidn2="$withval",
|
|
Packit |
549fdc |
try_libidn2=yes)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
idna_support=no
|
|
Packit |
549fdc |
with_libidn2=no
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$try_libidn2" = yes;then
|
|
Packit |
549fdc |
AC_SEARCH_LIBS(idn2_lookup_u8, idn2, [
|
|
Packit |
549fdc |
with_libidn2=yes;
|
|
Packit |
549fdc |
idna_support="IDNA 2008 (libidn2)"
|
|
Packit |
549fdc |
AC_DEFINE([HAVE_LIBIDN2], 1, [Define if IDNA 2008 support is enabled.])
|
|
Packit |
549fdc |
AC_SUBST([LIBIDN2_CFLAGS], [])
|
|
Packit |
549fdc |
AC_SUBST([LIBIDN2_LIBS], [-lidn2]) dnl used in gnutls.pc.in
|
|
Packit |
549fdc |
dnl enable once libidn2.pc is widespread; and remove LIBIDN2_LIBS from gnutls.pc.in (Libs.private)
|
|
Packit |
549fdc |
dnl if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
|
|
Packit |
549fdc |
dnl GNUTLS_REQUIRES_PRIVATE="Requires.private: libidn2"
|
|
Packit |
549fdc |
dnl else
|
|
Packit |
549fdc |
dnl GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libidn2"
|
|
Packit |
549fdc |
dnl fi
|
|
Packit |
549fdc |
],[
|
|
Packit |
549fdc |
with_libidn2=no;
|
|
Packit |
549fdc |
AC_MSG_WARN(*** LIBIDN2 was not found. You will not be able to use IDN2008 support)
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
with_libidn2=no
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(HAVE_LIBIDN2, test "$with_libidn2" != "no")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_ENABLE(non-suiteb-curves,
|
|
Packit |
549fdc |
AS_HELP_STRING([--disable-non-suiteb-curves], [disable curves not in SuiteB]),
|
|
Packit |
549fdc |
enable_non_suiteb=$enableval, enable_non_suiteb=yes)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$enable_non_suiteb" = "yes";then
|
|
Packit |
549fdc |
dnl nettle_secp_192r1 is not really a function
|
|
Packit |
549fdc |
AC_CHECK_LIB(hogweed, nettle_secp_192r1, enable_non_suiteb=yes, enable_non_suiteb=no, [$HOGWEED_LIBS])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$enable_non_suiteb" = "yes";then
|
|
Packit |
549fdc |
AC_DEFINE([ENABLE_NON_SUITEB_CURVES], 1, [Enable all curves])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AM_CONDITIONAL(ENABLE_NON_SUITEB_CURVES, test "$enable_non_suiteb" = "yes")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl nettle_rsa_pss_* are only available in the development version of nettle
|
|
Packit |
549fdc |
AC_CHECK_LIB(hogweed, nettle_rsa_pss_sha256_verify_digest, have_nettle_rsa_pss=yes, have_nettle_rsa_pss=no, [$HOGWEED_LIBS])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$have_nettle_rsa_pss" = "yes";then
|
|
Packit |
549fdc |
AC_DEFINE([HAVE_NETTLE_RSA_PSS], 1, [Have nettle_rsa_pss_*])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AM_CONDITIONAL(HAVE_NETTLE_RSA_PSS, test "$have_nettle_rsa_pss" = "yes")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_MSG_CHECKING([whether to build libdane])
|
|
Packit |
549fdc |
AC_ARG_ENABLE(libdane,
|
|
Packit |
549fdc |
AS_HELP_STRING([--disable-libdane],
|
|
Packit |
549fdc |
[disable the built of libdane]),
|
|
Packit |
549fdc |
enable_dane=$enableval, enable_dane=yes)
|
|
Packit |
549fdc |
AC_MSG_RESULT($enable_dane)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$enable_dane" != "no"; then
|
|
Packit |
549fdc |
LIBS="$oldlibs -lunbound"
|
|
Packit |
549fdc |
AC_MSG_CHECKING([for unbound library])
|
|
Packit |
549fdc |
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
|
Packit |
549fdc |
#include <unbound.h>],[
|
|
Packit |
549fdc |
struct ub_ctx* ctx;
|
|
Packit |
549fdc |
ctx = ub_ctx_create();])],
|
|
Packit |
549fdc |
[AC_MSG_RESULT(yes)
|
|
Packit |
549fdc |
AC_SUBST([UNBOUND_LIBS], [-lunbound])
|
|
Packit |
549fdc |
AC_SUBST([UNBOUND_CFLAGS], [])
|
|
Packit |
549fdc |
AC_DEFINE([HAVE_DANE], 1, [Enable the DANE library])
|
|
Packit |
549fdc |
enable_dane=yes],
|
|
Packit |
549fdc |
[AC_MSG_RESULT(no)
|
|
Packit |
549fdc |
AC_MSG_WARN([[
|
|
Packit |
549fdc |
***
|
|
Packit |
549fdc |
*** libunbound was not found. Libdane will not be built.
|
|
Packit |
549fdc |
*** ]])
|
|
Packit |
549fdc |
enable_dane=no])
|
|
Packit |
549fdc |
LIBS="$oldlibs"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(ENABLE_DANE, test "$enable_dane" = "yes")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_WITH(unbound-root-key-file, AS_HELP_STRING([--with-unbound-root-key-file],
|
|
Packit |
549fdc |
[specify the unbound root key file]),
|
|
Packit |
549fdc |
unbound_root_key_file="$withval",
|
|
Packit |
549fdc |
if test "$have_win" = yes; then
|
|
Packit |
549fdc |
unbound_root_key_file="C:\\Program Files\\Unbound\\root.key"
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
if test -f /var/lib/unbound/root.key;then
|
|
Packit |
549fdc |
unbound_root_key_file="/var/lib/unbound/root.key"
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
if test -f /usr/share/dns/root.key;then
|
|
Packit |
549fdc |
unbound_root_key_file="/usr/share/dns/root.key"
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
unbound_root_key_file="/etc/unbound/root.key"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_DEFINE_UNQUOTED([UNBOUND_ROOT_KEY_FILE],
|
|
Packit |
549fdc |
["$unbound_root_key_file"], [The DNSSEC root key file])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_WITH(system-priority-file, AS_HELP_STRING([--with-system-priority-file],
|
|
Packit |
549fdc |
[specify the system priority file]),
|
|
Packit |
549fdc |
system_priority_file="$withval",
|
|
Packit |
549fdc |
system_priority_file="/etc/gnutls/default-priorities"
|
|
Packit |
549fdc |
)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_DEFINE_UNQUOTED([SYSTEM_PRIORITY_FILE],
|
|
Packit |
549fdc |
["$system_priority_file"], [The system priority file])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_WITH(default-priority-string, AS_HELP_STRING([--with-default-priority-string],
|
|
Packit |
549fdc |
[specify the default priority string (e.g. @SYSTEM)]),
|
|
Packit |
549fdc |
prio_string="$withval",
|
|
Packit |
549fdc |
prio_string="NORMAL")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_DEFINE_UNQUOTED([DEFAULT_PRIORITY_STRING], ["$prio_string"], [The default priority string])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Check for p11-kit
|
|
Packit |
549fdc |
P11_KIT_MINIMUM=0.23.1
|
|
Packit |
549fdc |
AC_ARG_WITH(p11-kit,
|
|
Packit |
549fdc |
AS_HELP_STRING([--without-p11-kit],
|
|
Packit |
549fdc |
[Build without p11-kit and PKCS#11 support]))
|
|
Packit |
549fdc |
if test "$with_p11_kit" != "no"; then
|
|
Packit |
549fdc |
PKG_CHECK_MODULES(P11_KIT, [p11-kit-1 >= $P11_KIT_MINIMUM], [with_p11_kit=yes], [with_p11_kit=no])
|
|
Packit |
549fdc |
if test "$with_p11_kit" != "no";then
|
|
Packit |
549fdc |
AC_DEFINE([ENABLE_PKCS11], 1, [Build PKCS#11 support])
|
|
Packit |
549fdc |
if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
|
|
Packit |
549fdc |
GNUTLS_REQUIRES_PRIVATE="Requires.private: p11-kit-1"
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, p11-kit-1"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
with_p11_kit=no
|
|
Packit |
549fdc |
AC_MSG_ERROR([[
|
|
Packit |
549fdc |
***
|
|
Packit |
549fdc |
*** p11-kit >= $P11_KIT_MINIMUM was not found. To disable PKCS #11 support
|
|
Packit |
549fdc |
*** use --without-p11-kit, otherwise you may get p11-kit from
|
|
Packit |
549fdc |
*** http://p11-glue.freedesktop.org/p11-kit.html
|
|
Packit |
549fdc |
*** ]])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(ENABLE_PKCS11, test "$with_p11_kit" != "no")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_WITH(tpm,
|
|
Packit |
549fdc |
AS_HELP_STRING([--without-tpm],
|
|
Packit |
549fdc |
[Disable TPM (trousers) support.]),
|
|
Packit |
549fdc |
[with_tpm=$withval], [with_tpm=yes])
|
|
Packit |
549fdc |
if test "$with_tpm" != "no"; then
|
|
Packit |
549fdc |
LIBS="$oldlibs -ltspi"
|
|
Packit |
549fdc |
AC_MSG_CHECKING([for tss library])
|
|
Packit |
549fdc |
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
|
Packit |
549fdc |
#include <trousers/tss.h>
|
|
Packit |
549fdc |
#include <trousers/trousers.h>],[
|
|
Packit |
549fdc |
int err = Tspi_Context_Create((void *)0);
|
|
Packit |
549fdc |
Trspi_Error_String(err);])],
|
|
Packit |
549fdc |
[AC_MSG_RESULT(yes)
|
|
Packit |
549fdc |
AC_SUBST([TSS_LIBS], [-ltspi])
|
|
Packit |
549fdc |
AC_SUBST([TSS_CFLAGS], [])
|
|
Packit |
549fdc |
AC_DEFINE([HAVE_TROUSERS], 1, [Enable TPM])
|
|
Packit |
549fdc |
with_tpm=yes],
|
|
Packit |
549fdc |
[AC_MSG_RESULT(no)
|
|
Packit |
549fdc |
AC_MSG_WARN([[
|
|
Packit |
549fdc |
***
|
|
Packit |
549fdc |
*** trousers was not found. TPM support will be disabled.
|
|
Packit |
549fdc |
*** ]])
|
|
Packit |
549fdc |
with_tpm=no])
|
|
Packit |
549fdc |
LIBS="$oldlibs"
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(ENABLE_TROUSERS, test "$with_tpm" != "no")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
for l in /usr/lib64 /usr/lib /lib64 /lib /usr/lib/x86_64-linux-gnu/; do
|
|
Packit |
549fdc |
if test -f "${l}/libtspi.so.1";then
|
|
Packit |
549fdc |
default_trousers_lib="${l}/libtspi.so.1"
|
|
Packit |
549fdc |
break
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_WITH(trousers-lib, AS_HELP_STRING([--with-trousers-lib=LIB],
|
|
Packit |
549fdc |
[set the location of the trousers library]),
|
|
Packit |
549fdc |
ac_trousers_lib=$withval, ac_trousers_lib=$default_trousers_lib)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$with_tpm" != "no" && test -z "$ac_trousers_lib"; then
|
|
Packit |
549fdc |
AC_MSG_ERROR([[
|
|
Packit |
549fdc |
***
|
|
Packit |
549fdc |
*** unable to find trousers library, please specify with --with-trousers-lib=<lib file>
|
|
Packit |
549fdc |
***
|
|
Packit |
549fdc |
]])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_DEFINE_UNQUOTED([TROUSERS_LIB], ["$ac_trousers_lib"], [the location of the trousers library])
|
|
Packit |
549fdc |
AC_SUBST(TROUSERS_LIB)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
included_libopts=no
|
|
Packit |
549fdc |
create_libopts_links=no
|
|
Packit |
549fdc |
if test "$enable_tools" != "no" || test "$enable_doc" != "no"; then
|
|
Packit |
549fdc |
LIBOPTS_CHECK([src/libopts])
|
|
Packit |
549fdc |
if test "$NEED_LIBOPTS_DIR" = "true";then
|
|
Packit |
549fdc |
dnl replace libopts-generated files with distributed backups, if present
|
|
Packit |
549fdc |
create_libopts_links=yes
|
|
Packit |
549fdc |
AC_SUBST([AUTOGEN], [/bin/true])
|
|
Packit |
549fdc |
included_libopts=yes
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
# Need to ensure the relevant conditionals get set
|
|
Packit |
549fdc |
gl_STDNORETURN_H
|
|
Packit |
549fdc |
AM_CONDITIONAL([INSTALL_LIBOPTS],[false])
|
|
Packit |
549fdc |
AM_CONDITIONAL([NEED_LIBOPTS], [false])
|
|
Packit |
549fdc |
included_libopts=yes
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(NEED_LIBOPTS, test "$included_libopts" = "yes")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_CHECK_TYPE(ssize_t,
|
|
Packit |
549fdc |
[
|
|
Packit |
549fdc |
DEFINE_SSIZE_T="#include <sys/types.h>"
|
|
Packit |
549fdc |
AC_SUBST(DEFINE_SSIZE_T)
|
|
Packit |
549fdc |
], [
|
|
Packit |
549fdc |
AC_DEFINE([NO_SSIZE_T], 1, [no ssize_t type was found])
|
|
Packit |
549fdc |
DEFINE_SSIZE_T="typedef int ssize_t;"
|
|
Packit |
549fdc |
AC_SUBST(DEFINE_SSIZE_T)
|
|
Packit |
549fdc |
], [
|
|
Packit |
549fdc |
#include <sys/types.h>
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# For minitasn1.
|
|
Packit |
549fdc |
AC_CHECK_SIZEOF(unsigned long int, 4)
|
|
Packit |
549fdc |
AC_CHECK_SIZEOF(unsigned int, 4)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# export for use in scripts
|
|
Packit |
549fdc |
AC_SUBST(ac_cv_sizeof_unsigned_long_int)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_SUBST(GNUTLS_REQUIRES_PRIVATE)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_WITH([default-trust-store-pkcs11],
|
|
Packit |
549fdc |
[AS_HELP_STRING([--with-default-trust-store-pkcs11=URI],
|
|
Packit |
549fdc |
[use the given pkcs11 uri as default trust store])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "x$with_default_trust_store_pkcs11" != x; then
|
|
Packit |
549fdc |
if test "x$with_p11_kit" = xno; then
|
|
Packit |
549fdc |
AC_MSG_ERROR([cannot use pkcs11 store without p11-kit])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
AC_DEFINE_UNQUOTED([DEFAULT_TRUST_STORE_PKCS11],
|
|
Packit |
549fdc |
["$with_default_trust_store_pkcs11"], [use the given pkcs11 uri as default trust store])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL([HAVE_PKCS11_TRUST_STORE], [test -n "${with_default_trust_store_pkcs11}"])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_WITH([default-trust-store-dir],
|
|
Packit |
549fdc |
[AS_HELP_STRING([--with-default-trust-store-dir=DIR],
|
|
Packit |
549fdc |
[use the given directory as default trust store])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "x$with_default_trust_store_dir" != x; then
|
|
Packit |
549fdc |
AC_DEFINE_UNQUOTED([DEFAULT_TRUST_STORE_DIR],
|
|
Packit |
549fdc |
["$with_default_trust_store_dir"], [use the given directory as default trust store])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl auto detect http://lists.gnu.org/archive/html/help-gnutls/2012-05/msg00004.html
|
|
Packit |
549fdc |
AC_ARG_WITH([default-trust-store-file],
|
|
Packit |
549fdc |
[AS_HELP_STRING([--with-default-trust-store-file=FILE],
|
|
Packit |
549fdc |
[use the given file default trust store])], with_default_trust_store_file="$withval",
|
|
Packit |
549fdc |
[if test "$build" = "$host" && test x$with_default_trust_store_pkcs11 = x && test x$with_default_trust_store_dir = x && test x$have_macosx = x;then
|
|
Packit |
549fdc |
for i in \
|
|
Packit |
549fdc |
/etc/ssl/ca-bundle.pem \
|
|
Packit |
549fdc |
/etc/ssl/certs/ca-certificates.crt \
|
|
Packit |
549fdc |
/etc/pki/tls/cert.pem \
|
|
Packit |
549fdc |
/usr/local/share/certs/ca-root-nss.crt \
|
|
Packit |
549fdc |
/etc/ssl/cert.pem
|
|
Packit |
549fdc |
do
|
|
Packit |
549fdc |
if test -e "$i"; then
|
|
Packit |
549fdc |
with_default_trust_store_file="$i"
|
|
Packit |
549fdc |
break
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
fi]
|
|
Packit |
549fdc |
)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$with_default_trust_store_file" = "no";then
|
|
Packit |
549fdc |
with_default_trust_store_file=""
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_WITH([default-crl-file],
|
|
Packit |
549fdc |
[AS_HELP_STRING([--with-default-crl-file=FILE],
|
|
Packit |
549fdc |
[use the given CRL file as default])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_WITH([default-blacklist-file],
|
|
Packit |
549fdc |
[AS_HELP_STRING([--with-default-blacklist-file=FILE],
|
|
Packit |
549fdc |
[use the given certificate blacklist file as default])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "x$with_default_trust_store_file" != x; then
|
|
Packit |
549fdc |
AC_DEFINE_UNQUOTED([DEFAULT_TRUST_STORE_FILE],
|
|
Packit |
549fdc |
["$with_default_trust_store_file"], [use the given file default trust store])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "x$with_default_crl_file" != x; then
|
|
Packit |
549fdc |
AC_DEFINE_UNQUOTED([DEFAULT_CRL_FILE],
|
|
Packit |
549fdc |
["$with_default_crl_file"], [use the given CRL file])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "x$with_default_blacklist_file" != x; then
|
|
Packit |
549fdc |
AC_DEFINE_UNQUOTED([DEFAULT_BLACKLIST_FILE],
|
|
Packit |
549fdc |
["$with_default_blacklist_file"], [use the given certificate blacklist file])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Guile bindings.
|
|
Packit |
549fdc |
opt_guile_bindings=yes
|
|
Packit |
549fdc |
AC_MSG_CHECKING([whether building Guile bindings])
|
|
Packit |
549fdc |
AC_ARG_ENABLE(guile,
|
|
Packit |
549fdc |
AS_HELP_STRING([--enable-guile], [build GNU Guile bindings]),
|
|
Packit |
549fdc |
opt_guile_bindings=$enableval)
|
|
Packit |
549fdc |
AC_MSG_RESULT($opt_guile_bindings)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_ARG_WITH([guile-site-dir],
|
|
Packit |
549fdc |
[AS_HELP_STRING([--with-guile-site-dir],
|
|
Packit |
549fdc |
[use the given directory as the Guile site (use with care)])])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$opt_guile_bindings" = "yes"; then
|
|
Packit |
549fdc |
AC_MSG_RESULT([***
|
|
Packit |
549fdc |
*** Detecting GNU Guile...
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_PATH_PROG([guile_snarf], [guile-snarf])
|
|
Packit |
549fdc |
if test "x$guile_snarf" = "x"; then
|
|
Packit |
549fdc |
AC_MSG_WARN([`guile-snarf' from Guile not found. Guile bindings not built.])
|
|
Packit |
549fdc |
opt_guile_bindings=no
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
dnl Check for 'guild', which can be used to compile Scheme code
|
|
Packit |
549fdc |
dnl on Guile 2.x.
|
|
Packit |
549fdc |
AC_PATH_PROG([GUILD], [guild])
|
|
Packit |
549fdc |
AC_SUBST([GUILD])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
GUILE_PROGS
|
|
Packit |
549fdc |
GUILE_FLAGS
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
save_CFLAGS="$CFLAGS"
|
|
Packit |
549fdc |
save_LIBS="$LIBS"
|
|
Packit |
549fdc |
CFLAGS="$CFLAGS $GUILE_CFLAGS"
|
|
Packit |
549fdc |
LIBS="$LIBS $GUILE_LDFLAGS"
|
|
Packit |
549fdc |
AC_MSG_CHECKING([whether GNU Guile is recent enough])
|
|
Packit |
549fdc |
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [scm_from_locale_string ("")])],
|
|
Packit |
549fdc |
[], [opt_guile_bindings=no])
|
|
Packit |
549fdc |
CFLAGS="$save_CFLAGS"
|
|
Packit |
549fdc |
LIBS="$save_LIBS"
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_MSG_CHECKING([the Guile effective version])
|
|
Packit |
549fdc |
guile_effective_version="`$GUILE -c '(display (effective-version))'`"
|
|
Packit |
549fdc |
AC_MSG_RESULT([$guile_effective_version])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$opt_guile_bindings" = "yes"; then
|
|
Packit |
549fdc |
AC_MSG_RESULT([yes])
|
|
Packit |
549fdc |
case "x$with_guile_site_dir" in
|
|
Packit |
549fdc |
xno)
|
|
Packit |
549fdc |
# Use the default $(GUILE_SITE).
|
|
Packit |
549fdc |
GUILE_SITE_DIR
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
x|xyes)
|
|
Packit |
549fdc |
# Automatically derive $(GUILE_SITE) from $(pkgdatadir). This
|
|
Packit |
549fdc |
# hack is used to allow `distcheck' to work (see
|
|
Packit |
549fdc |
# `DISTCHECK_CONFIGURE_FLAGS' in the top-level `Makefile.am').
|
|
Packit |
549fdc |
GUILE_SITE="\$(datadir)/guile/site/$guile_effective_version"
|
|
Packit |
549fdc |
AC_SUBST(GUILE_SITE)
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
*)
|
|
Packit |
549fdc |
# Use the user-specified directory as $(GUILE_SITE).
|
|
Packit |
549fdc |
GUILE_SITE="$with_guile_site_dir"
|
|
Packit |
549fdc |
AC_SUBST(GUILE_SITE)
|
|
Packit |
549fdc |
;;
|
|
Packit |
549fdc |
esac
|
|
Packit |
549fdc |
AC_MSG_CHECKING([whether gcc supports -fgnu89-inline])
|
|
Packit |
549fdc |
_gcc_cflags_save="$CFLAGS"
|
|
Packit |
549fdc |
CFLAGS="${CFLAGS} -fgnu89-inline"
|
|
Packit |
549fdc |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
|
|
Packit |
549fdc |
gnu89_inline=yes, gnu89_inline=no)
|
|
Packit |
549fdc |
AC_MSG_RESULT($gnu89_inline)
|
|
Packit |
549fdc |
CFLAGS="$_gcc_cflags_save"
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# Optional Guile functions.
|
|
Packit |
549fdc |
save_CFLAGS="$CFLAGS"
|
|
Packit |
549fdc |
save_LIBS="$LIBS"
|
|
Packit |
549fdc |
CFLAGS="$CFLAGS $GUILE_CFLAGS"
|
|
Packit |
549fdc |
LIBS="$LIBS $GUILE_LDFLAGS"
|
|
Packit |
549fdc |
AC_CHECK_FUNCS([scm_gc_malloc_pointerless])
|
|
Packit |
549fdc |
CFLAGS="$save_CFLAGS"
|
|
Packit |
549fdc |
LIBS="$save_LIBS"
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# The place where guile-gnutls.la will go.
|
|
Packit |
549fdc |
guileextensiondir="$libdir/guile/$guile_effective_version"
|
|
Packit |
549fdc |
AC_SUBST([guileextensiondir])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# The location of .go files.
|
|
Packit |
549fdc |
guileobjectdir="$libdir/guile/$guile_effective_version/site-ccache"
|
|
Packit |
549fdc |
AC_SUBST([guileobjectdir])
|
|
Packit |
549fdc |
else
|
|
Packit |
549fdc |
AC_MSG_RESULT([no])
|
|
Packit |
549fdc |
AC_MSG_WARN([A sufficiently recent GNU Guile not found. Guile bindings not built.])
|
|
Packit |
549fdc |
opt_guile_bindings=no
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL([HAVE_GUILE], [test "$opt_guile_bindings" = "yes"])
|
|
Packit |
549fdc |
AM_CONDITIONAL([HAVE_GUILD], [test "x$GUILD" != "x"])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBS"
|
|
Packit |
549fdc |
LIBGNUTLS_CFLAGS="-I${includedir}"
|
|
Packit |
549fdc |
AC_SUBST(LIBGNUTLS_LIBS)
|
|
Packit |
549fdc |
AC_SUBST(LIBGNUTLS_CFLAGS)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AM_CONDITIONAL(NEEDS_LIBRT, test "$gnutls_needs_librt" = "yes")
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_DEFINE([GNUTLS_COMPAT_H], 1, [Make sure we don't use old features in code.])
|
|
Packit |
549fdc |
AC_DEFINE([GNUTLS_INTERNAL_BUILD], 1, [We allow temporarily usage of deprecated functions - until they are removed.])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_DEFINE([fread_file], [_gnutls_fread_file], [static lib rename])
|
|
Packit |
549fdc |
AC_DEFINE([read_file], [_gnutls_read_file], [static lib rename])
|
|
Packit |
549fdc |
AC_DEFINE([read_binary_file], [_gnutls_read_binary_file], [static lib rename])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Some variables needed in makefiles
|
|
Packit |
549fdc |
YEAR=`date +%Y`
|
|
Packit |
549fdc |
AC_SUBST([YEAR], $YEAR)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
for i in ${srcdir}/src/*-args.c.bak ${srcdir}/src/*-args.h.bak; do
|
|
Packit |
549fdc |
nam=$(basename $i|sed 's/.bak//g')
|
|
Packit |
549fdc |
if test "$create_libopts_links" = "yes";then
|
|
Packit |
549fdc |
rm -f "src/$nam.stamp"
|
|
Packit |
549fdc |
rm -f "src/$nam"
|
|
Packit |
549fdc |
AC_CONFIG_LINKS([src/$nam:$i])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
done
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_CONFIG_FILES([guile/pre-inst-guile], [chmod +x guile/pre-inst-guile])
|
|
Packit |
549fdc |
AC_CONFIG_FILES([
|
|
Packit |
549fdc |
Makefile
|
|
Packit |
549fdc |
doc/Makefile
|
|
Packit |
549fdc |
doc/credentials/Makefile
|
|
Packit |
549fdc |
doc/credentials/srp/Makefile
|
|
Packit |
549fdc |
doc/credentials/x509/Makefile
|
|
Packit |
549fdc |
doc/cyclo/Makefile
|
|
Packit |
549fdc |
doc/doxygen/Doxyfile
|
|
Packit |
549fdc |
doc/examples/Makefile
|
|
Packit |
549fdc |
doc/latex/Makefile
|
|
Packit |
549fdc |
doc/manpages/Makefile
|
|
Packit |
549fdc |
doc/reference/Makefile
|
|
Packit |
549fdc |
doc/reference/version.xml
|
|
Packit |
549fdc |
doc/scripts/Makefile
|
|
Packit |
549fdc |
extra/Makefile
|
|
Packit |
549fdc |
extra/includes/Makefile
|
|
Packit |
549fdc |
libdane/Makefile
|
|
Packit |
549fdc |
libdane/includes/Makefile
|
|
Packit |
549fdc |
libdane/gnutls-dane.pc
|
|
Packit |
549fdc |
gl/Makefile
|
|
Packit |
549fdc |
gl/tests/Makefile
|
|
Packit |
549fdc |
guile/Makefile
|
|
Packit |
549fdc |
guile/src/Makefile
|
|
Packit |
549fdc |
lib/Makefile
|
|
Packit |
549fdc |
lib/accelerated/Makefile
|
|
Packit |
549fdc |
lib/accelerated/x86/Makefile
|
|
Packit |
549fdc |
lib/accelerated/aarch64/Makefile
|
|
Packit |
549fdc |
lib/algorithms/Makefile
|
|
Packit |
549fdc |
lib/auth/Makefile
|
|
Packit |
549fdc |
lib/ext/Makefile
|
|
Packit |
549fdc |
lib/extras/Makefile
|
|
Packit |
549fdc |
lib/gnutls.pc
|
|
Packit |
549fdc |
lib/includes/Makefile
|
|
Packit |
549fdc |
lib/includes/gnutls/gnutls.h
|
|
Packit |
549fdc |
lib/minitasn1/Makefile
|
|
Packit |
549fdc |
lib/nettle/Makefile
|
|
Packit |
549fdc |
lib/x509/Makefile
|
|
Packit |
549fdc |
lib/unistring/Makefile
|
|
Packit |
549fdc |
po/Makefile.in
|
|
Packit |
549fdc |
src/Makefile
|
|
Packit |
549fdc |
src/gl/Makefile
|
|
Packit |
549fdc |
tests/Makefile
|
|
Packit |
549fdc |
tests/windows/Makefile
|
|
Packit |
549fdc |
tests/cert-tests/Makefile
|
|
Packit |
549fdc |
tests/slow/Makefile
|
|
Packit |
549fdc |
tests/suite/Makefile
|
|
Packit |
549fdc |
fuzz/Makefile
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_OUTPUT
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
dnl Warning flags: errors: ${WERROR_CFLAGS} warnings: ${WARN_CFLAGS}
|
|
Packit |
549fdc |
AC_MSG_NOTICE([summary of build options:
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
|
|
Packit |
549fdc |
Host/Target system: ${host}
|
|
Packit |
549fdc |
Build system: ${build}
|
|
Packit |
549fdc |
Install prefix: ${prefix}
|
|
Packit |
549fdc |
Compiler: ${CC}
|
|
Packit |
549fdc |
Valgrind: $opt_valgrind_tests ${VALGRIND}
|
|
Packit |
549fdc |
CFlags: ${CFLAGS}
|
|
Packit |
549fdc |
Library types: Shared=${enable_shared}, Static=${enable_static}
|
|
Packit |
549fdc |
Local libopts: ${included_libopts}
|
|
Packit |
549fdc |
Local libtasn1: ${included_libtasn1}
|
|
Packit |
549fdc |
Local unistring: ${included_unistring}
|
|
Packit |
549fdc |
Use nettle-mini: ${mini_nettle}
|
|
Packit |
549fdc |
Documentation: ${enable_doc} (manpages: ${enable_manpages})
|
|
Packit |
549fdc |
Destructive tests: ${enable_destructive_tests}
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_MSG_NOTICE([External hardware support:
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
/dev/crypto: $enable_cryptodev
|
|
Packit |
549fdc |
Hardware accel: $hw_accel
|
|
Packit |
549fdc |
Padlock accel: $use_padlock
|
|
Packit |
549fdc |
Random gen. variant: $rnd_variant
|
|
Packit |
549fdc |
PKCS#11 support: $with_p11_kit
|
|
Packit |
549fdc |
TPM support: $with_tpm
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
if test -n "$ac_trousers_lib";then
|
|
Packit |
549fdc |
AC_MSG_NOTICE([
|
|
Packit |
549fdc |
TPM library: $ac_trousers_lib
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_MSG_NOTICE([Optional features:
|
|
Packit |
549fdc |
(note that included applications might not compile properly
|
|
Packit |
549fdc |
if features are disabled)
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
SSL3.0 support: $ac_enable_ssl3
|
|
Packit |
549fdc |
SSL2.0 client hello: $ac_enable_ssl2
|
|
Packit |
549fdc |
Allow SHA1 sign: $ac_allow_sha1
|
|
Packit |
549fdc |
DTLS-SRTP support: $ac_enable_srtp
|
|
Packit |
549fdc |
ALPN support: $ac_enable_alpn
|
|
Packit |
549fdc |
OCSP support: $ac_enable_ocsp
|
|
Packit |
549fdc |
Ses. ticket support: $ac_enable_session_tickets
|
|
Packit |
549fdc |
SRP support: $ac_enable_srp
|
|
Packit |
549fdc |
PSK support: $ac_enable_psk
|
|
Packit |
549fdc |
DHE support: $ac_enable_dhe
|
|
Packit |
549fdc |
ECDHE support: $ac_enable_ecdhe
|
|
Packit |
549fdc |
Anon auth support: $ac_enable_anon
|
|
Packit |
549fdc |
Heartbeat support: $ac_enable_heartbeat
|
|
Packit |
549fdc |
IDNA support: $idna_support
|
|
Packit |
549fdc |
Non-SuiteB curves: $enable_non_suiteb
|
|
Packit |
549fdc |
FIPS140 mode: $enable_fips
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_MSG_NOTICE([Optional libraries:
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
Guile wrappers: $opt_guile_bindings
|
|
Packit |
549fdc |
C++ library: $use_cxx
|
|
Packit |
549fdc |
DANE library: $enable_dane
|
|
Packit |
549fdc |
OpenSSL compat: $enable_openssl
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
AC_MSG_NOTICE([System files:
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
Trust store pkcs11: $with_default_trust_store_pkcs11
|
|
Packit |
549fdc |
Trust store dir: $with_default_trust_store_dir
|
|
Packit |
549fdc |
Trust store file: $with_default_trust_store_file
|
|
Packit |
549fdc |
Blacklist file: $with_default_blacklist_file
|
|
Packit |
549fdc |
CRL file: $with_default_crl_file
|
|
Packit |
549fdc |
Priority file: $system_priority_file
|
|
Packit |
549fdc |
DNSSEC root key file: $unbound_root_key_file
|
|
Packit |
549fdc |
])
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test ! -f "$unbound_root_key_file"; then
|
|
Packit |
549fdc |
AC_MSG_WARN([[
|
|
Packit |
549fdc |
***
|
|
Packit |
549fdc |
*** The DNSSEC root key file in $unbound_root_key_file was not found.
|
|
Packit |
549fdc |
*** This file is needed for the verification of DNSSEC responses.
|
|
Packit |
549fdc |
*** Use the command: unbound-anchor -a "$unbound_root_key_file"
|
|
Packit |
549fdc |
*** to generate or update it.
|
|
Packit |
549fdc |
*** ]])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "${enable_static}" != no;then
|
|
Packit |
549fdc |
AC_MSG_WARN([[
|
|
Packit |
549fdc |
*** GnuTLS will be build as a static library. That means that library
|
|
Packit |
549fdc |
*** constructors for gnutls_global_init will not be made available to
|
|
Packit |
549fdc |
*** linking applications. If you are building that library for arbitrary
|
|
Packit |
549fdc |
*** applications to link, do not enable static linking.
|
|
Packit |
549fdc |
]])
|
|
Packit |
549fdc |
fi
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
if test "$enable_fuzzer_target" != "no";then
|
|
Packit |
549fdc |
AC_MSG_WARN([[
|
|
Packit |
549fdc |
*** This version of the library is for fuzzying purposes and is intentionally broken!
|
|
Packit |
549fdc |
]])
|
|
Packit |
549fdc |
fi
|