diff -pur gmp-6.3.0/configure.ac gmp-6.3.0-new/configure.ac
--- gmp-6.3.0/configure.ac	2023-07-31 12:03:11
+++ gmp-6.3.0-new/configure.ac	2023-07-31 12:10:55
@@ -2722,8 +2722,6 @@ esac
 
 # Configs for Windows DLLs.
 
-AC_LIBTOOL_WIN32_DLL
-
 AC_SUBST(LIBGMP_DLL,0)
 case $host in
   *-*-cygwin* | *-*-mingw* | *-*-msys | *-*-pw32* | *-*-os2*)
@@ -2738,7 +2736,7 @@ Use "--disable-static --enable-shared" to build just a
     fi
 
     # "-no-undefined" is required when building a DLL, see documentation on
-    # AC_LIBTOOL_WIN32_DLL.
+    # LT_INIT and its win32-dll option.
     #
     # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
     # libgmpxx functions and variables exported.  This is what libtool did
@@ -2812,7 +2810,7 @@ fi
 #
 #AC_PROVIDE([AC_PROG_F77])
 
-LT_INIT
+LT_INIT([win32-dll])
 
 # Generate an error here if attempting to build both shared and static when
 # $libname.a is in $library_names_spec (as mentioned above), rather than
@@ -4045,8 +4043,6 @@ AM_PROG_LEX
 fi
 AC_PROG_YACC
 AM_PROG_LEX
-
-LT_INIT
 
 # Create config.m4.
 GMP_FINISH
