Correctly check for pthread library on QNX.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34732 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Niels Grewe 2012-02-07 10:18:52 +00:00
parent e7d7505a8d
commit 3527181d41
3 changed files with 10259 additions and 7354 deletions

View file

@ -1,3 +1,8 @@
2012-02-07 Niels Grewe <niels.grewe@halbordnung.de>
* configure.ac: Check for threading library on QNX.
* configure: Regenerate.
2012-02-04 Richard Frith-Macdonald <rfm@gnu.org>
* Version: 1.24.1 ... still binary compatibile with 1.24.0

17599
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -1628,8 +1628,11 @@ else
fi
AC_CHECK_LIB(pthread, pthread_join, pthread_ok=yes, pthread_ok=no)
ismingw=no
isqnx=no
case "$target_os" in
mingw*) ismingw=yes;;
nto*) isqnx=yes;;
qnx*) isqnx=yes;;
esac
if test $pthread_ok = yes ; then
LIBS="$LIBS -lpthread"
@ -1640,6 +1643,12 @@ else
LIBS="$LIBS -lpthreadGC2"
fi
fi
if test $isqnx = yes ; then
AC_CHECK_LIB(c, pthread_join, pthread_ok=yes, pthread_ok=no)
if test $pthread_ok = yes ; then
LIBS="$LIBS -lc"
fi
fi
fi
if test $pthread_ok = no ; then
AC_MSG_ERROR([Unable to find pthread library (needed for thread support).])