commit - 7a61761f598f1d4347c2e359e1733bb0aa109ab3
commit + 8dbd2d50a7c30d7ca51585cc0abf75594248153b
blob - 3b5f4c70365fc312561239826621e04749667771
blob + 9b351ee3b2331aa28afa3e45d3a5f29262a304cf
--- configure.ac
+++ configure.ac
fi
# Look for a suitable queue.h. We hope libbsd is enough, but that is missing
-# SIMPLEQ.
-AC_CHECK_DECL(
- SIMPLEQ_INIT,
- found_queue_h=yes,
- found_queue_h=no,
-)
+# some declarations.
AC_CHECK_DECL(
TAILQ_CONCAT,
found_queue_h=yes,
found_queue_h=no,
+ [#include <sys/queue.h>]
)
AC_CHECK_DECL(
TAILQ_PREV,
,
found_queue_h=no,
-)
-AC_CHECK_DECL(
- TAILQ_REPLACE,
- ,
- found_queue_h=no,
+ [#include <sys/queue.h>]
)
AC_CHECK_DECL(
- SIMPLEQ_ENTRY,
- ,
- found_queue_h=no,
-)
-AC_CHECK_DECL(
TAILQ_FOREACH_SAFE,
,
found_queue_h=no,
+ [#include <sys/queue.h>]
)
-if test "x$found_queue_h" = xyes -o "x$ac_cv_header_sys_queue_h" = xyes; then
+if test "x$found_queue_h" = xyes; then
+ AC_MSG_NOTICE([Using sys/queue.h - not compat])
AC_DEFINE(HAVE_QUEUE_H)
fi