- cd inplace/mingw
- tar -zxf ../../ghc-tarballs/mingw/binutils*.tar.gz
- tar -zxf ../../ghc-tarballs/mingw/gcc-core*.tar.gz
- tar -jxf ../../ghc-tarballs/mingw/libcrypt*.tar.bz2
- tar -zxf ../../ghc-tarballs/mingw/mingw-runtime*.tar.gz
- tar -jxf ../../ghc-tarballs/mingw/perl*.tar.bz2
- tar -zxf ../../ghc-tarballs/mingw/w32api*.tar.gz
- mv bin/gcc.exe bin/realgcc.exe
- cd ../..
- inplace/mingw/bin/realgcc.exe driver/gcc/gcc.c driver/utils/getLocation.c -Idriver/utils -o inplace/mingw/bin/gcc.exe
+ (
+ cd inplace/mingw &&
+ tar --lzma -xf ../../ghc-tarballs/mingw/binutils*.tar.lzma &&
+ tar --lzma -xf ../../ghc-tarballs/mingw/gcc-core*.tar.lzma &&
+ tar --lzma -xf ../../ghc-tarballs/mingw/gcc-c++*.tar.lzma &&
+ tar --lzma -xf ../../ghc-tarballs/mingw/libgcc*.tar.lzma &&
+ tar --lzma -xf ../../ghc-tarballs/mingw/libgmp*.tar.lzma &&
+ tar --lzma -xf ../../ghc-tarballs/mingw/libmpc*.tar.lzma &&
+ tar --lzma -xf ../../ghc-tarballs/mingw/libmpfr*.tar.lzma &&
+ tar --lzma -xf ../../ghc-tarballs/mingw/libstdc*.tar.lzma &&
+ tar -z -xf ../../ghc-tarballs/mingw/mingwrt*-dev.tar.gz &&
+ tar -z -xf ../../ghc-tarballs/mingw/mingwrt*-dll.tar.gz &&
+ tar --lzma -xf ../../ghc-tarballs/mingw/w32api*.tar.lzma &&
+ mv bin/gcc.exe bin/realgcc.exe
+ )
+ PATH=`pwd`/inplace/mingw/bin:$PATH inplace/mingw/bin/realgcc.exe driver/gcc/gcc.c driver/utils/cwrapper.c driver/utils/getLocation.c -Idriver/utils -o inplace/mingw/bin/gcc.exe
+ if ! test -e inplace/mingw/bin/gcc.exe
+ then
+ AC_MSG_ERROR([GHC is required unless bootstrapping from .hc files.])
+ fi