2 # Configure template for WebStone
3 # Process this file with autoconf to produce a configure script.
5 # This file and all files contained in this directory are
6 # copyright 1995, Silicon Graphics, Inc.
8 # This software is provided without support and without any obligation on the
9 # part of Silicon Graphics, Inc. to assist in its use, correction, modification
10 # or enhancement. There is no guarantee that this software will be included in
11 # future software releases, and it probably will not be included.
13 # THIS SOFTWARE IS PROVIDED "AS IS" WITH NO WARRANTIES OF ANY KIND INCLUDING
14 # THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
15 # PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
17 # In no event will Silicon Graphics, Inc. be liable for any lost revenue or
18 # profits or other special, indirect and consequential damages, even if
19 # Silicon Graphics, Inc. has been advised of the possibility of such damages.
22 AC_CONFIG_HEADER(config.h)
25 AC_DEFINE_UNQUOTED(PRODUCT, "$PRODUCT")
26 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
29 AC_PREFIX_DEFAULT(bin)
42 # We use a path for perl so the #! line in bin/wscollect.pl will work.
43 AC_PATH_PROG(PERL, perl, no)
45 AC_SUBST(PERL_SCRIPTS)
46 if test "$PERL" != no; then
47 PERL_SCRIPTS="bin/wscollect.pl"
49 AC_MSG_WARN(Some functions may work correctly, since perl was not found)
53 # checks for libraries
55 # Replace `main' with a function in -lm:
56 AC_CHECK_LIB(m, floor)
57 AC_CHECK_LIB(compat, rexec)
58 AC_CHECK_LIB(ucb, wait3)
59 AC_CHECK_LIB(socket, connect, AC_SUBST(LIBS), , -lnsl)
62 # checks for header files
66 AC_CHECK_HEADERS(fcntl.h limits.h sgtty.h sys/time.h unistd.h)
69 # checks for typedefs, structures, and compiler characteristics
76 AC_TRY_COMPILE([#include <sys/time.h>],
77 [struct timeval thetime; struct timezone thezone;
78 gettimeofday(&thetime, &thezone); ],
79 AC_DEFINE(USE_TIMEZONE), )
82 # checks for library functions
88 AC_CHECK_FUNCS(gethostname gettimeofday select socket strerror)
91 # checks for system services