configure: C++ compiler detection improvement
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/6f730462 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/6f730462 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/6f730462 Branch: refs/heads/1.3.x Commit: 6f73046267f819671f6b938bde873bc9eb137e6f Parents: 81a36ca Author: Ben Reser <[email protected]> Authored: Wed Mar 13 08:58:34 2013 +0100 Committer: Dave Cottlehuber <[email protected]> Committed: Thu Mar 14 22:55:22 2013 +0100 ---------------------------------------------------------------------- configure.ac | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/6f730462/configure.ac ---------------------------------------------------------------------- diff --git a/configure.ac b/configure.ac index 5246830..019d1a0 100644 --- a/configure.ac +++ b/configure.ac @@ -44,6 +44,13 @@ 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_C_BIGENDIAN AC_CHECK_HEADERS([stdint.h stddef.h sys/mman.h sys/resource.h])
