add rwlock define to eina_config.h
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 8 Aug 2010 19:35:43 +0000 (19:35 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 8 Aug 2010 19:35:43 +0000 (19:35 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@50911 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
src/include/eina_config.h.in

index 65f4b7c..c8fc196 100644 (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
 
index 56331bb..8cc4c84 100644 (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_ */