From 2df0ede613b950a64657c76b0d4a0bd206cb927f Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Tue, 19 Aug 2014 05:52:34 +0000 Subject: [PATCH] configury: disable pshmem if buggy compiler is detected PGI compilers older that 2013 have a buggy preprocessor that does not support pragma defined in a macro called itself called from an other macro cmr=v1.8.2:reviewer=jsquyres This commit was SVN r32551. --- config/c_weak_symbols.m4 | 46 ++++++++++++++++++++++++++++++ config/oshmem_configure_options.m4 | 12 ++++++-- 2 files changed, 55 insertions(+), 3 deletions(-) diff --git a/config/c_weak_symbols.m4 b/config/c_weak_symbols.m4 index cdea4e0497..64fa9ad91a 100644 --- a/config/c_weak_symbols.m4 +++ b/config/c_weak_symbols.m4 @@ -10,6 +10,8 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, dnl University of Stuttgart. All rights reserved. dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl All rights reserved. +dnl Copyright (c) 2014 Research Organization for Information Science +dnl and Technology (RIST). All rights reserved. dnl $COPYRIGHT$ dnl dnl Additional copyrights may follow @@ -56,6 +58,50 @@ OPAL_LOG_COMMAND( ]) +# _OPAL_C_MACRO_WEAK_SYMBOLS(action_if_found, [action_if_not_found]) +# ------------------------------------------------------------ +AC_DEFUN([_OPAL_C_MACRO_WEAK_SYMBOLS],[ + # need two files because icc will incorrectly not create the + # symbols if they are not used in the object file in which they + # are defined. Blah! + # To get to compile with icc, have them in a separate header. + cat > conftest_weak.h < conftest_weak.c < conftest.c <