comparison m4/locale_h.m4 @ 14186:cd4635d4dbe6

assume <ctype.h>, ..., <time.h> exist For years gnulib has been assuming the existence of the headers <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>, <stdio.h>, <stdlib.h>, <string.h>, and <time.h>. Omit checks for them, since they don't appear to be needed. * README (Portability guidelines): Document this. * lib/flock.c: Assume <fcntl.h> exists. * lib/regex_internal.h: Assume <locale.h> exists. * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists. * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists. * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists. * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise. * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists. * m4/regex.m4 (gl_REGEX): Likewise. * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists. * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists. * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists. * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists. * tests/test-argp.c: Likewise. * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 19 Jan 2011 22:15:41 -0800
parents 97fc9a21a8fb
children 960b09d2f33f
comparison
equal deleted inserted replaced
14185:2be94b732a01 14186:cd4635d4dbe6
1 # locale_h.m4 serial 11 1 # locale_h.m4 serial 12
2 dnl Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. 2 dnl Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation 3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it, 4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved. 5 dnl with or without modifications, as long as this notice is preserved.
6 6
53 gl_cv_header_locale_h_needs_xlocale_h=no 53 gl_cv_header_locale_h_needs_xlocale_h=no
54 fi 54 fi
55 AC_SUBST([HAVE_XLOCALE_H]) 55 AC_SUBST([HAVE_XLOCALE_H])
56 56
57 dnl <locale.h> is always overridden, because of GNULIB_POSIXCHECK. 57 dnl <locale.h> is always overridden, because of GNULIB_POSIXCHECK.
58 gl_CHECK_NEXT_HEADERS([locale.h]) 58 gl_NEXT_HEADERS([locale.h])
59 59
60 if test -n "$STDDEF_H" \ 60 if test -n "$STDDEF_H" \
61 || test $gl_cv_header_locale_h_posix2001 = no \ 61 || test $gl_cv_header_locale_h_posix2001 = no \
62 || test $gl_cv_header_locale_h_needs_xlocale_h = yes; then 62 || test $gl_cv_header_locale_h_needs_xlocale_h = yes; then
63 gl_REPLACE_LOCALE_H 63 gl_REPLACE_LOCALE_H