summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2017-03-06 10:49:05 -0800
committerMatt Turner <[email protected]>2017-03-07 07:27:45 -0800
commit69063d05612439ff8e60deda5b9847464d5b5873 (patch)
tree49d8b1e1c71f4075d919d58024b1da064c2cb724 /configure.ac
parent86c023f973526adc27c62d261a23e5b53a1f359f (diff)
configure.ac: Ensure libomxil-bellagio exists before invoking pkg-config.
I was already tired of seeing the message Package libomxil-bellagio was not found in the pkg-config search path. Perhaps you should add the directory containing `libomxil-bellagio.pc' to the PKG_CONFIG_PATH environment variable No package 'libomxil-bellagio' found on every configure, but I just got a distro bug reported where the user was confused by this message and thought it indicated a bug. Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index bc85d3ca6af..87cfbaf457e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2195,7 +2195,8 @@ AC_ARG_WITH([omx-libdir],
[AS_HELP_STRING([--with-omx-libdir=DIR],
[directory for the OMX libraries])],
[OMX_LIB_INSTALL_DIR="$withval"],
- [OMX_LIB_INSTALL_DIR=`$PKG_CONFIG --define-variable=libdir=\$libdir --variable=pluginsdir libomxil-bellagio`])
+ [OMX_LIB_INSTALL_DIR=`$PKG_CONFIG --exists libomxil-bellagio && \
+ $PKG_CONFIG --define-variable=libdir=\$libdir --variable=pluginsdir libomxil-bellagio`])
AC_SUBST([OMX_LIB_INSTALL_DIR])
dnl Directory for VA libs