couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [12/50] git commit: updated refs/heads/route-events to c33e390
Date Thu, 09 May 2013 14:01:09 GMT
COUCHDB-1699: configure: C++ compiler detection improvement

- amended patch to resolve detection failures on Windows, OSX, and gentoo


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/ee2c5d34
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/ee2c5d34
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/ee2c5d34

Branch: refs/heads/route-events
Commit: ee2c5d34dc64f5a176142304cbbc87cbe6e9462b
Parents: 08644bf
Author: Ben Reser <ben@reser.org>
Authored: Tue Mar 19 21:19:05 2013 +0100
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Thu May 9 09:59:54 2013 +0200

----------------------------------------------------------------------
 configure.ac |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/ee2c5d34/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 9042528..91e2d3d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,14 +44,9 @@ m4_define([snappy_minor], [0])
 m4_define([snappy_patchlevel], [3])
 
 AC_PROG_CXX
-AC_MSG_CHECKING([that we found a C++ compiler])
-if test -n "$ac_ct_CXX" ; then
-    AC_MSG_RESULT([yes])
-else
-    AC_MSG_RESULT([no])
-    AC_MSG_ERROR([A C++ compiler is required.])
-fi
 AC_LANG([C++])
+AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],,
+    AC_MSG_ERROR([A C++ compiler is required.]))
 AC_C_BIGENDIAN
 AC_CHECK_HEADERS([stdint.h stddef.h sys/mman.h sys/resource.h])
 AC_CHECK_FUNC([mmap])


Mime
View raw message