autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_C_INLINE test not robust enough?


From: autoconf
Subject: AC_C_INLINE test not robust enough?
Date: Tue, 26 Jun 2001 18:47:49 -0500
User-agent: Mutt/1.2.5i

AC_C_INLINE loops through "inline", "__inline__", and "__inline" to
determine the proper keyword for inline support. These are used in the
following code fragment to test for inline support:
  static $inline int static_foo () {return 0; }
  $inline int foo () {return 0; }

The IRIX C compiler has no problems with __inline. However, if a third
test is added:
  extern $inline int extern_foo ();

then the IRIX C compiler barfs. So, should we add a third test? GCC
accepts the extern test.

-- 
albert chin (address@hidden)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]