X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=wscript;h=bfc84112da9053ab54e48fd6ecee0cce4d550138;hp=b7ea7de6ca054d1ea171223ddbf81db2e42008b3;hb=4e2ff7851127cd85c3e7d78b42eb884d0cda0ac3;hpb=e14c78e13eab9125a875e90b97c7dab77aa46b90 diff --git a/wscript b/wscript index b7ea7de6c..bfc84112d 100644 --- a/wscript +++ b/wscript @@ -437,6 +437,19 @@ def configure(conf): define_name='DCPOMATIC_HAVE_AVCOMPONENTDESCRIPTOR_DEPTH_MINUS1', mandatory=False) + # See if we have av_register_all and avfilter_register_all + conf.check_cxx(fragment=""" + extern "C" {\n + #include \n + #include \n + }\n + int main () { av_register_all(); avfilter_register_all(); }\n + """, + msg='Checking for av_register_all and avfilter_register_all', + uselib='AVFORMAT AVFILTER', + define_name='DCPOMATIC_HAVE_AVREGISTER', + mandatory=False) + # Hack: the previous two check_cxx calls end up copying their (necessary) cxxflags # to these variables. We don't want to use these for the actual build, so clean them out. conf.env['CXXFLAGS_AVCODEC'] = []