$NetBSD: patch-configure,v 1.2 2018/04/13 13:15:00 jaapb Exp $

Support for preemptive threads is in lwt.unix now
--- configure.orig	2018-02-01 12:55:17.000000000 +0000
+++ configure
@@ -412,7 +412,7 @@ check_library lwt "See: http://ocsigen.o
 check_library lwt.unix  "Missing support for 'unix' in lwt."
 check_library lwt_react   "See: http://ocsigen.org/lwt"
 check_library lwt_ssl   "See: http://ocsigen.org/lwt"
-check_library lwt.preemptive "Missing support for 'preemptive' in lwt."
+#check_library lwt.preemptive "Missing support for 'preemptive' in lwt."
 
 check_library netstring \
     "See ocamlnet: http://projects.camlcity.org/projects/ocamlnet.html"
@@ -464,10 +464,10 @@ fi
 
 # Check Lwt.preemptive
 if [ "$with_preempt" -gt 0 ]; then
-    if test_library lwt.preemptive; then
+    if test_library lwt.unix; then
 	echo -n
     elif [ "$with_preempt" -gt 1 ]; then
-	fail_library lwt.preemptive "Missing support for 'preemptive' in lwt."
+	fail_library lwt.unix "Missing support for 'preemptive' in lwt."
     else
 	with_preempt=0
     fi
