From: Paul Eggert Date: Mon, 18 Dec 2006 22:26:35 +0000 (+0000) Subject: * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69d25acfd85067031a54285fb933d2e3ccfb0055;p=pspp * 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 --- diff --git a/ChangeLog b/ChangeLog index fe3b8add8b..afaf168236 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-12-18 Paul Eggert + + * 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 and Eric Blake diff --git a/m4/stdint.m4 b/m4/stdint.m4 index 6fa651845b..92cb832b1b 100644 --- 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 @@ struct s { ]])], [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 , and for dnl (used in Linux libc4 >= 4.6.7 and libc5). AC_CHECK_HEADERS([sys/inttypes.h sys/bitypes.h])