scandir: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 20:18:30 +0000 (22:18 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:44 +0000 (00:06 +0200)
* m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
invocations from here...
* modules/scandir (configure.ac): ... to here.

ChangeLog
m4/scandir.m4
modules/scandir

index 50275a216c08ba84b6373d57cde29e0a6f361714..491c6de0f31433d1b0463258eb254dd298f4f592 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       scandir: Move AC_LIBOBJ invocations to module description.
+       * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
+       invocations from here...
+       * modules/scandir (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        rpmatch: Move AC_LIBOBJ invocations to module description.
index a53c3fd8b51b4a21ca1e73bb60fb46ea88f0e8cb..25ebe0683d93f3cea0e97658b813678959989917 100644 (file)
@@ -1,4 +1,4 @@
-# scandir.m4 serial 1
+# scandir.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_SCANDIR],
   AC_CHECK_FUNCS([scandir])
   if test $ac_cv_func_scandir = no; then
     HAVE_SCANDIR=0
-    AC_LIBOBJ([scandir])
-    gl_PREREQ_SCANDIR
   fi
 ])
 
index d226f118da96f7cc357d1e351d56b01be638abae..e071e544055a3cd020473da066517ee3e2cb79ab 100644 (file)
@@ -11,6 +11,10 @@ extensions
 
 configure.ac:
 gl_FUNC_SCANDIR
+if test $HAVE_SCANDIR = 0; then
+  AC_LIBOBJ([scandir])
+  gl_PREREQ_SCANDIR
+fi
 gl_DIRENT_MODULE_INDICATOR([scandir])
 
 Makefile.am: