Ensure fseeko and ftello are declared on glibc systems.
[pspp] / m4 / fseeko.m4
index fd3f019f7ff2228acaf157f26b26ff14036b184e..86d42f40ccc9721abcfc9d600edf43266c407f18 100644 (file)
@@ -7,18 +7,13 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_FSEEKO],
 [
   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
-  gl_CHECK_FSEEKO
-  if test $gl_cv_func_fseeko = no; then
-    HAVE_FSEEKO=0
-  fi
-])
-
-AC_DEFUN([gl_CHECK_FSEEKO],
-[
   AC_REQUIRE([AC_PROG_CC])
   AC_CACHE_CHECK([for fseeko], [gl_cv_func_fseeko],
     [
       AC_TRY_LINK([#include <stdio.h>], [fseeko (stdin, 0, 0);],
         [gl_cv_func_fseeko=yes], [gl_cv_func_fseeko=no])
     ])
+  if test $gl_cv_func_fseeko = no; then
+    HAVE_FSEEKO=0
+  fi
 ])