grantpt: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 8 May 2011 17:38:45 +0000 (19:38 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:09 +0000 (00:06 +0200)
* m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
invocations from here...
* modules/grantpt (configure.ac): ... to here.

ChangeLog
m4/grantpt.m4
modules/grantpt

index e038bc62dfcbed3830347d74bab44b737fe582da..23ab0eece39b484f8e6525bdb38245aaa4a8a592 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
+       grantpt: Move AC_LIBOBJ invocations to module description.
+       * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
+       invocations from here...
+       * modules/grantpt (configure.ac): ... to here.
+
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
        glob: Move AC_LIBOBJ invocations to module description.
index a2f58af55b248ef386be630906504ffcf2ba902e..a4dee69290f153fcbd6523c0aed8e2ada592bd29 100644 (file)
@@ -1,4 +1,4 @@
-# grantpt.m4 serial 1
+# grantpt.m4 serial 2
 dnl Copyright (C) 2010-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_GRANTPT],
   AC_CHECK_FUNCS([grantpt])
   if test $ac_cv_func_grantpt = no; then
     HAVE_GRANTPT=0
-    AC_LIBOBJ([grantpt])
-    gl_PREREQ_GRANTPT
   fi
 ])
 
index 589360d1753ff79fb78b3d418de9c64ac4c1a770..c5e76f025547d63b1037557ea25451bc7b8feaf9 100644 (file)
@@ -14,6 +14,10 @@ configmake      [test $HAVE_GRANTPT = 0]
 
 configure.ac:
 gl_FUNC_GRANTPT
+if test $HAVE_GRANTPT = 0; then
+  AC_LIBOBJ([grantpt])
+  gl_PREREQ_GRANTPT
+fi
 gl_STDLIB_MODULE_INDICATOR([grantpt])
 
 Makefile.am: