From: Bruno Haible Date: Sun, 22 May 2011 15:39:57 +0000 (+0200) Subject: unlockpt: Move AC_LIBOBJ invocations to module description. X-Git-Tag: v0.1~2392 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=efc0d3c24f7c561a56518af3220eed55490155cd;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index b3264eecb..9dc38fbe8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 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. * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here... * modules/unlink (configure.ac): ... to here. diff --git a/m4/unlockpt.m4 b/m4/unlockpt.m4 index 643b3fb52..3375c0894 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 3a5c7b86f..b5d98cfa4 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: