--- projects/libstatgrab/configure.in 2003/03/10 14:25:22 1.7 +++ projects/libstatgrab/configure.in 2003/03/12 12:39:12 1.9 @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.7 2003/03/10 14:25:22 tdb Exp $ +# $Id: configure.in,v 1.9 2003/03/12 12:39:12 tdb Exp $ # # Change these to change the package name and version @@ -10,7 +10,7 @@ AC_INIT(libstatgrab, 0.4, dev@i-scream.org.uk) AM_INIT_AUTOMAKE(libstatgrab, 0.4) # Revision number (automatically updated) -AC_REVISION($Revision: 1.7 $) +AC_REVISION($Revision: 1.9 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -37,6 +37,12 @@ AC_FUNC_REALLOC # 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])