Check cserve2 can be built while the multiplatform support is not there yet.
authorsachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 4 May 2012 17:57:01 +0000 (17:57 +0000)
committersachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 4 May 2012 17:57:01 +0000 (17:57 +0000)
Patch by Raphael Kubo da Costa

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@70760 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac

index 911d31c..93e26ed 100644 (file)
@@ -620,6 +620,17 @@ AC_ARG_ENABLE([evas-cserve2],
 AC_MSG_CHECKING(whether to build shared cache server 2 and support)
 AC_MSG_RESULT(${want_evas_cserve2})
 
+# cserve2 only works on Linux so far.
+if test "x${want_evas_cserve2}" = "xyes" ; then
+   AC_CHECK_HEADERS(
+      [sys/epoll.h sys/inotify.h sys/signalfd.h],
+      [],
+      [
+       want_evas_cserve2="no"
+      ]
+   )
+fi
+
 if test "x${want_evas_cserve2}" = "xyes"; then
    want_evas_cserve="no"
 fi