diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2019-12-02 13:52:08 -0600 |
---|---|---|
committer | jiangph <jiangph@cn.ibm.com> | 2019-12-20 22:44:35 +0800 |
commit | 2336964a33a2d0bc1b599345e4f545a7077e0438 (patch) | |
tree | 050e957f476c873ede7115dd9a8c57fc9661d640 /configure | |
parent | cef0fa04400a8b755592f021d0d461aae1d9bcaf (diff) | |
download | couchdb-2336964a33a2d0bc1b599345e4f545a7077e0438.tar.gz |
Add SpiderMonkey version option to configure
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -30,6 +30,7 @@ ERLANG_MD5="false" SKIP_DEPS=0 COUCHDB_USER="$(whoami 2>/dev/null || echo couchdb)" +SM_VSN="1.8.5" . ${rootdir}/version.mk COUCHDB_VERSION=${vsn_major}.${vsn_minor}.${vsn_patch} @@ -50,6 +51,7 @@ Options: --disable-docs do not build any documentation or manpages --erlang-md5 use erlang for md5 hash operations --dev alias for --with-curl --disable-docs --disable-fauxton + --spidermonkey-version VSN specify the version of SpiderMonkey to use (defaults to $SM_VSN) --skip-deps do not update erlang dependencies --rebar=PATH use rebar by specified path (version >=2.6.0 && <3.0 required) EOF @@ -140,6 +142,24 @@ parse_opts() { printf 'ERROR: "--user" requires a non-empty argument.\n' >&2 exit 1 ;; + + --spidermonkey-version) + if [ -n "$2" ]; then + eval SM_VSN=$2 + shift 2 + continue + else + printf 'ERROR: "--spidermonkey-version" requires a non-empty argument.\n' >&2 + exit 1 + fi + ;; + --spidermonkey-version=?*) + eval SM_VSN=${1#*=} + ;; + --spidermonkey-version=) + printf 'ERROR: "--spidermonkey-version" requires a non-empty argument.\n' >&2 + exit 1 + ;; --) # End of options shift break @@ -180,6 +200,7 @@ cat > rel/couchdb.config << EOF {log_file, "$LOG_FILE"}. {fauxton_root, "./share/www"}. {user, "$COUCHDB_USER"}. +{spidermonkey_version, "$SM_VSN"}. {node_name, "-name couchdb@127.0.0.1"}. {cluster_port, 5984}. {backend_port, 5986}. @@ -206,12 +227,14 @@ with_fauxton = $WITH_FAUXTON with_docs = $WITH_DOCS user = $COUCHDB_USER +spidermonkey_version = $SM_VSN EOF cat > $rootdir/config.erl << EOF {with_curl, $WITH_CURL}. {with_proper, $WITH_PROPER}. {erlang_md5, $ERLANG_MD5}. +{spidermonkey_version, "$SM_VSN"}. EOF install_local_rebar() { |