Index: configure
--- configure.orig	2022-06-20 22:27:05.000000000 +0200
+++ configure	2022-06-22 23:55:15.575238000 +0200
@@ -1,4 +1,4 @@
-#! /bin/sh
+
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.71 for GNU Libidn 1.40.
 #
@@ -6612,10 +6612,7 @@
 then :
 
 else $as_nop
-  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details" "$LINENO" 5; }
+    :
 fi
 
 ac_ext=c
Index: contrib/doxygen/Doxyfile
Index: gl/error.c
--- gl/error.c.orig	2022-06-20 22:23:53.000000000 +0200
+++ gl/error.c	2022-06-22 23:54:48.154616000 +0200
@@ -28,7 +28,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#if !_LIBC && ENABLE_NLS
+#if !_LIBC && defined(ENABLE_NLS)
 # include "gettext.h"
 # define _(msgid) gettext (msgid)
 #endif
Index: lib/stringprep.c
--- lib/stringprep.c.orig	2022-06-20 22:22:00.000000000 +0200
+++ lib/stringprep.c	2022-06-22 23:54:48.154915000 +0200
@@ -33,6 +33,14 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include <limits.h>
+
+#undef size_t
+#if 0
+#ifndef SIZE_MAX
+#define SIZE_MAX ((((size_t)1)<<(sizeof(size_t)*8))-1)
+#endif
+#endif
 
 #include "stringprep.h"
 
