summaryrefslogtreecommitdiff
path: root/m4/alphasort.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-01-18 12:40:22 +0100
committerBruno Haible <bruno@clisp.org>2009-01-18 12:40:22 +0100
commit9d33c622ce10de9c68fdd84cb3b77c5b0a75fe02 (patch)
tree48faed02fc90ddf0e8f6a1af42aaf5f6da94d6ca /m4/alphasort.m4
parent3806f4f65ae6cb6106c82397a4ebba739336175f (diff)
downloadgnulib-9d33c622ce10de9c68fdd84cb3b77c5b0a75fe02.tar.gz
New module 'alphasort'.
Diffstat (limited to 'm4/alphasort.m4')
-rw-r--r--m4/alphasort.m423
1 files changed, 23 insertions, 0 deletions
diff --git a/m4/alphasort.m4 b/m4/alphasort.m4
new file mode 100644
index 0000000000..149129d4f8
--- /dev/null
+++ b/m4/alphasort.m4
@@ -0,0 +1,23 @@
+# alphasort.m4 serial 1
+dnl Copyright (C) 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_FUNC_ALPHASORT],
+[
+ AC_REQUIRE([gl_DIRENT_H_DEFAULTS])
+
+ dnl Persuade glibc and Solaris <dirent.h> to declare alphasort().
+ AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
+
+ AC_CHECK_FUNCS([alphasort])
+ if test $ac_cv_func_alphasort = no; then
+ HAVE_ALPHASORT=0
+ AC_LIBOBJ([alphasort])
+ gl_PREREQ_ALPHASORT
+ fi
+])
+
+# Prerequisites of lib/alphasort.c.
+AC_DEFUN([gl_PREREQ_ALPHASORT], [:])