diff options
author | Eric Blake <ebb9@byu.net> | 2009-01-21 10:33:24 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-01-21 10:33:24 -0700 |
commit | 9f2c2152d14031f8d4757647ca7c9d8d0f64b095 (patch) | |
tree | 13979e2e4592df506c70094a42351c19cff6835d /m4/errno_h.m4 | |
parent | e7e75cc533ed848c2162081dc1be05d8f2413751 (diff) | |
download | gnulib-9f2c2152d14031f8d4757647ca7c9d8d0f64b095.tar.gz |
error: avoid expand-before-require warning
* modules/errno (configure.ac): Require, rather than expand,
gl_HEADER_ERRNO_H.
* m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
(gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
enforce that all clients require it.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'm4/errno_h.m4')
-rw-r--r-- | m4/errno_h.m4 | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/m4/errno_h.m4 b/m4/errno_h.m4 index 0682d1ab63..4d77672cb7 100644 --- a/m4/errno_h.m4 +++ b/m4/errno_h.m4 @@ -1,17 +1,11 @@ -# errno_h.m4 serial 3 +# errno_h.m4 serial 4 dnl Copyright (C) 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, dnl with or without modifications, as long as this notice is preserved. -AC_DEFUN([gl_HEADER_ERRNO_H], -[ - dnl Use AC_REQUIRE here, so that the default behavior below is expanded - dnl once only, before all statements that occur in other macros. - AC_REQUIRE([gl_HEADER_ERRNO_H_BODY]) -]) - -AC_DEFUN([gl_HEADER_ERRNO_H_BODY], +dnl This macro must pass through AC_REQUIRE (never directly invoke it). +AC_DEFUN_ONCE([gl_HEADER_ERRNO_H], [ AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([for complete errno.h], [gl_cv_header_errno_h_complete], [ |