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 e038bc6..23ab0ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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.
        * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
        from here...
index a2f58af..a4dee69 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 589360d..c5e76f0 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: