Fixed broken calling of stackcheck()
[gnokii.git] / configure.in
index 21b3fa6..827924e 100644 (file)
@@ -26,6 +26,9 @@ AC_PROG_LEX
 if test -z "$AR";then
        AC_PATH_PROG(AR, ar, no)
 fi
+if test -z "$AS";then
+       AC_PATH_PROG(AS, as, no)
+fi
 AC_PATH_PROG(RM, rm, no)
 AC_PATH_PROG(FIND, find, no)
 AC_CHECK_PROGS(MAKE, gmake make)
@@ -49,7 +52,10 @@ AC_DEFINE_UNQUOTED(CONFIG_CFG_INITLENGTH, "$with_cfg_initlength")
 
 AC_ARG_ENABLE(debug, 
        [  --enable-debug          compile with debug code],
-       [ #CFLAGS="-g -Wall"
+       [
+changequote({,})dnl
+         CFLAGS="-ggdb3 `echo " $CFLAGS "|sed 's/ -O[0-9]* / /g'`" #CFLAGS="-g -Wall"
+changequote([,])dnl
          AC_DEFINE(DEBUG)
          debug="yes" ],
        [ debug="no"  ]
@@ -483,6 +489,7 @@ AC_CONFIG_HEADER(include/config.h)
 AC_SUBST(PACKAGE)
 AC_SUBST(VERSION)
 AC_SUBST(AR)
+AC_SUBST(AS)
 AC_SUBST(XVERSION)
 AC_SUBST(XPACKAGE)
 AC_SUBST(XGNOKIIDIR)