--- projects/libstatgrab/configure.in 2005/07/30 10:42:02 1.86 +++ 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.86 2005/07/30 10:42:02 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.13, bugs@i-scream.org) AM_INIT_AUTOMAKE(libstatgrab, 0.13) +AM_MAINTAINER_MODE # Revision number (automatically updated) -AC_REVISION($Revision: 1.86 $) +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 @@ -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])