--- projects/libstatgrab/configure.in 2005/07/13 20:52:49 1.85 +++ projects/libstatgrab/configure.in 2005/09/24 13:29:21 1.87 @@ -2,15 +2,15 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.85 2005/07/13 20:52:49 tdb Exp $ +# $Id: configure.in,v 1.87 2005/09/24 13:29:21 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) # Revision number (automatically updated) -AC_REVISION($Revision: 1.85 $) +AC_REVISION($Revision: 1.87 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -61,6 +61,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 @@ -126,6 +129,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])