# HG changeset patch # User Bruno Haible # Date 1305991102 -7200 # Node ID 1b845c6de6dbfc1a905c7b34b03955223e433dc1 # Parent 98b3afcd33e1a6045f87d751f2d283db6b0a6006 ptsname: Move AC_LIBOBJ invocations to module description. * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME invocations from here... * modules/ptsname (configure.ac): ... to here. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-21 Bruno Haible + + ptsname: Move AC_LIBOBJ invocations to module description. + * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME + invocations from here... + * modules/ptsname (configure.ac): ... to here. + 2011-05-21 Bruno Haible pread: Move AC_LIBOBJ invocations to module description. diff --git a/m4/ptsname.m4 b/m4/ptsname.m4 --- a/m4/ptsname.m4 +++ b/m4/ptsname.m4 @@ -1,4 +1,4 @@ -# ptsname.m4 serial 1 +# ptsname.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([ptsname]) if test $ac_cv_func_ptsname = no; then HAVE_PTSNAME=0 - AC_LIBOBJ([ptsname]) - gl_PREREQ_PTSNAME fi ]) diff --git a/modules/ptsname b/modules/ptsname --- a/modules/ptsname +++ b/modules/ptsname @@ -12,6 +12,10 @@ configure.ac: gl_FUNC_PTSNAME +if test $HAVE_PTSNAME = 0; then + AC_LIBOBJ([ptsname]) + gl_PREREQ_PTSNAME +fi gl_STDLIB_MODULE_INDICATOR([ptsname]) Makefile.am: