Commit ba0fcf20 ba0fcf20fdeabe16ca56d02d4318ac4a68c2a521 by Alain Magloire

Use strsignal

1 parent 1e700f5c
2001-05-21 Alain Magloire
GNU md5 is GPL, but we agreed that the libraries should
fall under LGPL.
* mailbox/message.c (message_get_uidl): Remove the dependency
from GNU md5.
* mailbox/md5-rsa.c: New File.
* mailbox/md5-rsa.h: New File.
* lib/signame.c: Replace in favor of the wellknown strsignal().
* lib/strsignal.c: New file, use the mu_signame() written by
Sergey.
* configure.in: autoconf-2.50 is having difficulty parsing
a long AC_CHECK_LIB, break it in two.
Check for strsignal()
2001-05-21 Alain Magloire
* configure.in, imap4d/signal.c, pop3d/signal.c:
sys_siglist is not defined on some systems (namely, Solaris).
* lib/signame.c: (added) Provide mu_signame() function to convert
......
......@@ -119,16 +119,23 @@ AC_SUBST(AUTHLIBS)
#When using thread support some platforms need -D_REENTRANT to get the
#right prototypes including errno.
dnl Check threading support
# We have to rearrange things a little, it appears that the new autoconf
# does not like long cascading AC_CHECK_LIB.
if test x"$usepthread" = x"yes"; then
AC_CHECK_LIB(pthread, pthread_cancel, [AC_CHECK_HEADERS(pthread.h,
AC_DEFINE(WITH_PTHREAD))
LIBS="$LIBS -lpthread"
AC_DEFINE(_REENTRANT)
AC_CHECK_FUNCS(pthread_rwlock_init)],
AC_CHECK_LIB(pthread, pthread_cancel, have_libpthread=yes
have_libpthread=no)
if test x"$have_libpthread" = x"yes"; then
AC_CHECK_HEADERS(pthread.h, AC_DEFINE(WITH_PTHREAD))
LIBS="$LIBS -lpthread"
AC_DEFINE(_REENTRANT)
AC_CHECK_FUNCS(pthread_rwlock_init)
else
AC_SEARCH_LIBS(pthread_cancel, pthread,
[AC_CHECK_FUNCS(pthread_rwlock_init)
AC_CHECK_HEADERS(pthread.h, AC_DEFINE(WITH_PTHREAD))
AC_DEFINE(_REENTRANT)]))
AC_CHECK_HEADERS(pthread.h,
AC_DEFINE(WITH_PTHREAD))
AC_DEFINE(_REENTRANT)])
fi
fi
dnl Do we need extra libs for networking?
......
......@@ -39,9 +39,7 @@ imap4d_sigchld (int signo)
RETSIGTYPE
imap4d_signal (int signo)
{
extern char *mu_signame __P((int signo));
syslog (LOG_CRIT, "got signal %s", mu_signame(signo));
syslog (LOG_CRIT, "got signal %s", strsignal (signo));
/* Master process. */
if (!ofile)
{
......
......@@ -38,8 +38,6 @@ pop3d_sigchld (int signo)
RETSIGTYPE
pop3d_signal (int signo)
{
/* extern char *mu_signame __P((int)); */
syslog (LOG_CRIT, "got signal %s", strsignal(signo));
/* Master process. */
if (!ofile)
......