Mercurial > hg > octave-kai > gnulib-hg
changeset 7728:e6be6759115f
* m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
conforms to C99, rather than relying on the user's environment
setting of STDINT_H.
2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 18 Dec 2006 22:26:35 +0000 |
parents | 9711a2d74170 |
children | 9fef2820ed68 |
files | ChangeLog m4/stdint.m4 |
diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-12-18 Paul Eggert <eggert@cs.ucla.edu> + + * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h + conforms to C99, rather than relying on the user's environment + setting of STDINT_H. + 2006-12-18 Paul Eggert <eggert@cs.ucla.edu> and Eric Blake <ebb9@byu.net>
--- a/m4/stdint.m4 +++ b/m4/stdint.m4 @@ -1,4 +1,4 @@ -# stdint.m4 serial 20 +# stdint.m4 serial 21 dnl Copyright (C) 2001-2002, 2004-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -192,8 +192,9 @@ ]])], [gl_cv_header_working_stdint_h=yes])]) fi - if test "$gl_cv_header_working_stdint_h" != yes; then - + if test "$gl_cv_header_working_stdint_h" = yes; then + STDINT_H= + else dnl Check for <sys/inttypes.h>, and for dnl <sys/bitypes.h> (used in Linux libc4 >= 4.6.7 and libc5). AC_CHECK_HEADERS([sys/inttypes.h sys/bitypes.h])