Merge commit 'a39d4083cab589d7cd6a13e8a4b8db8875261d75'
[gnulib.git] / m4 / fseek.m4
index 80e4501..a5ea41d 100644 (file)
@@ -1,5 +1,5 @@
-# fseek.m4 serial 1
-dnl Copyright (C) 2007 Free Software Foundation, Inc.
+# fseek.m4 serial 4
+dnl Copyright (C) 2007, 2009-2014 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -9,8 +9,7 @@ AC_DEFUN([gl_FUNC_FSEEK],
   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_FSEEKO])
   dnl When fseeko needs fixes, fseek needs them too.
-  if test $REPLACE_FSEEKO != 0; then
-    AC_LIBOBJ([fseek])
+  if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
     REPLACE_FSEEK=1
   fi
 ])