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

« back to all changes in this revision

Viewing changes to m4/fcntl_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
# serial 13
 
2
# Configure fcntl.h.
 
3
dnl Copyright (C) 2006-2007, 2009-2011 Free Software Foundation, Inc.
 
4
dnl This file is free software; the Free Software Foundation
 
5
dnl gives unlimited permission to copy and/or distribute it,
 
6
dnl with or without modifications, as long as this notice is preserved.
 
7
 
 
8
dnl Written by Paul Eggert.
 
9
 
 
10
AC_DEFUN([gl_FCNTL_H],
 
11
[
 
12
  AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
 
13
  AC_REQUIRE([gl_FCNTL_O_FLAGS])
 
14
  gl_NEXT_HEADERS([fcntl.h])
 
15
 
 
16
  dnl Check for declarations of anything we want to poison if the
 
17
  dnl corresponding gnulib module is not in use, if it is not common
 
18
  dnl enough to be declared everywhere.
 
19
  gl_WARN_ON_USE_PREPARE([[#include <fcntl.h>
 
20
    ]], [fcntl openat])
 
21
])
 
22
 
 
23
AC_DEFUN([gl_FCNTL_MODULE_INDICATOR],
 
24
[
 
25
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
 
26
  AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
 
27
  gl_MODULE_INDICATOR_SET_VARIABLE([$1])
 
28
  dnl Define it also as a C macro, for the benefit of the unit tests.
 
29
  gl_MODULE_INDICATOR_FOR_TESTS([$1])
 
30
])
 
31
 
 
32
AC_DEFUN([gl_FCNTL_H_DEFAULTS],
 
33
[
 
34
  GNULIB_FCNTL=0;        AC_SUBST([GNULIB_FCNTL])
 
35
  GNULIB_NONBLOCKING=0;  AC_SUBST([GNULIB_NONBLOCKING])
 
36
  GNULIB_OPEN=0;         AC_SUBST([GNULIB_OPEN])
 
37
  GNULIB_OPENAT=0;       AC_SUBST([GNULIB_OPENAT])
 
38
  dnl Assume proper GNU behavior unless another module says otherwise.
 
39
  HAVE_FCNTL=1;          AC_SUBST([HAVE_FCNTL])
 
40
  HAVE_OPENAT=1;         AC_SUBST([HAVE_OPENAT])
 
41
  REPLACE_FCNTL=0;       AC_SUBST([REPLACE_FCNTL])
 
42
  REPLACE_OPEN=0;        AC_SUBST([REPLACE_OPEN])
 
43
  REPLACE_OPENAT=0;      AC_SUBST([REPLACE_OPENAT])
 
44
])