annotate m4/locale_h.m4 @ 12261:e96aac709428

autoupdate
author Karl Berry <karl@freefriends.org>
date Mon, 09 Nov 2009 06:10:03 -0800
parents ff3dd373542b
children 2da64958ab60
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11832
ff3dd373542b stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents: 8998
diff changeset
1 # locale_h.m4 serial 3
ff3dd373542b stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents: 8998
diff changeset
2 dnl Copyright (C) 2007, 2009 Free Software Foundation, Inc.
8660
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 AC_DEFUN([gl_LOCALE_H],
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 [
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 AC_CACHE_CHECK([whether locale.h conforms to POSIX],
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 [gl_cv_header_working_locale_h],
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 [AC_TRY_COMPILE([#include <locale.h>
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 int x = LC_MESSAGES;], [],
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 [gl_cv_header_working_locale_h=yes],
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 [gl_cv_header_working_locale_h=no])])
11832
ff3dd373542b stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents: 8998
diff changeset
15
ff3dd373542b stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents: 8998
diff changeset
16 dnl If <stddef.h> is replaced, then <locale.h> must also be replaced.
ff3dd373542b stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents: 8998
diff changeset
17 AC_REQUIRE([gl_STDDEF_H])
ff3dd373542b stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents: 8998
diff changeset
18
ff3dd373542b stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents: 8998
diff changeset
19 if test $gl_cv_header_working_locale_h = yes && test -z "$STDDEF_H"; then
8660
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 LOCALE_H=
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 else
8998
442682a45bcd * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
Paul Eggert <eggert@cs.ucla.edu>
parents: 8660
diff changeset
22 gl_CHECK_NEXT_HEADERS([locale.h])
8660
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 LOCALE_H=locale.h
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 fi
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 AC_SUBST([LOCALE_H])
f682656899d3 New module 'locale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 ])