error: depend on stdio
[gnulib.git] / modules / getdelim
index a9b7b2e..e84558c 100644 (file)
@@ -6,12 +6,18 @@ lib/getdelim.c
 m4/getdelim.m4
 
 Depends-on:
-extensions
 stdio
-realloc-posix
+extensions
+stdint          [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1]
+realloc-posix   [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1]
+errno           [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1]
 
 configure.ac:
 gl_FUNC_GETDELIM
+if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
+  AC_LIBOBJ([getdelim])
+  gl_PREREQ_GETDELIM
+fi
 gl_STDIO_MODULE_INDICATOR([getdelim])
 
 Makefile.am: