mirror of https://github.com/mpv-player/mpv
configure: simplify libbluray test
Remove unnecessary #include from libbluray test. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32312 b3059339-0415-0410-9bf9-f77b7e298cf2 Simplify libbluray test with function_check(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32316 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
044fc491fa
commit
1f93c3b5ed
|
@ -5619,13 +5619,7 @@ echores "$_vcd"
|
|||
echocheck "Blu-ray support"
|
||||
if test "$_bluray" = auto ; then
|
||||
_bluray=no
|
||||
|
||||
cat > $TMPC << EOF
|
||||
#include <stdlib.h>
|
||||
#include <libbluray/bluray.h>
|
||||
int main(void) { BLURAY_TITLE_INFO *i = bd_get_title_info(NULL, 0); return 0; }
|
||||
EOF
|
||||
compile_check $TMPC -lbluray && _bluray=yes
|
||||
function_check libbluray/bluray.h 'bd_get_title_info(0, 0)' -lbluray && _bluray=yes
|
||||
fi
|
||||
if test "$_bluray" = yes ; then
|
||||
def_bluray='#define CONFIG_LIBBLURAY 1'
|
||||
|
|
Loading…
Reference in New Issue