./bootstrap.sh && \
LDFLAGS="-L/usr/lib32 -L/usr/local/lib32 -m32" \
  CXXFLAGS="-m32" \
  CPPFLAGS="-DCRYPTOKI_LOG\(X\)='std::clog<<X<<"'"@"'"<<__PRETTY_FUNCTION__<<std::endl'" \
  ./configure \
  --libdir=/usr/local/lib32 \
  --build=x86_64 \
  --host=i386 && \
make && \
sudo make install && \
make clean && \
LDFLAGS="-L/opt/local/i586-mingw32msvc/lib" \
  CPPFLAGS="-I/opt/local/i586-mingw32msvc/include" \
  ./configure \
  --prefix=/opt/local/i586-mingw32msvc \
  --build=x86_64 \
  --host=i586-mingw32msvc && \
make && \
sudo make install && \
make clean && \
./configure && \
make check && \
sudo make install