Commit b824035f authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

configure: Fallback on hosts/`gcc -dumpmachine` if host doesn't match a set of built contrib.

Should fix your build if your host doesn't strictly match your gcc build machine.
Pointed-out-by: default avatarRafaël Carré <rafael.carre@gmail.com>
parent ba5fc9af
......@@ -126,6 +126,11 @@ AC_ARG_WITH(contrib,
topdir="`pwd`/$topdir"
fi
CONTRIB_DIR=${topdir}/extras/contrib/hosts/${host}
if ! test -d "$CONTRIB_DIR"
then
gccmachine=`$CC -dumpmachine`
CONTRIB_DIR=${topdir}/extras/contrib/hosts/${gccmachine}
fi
fi
AC_MSG_CHECKING([for libs in ${CONTRIB_DIR}])
AS_IF([test -d ${CONTRIB_DIR}/lib],[
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment