This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch pr-4380-spidermonkey-check
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 913c8d7ad5701e4c175b80c3fcd43f889b195c75
Author: Gabor Pali <[email protected]>
AuthorDate: Tue Jan 17 15:59:38 2023 +0100

    Reflect connection between configure and rebar.config in comments
---
 configure                     | 1 +
 src/couch/rebar.config.script | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/configure b/configure
index 1db8d9c23..4315fe8e8 100755
--- a/configure
+++ b/configure
@@ -245,6 +245,7 @@ then
             ;;
         esac
 
+    # This list is taken from src/couch/rebar.config.script, please keep them 
in sync.
     if [ ! -d "/usr/include/${SM_HEADERS}" ] && \
         [ ! -d "/usr/local/include/${SM_HEADERS}" ] && \
         [ ! -d "/opt/homebrew/include/${SM_HEADERS}" ]
diff --git a/src/couch/rebar.config.script b/src/couch/rebar.config.script
index 2769de841..f1682f6b7 100644
--- a/src/couch/rebar.config.script
+++ b/src/couch/rebar.config.script
@@ -114,6 +114,9 @@ ProperConfig = case code:lib_dir(proper) of
     _ -> [{d, 'WITH_PROPER'}]
 end.
 
+% The include directories (parameters for the `-I` C compiler flag) are
+% considered in the `configure` script as a pre-check for their existence.
+% Please keep them in sync.
 {JS_CFLAGS, JS_LDFLAGS} = case os:type() of
     {win32, _} when SMVsn == "1.8.5" ->
         {

Reply via email to