build: Identify the Linux hosts
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 9 Feb 2012 18:41:19 +0000 (18:41 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 9 Feb 2012 18:41:19 +0000 (18:41 +0000)
This gives us a nice conditional, like the one we have on Windows and
OSX.

configure.ac

index 6d96a7a..9578d62 100644 (file)
@@ -99,6 +99,11 @@ AS_CASE([$host],
           platform_win32=yes
         ],
 
+        [*-*-linux],
+        [
+          platform_linux=yes
+        ],
+
         []
 )
 AC_MSG_RESULT([$platform_win32])
@@ -111,6 +116,7 @@ AM_CONDITIONAL(OS_QUARTZ, [test "$platform_quartz" = "yes"])
 AC_CHECK_HEADER([GL/glx.h], [platform_glx=yes], [platform_glx=no])
 AC_CHECK_LIB([GL], [glXCreateContext], [platform_glx=yes], [platform_glx=no])
 AM_CONDITIONAL(OS_GLX, [test "$platform_glx" = "yes"])
+AM_CONDITIONAL(OS_LINUX, [test "$platform_linux" = "yes"])
 
 AC_SUBST(CLUTTER_LT_LDFLAGS)