The following files use 'inline' but don't require AC_C_INLINE. lib/chdir-long.c lib/fatal-signal.c lib/fts.c lib/mbchar.h lib/mbfile.h lib/mbiter.h lib/mbuiter.h lib/regcomp.c lib/regexec.c lib/regex_internal.c lib/regex_internal.h lib/stat.c lib/u64.h lib/wait-process.c
I'm applying the first patch below and proposing the additional 3 patches at the end. Jim, Eric, ok to apply? 2009-12-31 Bruno Haible <br...@clisp.org> Use AC_C_INLINE where necessary. * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require AC_C_INLINE. * m4/mbchar.m4 (gl_MBCHAR): Likewise. * m4/mbfile.m4 (gl_MBFILE): Likewise. * m4/mbiter.m4 (gl_MBITER): Likewise. * m4/regex.m4 (gl_PREREQ_REGEX): Likewise. * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise. * modules/u64 (configure.ac): Likewise. --- m4/fatal-signal.m4.orig Thu Dec 31 16:08:20 2009 +++ m4/fatal-signal.m4 Thu Dec 31 15:53:40 2009 @@ -1,4 +1,4 @@ -# fatal-signal.m4 serial 7 +# fatal-signal.m4 serial 8 dnl Copyright (C) 2003-2004, 2006, 2008, 2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -6,6 +6,7 @@ AC_DEFUN([gl_FATAL_SIGNAL], [ + AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([gt_TYPE_SIG_ATOMIC_T]) AC_CHECK_HEADERS_ONCE([unistd.h]) gl_PREREQ_SIG_HANDLER_H --- m4/mbchar.m4.orig Thu Dec 31 16:08:20 2009 +++ m4/mbchar.m4 Thu Dec 31 15:56:59 2009 @@ -1,4 +1,4 @@ -# mbchar.m4 serial 7 +# mbchar.m4 serial 8 dnl Copyright (C) 2005-2007, 2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,4 +10,5 @@ AC_DEFUN([gl_MBCHAR], [ AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + AC_REQUIRE([AC_C_INLINE]) ]) --- m4/mbfile.m4.orig Thu Dec 31 16:08:20 2009 +++ m4/mbfile.m4 Thu Dec 31 15:57:44 2009 @@ -1,4 +1,4 @@ -# mbfile.m4 serial 4 +# mbfile.m4 serial 5 dnl Copyright (C) 2005, 2008, 2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,7 @@ AC_DEFUN([gl_MBFILE], [ + AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([AC_TYPE_MBSTATE_T]) dnl The following line is that so the user can test HAVE_MBRTOWC before dnl #include "mbfile.h". It can be removed in 2010. --- m4/mbiter.m4.orig Thu Dec 31 16:08:20 2009 +++ m4/mbiter.m4 Thu Dec 31 15:58:43 2009 @@ -1,4 +1,4 @@ -# mbiter.m4 serial 4 +# mbiter.m4 serial 5 dnl Copyright (C) 2005, 2008, 2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,7 @@ AC_DEFUN([gl_MBITER], [ + AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([AC_TYPE_MBSTATE_T]) dnl The following line is that so the user can test HAVE_MBRTOWC before dnl #include "mbiter.h" or "mbuiter.h". It can be removed in 2010. --- m4/regex.m4.orig Thu Dec 31 16:08:20 2009 +++ m4/regex.m4 Thu Dec 31 15:59:34 2009 @@ -1,4 +1,4 @@ -# serial 54 +# serial 55 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. @@ -213,6 +213,7 @@ AC_DEFUN([gl_PREREQ_REGEX], [ AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([AC_TYPE_MBSTATE_T]) AC_CHECK_HEADERS([libintl.h]) --- m4/wait-process.m4.orig Thu Dec 31 16:08:20 2009 +++ m4/wait-process.m4 Thu Dec 31 16:05:25 2009 @@ -1,4 +1,4 @@ -# wait-process.m4 serial 4 +# wait-process.m4 serial 5 dnl Copyright (C) 2003, 2008, 2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -7,6 +7,7 @@ AC_DEFUN([gl_WAIT_PROCESS], [ dnl Prerequisites of lib/wait-process.c. + AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([gt_TYPE_SIG_ATOMIC_T]) AC_CHECK_FUNCS([waitid]) ]) --- modules/u64.orig Thu Dec 31 16:08:20 2009 +++ modules/u64 Thu Dec 31 16:02:26 2009 @@ -7,6 +7,11 @@ Depends-on: stdint +configure.ac: +AC_REQUIRE([AC_C_INLINE]) + +Makefile.am: + Include: "u64.h" 2009-12-31 Bruno Haible <br...@clisp.org> Use AC_C_INLINE where necessary. * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE. --- m4/chdir-long.m4.orig Thu Dec 31 16:08:20 2009 +++ m4/chdir-long.m4 Thu Dec 31 15:51:47 2009 @@ -1,4 +1,4 @@ -#serial 10 +#serial 11 # Use Gnulib's robust chdir function. # It can handle arbitrarily long directory names, which means @@ -34,5 +34,5 @@ AC_DEFUN([gl_PREREQ_CHDIR_LONG], [ - : + AC_REQUIRE([AC_C_INLINE]) ]) 2009-12-31 Bruno Haible <br...@clisp.org> Use AC_C_INLINE where necessary. * m4/fts.m4 (gl_FUNC_FTS_CORE): Require AC_C_INLINE. --- m4/fts.m4.orig Thu Dec 31 16:08:20 2009 +++ m4/fts.m4 Thu Dec 31 15:55:25 2009 @@ -1,4 +1,4 @@ -#serial 16 +#serial 17 dnl Copyright (C) 2005-2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -21,6 +21,7 @@ AC_LIBOBJ([fts]) dnl Prerequisites of lib/fts.c. + AC_REQUIRE([AC_C_INLINE]) gl_FUNC_OPENAT AC_CHECK_FUNCS_ONCE([fstatfs]) 2009-12-31 Bruno Haible <br...@clisp.org> Use AC_C_INLINE where necessary. * m4/stat.m4 (gl_FUNC_STAT): Require AC_C_INLINE. --- m4/stat.m4.orig Thu Dec 31 16:08:20 2009 +++ m4/stat.m4 Thu Dec 31 16:01:07 2009 @@ -1,4 +1,4 @@ -# serial 3 +# serial 4 # Copyright (C) 2009 Free Software Foundation, Inc. # @@ -57,5 +57,7 @@ esac if test $REPLACE_STAT = 1; then AC_LIBOBJ([stat]) + dnl Prerequisites of lib/stat.c. + AC_REQUIRE([AC_C_INLINE]) fi ])