From 65ed93af7b623248bae389f656698248fe52bf8f Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Thu, 31 Dec 2009 19:33:06 +0100 Subject: [PATCH] configure: Detect fat contribs. --- configure.ac | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index ea8f366aff..4315d2b4a3 100644 --- a/configure.ac +++ b/configure.ac @@ -125,11 +125,15 @@ AC_ARG_WITH(contrib, if test "`echo \"$topdir\" | cut -c 1`" != "/"; then topdir="`pwd`/$topdir" fi - CONTRIB_DIR=${topdir}/extras/contrib/hosts/${host} + CONTRIB_DIR=${topdir}/extras/contrib/hosts/fat if ! test -d "$CONTRIB_DIR" then - gccmachine=`$CC -dumpmachine` - CONTRIB_DIR=${topdir}/extras/contrib/hosts/${gccmachine} + 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 fi AC_MSG_CHECKING([for libs in ${CONTRIB_DIR}]) -- GitLab