* Do not use spaces around '=' in configure scripts
* formatting
* put -lrt in EINA_LIBS instead of LIBS
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@61357
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
have_shmopen=no
AC_MSG_CHECKING(for shm_open availability)
-LIBS_save = "${LIBS}"
+LIBS_save="${LIBS}"
LIBS="${LIBS} -lrt"
AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[
+ [AC_LANG_PROGRAM(
+ [[
#include <sys/mman.h>
#include <sys/stat.h> /* For mode constants */
#include <fcntl.h> /* For O_* constants */
- ]],
- [[
+ ]],
+ [[
int fd;
fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO);
- ]])],
- [have_shmopen="yes"],
- [have_shmopen="no"])
+ ]])],
+ [have_shmopen="yes"],
+ [have_shmopen="no"])
LIBS="${LIBS_save}"
if test "x${have_shmopen}" = "xyes"; then
AC_DEFINE(HAVE_SHMOPEN, 1, [Does your system provide shm_open])
- LIBS="${LIBS} -lrt"
+ EINA_LIBS="${EINA_LIBS} -lrt"
fi
### Modules