From: Lionel Landwerlin <[email protected]>
Signed-off-by: Lionel Landwerlin <[email protected]>
---
configure.in | 10 ++++++++++
src/media/Makefile.am | 2 +-
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/configure.in b/configure.in
index 3a0c79b..01b6f2e 100644
--- a/configure.in
+++ b/configure.in
@@ -597,6 +597,16 @@ AM_CONDITIONAL(DIRECTFB_BUILD_PURE_VOODOO, test
"$DIRECTFB_BUILD_PURE_VOODOO" =
AC_SUBST(DEP_VOODOO)
+dnl If we're not building a pure voodoo lib, we need the sqrt symbol
+dnl for src/media/idirectfbfont.c
+MEDIALIB=""
+if test "$enable_pure_voodoo" = "no"; then
+ AC_CHECK_LIB(m, sqrt,
+ MEDIALIB="-lm",
+ AC_MSG_ERROR([
+*** DirectFB requires libm.]))
+fi
+AC_SUBST(MEDIALIB)
AM_CONDITIONAL(ENABLE_MULTI, test "$enable_multi" = "yes")
diff --git a/src/media/Makefile.am b/src/media/Makefile.am
index 1a39a25..a4bdb10 100644
--- a/src/media/Makefile.am
+++ b/src/media/Makefile.am
@@ -35,4 +35,4 @@ libdirectfb_media_la_SOURCES = \
idirectfbdatabuffer_file.c \
idirectfbdatabuffer_memory.c \
idirectfbdatabuffer_streamed.c
-
+libdirectfb_media_la_LDFLAGS = $(MEDIALIB)
--
1.7.1
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev