The ac_cv_sys_file_offset_bits variable was an implementation detail of
this autoconf macro, but with autoconf 2.72 it is no longer set, which
breaks the -D_FILE_OFFSET_BITS= macro assignment. Remove the CFLAGS
passed as an argument to the macro, which is not used.

Instead simply rely on AC_SYS_LARGEFILE setting the appropriate
definitions in the gw-config.h file, now that we include it everywhere.

This was making many configure checks fail as on glibc, its headers
expect _FILE_OFFSET_BITS to be defined to a value.
---
 configure.in | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/configure.in b/configure.in
index e59fda5d..af8b6961 100644
--- a/configure.in
+++ b/configure.in
@@ -174,13 +174,7 @@ AC_C_INLINE
 
 dnl Check for how to do large files
 
-AC_SYS_LARGEFILE(CFLAGS)
-if test "${ac_cv_sys_file_offset_bits}" != no ; then
-    CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}"
-fi
-if test "${ac_cv_sys_large_files}" != no ; then
-    CFLAGS="$CFLAGS -D_LARGE_FILES=${ac_cv_sys_large_files}"
-fi
+AC_SYS_LARGEFILE
 
 dnl Check for word sizes.
 
-- 
2.43.0


Reply via email to