diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 00a8139aa..3ff1df316 100644 --- a/configure.ac +++ b/configure.ac @@ -1288,7 +1288,7 @@ if test "x$with_freetype" != "xno"; then PKG_CHECK_MODULES([FT2], [freetype2], [have_freetype=yes], [have_freetype=no]) if test "x$with_freetype" = "xyes" && test "x$have_freetype" = "xno"; then AC_MSG_ERROR([FreeType2 support requested but FreeType2 library not found]) - elif test "x$have_freetype" = "yes"; then + elif test "x$have_freetype" = "xyes"; then AC_DEFINE([HAVE_FT2], [1], [Define this if you have freetype2 library]) fi fi @@ -1296,6 +1296,26 @@ AC_SUBST([FT2_CFLAGS]) AC_SUBST([FT2_LIBS]) dnl --------------------------------------------- +dnl fontconfig +dnl --------------------------------------------- +AC_ARG_WITH([fontconfig], + AS_HELP_STRING([--without-fontconfig], [Do not build with fontconfig library])) + +if test "x$with_fontconfig" = "xyes" && test "x$have_fontconfig" = "xno"; then + AC_MSG_ERROR([fontconfig support requested, but FreeType2 not found.]) +elif test "x$with_fontconfig" != "xno" && test "x$have_fontconfig" != "xno"; then + PKG_CHECK_MODULES([FONTCONFIG], [fontconfig], [have_fontconfig=yes], [have_fontconfig=no]) + if test "x$with_fontconfig" = "xyes" && test "x$have_fontconfig" = "xno"; then + AC_MSG_ERROR([fontconfig support requested but fontconfig library not found]) + elif test "x$have_fontconfig" = "xyes"; then + AC_DEFINE([HAVE_FONTCONFIG], [1], [Define this if you have fontconfig library]) + fi +fi +AC_SUBST([FONTCONFIG_CFLAGS]) +AC_SUBST([FONTCONFIG_LIBS]) + + +dnl --------------------------------------------- dnl OSS style audio interface dnl --------------------------------------------- AC_ARG_ENABLE([oss], |