From 44916ca6d75e0b5f258a098a50d659f31c6625fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 3 Mar 2024 09:54:51 +0100 Subject: New upstream version 1.3.0 --- acinclude.m4 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index df8abe1..90af48d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -248,8 +248,16 @@ AC_DEFUN([SANE_CHECK_PTHREAD], AC_DEFINE(PTHREAD_T_IS_INTEGER, 1, [Define if pthread_t is integer.]) else - # Until the sanei_thread implementation is fixed. - use_pthread=no + case "$host_os" in + darwin*) + # Always use pthreads on macOS + use_pthread=yes + ;; + *) + # Until the sanei_thread implementation is fixed. + use_pthread=no + ;; + esac fi if test "$have_pthread" = "yes" ; then @@ -471,6 +479,7 @@ AC_DEFUN([SANE_CHECK_IPV6], if test "$ipv6" != "no" ; then AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #define INET6 + #include #include #include ]], [[ /* AF_INET6 available check */ @@ -492,6 +501,7 @@ AC_DEFUN([SANE_CHECK_IPV6], AC_MSG_CHECKING([whether struct sockaddr_storage has an ss_family member]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #define INET6 + #include #include #include ]], [[ /* test if the ss_family member exists in struct sockaddr_storage */ @@ -504,6 +514,7 @@ AC_DEFUN([SANE_CHECK_IPV6], ], [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #define INET6 + #include #include #include ]], [[ /* test if the __ss_family member exists in struct sockaddr_storage */ -- cgit v1.2.3