Skip to content

Commit

Permalink
Disable AX_PTHREAD for MingW/MSYS builds. (#2338)
Browse files Browse the repository at this point in the history
Signed-off-by: Toni Uhlig <[email protected]>
  • Loading branch information
utoni authored Mar 7, 2024
1 parent e294904 commit 1fb4719
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,19 @@ if ! test "${with_only_libndpi+set}" = set; then :
JSONC_LIBS=""
JSONC_CFLAGS=""
])
AX_PTHREAD([],[
AC_MSG_WARN([POSIX Threads not available. Building library only.])
JSONC_LIBS=""
JSONC_CFLAGS=""
EXTRA_TARGETS=""
])
dnl> AX_PTHREAD test does not work along with MingW/MSYS anymore
case "$host" in
*-*-mingw32*|*-*-msys)
;;
*)
AX_PTHREAD([],[
AC_MSG_WARN([POSIX Threads not available. Building library only.])
JSONC_LIBS=""
JSONC_CFLAGS=""
EXTRA_TARGETS=""
])
;;
esac
fi
AM_CONDITIONAL([BUILD_UNITTESTS], [test "x$build_unittests" = "xyes"])

Expand Down

0 comments on commit 1fb4719

Please sign in to comment.