[gtkglarea] configure.ac: Check for the math library properly



commit 824a6269f8065a5645f334f55c6510dd166cba07
Author: Javier Jardón <jjardon gnome org>
Date:   Thu Feb 27 03:03:41 2014 +0000

    configure.ac: Check for the math library properly

 configure.ac         |    4 +++-
 examples/Makefile.am |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a09e2bd..4f385a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,6 +45,9 @@ dnl Initialize libtool
 LT_PREREQ([2.2.6])
 LT_INIT([win32-dll])
 
+dnl Find an appropriate libm
+LT_LIB_M
+
 dnl
 dnl  Check for the operating system
 dnl
@@ -175,7 +178,6 @@ AC_SUBST(GL_CFLAGS)
 AC_SUBST(GL_LIBS)
 
 CFLAGS="$CFLAGS $GTK_CFLAGS $GL_CFLAGS"
-CFLAGS="$CFLAGS -lm"
 
 AC_CONFIG_FILES([
   Makefile
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 3360878..2c288a3 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -9,7 +9,7 @@ endif
 noinst_PROGRAMS = simple zktor viewlw glpixmap gdkfont $(shader_programs) gtkglarea_demo
 
 INCLUDES = -I$(top_srcdir)
-LDADD = $(top_builddir)/gtkgl/libgtkgl-2.0.la $(GTK_LIBS) $(GL_LIBS)
+LDADD = $(top_builddir)/gtkgl/libgtkgl-2.0.la $(GTK_LIBS) $(GL_LIBS) $(LIBM)
 
 simple_SOURCES   = simple.c
 zktor_SOURCES    = zktor.c


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]