From b7640ddbfdd6d5f6e71b9bc1baabfae39aa596f0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 8 May 2011 19:38:45 +0200 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ m4/grantpt.m4 | 4 +--- modules/grantpt | 4 ++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e038bc62df..23ab0eece3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-08 Bruno Haible + + 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 glob: Move AC_LIBOBJ invocations to module description. diff --git a/m4/grantpt.m4 b/m4/grantpt.m4 index a2f58af55b..a4dee69290 100644 --- a/m4/grantpt.m4 +++ b/m4/grantpt.m4 @@ -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 ]) diff --git a/modules/grantpt b/modules/grantpt index 589360d175..c5e76f0255 100644 --- a/modules/grantpt +++ b/modules/grantpt @@ -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: -- 2.30.2