From: caro Date: Fri, 8 May 2009 22:01:43 +0000 (+0000) Subject: check for shm_open only if cserve is to be built X-Git-Tag: 2.0_alpha~240^2~2445 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21458fae4058d8156af5f5e908e15e8ee2f2ad5b;p=framework%2Fuifw%2Fevas.git check for shm_open only if cserve is to be built git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@40559 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/configure.ac b/configure.ac index ca0665f..e41207f 100644 --- a/configure.ac +++ b/configure.ac @@ -156,26 +156,27 @@ AC_ARG_ENABLE(evas-cserve, ) AC_MSG_RESULT($want_evas_cserve) -AC_MSG_CHECKING([whether shm_open() is present]) -LIBS_save=${LIBS} -LIBS="$LIBS -lrt" -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ +if test "x${want_evas_cserve}" = "xyes" ; then + AC_MSG_CHECKING([whether shm_open() is present]) + LIBS_save=${LIBS} + LIBS="$LIBS -lrt" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[ #include #include #include - ]], - [[ + ]], + [[ int fd; fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); shm_unlink("/"); - ]])], - [want_evas_cserve="yes"], - [want_evas_cserve="no"]) -LIBS=${LIBS_save} -AC_MSG_RESULT([$want_evas_cserve]) - + ]])], + [want_evas_cserve="yes"], + [want_evas_cserve="no"]) + LIBS=${LIBS_save} + AC_MSG_RESULT([$want_evas_cserve]) +fi AM_CONDITIONAL(EVAS_CSERVE, test "x$want_evas_cserve" = "xyes") if test "x$want_evas_cserve" = "xyes"; then