summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-05-21 17:18:22 +0200
committerBruno Haible <bruno@clisp.org>2011-06-16 00:06:37 +0200
commit30b81aa8c1b1d1beaa2057cfe9a6d589ccf334ad (patch)
treea6d418e7bc9ee172b85a339b261aaf547d1792e7
parente585fc6b5f908f3e783fa23a1dfc492b82af8298 (diff)
downloadgnulib-30b81aa8c1b1d1beaa2057cfe9a6d589ccf334ad.tar.gz
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.
-rw-r--r--ChangeLog7
-rw-r--r--m4/ptsname.m44
-rw-r--r--modules/ptsname4
3 files changed, 12 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index edb2ee8314..3ee420e7e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2011-05-21 Bruno Haible <bruno@clisp.org>
+ 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 <bruno@clisp.org>
+
pread: Move AC_LIBOBJ invocations to module description.
* m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
* modules/pread (configure.ac): ... to here.
diff --git a/m4/ptsname.m4 b/m4/ptsname.m4
index 06d0441cf4..4dba5f375a 100644
--- 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_DEFUN([gl_FUNC_PTSNAME],
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
index ab14894d3b..985b79ba5e 100644
--- a/modules/ptsname
+++ b/modules/ptsname
@@ -12,6 +12,10 @@ ttyname_r [test $HAVE_PTSNAME = 0]
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: