]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
[configure]: fix for omx_rpi
authorlekma <lekmalek@gmail.com>
Sun, 21 Aug 2016 08:56:24 +0000 (10:56 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 28 Aug 2017 13:32:17 +0000 (15:32 +0200)
configure

index a61ff4eb2a8941d657c110f7bcc414000ed150d1..c6642d82dd6c5888c3f68612dd9d0a6c9fbdfc85 100755 (executable)
--- a/configure
+++ b/configure
@@ -550,8 +550,16 @@ if enabled ffmpeg_static; then
 
   # omx
   if enabled omx; then
-    check_cc_header OMX_Core || die "OpenMAX IL not found"
-    check_cc_header "/opt/vc/include/bcm_host.h" omx_rpi
+    has_omx=true
+    check_cc_header "/opt/vc/include/bcm_host" omx_rpi
+    if enabled omx_rpi; then
+      check_cc_header "/opt/vc/include/IL/OMX_Core" omx || has_omx=false
+    else
+      check_cc_header OMX_Core omx || has_omx=false
+    fi
+    if ! $has_omx; then
+      die "OpenMAX IL not found"
+    fi
   fi
 
 else