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.82 by tdb, Mon Apr 4 14:27:23 2005 UTC vs.
Revision 1.96 by tdb, Sat Feb 16 16:11:16 2008 UTC

# Line 6 | Line 6
6   #
7  
8   # Change these to change the package name and version
9 < AC_INIT(libstatgrab, 0.12, bugs@i-scream.org)
10 < AM_INIT_AUTOMAKE(libstatgrab, 0.12)
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)
14   AC_REVISION($Revision$)
# Line 61 | Line 62 | AC_CHECK_HEADERS([libdevinfo.h])
62   AM_CONDITIONAL(SETGIDBINS, false)
63   AM_CONDITIONAL(SETUIDBINS, false)
64  
65 + # Default MINGW setting
66 + AM_CONDITIONAL(MINGW, false)
67 +
68   # Set things up for different OS's
69   # We define the name of the OS so the code can act accordingly
70   # We also need to add the right LDFLAGS
# Line 74 | Line 78 | solaris2.[[6-7]])
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])
# Line 91 | Line 97 | freebsd4.*)
97          BIN_PERM="2755"
98          LINKFLAGS="-lkvm -ldevstat"
99          ;;
100 < freebsd[[5-6]].*)
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 or 6.x])
103 >        AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x - 8.x])
104          LINKFLAGS="-ldevstat"
105          ;;
106   netbsdelf1*)
107          AC_DEFINE(ALLBSD, , [Building on a BSD-derived system])
108          AC_DEFINE(NETBSD, , [Building on NetBSD])
109          ;;
110 < netbsdelf2*)
110 > netbsdelf[[2-3]]*)
111          AC_DEFINE(ALLBSD, , [Building on a BSD-derived system])
112          AC_DEFINE(NETBSD, , [Building on NetBSD])
113          AC_DEFINE(NETBSD2, , [Building on NetBSD 2.x])
# Line 118 | Line 124 | dragonfly*)
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"
# Line 127 | Line 133 | linux-gnu)
133   cygwin)
134          AC_DEFINE(CYGWIN, , [Building on Cygwin])
135          ;;
136 + mingw32)
137 +        AC_DEFINE(MINGW, , [Building on MinGW])
138 +        AC_DEFINE(WINVER, 0x0500, [Building for Windows 2000])
139 +        AM_CONDITIONAL(MINGW, true)
140 +        LINKFLAGS="-lpdh -lIphlpapi -lpsapi -lnetapi32"
141 +        ;;
142   *)
143          AC_MSG_ERROR([Cannot build on unknown OS: $host_os])
144          ;;
# Line 140 | Line 152 | AC_ARG_WITH([curses-prefix],
152                          SAIDARLIBS="-L${withval}/lib ${SAIDARLIBS}"
153                  fi
154                  if test -d "$withval/include"; then
155 <                        SAIDARCPPFLAGS="-I${withval}/include -I${withval}/include/ncurses ${SAIRDARCPPFLAGS}"
155 >                        SAIDARCPPFLAGS="-I${withval}/include ${SAIRDARCPPFLAGS}"
156                  fi
157          ]
158   )
# Line 172 | Line 184 | AC_ARG_ENABLE(saidar,
184          ]
185   )
186  
175 # Check if user wants to disable sgps
176 AM_CONDITIONAL(SGPS, true)
177 AC_ARG_ENABLE(sgps,
178        [  --disable-sgps          disable building of sgps],
179        [
180                if test "x$enableval" = "xno" ; then
181                        AM_CONDITIONAL(SGPS, false)
182                fi
183        ]
184 )
185
187   # Check if the user would prefer not to build examples
188   AM_CONDITIONAL(EXAMPLES, true)
189   AC_ARG_ENABLE(examples,
# Line 250 | Line 251 | AC_SUBST(BIN_GROUP)
251   AC_SUBST(BIN_PERM)
252  
253   # And finish by changing these files
254 < AC_CONFIG_FILES([Makefile src/Makefile src/libstatgrab/Makefile src/statgrab/Makefile docs/Makefile examples/Makefile libstatgrab.pc src/statgrab/statgrab-make-mrtg-config src/statgrab/statgrab-make-mrtg-index src/saidar/Makefile src/sgps/Makefile])
254 > AC_CONFIG_FILES([Makefile src/Makefile src/libstatgrab/Makefile src/statgrab/Makefile docs/Makefile docs/libstatgrab/Makefile docs/statgrab/Makefile docs/saidar/Makefile examples/Makefile libstatgrab.pc src/statgrab/statgrab-make-mrtg-config src/statgrab/statgrab-make-mrtg-index src/saidar/Makefile])
255  
256   AC_OUTPUT

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines