]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(C keywords): Don't assume that GCC supports
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 20 Apr 2004 20:14:52 +0000 (20:14 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 20 Apr 2004 20:14:52 +0000 (20:14 +0000)
"restrict" and "inline".

tests/c.at

index 8ddc2b413de0873cf2534fc8fab921bbac954eb3..2ba29f05adbea58592402b82be53ab8790d43e0d 100644 (file)
@@ -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
 ]])