File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,15 @@ AC_DEFUN([OPAL_CHECK_KNEM],[
3131
3232 opal_check_knem_CPPFLAGS_save=" ${CPPFLAGS} "
3333
34- AS_IF([test -n " ${with_knem} " -a " ${with_knem} " != " yes " -a " ${with_knem} " ! = " no" ],
35- [$1 _CPPFLAGS = " -I ${with_knem} /include "
36- CPPFLAGS = " $CPPFLAGS ${ $1 _CPPFLAGS} " ])
34+ AS_IF([test -n " ${with_knem} " -a " ${with_knem} " = " no" ],
35+ [opal_check_knem_happy = " no " ],
36+ [opal_check_knem_happy = " yes " ])
3737
38- AC_CHECK_HEADER([knem_io.h], [opal_check_knem_happy= " yes" ], [opal_check_knem_happy= " no" ])
38+ AS_IF([test " ${opal_check_knem_happy} " = " yes" ],
39+ [AS_IF([test -a " ${with_knem} " != " yes" ],
40+ [$1 _CPPFLAGS= " -I${with_knem} /include"
41+ CPPFLAGS= " $CPPFLAGS ${$1 _CPPFLAGS} " ])
42+ AC_CHECK_HEADER([knem_io.h], [opal_check_knem_happy= " yes" ], [opal_check_knem_happy= " no" ])])
3943
4044 # need at least version 0x0000000b
4145 AS_IF([test " $opal_check_knem_happy " = " yes" ],
You can’t perform that action at this time.
0 commit comments