shithub: opus-tools

Download patch

ref: c6f10472878c229161b88319780967c1ca6b168f
parent: 33d691604360125556ec6bdd23ccfd8559c79900
author: Mark Harris <[email protected]>
date: Sat Mar 17 07:37:15 EDT 2018

configure: Check for opusfile before opusurl

Checking for opusfile first will offer a more helpful message if it is
not installed, since the package that is needed is likely opusfile.

--- a/configure.ac
+++ b/configure.ac
@@ -147,7 +147,12 @@
 
 dnl check for opusfile (specifically, we need libopusurl)
 AS_IF([test "$HAVE_PKG_CONFIG" = "yes"],
- [PKG_CHECK_MODULES([OPUSURL],[opusurl >= 0.5])],
+ [
+  dnl checking for opusfile first will offer a more helpful message if it is
+  dnl not installed, since the package that is needed is likely opusfile
+  PKG_CHECK_MODULES([OPUSFILE],[opusfile >= 0.5])
+  PKG_CHECK_MODULES([OPUSURL],[opusurl >= 0.5])
+ ],
  [
   dnl fall back to the old school test
   XIPH_PATH_OPUSFILE(, AC_MSG_ERROR([