6 |
|
# |
7 |
|
|
8 |
|
# Change these to change the package name and version |
9 |
< |
AC_INIT(ihost, 1.5, dev@i-scream.org.uk) |
10 |
< |
AM_INIT_AUTOMAKE(ihost, 1.5) |
9 |
> |
AC_INIT(ihost, 1.6, dev@i-scream.org.uk) |
10 |
> |
AM_INIT_AUTOMAKE(ihost, 1.6) |
11 |
|
|
12 |
|
# Revision number (automatically updated) |
13 |
|
AC_REVISION($Revision$) |
47 |
|
AC_FUNC_MALLOC |
48 |
|
AC_FUNC_REALLOC |
49 |
|
AC_FUNC_FORK |
50 |
< |
AC_CHECK_LIB(statgrab, get_general_stats,,[AC_MSG_ERROR([need libstatgrab])]) |
50 |
> |
AC_CHECK_FUNCS(strlcat) |
51 |
> |
AC_CHECK_LIB(statgrab, get_general_stats,[LIBS="-Wl,-Bstatic -lstatgrab -Wl,-Bdynamic $LIBS"],[AC_MSG_ERROR([need libstatgrab])]) |
52 |
|
|
53 |
|
# Figure out details about the host - we need the OS |
54 |
|
AC_CANONICAL_HOST |
62 |
|
case $host_os in |
63 |
|
solaris2.*) |
64 |
|
AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) |
65 |
< |
LDFLAGS="$LDFLAGS -lnsl -lsocket -lkstat" |
65 |
> |
LIBS="$LIBS -lnsl -lsocket -lkstat" |
66 |
|
;; |
67 |
|
freebsd4.*) |
68 |
|
AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x]) |
69 |
< |
LDFLAGS="$LDFLAGS -lkvm" |
69 |
> |
LIBS="$LIBS -lkvm" |
70 |
|
# FreeBSD needs ihost to be setgid kmem |
71 |
|
AM_CONDITIONAL(SETGIDKMEM, true) |
72 |
|
;; |