Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 4.2.0-pre-2
- X-seq: zsh-workers 19537
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>, Ibraheem Umaru-Mohammed <umarumohammed@xxxxxxxxxxxxxx>
- Subject: Re: 4.2.0-pre-2
- Date: Thu, 04 Mar 2004 13:59:47 +0000
- In-reply-to: "Ibraheem Umaru-Mohammed"'s message of "Thu, 04 Mar 2004 13:12:07 GMT." <1078405927.18583.10.camel@sonic>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Ibraheem Umaru-Mohammed wrote:
> Ok. I have included the capabilities.h which seems to have the "opaque"
> definition for cap_t. Below is the result of running grep through
> /usr/include:
Thanks for the info... The important thing is if you managed to get
it to compile. I don't see a prototype for cap_get_proc there.
The only thing I can see is to add the flag I suggested earlier.
If anyone has the ability to fix this properly, please do.
I've just noticed that the `term.h' problem hasn't gone away.
It looks like configure should test for curses.h first, then see if
it can include term.h using
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#include <term.h>
and if that works unconditionally use term.h, so getting rid of the
current `needs curses.h' flag.
It would be great if someone else had a chance to do that. I only have
limited time for all these endless configuration changes.
Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.12
diff -u -r1.12 configure.ac
--- configure.ac 3 Mar 2004 19:38:00 -0000 1.12
+++ configure.ac 4 Mar 2004 13:47:44 -0000
@@ -313,6 +313,11 @@
AC_HELP_STRING([--enable-pcre],
[enable the search for the pcre library (may create run-time library dependencies)]))
+dnl Do you want to look for capability support?
+AC_ARG_ENABLE(cap,
+AC_HELP_STRING([--enable-cap],
+[enable the search for POSIX capabilities (may require additional headers to be added by hand)]))
+
dnl ------------------
dnl CHECK THE COMPILER
dnl ------------------
@@ -709,7 +714,9 @@
AC_CHECK_LIB(dl, dlopen)
fi
-AC_CHECK_LIB(cap, cap_get_proc)
+if test x$enable_cap = xyes; then
+ AC_CHECK_LIB(cap, cap_get_proc)
+fi
AC_CHECK_LIB(socket, socket)
@@ -1029,7 +1036,6 @@
initgroups nis_list \
setuid seteuid setreuid setresuid setsid \
memcpy memmove strstr strerror \
- cap_get_proc \
getrlimit \
setlocale \
uname \
@@ -1045,6 +1051,10 @@
grantpt unlockpt ptsname)
AC_FUNC_STRCOLL
+if test x$enable_cap = xyes; then
+ AC_CHECK_FUNCS(cap_get_proc)
+fi
+
dnl Check if tgetent accepts NULL (and will allocate its own termcap buffer)
dnl Some termcaps reportedly accept a zero buffer, but then dump core
dnl in tgetstr().
Index: INSTALL
===================================================================
RCS file: /cvsroot/zsh/zsh/INSTALL,v
retrieving revision 1.13
diff -u -r1.13 INSTALL
--- INSTALL 1 Mar 2004 17:58:53 -0000 1.13
+++ INSTALL 4 Mar 2004 13:47:44 -0000
@@ -359,20 +359,32 @@
None of this is relevant for 64-bit systems; zsh should compile and run
without problems if (sizeof(long) == 8).
-Searching for `pcre'
---------------------
+Searching for additional features
+---------------------------------
+
+Various additional features are turned off by default to avoid
+compatibility problems.
+
+--enable-pcre:
Zsh has a module which allows the pcre regular expression library to be
used via shell builtins. Compiling this library into the shell with
dynamic loading (the default where available) produces a dependency on the
library libpcre.so. This is a problem on systems where zsh needs to be
-available at boot before the directory containing libpcre.so (for
-example /usr/lib or /usr/local/lib) is mounted. For this reason,
-pcre support will only be searched for if the option --enable-pcre
-is passed to configure.
+available at boot before the directory containing libpcre.so (for example
+/usr/lib or /usr/local/lib) is mounted. For this reason, pcre support will
+only be searched for if the option --enable-pcre is passed to configure.
(Future versions of the shell may have a better fix for this problem.)
+--enable-cap:
+
+This searches for POSIX capabilities; if found, the `cap' library
+is available and the shell will use these to determine if the
+shell is running in some privileged mode. This is turned off by
+default as on some systems non-standard headers (in particular AIX) are
+required. A direct fix for that problem would be appreciated.
+
Options For Configure
---------------------
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author