ffs: fix m4 prerequisite
authorEric Blake <eblake@redhat.com>
Fri, 15 Jul 2011 20:44:12 +0000 (14:44 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 15 Jul 2011 20:44:12 +0000 (14:44 -0600)
* m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
m4/ffs.m4

index 2a67a7e7317d1d915e16226534d8e2b66f8f3594..49dcd7fceb63903d406bdc47024a3d3930361944 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-07-15  Eric Blake  <eblake@redhat.com>
 
+       ffs: fix m4 prerequisite
+       * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
+
        ffs: avoid undefined behavior
        * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
        * tests/test-ffs.c (naive, main): Avoid signed shifts.
index 2a350784a6baaae70bd7d6d2cfc35f5132315361..12df085943b559b6b5ed882d697207242561ed64 100644 (file)
--- a/m4/ffs.m4
+++ b/m4/ffs.m4
@@ -1,4 +1,4 @@
-# ffs.m4 serial 1
+# ffs.m4 serial 2
 dnl Copyright (C) 2011 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 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_FFS],
 [
+  AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
   AC_CHECK_FUNCS_ONCE([ffs])
   if test $ac_cv_func_ffs = no; then
     HAVE_FFS=0