[PATCH input-aiptek 3/7] config: use AC_CHECK_LIB to verify library and add -lm to LIBS

Gaetan Nadon memsize at videotron.ca
Thu Apr 15 09:51:06 PDT 2010


Ensures library is present and contains the desired symbol.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 configure.ac    |    1 +
 src/Makefile.am |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index e03b13c..9ba51c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,6 +62,7 @@ XORG_DRIVER_CHECK_EXT(XINPUT, inputproto)
 PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901] xproto $REQUIRED_MODULES)
 
 # Checks for libraries.
+AC_CHECK_LIB([m],[sqrt])
 
 # Checks for header files.
 AC_CHECK_HEADERS([linux/input.h])
diff --git a/src/Makefile.am b/src/Makefile.am
index 0b8f60a..80ad025 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -30,6 +30,5 @@ AM_CFLAGS = $(XORG_CFLAGS) $(CWARNFLAGS)
 @DRIVER_NAME at _drv_la_LTLIBRARIES = @DRIVER_NAME at _drv.la
 @DRIVER_NAME at _drv_la_LDFLAGS = -module -avoid-version
 @DRIVER_NAME at _drv_ladir = @inputdir@
- at DRIVER_NAME@_drv_la_LIBADD = -lm
 
 @DRIVER_NAME at _drv_la_SOURCES = xf86Aiptek.c xf86Aiptek.h
-- 
1.6.0.4



More information about the xorg-devel mailing list