Mercurial > hg > octave-lyh > gnulib-hg
changeset 15124:f4866d768f30
tcgetsid: Move AC_LIBOBJ invocations to module description.
* m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
and gl_PREREQ_TCGETSID invocations from here...
* modules/tcgetsid (configure.ac): ... to here.
(Depends-on): Update conditions.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 22 May 2011 14:59:53 +0200 |
parents | aa9e38804c40 |
children | 901e19816fac |
files | ChangeLog m4/tcgetsid.m4 modules/tcgetsid |
diffstat | 3 files changed, 18 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-22 Bruno Haible <bruno@clisp.org> + + tcgetsid: Move AC_LIBOBJ invocations to module description. + * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ + and gl_PREREQ_TCGETSID invocations from here... + * modules/tcgetsid (configure.ac): ... to here. + (Depends-on): Update conditions. + 2011-05-22 Bruno Haible <bruno@clisp.org> symlinkat: Move AC_LIBOBJ invocations to module description.
--- a/m4/tcgetsid.m4 +++ b/m4/tcgetsid.m4 @@ -1,4 +1,4 @@ -# tcgetsid.m4 serial 2 +# tcgetsid.m4 serial 3 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, @@ -17,9 +17,10 @@ fi AC_CHECK_FUNCS([tcgetsid]) - if test $ac_cv_func_tcgetsid = no; then - AC_LIBOBJ([tcgetsid]) - gl_PREREQ_TCGETSID + if test $ac_cv_func_tcgetsid = yes; then + HAVE_TCGETSID=1 + else + HAVE_TCGETSID=0 fi ])
--- a/modules/tcgetsid +++ b/modules/tcgetsid @@ -9,10 +9,14 @@ Depends-on: termios extensions -sys_ioctl [test $ac_cv_func_tcgetsid = no] +sys_ioctl [test $HAVE_TCGETSID = 0] configure.ac: gl_FUNC_TCGETSID +if test $HAVE_TCGETSID = 0; then + AC_LIBOBJ([tcgetsid]) + gl_PREREQ_TCGETSID +fi gl_TERMIOS_MODULE_INDICATOR([tcgetsid]) Makefile.am: