~ubuntu-branches/ubuntu/wily/gsasl/wily-proposed

« back to all changes in this revision

Viewing changes to gl/m4/arpa_inet_h.m4

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-04-14 07:26:51 UTC
  • mfrom: (2.1.9 experimental)
  • Revision ID: james.westby@ubuntu.com-20100414072651-hoc2231ulo8onq2x
Tags: 1.4.4-1ubuntu1
* Merge from Debian experimental (LP: #548480). Bugfix only release.
  Remaining changes:
  - debian/rules: Include clean-la.mk from cdbs to clean up the
    dependency_libs field in libgsasl.la.
* debian/control: drop libgsasl7 Depends on libgcrypt to what we have in
  Lucid (1.4.4-5). See Debian bug #564661.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# arpa_inet_h.m4 serial 5
2
 
dnl Copyright (C) 2006, 2008 Free Software Foundation, Inc.
 
1
# arpa_inet_h.m4 serial 7
 
2
dnl Copyright (C) 2006, 2008, 2009, 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.
16
16
  if test $ac_cv_header_arpa_inet_h = yes; then
17
17
    HAVE_ARPA_INET_H=1
18
18
  else
19
 
    ARPA_INET_H='arpa/inet.h'
20
19
    HAVE_ARPA_INET_H=0
21
20
  fi
22
21
  AC_SUBST([HAVE_ARPA_INET_H])
23
 
  dnl Execute this unconditionally, because ARPA_INET_H may be set by other
24
 
  dnl modules, after this code is executed.
 
22
  dnl <arpa/inet.h> is always overridden, because of GNULIB_POSIXCHECK.
25
23
  gl_CHECK_NEXT_HEADERS([arpa/inet.h])
 
24
 
 
25
  dnl Check for declarations of anything we want to poison if the
 
26
  dnl corresponding gnulib module is not in use.
 
27
  gl_WARN_ON_USE_PREPARE([[
 
28
/* On some systems, this header is not self-consistent.  */
 
29
#ifndef __GLIBC__
 
30
# include <sys/socket.h>
 
31
#endif
 
32
#include <arpa/inet.h>
 
33
    ]], [inet_ntop inet_pton])
26
34
])
27
35
 
28
36
dnl Unconditionally enables the replacement of <arpa/inet.h>.
29
37
AC_DEFUN([gl_REPLACE_ARPA_INET_H],
30
38
[
31
 
  AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
32
 
  ARPA_INET_H='arpa/inet.h'
 
39
  dnl This is a no-op, because <arpa/inet.h> is always overridden.
 
40
  :
33
41
])
34
42
 
35
43
AC_DEFUN([gl_ARPA_INET_MODULE_INDICATOR],
46
54
  dnl Assume proper GNU behavior unless another module says otherwise.
47
55
  HAVE_DECL_INET_NTOP=1;  AC_SUBST([HAVE_DECL_INET_NTOP])
48
56
  HAVE_DECL_INET_PTON=1;  AC_SUBST([HAVE_DECL_INET_PTON])
49
 
  ARPA_INET_H='';         AC_SUBST([ARPA_INET_H])
50
57
])