6 |
|
# |
7 |
|
|
8 |
|
# Change these to change the package name and version |
9 |
< |
AC_INIT(libstatgrab, 0.6, bugs@i-scream.org) |
10 |
< |
AM_INIT_AUTOMAKE(libstatgrab, 0.6) |
9 |
> |
AC_INIT(libstatgrab, 0.6.1, bugs@i-scream.org) |
10 |
> |
AM_INIT_AUTOMAKE(libstatgrab, 0.6.1) |
11 |
|
|
12 |
|
# Revision number (automatically updated) |
13 |
|
AC_REVISION($Revision$) |
34 |
|
AC_FUNC_REALLOC |
35 |
|
AC_CHECK_FUNCS(atoll) |
36 |
|
|
37 |
+ |
# Default needing setgid to false |
38 |
+ |
AM_CONDITIONAL(SETGIDBINS, false) |
39 |
+ |
|
40 |
|
# Set things up for different OS's |
41 |
|
# We define the name of the OS so the code can act accordingly |
42 |
|
# We also need to add the right LDFLAGS |
53 |
|
LINKFLAGS="-lkstat" |
54 |
|
;; |
55 |
|
freebsd4.*) |
56 |
< |
AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x]) |
56 |
> |
AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) |
57 |
> |
AC_DEFINE(FREEBSD, , [Building on FreeBSD]) |
58 |
> |
AM_CONDITIONAL(SETGIDBINS, true) |
59 |
|
LINKFLAGS="-lkvm -ldevstat" |
60 |
|
;; |
61 |
+ |
freebsd5.*) |
62 |
+ |
AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) |
63 |
+ |
AC_DEFINE(FREEBSD, , [Building on FreeBSD]) |
64 |
+ |
AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x]) |
65 |
+ |
AM_CONDITIONAL(SETGIDBINS, true) |
66 |
+ |
LINKFLAGS="-lkvm -ldevstat" |
67 |
+ |
;; |
68 |
+ |
netbsdelf1.*) |
69 |
+ |
AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) |
70 |
+ |
AC_DEFINE(NETBSD, , [Building on NetBSD]) |
71 |
+ |
AM_CONDITIONAL(SETGIDBINS, true) |
72 |
+ |
LINKFLAGS="-lkvm" |
73 |
+ |
;; |
74 |
|
linux-gnu) |
75 |
|
AC_DEFINE(LINUX, , [Building on GNU/Linux]) |
76 |
|
;; |
87 |
|
SAIDARLIBS="-L${withval}/lib ${SAIDARLIBS}" |
88 |
|
fi |
89 |
|
if test -d "$withval/include"; then |
90 |
< |
SAIDARCPPFLAGS="-I${withval}/include ${SAIRDARCPPFLAGS}" |
90 |
> |
SAIDARCPPFLAGS="-I${withval}/include -I${withval}/include/ncurses ${SAIRDARCPPFLAGS}" |
91 |
|
fi |
92 |
|
] |
93 |
|
) |
139 |
|
AM_CONDITIONAL(MANPAGES, false) |
140 |
|
fi |
141 |
|
] |
142 |
+ |
) |
143 |
+ |
|
144 |
+ |
# Check if the user wants to turn off setgid binaries |
145 |
+ |
# (only really relevant on FreeBSD) |
146 |
+ |
AC_ARG_ENABLE(setgid-binaries, |
147 |
+ |
[ --disable-setgid-binaries disable binaries being setgid], |
148 |
+ |
[ |
149 |
+ |
if test "x$enableval" = "xno" ; then |
150 |
+ |
AM_CONDITIONAL(SETGIDBINS, false) |
151 |
+ |
fi |
152 |
+ |
] |
153 |
|
) |
154 |
|
|
155 |
|
# The LIBS and CPPFLAGS that saidar needs |