openocd: avoid documentation rebuild to fix build issues
[buildroot-gz.git] / package / liboping / 0001-configure-also-check-for-clockgettime.patch
blobb2c585559a991bb4ac4236719aa1b2aad00d1b78
1 From a45f3610beba1f7e6e1a038e3a1fe4150057c262 Mon Sep 17 00:00:00 2001
2 From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3 Date: Tue, 5 Jul 2016 15:31:28 +0200
4 Subject: [PATCH] configure: also check for clockgettime()
6 clock_gettime() is also in -lrt so we also need to check for it.
8 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
9 ---
10 configure.ac | 10 +++++++---
11 1 file changed, 7 insertions(+), 3 deletions(-)
13 diff --git a/configure.ac b/configure.ac
14 index f83f5ab..3b6ae09 100644
15 --- a/configure.ac
16 +++ b/configure.ac
17 @@ -199,12 +199,16 @@ fi
19 AC_SUBST(LIBOPING_PC_LIBS_PRIVATE)
21 -nanosleep_needs_rt="no"
22 +needs_rt="no"
23 AC_CHECK_FUNCS(nanosleep, [],
24 AC_CHECK_LIB(rt, nanosleep,
25 - [nanosleep_needs_rt="yes"],
26 + [needs_rt="yes"],
27 AC_MSG_ERROR(cannot find nanosleep)))
28 -AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$nanosleep_needs_rt" = "xyes")
29 +AC_CHECK_FUNCS(clock_gettime, [],
30 + AC_CHECK_LIB(rt, clock_gettime,
31 + [needs_rt="yes"],
32 + AC_MSG_ERROR(cannot find clock_gettime)))
33 +AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$needs_rt" = "xyes")
35 with_ncurses="no"
36 AC_CHECK_HEADERS(ncursesw/ncurses.h ncurses.h, [with_ncurses="yes"], [])
37 --
38 2.7.4