patch 8.2.3483: #ifdef for using sysinfo() is incomplete

Problem:    #ifdef for using sysinfo() is incomplete.
Solution:   Also check for HAVE_SYSINFO. Make autoconf check use TRY_LINK.
            (closes #8952)
diff --git a/src/memline.c b/src/memline.c
index 9fc689f..b43f10e 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -1109,7 +1109,7 @@
     static int
 swapfile_process_running(ZERO_BL *b0p, char_u *swap_fname UNUSED)
 {
-# ifdef HAVE_SYSINFO_UPTIME
+#if defined(HAVE_SYSINFO) && defined(HAVE_SYSINFO_UPTIME)
     stat_T	    st;
     struct sysinfo  sinfo;