comparison src/configure.ac @ 24970:7e9e53a0368f v8.2.3022

patch 8.2.3022: available encryption methods are not strong enough Commit: https://github.com/vim/vim/commit/f573c6e1ed58d46d694c802eaf5ae3662a952744 Author: Christian Brabandt <cb@256bit.org> Date: Sun Jun 20 14:02:16 2021 +0200 patch 8.2.3022: available encryption methods are not strong enough Problem: Available encryption methods are not strong enough. Solution: Add initial support for xchaha20. (Christian Brabandt, closes #8394)
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Jun 2021 14:15:07 +0200
parents db4afe19285d
children 91671fd5c0bd
comparison
equal deleted inserted replaced
24969:445ed84ae76a 24970:7e9e53a0368f
3765 ca_context_create(&hello);], 3765 ca_context_create(&hello);],
3766 AC_MSG_RESULT(yes); AC_DEFINE(HAVE_CANBERRA), 3766 AC_MSG_RESULT(yes); AC_DEFINE(HAVE_CANBERRA),
3767 AC_MSG_RESULT(no; try installing libcanberra-dev); CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS") 3767 AC_MSG_RESULT(no; try installing libcanberra-dev); CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS")
3768 fi 3768 fi
3769 3769
3770 AC_MSG_CHECKING(--enable-libsodium argument)
3771 AC_ARG_ENABLE(libsodium,
3772 [ --disable-libsodium Do not use libsodium.],
3773 , [enable_libsodium="maybe"])
3774
3775 if test "$enable_libsodium" = "maybe"; then
3776 if test "$features" = "big" -o "$features" = "huge"; then
3777 AC_MSG_RESULT(Defaulting to yes)
3778 enable_libsodium="yes"
3779 else
3780 AC_MSG_RESULT(Defaulting to no)
3781 enable_libsodium="no"
3782 fi
3783 else
3784 AC_MSG_RESULT($enable_libsodium)
3785 fi
3786 if test "$enable_libsodium" = "yes"; then
3787 if test "x$PKG_CONFIG" != "xno"; then
3788 libsodium_lib=`$PKG_CONFIG --libs libsodium 2>/dev/null`
3789 libsodium_cflags=`$PKG_CONFIG --cflags libsodium 2>/dev/null`
3790 fi
3791 if test "x$libsodium_lib" = "x"; then
3792 libsodium_lib=-lsodium
3793 libsodium_cflags=
3794 fi
3795 AC_MSG_CHECKING(for libcanberra)
3796 ac_save_CFLAGS="$CFLAGS"
3797 ac_save_LIBS="$LIBS"
3798 CFLAGS="$CFLAGS $libsodium_cflags"
3799 LIBS="$LIBS $libsodium_lib"
3800 AC_TRY_LINK([
3801 # include <sodium.h>
3802 ], [
3803 printf("%d", sodium_init()); ],
3804 AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SODIUM),
3805 AC_MSG_RESULT(no; try installing libsodium-dev); CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS")
3806 fi
3770 3807
3771 dnl fstatfs() can take 2 to 4 arguments, try to use st_blksize if possible 3808 dnl fstatfs() can take 2 to 4 arguments, try to use st_blksize if possible
3772 AC_MSG_CHECKING(for st_blksize) 3809 AC_MSG_CHECKING(for st_blksize)
3773 AC_TRY_COMPILE( 3810 AC_TRY_COMPILE(
3774 [#include <sys/types.h> 3811 [#include <sys/types.h>