~ubuntu-branches/ubuntu/precise/wget/precise-proposed

« back to all changes in this revision

Viewing changes to m4/arpa_inet_h.m4

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-10-19 00:00:09 UTC
  • mfrom: (2.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20111019000009-8p33w3wz4b1rdri0
Tags: 1.13-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add wget-udeb to ship wget.gnu as alternative to busybox wget
    implementation.
  - Depend on libssl-dev 0.9.8k-7ubuntu4 (LP: #503339)
* Dropped changes, superseded in Debian:
  - Keep build dependencies in main:
    + debian/control: remove info2man build-dep
    + debian/patches/series: disable wget-infopod_generated_manpage
  - Mark wget Multi-Arch: foreign, so packages that aren't of the same arch
    can depend on it.
* Pass --with-ssl=openssl; we don't want to use gnutls, there's no udeb for
  it.
* Add a second build pass for the udeb, so we can build without libidn.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# arpa_inet_h.m4 serial 12
 
2
dnl Copyright (C) 2006, 2008-2011 Free Software Foundation, Inc.
 
3
dnl This file is free software; the Free Software Foundation
 
4
dnl gives unlimited permission to copy and/or distribute it,
 
5
dnl with or without modifications, as long as this notice is preserved.
 
6
 
 
7
dnl Written by Simon Josefsson and Bruno Haible
 
8
 
 
9
AC_DEFUN([gl_HEADER_ARPA_INET],
 
10
[
 
11
  dnl Use AC_REQUIRE here, so that the default behavior below is expanded
 
12
  dnl once only, before all statements that occur in other macros.
 
13
  AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
 
14
 
 
15
  AC_CHECK_HEADERS_ONCE([arpa/inet.h])
 
16
  if test $ac_cv_header_arpa_inet_h = yes; then
 
17
    HAVE_ARPA_INET_H=1
 
18
  else
 
19
    HAVE_ARPA_INET_H=0
 
20
  fi
 
21
  AC_SUBST([HAVE_ARPA_INET_H])
 
22
  dnl <arpa/inet.h> is always overridden, because of GNULIB_POSIXCHECK.
 
23
  gl_CHECK_NEXT_HEADERS([arpa/inet.h])
 
24
 
 
25
  AC_REQUIRE([gl_FEATURES_H])
 
26
 
 
27
  dnl Check for declarations of anything we want to poison if the
 
28
  dnl corresponding gnulib module is not in use.
 
29
  gl_WARN_ON_USE_PREPARE([[
 
30
/* On some systems, this header is not self-consistent.  */
 
31
#if !(defined __GLIBC__ || defined __UCLIBC__)
 
32
# include <sys/socket.h>
 
33
#endif
 
34
#ifdef __TANDEM
 
35
# include <netdb.h>
 
36
#endif
 
37
#include <arpa/inet.h>
 
38
    ]], [inet_ntop inet_pton])
 
39
])
 
40
 
 
41
AC_DEFUN([gl_ARPA_INET_MODULE_INDICATOR],
 
42
[
 
43
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
 
44
  AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
 
45
  gl_MODULE_INDICATOR_SET_VARIABLE([$1])
 
46
])
 
47
 
 
48
AC_DEFUN([gl_ARPA_INET_H_DEFAULTS],
 
49
[
 
50
  GNULIB_INET_NTOP=0;     AC_SUBST([GNULIB_INET_NTOP])
 
51
  GNULIB_INET_PTON=0;     AC_SUBST([GNULIB_INET_PTON])
 
52
  dnl Assume proper GNU behavior unless another module says otherwise.
 
53
  HAVE_DECL_INET_NTOP=1;  AC_SUBST([HAVE_DECL_INET_NTOP])
 
54
  HAVE_DECL_INET_PTON=1;  AC_SUBST([HAVE_DECL_INET_PTON])
 
55
])