]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Ensure the servicediscovery plugin isn't enabled in an open-vm-tools build for non...
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 11 Sep 2020 19:11:03 +0000 (12:11 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 11 Sep 2020 19:11:03 +0000 (12:11 -0700)
The servicediscovery plugin is supported only on Linux platforms.  This
change checks that this plugin is enabled only if the OS is Linux.
Otherwise, an error message is printed.

open-vm-tools/configure.ac

index 5922b23cdf56345bc504c26bda92c4603e35d035..fe8f5374745706679a3b4dd70c447631044d90a5 100644 (file)
@@ -447,6 +447,17 @@ AC_ARG_ENABLE([servicediscovery],
     enable_servicediscovery=no
    ])
 
+#
+# Check that servicediscovery is enabled only on linux systems
+#
+
+if test "$enable_servicediscovery" = "yes"; then
+   if test "$os" != "linux"; then
+      AC_MSG_ERROR([The Service Discovery plugin is only supported for Linux
+      platforms. Try configure without --enable-servicediscovery option.])
+   fi
+fi
+
 #
 # Check for glib 2.34.0 or greater.
 #