Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 491472
Collapse All | Expand All

(-)a/configure.ac (+8 lines)
Lines 31-38 fi Link Here
31
31
32
32
33
PKG_CONFIG_LIBS=
33
PKG_CONFIG_LIBS=
34
ac_save_LIBS="$LIBS"
35
case "$host" in
36
*-*-freebsd*)
37
	# pthread_condattr_{init,destroy} is provided from libthr
38
	LIBS="-lthr"
39
	;;
40
esac
34
AC_CHECK_FUNCS([pthread_self pthread_mutex_init pthread_mutex_destroy pthread_mutex_lock pthread_mutex_unlock pthread_cond_init pthread_cond_destroy pthread_condattr_init pthread_condattr_destroy pthread_cond_wait pthread_cond_timedwait pthread_cond_signal pthread_cond_broadcast pthread_equal pthread_exit],
41
AC_CHECK_FUNCS([pthread_self pthread_mutex_init pthread_mutex_destroy pthread_mutex_lock pthread_mutex_unlock pthread_cond_init pthread_cond_destroy pthread_condattr_init pthread_condattr_destroy pthread_cond_wait pthread_cond_timedwait pthread_cond_signal pthread_cond_broadcast pthread_equal pthread_exit],
35
	       [], [PKG_CONFIG_LIBS='-L${libdir} -lpthread-stubs'])
42
	       [], [PKG_CONFIG_LIBS='-L${libdir} -lpthread-stubs'])
43
LIBS="$ac_save_LIBS"
36
AC_SUBST([PKG_CONFIG_LIBS])
44
AC_SUBST([PKG_CONFIG_LIBS])
37
AM_CONDITIONAL(BUILD_LIB, test "x$PKG_CONFIG_LIBS" != x)
45
AM_CONDITIONAL(BUILD_LIB, test "x$PKG_CONFIG_LIBS" != x)
38
46

Return to bug 491472