summaryrefslogtreecommitdiff
path: root/legacy/elementary/configure.ac
diff options
context:
space:
mode:
authorTiago Rezende Campos Falcao <developer@tiagofalcao.com>2010-10-01 19:03:23 +0000
committerTiago Rezende Campos Falcao <developer@tiagofalcao.com>2010-10-01 19:03:23 +0000
commit3b04b52ba488364abb2db23509834f33028d49d9 (patch)
treea3d441294445286c1346d5cc1f09531d37cf5e3a /legacy/elementary/configure.ac
parent6f6106f6c3a9d3930859957096ad1ed492cc8ffd (diff)
Adding debug option in elementary.
SVN revision: 52966
Diffstat (limited to 'legacy/elementary/configure.ac')
-rw-r--r--legacy/elementary/configure.ac12
1 files changed, 12 insertions, 0 deletions
diff --git a/legacy/elementary/configure.ac b/legacy/elementary/configure.ac
index 3dd7bb9f31..a080dfda6a 100644
--- a/legacy/elementary/configure.ac
+++ b/legacy/elementary/configure.ac
@@ -424,6 +424,18 @@ if test "x$want_elementary_ethumb" = "xyes" -a "x$have_elementary_ethumb" = "xno
424fi 424fi
425AC_SUBST(ELM_ETHUMB_DEF) 425AC_SUBST(ELM_ETHUMB_DEF)
426 426
427ELM_DEBUG_DEF="#undef"
428want_elementary_debug="no"
429AC_ARG_ENABLE([debug],
430 [AC_HELP_STRING([--enable-debug], [enable elementary debug support. @<:@default=disabled@:>@])],
431 [want_elementary_debug=$enableval], [])
432
433if test "x$want_elementary_debug" = "xyes"; then
434 AC_DEFINE(HAVE_ELEMENTARY_DEBUG, 1, [Elementary debug.])
435 ELM_DEBUG_DEF="#define"
436fi
437AC_SUBST(ELM_DEBUG_DEF)
438
427ELM_ALLOCA_H_DEF="#undef" 439ELM_ALLOCA_H_DEF="#undef"
428AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"]) 440AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"])
429AC_SUBST(ELM_ALLOCA_H_DEF) 441AC_SUBST(ELM_ALLOCA_H_DEF)