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

Configure: Added explicit check for math library header

Compilation will not work if the header is missing, so make sure
it is present and compilable first. This can highligh sooner if
a user forgot to install the corresponding dev package.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-06-16 21:50:57 +02:00
committed by Carlos R. Mafra
parent f68ec6c913
commit 95ee539d6d

View File

@@ -22,7 +22,9 @@
# Checks the needed library link flags needed to have math lib
# Sets variable LIBM with the appropriates flags
AC_DEFUN_ONCE([WM_CHECK_LIBM],
[AC_CHECK_FUNC(atan,
[AC_CHECK_HEADER([math.h], [],
[AC_MSG_ERROR([header for math library not found])])
AC_CHECK_FUNC(atan,
[LIBM=],
[AC_CHECK_LIB(m, [atan],
[LIBM=-lm],