@@ -3294,7 +3294,15 @@ printf "%s\n" "found" >&6; }
32943294 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : WARNING: OpenMP unavailable and turned off." >&5
32953295printf " %s\n" " $as_me : WARNING: OpenMP unavailable and turned off." >&2 ; }
32963296 can_use_openmp=" no"
3297+ else
3298+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: not found" >&5
3299+ printf " %s\n" " not found" >&6 ; }
3300+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : WARNING: Case of not 'apple_compiler'" >&5
3301+ printf " %s\n" " $as_me : WARNING: Case of not 'apple_compiler'" >&2 ; }
32973302 fi
3303+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : WARNING: Compiler is'" >&5
3304+ printf " %s\n" " $as_me : WARNING: Compiler is'" >&2 ; }
3305+ $( ${CXX} --version)
32983306else
32993307 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: not found" >&5
33003308printf " %s\n" " not found" >&6 ; }
@@ -3303,9 +3311,15 @@ fi
33033311if test x" ${can_use_openmp} " = x" yes" ; then
33043312 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking for OpenMP" >&5
33053313printf %s " checking for OpenMP... " >&6 ; }
3306- # # if R has -fopenmp we should be good
3307- allldflags=$( ${R_HOME} /bin/R CMD config --ldflags)
3308- hasOpenMP=$( echo ${allldflags} | grep -- -fopenmp)
3314+ if test x" ${RSysinfoName} " = x" Darwin" ; then
3315+ # # if R has ~/.R/Makevars set we might good on macOS
3316+ allldflags=$( ${R_HOME} /bin/R CMD config --ldflags)
3317+ hasOpenMP=$( echo ${allldflags} | grep -- -fopenmp)
3318+ else
3319+ # # if R has -fopenmp we should be good (non macOS)
3320+ allldflags=$( ${R_HOME} /bin/R CMD config --ldflags)
3321+ hasOpenMP=$( echo ${allldflags} | grep -- -lomp)
3322+ fi
33093323 if test x" ${hasOpenMP} " = x" " ; then
33103324 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: missing" >&5
33113325printf " %s\n" " missing" >&6 ; }
0 commit comments