Browse Source

fix bug for o_direct

Corentin Salingue 12 years ago
parent
commit
5b039336e7
1 changed files with 5 additions and 2 deletions
  1. 5 2
      configure.ac

+ 5 - 2
configure.ac

@@ -137,9 +137,12 @@ case "$target" in
 esac
 esac
 AM_CONDITIONAL([STARPU_HAVE_WINDOWS], [test "x$starpu_windows" = "xyes"])
 AM_CONDITIONAL([STARPU_HAVE_WINDOWS], [test "x$starpu_windows" = "xyes"])
 
 
-case ${target_os} in linux*)
-  AM_CONDITIONAL(STARPU_LINUX_SYS, test 1 = 1)
+case "$target_os" in
+*linux*)
+  starpu_linux=yes
+  ;;
 esac
 esac
+AM_CONDITIONAL(STARPU_LINUX_SYS, [test "x$starpu_linux" = "xyes"])
 
 
 # on Darwin, GCC targets i386 by default, so we don't have atomic ops
 # on Darwin, GCC targets i386 by default, so we don't have atomic ops
 AC_CHECK_SIZEOF([void *])
 AC_CHECK_SIZEOF([void *])