diff --git a/configure b/configure index 234ad41c58..05af22bf37 100755 --- a/configure +++ b/configure @@ -6180,6 +6180,11 @@ if test "$_ass" = yes ; then else def_ass='#undef CONFIG_ASS' fi +if test "$ass_internal" = yes ; then + def_ass_internal='#define CONFIG_ASS_INTERNAL 1' +else + def_ass_internal='#undef CONFIG_ASS_INTERNAL' +fi echores "$_ass" @@ -8772,6 +8777,7 @@ $def_tv_v4l2 /* font stuff */ $def_ass +$def_ass_internal $def_bitmap_font $def_enca $def_fontconfig diff --git a/libass/ass_mp.h b/libass/ass_mp.h index 64b411a550..1c013c0db9 100644 --- a/libass/ass_mp.h +++ b/libass/ass_mp.h @@ -24,8 +24,11 @@ #define LIBASS_MP_H #include "subreader.h" -#include "ass_types.h" +#ifdef CONFIG_LIBASS_INTERNAL #include "ass.h" +#else +#include +#endif extern ass_library_t* ass_library; extern int ass_enabled;