update copyright for 2014 year bump
[gnulib.git] / modules / ptsname_r
index daf1d98..0f8ff93 100644 (file)
@@ -8,11 +8,12 @@ m4/ptsname_r.m4
 Depends-on:
 stdlib
 extensions
-ttyname_r       [test $HAVE_PTSNAME_R = 0]
+isatty          [test $HAVE_PTSNAME_R = 0 || test $REPLACE_PTSNAME_R = 1]
+ttyname_r       [test $HAVE_PTSNAME_R = 0 || test $REPLACE_PTSNAME_R = 1]
 
 configure.ac:
 gl_FUNC_PTSNAME_R
-if test $HAVE_PTSNAME_R = 0; then
+if test $HAVE_PTSNAME_R = 0 || test $REPLACE_PTSNAME_R = 1; then
   AC_LIBOBJ([ptsname_r])
   gl_PREREQ_PTSNAME_R
 fi