[vlc-commits] mingw32: Look for contribs in /usr/win32 or /usr/win64

Rafaël Carré git at videolan.org
Sun Nov 20 23:43:21 CET 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Nov 20 17:42:53 2011 -0500| [ec76c41b3dce28ba672b8aaab8b6a1e1616b408b] | committer: Rafaël Carré

mingw32: Look for contribs in /usr/win32 or /usr/win64

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec76c41b3dce28ba672b8aaab8b6a1e1616b408b
---

 configure.ac |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3984a3d..2035166 100644
--- a/configure.ac
+++ b/configure.ac
@@ -338,8 +338,21 @@ AS_IF([test -z "${with_contrib}" || test "${with_contrib}" = "yes"], [
         CONTRIB_DIR="${srcdir}/extras/contrib/hosts/`$CC -dumpmachine`"
         AS_IF([test ! -d "${CONTRIB_DIR}"], [
           echo "${CONTRIB_DIR} not found" >&AS_MESSAGE_LOG_FD
-          CONTRIB_DIR=""
-          AC_MSG_RESULT([not found])
+          AS_IF([test "${SYS}" = "mingw32"], [
+            if test "${HAVE_WIN64}" = "1"
+            then
+              CONTRIB_DIR="/usr/win64"
+            else
+              CONTRIB_DIR="/usr/win32"
+            fi
+            AS_IF([test ! -d "${CONTRIB_DIR}"], [
+              echo "${CONTRIB_DIR} not found" >&AS_MESSAGE_LOG_FD
+              CONTRIB_DIR=""
+              AC_MSG_RESULT([not found])
+            ])], [
+            CONTRIB_DIR=""
+            AC_MSG_RESULT([not found])
+          ])
         ])
       ])
     ])
@@ -352,6 +365,7 @@ AS_IF([test -z "${with_contrib}" || test "${with_contrib}" = "yes"], [
     AC_MSG_RESULT([disabled])
   ])
 ])
+
 AS_IF([test -n "${CONTRIB_DIR}"], [
   AS_IF([test -d "${CONTRIB_DIR}/lib"],[
     CONTRIB_DIR=`cd "${CONTRIB_DIR}" && pwd`
@@ -362,6 +376,7 @@ AS_IF([test -n "${CONTRIB_DIR}"], [
   ])
 
 ])
+
 AS_IF([test -n "${CONTRIB_DIR}"], [
   AC_MSG_RESULT([${CONTRIB_DIR}])
   export PATH=${CONTRIB_DIR}/bin:$PATH



More information about the vlc-commits mailing list