Commit 0158c1a4 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Use cmocka_set_message_output as test function for cmocka presence

parent 5ed0b0d8
Pipeline #2478 passed with stages
in 8 minutes and 12 seconds
...@@ -22663,9 +22663,9 @@ fi ...@@ -22663,9 +22663,9 @@ fi
   
done done
   
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cmocka_run_group_tests" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cmocka_set_message_output" >&5
$as_echo_n "checking for library containing cmocka_run_group_tests... " >&6; } $as_echo_n "checking for library containing cmocka_set_message_output... " >&6; }
if ${ac_cv_search_cmocka_run_group_tests+:} false; then : if ${ac_cv_search_cmocka_set_message_output+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
ac_func_search_save_LIBS=$LIBS ac_func_search_save_LIBS=$LIBS
...@@ -22678,11 +22678,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ...@@ -22678,11 +22678,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
char cmocka_run_group_tests (); char cmocka_set_message_output ();
int int
main () main ()
{ {
return cmocka_run_group_tests (); return cmocka_set_message_output ();
; ;
return 0; return 0;
} }
...@@ -22695,25 +22695,25 @@ for ac_lib in '' cmocka; do ...@@ -22695,25 +22695,25 @@ for ac_lib in '' cmocka; do
LIBS="-l$ac_lib $ac_func_search_save_LIBS" LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi fi
if ac_fn_c_try_link "$LINENO"; then : if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_cmocka_run_group_tests=$ac_res ac_cv_search_cmocka_set_message_output=$ac_res
fi fi
rm -f core conftest.err conftest.$ac_objext \ rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest$ac_exeext
if ${ac_cv_search_cmocka_run_group_tests+:} false; then : if ${ac_cv_search_cmocka_set_message_output+:} false; then :
break break
fi fi
done done
if ${ac_cv_search_cmocka_run_group_tests+:} false; then : if ${ac_cv_search_cmocka_set_message_output+:} false; then :
   
else else
ac_cv_search_cmocka_run_group_tests=no ac_cv_search_cmocka_set_message_output=no
fi fi
rm conftest.$ac_ext rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS LIBS=$ac_func_search_save_LIBS
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cmocka_run_group_tests" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cmocka_set_message_output" >&5
$as_echo "$ac_cv_search_cmocka_run_group_tests" >&6; } $as_echo "$ac_cv_search_cmocka_set_message_output" >&6; }
ac_res=$ac_cv_search_cmocka_run_group_tests ac_res=$ac_cv_search_cmocka_set_message_output
if test "$ac_res" != no; then : if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   
......
...@@ -4569,7 +4569,7 @@ AS_CASE([$with_cmocka], ...@@ -4569,7 +4569,7 @@ AS_CASE([$with_cmocka],
#include <stddef.h> #include <stddef.h>
#include <setjmp.h> #include <setjmp.h>
]) ])
AC_SEARCH_LIBS([cmocka_run_group_tests], AC_SEARCH_LIBS([cmocka_set_message_output],
[cmocka], [cmocka],
[ [
CMOCKA_CFLAGS="-Iwith_cmocka/include" CMOCKA_CFLAGS="-Iwith_cmocka/include"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment