--- projects/libstatgrab/configure.in 2005/04/25 12:37:20 1.84 +++ projects/libstatgrab/configure.in 2006/03/02 09:41:44 1.88 @@ -2,15 +2,16 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.84 2005/04/25 12:37:20 tdb Exp $ +# $Id: configure.in,v 1.88 2006/03/02 09:41:44 tdb Exp $ # # Change these to change the package name and version -AC_INIT(libstatgrab, 0.12, bugs@i-scream.org) -AM_INIT_AUTOMAKE(libstatgrab, 0.12) +AC_INIT(libstatgrab, 0.13, bugs@i-scream.org) +AM_INIT_AUTOMAKE(libstatgrab, 0.13) +AM_MAINTAINER_MODE # Revision number (automatically updated) -AC_REVISION($Revision: 1.84 $) +AC_REVISION($Revision: 1.88 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -61,6 +62,9 @@ AC_CHECK_HEADERS([libdevinfo.h]) AM_CONDITIONAL(SETGIDBINS, false) AM_CONDITIONAL(SETUIDBINS, false) +# Default MINGW setting +AM_CONDITIONAL(MINGW, false) + # Set things up for different OS's # We define the name of the OS so the code can act accordingly # We also need to add the right LDFLAGS @@ -91,10 +95,10 @@ freebsd4.*) BIN_PERM="2755" LINKFLAGS="-lkvm -ldevstat" ;; -freebsd[[5-6]].*) +freebsd[[5-7]].*) AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) AC_DEFINE(FREEBSD, , [Building on FreeBSD]) - AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x or 6.x]) + AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x - 7.x]) LINKFLAGS="-ldevstat" ;; netbsdelf1*) @@ -126,6 +130,12 @@ linux-gnu) ;; cygwin) AC_DEFINE(CYGWIN, , [Building on Cygwin]) + ;; +mingw32) + AC_DEFINE(MINGW, , [Building on MinGW]) + AC_DEFINE(WINVER, 0x0500, [Building for Windows 2000]) + AM_CONDITIONAL(MINGW, true) + LINKFLAGS="-lpdh -lIphlpapi -lpsapi -lnetapi32" ;; *) AC_MSG_ERROR([Cannot build on unknown OS: $host_os])