Add a run check for Fontconfig.

Originally committed to SVN as r2118.
This commit is contained in:
Amar Takhar 2008-03-23 00:36:36 +00:00
parent 7a87d3a2ee
commit 9b2bb18a92

View file

@ -182,6 +182,19 @@ PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= 2.4,
AC_SUBST(FONTCONFIG_CFLAGS)
AC_SUBST(FONTCONFIG_LIBS)
AC_AGI_COMPILE([FontConfig], [fontconfig], [$FONTCONFIG_CFLAGS], [$FONTCONFIG_LIBS],[
#include <fontconfig/fontconfig.h>
int main(void) {
int fc = FcInit();
FcConfig* config;
config = FcConfigGetCurrent();
if ((!config) || (!fc)) { return 1;}
return 0;
}])
if test "$agi_with_fontconfig" = "no"; then
AC_MSG_FAILURE([Please install a working Fontconfig library.])
fi
#################