INN commit: branches/2.6 (configure.ac)

INN Commit rra at isc.org
Sun Jan 3 21:01:34 UTC 2021


    Date: Sunday, January 3, 2021 @ 13:01:33
  Author: iulius
Revision: 10480

Fix build of fseeko replacement

AC_FUNC_FSEEKO needs being called unconditionally out of consistency
with the logic in clibrary.h (first looking for !HAVE_FSEEKO before
DO_LARGEFILES, and not the contrary).

Modified:
  branches/2.6/configure.ac

--------------+
 configure.ac |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Modified: configure.ac
===================================================================
--- configure.ac	2021-01-03 21:00:51 UTC (rev 10479)
+++ configure.ac	2021-01-03 21:01:33 UTC (rev 10480)
@@ -587,16 +587,14 @@
                  strlcat strlcpy strspn strtok symlink)
 
 dnl Probe for fseeko and ftello, which take off_t instead of int.
+AC_FUNC_FSEEKO
 if test x"$inn_enable_largefiles" = xyes ; then
-    AC_FUNC_FSEEKO
+    AC_CHECK_DECLS([fseeko, ftello])
     if test x"$ac_cv_sys_largefile_source" = xunknown ; then
         INN_TYPE_FPOS_T_LARGE
-        AC_CHECK_DECLS([fseeko, ftello])
         AC_LIBOBJ([fseeko])
         AC_LIBOBJ([ftello])
     fi
-else
-    AC_CHECK_DECLS([fseeko])
 fi
 
 dnl Probe for mmap properties.



More information about the inn-committers mailing list