]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use cmocka_set_message_output as test function for cmocka presence
authorOndřej Surý <ondrej@sury.org>
Thu, 21 Jun 2018 12:12:02 +0000 (14:12 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 21 Jun 2018 12:12:02 +0000 (14:12 +0200)
configure
configure.in

index bfebc118c6b9199de1d5d03f57aa929e43b0dc17..d490beb58f64605be26a7483a39ccc926c90ed39 100755 (executable)
--- a/configure
+++ b/configure
@@ -22663,9 +22663,9 @@ fi
 
 done
 
-           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cmocka_run_group_tests" >&5
-$as_echo_n "checking for library containing cmocka_run_group_tests... " >&6; }
-if ${ac_cv_search_cmocka_run_group_tests+:} false; then :
+           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cmocka_set_message_output" >&5
+$as_echo_n "checking for library containing cmocka_set_message_output... " >&6; }
+if ${ac_cv_search_cmocka_set_message_output+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_func_search_save_LIBS=$LIBS
@@ -22678,11 +22678,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 #ifdef __cplusplus
 extern "C"
 #endif
-char cmocka_run_group_tests ();
+char cmocka_set_message_output ();
 int
 main ()
 {
-return cmocka_run_group_tests ();
+return cmocka_set_message_output ();
   ;
   return 0;
 }
@@ -22695,25 +22695,25 @@ for ac_lib in '' cmocka; do
     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   fi
   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
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext
-  if ${ac_cv_search_cmocka_run_group_tests+:} false; then :
+  if ${ac_cv_search_cmocka_set_message_output+:} false; then :
   break
 fi
 done
-if ${ac_cv_search_cmocka_run_group_tests+:} false; then :
+if ${ac_cv_search_cmocka_set_message_output+:} false; then :
 
 else
-  ac_cv_search_cmocka_run_group_tests=no
+  ac_cv_search_cmocka_set_message_output=no
 fi
 rm conftest.$ac_ext
 LIBS=$ac_func_search_save_LIBS
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cmocka_run_group_tests" >&5
-$as_echo "$ac_cv_search_cmocka_run_group_tests" >&6; }
-ac_res=$ac_cv_search_cmocka_run_group_tests
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cmocka_set_message_output" >&5
+$as_echo "$ac_cv_search_cmocka_set_message_output" >&6; }
+ac_res=$ac_cv_search_cmocka_set_message_output
 if test "$ac_res" != no; then :
   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
index efd60b08070803853bcdaadd1092ef2d45aaa1cf..b5b3a24a5b3692994ba97874de6276fc1b9aa05a 100644 (file)
@@ -4569,7 +4569,7 @@ AS_CASE([$with_cmocka],
                              #include <stddef.h>
                              #include <setjmp.h>
                             ])
-           AC_SEARCH_LIBS([cmocka_run_group_tests],
+           AC_SEARCH_LIBS([cmocka_set_message_output],
                           [cmocka],
                           [
                               CMOCKA_CFLAGS="-Iwith_cmocka/include"