diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-04-01 20:58:55 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-04-01 21:33:47 +0300 |
commit | 93291187f4da4d0041b278a7638e69e8ecbadafc (patch) | |
tree | 82658cc7371925cfeb8d5ce0b8fbd298a2a7ef4a | |
parent | 9826b05efe1a67f70319a2997c2f47f06554b045 (diff) | |
download | libmicrohttpd-93291187f4da4d0041b278a7638e69e8ecbadafc.tar.gz libmicrohttpd-93291187f4da4d0041b278a7638e69e8ecbadafc.zip |
configure: assume that systems assert() is functional if available
-rw-r--r-- | configure.ac | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac index f3c0cde3..e6cc7214 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -2352,20 +2352,8 @@ AS_VAR_IF([[enable_asserts]], [["yes"]], | |||
2352 | [[mhd_cv_sys_assert_avail='no']]) | 2352 | [[mhd_cv_sys_assert_avail='no']]) |
2353 | ] | 2353 | ] |
2354 | ) | 2354 | ) |
2355 | AS_VAR_IF([[mhd_cv_sys_assert_avail]], [["yes"]], | 2355 | AS_VAR_IF([[mhd_cv_sys_assert_avail]], [["no"]], [], |
2356 | [ | 2356 | [AC_DEFINE([[HAVE_ASSERT]], [[1]], [Define if you have usable assert() and assert.h])]) |
2357 | AC_CACHE_CHECK([[whether system assert() is usable]], [mhd_cv_sys_assert_use], | ||
2358 | [ | ||
2359 | AC_RUN_IFELSE([AC_LANG_SOURCE([[$mhd_assert_test_prg]])], | ||
2360 | [[mhd_cv_sys_assert_use='no']], | ||
2361 | [[mhd_cv_sys_assert_use='yes']], | ||
2362 | [[mhd_cv_sys_assert_use='assuming yes']]) | ||
2363 | ] | ||
2364 | ) | ||
2365 | AS_VAR_IF([[mhd_cv_sys_assert_use]], [["no"]], [], | ||
2366 | [AC_DEFINE([[HAVE_ASSERT]], [[1]], [Define if you have usable assert() and assert.h])]) | ||
2367 | ] | ||
2368 | ) | ||
2369 | AS_UNSET([mhd_assert_test_prg]) | 2357 | AS_UNSET([mhd_assert_test_prg]) |
2370 | ], | 2358 | ], |
2371 | [AC_DEFINE([[NDEBUG]], [[1]], [Define to disable usage of debug asserts.])] | 2359 | [AC_DEFINE([[NDEBUG]], [[1]], [Define to disable usage of debug asserts.])] |