summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-05-27 20:34:48 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-05-27 20:34:48 +0000
commite277ba010edf7a425af63312655d74baa9f7b10b (patch)
tree08f7c1ea17e83ea580a8136768e269beeea2a1d2
parent606321fa327af39ab3d67fb420cd84e9afc9de5a (diff)
downloadcoreutils-e277ba010edf7a425af63312655d74baa9f7b10b.tar.xz
Compare numeric strings.
-rw-r--r--m4/strnumcmp.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/m4/strnumcmp.m4 b/m4/strnumcmp.m4
new file mode 100644
index 000000000..a7418c190
--- /dev/null
+++ b/m4/strnumcmp.m4
@@ -0,0 +1,27 @@
+# Compare numeric strings.
+
+dnl Copyright (C) 2005 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.
+
+dnl Written by Paul Eggert.
+
+AC_DEFUN([gl_STRINTCMP],
+[
+ AC_LIBSOURCES([strintcmp.c, strnumcmp.h, strnumcmp-in.h])
+ AC_LIBOBJ([strintcmp])
+
+ dnl Prerequisites of lib/strintcmp.c.
+ AC_REQUIRE([AC_INLINE])
+])
+
+AC_DEFUN([gl_STRNUMCMP],
+[
+ AC_LIBSOURCES([strnumcmp.c, strnumcmp.h, strnumcmp-in.h])
+ AC_LIBOBJ([strnumcmp])
+
+ dnl Prerequisites of lib/strnumcmp.c.
+ AC_REQUIRE([AC_INLINE])
+])