Emotion: fix typo on emotion_check.m4
authorbdilly <bdilly@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 6 Mar 2012 19:55:14 +0000 (19:55 +0000)
committerbdilly <bdilly@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 6 Mar 2012 19:55:14 +0000 (19:55 +0000)
And also remove an unused var.

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

m4/emotion_check.m4

index f70a2c3..a1d93ac 100644 (file)
@@ -181,8 +181,7 @@ AC_COMPILE_IFELSE(
 #include <fcntl.h>
        ]],
        [[
-int fd;
-fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
+shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
 shm_unlink("/");
        ]])],
    [
@@ -196,7 +195,7 @@ AC_SUBST(SHM_OPEN_LIBS)
 AC_MSG_CHECKING([shm_open])
 AC_MSG_RESULT([${have_shm_open}])
 
-if test "x{have_shm_open)" != "xyes"; then
+if test "x${have_shm_open}" != "xyes"; then
   enable_generic="no"
 fi