From f15d5d073e2f08186f6386f95a5b7f840d477398 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 25 Apr 2024 03:51:29 +0200 Subject: [PATCH] configure.ac: When using rebar3, unlock dependencies that are disabled (#4212) --- configure.ac | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/configure.ac b/configure.ac index a128e6878..01afe6dcc 100644 --- a/configure.ac +++ b/configure.ac @@ -333,3 +333,19 @@ AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) AC_OUTPUT + +AS_CASE([$rebar], + [*rebar3], [ + deps="" + AS_IF([test "x$stun" = "xfalse"], [deps="stun,$deps"]) + AS_IF([test "x$sqlite" = "xfalse"], [deps="sqlite3,$deps"]) + AS_IF([test "x$pgsql" = "xfalse"], [deps="p1_pgsql,$deps"]) + AS_IF([test "x$mysql" = "xfalse"], [deps="p1_mysql,$deps"]) + AS_IF([test "x$zlib" = "xfalse"], [deps="ezlib,$deps"]) + AS_IF([test "x$sip" = "xfalse"], [deps="esip,$deps"]) + AS_IF([test "x$redis" = "xfalse"], [deps="eredis,$deps"]) + AS_IF([test "x$pam" = "xfalse"], [deps="epam,$deps"]) + AS_IF([test "x$deps" = "x"], [], + [echo "unlocking disabled rebar3 dependencies: $deps" + $rebar unlock "$deps"]) + ])