1010# University of Stuttgart. All rights reserved.
1111# Copyright (c) 2004-2005 The Regents of the University of California.
1212# All rights reserved.
13- # Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved.
13+ # Copyright (c) 2009-2019 Cisco Systems, Inc. All rights reserved.
1414# Copyright (c) 2011-2014 Los Alamos National Security, LLC. All rights
1515# reserved.
1616# Copyright (c) 2014-2019 Intel, Inc. All rights reserved.
@@ -36,6 +36,10 @@ AC_DEFUN([OPAL_CHECK_PMIX_LIB],[
3636 OPAL_VAR_SCOPE_PUSH([ opal_external_pmix_save_CPPFLAGS opal_external_pmix_save_LDFLAGS opal_external_pmix_save_LIBS] )
3737 opal_external_pmix_happy=no
3838
39+ opal_external_pmix_save_CPPFLAGS=$CPPFLAGS
40+ opal_external_pmix_save_LDFLAGS=$LDFLAGS
41+ opal_external_pmix_save_LIBS=$LIBS
42+
3943 # Make sure we have the headers and libs in the correct location
4044 AC_MSG_CHECKING ( [ for pmix.h in $1 ] )
4145 files=`ls $1 /pmix.h 2> /dev/null | wc -l`
@@ -91,10 +95,6 @@ AC_DEFUN([OPAL_CHECK_PMIX_LIB],[
9195 AC_MSG_ERROR ( [ Cannot continue] ) ] ) ] ) ] )
9296
9397 # check the version
94- opal_external_pmix_save_CPPFLAGS=$CPPFLAGS
95- opal_external_pmix_save_LDFLAGS=$LDFLAGS
96- opal_external_pmix_save_LIBS=$LIBS
97-
9898 # if the pmix_version.h file does not exist, then
9999 # this must be from a pre-1.1.5 version OMPI does
100100 # NOT support anything older than v1.2.5
0 commit comments