[MacOSX Lion] Compilation with gfortran-4.6
[scilab.git] / scilab / m4 / macosx.m4
index ca6c746..958f08f 100644 (file)
@@ -3,6 +3,10 @@
 #
 AC_DEFUN([AC_GET_MACOSX_VERSION],[
         AC_MSG_CHECKING([MacOSX Version])
+        if eval system_profiler SPSoftwareDataType | grep "System Version" | grep "10\.7" > /dev/null; then
+        AC_MSG_RESULT([MacOSX 10.7 - Lion.])
+        macosx_version="10.7"
+        else
         if eval system_profiler SPSoftwareDataType | grep "System Version" | grep "10\.6" > /dev/null; then
         AC_MSG_RESULT([MacOSX 10.6 - Snow Leopard.])
         macosx_version="10.6"
@@ -11,7 +15,8 @@ AC_DEFUN([AC_GET_MACOSX_VERSION],[
         AC_MSG_RESULT([MacOSX 10.5 - Leopard.])
         macosx_version="10.5"
         else
-        AC_MSG_ERROR([MacOSX 10.5 or 10.6 is needed.])
+        AC_MSG_ERROR([MacOSX 10.5,10.6 or 10.7 is needed.])
         fi
         fi
-])
\ No newline at end of file
+       fi
+])