alphasort: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Thu, 5 May 2011 22:59:02 +0000 (00:59 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:05:52 +0000 (00:05 +0200)
* m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
gl_PREREQ_ALPHASORT invocations from here...
* modules/alphasort (configure.ac): ... to here.

ChangeLog
m4/alphasort.m4
modules/alphasort

index 1304070..0557d7d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-05  Bruno Haible  <bruno@clisp.org>
+
+       alphasort: Move AC_LIBOBJ invocations to module description.
+       * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
+       gl_PREREQ_ALPHASORT invocations from here...
+       * modules/alphasort (configure.ac): ... to here.
+
 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
 
        verify: new macro verify_expr; verify_true deprecated
index 3863f39..e59aa74 100644 (file)
@@ -1,4 +1,4 @@
-# alphasort.m4 serial 1
+# alphasort.m4 serial 2
 dnl Copyright (C) 2009-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,
@@ -14,8 +14,6 @@ AC_DEFUN([gl_FUNC_ALPHASORT],
   AC_CHECK_FUNCS([alphasort])
   if test $ac_cv_func_alphasort = no; then
     HAVE_ALPHASORT=0
-    AC_LIBOBJ([alphasort])
-    gl_PREREQ_ALPHASORT
   fi
 ])
 
index 319eccc..e567057 100644 (file)
@@ -11,6 +11,10 @@ extensions
 
 configure.ac:
 gl_FUNC_ALPHASORT
+if test $HAVE_ALPHASORT = 0; then
+  AC_LIBOBJ([alphasort])
+  gl_PREREQ_ALPHASORT
+fi
 gl_DIRENT_MODULE_INDICATOR([alphasort])
 
 Makefile.am: