reactos/lib/3rdparty/softx86/autodetect_nasm.sh
Hermès Bélusca-Maïto c8317ea346 Integrate softx86-v0.00.0033 library.
Allow compilation warnings (the downsides are that it generates LOTS of warnings...)

svn path=/branches/ntvdm/; revision=59247
2013-06-16 23:33:04 +00:00

14 lines
442 B
Bash

# /bin/sh
nasm >/dev/null
if [[ "$?" == "0" || "$?" == "1" ]]; then
echo "all: samples_all" >samples/Makefile.nasm
echo "NASM=nasm" >>samples/Makefile.nasm
else
echo "#nothing to do here" >samples/Makefile.nasm
echo "all:" >>samples/Makefile.nasm
echo -n -e "\t" >>samples/Makefile.nasm
echo "echo You do not have NASM... skipping sample build" >>samples/Makefile.nasm
fi