diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 482ce65f..e3f53ea2 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 d482e199..0fb25876 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 69863735..ad97b116 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