summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorNikola Pajkovsky <npajkovs@redhat.com>2009-09-01 13:53:03 +0200
committerNikola Pajkovsky <npajkovs@redhat.com>2009-09-01 13:53:03 +0200
commitd36e7d502d590ce39f40ab08f0eaaaba507b456d (patch)
treed8622ad5364fc99f8919e73dfb261652b4e45ee1 /configure.ac
parenta36b7a7b0ecdc9cac735cac99abd5d68576a20e5 (diff)
downloadabrt-d36e7d502d590ce39f40ab08f0eaaaba507b456d.tar.gz
abrt-d36e7d502d590ce39f40ab08f0eaaaba507b456d.tar.xz
abrt-d36e7d502d590ce39f40ab08f0eaaaba507b456d.zip
Add --enable-debug option. Default parameters are -DDEBUG -ggdb -g
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 9864b2fc..69ee4181 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,6 +2,11 @@ AC_INIT([abrt], [0.0.8], [jmoskovc@redhat.com, zprikryl@redhat.com])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+AC_ARG_ENABLE(debug,
+ [AC_HELP_STRING([--enable-debug],
+ [Enable debug information])],
+ [CXXFLAGS="$CXXFLAGS -DDEBUG -ggdb -g"])
+
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_PROG_CXX
@@ -82,4 +87,4 @@ AC_CONFIG_FILES([
po/Makefile.in
])
-AC_OUTPUT \ No newline at end of file
+AC_OUTPUT