Allows pthreads by default on Linux and FreeBSD only.
This commit is contained in:
parent
41f8bf57c4
commit
547d3bf45d
1 changed files with 8 additions and 0 deletions
|
@ -83,6 +83,14 @@ if test -z "$GCC" ; then
|
||||||
AC_MSG_ERROR([This program requires the GNU C Compiler.])
|
AC_MSG_ERROR([This program requires the GNU C Compiler.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Enable threads by default just in Linux and FreeBSD
|
||||||
|
if test "$enable_pthreads" = try ; then
|
||||||
|
case "$host_os" in
|
||||||
|
(linux* | freebsd*) enable_pthreads=try ;;
|
||||||
|
(*) enable_pthreads=no ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$enable_pthreads" != no ; then
|
if test "$enable_pthreads" != no ; then
|
||||||
BIRD_CHECK_PTHREADS
|
BIRD_CHECK_PTHREADS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue