--- parser3/configure.ac 2026/10/22 16:08:02 1.89 +++ parser3/configure.ac 2026/10/29 11:56:18 1.97 @@ -85,6 +85,7 @@ esac AC_CHECK_LIB(m, sin) AC_CHECK_LIB(crypt, crypt) +AC_SEARCH_LIBS(timer_create, rt) dnl Misc arguments @@ -564,9 +565,16 @@ PA_TRY_COMPILE([#include ], [str AC_MSG_CHECKING(for gettid) PA_TRY_COMPILE([ #include +#include #include ], [uint tid=syscall(__NR_gettid);], AC_DEFINE(HAVE_GETTID) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) +AC_MSG_CHECKING(for thr_self) +PA_TRY_LINK([ +#include +#include +], [long tid; thr_self(&tid);], AC_DEFINE(HAVE_THR_SELF) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) + AC_MSG_CHECKING(for TLS) PA_TRY_COMPILE([__thread int i=0;], [], AC_DEFINE(HAVE_TLS) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) @@ -593,6 +601,7 @@ AH_TEMPLATE([HAVE_TIMEZONE],[Define if y AH_TEMPLATE([HAVE_TM_GMTOFF],[Define if you have tm_gmtoff member of tm structure in ]) AH_TEMPLATE([HAVE_TM_TZADJ],[Define if you have tm_tzadj member of tm structure in ]) AH_TEMPLATE([HAVE_GETTID],[Define if you have gettid()]) +AH_TEMPLATE([HAVE_THR_SELF],[Define if you have thr_self() (FreeBSD)]) AH_TEMPLATE([HAVE_TLS],[Define if you have Thread-Local Storage]) AH_TEMPLATE([PA_DATE64],[Define if you have 0..9999 year date range support])