On 10/02/16 16:35, Diego Biurrun wrote:
> On Tue, Feb 09, 2016 at 06:54:40PM +0100, Anton Khirnov wrote:
>> --- a/configure
>> +++ b/configure
>> @@ -4512,6 +4515,7 @@ done
>>  enabled avisynth          && { check_lib2 "avisynth/avisynth_c.h windows.h" 
>> LoadLibrary ||
>>                                 check_lib2 "avxsynth/avxsynth_c.h dlfcn.h" 
>> dlopen -ldl   ||
>>                                 die "ERROR: LoadLibrary/dlopen not found, or 
>> avisynth header not found"; }
>> +enabled cuda              && check_lib cuda.h cuInit -lcuda
>>  enabled frei0r            && { check_header frei0r.h || die "ERROR: 
>> frei0r.h header not found"; }
>>  enabled gnutls            && require_pkg_config gnutls gnutls/gnutls.h 
>> gnutls_global_init
>>  enabled libbs2b           && require_pkg_config libbs2b bs2b.h bs2b_open
>> @@ -4606,7 +4610,7 @@ if enabled libdc1394; then
>>  fi
>>  
>>  if enabled nvenc; then
>> -    check_header cuda.h || die "ERROR: cuda.h not found.";
>> +    enabled cuda || check_header cuda.h || die "ERROR: cuda.h not found.";
>>      check_header nvEncodeAPI.h || die "ERROR: nvEncodeAPI.h not found.";
>>      check_cpp_condition nvEncodeAPI.h "NVENCAPI_MAJOR_VERSION >= 5" ||
>>          die "ERROR: NVENC API version 4 or older is not supported";
> 
> Checking for cuda.h again seems unnecessary.

one is to have cuda dlopenable, the other to link directly.

> Shouldn't nvenc depend on cuda somehow?

No.

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to