changeset 32164:07c3c20985e0

Simplify kstat check.
author diego
date Tue, 14 Sep 2010 17:14:34 +0000
parents 51622e94f85a
children 79c75e3076c5
files configure
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Sep 14 17:08:54 2010 +0000
+++ b/configure	Tue Sep 14 17:14:34 2010 +0000
@@ -3036,12 +3036,8 @@
 
 
 echocheck "kstat"
-cat > $TMPC << EOF
-#include <kstat.h>
-int main(void) { kstat_open(); kstat_close(0); return 0; }
-EOF
 _kstat=no
-cc_check -lkstat && _kstat=yes
+function_check kstat.h 'kstat_open()' -lkstat && _kstat=yes
 if test "$_kstat" = yes ; then
   def_kstat="#define HAVE_LIBKSTAT 1"
   extra_ldflags="$extra_ldflags -lkstat"