Skip to content

Commit

Permalink
configure.ac: When using rebar3, unlock dependencies that are disabled (
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Apr 30, 2024
1 parent b461657 commit f15d5d0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions configure.ac
Expand Up @@ -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"])
])

0 comments on commit f15d5d0

Please sign in to comment.