add rwlock define to eina_config.h

SVN revision: 50911
This commit is contained in:
Mike Blumenkrantz 2010-08-08 19:35:43 +00:00
parent 76a70bdd48
commit 84faaf51fd
2 changed files with 10 additions and 1 deletions

View File

@ -98,7 +98,11 @@ EFL_CHECK_THREADS(
],
[have_threads="no"])
EFL_CHECK_SPINLOCK([have_posix_threads_spinlock="yes"], [have_posix_threads_spinlock="no"])
EFL_CHECK_RWLOCK([have_posix_threads_rwlock="yes"], [have_posix_threads_rwlock="no"])
EFL_CHECK_RWLOCK(
[have_posix_threads_rwlock="yes"]
EINA_CONFIGURE_RWLOCKS_ENABLED="#define EINA_RWLOCKS_ENABLED",
[have_posix_threads_rwlock="no"])
AC_SUBST([EINA_CONFIGURE_RWLOCKS_ENABLED])
### Additional options to configure

View File

@ -49,4 +49,9 @@
#endif
#define EINA_SIZEOF_WCHAR_T @EINA_SIZEOF_WCHAR_T@
#ifdef EINA_RWLOCKS_ENABLED
# undef EINA_RWLOCKS_ENABLED
#endif
@EINA_CONFIGURE_RWLOCKS_ENABLED@
#endif /* EINA_CONFIG_H_ */