From 60d4b6238497c6ac348c89968fddb885de8705d5 Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Sun, 9 Dec 2007 12:40:40 +0000 Subject: [PATCH] Auto-detect whether -lrt is needed. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@826 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/configure.ac | 2 ++ jtag/src/Makefile.am | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/jtag/configure.ac b/jtag/configure.ac index 76563aaa..23b1642a 100644 --- a/jtag/configure.ac +++ b/jtag/configure.ac @@ -160,6 +160,8 @@ fi AC_CHECK_FUNCS(getline getdelim) AC_CHECK_FUNCS(swprintf) +AC_CHECK_FUNC(clock_gettime, [], [ AC_CHECK_LIB(rt, clock_gettime) ]) + AC_CHECK_HEADERS(linux/ppdev.h) VL_LIB_READLINE diff --git a/jtag/src/Makefile.am b/jtag/src/Makefile.am index 7e3691d0..cf6387be 100644 --- a/jtag/src/Makefile.am +++ b/jtag/src/Makefile.am @@ -68,10 +68,5 @@ jtag_LDADD = \ -lm \ @LIBINTL@ -# Removed -lrt (added in 704 for busy loop waiting; not -# available in Cygwin. not needed? If you re-add -lrt here -# please consider to add checks in configure.ac whether -# it is avaiable and really needed - localedir = $(datadir)/locale INCLUDES = -DLOCALEDIR=\"$(localedir)\"