Commit 269b70a4 authored by Eric Petit's avatar Eric Petit

Added check for -lm

parent bed6cde0
......@@ -95,10 +95,14 @@ esac
AM_CONDITIONAL(NEED_PIC, ${NEED_PIC})
dnl Checks for libraries.
LIBAO_LIBS="-lm"
AC_SUBST([LIBAO_LIBS])
LIBDTS_LIBS="-lm"
AC_SUBST([LIBDTS_LIBS])
AC_CHECK_LIB(m,cos,[
LIBAO_LIBS="-lm"
AC_SUBST([LIBAO_LIBS])
LIBDTS_LIBS="-lm"
AC_SUBST([LIBDTS_LIBS])
COMPARE_LIBS="-lm"
AC_SUBST([COMPARE_LIBS])
])
dnl Checks for header files.
INCLUDES='-I$(top_srcdir)/include -I$(top_builddir)/include'
......
......@@ -2,7 +2,7 @@ AM_CFLAGS = $(DTSDEC_CFLAGS)
noinst_PROGRAMS = compare
compare_SOURCES = compare.c
compare_LDADD = -lm
compare_LDADD = $(COMPARE_LIBS)
EXTRA_DIST = regression tests compile globals
TESTS = regression compile globals
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment