From 2b3169566a53e184f34294ab50464fc25bace527 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Sat, 21 Jul 2012 16:50:36 +0000 Subject: [PATCH] Eina: Set CFLAGS in the configure to allow AC_CHECK_HEADERS to find sys/mman.h installed in exotic/escape SVN revision: 74274 --- legacy/eina/configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/legacy/eina/configure.ac b/legacy/eina/configure.ac index bc02f235a4..1a6c75d22c 100644 --- a/legacy/eina/configure.ac +++ b/legacy/eina/configure.ac @@ -402,7 +402,13 @@ AC_HEADER_ASSERT AC_HEADER_TIME AC_HEADER_DIRENT -AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h sys/types.h siginfo.h strings.h sys/mman.h execinfo.h mcheck.h]) +AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h sys/types.h siginfo.h strings.h execinfo.h mcheck.h]) + +# sys/mman.h could be provided by evil/escape/exotic so we need to set CFLAGS accordingly +CFLAGS_save="${CFLAGS}" +CFLAGS="${CFLAGS} ${EINA_CFLAGS}" +AC_CHECK_HEADERS([sys/mman.h]) +CFLAGS="${CFLAGS_save}" if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H"