changeset 15134:c5dcba2a45c0

unlockpt: Move AC_LIBOBJ invocations to module description. * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and gl_PREREQ_UNLOCKPT invocations from here... * modules/unlockpt (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 17:39:57 +0200
parents 7eac4db525ac
children 69ac4e993bf3
files ChangeLog m4/unlockpt.m4 modules/unlockpt
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	unlockpt: Move AC_LIBOBJ invocations to module description.
+	* m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
+	gl_PREREQ_UNLOCKPT invocations from here...
+	* modules/unlockpt (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	unlink: Respect rules for use of AC_LIBOBJ.
--- a/m4/unlockpt.m4
+++ b/m4/unlockpt.m4
@@ -1,4 +1,4 @@
-# unlockpt.m4 serial 1
+# unlockpt.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_CHECK_FUNCS([unlockpt])
   if test $ac_cv_func_unlockpt = no; then
     HAVE_UNLOCKPT=0
-    AC_LIBOBJ([unlockpt])
-    gl_PREREQ_UNLOCKPT
   fi
 ])
 
--- a/modules/unlockpt
+++ b/modules/unlockpt
@@ -13,6 +13,10 @@
 
 configure.ac:
 gl_FUNC_UNLOCKPT
+if test $HAVE_UNLOCKPT = 0; then
+  AC_LIBOBJ([unlockpt])
+  gl_PREREQ_UNLOCKPT
+fi
 gl_STDLIB_MODULE_INDICATOR([unlockpt])
 
 Makefile.am: