~ubuntu-branches/ubuntu/raring/gnutls26/raring

« back to all changes in this revision

Viewing changes to gl/m4/close.m4

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# close.m4 serial 3
2
 
dnl Copyright (C) 2008-2009 Free Software Foundation, Inc.
 
1
# close.m4 serial 5
 
2
dnl Copyright (C) 2008-2010 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
9
9
  m4_ifdef([gl_PREREQ_SYS_H_WINSOCK2], [
10
10
    gl_PREREQ_SYS_H_WINSOCK2
11
11
    if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
 
12
      dnl Even if the 'socket' module is not used here, another part of the
 
13
      dnl application may use it and pass file descriptors that refer to
 
14
      dnl sockets to the close() function. So enable the support for sockets.
12
15
      gl_REPLACE_CLOSE
13
16
    fi
14
17
  ])
17
20
AC_DEFUN([gl_REPLACE_CLOSE],
18
21
[
19
22
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
20
 
  if test $REPLACE_CLOSE != 1; then
21
 
    AC_LIBOBJ([close])
22
 
  fi
23
23
  REPLACE_CLOSE=1
 
24
  AC_LIBOBJ([close])
24
25
  gl_REPLACE_FCLOSE
25
26
])