Commit 2b7a0b5b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Check for sys/select.h and libcrypt.

(DEPENDFLAG): SparcWorks wants it set to -xM1.
parent e142dfc3
dnl $Id: configure.in,v 1.36 1996/08/03 01:28:58 ceder Exp $
dnl $Id: configure.in,v 1.37 1996/08/03 16:03:08 ceder Exp $
dnl Configuration for LysKOM
dnl Copyright (C) 1993, 1994, 1995, 1996 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.36 $)
AC_REVISION($Revision: 1.37 $)
AC_INIT(src/server/lyskomd.h)
AC_ARG_WITH([gnu-malloc],
[ --with-gnu-malloc use GNU malloc],
......@@ -44,7 +44,15 @@ else
case "$CC" in
*vcc) DEPENDFLAG=-Em
INCLUDE_CURRENT='-I`pwd`';;
*) DEPENDFLAG=-M;;
*) if $CC -flags > conftestccflags 2>/dev/null \
&& grep '^-xM1.*depend' conftestccflags >/dev/null 2>&1
then
# SparcWorks
DEPENDFLAG=-xM1
else
# Traditional
DEPENDFLAG=-M
fi;;
esac
fi]
AC_MSG_CHECKING([flag to get dependencies])
......@@ -127,6 +135,7 @@ 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_CHECK_HEADERS(sys/select.h) dnl Needed by ISC
AC_HEADER_TIME
AC_FUNC_ALLOCA
AC_CHECK_LIB(resolv,main) dnl Host name lookup.
......@@ -134,6 +143,7 @@ AC_CHECK_LIB(authuser,auth_tcpuser3) dnl User authentication according to RFC 93
AC_CHECK_LIB(nsl,gethostbyname) dnl Low-level networking code on Solaris 2.
AC_CHECK_LIB(socket,socket) dnl socket() et c on Solaris 2.
AC_CHECK_LIB(i,setlocale) dnl For setlocale() on Ultrix.
AC_CHECK_LIB(crypt,crypt) dnl For crypt() on Sparc NetBSD 1.1
AC_CHECK_FUNCS(difftime getdtablesize sysconf strchr getcwd vfprintf)
AC_CHECK_FUNCS(setrlimit)
AC_REPLACE_FUNCS(memcpy strerror remove memset memchr setsid)
......
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