From: Adam Dickmeiss Date: Tue, 19 Sep 2006 19:16:34 +0000 (+0000) Subject: Fix LFS check which on some systems, such as Solaris, reports LFS false - X-Git-Tag: ZEBRA.1.3.40~6 X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=commitdiff_plain;h=ee47f6bece10f19f7011010b35dfc83082193fe4;p=idzebra-moved-to-github.git Fix LFS check which on some systems, such as Solaris, reports LFS false - when LFS is present. The sprintf+long double format check is gone and replaced by a simple arithmetic expression which does the same thing. --- diff --git a/configure.in b/configure.in index 7401d72..464e3b7 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Zebra, Index Data Aps, 1995-2006 -dnl $Id: configure.in,v 1.91.2.26 2006-08-14 17:17:18 adam Exp $ +dnl $Id: configure.in,v 1.91.2.27 2006-09-19 19:16:34 adam Exp $ dnl AC_INIT(include/zebraver.h) AM_INIT_AUTOMAKE(idzebra,1.3.38) @@ -290,9 +290,8 @@ int main(int argc, char **argv) if (sizeof(off_t) != 8) exit (1); o = 2000000000; - sprintf (tmp_str, "%Ld", o+o+o); - if (strcmp (tmp_str, "6000000000")) - exit (1); + if ((o+o+o) / 3 != o) + exit(1); fd = creat ("config.tmp", 0644); if (fd < 0) exit (1);