From efc0d3c24f7c561a56518af3220eed55490155cd Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 17:39:57 +0200 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ m4/unlockpt.m4 | 4 +--- modules/unlockpt | 4 ++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b3264eecbc..9dc38fbe87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-22 Bruno Haible + + 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 unlink: Respect rules for use of AC_LIBOBJ. diff --git a/m4/unlockpt.m4 b/m4/unlockpt.m4 index 643b3fb52c..3375c08947 100644 --- 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_DEFUN([gl_FUNC_UNLOCKPT], AC_CHECK_FUNCS([unlockpt]) if test $ac_cv_func_unlockpt = no; then HAVE_UNLOCKPT=0 - AC_LIBOBJ([unlockpt]) - gl_PREREQ_UNLOCKPT fi ]) diff --git a/modules/unlockpt b/modules/unlockpt index 3a5c7b86fd..b5d98cfa43 100644 --- a/modules/unlockpt +++ b/modules/unlockpt @@ -13,6 +13,10 @@ ptsname [test $HAVE_UNLOCKPT = 0] 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: -- 2.30.2