Commit c0cd6aa6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

When checking for rlim_t in <sys/resource.h>, and when checking for

<sys/resource.h> itself, include <time.h> and <sys/time.h> in the
proper way.  Both these tests were made too early.
parent 602e59c5
dnl $Id: configure.in,v 1.90 2002/09/09 19:01:13 ceder Exp $
dnl $Id: configure.in,v 1.91 2002/10/06 07:22:23 ceder Exp $
dnl Configuration for LysKOM
dnl Copyright (C) 1993-2002 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.90 $)
AC_REVISION($Revision: 1.91 $)
AC_PREREQ(2.53)
AC_INIT([lyskom-server], [2.0.7])
AC_CONFIG_SRCDIR([src/server/lyskomd.h])
......@@ -241,11 +241,6 @@ then]
from a signal handler if your OS lacks sig_atomic_t.])
[fi]
dnl
AC_CHECK_TYPE([rlim_t],
AC_DEFINE([HAVE_RLIM_T], [1], [Define if rlimt_t is available.]),,[
#include <sys/resource.h>
])
dnl
# FIXME (bug 209): is this needed now that we use AM_C_PROTOTYPES?
AC_MSG_CHECKING([if _HPUX_SOURCE needs to be defined])
AC_CACHE_VAL([kom_cv_sys_hpux_source],
......@@ -301,11 +296,40 @@ AC_CHECK_PROGS(BISON, bison)
AC_CHECK_PROGS(FLEX, flex)
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(stdarg.h stdlib.h stddef.h locale.h)
AC_CHECK_HEADERS(crypt.h unistd.h)
AC_CHECK_HEADERS(values.h) dnl libmisc/pom.c
AC_HEADER_TIME
AC_FUNC_ALLOCA
dnl
AC_CHECK_HEADERS(sys/resource.h,,,
[#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif])
dnl
AC_CHECK_TYPE([rlim_t],
AC_DEFINE([HAVE_RLIM_T], [1], [Define if rlimt_t is available.]),,[
#ifdef HAVE_SYS_RESOURCE_H
# ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
# else
# ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
# endif
# include <sys/resource.h>
#endif])
dnl
AC_CHECK_LIB(resolv,main) dnl Host name lookup.
AC_CHECK_LIB(authuser,auth_tcpuser3) dnl User authentication according to RFC 931.
dnl Low-level networking code on Solaris 2.
......
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