diff --git a/contrib/src/gnutls/0001-fix-autotools-build-errors.patch b/contrib/src/gnutls/0001-fix-autotools-build-errors.patch
new file mode 100644
index 0000000000000000000000000000000000000000..1e8ee9e9f42cc02d5d17e01ced5d6fd4d0892c93
--- /dev/null
+++ b/contrib/src/gnutls/0001-fix-autotools-build-errors.patch
@@ -0,0 +1,50 @@
+From 1e092f5d294630607f7962f7a6c4d0f8dfc99605 Mon Sep 17 00:00:00 2001
+From: fsimonfc <francois-simon_f-c@hotmail.com>
+Date: Wed, 5 Mar 2025 23:04:54 -0500
+Subject: [PATCH] fix autotools build errors
+
+---
+ configure.ac | 13 +------------
+ 1 file changed, 1 insertion(+), 12 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 4838ce2c8..af27b9112 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -18,7 +18,7 @@ dnl Process this file with autoconf to produce a configure script.
+ # You should have received a copy of the GNU General Public License
+ # along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ 
+-AC_PREREQ([2.71])
++AC_PREREQ([2.64])
+ 
+ dnl when updating version also update LT_REVISION in m4/hooks.m4
+ AC_INIT([GnuTLS],[3.8.9],[bugs@gnutls.org])
+@@ -136,11 +136,6 @@ AC_SUBST(NUMBER_VERSION, `printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION
+ 
+ dnl C and C++ capabilities
+ AC_C_INLINE
+-# Autoupdate added the next two lines to ensure that your configure
+-# script's behavior did not change.  They are probably safe to remove.
+-AC_CHECK_INCLUDES_DEFAULT
+-AC_PROG_EGREP
+-
+ 
+ # For the C++ code
+ AC_ARG_ENABLE(cxx,
+@@ -408,12 +403,6 @@ dnl check for gtk-doc
+ dnl
+ GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
+ 
+-AM_GNU_GETTEXT([external])
+-AM_GNU_GETTEXT_VERSION([0.19])
+-m4_ifdef([AM_GNU_GETTEXT_REQUIRE_VERSION],[
+-AM_GNU_GETTEXT_REQUIRE_VERSION([0.19])
+-])
+-
+ AC_C_BIGENDIAN
+ 
+ dnl No fork on MinGW, disable some self-tests until we fix them.
+-- 
+2.47.0
+
diff --git a/contrib/src/gnutls/rules.mak b/contrib/src/gnutls/rules.mak
index 957a52a1ae9b311f0e8cfe7a1563714240f807a1..9e9c1407bbd2421248dbff2fc54d3a1d34e86a89 100644
--- a/contrib/src/gnutls/rules.mak
+++ b/contrib/src/gnutls/rules.mak
@@ -19,7 +19,9 @@ $(TARBALLS)/gnutls-$(GNUTLS_VERSION).tar.xz:
 
 gnutls: gnutls-$(GNUTLS_VERSION).tar.xz .sum-gnutls
 	$(UNPACK)
-#	$(APPLY) $(SRC)/gnutls/0001-m4-remove-malloc-realloc.patch
+ifdef HAVE_LINUX
+	$(APPLY) $(SRC)/gnutls/0001-fix-autotools-build-errors.patch
+endif
 ifndef HAVE_IOS
 	$(APPLY) $(SRC)/gnutls/mac-keychain-lookup.patch
 endif