From 9103055ed56999bb42cdf8fc5f08f2ad42e28426 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin <llandwer...@gmail.com> Date: Fri, 5 Nov 2010 18:00:20 +0100 Subject: [PATCH] configure.in: add -lm to link flags when freetype is used
Signed-off-by: Lionel Landwerlin <llandwer...@gmail.com> --- configure.in | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/configure.in b/configure.in index 78c842d..3f97b22 100644 --- a/configure.in +++ b/configure.in @@ -830,6 +830,13 @@ AC_ARG_ENABLE(freetype, if test "$enable_freetype" = "yes"; then PKG_CHECK_MODULES(FREETYPE, freetype2, FREETYPE="yes", [FREETYPE="no", AC_MSG_WARN([*** no freetype -- FreeType font provider will not be built.])]) + if test "$enable_shared" = "yes"; then + AC_CHECK_LIB(m, sinf, , + AC_MSG_ERROR([ +*** DirectFB requires libm.])) + DYNLIB+=" -lm" + fi + AC_SUBST(DYNLIB) fi AM_CONDITIONAL(FREETYPE_PROVIDER, test "$FREETYPE" = "yes") -- 1.6.0.6
_______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev