]> granicus.if.org Git - pdns/commitdiff
autoconf: correctly quote AC_MSG_ERROR inside AS_IF
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 16 Apr 2018 15:30:56 +0000 (17:30 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 16 Apr 2018 15:35:53 +0000 (17:35 +0200)
configure.ac

index f28e57d62c4c88991008d0a751525b2d55ad5e95..5ee4beee44f25b761e3bd671ffeb303c3988d9c8 100644 (file)
@@ -29,7 +29,7 @@ AC_PROG_MAKE_SET
 
 AC_PROG_CXX
 AS_IF([test "x$CXX" = "xno" || test "x$CXX:x$GXX" = "xg++:x"],
-  AC_MSG_ERROR([no C++ compiler found])
+  [AC_MSG_ERROR([no C++ compiler found])]
 )
 
 AC_LANG([C++])
@@ -204,10 +204,10 @@ for a in $modules $dynmodules; do
       ;;
     lua)
       AS_IF([test "x$with_lua" = "xno"],
-        AC_MSG_ERROR([Lua backend needs lua, run ./configure --with-lua])
+        [AC_MSG_ERROR([Lua backend needs lua, run ./configure --with-lua])]
       )
       AS_IF([test "x$LUAPC" = "x"],
-        AC_MSG_ERROR([Lua backend needs lua but we cannot find it])
+        [AC_MSG_ERROR([Lua backend needs lua but we cannot find it])]
       )
       ;;
   esac