cedric pushed a commit to branch efl-1.8.

http://git.enlightenment.org/core/efl.git/commit/?id=1fa0821e4f9f61c8172eb047596a2b2bc5dd2b50

commit 1fa0821e4f9f61c8172eb047596a2b2bc5dd2b50
Author: Cedric Bail <cedric.b...@samsung.com>
Date:   Mon Dec 9 21:35:56 2013 +0900

    autotools: work around buggy macro to force C++ compiler detection.
---
 configure.ac | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index ef6c80d..8d3a383 100644
--- a/configure.ac
+++ b/configure.ac
@@ -283,7 +283,11 @@ AM_PROG_CC_C_O
 if test "x${ac_cv_prog_cc_c99}" = "xno" ; then
    AC_MSG_ERROR([efl requires a c99-capable compiler])
 fi
-if test "x${CXX}" = "x"; then
+# We should be using ${CXX} here, but there is a bug in
+# autotools macro and CXX is always set to g++ even if
+# it's not found. So we are using an internal variable
+# that does the work for now, may get broken in the future.
+if test "x${ac_ct_CXX}" = "x"; then
    AC_MSG_ERROR([efl requires a C++ compiler])
 fi
 

-- 


Reply via email to