From: kramm Date: Sun, 1 Feb 2004 17:18:38 +0000 (+0000) Subject: added Gentoo MingW support. X-Git-Tag: release-0-5-0~70 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=0f52bdfad8816e85fd4d12eb6b76f00aecddf315;p=swftools.git added Gentoo MingW support. --- diff --git a/m4/mingw.m4 b/m4/mingw.m4 index f80c4d2..6235296 100644 --- a/m4/mingw.m4 +++ b/m4/mingw.m4 @@ -12,14 +12,24 @@ case $host_os in esac AR=ar -if test "x$CXX" == "xi586-mingw32msvc-g++"; then -#fix for the debian distribution of mingw +if test "x$MINGW" == "xyes"; then + #fix for the debian distribution of mingw if test -x "/usr/i586-mingw32msvc/bin/ar";then AR="/usr/i586-mingw32msvc/bin/ar" fi if test -x "/usr/i586-mingw32msvc/bin/ranlib";then RANLIB="/usr/i586-mingw32msvc/bin/ranlib" fi + #fix for the gentoo distribution of mingw + if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then + AR="/opt/xmingw/bin/i386-mingw32msvc-ar" + fi + if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then + RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib" + fi + if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then + STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip" + fi fi AC_SUBST(AR)