--- projects/cms/source/ihost/configure.in 2004/01/05 16:02:20 1.30 +++ projects/cms/source/ihost/configure.in 2005/09/24 13:30:40 1.34 @@ -2,15 +2,15 @@ # Process this file with autoconf to produce a configure script. # # configure.in for i-scream ihost -# $Id: configure.in,v 1.30 2004/01/05 16:02:20 tdb Exp $ +# $Id: configure.in,v 1.34 2005/09/24 13:30:40 tdb Exp $ # # Change these to change the package name and version -AC_INIT(ihost, 1.5.7, bugs@i-scream.org) -AM_INIT_AUTOMAKE(ihost, 1.5.7) +AC_INIT(ihost, 1.5.9, bugs@i-scream.org) +AM_INIT_AUTOMAKE(ihost, 1.5.9) # Revision number (automatically updated) -AC_REVISION($Revision: 1.30 $) +AC_REVISION($Revision: 1.34 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -100,13 +100,19 @@ linux-gnu) cygwin) AC_MSG_ERROR([libstatgrab doesn't fully support cygwin, yet]) ;; +mingw32) + AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])]) + AC_DEFINE(MINGW, , [Building on MinGW]) + AC_DEFINE(WINVER, 0x0500, [Building for Windows 2000]) + LIBS="$LIBS -lstatgrab -lukcprog -lws2_32 -lpdh -lIphlpapi -lpsapi -lnetapi32" + ;; *) AC_MSG_ERROR([Cannot build on unknown OS: $host_os]) ;; esac # Check for libstatgrab -AC_CHECK_LIB(statgrab, get_general_stats,[:],[AC_MSG_ERROR([need libstatgrab])]) +AC_CHECK_LIB(statgrab, sg_get_host_info,[:],[AC_MSG_ERROR([need libstatgrab])]) # Check for the --with-pid-file option AC_ARG_WITH([pid-file], [ --with-pid-file=FILE location of PID file (default: /var/tmp/.ihost.pid)], [pidfile=$withval], [pidfile=[/var/tmp/.ihost.pid]])