6 |
|
# |
7 |
|
|
8 |
|
# Change these to change the package name and version |
9 |
< |
AC_INIT(libstatgrab, 0.15, bugs@i-scream.org) |
10 |
< |
AM_INIT_AUTOMAKE(libstatgrab, 0.15) |
9 |
> |
AC_INIT(libstatgrab, 0.16, bugs@i-scream.org) |
10 |
> |
AM_INIT_AUTOMAKE(libstatgrab, 0.16) |
11 |
|
AM_MAINTAINER_MODE |
12 |
|
|
13 |
|
# Revision number (automatically updated) |
78 |
|
BIN_PERM="4755" |
79 |
|
LINKFLAGS="-lkstat -lsocket -lnsl" |
80 |
|
AC_CHECK_LIB(devinfo, di_init, [LINKFLAGS="$LINKFLAGS -ldevinfo"]) |
81 |
+ |
AC_CHECK_LIB(m, fabs, [SAIDARLIBS="$SAIDARLIBS -lm"]) |
82 |
|
;; |
83 |
|
solaris2.*) |
84 |
|
AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])]) |
85 |
|
AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) |
86 |
|
LINKFLAGS="-lkstat -ldevinfo -lsocket -lnsl" |
87 |
+ |
AC_CHECK_LIB(m, fabs, [SAIDARLIBS="$SAIDARLIBS -lm"]) |
88 |
|
;; |
89 |
|
hpux11.11*) |
90 |
|
AC_DEFINE(HPUX, , [Building on HP-UX 11.11]) |
97 |
|
BIN_PERM="2755" |
98 |
|
LINKFLAGS="-lkvm -ldevstat" |
99 |
|
;; |
100 |
< |
freebsd[[5-7]].*) |
100 |
> |
freebsd[[5-8]].*) |
101 |
|
AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) |
102 |
|
AC_DEFINE(FREEBSD, , [Building on FreeBSD]) |
103 |
< |
AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x - 7.x]) |
103 |
> |
AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x - 8.x]) |
104 |
|
LINKFLAGS="-ldevstat" |
105 |
|
;; |
106 |
|
netbsdelf1*) |
124 |
|
BIN_PERM="2755" |
125 |
|
LINKFLAGS="-lkvm -ldevstat" |
126 |
|
;; |
127 |
< |
linux-gnu) |
127 |
> |
linux-gnu*) |
128 |
|
AC_DEFINE(LINUX, , [Building on GNU/Linux]) |
129 |
|
AM_CONDITIONAL(SETUIDBINS, true) |
130 |
|
BIN_OWNER="root" |