From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: configure-time setting of MAXJOB revisited
Date: Thu, 13 Apr 2000 19:06:23 -0400 [thread overview]
Message-ID: <20000413190623.A10171@dman.com> (raw)
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
next reply other threads:[~2000-04-13 23:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-13 23:06 Clint Adams [this message]
2000-04-14 7:18 ` jarausch
2000-04-14 7:48 Sven Wischnowsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20000413190623.A10171@dman.com \
--to=schizo@debian.org \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).