From e386fde6b34616303c6633569fc27783ccdc091b Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Mon, 11 Apr 2022 11:58:16 +0300
Subject: [PATCH 78/78] Defend against missed lv2 headers

---
 cinelerra-5.1/configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/cinelerra-5.1/configure.ac b/cinelerra-5.1/configure.ac
index fcb38b1e..093d6bfd 100644
--- a/cinelerra-5.1/configure.ac
+++ b/cinelerra-5.1/configure.ac
@@ -895,6 +895,11 @@ HAVE_openexr=no \
 HAVE_ilmbase=no \
   HAVE_OPENEXR=no
 
+if test "x$WANT_CIN_3RDPARTY" = "xno"; then
+ if test "x$HAVE_lv2" != "xyes" -a "x$WANT_LV2" = "xyes"; then
+  AC_MSG_ERROR([lv2 requested but no lv2 headers found])
+ fi
+fi
 
 # build global_config
 OBJDIR=`uname -m`
-- 
2.35.1

