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
This commit is contained in:
parent
67ba7872df
commit
166837d3f1
15
configure.ac
15
configure.ac
@ -29,6 +29,21 @@ AC_PROG_CC
|
|||||||
AC_PROG_CPP
|
AC_PROG_CPP
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
|
|
||||||
|
# Do a quick check to ensure the c++ compiler works
|
||||||
|
AC_RUN_IFELSE([
|
||||||
|
#include <iostream>
|
||||||
|
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 =============================================
|
||||||
dnl Define debug which enables some cheats
|
dnl Define debug which enables some cheats
|
||||||
dnl This should be DISABLED when doing a release!
|
dnl This should be DISABLED when doing a release!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user