HAVE_FSEEKO was set in two places and the definition wasn't
consistent. Now only the one in gmxTestLargeFiles is used.
HAVE_FSEEKO is only used if it fully works and 64bit fseek is
available.
Change-Id: I5c8f837e414f1ddeab0de8148d5a9c91047116f8
include(gmxTestLargeFiles)
gmx_test_large_files(GMX_LARGEFILES)
-check_function_exists(fseeko HAVE_FSEEKO)
include(gmxTestSignal)
gmx_test_retsigtype(RETSIGTYPE)
endif(NOT FILE64_OK)
- if(FSEEKO_COMPILE_OK)
- SET(${VARIABLE} 1 CACHE INTERNAL "Result of test for large file support" FORCE)
- set(HAVE_FSEEKO 1)
+ if(FSEEKO_COMPILE_OK)
+ SET(${VARIABLE} 1 CACHE INTERNAL "Result of test for large file support" FORCE)
+ set(HAVE_FSEEKO 1 CACHE INTERNAL "64bit fseeko is available" FORCE)
else(FSEEKO_COMPILE_OK)
- if (HAVE__FSEEKI64)
- SET(${VARIABLE} 1 CACHE INTERNAL "Result of test for large file support" FORCE)
- SET(HAVE__FSEEKI64 1 CACHE INTERNAL "Windows 64-bit fseek" FORCE)
- else (HAVE__FSEEKI64)
+ if (HAVE__FSEEKI64)
+ SET(${VARIABLE} 1 CACHE INTERNAL "Result of test for large file support" FORCE)
+ SET(HAVE__FSEEKI64 1 CACHE INTERNAL "Windows 64-bit fseek" FORCE)
+ else (HAVE__FSEEKI64)
MESSAGE(STATUS "Checking for fseeko/ftello - not found")
SET(${VARIABLE} 0 CACHE INTERNAL "Result of test for large file support" FORCE)
- endif (HAVE__FSEEKI64)
+ endif (HAVE__FSEEKI64)
endif(FSEEKO_COMPILE_OK)
ENDIF(NOT DEFINED ${VARIABLE})