Permalink
Browse files

made it find libsigar on windows

  • Loading branch information...
1 parent 8d00f20 commit 3d80adb7aa3201df24422c91fa475698521bf28b Aliaksey Kandratsenka committed Mar 10, 2011
Showing with 7 additions and 4 deletions.
  1. +2 −0 .gitignore
  2. +5 −4 configure.ac
View
@@ -1,6 +1,7 @@
*.gcda
*.o
.deps
+/.libs
/ChangeLog
/GPATH
/GRTAGS
@@ -27,3 +28,4 @@ depcomp
install-sh
missing
sigar_port
+sigar_port.exe
View
@@ -6,11 +6,12 @@ AC_PROG_CC
AC_PROG_LIBTOOL
-AC_SEARCH_LIBS([sigar_open], [sigar], [], [
+
+AC_CHECK_LIB([sigar], [main], [SIGAR_LDFLAGS=-lsigar], [
AC_MSG_NOTICE([will check for libsigar in ${prefix}/lib])
- unset ac_cv_search_sigar_open
- AC_SEARCH_LIBS([sigar_open], [sigar], [
- SIGAR_LDFLAGS="-L${prefix}/lib"
+ unset ac_cv_lib_sigar_main
+ AC_CHECK_LIB([sigar], [main], [
+ SIGAR_LDFLAGS="-L${prefix}/lib -lsigar"
], [
AC_MSG_ERROR([need libsigar. Consider passing -L<path> in LDFLAGS])
], [-L${prefix}/lib])

0 comments on commit 3d80adb

Please sign in to comment.