Re: [ovs-dev] [PATCH 1/4] configure.ac: More enhanced check for pthread library.

2018-12-10 Thread Ben Pfaff
On Mon, Dec 10, 2018 at 08:05:20PM +0300, Ilya Maximets wrote:
> FreeBSD 12 supports 'pthread_rwlock_tryrdlock' without 'pthread'
> library. Let's add check for more rare function.
> OTOH, Travis-CI environment supports 'pthread_rwlockattr_destroy',
> but does not support 'pthread_rwlock_tryrdlock' without 'pthread'.
> So, both checks needed.
> 
> Signed-off-by: Ilya Maximets 

Applied to master, thanks!
___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


[ovs-dev] [PATCH 1/4] configure.ac: More enhanced check for pthread library.

2018-12-10 Thread Ilya Maximets
FreeBSD 12 supports 'pthread_rwlock_tryrdlock' without 'pthread'
library. Let's add check for more rare function.
OTOH, Travis-CI environment supports 'pthread_rwlockattr_destroy',
but does not support 'pthread_rwlock_tryrdlock' without 'pthread'.
So, both checks needed.

Signed-off-by: Ilya Maximets 
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 3e97a750c..71ca90782 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,6 +78,7 @@ AC_SEARCH_LIBS([pow], [m])
 AC_SEARCH_LIBS([clock_gettime], [rt])
 AC_SEARCH_LIBS([timer_create], [rt])
 AC_SEARCH_LIBS([pthread_rwlock_tryrdlock], [pthread])
+AC_SEARCH_LIBS([pthread_rwlockattr_destroy], [pthread])
 AC_FUNC_STRERROR_R
 
 OVS_CHECK_ESX
-- 
2.17.1

___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev