Commit cdfdc0ee authored by David Byers's avatar David Byers
Browse files

Check for crypt.h in configure.in

parent 149880f3
Sun Jun 9 10:40:57 1996 David Byers <davby@sen2.ida.liu.se>
* doc/prot-A.txt: Documented prot-A.txt
* configure.in: Check for crypt.h, unistd.h
Tue May 21 22:39:46 1996 Per Cederqvist (ceder@lysator.liu.se)
* doc/prot-A.txt (30=add-recipient): The third argument is now
......
#! /bin/sh
# From configure.in Revision: 1.29
# From configure.in Revision: 1.30
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.4
......@@ -1316,12 +1316,48 @@ else
fi
done
for ac_hdr in crypt.h unistd.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1328 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1325 "configure"
#line 1361 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
......@@ -1356,7 +1392,7 @@ if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1360 "configure"
#line 1396 "configure"
#include "confdefs.h"
#include <alloca.h>
int main() { return 0; }
......@@ -1387,7 +1423,7 @@ if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1391 "configure"
#line 1427 "configure"
#include "confdefs.h"
#ifdef __GNUC__
......@@ -1445,7 +1481,7 @@ if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1449 "configure"
#line 1485 "configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
......@@ -1473,7 +1509,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1477 "configure"
#line 1513 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
......@@ -1527,7 +1563,7 @@ else
ac_cv_c_stack_direction=0
else
cat > conftest.$ac_ext <<EOF
#line 1531 "configure"
#line 1567 "configure"
#include "confdefs.h"
find_stack_direction ()
{
......@@ -1569,7 +1605,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lresolv $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1573 "configure"
#line 1609 "configure"
#include "confdefs.h"
int main() { return 0; }
......@@ -1607,7 +1643,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lauthuser $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1611 "configure"
#line 1647 "configure"
#include "confdefs.h"
int main() { return 0; }
......@@ -1645,7 +1681,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1649 "configure"
#line 1685 "configure"
#include "confdefs.h"
int main() { return 0; }
......@@ -1683,7 +1719,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1687 "configure"
#line 1723 "configure"
#include "confdefs.h"
int main() { return 0; }
......@@ -1721,7 +1757,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-li $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1725 "configure"
#line 1761 "configure"
#include "confdefs.h"
int main() { return 0; }
......@@ -1759,7 +1795,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1763 "configure"
#line 1799 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
......@@ -1810,7 +1846,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1814 "configure"
#line 1850 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
......@@ -1861,7 +1897,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1865 "configure"
#line 1901 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
......@@ -1926,7 +1962,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1930 "configure"
#line 1966 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
......@@ -1975,7 +2011,7 @@ if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1979 "configure"
#line 2015 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char memmove(); below. */
......@@ -2026,7 +2062,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2030 "configure"
#line 2066 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
......@@ -2056,7 +2092,7 @@ done
echo $ac_n "checking for BSD string and memory functions""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
#line 2060 "configure"
#line 2096 "configure"
#include "confdefs.h"
#include <strings.h>
int main() { return 0; }
......@@ -2088,6 +2124,42 @@ cat >> confdefs.h <<\EOF
#define SERVER 1
EOF
for ac_hdr in alloca.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2136 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
......
dnl $Id: configure.in,v 1.30 1996/02/25 20:25:17 ceder Exp $
dnl $Id: configure.in,v 1.31 1996/06/09 13:40:05 byers Exp $
dnl Configuration for LysKOM
dnl Copyright (C) 1993, 1994, 1995 Lysator Academic Computer Association.
dnl
......@@ -18,7 +18,7 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
dnl
dnl Please mail bug reports to bug-lyskom@lysator.liu.se.
dnl
AC_REVISION($Revision: 1.30 $)
AC_REVISION($Revision: 1.31 $)
AC_INIT(src/server/lyskomd.h)
AC_ARG_WITH([gnu-malloc],
[ --with-gnu-malloc use GNU malloc],
......@@ -85,6 +85,7 @@ AC_PROG_LEX
AC_CHECK_PROGS(SED, sed)
AC_CHECK_HEADERS(string.h memory.h strings.h sys/param.h sys/time.h)
AC_CHECK_HEADERS(stdarg.h stdlib.h stddef.h locale.h sys/resource.h)
AC_CHECK_HEADERS(crypt.h unistd.h)
AC_HEADER_TIME
AC_FUNC_ALLOCA
AC_CHECK_LIB(resolv,main) dnl Host name lookup.
......
\input texinfo @c -*-texinfo-*-
@c $Id: Protocol-A.texi,v 1.1 1996/01/13 16:38:27 byers Exp $
@c $Id: Protocol-A.texi,v 1.2 1996/06/09 13:40:11 byers Exp $
@c %**start of header
@setfilename protocol-a.info
@settitle LysKOM Protocol A
......@@ -1656,6 +1656,7 @@ or they will be incompatible with old client versions.
* lookup-z-name:: Look up an abbreviated name (76)
* set-last-read:: E Set text last read in a conference (77)
* get-uconf-stat:: E Get abbreviated conference status (78)
* set-info:: Get server information (79)
@end menu
@iftex
......@@ -1965,9 +1966,40 @@ This example shows the successful deletion of conference number seven.
@node get-version-info, lookup-z-name, re-z-lookup, Protocol Requests
@node lookup-z-name, set-last-read, get-version-info, Protocol Requests
@node set-last-read, get-uconf-stat, lookup-z-name, Protocol Requests
@node get-uconf-stat, , set-last-read, Protocol Requests
@node get-uconf-stat, set-info, set-last-read, Protocol Requests
@node set-info, , get-uconf-stat, Protocol Requests
@subsection set-info (9) Recommended
@example
set-info <79> ( info : Info ) -> ( )
@end example
This call sets the server information retreived by @ref{get-info}. The
version number in the info structure is ignored, but all other fields
are stored permanently in the LysKOM database. This is a privileged
call.
@example
1 79 1 2 3 4 1080
@i{=1}
@end example
This example sets the conference presentation conference to one, the
user presentation conference to two, the motd conference to three and
the news conference to four. It also sets the login message to text
1080.
@unnumberedsubsubsec Error codes
@table @asis
@item Error 6
The session is not logged on. Login is required for this operation.
@item Error 9
One of the listed conferences does not exist.
@item Error 12
The session has insufficient privileges.
@item Error 14
The MOTD text does not exist
@end table
@node Asynchronous Messages, , , Top
......@@ -1976,5 +2008,4 @@ This example shows the successful deletion of conference number seven.
@node Examples, , , Top
@chapter Examples
@bye
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment