Forráskód Böngészése

configure.ac: disable test for unistd.h, we need to find a less intrusive manner to test a proper inclusion of unistd.h, this test fails as unistd.h gets included by hwloc.h from starpu_worker.h

Nathalie Furmento 7 éve
szülő
commit
28f4b4fe61
1 módosított fájl, 11 hozzáadás és 11 törlés
  1. 11 11
      configure.ac

+ 11 - 11
configure.ac

@@ -3252,17 +3252,17 @@ AC_SUBST(SOCL_VENDORS)
 AC_CONFIG_FILES(tests/regression/regression.sh tests/regression/profiles tests/regression/profiles.build.only)
 AC_CONFIG_HEADER(src/common/config.h include/starpu_config.h gcc-plugin/include/starpu-gcc/config.h starpu-top/config.h)
 
-AH_BOTTOM([
-#if defined(STARPU_DEVEL) && defined(BUILDING_STARPU)
-#  ifndef STARPU_CHECKED_UNISTD_H
-#    define STARPU_CHECKED_UNISTD_H
-#    ifdef _UNISTD_H
-#      define _UNISTD_H PLEASE_DONT_INCLUDE_IT
-#      error Please do not unconditionally include unistd.h, it is not available on Windows, include config.h and test for HAVE_UNISTD_H
-#    endif
-#  endif
-#endif
-])
+#AH_BOTTOM([
+##if defined(STARPU_DEVEL) && defined(BUILDING_STARPU)
+##  ifndef STARPU_CHECKED_UNISTD_H
+##    define STARPU_CHECKED_UNISTD_H
+##    ifdef _UNISTD_H
+##      define _UNISTD_H PLEASE_DONT_INCLUDE_IT
+##      error Please do not unconditionally include unistd.h, it is not available on Windows, include config.h and test for HAVE_UNISTD_H
+##    endif
+##  endif
+##endif
+#])
 
 SANITIZE=$(echo $CFLAGS | grep sanitize)
 AM_CONDITIONAL(STARPU_SANITIZE, test -n "$SANITIZE")