Browse Source

configure.ac: fix detection of linux systems

Nathalie Furmento 12 years ago
parent
commit
34502a9cdf
1 changed files with 2 additions and 5 deletions
  1. 2 5
      configure.ac

+ 2 - 5
configure.ac

@@ -134,15 +134,12 @@ case "$target" in
   libext=a
   libext=a
   AC_DEFINE(STARPU_HAVE_WINDOWS, [], [Define this on windows.])
   AC_DEFINE(STARPU_HAVE_WINDOWS, [], [Define this on windows.])
   ;;
   ;;
-esac
-AM_CONDITIONAL([STARPU_HAVE_WINDOWS], [test "x$starpu_windows" = "xyes"])
-
-case "$target_os" in
 *linux*)
 *linux*)
   starpu_linux=yes
   starpu_linux=yes
   ;;
   ;;
 esac
 esac
-AM_CONDITIONAL(STARPU_LINUX_SYS, [test "x$starpu_linux" = "xyes"])
+AM_CONDITIONAL([STARPU_HAVE_WINDOWS], [test "x$starpu_windows" = "xyes"])
+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 *])