blob: ab32f6b50fbad36e80f64c7c2730661911566160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
$NetBSD: patch-configure,v 1.2 2019/07/31 18:39:24 brook Exp $
Portability fix.
--- configure.orig 2019-07-15 02:31:39.000000000 +0000
+++ configure
@@ -2732,7 +2732,7 @@ fi
$as_echo_n "checking for macOS... " >&6; }
RSysinfoName=$("${R_HOME}/bin/Rscript" --vanilla -e 'cat(Sys.info()["sysname"])')
-if test x"${RSysinfoName}" == x"Darwin"; then
+if test x"${RSysinfoName}" = x"Darwin"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS Apple compiler" >&5
@@ -2740,7 +2740,7 @@ $as_echo_n "checking for macOS Apple com
apple_compiler=$($CXX --version 2>&1 | grep -i -c -e 'apple llvm')
- if test x"${apple_compiler}" == x"1"; then
+ if test x"${apple_compiler}" = x"1"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMP unavailable and turned off." >&5
@@ -2753,7 +2753,7 @@ $as_echo "not found" >&6; }
$as_echo_n "checking for clang compiler... " >&6; }
clang_compiler=$($CXX --version 2>&1 | grep -i -c -e 'clang ')
- if test x"${clang_compiler}" == x"1"; then
+ if test x"${clang_compiler}" = x"1"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP compatible version of clang" >&5
@@ -2795,7 +2795,7 @@ hasRlapack=$(echo ${lapack} | grep lRlap
## while this may seem a little unusual we do it to fully reproduce the
## previous bash-based implementation
-if test x"${hasRlapack}" == x""; then
+if test x"${hasRlapack}" = x""; then
## We are using a full Lapack and can use zgbsv -- so #undef remains
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: system LAPACK found" >&5
$as_echo "system LAPACK found" >&6; }
@@ -2815,13 +2815,13 @@ openmp_flag=""
## Set the fallback, by default it is nope
arma_have_openmp="#define ARMA_DONT_USE_OPENMP 1"
-if test x"${can_use_openmp}" == x"yes"; then
+if test x"${can_use_openmp}" = x"yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
$as_echo_n "checking for OpenMP... " >&6; }
## if R has -fopenmp we should be good
allldflags=$(${R_HOME}/bin/R CMD config --ldflags)
hasOpenMP=$(echo ${allldflags} | grep -- -fopenmp)
- if test x"${hasOpenMP}" == x""; then
+ if test x"${hasOpenMP}" = x""; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
$as_echo "missing" >&6; }
arma_have_openmp="#define ARMA_DONT_USE_OPENMP 1"
|