diff options
author | Martin Willi <martin@strongswan.org> | 2009-11-09 11:43:15 +0100 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-11-09 15:07:01 +0100 |
commit | 5269150ebc577cd2814a456527fa8d75d8e04363 (patch) | |
tree | 8830eadd1a57baa78c634233f944234496544bdb /configure.in | |
parent | 67c3875c02503a56126ab7750a49cf7770c48179 (diff) | |
download | strongswan-5269150ebc577cd2814a456527fa8d75d8e04363.tar.bz2 strongswan-5269150ebc577cd2814a456527fa8d75d8e04363.tar.xz |
If cross-compiling, test for the existence of pthread_condattr_setclock only
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 8efa643ac..a6fdfa748 100644 --- a/configure.in +++ b/configure.in @@ -286,8 +286,14 @@ AC_TRY_RUN( pthread_condattr_init(&attr); return pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);}], [AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_CONDATTR_CLOCK_MONOTONIC])], - [AC_MSG_RESULT([no])] + [AC_MSG_RESULT([no])], + dnl Check existence of pthread_condattr_setclock if cross-compiling + [AC_MSG_RESULT([unknown]); + AC_CHECK_FUNCS(pthread_condattr_setclock, + [AC_DEFINE([HAVE_CONDATTR_CLOCK_MONOTONIC])] + )] ) + LIBS=$saved_LIBS AC_CHECK_FUNCS(prctl) |