aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-04-25 09:46:21 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-04-25 09:46:21 +0900
commita444f71db79d021ebfe10d9511d1073e9778a7a5 (patch)
tree7f2441fb744da85a9b35a429006cc1853dfc1bfa /configure.ac
parentfix e cursor invisible after destroying wayland surface (diff)
downloadenlightenment-a444f71db79d021ebfe10d9511d1073e9778a7a5.tar.gz
add -lrt checking to e build
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac26
1 files changed, 26 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1723c581c..44cac744b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -755,6 +755,32 @@ define([CHECK_MODULE_MIXER],
fi
])
+SHM_OPEN_LIBS=""
+AC_MSG_CHECKING([whether shm_open() is present])
+LIBS_save=${LIBS}
+LIBS="${LIBS} -lrt"
+AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[
+#include <sys/stat.h>
+#include <sys/mman.h>
+#include <fcntl.h>
+ ]],
+ [[
+int fd;
+fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR |
+S_IWUSR);
+shm_unlink("/");
+ ]])],
+ [
+ have_shm_open="yes"
+ AC_DEFINE(HAVE_SHM_OPEN, 1, [Have shm_open() call])
+ SHM_OPEN_LIBS="-lrt"
+ ])
+LIBS=${LIBS_save}
+AC_MSG_RESULT([${have_shm_open}])
+AC_SUBST(SHM_OPEN_LIBS)
+
AC_SUBST([SOUND_CFLAGS])
AC_SUBST([SOUND_LIBS])