From dc30183d8aa9f06c2dc9375a882d16e87dbd4272 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 2 Apr 2015 13:41:02 +0200 Subject: cmake: Detect __func__ and __FUNCTION__ during configure step Signed-off-by: Andreas Schneider --- ConfigureChecks.cmake | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index e1eed715..652a6515 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -201,6 +201,20 @@ int main(void) return 0; }" HAVE_GCC_VOLATILE_MEMORY_PROTECTION) +check_c_source_compiles(" +#include +int main(void) { + printf(\"%s\", __func__); + return 0; +}" HAVE_COMPILER__FUNC__) + +check_c_source_compiles(" +#include +int main(void) { + printf(\"%s\", __FUNCTION__); + return 0; +}" HAVE_COMPILER__FUNCTION__) + if (WITH_DEBUG_CRYPTO) set(DEBUG_CRYPTO 1) endif (WITH_DEBUG_CRYPTO) -- cgit