From: ellson Date: Wed, 21 Nov 2007 02:37:21 +0000 (+0000) Subject: need to generate warnings instead of hard error if fontconfig.pc|freetype2.pc not... X-Git-Tag: LAST_LIBGRAPH~32^2~4999 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b355f6cac77e98baae59aff0083e858e5a1f5aeb;p=graphviz need to generate warnings instead of hard error if fontconfig.pc|freetype2.pc not available --- diff --git a/configure.ac b/configure.ac index 92f512b67..a6b3e4592 100644 --- a/configure.ac +++ b/configure.ac @@ -1587,7 +1587,9 @@ AC_ARG_WITH(freetype2, [], [with_freetype2=yes]) if test "x$with_freetype2" = "xyes"; then -PKG_CHECK_MODULES(FREETYPE2, [freetype2], [HAVE_FREETYPE2=1]) +PKG_CHECK_MODULES(FREETYPE2, [freetype2], + [HAVE_FREETYPE2=1], + [AC_MSG_WARN(pkg-config did not find a freetype2.pc. Looking for freetype-config.)]) # pkgconfig for freetype2 did not exist in redhat[78] if test "x$HAVE_FREETYPE2" != "x1"; then @@ -1626,7 +1628,9 @@ AC_ARG_WITH(fontconfig, [], [with_fontconfig=yes]) if test "x$with_fontconfig" = "xyes"; then -PKG_CHECK_MODULES(FONTCONFIG, [fontconfig], [HAVE_FONTCONFIG=1]) +PKG_CHECK_MODULES(FONTCONFIG, [fontconfig], + [HAVE_FONTCONFIG=1], + [AC_MSG_WARN(pkg-config did not find a fontconfig.pc. Looking for fontconfig-config.)]) # just in case pkgconfig for fontconfig does not exist if test "x$HAVE_FONTCONFIG" != "x1"; then