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

« back to all changes in this revision

Viewing changes to m4/utimbuf.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 9
 
2
 
 
3
# Copyright (C) 1998-2001, 2003-2004, 2007, 2009-2011 Free Software Foundation,
 
4
# Inc.
 
5
#
 
6
# This file is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy and/or distribute it,
 
8
# with or without modifications, as long as this notice is preserved.
 
9
 
 
10
dnl From Jim Meyering
 
11
 
 
12
dnl Define HAVE_STRUCT_UTIMBUF if `struct utimbuf' is declared --
 
13
dnl usually in <utime.h>.
 
14
dnl Some systems have utime.h but don't declare the struct anywhere.
 
15
 
 
16
AC_DEFUN([gl_CHECK_TYPE_STRUCT_UTIMBUF],
 
17
[
 
18
  AC_CHECK_HEADERS_ONCE([sys/time.h utime.h])
 
19
  AC_CACHE_CHECK([for struct utimbuf], [gl_cv_sys_struct_utimbuf],
 
20
    [AC_COMPILE_IFELSE(
 
21
       [AC_LANG_PROGRAM(
 
22
          [[#if HAVE_SYS_TIME_H
 
23
             #include <sys/time.h>
 
24
            #endif
 
25
            #include <time.h>
 
26
            #ifdef HAVE_UTIME_H
 
27
             #include <utime.h>
 
28
            #endif
 
29
          ]],
 
30
          [[static struct utimbuf x; x.actime = x.modtime;]])],
 
31
       [gl_cv_sys_struct_utimbuf=yes],
 
32
       [gl_cv_sys_struct_utimbuf=no])])
 
33
 
 
34
  if test $gl_cv_sys_struct_utimbuf = yes; then
 
35
    AC_DEFINE([HAVE_STRUCT_UTIMBUF], [1],
 
36
      [Define if struct utimbuf is declared -- usually in <utime.h>.
 
37
       Some systems have utime.h but don't declare the struct anywhere. ])
 
38
  fi
 
39
])