zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: tcsetpgrp test switch
@ 1999-11-02 20:10 Clint Adams
  1999-11-03  3:02 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Clint Adams @ 1999-11-02 20:10 UTC (permalink / raw)
  To: zsh-workers

This provides a configure switch to prevent the testing of tcsetpgrp.

--- configure.in.bak	Tue Nov  2 14:43:47 1999
+++ configure.in	Tue Nov  2 15:05:47 1999
@@ -250,6 +250,13 @@
   AC_DEFINE(MAILDIR_SUPPORT)
 fi])
 
+dnl Do you want to verify that tcsetpgrp works?
+undefine([tcsetpgrp-check])dnl
+AC_ARG_ENABLE(tcsetpgrp-check,
+[  --disable-tcsetpgrp-check     Disable test of tcsetpgrp],
+[tcsetpgrp-check="$enableval"], [tcsetpgrp-check=yes])
+
+
 dnl ------------------
 dnl CHECK THE COMPILER
 dnl ------------------
@@ -1240,8 +1247,12 @@
 dnl -----------
 dnl if found tcsetpgrp, test to see if it actually works
 dnl for instance, BeOS R4.51 does not support it yet
+dnl When building where stdin is not a terminal, this
+dnl check will fail, resulting in no job control support
+dnl being available.  Because this is undesirable, allow
+dnl it to be skipped.
 dnl -----------
-if test $ac_cv_func_tcsetpgrp=yes; then
+if test $ac_cv_func_tcsetpgrp=yes -a $tcsetpgrp-check=yes; then
     AC_CACHE_CHECK(if tcsetpgrp() actually works,
     zsh_cv_sys_tcsetpgrp,
     [AC_TRY_RUN([


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-11-10 18:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-02 20:10 PATCH: tcsetpgrp test switch Clint Adams
1999-11-03  3:02 ` Bart Schaefer
1999-11-03 17:07   ` Clint Adams
1999-11-10 18:26     ` Will Day

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).