configure: Make the libfontconfig soname check depend on the header check.
diff --git a/configure.ac b/configure.ac
index a142486..6dc6d49 100644
--- a/configure.ac
+++ b/configure.ac
@@ -979,6 +979,12 @@
WINE_CHECK_SONAME(jack,jack_client_new)
fi
+dnl **** Check for fontconfig ****
+if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
+then
+ WINE_CHECK_SONAME(fontconfig,FcInit)
+fi
+
dnl **** Check for gcc specific options ****
AC_SUBST(EXTRACFLAGS,"")
@@ -1127,7 +1133,6 @@
WINE_CHECK_SONAME(freetype,FT_Init_FreeType,,,[$X_LIBS])
WINE_CHECK_SONAME(GL,glXQueryExtension,,,[$X_LIBS $X_EXTRA_LIBS])
WINE_CHECK_SONAME(txc_dxtn,fetch_2d_texel_rgba_dxt1)
-WINE_CHECK_SONAME(fontconfig,FcInit)
WINE_CHECK_SONAME(ssl,SSL_library_init)
WINE_CHECK_SONAME(crypto,BIO_new_socket)
WINE_CHECK_SONAME(jpeg,jpeg_start_decompress)