Add check for a working compiler and print a helpful error if one is not found.

This commit is contained in:
Josh Elsasser 2006-04-05 00:41:47 +00:00
parent 7a5c149504
commit ff977b74c5
1 changed files with 21 additions and 0 deletions

21
configure vendored
View File

@ -39,6 +39,22 @@ Some influential environment variables:
EOF
}
cc_test()
{
cat > testconf.c <<EOF
int main()
{
return 0;
}
EOF
if ! $CC -o testconf testconf.c > /dev/null 2>&1; then
rm -f testconf.c testconf
echo "Could not find a working compiler"
exit 1
fi
rm -f testconf.c testconf
}
openssl_test()
{
cat > testconf.c << EOF
@ -231,6 +247,11 @@ EOF
esac
echo "System: $SYSTEM"
#
# First things first, check to see if there's a compiler installed
#
cc_test
#
# OpenSSL settings
#