Skip to content
Snippets Groups Projects
Commit 315c162b authored by Tristan Matthews's avatar Tristan Matthews
Browse files

configure: simplify BUILD_OPUS/BUILD_ILBC

Existing version works but it is redundant to check twice for
without-{opus, ilbc}

Refs #57865

Change-Id: I72e846c696668b95b117885aeebccc6869796103
parent 4f3d7e86
Branches
Tags
No related merge requests found
...@@ -494,7 +494,7 @@ AS_CASE(["$with_libilbc"], ...@@ -494,7 +494,7 @@ AS_CASE(["$with_libilbc"],
[yes], [PKG_CHECK_MODULES([libilbc], [libilbc], [HAVE_LIBILBC=1])], [yes], [PKG_CHECK_MODULES([libilbc], [libilbc], [HAVE_LIBILBC=1])],
[no], [HAVE_LIBILBC=0], [no], [HAVE_LIBILBC=0],
[PKG_CHECK_MODULES([libilbc], [libilbc], [HAVE_LIBILBC=1], [HAVE_LIBILBC=0])]) [PKG_CHECK_MODULES([libilbc], [libilbc], [HAVE_LIBILBC=1], [HAVE_LIBILBC=0])])
AM_CONDITIONAL([BUILD_ILBC], [test "$with_libilbc" != no -a "$HAVE_LIBILBC" -eq 1]) AM_CONDITIONAL([BUILD_ILBC], [test "$HAVE_LIBILBC" -eq 1])
dnl opus is enabled if it's installed dnl opus is enabled if it's installed
AC_ARG_WITH([opus], AC_ARG_WITH([opus],
...@@ -503,7 +503,7 @@ AS_CASE(["$with_opus"], ...@@ -503,7 +503,7 @@ AS_CASE(["$with_opus"],
[yes], [PKG_CHECK_MODULES([opus], [opus], [HAVE_OPUS=1])], [yes], [PKG_CHECK_MODULES([opus], [opus], [HAVE_OPUS=1])],
[no], [HAVE_OPUS=0], [no], [HAVE_OPUS=0],
[PKG_CHECK_MODULES([opus], [opus], [HAVE_OPUS=1], [HAVE_OPUS=0])]) [PKG_CHECK_MODULES([opus], [opus], [HAVE_OPUS=1], [HAVE_OPUS=0])])
AM_CONDITIONAL([BUILD_OPUS], [test "$with_opus" != no -a "$HAVE_OPUS" -eq 1]) AM_CONDITIONAL([BUILD_OPUS], [test "$HAVE_OPUS" -eq 1])
AC_ARG_WITH([iax], AC_ARG_WITH([iax],
AS_HELP_STRING([--without-iax], [Ignore presence of iax and disable it])) AS_HELP_STRING([--without-iax], [Ignore presence of iax and disable it]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment