Fixed "-g -Wall" as it doesn't need to be supported on all compilers.
authorshort <>
Sun, 25 Nov 2001 22:32:38 +0000 (22:32 +0000)
committershort <>
Sun, 25 Nov 2001 22:32:38 +0000 (22:32 +0000)
Provided "-ggdb3" for better debugging info when GCC is found.

configure.in

index c3ab23c..ded8f4b 100644 (file)
@@ -32,7 +32,9 @@ test x"$prefix" = xNONE && prefix="$ac_default_prefix"
 
 AC_ARG_ENABLE(debug, 
        [  --enable-debug          compile with debug code],
-       [ CFLAGS="-g -Wall"
+       [ if test "x$GCC" = "xyes"; then
+               CFLAGS="-ggdb3 -Wall"
+         fi
          AC_DEFINE(DEBUG)
          debug="yes" ],
        [ debug="no"  ]