|
@@ -375,6 +375,7 @@ libnfs=""
|
|
coroutine=""
|
|
coroutine=""
|
|
coroutine_pool=""
|
|
coroutine_pool=""
|
|
debug_stack_usage="no"
|
|
debug_stack_usage="no"
|
|
|
|
+crypto_afalg="no"
|
|
seccomp=""
|
|
seccomp=""
|
|
glusterfs=""
|
|
glusterfs=""
|
|
glusterfs_xlator_opt="no"
|
|
glusterfs_xlator_opt="no"
|
|
@@ -1124,6 +1125,10 @@ for opt do
|
|
;;
|
|
;;
|
|
--enable-debug-stack-usage) debug_stack_usage="yes"
|
|
--enable-debug-stack-usage) debug_stack_usage="yes"
|
|
;;
|
|
;;
|
|
|
|
+ --enable-crypto-afalg) crypto_afalg="yes"
|
|
|
|
+ ;;
|
|
|
|
+ --disable-crypto-afalg) crypto_afalg="no"
|
|
|
|
+ ;;
|
|
--disable-docs) docs="no"
|
|
--disable-docs) docs="no"
|
|
;;
|
|
;;
|
|
--enable-docs) docs="yes"
|
|
--enable-docs) docs="yes"
|
|
@@ -1518,6 +1523,7 @@ disabled with --disable-FEATURE, default is enabled if available:
|
|
qom-cast-debug cast debugging support
|
|
qom-cast-debug cast debugging support
|
|
tools build qemu-io, qemu-nbd and qemu-image tools
|
|
tools build qemu-io, qemu-nbd and qemu-image tools
|
|
vxhs Veritas HyperScale vDisk backend support
|
|
vxhs Veritas HyperScale vDisk backend support
|
|
|
|
+ crypto-afalg Linux AF_ALG crypto backend driver
|
|
|
|
|
|
NOTE: The object files are built at the place where configure is launched
|
|
NOTE: The object files are built at the place where configure is launched
|
|
EOF
|
|
EOF
|
|
@@ -4834,6 +4840,32 @@ if compile_prog "" "" ; then
|
|
have_af_vsock=yes
|
|
have_af_vsock=yes
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+##########################################
|
|
|
|
+# check for usable AF_ALG environment
|
|
|
|
+hava_afalg=no
|
|
|
|
+cat > $TMPC << EOF
|
|
|
|
+#include <errno.h>
|
|
|
|
+#include <sys/types.h>
|
|
|
|
+#include <sys/socket.h>
|
|
|
|
+#include <linux/if_alg.h>
|
|
|
|
+int main(void) {
|
|
|
|
+ int sock;
|
|
|
|
+ sock = socket(AF_ALG, SOCK_SEQPACKET, 0);
|
|
|
|
+ return sock;
|
|
|
|
+}
|
|
|
|
+EOF
|
|
|
|
+if compile_prog "" "" ; then
|
|
|
|
+ have_afalg=yes
|
|
|
|
+fi
|
|
|
|
+if test "$crypto_afalg" = "yes"
|
|
|
|
+then
|
|
|
|
+ if test "$have_afalg" != "yes"
|
|
|
|
+ then
|
|
|
|
+ error_exit "AF_ALG requested but could not be detected"
|
|
|
|
+ fi
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+
|
|
#################################################
|
|
#################################################
|
|
# Sparc implicitly links with --relax, which is
|
|
# Sparc implicitly links with --relax, which is
|
|
# incompatible with -r, so --no-relax should be
|
|
# incompatible with -r, so --no-relax should be
|
|
@@ -5315,6 +5347,7 @@ echo "seccomp support $seccomp"
|
|
echo "coroutine backend $coroutine"
|
|
echo "coroutine backend $coroutine"
|
|
echo "coroutine pool $coroutine_pool"
|
|
echo "coroutine pool $coroutine_pool"
|
|
echo "debug stack usage $debug_stack_usage"
|
|
echo "debug stack usage $debug_stack_usage"
|
|
|
|
+echo "crypto afalg $crypto_afalg"
|
|
echo "GlusterFS support $glusterfs"
|
|
echo "GlusterFS support $glusterfs"
|
|
echo "gcov $gcov_tool"
|
|
echo "gcov $gcov_tool"
|
|
echo "gcov enabled $gcov"
|
|
echo "gcov enabled $gcov"
|
|
@@ -5826,6 +5859,10 @@ if test "$debug_stack_usage" = "yes" ; then
|
|
echo "CONFIG_DEBUG_STACK_USAGE=y" >> $config_host_mak
|
|
echo "CONFIG_DEBUG_STACK_USAGE=y" >> $config_host_mak
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+if test "$crypto_afalg" = "yes" ; then
|
|
|
|
+ echo "CONFIG_AF_ALG=y" >> $config_host_mak
|
|
|
|
+fi
|
|
|
|
+
|
|
if test "$open_by_handle_at" = "yes" ; then
|
|
if test "$open_by_handle_at" = "yes" ; then
|
|
echo "CONFIG_OPEN_BY_HANDLE=y" >> $config_host_mak
|
|
echo "CONFIG_OPEN_BY_HANDLE=y" >> $config_host_mak
|
|
fi
|
|
fi
|