1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

libreplace-waf: Only check for _np functions if standard functions are not available

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2013-02-06 12:15:41 +01:00 committed by Jeremy Allison
parent 4ea036c26d
commit 4baa2d021c

View File

@ -458,20 +458,26 @@ removeea setea
if conf.CONFIG_SET('HAVE_PTHREAD'):
conf.CHECK_DECLS('pthread_mutexattr_setrobust', headers='pthread.h')
if not conf.CONFIG_SET('HAVE_DECL_PTHREAD_MUTEXATTR_SETROBUST'):
conf.CHECK_DECLS('pthread_mutexattr_setrobust_np',
headers='pthread.h')
conf.CHECK_FUNCS_IN('pthread_mutexattr_setrobust', 'pthread',
checklibc=True, headers='pthread.h')
conf.CHECK_DECLS('pthread_mutexattr_setrobust_np', headers='pthread.h')
conf.CHECK_FUNCS_IN('pthread_mutexattr_setrobust_np', 'pthread',
checklibc=True, headers='pthread.h')
if not conf.CONFIG_SET('HAVE_PTHREAD_MUTEXATTR_SETROBUST'):
conf.CHECK_FUNCS_IN('pthread_mutexattr_setrobust_np', 'pthread',
checklibc=True, headers='pthread.h')
conf.CHECK_DECLS('pthread_mutex_consistent', headers='pthread.h')
if not conf.CONFIG_SET('HAVE_DECL_PTHREAD_MUTEX_CONSISTENT'):
conf.CHECK_DECLS('pthread_mutex_consistent_np',
headers='pthread.h')
conf.CHECK_FUNCS_IN('pthread_mutex_consistent', 'pthread',
checklibc=True, headers='pthread.h')
conf.CHECK_DECLS('pthread_mutex_consistent_np', headers='pthread.h')
conf.CHECK_FUNCS_IN('pthread_mutex_consistent_np', 'pthread',
checklibc=True, headers='pthread.h')
if not conf.CONFIG_SET('HAVE_PTHREAD_MUTEX_CONSISTENT'):
conf.CHECK_FUNCS_IN('pthread_mutex_consistent_np', 'pthread',
checklibc=True, headers='pthread.h')
if ((conf.CONFIG_SET('HAVE_PTHREAD_MUTEXATTR_SETROBUST') or
conf.CONFIG_SET('HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP')) and