From f9fe039a9517a4095b6a3aab18fe21033acf729e Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Thu, 14 Jul 2011 06:58:59 +0000 Subject: [PATCH] Eina : configure.ac : improve shm_open detection * Do not use spaces around '=' in configure scripts * formatting * put -lrt in EINA_LIBS instead of LIBS SVN revision: 61357 --- legacy/eina/configure.ac | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/legacy/eina/configure.ac b/legacy/eina/configure.ac index 08ccb41bc8..26042b9549 100644 --- a/legacy/eina/configure.ac +++ b/legacy/eina/configure.ac @@ -589,22 +589,22 @@ AC_CHECK_FUNCS([fpathconf], [AC_DEFINE(HAVE_FPATHCONF)], []) 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 #include /* For mode constants */ #include /* 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}" @@ -612,7 +612,7 @@ AC_MSG_RESULT([${have_shmopen}]) 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