increment serial number
[gnulib.git] / m4 / check-decl.m4
1 #serial 2
2
3 dnl This is just a wrapper function to encapsulate this kludge.
4 dnl Putting it in a separate file like this helps share it between
5 dnl different packages.
6 AC_DEFUN(jm_CHECK_DECLS,
7 [
8   if test x = y; then
9     dnl This code is deliberately never run via ./configure.
10     dnl FIXME: this is a gross hack to make autoheader put entries
11     dnl for each of these symbols in the config.h.in.
12     dnl Otherwise, I'd have to update acconfig.h every time I change
13     dnl this list of functions.
14     AC_CHECK_FUNCS(DECL_FREE DECL_LSEEK DECL_MALLOC DECL_MEMCHR DECL_REALLOC \
15                    DECL_STPCPY DECL_STRSTR)
16   fi
17   jm_CHECK_DECLARATIONS(free lseek malloc memchr realloc stpcpy strstr)
18 ])