Skip to content
Snippets Groups Projects

configure: luac: autodetect host if not provided

Open Khalid Masum requested to merge Labnann/vlc:luac-notfound-fix into master
+ 6
2
@@ -592,8 +592,12 @@ AS_IF([test -n "${CONTRIB_DIR}"], [
AS_IF([test -z "$LUAC"], [
AC_MSG_CHECKING([if contribs provide luac])
AS_IF([test -x "${CONTRIB_DIR}/../bin/${host_alias}-luac${BUILDEXEEXT}"], [
LUAC="${CONTRIB_DIR}/../bin/${host_alias}-luac${BUILDEXEEXT}"
LUAC_HOST=${host_alias}
AS_IF([test -z "$LUAC_HOST"], [
LUAC_HOST="`$CC -dumpmachine`"
])
AS_IF([test -x "${CONTRIB_DIR}/../bin/${LUAC_HOST}-luac${BUILDEXEEXT}"], [
LUAC="${CONTRIB_DIR}/../bin/${LUAC_HOST}-luac${BUILDEXEEXT}"
AC_MSG_RESULT([yes])
],[
AC_MSG_RESULT([no])
Loading