1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-11 17:04:56 +00:00

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

21
configure vendored
View file

@ -39,6 +39,22 @@ Some influential environment variables:
EOF 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() openssl_test()
{ {
cat > testconf.c << EOF cat > testconf.c << EOF
@ -231,6 +247,11 @@ EOF
esac esac
echo "System: $SYSTEM" echo "System: $SYSTEM"
#
# First things first, check to see if there's a compiler installed
#
cc_test
# #
# OpenSSL settings # OpenSSL settings
# #