ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/ihost/configure.in
Revision: 1.4
Committed: Thu May 30 12:14:59 2002 UTC (22 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.3: +4 -1 lines
Log Message:
This should do a setgid kmem on FreeBSD systems during the install.

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 tdb 1.4 AM_CONDITIONAL([SETGIDKMEM], [false])
28    
29 tdb 1.1 case $host_os in
30     solaris2.*)
31     AC_DEFINE(SOLARIS, , [Building on Solaris 2.x])
32     LDFLAGS="$LDFLAGS -lnsl -lsocket -lkstat"
33     ;;
34     freebsd4.*)
35     AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x])
36     LDFLAGS="$LDFLAGS -lkvm"
37 tdb 1.4 AM_CONDITIONAL([SETGIDKMEM], [true])
38 tdb 1.1 ;;
39     linux-gnu)
40     AC_DEFINE(LINUX, , [Building on GNU/Lunix])
41     ;;
42     *)
43     AC_MSG_ERROR([Cannot build on unknown OS: $build_os])
44     ;;
45     esac
46    
47 tdb 1.3 AC_ARG_WITH([pid-file], AC_HELP_STRING([--with-pid-file=FILE],[location of PID file (default: /var/tmp/.ihost.pid)]), [pidfile=$withval], [pidfile=[/var/tmp/.ihost.pid]])
48     AC_DEFINE_UNQUOTED([PID_FILE], ["$pidfile"], [Location of PID file])
49     AC_SUBST([pidfile], [$pidfile])
50 tdb 1.2
51     AC_ARG_WITH([max-udp-size], AC_HELP_STRING([--with-max-udp-size=SIZE],[maximum size of UDP packets in kilobytes (default: 8192kb)]), [max_udp_size=$withval], [max_udp_size=[8192]])
52     AC_DEFINE_UNQUOTED([UDP_MAX_PACKET_SIZE], [$max_udp_size], [Maximum size of UDP packets in kilobytes])
53    
54 tdb 1.1 AC_CONFIG_FILES([Makefile libstatgrab/Makefile libukcprog/Makefile])
55 tdb 1.4 AC_CONFIG_FILES([ihostchk.sh], [chmod ugo+x ihostchk.sh])
56 tdb 1.1
57     AC_OUTPUT