Make the xen-cmd test more readable and portable
authorRené Nussbaumer <rn@google.com>
Fri, 1 Jun 2012 09:44:49 +0000 (11:44 +0200)
committerRené Nussbaumer <rn@google.com>
Fri, 1 Jun 2012 09:52:41 +0000 (11:52 +0200)
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>

configure.ac

index 484e2ef..7520c67 100644 (file)
@@ -107,7 +107,7 @@ AC_ARG_WITH([xen-cmd],
   [xen_cmd="xm"])
 AC_SUBST(XEN_CMD, $xen_cmd)
 
-if ! (test "$XEN_CMD" == "xl" || test "$XEN_CMD" == "xm"); then
+if ! test "$XEN_CMD" = xl -o "$XEN_CMD" = xm; then
   AC_MSG_ERROR([Unsupported xen command specified])
 fi