~ubuntu-branches/ubuntu/lucid/man-db/lucid-updates

« back to all changes in this revision

Viewing changes to gnulib/m4/gnulib-common.m4

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-08-26 11:38:46 UTC
  • mfrom: (1.1.9 upstream) (5.2.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090826113846-2702k94p5epik9ht
Tags: 2.5.6-1
* New upstream release:
  - Implement 'man -K', which was the last major remaining missing feature
    when comparing man-db with the man package (closes: #135926, LP:
    #390575).
  - Note that the exact rendering of (e.g.) italic text may vary depending
    on the output device (closes: #516808).
  - Don't create unnecessary database directories (closes: #472919).
  - Explicitly state that -P/$PAGER/$MANPAGER identifies a single command
    with no pipes (closes: #363250).
  - Make whatis/apropos only display any given manual page, or pointers to
    it, once (LP: #27113).
  - Map CP1251 encoding to LESSCHARSET=windows, per less(1) (closes:
    #539690).
  - Loop through semicolon-separated coding tags in the first line of
    manual pages, and convert Emacs coding tags to ones that libiconv
    understands (closes: #496604).
  - Convert text to UTF-8 and then (if necessary) to the target encoding.
    This allows us to distinguish between "text not in input encoding" and
    "characters not representable in output encoding" (closes: #514963).
  - Replace database entries if the mtime of the new data is newer than
    that of the old data, even if the new data represents a symlink rather
    than a regular file (closes: #490582).
  - Increase limit on NAME sections from 2048 bytes to 8192, since some
    pages exceeding the previous limit have been observed in the wild
    (closes: #489907).
  - Cope with some more cases of database corruption (closes: #187750).
  - By default, man will now try to interpret pairs of manual page names
    given on the command line as equivalent to a single manual page name
    containing a hyphen (e.g. 'man foo bar' => foo-bar(1)). This supports
    the common pattern of programs that implement a number of subcommands,
    allowing them to provide manual pages for each that can be accessed
    using similar syntax as would be used to invoke the subcommands
    themselves.
* Upgrade to debhelper v7.
* Reverse the direction of the man and mandb symlinks, and migrate any
  statoverrides referring to the old locations in /usr/lib/man-db/.
* Run cron jobs at idle I/O priority if dpkg 1.15.0 or newer is installed
  (closes: #448400).
* Policy version 3.8.2: no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# gnulib-common.m4 serial 5
2
 
dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
1
# gnulib-common.m4 serial 11
 
2
dnl Copyright (C) 2007-2009 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.
8
8
# is expanded unconditionally through gnulib-tool magic.
9
9
AC_DEFUN([gl_COMMON], [
10
10
  dnl Use AC_REQUIRE here, so that the code is expanded once only.
 
11
  AC_REQUIRE([gl_00GNULIB])
11
12
  AC_REQUIRE([gl_COMMON_BODY])
12
13
])
13
14
AC_DEFUN([gl_COMMON_BODY], [
21
22
#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
22
23
# define __GNUC_STDC_INLINE__ 1
23
24
#endif])
 
25
  AH_VERBATIM([unused_parameter],
 
26
[/* Define as a marker that can be attached to function parameter declarations
 
27
   for parameters that are not used.  This helps to reduce warnings, such as
 
28
   from GCC -Wunused-parameter.  */
 
29
#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
 
30
# define _UNUSED_PARAMETER_ __attribute__ ((__unused__))
 
31
#else
 
32
# define _UNUSED_PARAMETER_
 
33
#endif
 
34
])
24
35
])
25
36
 
26
37
# gl_MODULE_INDICATOR([modulename])
42
53
# is a backport of autoconf-2.60's AC_PROG_MKDIR_P.
43
54
# Remove this macro when we can assume autoconf >= 2.60.
44
55
m4_ifdef([AC_PROG_MKDIR_P], [], [
45
 
  AC_DEFUN([AC_PROG_MKDIR_P],
 
56
  AC_DEFUN_ONCE([AC_PROG_MKDIR_P],
46
57
    [AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
47
58
     MKDIR_P='$(mkdir_p)'
48
59
     AC_SUBST([MKDIR_P])])])
53
64
# works.
54
65
# This definition can be removed once autoconf >= 2.62 can be assumed.
55
66
AC_DEFUN([AC_C_RESTRICT],
56
 
[AC_CACHE_CHECK([for C/C++ restrict keyword], ac_cv_c_restrict,
 
67
[AC_CACHE_CHECK([for C/C++ restrict keyword], [ac_cv_c_restrict],
57
68
  [ac_cv_c_restrict=no
58
69
   # The order here caters to the fact that C++ does not require restrict.
59
70
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
89
100
   *)  AC_DEFINE_UNQUOTED([restrict], [$ac_cv_c_restrict]) ;;
90
101
 esac
91
102
])
 
103
 
 
104
# gl_BIGENDIAN
 
105
# is like AC_C_BIGENDIAN, except that it can be AC_REQUIREd.
 
106
# Note that AC_REQUIRE([AC_C_BIGENDIAN]) does not work reliably because some
 
107
# macros invoke AC_C_BIGENDIAN with arguments.
 
108
AC_DEFUN([gl_BIGENDIAN],
 
109
[
 
110
  AC_C_BIGENDIAN
 
111
])
 
112
 
 
113
# gl_CACHE_VAL_SILENT(cache-id, command-to-set-it)
 
114
# is like AC_CACHE_VAL(cache-id, command-to-set-it), except that it does not
 
115
# output a spurious "(cached)" mark in the midst of other configure output.
 
116
# This macro should be used instead of AC_CACHE_VAL when it is not surrounded
 
117
# by an AC_MSG_CHECKING/AC_MSG_RESULT pair.
 
118
AC_DEFUN([gl_CACHE_VAL_SILENT],
 
119
[
 
120
  saved_as_echo_n="$as_echo_n"
 
121
  as_echo_n=':'
 
122
  AC_CACHE_VAL([$1], [$2])
 
123
  as_echo_n="$saved_as_echo_n"
 
124
])