fsync test: Avoid test failure on MacOS X and AIX.
[pspp] / modules / select
index 299d105b9c7ec341972e1d928146b2b2bab86a3e..5969a4eaf20680b05b86d719b5f31418912e2255 100644 (file)
@@ -6,11 +6,15 @@ lib/select.c
 m4/select.m4
 
 Depends-on:
-alloca
 sys_select
+alloca          [test $REPLACE_SELECT = 1]
+sockets         [test $REPLACE_SELECT = 1]
 
 configure.ac:
 gl_FUNC_SELECT
+if test $REPLACE_SELECT = 1; then
+  AC_LIBOBJ([select])
+fi
 gl_SYS_SELECT_MODULE_INDICATOR([select])
 
 Makefile.am:
@@ -18,6 +22,9 @@ Makefile.am:
 Include:
 <sys/select.h>
 
+Link:
+$(LIBSOCKET)
+
 License:
 LGPLv2+