configure: fix coverity builds

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2020-04-16 10:02:59 +02:00
parent 4fa41f3562
commit 538337ee9d
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D
2 changed files with 17 additions and 3 deletions

View File

@ -766,11 +766,23 @@ AC_ARG_ENABLE([thread-safety],
[AS_HELP_STRING([--enable-thread-safety], [enforce thread-safety otherwise fail the build [default=yes]])], [AS_HELP_STRING([--enable-thread-safety], [enforce thread-safety otherwise fail the build [default=yes]])],
[enable_thread_safety=$enableval], [enable_thread_safety=yes]) [enable_thread_safety=$enableval], [enable_thread_safety=yes])
AM_CONDITIONAL([ENFORCE_THREAD_SAFETY], [test "x$enable_thread_safety" = "xyes"]) AM_CONDITIONAL([ENFORCE_THREAD_SAFETY], [test "x$enable_thread_safety" = "xyes"])
if test "x$enable_thread_safety" = "xyes"; then
AC_DEFINE([ENFORCE_THREAD_SAFETY], 1, [enforce thread-safety otherwise fail the build])
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
AC_ARG_ENABLE([coverity-build], AC_ARG_ENABLE([coverity-build],
[AS_HELP_STRING([--enable-coverity-build], [handle coverity builds [default=no]])], [AS_HELP_STRING([--enable-coverity-build], [build for use with Coverity [default=no]])],
[enable_coverity_build=$enableval], [enable_coverity_build=yes]) [enable_coverity_build=$enableval], [enable_coverity_build=no])
AM_CONDITIONAL([ENABLE_COVERITY_BUILD], [test "x$enable_coverity_build" = "xyes"]) AM_CONDITIONAL([ENABLE_COVERITY_BUILD], [test "x$enable_coverity_build" = "xyes"])
if test "x$enable_coverity_build" = "xyes"; then
AC_DEFINE([ENABLE_COVERITY_BUILD], 1, [build for use with Coverity])
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
AC_ARG_ENABLE([dlog], AC_ARG_ENABLE([dlog],
[AS_HELP_STRING([--enable-dlog], [enable dlog support [default=no]])], [AS_HELP_STRING([--enable-dlog], [enable dlog support [default=no]])],
@ -1043,9 +1055,10 @@ Documentation:
- user documentation: $enable_doc - user documentation: $enable_doc
Debugging: Debugging:
- tests: $enable_tests
- ASAN: $enable_asan - ASAN: $enable_asan
- Coverity: $enable_coverity_build
- mutex debugging: $enable_mutex_debugging - mutex debugging: $enable_mutex_debugging
- tests: $enable_tests
Paths: Paths:
- Logs in configpath: $enable_configpath_log - Logs in configpath: $enable_configpath_log

View File

@ -17,6 +17,7 @@
#include <time.h> #include <time.h>
#include "conf.h" #include "conf.h"
#include "config.h"
#ifndef O_CLOEXEC #ifndef O_CLOEXEC
#define O_CLOEXEC 02000000 #define O_CLOEXEC 02000000