Changeset: 92bc2ff99a7b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=92bc2ff99a7b
Modified Files:
        configure.ag
Branch: Jan2014
Log Message:

refrain from from using atomic_ops with icc:

Even with libatomic_ops available, compilation with
atomic_ops enabled fails with Intel's icc (version 11.1).


diffs (27 lines):

diff --git a/configure.ag b/configure.ag
--- a/configure.ag
+++ b/configure.ag
@@ -2388,9 +2388,20 @@ AM_CONDITIONAL(HAVE_CFITSIO, test x"$hav
 PKG_CHECK_MODULES([atomic_ops], [atomic_ops], [have_atomic_ops="yes"],
        [have_atomic_ops="no"; why_have_atomic_ops="(atomic_ops library not 
found)"])
 if test x"$have_atomic_ops" = x"yes" ; then
-       AC_DEFINE(HAVE_LIBATOMIC_OPS, 1, [Define if you have the libatomic_ops 
library])
-       CFLAGS="$CFLAGS $atomic_ops_CFLAGS"
-       LIBS="$LIBS $atomic_ops_LIBS"
+       case $GCC-$CC in
+       -*icc*)
+               # Even with libatomic_ops available, compilation with
+               # atomic_ops enabled fails with Intel's icc (version 11.1);
+               # hence, we refrain from from using atomic_ops with icc.
+               have_atomic_ops="no"
+               why_have_atomic_ops="(atomic_ops do not compile with Intel's 
icc)"
+               ;;
+       *)
+               AC_DEFINE(HAVE_LIBATOMIC_OPS, 1, [Define if you have the 
libatomic_ops library])
+               CFLAGS="$CFLAGS $atomic_ops_CFLAGS"
+               LIBS="$LIBS $atomic_ops_LIBS"
+               ;;
+       esac
 fi
 
 dnl Check for gsl library for statistical functions
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to