source: trunk/dports/databases/couchdb/files/patch-configure.diff @ 142028

Last change on this file since 142028 was 142028, checked in by ciserlohn@…, 4 years ago

couchdb: patch configure script to work with erlang 18.x (closes #49536)

File size: 1.8 KB
  • configure

    old new  
    1853218532
    1853318533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Erlang version compatibility" >&5
    1853418534$as_echo_n "checking Erlang version compatibility... " >&6; }
    18535 erlang_version_error="The installed Erlang version must be >= R14B (erts-5.8.1) and =< 17 (erts-6.0)"
     18535erlang_version_error="The installed Erlang version must be >= R14B (erts-5.8.1) and =< 18 (erts-7.0)"
    1853618536
    1853718537version="`${ERL} -version 2>&1 | ${SED} 's/[^0-9]/ /g'` 0 0 0"
    1853818538major_version=`echo $version | ${AWK} "{print \\$1}"`
     
    1854018540patch_version=`echo $version | ${AWK} "{print \\$3}"`
    1854118541echo -n "detected Erlang version: $major_version.$minor_version.$patch_version..."
    1854218542
    18543 if test $major_version -lt 5 -o $major_version -gt 6; then
     18543if test $major_version -lt 5 -o $major_version -gt 7; then
    1854418544    as_fn_error $? "$erlang_version_error major_version does not match" "$LINENO" 5
    1854518545fi
    1854618546
     
    1855118551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: compatible" >&5
    1855218552$as_echo "compatible" >&6; }
    1855318553
    18554 # returns 17 for erts-6.0, and R14B03 or similar for earlier releases
     18554# returns 17/18 for erts-6.0/7.0, and R14B03 or similar for earlier releases
    1855518555otp_release="`\
    1855618556    ${ERL} -noshell \
    1855718557    -eval 'io:put_chars(erlang:system_info(otp_release)).' \
     
    1855918559
    1856018560
    1856118561
    18562  if can_use_nifs=$(echo $otp_release | grep -E "^(R14B|R15|R16|17)"); then
     18562 if can_use_nifs=$(echo $otp_release | grep -E "^(R14B|R15|R16|17|18)"); then
    1856318563  USE_OTP_NIFS_TRUE=
    1856418564  USE_OTP_NIFS_FALSE='#'
    1856518565else
     
    1856718567  USE_OTP_NIFS_FALSE=
    1856818568fi
    1856918569
    18570  if can_use_ejson=$(echo $otp_release | grep -E "^(R14B03|R15|R16|17)"); then
     18570 if can_use_ejson=$(echo $otp_release | grep -E "^(R14B03|R15|R16|17|18)"); then
    1857118571  USE_EJSON_COMPARE_NIF_TRUE=
    1857218572  USE_EJSON_COMPARE_NIF_FALSE='#'
    1857318573else
Note: See TracBrowser for help on using the repository browser.