diff --git a/configure.ac b/configure.ac index b20afefce..7c406e7ab 100644 --- a/configure.ac +++ b/configure.ac @@ -322,7 +322,7 @@ if test "x$use_ft" = "xyes"; then fi if test "x$use_fc" = "xyes"; then - CAIRO_CHECK_FUNCS_WITH_FLAGS(FcFini, [$FONTCONFIG_CFLAGS], [$FONTCONFIG_LIBS]) + CAIRO_CHECK_FUNCS_WITH_FLAGS(FcInit FcFini, [$FONTCONFIG_CFLAGS], [$FONTCONFIG_LIBS]) fi dnl =========================================================================== diff --git a/test/cairo-test.c b/test/cairo-test.c index 4e3d2fb39..758a352f6 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -747,7 +747,9 @@ REPEAT: /* Pre-initialise fontconfig so that the configuration is loaded without * malloc failures (our primary goal is to test cairo fault tolerance). */ +#if HAVE_FCINIT FcInit (); +#endif MEMFAULT_ENABLE_FAULTS (); #endif