configure.ac: check cmake availability
authorSebastien Boisvert <sboisvert@gydle.com>
Tue, 21 Jun 2016 01:11:00 +0000 (21:11 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 27 Jun 2016 16:43:08 +0000 (12:43 -0400)
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 <eeppeliteloop@gmail.com>
Acked-by: Sebastien Boisvert <sboisvert@gydle.com>
Signed-off-by: Sebastien Boisvert <sboisvert@gydle.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac

index de462ffcc67f329a89752737d2fde0934d2fc012..105b46ff97831a549aa8304bd78a260701fe223f 100644 (file)
@@ -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
 
This page took 0.026623 seconds and 4 git commands to generate.