diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-11-25 11:01:27 +0100 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-11-25 11:01:27 +0100 |
commit | 3aace795d9b950495b5f239e1872f1d12b799f18 (patch) | |
tree | a603db442eb02bda4213a56545d9ea6eb9379bdf | |
parent | bf704e506ffb2eef10882f55f404fb901b8a3e25 (diff) | |
download | embedlog-3aace795d9b950495b5f239e1872f1d12b799f18.tar.gz embedlog-3aace795d9b950495b5f239e1872f1d12b799f18.tar.bz2 embedlog-3aace795d9b950495b5f239e1872f1d12b799f18.zip |
configure.ac: remove mandatory function checks
these functions are mandatory anyway and build will crash
when unavailable, but some compilers/systems may have
problem in checking them.
For example, clang crashes when checking for memcpy when
thread sanitizer is enabled.
-rw-r--r-- | configure.ac | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 664e67c..1f57bd3 100644 --- a/configure.ac +++ b/configure.ac @@ -99,7 +99,7 @@ AS_IF([test "x$enable_out_file" = "xyes"], [ AC_DEFINE([ENABLE_OUT_FILE], [1], [Enable printing to file]) AC_CHECK_FUNCS(access stat fsync fileno) - AC_CHECK_FUNCS([fopen fclose fwrite remove rename],, + AC_CHECK_FUNCS([fopen fclose remove rename],, AC_MSG_ERROR(not found, needed by --enable-out-file)) ]) @@ -136,7 +136,7 @@ AM_CONDITIONAL([ENABLE_OUT_CUSTOM], [test "x$enable_out_custom" = "xyes"]) AS_IF([test "x$enable_out_custom" = "xyes"], [ AC_DEFINE([ENABLE_OUT_CUSTOM], [1], [Enable printing to custom]) - AC_CHECK_FUNCS([fopen fclose fwrite remove rename],, + AC_CHECK_FUNCS([fopen fclose remove rename],, AC_MSG_ERROR(not found, needed by --enable-out-custom)) ]) @@ -274,8 +274,6 @@ AS_IF([test "x$enable_binary_logs" = "xyes"], AS_IF([test "x$enable_out_file" = "xyes"], [ AC_DEFINE([ENABLE_BINARY_LOGS], [1], [Enable printing binary logs]) - AC_CHECK_FUNCS([memcpy],, - AC_MSG_ERROR(not found, needed by --enable-binary-logs)) ], # else [ |