mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
tweak for mingw
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28634 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0276710916
commit
47c0de95f0
2 changed files with 21 additions and 15 deletions
19
configure
vendored
19
configure
vendored
|
@ -12028,12 +12028,15 @@ else
|
||||||
pthread_ok=no
|
pthread_ok=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ismingw=no
|
||||||
|
case "$target_os" in
|
||||||
|
mingw*) ismingw=yes;;
|
||||||
|
esac
|
||||||
if test $pthread_ok = yes ; then
|
if test $pthread_ok = yes ; then
|
||||||
LIBS="$LIBS -lpthread"
|
LIBS="$LIBS -lpthread"
|
||||||
else
|
else
|
||||||
case "$target_os" in
|
if test $ismingw = yes ; then
|
||||||
mingw*)
|
echo "$as_me:$LINENO: checking for pthread_join in -lpthreadGC2" >&5
|
||||||
echo "$as_me:$LINENO: checking for pthread_join in -lpthreadGC2" >&5
|
|
||||||
echo $ECHO_N "checking for pthread_join in -lpthreadGC2... $ECHO_C" >&6
|
echo $ECHO_N "checking for pthread_join in -lpthreadGC2... $ECHO_C" >&6
|
||||||
if test "${ac_cv_lib_pthreadGC2_pthread_join+set}" = set; then
|
if test "${ac_cv_lib_pthreadGC2_pthread_join+set}" = set; then
|
||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
|
@ -12102,11 +12105,11 @@ if test $ac_cv_lib_pthreadGC2_pthread_join = yes; then
|
||||||
else
|
else
|
||||||
pthread_ok=no
|
pthread_ok=no
|
||||||
fi
|
fi
|
||||||
;;
|
|
||||||
if test $pthread_ok = yes ; then
|
if test $pthread_ok = yes ; then
|
||||||
LIBS="$LIBS -lpthreadGC2"
|
LIBS="$LIBS -lpthreadGC2"
|
||||||
fi
|
fi
|
||||||
esac
|
fi
|
||||||
fi
|
fi
|
||||||
if test $pthread_ok = no ; then
|
if test $pthread_ok = no ; then
|
||||||
{ { echo "$as_me:$LINENO: error: Unable to find pthread library (needed for thread support)." >&5
|
{ { echo "$as_me:$LINENO: error: Unable to find pthread library (needed for thread support)." >&5
|
||||||
|
|
17
configure.ac
17
configure.ac
|
@ -838,16 +838,19 @@ if test $ac_cv_header_pthread_h = no ; then
|
||||||
AC_MSG_ERROR([Unable to find pthread.h (needed for thread support).])
|
AC_MSG_ERROR([Unable to find pthread.h (needed for thread support).])
|
||||||
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
|
||||||
|
case "$target_os" in
|
||||||
|
mingw*) ismingw=yes;;
|
||||||
|
esac
|
||||||
if test $pthread_ok = yes ; then
|
if test $pthread_ok = yes ; then
|
||||||
LIBS="$LIBS -lpthread"
|
LIBS="$LIBS -lpthread"
|
||||||
else
|
else
|
||||||
case "$target_os" in
|
if test $ismingw = yes ; then
|
||||||
mingw*)
|
AC_CHECK_LIB(pthreadGC2, pthread_join, pthread_ok=yes, pthread_ok=no)
|
||||||
AC_CHECK_LIB(pthreadGC2, pthread_join, pthread_ok=yes, pthread_ok=no);;
|
if test $pthread_ok = yes ; then
|
||||||
if test $pthread_ok = yes ; then
|
LIBS="$LIBS -lpthreadGC2"
|
||||||
LIBS="$LIBS -lpthreadGC2"
|
fi
|
||||||
fi
|
fi
|
||||||
esac
|
|
||||||
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