summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-09-07 19:11:02 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-09-08 18:00:17 +0200
commitafc9534f6727f9298da4881d2e1c8279f6ca315f (patch)
tree4a9bc2db693d7a5e10fb0ec36073db307def4e99 /configure.ac
parentlib: Cleanup include of link.h (diff)
downloadfrr-afc9534f6727f9298da4881d2e1c8279f6ca315f.tar.xz
frr-afc9534f6727f9298da4881d2e1c8279f6ca315f.zip
lib: Detect if pthread_condattr_setclock is available
Auto-detect if pthread_condattr_setclock is available and if it is not allow the code to compile around the issue. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 09a6f364f..f1ffd43f5 100755
--- a/configure.ac
+++ b/configure.ac
@@ -313,6 +313,13 @@ AX_PTHREAD([
AC_MSG_FAILURE([This FRR version needs pthreads])
])
+AC_SEARCH_LIBS([pthread_condattr_setclock], [],
+ [frr_cv_pthread_condattr_setclock=yes],
+ [frr_cv_pthread_condattr_setclock=no])
+if test "$frr_cv_pthread_condattr_setclock" = yes; then
+ AC_DEFINE(HAVE_PTHREAD_CONDATTR_SETCLOCK, 1, [Have pthread.h pthread_condattr_setclock])
+fi
+
dnl --------------
dnl Check programs
dnl --------------