INN commit: trunk (configure.ac)

INN Commit rra at isc.org
Fri Dec 25 11:34:58 UTC 2020


    Date: Friday, December 25, 2020 @ 03:34:58
  Author: iulius
Revision: 10471

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:
  trunk/configure.ac

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

Modified: configure.ac
===================================================================
--- configure.ac	2020-12-25 10:07:18 UTC (rev 10470)
+++ configure.ac	2020-12-25 11:34:58 UTC (rev 10471)
@@ -594,16 +594,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