--- projects/libstatgrab/configure.in 2003/03/03 12:33:06 1.5 +++ projects/libstatgrab/configure.in 2003/05/20 13:57:47 1.20 @@ -2,15 +2,15 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.5 2003/03/03 12:33:06 tdb Exp $ +# $Id: configure.in,v 1.20 2003/05/20 13:57:47 tdb Exp $ # # Change these to change the package name and version -AC_INIT(libstatgrab, 0.2, dev@i-scream.org.uk) -AM_INIT_AUTOMAKE(libstatgrab, 0.2) +AC_INIT(libstatgrab, 0.4.1, dev@i-scream.org) +AM_INIT_AUTOMAKE(libstatgrab, 0.4.1) # Revision number (automatically updated) -AC_REVISION($Revision: 1.5 $) +AC_REVISION($Revision: 1.20 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -32,11 +32,18 @@ AC_C_CONST # Checks for library functions AC_FUNC_MALLOC AC_FUNC_REALLOC +AC_CHECK_FUNCS(atoll) # 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 case $host_os in +solaris2.[[6-7]]) + AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])]) + AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) + AC_DEFINE(SOL7, , [Building on Solaris 2.7]) + LDFLAGS="$LDFLAGS -lkstat" + ;; solaris2.*) AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])]) AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) @@ -44,7 +51,7 @@ solaris2.*) ;; freebsd4.*) AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x]) - LDFLAGS="$LDFLAGS -lkvm" + LDFLAGS="$LDFLAGS -lkvm -ldevstat" ;; linux-gnu) AC_DEFINE(LINUX, , [Building on GNU/Linux]) @@ -55,6 +62,6 @@ linux-gnu) esac # And finish by changing these files -AC_CONFIG_FILES([Makefile src/Makefile]) +AC_CONFIG_FILES([Makefile src/Makefile docs/Makefile]) AC_OUTPUT