Commit 365ac4c2 authored by Ulrich Klauer's avatar Ulrich Klauer Committed by Timothy B. Terriberry

Handle AC_SEARCH_LIBS special result value.

AC_SEARCH_LIBS will give a result of "none required" if the relevant
 function is available without any special libraries.
This is the case for lrintf on MinGW.
Make sure this special value isn't put verbatim into the pkg-config
 files, as it would cause the linker to search for files named
 "none" and "required", and fail.
Signed-off-by: Timothy B. Terriberry's avatarTimothy B. Terriberry <tterribe@xiph.org>
parent be4a77d2
......@@ -107,7 +107,11 @@ AS_IF([test "x$enable_fixed_point" = "xyes"],
])
]
)
AC_SUBST(ac_cv_search_lrintf)
lrintf_lib="$ac_cv_search_lrintf"
AS_IF([test "x$ac_cv_search_lrintf" = "xnone required"],
[lrintf_lib=""]
)
AC_SUBST(lrintf_lib)
CC_ATTRIBUTE_VISIBILITY([default], [
CC_FLAG_VISIBILITY([CFLAGS="${CFLAGS} -fvisibility=hidden"])
......
......@@ -10,5 +10,5 @@ Description: Opus playback library (not installed)
Version: @VERSION@
Requires: ogg >= 1.3 opus >= 1.0.1 @openssl@
Conflicts:
Libs: ${libdir}/libopusfile.la @ac_cv_search_lrintf@
Libs: ${libdir}/libopusfile.la @lrintf_lib@
Cflags: -I${includedir}
......@@ -11,5 +11,5 @@ Version: @VERSION@
Requires: ogg >= 1.3 opus >= 1.0.1 @openssl@
Conflicts:
Libs: -L${libdir} -lopusfile
Libs.private: @ac_cv_search_lrintf@
Libs.private: @lrintf_lib@
Cflags: -I${includedir}/opus
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment