Commit f0b5f30d authored by Nikias Bassen's avatar Nikias Bassen

Remove check for pthread on macOS to suppress clang compiler warning

parent 19b79a93
...@@ -56,25 +56,23 @@ AC_C_BIGENDIAN([AC_DEFINE([__BIG_ENDIAN__], [1], [big endian])], ...@@ -56,25 +56,23 @@ AC_C_BIGENDIAN([AC_DEFINE([__BIG_ENDIAN__], [1], [big endian])],
# Check for operating system # Check for operating system
AC_MSG_CHECKING([whether to enable WIN32 build settings]) AC_MSG_CHECKING([wether we need platform-specific build settings])
case ${host_os} in case ${host_os} in
*mingw32*|*cygwin*) *mingw32*|*cygwin*)
win32=true
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
AC_SUBST(WINDRES) AC_SUBST(WINDRES)
win32=true
;; ;;
*) darwin*)
win32=false
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
;; ;;
esac *)
AM_CONDITIONAL(WIN32, test x$win32 = xtrue) AC_MSG_RESULT([yes])
# if we are not on win32, check for pthread
if test x"$win32" != x"true"; then
AX_PTHREAD([], [AC_MSG_ERROR([pthread is required to build libplist])]) AX_PTHREAD([], [AC_MSG_ERROR([pthread is required to build libplist])])
AC_CHECK_LIB(pthread, [pthread_once], [], [AC_MSG_ERROR([pthread with pthread_once required to build libplist])]) AC_CHECK_LIB(pthread, [pthread_once], [], [AC_MSG_ERROR([pthread with pthread_once required to build libplist])])
fi ;;
esac
AM_CONDITIONAL(WIN32, test x$win32 = xtrue)
# Check if struct tm has a tm_gmtoff member # Check if struct tm has a tm_gmtoff member
AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff, AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment