set WINEGCC only when cross compiling

Change-Id: I598490aa71b658844d912008c0cf14e225bda0db
This commit is contained in:
David Ostrovsky
2012-07-26 19:36:35 +02:00
committed by Michael Stahl
parent b391778d81
commit e7dec2887e

View File

@@ -6106,8 +6106,8 @@ AC_SUBST(BUILD_EPM)
dnl ===================================================================
dnl We need winegcc when building MinGW build to be able to cross-build msi tools
dnl ===================================================================
AC_PATH_PROG(WINEGCC, winegcc)
if test "$WITH_MINGW" = "yes" -a "$PKGFORMAT" = "msi" ; then
AC_PATH_PROG(WINEGCC, winegcc)
if test "$WINEGCC" = ""; then
AC_MSG_ERROR([winegcc was not found, please install wine-devel, or wine-devel-32bit])
fi
@@ -6122,6 +6122,7 @@ printf ("hello world\n");
)
CC="$CC_save"
fi
AC_SUBST(WINEGCC)
dnl ===================================================================
dnl Check for gperf