~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to m4/fnmatch.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Check for fnmatch - serial 7.
 
1
# Check for fnmatch - serial 9.
2
2
 
3
 
# Copyright (C) 2000-2007, 2009-2011 Free Software Foundation, Inc.
 
3
# Copyright (C) 2000-2007, 2009-2012 Free Software Foundation, Inc.
4
4
# This file is free software; the Free Software Foundation
5
5
# gives unlimited permission to copy and/or distribute it,
6
6
# with or without modifications, as long as this notice is preserved.
21
21
 
22
22
  FNMATCH_H=
23
23
  gl_fnmatch_required_lowercase=`
24
 
    echo $gl_fnmatch_required | tr '[[A-Z]]' '[[a-z]]'
 
24
    echo $gl_fnmatch_required | LC_ALL=C tr '[[A-Z]]' '[[a-z]]'
25
25
  `
26
26
  gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
27
27
  AC_CACHE_CHECK([for working $gl_fnmatch_required fnmatch],
150
150
    [Define to a replacement function name for fnmatch().])
151
151
  dnl Prerequisites of lib/fnmatch.c.
152
152
  AC_REQUIRE([AC_TYPE_MBSTATE_T])
153
 
  AC_CHECK_DECLS([isblank], [], [], [#include <ctype.h>])
 
153
  AC_CHECK_DECLS([isblank], [], [], [[#include <ctype.h>]])
154
154
  AC_CHECK_FUNCS_ONCE([btowc isblank iswctype mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy])
155
155
  AC_CHECK_HEADERS_ONCE([wctype.h])
156
156
])