From c74956453fcfabff605c3fc5d69f9c91d7c18ebf Mon Sep 17 00:00:00 2001 From: cosmosninja Date: Sun, 13 Jan 2008 00:50:59 +0000 Subject: [PATCH] Reverted removing the 'simple c++ program', and instead added a C program, since it works fine, which isn't what we want, but it's better than nothing. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1388 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configure.ac b/configure.ac index 6009520bb..80049d07a 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,20 @@ AC_PROG_CC AC_PROG_CPP AC_PROG_CXX +# Do a quick check to ensure the c++ compiler works +AC_RUN_IFELSE([ +int main() { return 0; } +],[], +[ + echo + echo "Compiling a simple program failed, so something is broken with" + echo "the building process. Please check that your system is setup" + echo "so it can compile C code." + echo + echo "Configure aborted." + exit +]) + dnl ============================================= dnl Define debug which enables some cheats dnl This should be DISABLED when doing a release!