From: lekma Date: Sun, 21 Aug 2016 10:44:29 +0000 (+0200) Subject: [configure]: omx_rpi (last, I hope) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b5c3fe61b52e79c5c4efb6c1149594d39dfda018;p=thirdparty%2Ftvheadend.git [configure]: omx_rpi (last, I hope) --- diff --git a/configure b/configure index 974974de5..50b18f308 100755 --- a/configure +++ b/configure @@ -550,16 +550,17 @@ if enabled ffmpeg_static; then # omx if enabled omx; then - has_omx=true + OLDCFLAGS=$CFLAGS + if [ -d "/opt/vc/include" ]; then + CFLAGS="-I/opt/vc/include $CFLAGS" + fi check_cc_header "bcm_host" omx_rpi if enabled omx_rpi; then - check_cc_header "IL/OMX_Core" omx || has_omx=false + CFLAGS="-I/opt/vc/include/IL $OLDCFLAGS" else - check_cc_header OMX_Core omx || has_omx=false - fi - if ! $has_omx; then - die "OpenMAX IL not found" + CFLAGS=$OLDCFLAGS fi + check_cc_header OMX_Core omx || die "OpenMAX IL not found" fi else