# Use and distribution licensed under the BSD license. See
# the COPYING file in this directory for full text.
-AC_INIT([libmemcached],[1.0.10],[http://libmemcached.org/])
+AC_INIT([libmemcached],[1.0.11],[http://libmemcached.org/])
AC_CONFIG_AUX_DIR([config])
echo " * System type: $host_vendor-$host_os"
echo " * Host CPU: $host_cpu"
echo " * C Compiler: $CC_VERSION"
+echo " * C Flags: $CFLAGS"
+echo " * C++ Compiler: $CXX"
+echo " * C++ Flags: $CXX_VERSION"
+echo " * CPP Flags: $CPPFLAGS"
echo " * Assertions enabled: $ac_cv_assert"
echo " * Debug enabled: $with_debug"
echo " * Warnings as failure: $ac_cv_warnings_as_errors"
AC_DEFUN([PANDORA_CHECK_C_VERSION],[
- dnl Print version of C compiler
- AC_MSG_CHECKING("C Compiler version--$GCC")
- AS_IF([test "$GCC" = "yes"],[
- CC_VERSION=`$CC --version | sed 1q`
- ],[AS_IF([test "$SUNCC" = "yes"],[
- CC_VERSION=`$CC -V 2>&1 | sed 1q`
- ],[
+ dnl Print version of C compiler
+ AC_MSG_CHECKING("C Compiler version--$GCC")
+ AS_IF([test "$GCC" = "yes"],[
+ CC_VERSION=`$CC --version | sed 1q` ],[
+ test "$SUNCC" = "yes"],[
+ CC_VERSION=`$CC -V 2>&1 | sed 1q` ],[
+ test "$CLANG" = "yes"],[
+ CC_VERSION=`$CC --version 2>&1 | sed 1q` ],[
CC_VERSION=""
+ ])
+ AC_MSG_RESULT("$CC_VERSION")
+ AC_SUBST(CC_VERSION)
])
- ])
- AC_MSG_RESULT("$CC_VERSION")
- AC_SUBST(CC_VERSION)
-])
AC_DEFUN([PANDORA_CHECK_CXX_VERSION], [
- dnl Print version of CXX compiler
- AC_MSG_CHECKING("C++ Compiler version")
- AS_IF([test "$GCC" = "yes"],[
- CXX_VERSION=`$CXX --version | sed 1q`
- ],[AS_IF([test "$SUNCC" = "yes"],[
- CXX_VERSION=`$CXX -V 2>&1 | sed 1q`
- ],[
- CXX_VERSION=""
- ])
+
+ dnl Check C version while at it
+ AC_REQUIRE([PANDORA_CHECK_C_VERSION])
+
+ dnl Print version of CXX compiler
+ AC_MSG_CHECKING("C++ Compiler version")
+ AS_IF([test "$GCC" = "yes"],[
+ CXX_VERSION=`$CXX --version | sed 1q` ],[
+ test "$SUNCC" = "yes"],[
+ CXX_VERSION=`$CXX -V 2>&1 | sed 1q` ],[
+ test "$CLANG" = "yes"],[
+ CXX_VERSION=`$CXX --version 2>&1 | sed 1q` ],[
+ CXX_VERSION=""
+ ])
+ AC_MSG_RESULT("$CXX_VERSION")
+AC_SUBST(CXX_VERSION)
])
- AC_MSG_RESULT("$CXX_VERSION")
- AC_SUBST(CXX_VERSION)
-])