summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2bc4ad7..a28d1fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,4 +43,14 @@ AS_IF([test "VORBIS_LIBDIR" = "x"], [
])
AC_SUBST([VORBIS_LIBDIR])
+PKG_CHECK_MODULES([mpg123], [libmpg123])
+PKG_CHECK_VAR([MPG123_LIBDIR], [libmpg123], [libdir])
+AC_MSG_CHECKING([mpg123 library path])
+AS_IF([test "MPG123_LIBDIR" = "x"], [
+ AC_MSG_FAILURE([Unable to identify mpg123 lib path.])
+], [
+ AC_MSG_RESULT([$MPG123_LIBDIR])
+])
+AC_SUBST([MPG123_LIBDIR])
+
AC_OUTPUT