Browse Source

configure: Check for uthash headers

Luke Dashjr 12 years ago
parent
commit
541bb08847
1 changed files with 9 additions and 0 deletions
  1. 9 0
      configure.ac

+ 9 - 0
configure.ac

@@ -143,6 +143,15 @@ m4_define([BFG_PREPROC_IFELSE],
 )
 )
 
 
 
 
+AC_CHECK_HEADER([uthash.h], [
+	AC_CHECK_HEADER([utlist.h], [true], [
+		AC_MSG_ERROR([Could not find utlist header - please install uthash-dev])
+	])
+], [
+	AC_MSG_ERROR([Could not find uthash header - please install uthash-dev])
+])
+
+
 cpumining="no"
 cpumining="no"
 
 
 AC_ARG_ENABLE([cpumining],
 AC_ARG_ENABLE([cpumining],