getdomainname: Move AC_LIBOBJ invocations to module description.
[pspp] / modules / ftello
index 0cf160c981f40b85c336b8ef8a7d4eef5eb6eddc..73aa81157ef79dd40d70dea738b8f3f96a0c218c 100644 (file)
@@ -8,15 +8,20 @@ m4/fseeko.m4
 m4/ftello.m4
 
 Depends-on:
-extensions
-lseek
 stdio
+extensions
+lseek           [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1]
+# Just to guarantee consistency between ftell() and ftello().
+ftell
 
 configure.ac-early:
 AC_REQUIRE([AC_FUNC_FSEEKO])
 
 configure.ac:
 gl_FUNC_FTELLO
+if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
+  AC_LIBOBJ([ftello])
+fi
 gl_STDIO_MODULE_INDICATOR([ftello])
 
 Makefile.am: