Blame SOURCES/9999-Build-system-generated-changes-from-patches.patch

4057ea
From f2df0777226cf446d682812f464f68e91cbd25b4 Mon Sep 17 00:00:00 2001
4057ea
From: Martin Pitt <martin@piware.de>
4057ea
Date: Sun, 28 Oct 2018 13:55:38 +0100
4057ea
Subject: [PATCH 2/2] Build system generated changes from patches
4057ea
4057ea
---
4057ea
 configure | 90 ++++++++++++++++++++++++++++++++++++++++++++++++-------
4057ea
 1 file changed, 80 insertions(+), 10 deletions(-)
4057ea
4057ea
diff --git a/configure b/configure
4057ea
index 841293e..665e89c 100755
4057ea
--- a/configure
4057ea
+++ b/configure
4057ea
@@ -1939,6 +1939,52 @@ fi
4057ea
 
4057ea
 } # ac_fn_c_try_link
4057ea
 
4057ea
+# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
4057ea
+# ---------------------------------------------
4057ea
+# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
4057ea
+# accordingly.
4057ea
+ac_fn_c_check_decl ()
4057ea
+{
4057ea
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4057ea
+  as_decl_name=`echo $2|sed 's/ *(.*//'`
4057ea
+  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
4057ea
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
4057ea
+$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
4057ea
+if eval \${$3+:} false; then :
4057ea
+  $as_echo_n "(cached) " >&6
4057ea
+else
4057ea
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057ea
+/* end confdefs.h.  */
4057ea
+$4
4057ea
+int
4057ea
+main ()
4057ea
+{
4057ea
+#ifndef $as_decl_name
4057ea
+#ifdef __cplusplus
4057ea
+  (void) $as_decl_use;
4057ea
+#else
4057ea
+  (void) $as_decl_name;
4057ea
+#endif
4057ea
+#endif
4057ea
+
4057ea
+  ;
4057ea
+  return 0;
4057ea
+}
4057ea
+_ACEOF
4057ea
+if ac_fn_c_try_compile "$LINENO"; then :
4057ea
+  eval "$3=yes"
4057ea
+else
4057ea
+  eval "$3=no"
4057ea
+fi
4057ea
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057ea
+fi
4057ea
+eval ac_res=\$$3
4057ea
+	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4057ea
+$as_echo "$ac_res" >&6; }
4057ea
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4057ea
+
4057ea
+} # ac_fn_c_check_decl
4057ea
+
4057ea
 # ac_fn_c_check_func LINENO FUNC VAR
4057ea
 # ----------------------------------
4057ea
 # Tests whether FUNC exists, setting the cache variable VAR accordingly
4057ea
@@ -6891,6 +6937,30 @@ _ACEOF
4057ea
 fi
4057ea
 
4057ea
 
4057ea
+  ac_fn_c_check_decl "$LINENO" "SSH_PUBLICKEY_HASH_SHA256" "ac_cv_have_decl_SSH_PUBLICKEY_HASH_SHA256" "#include <libssh/libssh.h>
4057ea
+"
4057ea
+if test "x$ac_cv_have_decl_SSH_PUBLICKEY_HASH_SHA256" = xyes; then :
4057ea
+  ac_have_decl=1
4057ea
+else
4057ea
+  ac_have_decl=0
4057ea
+fi
4057ea
+
4057ea
+cat >>confdefs.h <<_ACEOF
4057ea
+#define HAVE_DECL_SSH_PUBLICKEY_HASH_SHA256 $ac_have_decl
4057ea
+_ACEOF
4057ea
+ac_fn_c_check_decl "$LINENO" "ssh_get_fingerprint_hash" "ac_cv_have_decl_ssh_get_fingerprint_hash" "#include <libssh/libssh.h>
4057ea
+"
4057ea
+if test "x$ac_cv_have_decl_ssh_get_fingerprint_hash" = xyes; then :
4057ea
+  ac_have_decl=1
4057ea
+else
4057ea
+  ac_have_decl=0
4057ea
+fi
4057ea
+
4057ea
+cat >>confdefs.h <<_ACEOF
4057ea
+#define HAVE_DECL_SSH_GET_FINGERPRINT_HASH $ac_have_decl
4057ea
+_ACEOF
4057ea
+
4057ea
+
4057ea
   COCKPIT_SSH_SESSION_CFLAGS="$COCKPIT_CFLAGS $LIBSSH_CFLAGS $KRB5_CFLAGS"
4057ea
   COCKPIT_SSH_SESSION_LIBS="$COCKPIT_LIBS $LIBSSH_LIBS $KRB5_LIBS"
4057ea