Bug 638395 — folks-inspect prevents default Vala-free builds
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Fri, 31 Dec 2010 14:23:31 +0000 (14:23 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Fri, 31 Dec 2010 14:23:31 +0000 (14:23 +0000)
Add notices and errors to the configure script to notify the user of why
the inspect tool is not being built. Closes: bgo#638395

configure.ac

index a5c2cc6..28becb7 100644 (file)
@@ -199,6 +199,12 @@ AC_ARG_ENABLE([inspect-tool],
                              [Enable building the data inspection tool]),
               [enable_inspect_tool=$enableval with_inspect_tool=$enableval],
               [enable_inspect_tool=maybe with_inspect_tool=no])
+AS_IF([test "$enable_inspect_tool" = "yes" -a "$enable_vala" != "yes"],
+      [AC_MSG_ERROR([Inspect tool explicitly enabled, but Vala wasn't enabled \
+                     using --enable-vala])])
+AS_IF([test "$enable_inspect_tool" = "maybe" -a "$enable_vala" != "yes"],
+      [AC_MSG_NOTICE([Inspect tool disabled, as Vala wasn't enabled using \
+                      --enable-vala])])
 AS_IF([test "$enable_inspect_tool" != "no" -a "x$enable_vala" = "xyes"],
       [AC_CHECK_LIB([readline], [main],
                     [with_inspect_tool=yes], [with_inspect_tool=no],