summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-22 14:09:17 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-22 14:09:17 +0000
commit32cf830035d522180f4c05b243dfd3049b8c6150 (patch)
tree68514bcaef3cc9b82e20ec3fbf91337fc66268d6 /configure
parentcd4875f414ba01cce09c2c3e140a23f4762aa927 (diff)
downloadmpv-32cf830035d522180f4c05b243dfd3049b8c6150.tar.bz2
mpv-32cf830035d522180f4c05b243dfd3049b8c6150.tar.xz
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
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure b/configure
index 3e3ea9f229..21184034d3 100755
--- a/configure
+++ b/configure
@@ -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"