From: phk Date: Sun, 5 Aug 2007 20:26:09 +0000 (+0000) Subject: We need the math library on some systems. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8221d7af1efec900b9332df0de6bb7a591a8fc0c;p=varnish We need the math library on some systems. Ticket 138 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1798 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/Makefile.am b/varnish-cache/bin/varnishd/Makefile.am index f138a267..0fde1558 100644 --- a/varnish-cache/bin/varnishd/Makefile.am +++ b/varnish-cache/bin/varnishd/Makefile.am @@ -68,4 +68,4 @@ varnishd_LDADD = \ $(top_builddir)/lib/libvarnish/libvarnish.la \ $(top_builddir)/lib/libcompat/libcompat.a \ $(top_builddir)/lib/libvcl/libvcl.la \ - ${DL_LIBS} ${PTHREAD_LIBS} + ${DL_LIBS} ${PTHREAD_LIBS} ${LIBM} diff --git a/varnish-cache/configure.ac b/varnish-cache/configure.ac index b6af8def..4ffc2b07 100644 --- a/varnish-cache/configure.ac +++ b/varnish-cache/configure.ac @@ -50,6 +50,9 @@ PTHREAD_LIBS="${LIBS}" LIBS="${save_LIBS}" AC_SUBST(PTHREAD_LIBS) +AC_CHECK_LIBM +AC_SUBST(LIBM) + # Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT