|
@@ -143,12 +143,17 @@ 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_CHECK_DECL([HASH_ITER],[
|
|
|
|
|
+ AC_CHECK_DECL([DL_FOREACH_SAFE],[
|
|
|
|
|
+ ],[
|
|
|
|
|
+ AC_MSG_ERROR([Could not find DL_FOREACH_SAFE - install uthash-dev 1.9.2+])
|
|
|
|
|
+ ],[
|
|
|
|
|
+ #include <utlist.h>
|
|
|
])
|
|
])
|
|
|
-], [
|
|
|
|
|
- AC_MSG_ERROR([Could not find uthash header - please install uthash-dev])
|
|
|
|
|
|
|
+],[
|
|
|
|
|
+ AC_MSG_ERROR([Could not find HASH_ITER - please install uthash-dev 1.9.2+])
|
|
|
|
|
+],[
|
|
|
|
|
+ #include <uthash.h>
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
|
|
|