From 166837d3f1f5480648184cdf157fa15d62eb3595 Mon Sep 17 00:00:00 2001 From: cosmosninja Date: Sat, 12 Jan 2008 23:34:11 +0000 Subject: [PATCH] Passing --enable-debug to the configure script now causes that the program is compiled with -g(enable debugger info) and -pg(enable profiling info), and #defines DEBUG for the code. Also, I enabled a simple check to see if we can compile c++ in response to Dominique's message where he wrote that if we did not have a C++ compiler the configure script would say that plib is missing instead. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1386 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- configure.ac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configure.ac b/configure.ac index 6009520bb..6cb3123c4 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,21 @@ AC_PROG_CC AC_PROG_CPP AC_PROG_CXX +# Do a quick check to ensure the c++ compiler works +AC_RUN_IFELSE([ +#include +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!