~ubuntu-branches/ubuntu/gutsy/findutils/gutsy

« back to all changes in this revision

Viewing changes to gnulib/m4/wchar.m4

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2007-06-02 09:55:27 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070602095527-2lkz5t7wsm0yd2xy
Tags: 4.2.31-1
* Undo workaround for savannah #19550, since it is a glibc bug.
* New upstream bugfix release:
  - Fixes locate heap buffer overflow when using databases in old format.
    (CVE-2007-2452) Closes: #426862
  - make clean does not delete regexprops.texi if cross-building.
    (Closes: #420190)
  - [-version] instead of [--version] in locate --help. (Closes: #412459)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl A placeholder for ISO C99 <wchar.h>, for platforms that have issues.
 
2
 
 
3
dnl Copyright (C) 2007 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 Eric Blake.
 
9
 
 
10
# wchar.m4 serial 1
 
11
 
 
12
AC_DEFUN([gl_WCHAR_H],
 
13
[
 
14
  AC_CACHE_CHECK([whether <wchar.h> is standalone],
 
15
    [gl_cv_header_wchar_h_standalone],
 
16
    [AC_COMPILE_IFELSE([[#include <wchar.h>
 
17
wchar_t w;]],
 
18
      [gl_cv_header_wchar_h_standalone=yes],
 
19
      [gl_cv_header_wchar_h_standalone=no])])
 
20
  if test $gl_cv_header_wchar_h_standalone = yes; then
 
21
    WCHAR_H=
 
22
  else
 
23
    gl_ABSOLUTE_HEADER([wchar.h])
 
24
    ABSOLUTE_WCHAR_H=\"$gl_cv_absolute_wchar_h\"
 
25
    WCHAR_H=wchar.h
 
26
  fi
 
27
  AC_SUBST([ABSOLUTE_WCHAR_H])
 
28
  AC_SUBST([WCHAR_H])
 
29
])