From: Bruno Haible <bruno@clisp.org>
Date: Thu, 5 May 2011 23:47:42 +0000 (+0200)
Subject: chdir-long: Move AC_LIBOBJ invocations to module description.
X-Git-Tag: v0.1~2596
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=4c55ba7831f4ce8d3c7addcb20be418330a22239;p=gnulib.git

chdir-long: Move AC_LIBOBJ invocations to module description.

* m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
gl_PREREQ_CHDIR_LONG invocations from here...
* modules/chdir-long (configure.ac): ... to here.
---

diff --git a/ChangeLog b/ChangeLog
index 94648e1c07..d8295ff786 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-05  Bruno Haible  <bruno@clisp.org>
+
+	chdir-long: Move AC_LIBOBJ invocations to module description.
+	* m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
+	gl_PREREQ_CHDIR_LONG invocations from here...
+	* modules/chdir-long (configure.ac): ... to here.
+
 2011-05-05  Bruno Haible  <bruno@clisp.org>
 
 	canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
diff --git a/m4/chdir-long.m4 b/m4/chdir-long.m4
index 27c61d2549..9a343ac987 100644
--- a/m4/chdir-long.m4
+++ b/m4/chdir-long.m4
@@ -1,4 +1,4 @@
-#serial 11
+#serial 12
 
 # Use Gnulib's robust chdir function.
 # It can handle arbitrarily long directory names, which means
@@ -25,11 +25,6 @@ have_arbitrary_file_name_length_limit
 #endif],
     gl_cv_have_arbitrary_file_name_length_limit=yes,
     gl_cv_have_arbitrary_file_name_length_limit=no)])
-
-  if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
-    AC_LIBOBJ([chdir-long])
-    gl_PREREQ_CHDIR_LONG
-  fi
 ])
 
 AC_DEFUN([gl_PREREQ_CHDIR_LONG],
diff --git a/modules/chdir-long b/modules/chdir-long
index 0c8e7926ef..22236c6cc8 100644
--- a/modules/chdir-long
+++ b/modules/chdir-long
@@ -20,6 +20,10 @@ stdlib          [test $gl_cv_have_arbitrary_file_name_length_limit = yes]
 
 configure.ac:
 gl_FUNC_CHDIR_LONG
+if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
+  AC_LIBOBJ([chdir-long])
+  gl_PREREQ_CHDIR_LONG
+fi
 
 Makefile.am: