2011-10-22 16:24:32 +02:00
|
|
|
# close.m4 serial 8
|
Update Gnulib; add new modules.
This updates Gnulib to v0.0-4889-ge375fe3.
* m4/gnulib-cache.m4: Add `accept', `bind', `close', `connect',
`getpeername', `getsockname', `getsockopt', `listen', `malloc',
`malloca', `recv', `recvfrom', `send', `sendto', `setsockopt',
`shutdown', `socket', and `sockets', requested by
Jan Nieuwenhuizen <janneke-list@xs4all.nl> for cross-MinGW32 builds.
Add `trunc', requested by Mark H Weaver <mhw@netris.org>.
2011-02-14 11:36:25 +01:00
|
|
|
dnl Copyright (C) 2008-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,
|
|
|
|
|
dnl with or without modifications, as long as this notice is preserved.
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([gl_FUNC_CLOSE],
|
|
|
|
|
[
|
2011-10-22 16:24:32 +02:00
|
|
|
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
|
|
|
|
|
AC_REQUIRE([gl_MSVC_INVAL])
|
|
|
|
|
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
|
|
|
|
|
REPLACE_CLOSE=1
|
|
|
|
|
fi
|
Update Gnulib; add new modules.
This updates Gnulib to v0.0-4889-ge375fe3.
* m4/gnulib-cache.m4: Add `accept', `bind', `close', `connect',
`getpeername', `getsockname', `getsockopt', `listen', `malloc',
`malloca', `recv', `recvfrom', `send', `sendto', `setsockopt',
`shutdown', `socket', and `sockets', requested by
Jan Nieuwenhuizen <janneke-list@xs4all.nl> for cross-MinGW32 builds.
Add `trunc', requested by Mark H Weaver <mhw@netris.org>.
2011-02-14 11:36:25 +01:00
|
|
|
m4_ifdef([gl_PREREQ_SYS_H_WINSOCK2], [
|
|
|
|
|
gl_PREREQ_SYS_H_WINSOCK2
|
|
|
|
|
if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
|
|
|
|
|
dnl Even if the 'socket' module is not used here, another part of the
|
|
|
|
|
dnl application may use it and pass file descriptors that refer to
|
|
|
|
|
dnl sockets to the close() function. So enable the support for sockets.
|
2011-10-22 16:24:32 +02:00
|
|
|
REPLACE_CLOSE=1
|
|
|
|
|
fi
|
|
|
|
|
])
|
|
|
|
|
dnl Replace close() for supporting the gnulib-defined fchdir() function,
|
|
|
|
|
dnl to keep fchdir's bookkeeping up-to-date.
|
|
|
|
|
m4_ifdef([gl_FUNC_FCHDIR], [
|
|
|
|
|
if test $REPLACE_CLOSE = 0; then
|
|
|
|
|
gl_TEST_FCHDIR
|
|
|
|
|
if test $HAVE_FCHDIR = 0; then
|
|
|
|
|
REPLACE_CLOSE=1
|
|
|
|
|
fi
|
Update Gnulib; add new modules.
This updates Gnulib to v0.0-4889-ge375fe3.
* m4/gnulib-cache.m4: Add `accept', `bind', `close', `connect',
`getpeername', `getsockname', `getsockopt', `listen', `malloc',
`malloca', `recv', `recvfrom', `send', `sendto', `setsockopt',
`shutdown', `socket', and `sockets', requested by
Jan Nieuwenhuizen <janneke-list@xs4all.nl> for cross-MinGW32 builds.
Add `trunc', requested by Mark H Weaver <mhw@netris.org>.
2011-02-14 11:36:25 +01:00
|
|
|
fi
|
|
|
|
|
])
|
|
|
|
|
])
|