[Nauty] Patch for autoconf 2.72
Jerry James
loganjerry at gmail.com
Sat Apr 27 00:56:04 AEST 2024
Greetings,
I maintain the nauty package for the Fedora Linux distribution. I
recently discovered that if the configure script is regenerated with
autoconf 2.72, the build fails on 64-bit architectures because
_FILE_OFFSET_BITS is defined to be the empty string. It looks like
AC_SYS_LARGEFILE was rewritten for autoconf 2.72, and now sets
ac_cv_sys_file_offset_bits to the empty string on 64-bit systems. I
would like to suggest this patch:
--- configure.ac.orig
+++ configure.ac
@@ -191,6 +191,7 @@ MORECFLAGS=""
dnl we need AC_SYS_LARGEFILE and AC_FUNC_FSEEKO
AC_SYS_LARGEFILE
AS_IF([test "x$ac_cv_sys_file_offset_bits" =
xno],[ac_cv_sys_file_offset_bits=0])
+AS_IF([test "x$ac_cv_sys_file_offset_bits" =
x],[ac_cv_sys_file_offset_bits=64])
AC_SUBST(ac_cv_sys_file_offset_bits)
dnl AS_IF([test "x$user_cflags" = x || test "x$user_cflags" = x-m32],
The extra conditional should never evaluate to true for configure
scripts generated by autoconf < 2.72, and works around the issue for
autoconf >= 2.72.
Regards,
--
Jerry James
http://www.jamezone.org/
More information about the Nauty
mailing list