* m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
* modules/openpty (configure.ac): ... to here.
2011-05-21 Bruno Haible <bruno@clisp.org>
2011-05-21 Bruno Haible <bruno@clisp.org>
+ openpty: Move AC_LIBOBJ invocations to module description.
+ * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
+ * modules/openpty (configure.ac): ... to here.
+
+2011-05-21 Bruno Haible <bruno@clisp.org>
+
forkpty: Move AC_LIBOBJ invocations to module description.
* m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
* modules/forkpty (configure.ac): ... to here.
forkpty: Move AC_LIBOBJ invocations to module description.
* m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
* modules/forkpty (configure.ac): ... to here.
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,
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,
])
if test $gl_cv_func_openpty_const != yes; then
REPLACE_OPENPTY=1
])
if test $gl_cv_func_openpty_const != yes; then
REPLACE_OPENPTY=1
AC_DEFINE([HAVE_OPENPTY], [1],
[Define to 1 if the system has the 'openpty' function.])
fi
else
dnl The system does not have openpty.
HAVE_OPENPTY=0
AC_DEFINE([HAVE_OPENPTY], [1],
[Define to 1 if the system has the 'openpty' function.])
fi
else
dnl The system does not have openpty.
HAVE_OPENPTY=0
+ dnl Prerequisites of lib/openpty.c in this case.
AC_CHECK_FUNCS([_getpty posix_openpt])
fi
])
AC_CHECK_FUNCS([_getpty posix_openpt])
fi
])
configure.ac:
gl_FUNC_OPENPTY
configure.ac:
gl_FUNC_OPENPTY
+if test $HAVE_OPENPTY = 0 || test $REPLACE_OPENPTY = 1; then
+ AC_LIBOBJ([openpty])
+fi
gl_PTY_MODULE_INDICATOR([openpty])
Makefile.am:
gl_PTY_MODULE_INDICATOR([openpty])
Makefile.am: