Christian Schmitz <support@monkeybreadsoftware.de>
Max Mehl <max.mehl@fsfe.org>
rzrymiak on github <106121613+rzrymiak@users.noreply.github.com>
+Oliver Roberts <oliver@futaura.co.uk>
dnl if it wasn't found without lib, search for it in pthread lib
if test "$USE_THREADS_POSIX" != "1"
then
+ # assign PTHREAD for pkg-config use
+ PTHREAD=" -pthread"
+
case $host in
*-ibm-aix*)
dnl Check if compiler is xlC
CFLAGS="$CFLAGS -qthreaded"
fi
;;
+ powerpc-*amigaos*)
+ dnl No -pthread option, but link with -lpthread
+ PTHREAD=" -lpthread"
+ ;;
*)
CFLAGS="$CFLAGS -pthread"
;;
esac
- # assign PTHREAD for pkg-config use
- PTHREAD=" -pthread"
AC_CHECK_LIB(pthread, pthread_create,
[USE_THREADS_POSIX=1],
[ CFLAGS="$save_CFLAGS"])