24 |
|
|
25 |
|
AC_CANONICAL_HOST |
26 |
|
|
27 |
+ |
AM_CONDITIONAL([SETGIDKMEM], [false]) |
28 |
+ |
|
29 |
|
case $host_os in |
30 |
|
solaris2.*) |
31 |
|
AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) |
34 |
|
freebsd4.*) |
35 |
|
AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x]) |
36 |
|
LDFLAGS="$LDFLAGS -lkvm" |
37 |
+ |
AM_CONDITIONAL([SETGIDKMEM], [true]) |
38 |
|
;; |
39 |
|
linux-gnu) |
40 |
|
AC_DEFINE(LINUX, , [Building on GNU/Lunix]) |
44 |
|
;; |
45 |
|
esac |
46 |
|
|
47 |
< |
AC_ARG_WITH([pid-file], AC_HELP_STRING([--with-pid-file=FILE],[location of PID file (default: /var/tmp/.ihost.pid)]), [pid_file=$withval], [pid_file=[/var/tmp/.ihost.pid]]) |
48 |
< |
AC_DEFINE_UNQUOTED([PID_FILE], ["$pid_file"], [Location of PID file]) |
47 |
> |
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 |
|
|
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 |
|
AC_CONFIG_FILES([Makefile libstatgrab/Makefile libukcprog/Makefile]) |
55 |
+ |
AC_CONFIG_FILES([ihostchk.sh], [chmod ugo+x ihostchk.sh]) |
56 |
|
|
57 |
|
AC_OUTPUT |