From: Sebastien Boisvert Date: Tue, 21 Jun 2016 01:11:00 +0000 (-0400) Subject: configure.ac: check cmake availability X-Git-Tag: v2.9.0-rc1~61 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=acb9c126d4251e4f80f2d421f0874c815fce72db;p=lttng-ust.git configure.ac: check cmake availability In the configure.ac file, detect if a cmake executable is available. Two new variables are now available in any Makefile.am file: HAVE_CXX (which tells if a C++ compiler is available) and HAVE_CMAKE (which indicates whether a cmake executable is available). Acked-by: Philippe Proulx Acked-by: Sebastien Boisvert Signed-off-by: Sebastien Boisvert Signed-off-by: Mathieu Desnoyers --- diff --git a/configure.ac b/configure.ac index de462ffc..105b46ff 100644 --- a/configure.ac +++ b/configure.ac @@ -79,6 +79,9 @@ AM_CONDITIONAL([NO_SHARED], [test "x$enable_shared" = "xno"]) # Checks for programs. AC_PROG_CC AC_PROG_CXX +AM_CONDITIONAL([HAVE_CXX], [test "x$CXX" != "x"]) +AC_CHECK_PROG([HAVE_CMAKE], [cmake], ["yes"]) +AM_CONDITIONAL([HAVE_CMAKE], [test "x$HAVE_CMAKE" = "xyes"]) AC_PROG_MAKE_SET LT_INIT