From 2d635f38c770d16578d017f88e644627b69e2dc5 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Sun, 11 Oct 2020 12:20:44 +0200 Subject: [PATCH] Fix configury (intptr_t test) for cross-compilation. Reported by Helmut Grohne (cf. Debian bug#971939). --- m4/intparam.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/intparam.m4 b/m4/intparam.m4 index 7782fc5..3c990d7 100644 --- a/m4/intparam.m4 +++ b/m4/intparam.m4 @@ -113,7 +113,7 @@ AC_DEFUN([CL_INTPARAM_CROSS], echo "#error \"Integer types long long and unsigned long long have different sizes!!\"" fi fi - AC_TRY_COMPILE([], [static_assert(sizeof(char*) <= sizeof(intptr_t), "");], + AC_TRY_COMPILE([#include ], [static_assert(sizeof(char*) <= sizeof(intptr_t), "");], [], [echo "#error \"Type char * does not fit into an intptr_t!!\""]) _AC_COMPUTE_INT([sizeof (char *)], [pointer_size]) pointer_bitsize=`expr $pointer_size '*' $char_bitsize` -- 2.49.0