From: John Wolfe Date: Fri, 11 Sep 2020 19:11:03 +0000 (-0700) Subject: Ensure the servicediscovery plugin isn't enabled in an open-vm-tools build for non... X-Git-Tag: stable-11.2.0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31e14a2def83c8cf4450543c042c61a5e811eada;p=thirdparty%2Fopen-vm-tools.git Ensure the servicediscovery plugin isn't enabled in an open-vm-tools build for non Linux OS. 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. --- diff --git a/open-vm-tools/configure.ac b/open-vm-tools/configure.ac index 5922b23cd..fe8f53747 100644 --- a/open-vm-tools/configure.ac +++ b/open-vm-tools/configure.ac @@ -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. #