From 7b375507aeb4c0d72d7d192c53e162a1312b0caa Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 6 Aug 2010 14:37:50 -0500 Subject: [svn-r19186] Bug fix: ID 1917 In some machine (Linux), when --disable-largefile is used, it claims it has fseeko64 but off64_t is NOT supported. Moved the test of fseeko64 and ftello64 to where fseek64 is so that they are tested only if off64_t is supported. Tested: h5committested. --- configure | 10 +++++----- configure.in | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/configure b/configure index f4dd68c..e0dc115 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in 19158 2010-07-30 18:21:54Z koziol . +# From configure.in Id: configure.in 19182 2010-08-06 17:51:53Z koziol . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.65 for HDF5 1.8.5-snap5. # @@ -21493,7 +21493,7 @@ off64_t n = 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : - for ac_func in lseek64 fseek64 ftruncate64 + for ac_func in lseek64 fseek64 fseeko64 ftello64 ftruncate64 do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" @@ -21507,11 +21507,11 @@ fi done else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipping test for lseek64(), fseek64(), ftruncate64()" >&5 -$as_echo "skipping test for lseek64(), fseek64(), ftruncate64()" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipping test for lseek64(), fseek64(), fseeko64 , ftello64, ftruncate64() because off64_t is not defined" >&5 +$as_echo "skipping test for lseek64(), fseek64(), fseeko64 , ftello64, ftruncate64() because off64_t is not defined" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -for ac_func in fseeko fseeko64 ftello ftello64 +for ac_func in fseeko ftello do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" diff --git a/configure.in b/configure.in index 1be03cb..a964fca 100644 --- a/configure.in +++ b/configure.in @@ -1368,9 +1368,9 @@ CPPFLAGS="$AM_CPPFLAGS $CPPFLAGS" AC_TRY_COMPILE([#include ], [off64_t n = 0;], - [AC_CHECK_FUNCS([lseek64 fseek64 ftruncate64])], - [AC_MSG_RESULT([skipping test for lseek64(), fseek64(), ftruncate64()])]) -AC_CHECK_FUNCS(fseeko fseeko64 ftello ftello64) + [AC_CHECK_FUNCS([lseek64 fseek64 fseeko64 ftello64 ftruncate64])], + [AC_MSG_RESULT([skipping test for lseek64(), fseek64(), fseeko64 , ftello64, ftruncate64() because off64_t is not defined])]) +AC_CHECK_FUNCS(fseeko ftello) AC_TRY_COMPILE([ #include #include ], -- cgit v0.12