ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/configure.in
(Generate patch)

Comparing projects/libstatgrab/configure.in (file contents):
Revision 1.32 by tdb, Sat Oct 4 16:32:23 2003 UTC vs.
Revision 1.51 by tdb, Tue Feb 10 16:02:42 2004 UTC

# Line 6 | Line 6
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.8.2, bugs@i-scream.org)
10 > AM_INIT_AUTOMAKE(libstatgrab, 0.8.2)
11  
12   # Revision number (automatically updated)
13   AC_REVISION($Revision$)
# Line 34 | Line 34 | AC_FUNC_MALLOC
34   AC_FUNC_REALLOC
35   AC_CHECK_FUNCS(atoll)
36  
37 + # Disk IO read and write statistics are only present on recent NetBSD.
38 + AC_CHECK_MEMBER(struct disk_sysctl.dk_rbytes,
39 +                [AC_DEFINE(HAVE_DK_RBYTES, , [New-style NetBSD stats])],
40 +                [],
41 +                [#include <sys/disk.h>])
42 +
43 + # Check for sys/loadavg.h
44 + AC_CHECK_HEADERS([sys/loadavg.h])
45 +
46 + # Check for libdevinfo.h
47 + AC_CHECK_HEADERS([libdevinfo.h])
48 +
49 + # Default needing setgid/setuid to false
50 + AM_CONDITIONAL(SETGIDBINS, false)
51 + AM_CONDITIONAL(SETUIDBINS, false)
52 +
53   # Set things up for different OS's
54   # We define the name of the OS so the code can act accordingly
55   # We also need to add the right LDFLAGS
# Line 42 | Line 58 | solaris2.[[6-7]])
58          AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])])
59          AC_DEFINE(SOLARIS, , [Building on Solaris 2.x])
60          AC_DEFINE(SOL7, , [Building on Solaris 2.7])
61 <        LINKFLAGS="-lkstat"
61 >        AM_CONDITIONAL(SETUIDBINS, true)
62 >        LINKFLAGS="-lkstat -ldevinfo"
63          ;;
64   solaris2.*)
65          AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])])
66          AC_DEFINE(SOLARIS, , [Building on Solaris 2.x])
67 <        LINKFLAGS="-lkstat"
67 >        AM_CONDITIONAL(SETUIDBINS, true)
68 >        LINKFLAGS="-lkstat -ldevinfo"
69          ;;
70   freebsd4.*)
71 <        AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x])
71 >        AC_DEFINE(ALLBSD, , [Building on a BSD-derived system])
72 >        AC_DEFINE(FREEBSD, , [Building on FreeBSD])
73 >        AM_CONDITIONAL(SETGIDBINS, true)
74          LINKFLAGS="-lkvm -ldevstat"
75          ;;
76 + freebsd5.*)
77 +        AC_DEFINE(ALLBSD, , [Building on a BSD-derived system])
78 +        AC_DEFINE(FREEBSD, , [Building on FreeBSD])
79 +        AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x])
80 +        AM_CONDITIONAL(SETGIDBINS, true)
81 +        LINKFLAGS="-lkvm -ldevstat"
82 +        ;;
83 + netbsdelf*)
84 +        AC_DEFINE(ALLBSD, , [Building on a BSD-derived system])
85 +        AC_DEFINE(NETBSD, , [Building on NetBSD])
86 +        AM_CONDITIONAL(SETGIDBINS, true)
87 +        LINKFLAGS="-lkvm"
88 +        ;;
89   linux-gnu)
90          AC_DEFINE(LINUX, , [Building on GNU/Linux])
91          ;;
92 + cygwin)
93 +        AC_DEFINE(CYGWIN, , [Building on Cygwin])
94 +        ;;
95   *)
96          AC_MSG_ERROR([Cannot build on unknown OS: $host_os])
97          ;;
# Line 121 | Line 157 | AC_ARG_ENABLE(manpages,
157                          AM_CONDITIONAL(MANPAGES, false)
158                  fi
159          ]
160 + )
161 +
162 + # Check if the user wants to turn off setgid binaries
163 + AC_ARG_ENABLE(setgid-binaries,
164 +        [  --disable-setgid-binaries     disable binaries being setgid],
165 +        [
166 +                if test "x$enableval" = "xno" ; then
167 +                        AM_CONDITIONAL(SETGIDBINS, false)
168 +                fi
169 +        ]
170 + )
171 +
172 + # Check if the user wants to turn off setuid binaries
173 + AC_ARG_ENABLE(setuid-binaries,
174 +        [  --disable-setuid-binaries     disable binaries being setuid],
175 +        [
176 +                if test "x$enableval" = "xno" ; then
177 +                        AM_CONDITIONAL(SETUIDBINS, false)
178 +                fi
179 +        ]
180   )
181  
182   # The LIBS and CPPFLAGS that saidar needs

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines