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_LIB(statgrab, get_general_stats,[LIBS="-Wl,-Bstatic -lstatgrab -Wl,-Bdynamic $LIBS"],[AC_MSG_ERROR([need libstatgrab])]) |
51 |
|
|
52 |
|
# Figure out details about the host - we need the OS |
53 |
|
AC_CANONICAL_HOST |
61 |
|
case $host_os in |
62 |
|
solaris2.*) |
63 |
|
AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) |
64 |
< |
LDFLAGS="$LDFLAGS -lnsl -lsocket -lkstat" |
64 |
> |
LIBS="$LIBS -lnsl -lsocket -lkstat" |
65 |
|
;; |
66 |
|
freebsd4.*) |
67 |
|
AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x]) |
68 |
< |
LDFLAGS="$LDFLAGS -lkvm" |
68 |
> |
LIBS="$LIBS -lkvm" |
69 |
|
# FreeBSD needs ihost to be setgid kmem |
70 |
|
AM_CONDITIONAL(SETGIDKMEM, true) |
71 |
|
;; |