2 ===================================================================
3 --- configure.in (revision 987)
4 +++ configure.in (working copy)
5 @@ -33,9 +33,10 @@ AC_HEADER_STDBOOL
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)
15 if test "x$arch" != xno
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])
24 +AC_MSG_RESULT($release)
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
36 -AC_MSG_RESULT($release)
37 +AC_MSG_RESULT($debug)
40 dnl Check variable type sizes
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"