aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-04-02 13:41:02 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-04-02 13:41:02 +0200
commitdbe7df7571525b2d1ab78c08d2e705c6974ff8b5 (patch)
tree2df560352ec610cf301eeba4deda74f3c1368174 /ConfigureChecks.cmake
parenta3357b892060d6d534bc8d742d42dc78e58e07ce (diff)
downloadlibssh-dbe7df7571525b2d1ab78c08d2e705c6974ff8b5.tar.gz
libssh-dbe7df7571525b2d1ab78c08d2e705c6974ff8b5.tar.xz
libssh-dbe7df7571525b2d1ab78c08d2e705c6974ff8b5.zip
cmake: Detect __func__ and __FUNCTION__ during configure step
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 13a0f4dc..650ff4ed 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -215,6 +215,21 @@ int main(void) {
return 0;
}" HAVE_GCC_NARG_MACRO)
+check_c_source_compiles("
+#include <stdio.h>
+int main(void) {
+ printf(\"%s\", __func__);
+ return 0;
+}" HAVE_COMPILER__FUNC__)
+
+check_c_source_compiles("
+#include <stdio.h>
+int main(void) {
+ printf(\"%s\", __FUNCTION__);
+ return 0;
+}" HAVE_COMPILER__FUNCTION__)
+
+
if (WITH_DEBUG_CRYPTO)
set(DEBUG_CRYPTO 1)
endif (WITH_DEBUG_CRYPTO)