1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#!/bin/sh
# configuration is being done in a script because starting with GCC-3.2
# the compiler flags are changing too much between minor releases to detect
# with Makefile scripts alone. For now it just tells you if you have the
# prerequisite compilers.
ERROR=0
# test for nasm
if [ `uname -m` = i686 ];
then
if [ -x /usr/bin/nasm -o -x /usr/local/bin/nasm ]; then HAVE_NASM=y; else HAVE_NASM=n; fi
if [ $HAVE_NASM = n ];
then echo " *** Nasm is required. Download it from nasm.sourceforge.net";
ERROR=1
fi
fi
# success
if [ $ERROR = 0 ];
then echo "Configured successfully. Type 'make' to build it.";
fi
|