[vlc-commits] configure: detect luac with the exe file extension

Steve Lhomme git at videolan.org
Tue Dec 20 19:57:18 CET 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Fri Dec 16 13:31:31 2016 +0100| [2e420ac4557e5b7a5106130a6ff076fd962a4fc8] | committer: Rémi Denis-Courmont

configure: detect luac with the exe file extension

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 configure.ac | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 83cfb1c..88295d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -341,6 +341,7 @@ dnl for program foo on win32
 case "${build_os}" in
     cygwin|msys|mingw32)
         ac_executable_extensions=".exe"
+        BUILDEXEEXT=".exe"
     ;;
     os2*)
         BUILDEXEEXT=".exe"
@@ -439,13 +440,13 @@ AS_IF([test -n "${CONTRIB_DIR}"], [
 
   AS_IF([test -z "$LUAC"], [
     dnl Old contribs mixed cross-tools and cross-compiled executables
-    AS_IF([test -x "${CONTRIB_DIR}/bin/luac"], [
-      LUAC="${CONTRIB_DIR}/bin/luac"
+    AS_IF([test -x "${CONTRIB_DIR}/bin/luac${BUILDEXEEXT}"], [
+      LUAC="${CONTRIB_DIR}/bin/luac${BUILDEXEEXT}"
     ])
 
     dnl Newer contribs follow usual name space rules
-    AS_IF([test -x "${CONTRIB_DIR}/../bin/${host_alias}-luac"], [
-      LUAC="${CONTRIB_DIR}/../bin/${host_alias}-luac"
+    AS_IF([test -x "${CONTRIB_DIR}/../bin/${host_alias}-luac${BUILDEXEEXT}"], [
+      LUAC="${CONTRIB_DIR}/../bin/${host_alias}-luac${BUILDEXEEXT}"
     ])
   ])
 



More information about the vlc-commits mailing list