From f6d6463f0cd8f95f70daa0193c903268b14c18e9 Mon Sep 17 00:00:00 2001
From: barracuda156 <vital.had@gmail.com>
Date: Sat, 20 Jan 2024 16:36:50 +0800
Subject: [PATCH 5/6] configure.ac: use correct lib name for R

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git configure.ac configure.ac
index 860a972..e27241e 100644
--- configure.ac
+++ configure.ac
@@ -692,7 +692,7 @@ if test "x$enable_mathlib" = "xyes"; then
     [#define MATHLIB_STANDALONE
      #include <Rmath.h>
     ])
-  AC_CHECK_LIB([Rmath], [ptukey], [], [enable_mathlib=no])
+  AC_CHECK_LIB([R], [ptukey], [], [enable_mathlib=no])
   if test "x$enable_mathlib" = "xyes"; then
     AC_DEFINE(HAVE_MATHLIB, 1, [Define this if a good mathlib installation was detected]) 
   fi
