commit 158cf6f8deaac69eba0c5941f809469cc3eefb43 Author: hasufell Date: Thu Sep 26 20:49:01 2013 +0200 fix underlinking diff --git a/configure.in b/configure.in index 7bf17c2..fa5bd3f 100644 --- a/configure.in +++ b/configure.in @@ -16,6 +16,8 @@ AM_INIT_AUTOMAKE(lib3ds, $LIB3DS_VERSION) AC_PROG_CC AC_PROG_LIBTOOL +AC_CHECK_LIBM + AC_OUTPUT([ \ lib3ds-config \ Makefile \ diff --git a/examples/3ds2obj/Makefile.am b/examples/3ds2obj/Makefile.am index 8213225..4214675 100644 --- a/examples/3ds2obj/Makefile.am +++ b/examples/3ds2obj/Makefile.am @@ -3,6 +3,6 @@ INCLUDES = -I$(top_srcdir)/src bin_PROGRAMS = 3ds2obj 3ds2obj_SOURCES = 3ds2obj.c -LDADD = $(top_builddir)/src/lib3ds.la +LDADD = $(top_builddir)/src/lib3ds.la $(LIBM) EXTRA_DIST = 3ds2obj.vcproj diff --git a/examples/3dsdump/Makefile.am b/examples/3dsdump/Makefile.am index 98ec5d1..ef19b04 100644 --- a/examples/3dsdump/Makefile.am +++ b/examples/3dsdump/Makefile.am @@ -3,6 +3,6 @@ INCLUDES = -I$(top_srcdir)/src bin_PROGRAMS = 3dsdump 3dsdump_SOURCES = 3dsdump.c -LDADD = $(top_builddir)/src/lib3ds.la +LDADD = $(top_builddir)/src/lib3ds.la $(LIBM) EXTRA_DIST = 3dsdump.vcproj diff --git a/examples/cube/Makefile.am b/examples/cube/Makefile.am index c79c0ee..539813d 100644 --- a/examples/cube/Makefile.am +++ b/examples/cube/Makefile.am @@ -3,7 +3,7 @@ INCLUDES = -I$(top_srcdir)/src bin_PROGRAMS = cube cube_SOURCES = cube.c -LDADD = $(top_builddir)/src/lib3ds.la +LDADD = $(top_builddir)/src/lib3ds.la $(LIBM) EXTRA_DIST = cube.vcproj cube.tga