aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-08-12 10:08:20 +0200
committerAndreas Schneider <mail@cynapses.org>2009-08-12 10:08:20 +0200
commit8e6ab1809fe7c6fa63385790aabb4f1468d1c411 (patch)
tree35ca606a7c3a45af7659d2743ed80ba63be8b0f1
parent86418bfbbe2d6afcd630f93d5858f2d3353e12f9 (diff)
downloadlibssh-8e6ab1809fe7c6fa63385790aabb4f1468d1c411.tar.gz
libssh-8e6ab1809fe7c6fa63385790aabb4f1468d1c411.tar.xz
libssh-8e6ab1809fe7c6fa63385790aabb4f1468d1c411.zip
Enable the debug calltrace by default.
-rw-r--r--ConfigureChecks.cmake4
-rw-r--r--DefineOptions.cmake3
-rw-r--r--config.h.cmake3
3 files changed, 9 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 482ce65..e3f53ea 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -69,5 +69,9 @@ if (WITH_DEBUG_CRYPTO)
set(DEBUG_CRYPTO 1)
endif (WITH_DEBUG_CRYPTO)
+if (WITH_DEBUG_CALLTRACE)
+ set(DEBUG_CALLTRACE 1)
+endif (WITH_DEBUG_CALLTRACE)
+
# ENDIAN
test_big_endian(WORDS_BIGENDIAN)
diff --git a/DefineOptions.cmake b/DefineOptions.cmake
index d482e19..0fb2587 100644
--- a/DefineOptions.cmake
+++ b/DefineOptions.cmake
@@ -3,4 +3,5 @@ option(WITH_SSH1 "Build with SSH1 support" OFF)
option(WITH_SFTP "Build with SFTP support" ON)
option(WITH_SERVER "Build with SSH server support" ON)
option(WITH_STATIC_LIB "Build with a static library" OFF)
-option(WITH_DEBUG_CRYPTO "Build with cryto debut output" OFF)
+option(WITH_DEBUG_CRYPTO "Build with cryto debug output" OFF)
+option(WITH_DEBUG_CALLTRACE "Build with calltrace debug output" ON)
diff --git a/config.h.cmake b/config.h.cmake
index 6986373..ad97b11 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -77,6 +77,9 @@
/* Define to 1 if you want to enable debug output for crypto functions */
#cmakedefine DEBUG_CRYPTO 1
+/* Define to 1 if you want to enable calltrace debug output */
+#cmakedefine DEBUG_CALLTRACE 1
+
/*************************** ENDIAN *****************************/
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most