1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-06 13:54:12 +01:00

Configure: Moved check for Math lib to a dedicated M4 macro

Took the opportunity to rewrite the check using autoconf macros
to generate a more compatible configure script.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-06-16 21:50:56 +02:00
committed by Carlos R. Mafra
parent a6410d61e5
commit f68ec6c913
2 changed files with 33 additions and 6 deletions

View File

@@ -477,12 +477,7 @@ dnl
dnl libWINGS uses math functions, check whether usage requires linking
dnl against libm
dnl
AC_CHECK_FUNC(atan,[mathneedslibm=no;LIBM=],[mathneedslibm=dunno])
if test "x$mathneedslibm" = "xdunno" ; then
AC_CHECK_LIB(m, atan, [LIBM=-lm])
fi
AC_SUBST(LIBM)
WM_CHECK_LIBM
dnl
dnl libWINGS uses FcPatternDel from libfontconfig