commit 8dbd2d50a7c30d7ca51585cc0abf75594248153b from: Thomas Adam date: Fri Aug 12 08:29:40 2022 UTC portable: fix sys/queue,h detection When checking for specific sys/queue.h declarations, ensure to add the header file (sys/queue.h) to search, otherwise nothing will be found. commit - 7a61761f598f1d4347c2e359e1733bb0aa109ab3 commit + 8dbd2d50a7c30d7ca51585cc0abf75594248153b blob - 3b5f4c70365fc312561239826621e04749667771 blob + 9b351ee3b2331aa28afa3e45d3a5f29262a304cf --- configure.ac +++ configure.ac @@ -410,39 +410,28 @@ if test "$PLATFORM" = "linux"; then 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 ] ) AC_CHECK_DECL( TAILQ_PREV, , found_queue_h=no, -) -AC_CHECK_DECL( - TAILQ_REPLACE, - , - found_queue_h=no, + [#include ] ) AC_CHECK_DECL( - SIMPLEQ_ENTRY, - , - found_queue_h=no, -) -AC_CHECK_DECL( TAILQ_FOREACH_SAFE, , found_queue_h=no, + [#include ] ) -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