~ubuntu-branches/ubuntu/vivid/diffutils/vivid

« back to all changes in this revision

Viewing changes to m4/lstat.m4

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2010-02-13 11:49:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100213114900-09lz8jx6wct52qp8
Tags: 1:2.9-1
* New upstream release, now under GPL version 3 or later.
* There is now a --tab-size option. Closes: #82923.
* Manpage for cmp describes exit status. Closes: #200614.
* Manpage for diff describes exit status. Closes: #228441, #473233.
* The file de.po is now more recent. Closes: #313686.
* Fixed bad sdiff behaviour. Closes: #320222.
* Added wdiff to Suggests. Closes: #324627.
* Fixed cmp behaviour regarding stdout and stderr. Closes: #356083.
* The file ru.po is now more recent. Closes: #409274.
* The file es.po is now more recent. Closes: #418005, #481708.
* The file nl.po is now more recent. Closes: #427370.
* Modified watch file to use http instead of ftp.
* Removed .comment section from executables.
* Added Homepage field to control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# serial 20
 
2
 
 
3
# Copyright (C) 1997-2001, 2003-2010 Free Software Foundation, Inc.
 
4
#
 
5
# This file is free software; the Free Software Foundation
 
6
# gives unlimited permission to copy and/or distribute it,
 
7
# with or without modifications, as long as this notice is preserved.
 
8
 
 
9
dnl From Jim Meyering.
 
10
 
 
11
AC_DEFUN([gl_FUNC_LSTAT],
 
12
[
 
13
  AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
 
14
  dnl If lstat does not exist, the replacement <sys/stat.h> does
 
15
  dnl "#define lstat stat", and lstat.c is a no-op.
 
16
  AC_CHECK_FUNCS_ONCE([lstat])
 
17
  if test $ac_cv_func_lstat = yes; then
 
18
    AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
 
19
    if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
 
20
      dnl Note: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK does AC_LIBOBJ([lstat]).
 
21
      REPLACE_LSTAT=1
 
22
    fi
 
23
    # Prerequisites of lib/lstat.c.
 
24
    AC_REQUIRE([AC_C_INLINE])
 
25
  else
 
26
    HAVE_LSTAT=0
 
27
  fi
 
28
])