Fix setting autoconf flags for using nifs

Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/37af7619
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/37af7619
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/37af7619

Branch: refs/heads/1.6.x
Commit: 37af7619c745438984367bf7c0f561ead82821a1
Parents: ce2a9fc
Author: Alexander Shorin <[email protected]>
Authored: Fri May 2 02:23:17 2014 +0400
Committer: Alexander Shorin <[email protected]>
Committed: Mon May 5 20:22:04 2014 +0400

----------------------------------------------------------------------
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/37af7619/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index b1c005d..103f029 100644
--- a/configure.ac
+++ b/configure.ac
@@ -438,9 +438,9 @@ otp_release="`\
 AC_SUBST(otp_release)
 
 AM_CONDITIONAL([USE_OTP_NIFS],
-    [test x$otp_release \> xR14B])
+    [can_use_nifs=$(echo $otp_release | grep -E "^(R14B|R15|R16|17)")])
 AM_CONDITIONAL([USE_EJSON_COMPARE_NIF],
-    [test x$otp_release \> xR14B03])
+    [can_use_ejson=$(echo $otp_release | grep -E "^(R14B03|R15|R16|17)")])
 
 has_crypto=`\
     ${ERL} -eval "\

Reply via email to