| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Preparation for Clang 16.
Signed-off-by: Sam James <sam@gentoo.org>
|
| |
|
|
|
|
| |
http://www.gnu.org/software/autoconf-archive/MACRO-NAME.html
|
|
|
|
|
|
|
| |
The serial number corresponds to the number of commits that have
modified the macro in the Archive's Git repository. Refer to
http://www.gnu.org/software/libtool//manual/automake/Serials.html to
find out why these numbers are useful.
|
|
|
|
|
|
| |
disclaimer.
This has been suggested by the FSF on http://www.gnu.org/prep/maintain/html_node/License-Notices-for-Other-Files.html.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Consistently refer to this project as Autoconf Archive.
* Removed the LAST MODIFICATION section, because that information is redundant
in the presence of Git.
* COPYLEFT has been renamed to LICENSE: some licenses, like all-permissive,
are no copylefts.
|
|
|
|
|
|
|
|
| |
The last-modified-date of these macros didn't match their respective
last-modified-date in the GIT repository. A version bump remedies this
inconsistency. In hindsight, these dates should have bumped when the
distribution format changed; all macros had to be touched at this point
anyway.
|
|
The macro determines whether the "inline" keyword of a C99 compiler is
standards compliant or not. I am using this macro support differences
between gcc 4.2 (and earlier) and gcc 4.3 (and later) when using the
"-std= c99" option. It may also be useful for other compilers. (For
details of the differences between the compiler versions refer to
http:// gcc.gnu.org/gcc-4.3/porting_to.html "Sematic change of extern
inline")
Example configure.ac:
AC_INIT([foo], [0.1])
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_PROG_CC_C99
if test "$ac_cv_prog_cc_c99" == "no"; then
AC_MSG_ERROR([A C99 compiler is required.])
fi
AX_C99_INLINE
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
Example source file foo.h:
#ifdef HAVE_C99_INLINE
inline int myFunction(int a) { return a + 1; }
#else
static inline int myFunction(int a) { return a + 1; }
#endif
Example source foo.c:
extern inline int myFunction(int a);
|