fsync test: Avoid test failure on MacOS X and AIX.
[pspp] / modules / getusershell
index 0ebcac04b4cd6743a03c2fe753bd9e210f781264..26f99e58cadecc1839668e717ad446327f9dbf58 100644 (file)
@@ -6,15 +6,22 @@ lib/getusershell.c
 m4/getusershell.m4
 
 Depends-on:
-stdio-safer
-xalloc
+unistd
+extensions
+fopen-safer     [test $HAVE_GETUSERSHELL = 0]
+xalloc          [test $HAVE_GETUSERSHELL = 0]
 
 configure.ac:
 gl_FUNC_GETUSERSHELL
+if test $HAVE_GETUSERSHELL = 0; then
+  AC_LIBOBJ([getusershell])
+fi
+gl_UNISTD_MODULE_INDICATOR([getusershell])
 
 Makefile.am:
 
 Include:
+<unistd.h>
 
 License:
 GPL