* m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
here...
* modules/select (configure.ac): ... to here.
+2011-05-21 Bruno Haible <bruno@clisp.org>
+
+ select: Respect rules for use of AC_LIBOBJ.
+ * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
+ here...
+ * modules/select (configure.ac): ... to here.
+
2011-05-21 Bruno Haible <bruno@clisp.org>
scandir: Move AC_LIBOBJ invocations to module description.
-# select.m4 serial 4
+# select.m4 serial 5
dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([gl_SOCKETS])
if test "$ac_cv_header_winsock2_h" = yes; then
REPLACE_SELECT=1
- AC_LIBOBJ([select])
else
dnl On Interix 3.5, select(0, NULL, NULL, NULL, timeout) fails with error
dnl EFAULT.
])
case "$gl_cv_func_select_supports0" in
*yes) ;;
- *)
- REPLACE_SELECT=1
- AC_LIBOBJ([select])
- ;;
+ *) REPLACE_SELECT=1 ;;
esac
fi
])
configure.ac:
gl_FUNC_SELECT
+if test $REPLACE_SELECT = 1; then
+ AC_LIBOBJ([select])
+fi
gl_SYS_SELECT_MODULE_INDICATOR([select])
Makefile.am: