From d8e96ee5940d8628a0df384103eea1dded29689a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Sun, 20 Nov 2011 21:01:39 +0100
Subject: [PATCH] * config.m4.in: Define ALIGNOF_UINT64_T (from configure).

* configure.ac: Check alignment of uint64_t, and also use AC_SUBST
for use in config.m4.in.

Rev: nettle/config.m4.in:1.2
Rev: nettle/configure.ac:1.48
---
 config.m4.in | 1 +
 configure.ac | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/config.m4.in b/config.m4.in
index ec625731..50f9ae7d 100644
--- a/config.m4.in
+++ b/config.m4.in
@@ -3,6 +3,7 @@ define(<C_NAME>, <@ASM_SYMBOL_PREFIX@><$1>)dnl
 define(<ELF_STYLE>, <@ASM_ELF_STYLE@>)dnl
 define(<TYPE_FUNCTION>, <@ASM_TYPE_FUNCTION@>)dnl
 define(<ALIGN_LOG>, <@ASM_ALIGN_LOG@>)dnl
+define(<ALIGNOF_UINT64_T>, <@ALIGNOF_UINT64_T@>)dnl
 divert(1)
 @ASM_MARK_NOEXEC_STACK@
 divert
diff --git a/configure.ac b/configure.ac
index 5f2ab76e..0c1f84bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -479,6 +479,10 @@ AC_TYPE_UID_T
 AC_TYPE_SIZE_T
 AC_HEADER_TIME
 AC_CHECK_SIZEOF(long)
+AC_CHECK_ALIGNOF(uint64_t)
+
+ALIGNOF_UINT64_T="$ac_cv_alignof_uint64_t"
+AC_SUBST(ALIGNOF_UINT64_T)
 
 AC_CHECK_HEADERS([openssl/blowfish.h openssl/des.h openssl/cast.h openssl/aes.h],,
 [enable_openssl=no
-- 
GitLab