"Sumit Pandya" <[EMAIL PROTECTED]> writes:

> Please guide me further for successfully patching/building.

Thanks for the bug report.  I installed the following patch into CVS
autoconf.

2004-04-20  Paul Eggert  <[EMAIL PROTECTED]>

        * tests/c.at (C keywords): Don't assume that GCC supports
        "restrict" and "inline", as sufficiently-old GCC versions do not
        (also, GCC configured to be in pedantic C89 mode does not).
        Problem reported by Sumit Pandya in:
        http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html

Index: tests/c.at
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/c.at,v
retrieving revision 1.3
diff -p -u -r1.3 c.at
--- tests/c.at  12 Apr 2003 20:53:19 -0000      1.3
+++ tests/c.at  20 Apr 2004 20:04:01 -0000
@@ -2,7 +2,7 @@
 
 AT_BANNER([C low level compiling/preprocessing macros.])
 
-# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -74,16 +74,14 @@ AT_CLEANUP
 ## C keywords.  ##
 ## ------------ ##
 
-# GCC supports `const', `inline', `restrict', and `volatile'.
+# GCC supports `const' and `volatile'.
 AT_CHECK_MACRO([C keywords],
 [[AC_PROG_CC
 AC_C_CONST
-AC_C_INLINE
-AC_C_RESTRICT
 AC_C_VOLATILE
-case $GCC,$ac_cv_c_const,$ac_cv_c_inline,$ac_cv_c_restrict,$ac_cv_c_volatile in
+case $GCC,$ac_cv_c_const,$ac_cv_c_volatile in
  yes,*no*)
-   AC_MSG_ERROR([failed to detect `const', `inline', `restrict', or `volatile' 
support]);;
+   AC_MSG_ERROR([failed to detect `const' or `volatile' support]);;
 esac
 ]])
 


Reply via email to