]> granicus.if.org Git - curl/commitdiff
Added support for --enable-debug
authorDaniel Stenberg <daniel@haxx.se>
Thu, 1 Feb 2001 07:58:49 +0000 (07:58 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 1 Feb 2001 07:58:49 +0000 (07:58 +0000)
configure.in

index 052ed826c185cef5462ba85132650e191f51057c..4ad067aea6fcf11c24a27dcee7e26cdae0e43ff4 100644 (file)
@@ -26,6 +26,25 @@ dnl The install stuff has already been taken care of by the automake stuff
 dnl AC_PROG_INSTALL
 AC_PROG_MAKE_SET
 
+dnl ************************************************************
+dnl lame option to switch on debug options
+dnl
+AC_MSG_CHECKING([whether to enable debug options])
+AC_ARG_ENABLE(debug,
+[  --enable-debug              Enable pedantic debug options
+  --disable-debug              Disable debug options],
+[ case "$enableval" in
+  no)
+       AC_MSG_RESULT(no)
+       ;;
+  *)   AC_MSG_RESULT(yes)
+
+    CPPFLAGS="$CPPFLAGS -DMALLOCDEBUG"
+    CFLAGS="-Wall -pedantic -g" 
+       ;;
+  esac ],
+       AC_MSG_RESULT(no)
+)
 
 
 dnl