From 59a195d05f735235d04804e1f0623ed1c440d3f8 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 9 Oct 2019 02:15:04 +0200 Subject: [PATCH] We don't need to check if data alignment is required any more --- configure.ac | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/configure.ac b/configure.ac index 3b45c606..5335fcbf 100644 --- a/configure.ac +++ b/configure.ac @@ -762,23 +762,6 @@ void f(void *x) { __dummy(x); } AC_DEFINE([HAVE_WEAK_SYMBOLS], [1], [weak symbols are supported])], [AC_MSG_RESULT(no)]) -AC_MSG_CHECKING(if data alignment is required) -aligned_access_required=yes -AS_CASE([$host_cpu], - [i?86|amd64|x86_64|powerpc*|s390*], - [aligned_access_required=no], - [arm*], - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ -#ifndef __ARM_FEATURE_UNALIGNED -# error data alignment is required -#endif - ]], [[]])], [aligned_access_required=no], [])] -) -AS_IF([test "x$aligned_access_required" = "xyes"], - [AC_MSG_RESULT(yes)], - [AC_MSG_RESULT(no) - AC_DEFINE([CPU_UNALIGNED_ACCESS], [1], [unaligned memory access is supported])]) - AC_MSG_CHECKING(if atomic operations are supported) AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[ static volatile int _sodium_lock;