From: Mark Clarkstone Date: Tue, 5 Sep 2017 16:16:06 +0000 (+0100) Subject: configure: only enable nvenc if asked, not by default, fixes #4572 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e10c3008746d0d26fc2ce7919ee59985dfa43eed;p=thirdparty%2Ftvheadend.git configure: only enable nvenc if asked, not by default, fixes #4572 --- diff --git a/configure b/configure index 8cd4d588b..0262b1be2 100755 --- a/configure +++ b/configure @@ -535,11 +535,13 @@ if enabled ffmpeg_static; then # nvenc # latest ffmpeg has own code - enable nvenc - #if enabled nvenc; then - # check_cc_header nvEncodeAPI || \ - # die "NVENC library (https://developer.nvidia.com/nvidia-video-codec-sdk) not found" - #fi + if enabled_or_auto nvenc; then + #check_cc_header nvEncodeAPI || \ + # die "NVENC library (https://developer.nvidia.com/nvidia-video-codec-sdk) not found" + enable nvenc + else + disable nvenc + fi # omx if enabled omx; then