Skip to content

Commit

Permalink
Use AC_SYS_LARGEFILE on Autotools (HDFGroup#4119)
Browse files Browse the repository at this point in the history
We previously used a hack introduced in 1.8.5 to paper over differences
in off_t and off64_t when determining the type sizes. We no longer explicitly
support off64_t in the library and AC_SYS_LARGEFILE works fine.
  • Loading branch information
derobins authored and lrknox committed Mar 21, 2024
1 parent cf8bab5 commit c605928
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 73 deletions.
53 changes: 0 additions & 53 deletions acsite.m4

This file was deleted.

23 changes: 3 additions & 20 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1460,26 +1460,9 @@ if test "X${enable_shared}" = "Xyes"; then
fi

## ----------------------------------------------------------------------
## Use the macro _AC_SYS_LARGEFILE_MACRO_VALUE to test defines
## that might need to be set for largefile support to behave
## correctly. This macro is defined in acsite.m4 and overrides
## the version provided by Autoconf (as of v2.65). The custom
## macro additionally adds the appropriate defines to AM_CPPFLAGS
## so that later configure checks have them visible.

## Check for _FILE_OFFSET_BITS
_AC_SYS_LARGEFILE_MACRO_VALUE([_FILE_OFFSET_BITS], [64],
[ac_cv_sys_file_offset_bits],
[Number of bits in a file offset, on hosts where this is settable.],
[_AC_SYS_LARGEFILE_TEST_INCLUDES])

## Check for _LARGE_FILES
if test "$ac_cv_sys_file_offset_bits" = unknown; then
_AC_SYS_LARGEFILE_MACRO_VALUE([_LARGE_FILES], [1],
[ac_cv_sys_large_files],
[Define for large files, on AIX-style hosts.],
[_AC_SYS_LARGEFILE_TEST_INCLUDES])
fi
## Set up large file support

AC_SYS_LARGEFILE

## ----------------------------------------------------------------------
## Add necessary defines for Linux Systems.
Expand Down

0 comments on commit c605928

Please sign in to comment.