configure: use quotation marks consistently
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 8 Feb 2017 11:11:54 +0000 (12:11 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 8 Feb 2017 11:11:54 +0000 (12:11 +0100)
Always use quotation marks when testing variables.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
configure.ac

index 5b9192cfea48d8e5d09b875293b8db21ff8108a9..2226513a7dae0c4d0a7eda5d9ce88cbe86667118 100644 (file)
@@ -65,7 +65,7 @@ AC_ARG_ENABLE([tools],
                fi
        ],
        [with_tools=false])
-AM_CONDITIONAL([WITH_TOOLS], [test x$with_tools = xtrue])
+AM_CONDITIONAL([WITH_TOOLS], [test "x$with_tools" = xtrue])
 
 AC_DEFUN([FUNC_NOT_FOUND_TOOLS],
        [ERR_NOT_FOUND([$1()], [tools])])
@@ -83,7 +83,7 @@ then
 fi
 
 AC_CHECK_PROG([has_doxygen], [doxygen], [true], [false])
-AM_CONDITIONAL([HAS_DOXYGEN], [test x$has_doxygen = xtrue])
+AM_CONDITIONAL([HAS_DOXYGEN], [test "x$has_doxygen" = xtrue])
 if test "x$has_doxygen" = xfalse
 then
        AC_MSG_NOTICE([doxygen not found - documentation cannot be generated])