Added host_os check for component vrt (Linux only for now.)
authorJohnathan Corgan <jcorgan@corganenterprises.com>
Thu, 20 Aug 2009 14:11:12 +0000 (07:11 -0700)
committerJohnathan Corgan <jcorgan@corganenterprises.com>
Thu, 20 Aug 2009 14:11:12 +0000 (07:11 -0700)
config/grc_vrt.m4

index d473c5581b6d6d8a2eb29779f2b4c47f453e5080..982c8863a1ec5aae154b85831b47c984ef6bb87e 100644 (file)
@@ -34,6 +34,19 @@ AC_DEFUN([GRC_VRT],[
         VRT_LA="\${abs_top_builddir}/vrt/lib/libvrt.la"
     fi
 
+    # Test host OS compatibility
+    AC_MSG_CHECKING([whether host_os is linux*])
+    case "$host_os" in
+      linux*)
+       AC_MSG_RESULT([yes])
+        ;;
+      *)
+       AC_MSG_RESULT([no])
+       AC_MSG_NOTICE([libvrt currently requires Linux host OS, not found])
+        passed="no"
+        ;;
+    esac
+
     dnl Include the vrt INCLUDES and LA
     AC_SUBST(VRT_INCLUDES)
     AC_SUBST(VRT_LA)