--- libgphoto2-2.5.27.orig/configure.ac	2021-02-21 12:03:28.000000000 +0100
+++ libgphoto2-2.5.27/configure.ac	2021-04-28 14:12:43.674282500 +0200
@@ -326,13 +326,11 @@
 AC_SUBST(LIBWS232)
 AC_ARG_WITH([ws232], AS_HELP_STRING([--without-ws232], [Build without ws2_32 library (default: no)]))
 AS_IF([test "x$with_ws232" != "xno"], [
-	AC_CHECK_LIB(ws2_32,WSAStartup,[
 		AC_CHECK_HEADER(winsock.h,[
 			AC_DEFINE(HAVE_LIBWS232,1,[define if we found LIBWS232 and its headers])
 			LIBWS232="-lws2_32"
 			libws232_msg="yes"
 		])
-	])
 ])
 GP_CONFIG_MSG([Winsocket support (for PTP/IP)],[${libws232_msg}])
 
