[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b
Török Edvin
edwin at clamav.net
Sun Apr 4 01:27:40 UTC 2010
The following commit has been merged in the debian/unstable branch:
commit bad09d56f84848e68e0062bb5966eaed7406c51c
Author: Török Edvin <edwin at clamav.net>
Date: Tue Mar 30 23:29:27 2010 +0300
Do the atomic builtin tests using the C++ compiler, since only C++ sources need it (bb #1904).
diff --git a/libclamav/c++/llvm/autoconf/configure.ac b/libclamav/c++/llvm/autoconf/configure.ac
index b8ddd50..e199b52 100644
--- a/libclamav/c++/llvm/autoconf/configure.ac
+++ b/libclamav/c++/llvm/autoconf/configure.ac
@@ -1282,6 +1282,7 @@ fi
dnl atomic builtins are required for threading support.
AC_MSG_CHECKING(for GCC atomic builtins)
+AC_LANG_PUSH([C++])
AC_LINK_IFELSE(
AC_LANG_SOURCE(
[[int main() {
@@ -1293,6 +1294,7 @@ AC_LINK_IFELSE(
return 0;
}
]]),
+ AC_LANG_POP([C++])
AC_MSG_RESULT(yes)
AC_DEFINE(LLVM_MULTITHREADED, 1, Build multithreading support into LLVM),
AC_MSG_RESULT(no)
diff --git a/libclamav/c++/llvm/configure b/libclamav/c++/llvm/configure
index 7f61140..18409b5 100755
--- a/libclamav/c++/llvm/configure
+++ b/libclamav/c++/llvm/configure
@@ -12389,6 +12389,12 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5
$as_echo_n "checking for GCC atomic builtins... " >&6; }
+ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int main() {
@@ -12402,6 +12408,12 @@ int main() {
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
--
Debian repository for ClamAV
More information about the Pkg-clamav-commits
mailing list