Commit f8f31cf for zlib

commit f8f31cff235ee0c48ae050b4effe3ee118bfd99c
Author: staphen <staphen@gmail.com>
Date:   Tue Sep 15 08:24:02 2026 -0400

    CMake: Replace CheckFunctionExists with CheckSymbolExists.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e60c083..5929cad 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,7 +35,7 @@ if(NOT DEFINED CMAKE_BUILD_TYPE AND NOT IS_MULTI)
 endif(NOT DEFINED CMAKE_BUILD_TYPE AND NOT IS_MULTI)

 include(CheckCSourceCompiles)
-include(CheckFunctionExists)
+include(CheckSymbolExists)
 include(CheckIncludeFile)
 include(CMakePackageConfigHelpers)
 include(CheckTypeSize)
@@ -152,7 +152,7 @@ unset(CMAKE_REQUIRED_DEFINITIONS) # clear variable
 #
 # Check for fseeko
 #
-check_function_exists(fseeko HAVE_FSEEKO)
+check_symbol_exists(fseeko stdio.h HAVE_FSEEKO)

 #
 # Check for stdarg.h
diff --git a/contrib/minizip/CMakeLists.txt b/contrib/minizip/CMakeLists.txt
index fb9bf57..9c95ac0 100644
--- a/contrib/minizip/CMakeLists.txt
+++ b/contrib/minizip/CMakeLists.txt
@@ -35,7 +35,7 @@ option(MINIZIP_ENABLE_BZIP2 "Build minizip with bzip2 support" OFF)
 option(MINIZIP_INSTALL "Enable installation of minizip" ON)

 include(CheckCSourceCompiles)
-include(CheckFunctionExists)
+include(CheckSymbolExists)
 include(CheckIncludeFile)
 include(CMakePackageConfigHelpers)
 include(CheckTypeSize)
@@ -64,12 +64,12 @@ endif(MINIZIP_ENABLE_BZIP2)
 #
 # Check for fopen64
 #
-check_function_exists(fopen64 HAVE_FOPEN64)
+check_symbol_exists(fopen64 stdio.h HAVE_FOPEN64)

 #
 # Check for fseeko
 #
-check_function_exists(fseeko HAVE_FSEEKO)
+check_symbol_exists(fseeko stdio.h HAVE_FSEEKO)

 #
 # Check for unistd.h
diff --git a/contrib/zlib1-dll/CMakeLists.txt b/contrib/zlib1-dll/CMakeLists.txt
index 72f6758..93ade2b 100644
--- a/contrib/zlib1-dll/CMakeLists.txt
+++ b/contrib/zlib1-dll/CMakeLists.txt
@@ -33,7 +33,7 @@ set(ZLIB1_DLL_PREFIX "" CACHE STRING
 set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)

 include(CheckCSourceCompiles)
-include(CheckFunctionExists)
+include(CheckSymbolExists)
 include(CheckIncludeFile)
 include(CMakePackageConfigHelpers)
 include(CheckTypeSize)
@@ -80,7 +80,7 @@ endif(ZLIB1_DLL_ENABLE_BZIP2)
 #
 # Check for fopen64
 #
-check_function_exists(fopen64 HAVE_FOPEN64)
+check_symbol_exists(fopen64 stdio.h HAVE_FOPEN64)

 #
 # Check to see if we have large file support
@@ -92,7 +92,7 @@ unset(CMAKE_REQUIRED_DEFINITIONS) # clear variable
 #
 # Check for fseeko
 #
-check_function_exists(fseeko HAVE_FSEEKO)
+check_symbol_exists(fseeko stdio.h HAVE_FSEEKO)

 #
 # Check for stdarg.h