[vlmc-devel] configure.ac: Add support for contribs
Hugo Beauzée-Luyssen
git at videolan.org
Tue Aug 2 01:00:31 CEST 2016
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Jul 21 10:20:22 2016 +0200| [a0a0ee399e586c4dbad19bd1d84371b7855194df] | committer: Hugo Beauzée-Luyssen
configure.ac: Add support for contribs
> https://code.videolan.org/videolan/vlmc/commit/a0a0ee399e586c4dbad19bd1d84371b7855194df
---
configure.ac | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/configure.ac b/configure.ac
index 9e57b59..2fcda34 100644
--- a/configure.ac
+++ b/configure.ac
@@ -214,6 +214,31 @@ AS_IF([test "$SYS" = linux],[
])
AM_CONDITIONAL(HAVE_ANDROID, test "${HAVE_ANDROID}" = "1")
+AC_MSG_CHECKING([for 3rd party libraries path])
+AS_IF([test -z "${with_contrib}" || test "${with_contrib}" = "yes"], [
+ CONTRIB_DIR="${srcdir}/contribs/${host}"
+ AS_IF([test ! -d "${CONTRIB_DIR}"], [
+ echo "${CONTRIB_DIR} not found" >&AS_MESSAGE_LOG_FD
+ CONTRIB_DIR="${srcdir}/contribs/`$CXX -dumpmachine`"
+ AS_IF([test ! -d "${CONTRIB_DIR}"], [
+ echo "${CONTRIB_DIR} not found" >&AS_MESSAGE_LOG_FD
+ ])
+ ])
+])
+
+AS_IF([test -n "${CONTRIB_DIR}"], [
+ AS_IF([test -d "${CONTRIB_DIR}/lib"],[
+ CONTRIB_DIR=`cd "${CONTRIB_DIR}" && pwd`
+ AC_MSG_RESULT(["${CONTRIB_DIR}"])
+ export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${CONTRIB_DIR}/lib/pkgconfig"
+ ], [
+ echo "${CONTRIB_DIR}/lib not found" >&AS_MESSAGE_LOG_FD
+ CONTRIB_DIR=""
+ AC_MSG_RESULT([not usable])
+ ])
+])
+
+
AC_ARG_ENABLE(gui, AC_HELP_STRING([--disable-gui],[Disable VLMC GUI]))
AM_CONDITIONAL(HAVE_GUI, [test "${enable_gui}" != "no"])
AS_IF([test "${enable_gui}" != "no"],[
More information about the Vlmc-devel
mailing list