6 |
|
AM_INIT_AUTOMAKE(ihost, 1.0rc1) |
7 |
|
|
8 |
|
dnl The file we use to pass #define's to the source |
9 |
< |
AM_CONFIG_HEADER([config.h]) |
9 |
> |
AM_CONFIG_HEADER(config.h) |
10 |
|
|
11 |
|
dnl We need a CC, install, and ranlib |
12 |
|
AC_PROG_CC |
23 |
|
AC_CANONICAL_HOST |
24 |
|
|
25 |
|
dnl Default needing setgid kmem to false |
26 |
< |
AM_CONDITIONAL([SETGIDKMEM], [false]) |
26 |
> |
AM_CONDITIONAL(SETGIDKMEM, false) |
27 |
|
|
28 |
|
dnl Set things up for different OS's |
29 |
|
dnl We define the name of the OS so the code can act accordingly |
37 |
|
AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x]) |
38 |
|
LDFLAGS="$LDFLAGS -lkvm" |
39 |
|
dnl FreeBSD needs ihost to be setgid kmem |
40 |
< |
AM_CONDITIONAL([SETGIDKMEM], [true]) |
40 |
> |
AM_CONDITIONAL(SETGIDKMEM, true) |
41 |
|
;; |
42 |
|
linux-gnu) |
43 |
|
AC_DEFINE(LINUX, , [Building on GNU/Lunix]) |
49 |
|
|
50 |
|
dnl Check for the --with-pid-file option |
51 |
|
dnl define accordingly for the code, and subst for the scripts |
52 |
< |
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]]) |
52 |
> |
AC_ARG_WITH([pid-file], [ --with-pid-file=FILE location of PID file (default: /var/tmp/.ihost.pid)], [pidfile=$withval], [pidfile=[/var/tmp/.ihost.pid]]) |
53 |
|
AC_DEFINE_UNQUOTED([PID_FILE], ["$pidfile"], [Location of PID file]) |
54 |
|
AC_SUBST([pidfile], [$pidfile]) |
55 |
|
|
56 |
|
dnl Check for the --with-max-udp-size option |
57 |
|
dnl define accordingly for the code |
58 |
< |
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]]) |
58 |
> |
AC_ARG_WITH([max-udp-size], [ --with-max-udp-size=KB maximum size of UDP packets in kilobytes (default: 8192kb)], [max_udp_size=$withval], [max_udp_size=[8192]]) |
59 |
|
AC_DEFINE_UNQUOTED([UDP_MAX_PACKET_SIZE], [$max_udp_size], [Maximum size of UDP packets in kilobytes]) |
60 |
|
|
61 |
< |
dnl Finally the files we'll want to change |
62 |
< |
AC_CONFIG_FILES([Makefile libstatgrab/Makefile libukcprog/Makefile]) |
63 |
< |
AC_CONFIG_FILES([ihostchk.sh], [chmod ugo+x ihostchk.sh]) |
64 |
< |
|
65 |
< |
dnl And finish :) |
66 |
< |
AC_OUTPUT |
61 |
> |
dnl And finish by changing these files |
62 |
> |
AC_OUTPUT([Makefile libstatgrab/Makefile libukcprog/Makefile ihostchk.sh], [chmod ugo+x ihostchk.sh]) |