mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
On NetBSD systems without pthreads, build without threads.
This commit is contained in:
parent
9f7b524522
commit
c356cd618d
26
configure.in
26
configure.in
@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
|
|||||||
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
|
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
|
||||||
AC_DIVERT_POP()dnl
|
AC_DIVERT_POP()dnl
|
||||||
|
|
||||||
AC_REVISION($Revision: 1.220 $)
|
AC_REVISION($Revision: 1.221 $)
|
||||||
|
|
||||||
AC_INIT(lib/dns/name.c)
|
AC_INIT(lib/dns/name.c)
|
||||||
AC_PREREQ(2.13)
|
AC_PREREQ(2.13)
|
||||||
@ -415,22 +415,22 @@ then
|
|||||||
[linking with PTL2 is highly experimental and not expected to work])
|
[linking with PTL2 is highly experimental and not expected to work])
|
||||||
CC=ptlgcc
|
CC=ptlgcc
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(mit-pthreads/unproven-pthreads)
|
|
||||||
|
|
||||||
if test ! -d $LOCALBASE/pthreads
|
if test ! -d $LOCALBASE/pthreads
|
||||||
then
|
then
|
||||||
AC_MSG_ERROR([no thread library found.
|
AC_MSG_RESULT(none)
|
||||||
|
use_threads=false
|
||||||
Please install the devel/unproven-pthreads package and rerun configure.
|
|
||||||
])
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pkg="$LOCALBASE/pthreads"
|
if $use_threads
|
||||||
lib1="-L$pkg/lib -Wl,-R$pkg/lib"
|
then
|
||||||
lib2="-lpthread -lm -lgcc -lpthread"
|
AC_MSG_RESULT(mit-pthreads/unproven-pthreads)
|
||||||
LIBS="$lib1 $lib2 $LIBS"
|
pkg="$LOCALBASE/pthreads"
|
||||||
CPPFLAGS="$CPPFLAGS -I$pkg/include"
|
lib1="-L$pkg/lib -Wl,-R$pkg/lib"
|
||||||
STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
|
lib2="-lpthread -lm -lgcc -lpthread"
|
||||||
|
LIBS="$lib1 $lib2 $LIBS"
|
||||||
|
CPPFLAGS="$CPPFLAGS -I$pkg/include"
|
||||||
|
STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user