From fa6a7045f7c1d32078580eff58be0cbd28ca1060 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Mon, 14 Mar 2016 11:42:16 +0900 Subject: [PATCH] configury: UCX uses CPPFLAGS (instead of CFLAGS) (back-ported from commit open-mpi/ompi@a93b849f13b12a7b1c1cdde71a9e491ddc220e17) --- config/ompi_check_ucx.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/ompi_check_ucx.m4 b/config/ompi_check_ucx.m4 index 86db9de3a7..5214395741 100644 --- a/config/ompi_check_ucx.m4 +++ b/config/ompi_check_ucx.m4 @@ -1,7 +1,7 @@ # -*- shell-script -*- # # Copyright (C) 2015 Mellanox Technologies Ltd. ALL RIGHTS RESERVED. -# Copyright (c) 2015 Research Organization for Information Science +# Copyright (c) 2015-2016 Research Organization for Information Science # and Technology (RIST). All rights reserved. # $COPYRIGHT$ # @@ -59,8 +59,8 @@ AC_DEFUN([OMPI_CHECK_UCX],[ AC_MSG_CHECKING(for UCX version compatibility) AC_REQUIRE_CPP - old_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -I$ompi_check_ucx_dir/include" + old_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include ]], [[ @@ -69,7 +69,7 @@ AC_DEFUN([OMPI_CHECK_UCX],[ [ompi_ucx_version_ok="no"]) AC_MSG_RESULT([$ompi_ucx_version_ok]) - CFLAGS=$old_CFLAGS + CPPFLAGS=$old_CPPFLAGS AS_IF([test "$ompi_ucx_version_ok" = "no"], [ompi_check_ucx_happy="no"])