use -pthread also for FreeBSD 6.x

git-svn: trunk@2855
remotes/push_mirror/metadata
Tomasz Kojm 19 years ago
parent 45f8ad14c1
commit fdf715fd25
  1. 4
      ChangeLog
  2. 31
      configure
  3. 15
      configure.in

@ -1,3 +1,7 @@
Fri Feb 23 21:42:08 CET 2007 (tk)
---------------------------------
* configure: use -pthread also for FreeBSD 6.x
Fri Feb 23 20:22:20 GMT 2007 (njh)
----------------------------------
* libclamav/untar.c: Added extra functionality (bug 269) - based on

31
configure vendored

@ -23079,39 +23079,10 @@ cat >>confdefs.h <<\_ACEOF
#define C_SOLARIS 1
_ACEOF
;;
freebsd45*)
if test "$have_pthreads" = "yes"; then
THREAD_LIBS="-pthread -lc_r"
TH_SAFE="-thread-safe"
cat >>confdefs.h <<\_ACEOF
#define CL_THREAD_SAFE 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define _REENTRANT 1
_ACEOF
if test "$want_clamuko" = "yes"; then
cat >>confdefs.h <<\_ACEOF
#define CLAMUKO 1
_ACEOF
fi
fi
cat >>confdefs.h <<\_ACEOF
#define C_BSD 1
_ACEOF
use_gethostbyname_r="no"
;;
freebsd*)
if test "$have_pthreads" = "yes"; then
THREAD_LIBS="-lpthread -lc_r"
THREAD_LIBS="-pthread -lc_r"
TH_SAFE="-thread-safe"
cat >>confdefs.h <<\_ACEOF

@ -437,22 +437,9 @@ solaris*)
fi
AC_DEFINE(C_SOLARIS,1,[os is solaris])
;;
freebsd[45]*)
if test "$have_pthreads" = "yes"; then
THREAD_LIBS="-pthread -lc_r"
TH_SAFE="-thread-safe"
AC_DEFINE(CL_THREAD_SAFE,1,[thread safe])
AC_DEFINE(_REENTRANT,1,[thread safe])
if test "$want_clamuko" = "yes"; then
AC_DEFINE(CLAMUKO,1,[enable clamuko])
fi
fi
AC_DEFINE(C_BSD,1,[os is freebsd])
use_gethostbyname_r="no"
;;
freebsd*)
if test "$have_pthreads" = "yes"; then
THREAD_LIBS="-lpthread -lc_r"
THREAD_LIBS="-pthread -lc_r"
TH_SAFE="-thread-safe"
AC_DEFINE(CL_THREAD_SAFE,1,[thread safe])
AC_DEFINE(_REENTRANT,1,[thread safe])

Loading…
Cancel
Save