VirtualBox

source: kBuild/trunk/src/grep/m4/ctype_h.m4@ 3610

Last change on this file since 3610 was 3529, checked in by bird, 3 years ago

Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.

  • Property svn:eol-style set to LF
File size: 1.6 KB
Line 
1# ctype_h.m4 serial 9
2dnl Copyright (C) 2009-2021 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved.
6
7AC_DEFUN_ONCE([gl_CTYPE_H],
8[
9 AC_REQUIRE([gl_CTYPE_H_DEFAULTS])
10
11 dnl <ctype.h> is always overridden, because of GNULIB_POSIXCHECK.
12 gl_NEXT_HEADERS([ctype.h])
13
14 dnl Check for declarations of anything we want to poison if the
15 dnl corresponding gnulib module is not in use.
16 gl_WARN_ON_USE_PREPARE([[#include <ctype.h>
17 ]], [isblank])
18])
19
20# gl_CTYPE_MODULE_INDICATOR([modulename])
21# sets the shell variable that indicates the presence of the given module
22# to a C preprocessor expression that will evaluate to 1.
23# This macro invocation must not occur in macros that are AC_REQUIREd.
24AC_DEFUN([gl_CTYPE_MODULE_INDICATOR],
25[
26 dnl Ensure to expand the default settings once only.
27 gl_CTYPE_H_REQUIRE_DEFAULTS
28 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
29])
30
31# Initializes the default values for AC_SUBSTed shell variables.
32# This macro must not be AC_REQUIREd. It must only be invoked, and only
33# outside of macros or in macros that are not AC_REQUIREd.
34AC_DEFUN([gl_CTYPE_H_REQUIRE_DEFAULTS],
35[
36 m4_defun(GL_MODULE_INDICATOR_PREFIX[_CTYPE_H_MODULE_INDICATOR_DEFAULTS], [
37 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISBLANK])
38 ])
39 m4_require(GL_MODULE_INDICATOR_PREFIX[_CTYPE_H_MODULE_INDICATOR_DEFAULTS])
40 AC_REQUIRE([gl_CTYPE_H_DEFAULTS])
41])
42
43AC_DEFUN([gl_CTYPE_H_DEFAULTS],
44[
45 dnl Assume proper GNU behavior unless another module says otherwise.
46 HAVE_ISBLANK=1; AC_SUBST([HAVE_ISBLANK])
47])
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette