mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
5b47b13296
commit
8a309439e0
3 changed files with 10259 additions and 7354 deletions
|
@ -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>
|
2012-02-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Version: 1.24.1 ... still binary compatibile with 1.24.0
|
* Version: 1.24.1 ... still binary compatibile with 1.24.0
|
||||||
|
|
|
@ -1628,8 +1628,11 @@ else
|
||||||
fi
|
fi
|
||||||
AC_CHECK_LIB(pthread, pthread_join, pthread_ok=yes, pthread_ok=no)
|
AC_CHECK_LIB(pthread, pthread_join, pthread_ok=yes, pthread_ok=no)
|
||||||
ismingw=no
|
ismingw=no
|
||||||
|
isqnx=no
|
||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
mingw*) ismingw=yes;;
|
mingw*) ismingw=yes;;
|
||||||
|
nto*) isqnx=yes;;
|
||||||
|
qnx*) isqnx=yes;;
|
||||||
esac
|
esac
|
||||||
if test $pthread_ok = yes ; then
|
if test $pthread_ok = yes ; then
|
||||||
LIBS="$LIBS -lpthread"
|
LIBS="$LIBS -lpthread"
|
||||||
|
@ -1640,6 +1643,12 @@ else
|
||||||
LIBS="$LIBS -lpthreadGC2"
|
LIBS="$LIBS -lpthreadGC2"
|
||||||
fi
|
fi
|
||||||
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
|
fi
|
||||||
if test $pthread_ok = no ; then
|
if test $pthread_ok = no ; then
|
||||||
AC_MSG_ERROR([Unable to find pthread library (needed for thread support).])
|
AC_MSG_ERROR([Unable to find pthread library (needed for thread support).])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue