--- ./m4/strtoimax.m4_orig        2025-08-19 02:11:09.872124562 -0500
+++ ./m4/strtoimax.m4     2025-08-19 02:11:57.646681912 -0500
@@ -10,7 +10,9 @@
 [
   AC_CHECK_FUNCS([strtoimax])
   AC_CHECK_DECLS([strtoimax])
-
+  if test "$ac_cv_have_decl_strtoimax" = "yes" ; then
+    AC_DEFINE([HAVE_DECL_STRTOIMAX], [1])
+  fi
   if test "$ac_cv_func_strtoimax" != "yes" ; then
     AC_LIBOBJ(strtoimax)
   fi


--- ./configure_orig      2025-08-19 01:05:13.975777103 -0500
+++ ./configure   2025-08-19 01:23:17.742116598 -0500
@@ -21646,7 +21646,11 @@
 printf "%s\n" "#define HAVE_DECL_STRTOIMAX $ac_have_decl" >>confdefs.h
 
 
-  if test "$ac_cv_func_strtoimax" != "yes" ; then
+  if test "$ac_cv_have_decl_strtoimax" = "yes" ; then
+  printf "%s\n" "#define HAVE_DECL_STRTOIMAX 1" >>confdefs.h
+
+  fi
+  if test $ac_cv_func_strtoimax = no; then
     case " $LIBOBJS " in
   *" strtoimax.$ac_objext "* ) ;;
   *) LIBOBJS="$LIBOBJS strtoimax.$ac_objext"

