Improve name: "count-one-bits" is better than "popcount".
[gnulib.git] / m4 / count-one-bits.m4
diff --git a/m4/count-one-bits.m4 b/m4/count-one-bits.m4
new file mode 100644 (file)
index 0000000..8d1410a
--- /dev/null
@@ -0,0 +1,12 @@
+# count-one-bits.m4 serial 1
+dnl Copyright (C) 2007 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_COUNT_ONE_BITS],
+[
+  dnl We don't need (and can't compile) count_one_bits_ll
+  dnl unless the type 'unsigned long long int' exists.
+  AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
+])