From: Bruno Haible Date: Sun, 21 Mar 2010 23:55:38 +0000 (+0100) Subject: pty: Consistent macro naming. X-Git-Tag: v0.1~4453 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=c6681a7759d6c2ef9578d57ca8e05d0ae613ff09;p=gnulib.git pty: Consistent macro naming. --- diff --git a/ChangeLog b/ChangeLog index fc94be5b5..b0b19568b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2010-03-21 Bruno Haible + pty: Consistent macro naming. + * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY. + * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update. + * modules/pty (configure.ac): Update. + +2010-03-21 Bruno Haible + Tests for openpty: Make stricter. * tests/test-openpty.c (main): Add test of canonical processing and erase. diff --git a/m4/pty.m4 b/m4/pty.m4 index 5aec23b4c..6d2393b0a 100644 --- a/m4/pty.m4 +++ b/m4/pty.m4 @@ -1,4 +1,4 @@ -# pty.m4 serial 2 +# pty.m4 serial 3 dnl Copyright (C) 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -23,7 +23,7 @@ AC_DEFUN([gl_PTY_LIB], AC_DEFUN([gl_FORKPTY], [ AC_REQUIRE([gl_PTY_LIB]) - AC_REQUIRE([gl_PTY]) + AC_REQUIRE([gl_PTY_H]) AC_CHECK_DECLS([forkpty],,, [[ #if HAVE_PTY_H @@ -68,7 +68,7 @@ AC_DEFUN([gl_FORKPTY], AC_DEFUN([gl_OPENPTY], [ AC_REQUIRE([gl_PTY_LIB]) - AC_REQUIRE([gl_PTY]) + AC_REQUIRE([gl_PTY_H]) dnl Persuade Solaris to declare posix_openpt(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) diff --git a/m4/pty_h.m4 b/m4/pty_h.m4 index 32dec7315..33cb43c4f 100644 --- a/m4/pty_h.m4 +++ b/m4/pty_h.m4 @@ -1,13 +1,13 @@ -# pty_h.m4 serial 6 +# pty_h.m4 serial 7 dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. -# gl_PTY -# ------ -# Make sure that pty.h provides forkpty, or sets up a replacement header. -AC_DEFUN_ONCE([gl_PTY], +# gl_PTY_H +# -------- +# Set up the GNU-like replacement header. +AC_DEFUN_ONCE([gl_PTY_H], [ AC_REQUIRE([gl_PTY_H_DEFAULTS]) diff --git a/modules/pty b/modules/pty index ead3a7e12..aed240647 100644 --- a/modules/pty +++ b/modules/pty @@ -11,7 +11,7 @@ include_next warn-on-use configure.ac: -gl_PTY +gl_PTY_H Makefile.am: BUILT_SOURCES += pty.h