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

Improved testing for HPUX and struct sockadr.

parent c99d9399
dnl $Id: configure.in,v 1.18 1994/04/05 07:50:44 ceder Exp $
dnl $Id: configure.in,v 1.19 1994/08/19 22:02:06 ceder Exp $
dnl Configuration for LysKOM
dnl Copyright (C) 1993, 1994 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.18 $)
AC_REVISION($Revision: 1.19 $)
AC_INIT(src/server/lyskomd.h)
AC_PROG_CC
AC_SUBST(CFLAGS)
......@@ -48,16 +48,18 @@ AC_IRIX_SUN
AC_CONST
AC_STDC_HEADERS
AC_COMPILE_CHECK([HPUX and struct sockaddr], dnl
[#include <sys/socket.h>], dnl
[#include <sys/types.h>
#include <sys/socket.h>], dnl
[struct sockaddr foo;], dnl
[test -n "$verbose" && echo ' 'No action needed], dnl IF FOUND
[test -n "$verbose" && echo ' 'Checking for a fix; dnl IF NOT FOUND
[AC_VERBOSE([No action needed])], dnl IF FOUND
[AC_VERBOSE([Checking for a fix]); dnl IF NOT FOUND
AC_COMPILE_CHECK([_HPUX_SOURCE to fix problems], dnl
[#define _HPUX_SOURCE
#include <sys/types.h>
#include <sys/socket.h>], dnl
[struct sockaddr foo;], dnl
AC_DEFINE(_HPUX_SOURCE), dnl
[test -n "$verbose" && echo ' 'Problem remains])])dnl
AC_DEFINE([_HPUX_SOURCE]), dnl
[AC_WARN([Cannot find struct sockaddr])])])dnl
AC_SUBST(SRCTOPDIR)
[SRCTOPDIR=`cd $srcdir;pwd`]
AC_SUBST(BUILDTOPDIR)
......
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