summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-29 14:57:17 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-29 14:57:17 +0000
commitb2219eaa073c08e2ee6b4747711058aa5e96d125 (patch)
treed00954f9270b3f7df520735bc8e5cdf388d9c540 /configure
parent2bdc2412a1b96f589e0535282c955d904bc2a53d (diff)
downloadmpv-b2219eaa073c08e2ee6b4747711058aa5e96d125.tar.bz2
mpv-b2219eaa073c08e2ee6b4747711058aa5e96d125.tar.xz
Actually run a detection whether external libass exists, instead
of just assuming it does when internal libass is disabled. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31266 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 17 insertions, 2 deletions
diff --git a/configure b/configure
index c3091b3b4d..892001c7f7 100755
--- a/configure
+++ b/configure
@@ -6424,8 +6424,23 @@ EOF
ass_internal=no
res_comment="FreeType >= 2.2.1 needed"
elif test "$ass_internal" = no ; then
- res_comment="external"
- extra_ldflags="$extra_ldflags -lass"
+ cat > $TMPC << EOF
+#include <ass/ass.h>
+int main(void) {
+#if defined(LIBASS_VERSION) && LIBASS_VERSION >= 0x00907010
+ ass_process_force_style(0);
+#else
+ process_force_style(0);
+#endif
+ return 0;
+}
+EOF
+ if cc_check -lass ; then
+ res_comment="external"
+ extra_ldflags="$extra_ldflags -lass"
+ else
+ _ass=no
+ fi
fi
fi
if test "$_ass" = yes ; then