summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny Berndt <ronny@apache.org>2023-03-17 21:52:42 +0100
committerGitHub <noreply@github.com>2023-03-17 21:52:42 +0100
commita25336f917c68b03da826f9ef2a0665e1a842438 (patch)
tree372b38f0267cb517885a653e6e30131924c9ceb2
parentb9762479fa9dd43bfa799ac4eb60f7394aa999ea (diff)
downloadcouchdb-a25336f917c68b03da826f9ef2a0665e1a842438.tar.gz
Migrate configure settings to Windows (#4479)
Migrate the settings `with_proper` and `erlang_md5` to `configure.ps1` to add it to `config.erl`.
-rw-r--r--configure.ps16
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ps1 b/configure.ps1
index 0fe92ed1e..576430e4e 100644
--- a/configure.ps1
+++ b/configure.ps1
@@ -44,6 +44,8 @@ Param(
[switch]$DisableFauxton = $false, # do not build Fauxton
[switch]$DisableDocs = $false, # do not build any documentation or manpages
[switch]$SkipDeps = $false, # do not update erlang dependencies
+ [switch]$DisableProper = $false, # a compilation pragma. proper is a kind of automated test suite
+ [switch]$EnableErlangMD5 = $false, # don't use Erlang for md5 hash operations by default
[ValidateNotNullOrEmpty()]
[string]$CouchDBUser = [Environment]::UserName, # set the username to run as (defaults to current user)
@@ -126,6 +128,8 @@ $LogFile="$LogDir\couch.log"
$BuildFauxton = [int](-not $DisableFauxton)
$BuildDocs = [int](-not $DisableDocs)
$Hostname = [System.Net.Dns]::GetHostEntry([string]"localhost").HostName
+$WithProper = (-not $DisableProper).ToString().ToLower()
+$ErlangMD5 = ($EnableErlangMD5).ToString().ToLower()
Write-Verbose "==> configuring couchdb in rel\couchdb.config"
$CouchDBConfig = @"
@@ -199,6 +203,8 @@ spidermonkey_version = $SpiderMonkeyVersion
$InstallMk | Out-File "$rootdir\install.mk" -encoding ascii
$ConfigERL = @"
+{with_proper, $WithProper}.
+{erlang_md5, $ErlangMD5}.
{spidermonkey_version, "$SpiderMonkeyVersion"}.
"@
$ConfigERL | Out-File "$rootdir\config.erl" -encoding ascii