mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-28 23:40:08 +01:00
configure: check for -lm through AC_CHECK_LIB
Saves us from manually appending it everywhere Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
36720c5151
commit
5d36e8e817
3 changed files with 3 additions and 3 deletions
|
|
@ -57,6 +57,7 @@ PKG_PROG_PKG_CONFIG()
|
|||
PKG_CHECK_MODULES(MTDEV, [mtdev >= 1.1.0])
|
||||
PKG_CHECK_MODULES(LIBUDEV, [libudev])
|
||||
PKG_CHECK_MODULES(LIBEVDEV, [libevdev >= 0.4])
|
||||
AC_CHECK_LIB([m], [atan2])
|
||||
|
||||
if test "x$GCC" = "xyes"; then
|
||||
GCC_CXXFLAGS="-Wall -Wextra -Wno-unused-parameter -g -fvisibility=hidden"
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ libinput_la_SOURCES = \
|
|||
|
||||
libinput_la_LIBADD = $(MTDEV_LIBS) \
|
||||
$(LIBUDEV_LIBS) \
|
||||
$(LIBEVDEV_LIBS) \
|
||||
-lm
|
||||
$(LIBEVDEV_LIBS)
|
||||
libinput_la_CFLAGS = -I$(top_srcdir)/include \
|
||||
$(MTDEV_CFLAGS) \
|
||||
$(LIBUDEV_CFLAGS) \
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include \
|
|||
AM_CFLAGS = $(GCC_CFLAGS)
|
||||
AM_CXXFLAGS = $(GCC_CXXFLAGS)
|
||||
|
||||
TEST_LIBS = liblitest.la $(CHECK_LIBS) $(LIBUDEV_LIBS) $(LIBEVDEV_LIBS) $(top_builddir)/src/libinput.la -lm
|
||||
TEST_LIBS = liblitest.la $(CHECK_LIBS) $(LIBUDEV_LIBS) $(LIBEVDEV_LIBS) $(top_builddir)/src/libinput.la
|
||||
noinst_LTLIBRARIES = liblitest.la
|
||||
liblitest_la_SOURCES = \
|
||||
$(top_srcdir)/src/libinput-util.h \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue