shithub: opus-tools

Download patch

ref: e0998a3ab94fe1afe427de90c24824e09fb6629a
parent: 70008dd788e42abad023a5f6739b3a977c34e403
author: Mark Harris <mark.hsj@gmail.com>
date: Mon Jan 1 17:59:19 EST 2018

configure: Fix non-pkg-config opus include path

If pkg-config is not used, look for opus.h in <prefix>/include/opus
or (using --with-opus=<opuspath>) <opuspath>/include/opus, not
<prefix>/include or <opuspath>/include.  As before the opus include
directory can still be overridden with --with-opus-includes=<path>,
but this should not be needed if the development package is
installed under <prefix> or the --with-opus directory.

--- a/m4/opus.m4
+++ b/m4/opus.m4
@@ -34,9 +34,9 @@
   elif test "x$opus_prefix" = "xno" || test "x$opus_prefix" = "xyes" ; then
     OPUS_CFLAGS=""
   elif test "x$opus_prefix" != "x" ; then
-    OPUS_CFLAGS="-I$opus_prefix/include"
+    OPUS_CFLAGS="-I$opus_prefix/include/opus"
   elif test "x$prefix" != "xNONE"; then
-    OPUS_CFLAGS="-I$prefix/include"
+    OPUS_CFLAGS="-I$prefix/include/opus"
   fi
 
   AC_MSG_CHECKING(for Opus)