~ubuntu-branches/ubuntu/quantal/gnutls26/quantal

« back to all changes in this revision

Viewing changes to lib/gl/m4/strings_h.m4

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Configure a replacement for <string.h>.
 
2
# serial 3
2
3
 
3
 
# Copyright (C) 2007 Free Software Foundation, Inc.
 
4
# Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc.
4
5
# This file is free software; the Free Software Foundation
5
6
# gives unlimited permission to copy and/or distribute it,
6
7
# with or without modifications, as long as this notice is preserved.
16
17
[
17
18
  AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
18
19
  gl_CHECK_NEXT_HEADERS([strings.h])
 
20
 
 
21
  dnl Check for declarations of anything we want to poison if the
 
22
  dnl corresponding gnulib module is not in use.
 
23
  gl_WARN_ON_USE_PREPARE([[#include <strings.h>
 
24
    ]], [strcasecmp strncasecmp])
19
25
])
20
26
 
21
27
AC_DEFUN([gl_STRINGS_MODULE_INDICATOR],
22
28
[
23
29
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
24
30
  AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
25
 
  GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
 
31
  gl_MODULE_INDICATOR_SET_VARIABLE([$1])
26
32
])
27
33
 
28
34
AC_DEFUN([gl_HEADER_STRINGS_H_DEFAULTS],