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

« back to all changes in this revision

Viewing changes to m4/warnings.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
# warnings.m4 serial 2
 
2
dnl Copyright (C) 2008, 2009, 2010 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 From Simon Josefsson
 
8
 
 
9
# gl_AS_VAR_APPEND(VAR, VALUE)
 
10
# ----------------------------
 
11
# Provide the functionality of AS_VAR_APPEND if Autoconf does not have it.
 
12
m4_ifdef([AS_VAR_APPEND],
 
13
[m4_copy([AS_VAR_APPEND], [gl_AS_VAR_APPEND])],
 
14
[m4_define([gl_AS_VAR_APPEND],
 
15
[AS_VAR_SET([$1], [AS_VAR_GET([$1])$2])])])
 
16
 
 
17
# gl_WARN_ADD(PARAMETER, [VARIABLE = WARN_CFLAGS])
 
18
# ------------------------------------------------
 
19
# Adds parameter to WARN_CFLAGS if the compiler supports it.  For example,
 
20
# gl_WARN_ADD([-Wparentheses]).
 
21
AC_DEFUN([gl_WARN_ADD],
 
22
[AS_VAR_PUSHDEF([gl_Warn], [gl_cv_warn_$1])dnl
 
23
AC_CACHE_CHECK([whether compiler handles $1], [gl_Warn], [
 
24
  save_CPPFLAGS="$CPPFLAGS"
 
25
  CPPFLAGS="${CPPFLAGS} $1"
 
26
  AC_PREPROC_IFELSE([AC_LANG_PROGRAM([])],
 
27
                    [AS_VAR_SET([gl_Warn], [yes])],
 
28
                    [AS_VAR_SET([gl_Warn], [no])])
 
29
  CPPFLAGS="$save_CPPFLAGS"
 
30
])
 
31
AS_VAR_PUSHDEF([gl_Flags], m4_if([$2], [], [[WARN_CFLAGS]], [[$2]]))dnl
 
32
AS_VAR_IF([gl_Warn], [yes], [gl_AS_VAR_APPEND([gl_Flags], [" $1"])])
 
33
AS_VAR_POPDEF([gl_Flags])dnl
 
34
AS_VAR_POPDEF([gl_Warn])dnl
 
35
m4_ifval([$2], [AS_LITERAL_IF([$2], [AC_SUBST([$2])], [])])dnl
 
36
])