zsh-workers
 help / color / mirror / code / Atom feed
* Re: PATCH: configure-time setting of MAXJOB revisited
@ 2000-04-14  7:48 Sven Wischnowsky
  0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 2000-04-14  7:48 UTC (permalink / raw)
  To: zsh-workers


jarausch@igpm.rwth-aachen.de wrote:

> Hi,
> current cvs (14.4.2000  7:00 GMT) fails due to
> gcc -c -I.  -DHAVE_CONFIG_H -O3 -fstrict-aliasing  -o builtin.o builtin.c
> In file included from zsh.mdh:32,
>                  from builtin.c:30:
> jobs.epro:8: `MAXJOB' undeclared here (not in a function)
> builtin.c: In function `checkjobs':
> builtin.c:3159: `MAXJOB' undeclared (first use in this function)
> 
> What's gone wrong?

Clint just made MAXJOB configurable, you need to re-run autoconf.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


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

* Re: PATCH: configure-time setting of MAXJOB revisited
  2000-04-13 23:06 Clint Adams
@ 2000-04-14  7:18 ` jarausch
  0 siblings, 0 replies; 3+ messages in thread
From: jarausch @ 2000-04-14  7:18 UTC (permalink / raw)
  To: schizo; +Cc: zsh-workers

Hi,
current cvs (14.4.2000  7:00 GMT) fails due to
gcc -c -I.  -DHAVE_CONFIG_H -O3 -fstrict-aliasing  -o builtin.o builtin.c
In file included from zsh.mdh:32,
                 from builtin.c:30:
jobs.epro:8: `MAXJOB' undeclared here (not in a function)
builtin.c: In function `checkjobs':
builtin.c:3159: `MAXJOB' undeclared (first use in this function)

What's gone wrong?

Thanks,
Helmut.

-- 
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany


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

* PATCH: configure-time setting of MAXJOB revisited
@ 2000-04-13 23:06 Clint Adams
  2000-04-14  7:18 ` jarausch
  0 siblings, 1 reply; 3+ messages in thread
From: Clint Adams @ 2000-04-13 23:06 UTC (permalink / raw)
  To: zsh-workers

This returns the previous behavior as default and allows more flexibility.

Index: configure.in
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.in,v
retrieving revision 1.4
diff -u -r1.4 configure.in
--- configure.in	2000/04/13 22:25:04	1.4
+++ configure.in	2000/04/13 23:05:07
@@ -498,27 +498,6 @@
  
 AC_CHECK_HEADER([sys/ptem.h], AC_DEFINE(WINSIZE_IN_PTEM))
 
-dnl Try to get a sane value for MAXJOB
-linux_tasks_defines_mtpu=no
-AC_MSG_CHECKING(what to set MAXJOB to)
-if test $ac_cv_header_linux_tasks_h = yes; then
-AC_EGREP_CPP(yes,
-[#include <linux/tasks.h>
- #ifdef MAX_TASKS_PER_USER
- yes
- #endif
-], linux_tasks_defines_mtpu=yes)
-fi
-
-if test $linux_tasks_defines_mtpu = yes; then
-AC_DEFINE(MAXJOB, MAX_TASKS_PER_USER)
-AC_DEFINE(NEED_LINUX_TASKS_H)
-AC_MSG_RESULT(${msg}MAX_TASKS_PER_USER)
-else
-AC_DEFINE(MAXJOB, 50)
-AC_MSG_RESULT(${msg}50)
-fi
-
 dnl -------------------
 dnl CHECK FOR LIBRARIES
 dnl -------------------
@@ -1371,6 +1350,46 @@
       AC_DEFINE(GETPWNAM_FAKED)
     fi
 fi
+
+AC_MSG_CHECKING(what to set MAXJOB to)
+dnl Do you want to alter the maximum job table size?
+undefine([max_jobtable_size])dnl
+AC_ARG_ENABLE(max-jobtable-size,
+[  --enable-max-jobtable-size=MAX   Limit job table size to MAX],
+
+[if test x$enableval = xyes; then
+
+  if test $ac_cv_header_linux_tasks_h = yes; then
+   AC_EGREP_CPP(yes,
+   [#include <linux/tasks.h>
+    #ifdef MAX_TASKS_PER_USER
+    yes
+    #endif
+   ],
+   maxj=max)
+
+   if test x$maxj = xmax; then
+    AC_DEFINE(MAXJOB, MAX_TASKS_PER_USER)
+    AC_DEFINE(NEED_LINUX_TASKS_H)
+    AC_MSG_RESULT(${msg}MAX_TASKS_PER_USER)
+   else
+    AC_DEFINE(MAXJOB, 256)
+    AC_MSG_RESULT(${msg}256)
+   fi
+  fi
+
+ elif test x$enableval = xno; then
+ AC_DEFINE(MAXJOB,512)
+ AC_MSG_RESULT(${msg}512)
+ else
+ AC_DEFINE_UNQUOTED(MAXJOB,$enableval)
+ AC_MSG_RESULT(${msg}${enableval}) 
+fi],
+[
+AC_DEFINE(MAXJOB, 50)
+ AC_MSG_RESULT(${msg}50) 
+])
+
 
 dnl ---------------
 dnl dynamic loading


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

end of thread, other threads:[~2000-04-14  7:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-14  7:48 PATCH: configure-time setting of MAXJOB revisited Sven Wischnowsky
  -- strict thread matches above, loose matches on Subject: below --
2000-04-13 23:06 Clint Adams
2000-04-14  7:18 ` jarausch

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).