mirror of https://github.com/mpv-player/mpv
Make configure check for aalib dependency on libX11 if it fails without.
Necessary to link against aalib from the OpenBSD ports tree. patch by Ian Lindsay <iml at formicary dot org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14574 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
cd4875f414
commit
32cf830035
|
@ -3720,14 +3720,18 @@ if test "$_aa" = auto ; then
|
|||
int main(void) { (void) aa_init(0, 0, 0); return 0; }
|
||||
EOF
|
||||
_aa=no
|
||||
cc_check -laa && _aa=yes
|
||||
if cc_check -laa ; then
|
||||
_aa=yes
|
||||
_ld_aa="-laa"
|
||||
elif cc_check $_ld_x11 -laa ; then
|
||||
_aa=yes
|
||||
_ld_aa="$_ld_x11 -laa"
|
||||
fi
|
||||
fi
|
||||
if test "$_aa" = yes ; then
|
||||
_def_aa='#define HAVE_AA 1'
|
||||
if cygwin ; then
|
||||
_ld_aa=`aalib-config --libs | cut -d " " -f 2,5,6`
|
||||
else
|
||||
_ld_aa='-laa'
|
||||
fi
|
||||
_vosrc="$_vosrc vo_aa.c"
|
||||
_vomodules="aa $_vomodules"
|
||||
|
|
Loading…
Reference in New Issue