]>
Commit | Line | Data |
---|---|---|
1 | Index: configure.in | |
2 | =================================================================== | |
3 | --- configure.in (revision 987) | |
4 | +++ configure.in (working copy) | |
5 | @@ -33,9 +33,10 @@ AC_HEADER_STDBOOL | |
6 | AC_PROG_RANLIB | |
7 | AC_TYPE_SIZE_T | |
8 | ||
9 | -AC_ARG_WITH(arch, | |
10 | -[ --with-arch=[arch] build for $arch, where arch is any of the -march flags passed to gcc, without the -march, for example --with-arch=pentium3], | |
11 | +AC_ARG_WITH(arch,AC_HELP_STRING([--with-arch=[arch]], | |
12 | +[build for $arch, where arch is any of the -march flags passed to gcc, without the -march, for example --with-arch=pentium3]), | |
13 | arch=$withval,arch=no) | |
14 | +ARCHFLAGS="" | |
15 | if test "x$arch" != xno | |
16 | then | |
17 | ARCHFLAGS="-march=$arch" | |
18 | @@ -241,12 +242,21 @@ then | |
19 | CPPFLAGS="-fomit-frame-pointer -ffast-math" | |
20 | CXXFLAGS="-fomit-frame-pointer -ffast-math" | |
21 | AC_DEFINE(dNODEBUG,,[Disable debug output]) | |
22 | -else | |
23 | +fi | |
24 | +AC_MSG_RESULT($release) | |
25 | + | |
26 | +AC_MSG_CHECKING(if building a debug library) | |
27 | +AC_ARG_ENABLE(debug,AC_HELP_STRING([--enable-debug], | |
28 | +[build a debug library with -g]), | |
29 | +debug=$enableval,debug=no) | |
30 | +if test "x$debug" == xyes | |
31 | +then | |
32 | CFLAGS="-g" | |
33 | CPPFLAGS="-g" | |
34 | CXXFLAGS="-g" | |
35 | fi | |
36 | -AC_MSG_RESULT($release) | |
37 | +AC_MSG_RESULT($debug) | |
38 | + | |
39 | ||
40 | dnl Check variable type sizes | |
41 | AC_CHECK_SIZEOF(char) | |
42 | @@ -477,5 +487,6 @@ echo " Use gyroscopic term: $gyrosc | |
43 | echo " Is this a Pentium: $pentium" | |
44 | echo " Is the CPU x86-64: $cpu64" | |
45 | echo " Is this a release build: $release" | |
46 | +echo " Is this a debug build: $debug" | |
47 | echo " Headers will be installed in $prefix/include/ode" | |
48 | echo " Libraries will be installed in $prefix/lib" |