ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/ihost/configure.in
Revision: 1.1
Committed: Wed May 29 19:41:59 2002 UTC (22 years, 7 months ago) by tdb
Branch: MAIN
Log Message:
This ihost now uses autoconf and automake to make a "normal" installation
and distribution ;) It's now far easier to compile. To build from CVS :-
aclocal
autoheader
autoconf
automake -a -c
Then for compiling (end users will only need to do this) :-
./configure
make
make install
To build a distribution :-
make dist

File Contents

# User Rev Content
1 tdb 1.1 AC_INIT(ihost.c)
2     AM_INIT_AUTOMAKE(ihost, 1.0rc1)
3     dnl AC_CONFIG_SRCDIR([ihost.c])
4     AM_CONFIG_HEADER([config.h])
5    
6     AC_PROG_CC
7     AC_PROG_INSTALL
8     AC_PROG_RANLIB
9    
10     dnl AC_HEADER_DIRENT
11     AC_HEADER_STDC
12     dnl AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h memory.h mntent.h netdb.h netinet/in.h stddef.h stdlib.h string.h sys/mount.h sys/param.h sys/socket.h sys/statvfs.h sys/time.h sys/vfs.h syslog.h unistd.h utmp.h])
13    
14     dnl AC_C_CONST
15     dnl AC_TYPE_UID_T
16     dnl AC_TYPE_PID_T
17     dnl AC_TYPE_SIZE_T
18     dnl AC_HEADER_TIME
19    
20     dnl AC_FUNC_FORK
21     AC_FUNC_GETLOADAVG
22     dnl AC_FUNC_MALLOC
23     dnl AC_CHECK_FUNCS([gethostbyname getmntent getmntinfo getpagesize inet_ntoa memmove memset socket strchr strdup strncasecmp strrchr strtol uname])
24    
25     AC_CANONICAL_HOST
26    
27     case $host_os in
28     solaris2.*)
29     AC_DEFINE(SOLARIS, , [Building on Solaris 2.x])
30     LDFLAGS="$LDFLAGS -lnsl -lsocket -lkstat"
31     ;;
32     freebsd4.*)
33     AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x])
34     LDFLAGS="$LDFLAGS -lkvm"
35     ;;
36     linux-gnu)
37     AC_DEFINE(LINUX, , [Building on GNU/Lunix])
38     ;;
39     *)
40     AC_MSG_ERROR([Cannot build on unknown OS: $build_os])
41     ;;
42     esac
43    
44     AC_CONFIG_FILES([Makefile libstatgrab/Makefile libukcprog/Makefile])
45    
46     AC_OUTPUT