[MPlayer-dev-eng] [PATCH] configure check for aalib-x11

Ian Lindsay iml at formicary.org
Sat Jan 22 02:06:42 CET 2005


Make configure check for aalib dependency on libX11 if it fails without.
Necessary to link against aalib from OpenBSD ports tree.
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.955
diff -u -r1.955 configure
--- configure	21 Jan 2005 21:32:15 -0000	1.955
+++ configure	22 Jan 2005 00:41:06 -0000
@@ -3720,14 +3720,18 @@
 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"


More information about the MPlayer-dev-eng mailing list